reran autoconf
[Samba.git] / source / configure
bloba530c780eb9340b5a0516a833ab7580002a8b55c
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 --with-fhs Use FHS-compliant paths (default=no)"
17 ac_help="$ac_help
18 --with-privatedir=DIR Where to put smbpasswd ($ac_default_prefix/private)"
19 ac_help="$ac_help
20 --with-lockdir=DIR Where to put lock files ($ac_default_prefix/var/locks)"
21 ac_help="$ac_help
22 --with-piddir=DIR Where to put pid files ($ac_default_prefix/var/locks)"
23 ac_help="$ac_help
24 --with-swatdir=DIR Where to put SWAT files ($ac_default_prefix/swat)"
25 ac_help="$ac_help
26 --with-configdir=DIR Where to put configuration files (\$libdir)"
27 ac_help="$ac_help
28 --with-codepagedir=DIR Where to put codepage files (\$libdir/codepages)"
29 ac_help="$ac_help
30 --with-logfilebase=DIR Where to put log files (\$(VARDIR))"
31 ac_help="$ac_help
32 --enable-debug Turn on compiler debugging information (default=no)"
33 ac_help="$ac_help
34 --enable-cups Turn on CUPS support (default=auto)"
35 ac_help="$ac_help
36 --with-readline[=DIR] Look for readline include/libs in DIR (default=auto)"
37 ac_help="$ac_help
38 --with-smbwrapper Include SMB wrapper support (default=no)"
39 ac_help="$ac_help
40 --with-afs Include AFS support (default=no)"
41 ac_help="$ac_help
42 --with-dce-dfs Include DCE/DFS support (default=no)"
43 ac_help="$ac_help
44 --with-krb4=base-dir Include Kerberos IV support (default=no)"
45 ac_help="$ac_help
46 --with-krb5=base-dir Include Kerberos 5 support (default=no)"
47 ac_help="$ac_help
48 --with-automount Include AUTOMOUNT support (default=no)"
49 ac_help="$ac_help
50 --with-smbmount Include SMBMOUNT (Linux only) support (default=no)"
51 ac_help="$ac_help
52 --with-pam Include PAM password database support (default=no)"
53 ac_help="$ac_help
54 --with-pam_smbpass Include the smbpass PAM module (default=no)"
55 ac_help="$ac_help
56 --with-tdbsam Include experimental TDB SAM support (default=no)"
57 ac_help="$ac_help
58 --with-ldapsam Include experimental LDAP SAM support (default=no)"
59 ac_help="$ac_help
60 --with-nisplussam Include NISPLUS SAM support (default=no)"
61 ac_help="$ac_help
62 --with-nisplus-home Include NISPLUS_HOME support (default=no)"
63 ac_help="$ac_help
64 --with-ssl Include SSL support (default=no)
65 --with-sslinc=DIR Where the SSL includes are (defaults to /usr/local/ssl/include)
66 --with-ssllib=DIR Where the SSL libraries are (defaults to /usr/local/ssl/lib)"
67 ac_help="$ac_help
68 --with-syslog Include experimental SYSLOG support (default=no)"
69 ac_help="$ac_help
70 --with-profiling-data Include gathering source code profile information (default=no)"
71 ac_help="$ac_help
72 --with-quotas Include experimental disk-quota support (default=no)"
73 ac_help="$ac_help
74 --with-utmp Include experimental utmp accounting (default=no)"
75 ac_help="$ac_help
76 --with-msdfs Include MS Dfs support (default=no)"
77 ac_help="$ac_help
78 --with-libsmbclient Build the libsmbclient shared library (default=no)"
79 ac_help="$ac_help
80 --with-spinlocks Use spin locks instead of fcntl locks (default=no)"
81 ac_help="$ac_help
82 --with-acl-support Include ACL support (default=no)"
83 ac_help="$ac_help
84 --with-sendfile-support Check for sendfile support (default=no)"
85 ac_help="$ac_help
86 --with-winbind Build winbind (default, if supported by OS)"
87 ac_help="$ac_help
88 --with-winbind-auth-challenge Enable winbindd_pam_auth_crap() functionality (default no)"
89 ac_help="$ac_help
90 --with-winbind-ldap-hack Enable winbindd_ldap_hack() functionality (default no)"
91 ac_help="$ac_help
92 --with-included-popt use bundled popt library, not from system"
94 # Initialize some variables set by options.
95 # The variables have the same names as the options, with
96 # dashes changed to underlines.
97 build=NONE
98 cache_file=./config.cache
99 exec_prefix=NONE
100 host=NONE
101 no_create=
102 nonopt=NONE
103 no_recursion=
104 prefix=NONE
105 program_prefix=NONE
106 program_suffix=NONE
107 program_transform_name=s,x,x,
108 silent=
109 site=
110 srcdir=
111 target=NONE
112 verbose=
113 x_includes=NONE
114 x_libraries=NONE
115 bindir='${exec_prefix}/bin'
116 sbindir='${exec_prefix}/sbin'
117 libexecdir='${exec_prefix}/libexec'
118 datadir='${prefix}/share'
119 sysconfdir='${prefix}/etc'
120 sharedstatedir='${prefix}/com'
121 localstatedir='${prefix}/var'
122 libdir='${exec_prefix}/lib'
123 includedir='${prefix}/include'
124 oldincludedir='/usr/include'
125 infodir='${prefix}/info'
126 mandir='${prefix}/man'
128 # Initialize some other variables.
129 subdirs=
130 MFLAGS= MAKEFLAGS=
131 SHELL=${CONFIG_SHELL-/bin/sh}
132 # Maximum number of lines to put in a shell here document.
133 ac_max_here_lines=12
135 ac_prev=
136 for ac_option
139 # If the previous option needs an argument, assign it.
140 if test -n "$ac_prev"; then
141 eval "$ac_prev=\$ac_option"
142 ac_prev=
143 continue
146 case "$ac_option" in
147 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
148 *) ac_optarg= ;;
149 esac
151 # Accept the important Cygnus configure options, so we can diagnose typos.
153 case "$ac_option" in
155 -bindir | --bindir | --bindi | --bind | --bin | --bi)
156 ac_prev=bindir ;;
157 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
158 bindir="$ac_optarg" ;;
160 -build | --build | --buil | --bui | --bu)
161 ac_prev=build ;;
162 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
163 build="$ac_optarg" ;;
165 -cache-file | --cache-file | --cache-fil | --cache-fi \
166 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
167 ac_prev=cache_file ;;
168 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
169 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
170 cache_file="$ac_optarg" ;;
172 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
173 ac_prev=datadir ;;
174 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
175 | --da=*)
176 datadir="$ac_optarg" ;;
178 -disable-* | --disable-*)
179 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
180 # Reject names that are not valid shell variable names.
181 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
182 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
184 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
185 eval "enable_${ac_feature}=no" ;;
187 -enable-* | --enable-*)
188 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
189 # Reject names that are not valid shell variable names.
190 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
191 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
193 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
194 case "$ac_option" in
195 *=*) ;;
196 *) ac_optarg=yes ;;
197 esac
198 eval "enable_${ac_feature}='$ac_optarg'" ;;
200 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
201 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
202 | --exec | --exe | --ex)
203 ac_prev=exec_prefix ;;
204 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
205 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
206 | --exec=* | --exe=* | --ex=*)
207 exec_prefix="$ac_optarg" ;;
209 -gas | --gas | --ga | --g)
210 # Obsolete; use --with-gas.
211 with_gas=yes ;;
213 -help | --help | --hel | --he)
214 # Omit some internal or obsolete options to make the list less imposing.
215 # This message is too long to be a string in the A/UX 3.1 sh.
216 cat << EOF
217 Usage: configure [options] [host]
218 Options: [defaults in brackets after descriptions]
219 Configuration:
220 --cache-file=FILE cache test results in FILE
221 --help print this message
222 --no-create do not create output files
223 --quiet, --silent do not print \`checking...' messages
224 --version print the version of autoconf that created configure
225 Directory and file names:
226 --prefix=PREFIX install architecture-independent files in PREFIX
227 [$ac_default_prefix]
228 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
229 [same as prefix]
230 --bindir=DIR user executables in DIR [EPREFIX/bin]
231 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
232 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
233 --datadir=DIR read-only architecture-independent data in DIR
234 [PREFIX/share]
235 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
236 --sharedstatedir=DIR modifiable architecture-independent data in DIR
237 [PREFIX/com]
238 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
239 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
240 --includedir=DIR C header files in DIR [PREFIX/include]
241 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
242 --infodir=DIR info documentation in DIR [PREFIX/info]
243 --mandir=DIR man documentation in DIR [PREFIX/man]
244 --srcdir=DIR find the sources in DIR [configure dir or ..]
245 --program-prefix=PREFIX prepend PREFIX to installed program names
246 --program-suffix=SUFFIX append SUFFIX to installed program names
247 --program-transform-name=PROGRAM
248 run sed PROGRAM on installed program names
250 cat << EOF
251 Host type:
252 --build=BUILD configure for building on BUILD [BUILD=HOST]
253 --host=HOST configure for HOST [guessed]
254 --target=TARGET configure for TARGET [TARGET=HOST]
255 Features and packages:
256 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
257 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
258 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
259 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
260 --x-includes=DIR X include files are in DIR
261 --x-libraries=DIR X library files are in DIR
263 if test -n "$ac_help"; then
264 echo "--enable and --with options recognized:$ac_help"
266 exit 0 ;;
268 -host | --host | --hos | --ho)
269 ac_prev=host ;;
270 -host=* | --host=* | --hos=* | --ho=*)
271 host="$ac_optarg" ;;
273 -includedir | --includedir | --includedi | --included | --include \
274 | --includ | --inclu | --incl | --inc)
275 ac_prev=includedir ;;
276 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
277 | --includ=* | --inclu=* | --incl=* | --inc=*)
278 includedir="$ac_optarg" ;;
280 -infodir | --infodir | --infodi | --infod | --info | --inf)
281 ac_prev=infodir ;;
282 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
283 infodir="$ac_optarg" ;;
285 -libdir | --libdir | --libdi | --libd)
286 ac_prev=libdir ;;
287 -libdir=* | --libdir=* | --libdi=* | --libd=*)
288 libdir="$ac_optarg" ;;
290 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
291 | --libexe | --libex | --libe)
292 ac_prev=libexecdir ;;
293 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
294 | --libexe=* | --libex=* | --libe=*)
295 libexecdir="$ac_optarg" ;;
297 -localstatedir | --localstatedir | --localstatedi | --localstated \
298 | --localstate | --localstat | --localsta | --localst \
299 | --locals | --local | --loca | --loc | --lo)
300 ac_prev=localstatedir ;;
301 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
302 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
303 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
304 localstatedir="$ac_optarg" ;;
306 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
307 ac_prev=mandir ;;
308 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
309 mandir="$ac_optarg" ;;
311 -nfp | --nfp | --nf)
312 # Obsolete; use --without-fp.
313 with_fp=no ;;
315 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
316 | --no-cr | --no-c)
317 no_create=yes ;;
319 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
320 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
321 no_recursion=yes ;;
323 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
324 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
325 | --oldin | --oldi | --old | --ol | --o)
326 ac_prev=oldincludedir ;;
327 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
328 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
329 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
330 oldincludedir="$ac_optarg" ;;
332 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
333 ac_prev=prefix ;;
334 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
335 prefix="$ac_optarg" ;;
337 -program-prefix | --program-prefix | --program-prefi | --program-pref \
338 | --program-pre | --program-pr | --program-p)
339 ac_prev=program_prefix ;;
340 -program-prefix=* | --program-prefix=* | --program-prefi=* \
341 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
342 program_prefix="$ac_optarg" ;;
344 -program-suffix | --program-suffix | --program-suffi | --program-suff \
345 | --program-suf | --program-su | --program-s)
346 ac_prev=program_suffix ;;
347 -program-suffix=* | --program-suffix=* | --program-suffi=* \
348 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
349 program_suffix="$ac_optarg" ;;
351 -program-transform-name | --program-transform-name \
352 | --program-transform-nam | --program-transform-na \
353 | --program-transform-n | --program-transform- \
354 | --program-transform | --program-transfor \
355 | --program-transfo | --program-transf \
356 | --program-trans | --program-tran \
357 | --progr-tra | --program-tr | --program-t)
358 ac_prev=program_transform_name ;;
359 -program-transform-name=* | --program-transform-name=* \
360 | --program-transform-nam=* | --program-transform-na=* \
361 | --program-transform-n=* | --program-transform-=* \
362 | --program-transform=* | --program-transfor=* \
363 | --program-transfo=* | --program-transf=* \
364 | --program-trans=* | --program-tran=* \
365 | --progr-tra=* | --program-tr=* | --program-t=*)
366 program_transform_name="$ac_optarg" ;;
368 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
369 | -silent | --silent | --silen | --sile | --sil)
370 silent=yes ;;
372 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
373 ac_prev=sbindir ;;
374 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
375 | --sbi=* | --sb=*)
376 sbindir="$ac_optarg" ;;
378 -sharedstatedir | --sharedstatedir | --sharedstatedi \
379 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
380 | --sharedst | --shareds | --shared | --share | --shar \
381 | --sha | --sh)
382 ac_prev=sharedstatedir ;;
383 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
384 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
385 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
386 | --sha=* | --sh=*)
387 sharedstatedir="$ac_optarg" ;;
389 -site | --site | --sit)
390 ac_prev=site ;;
391 -site=* | --site=* | --sit=*)
392 site="$ac_optarg" ;;
394 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
395 ac_prev=srcdir ;;
396 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
397 srcdir="$ac_optarg" ;;
399 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
400 | --syscon | --sysco | --sysc | --sys | --sy)
401 ac_prev=sysconfdir ;;
402 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
403 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
404 sysconfdir="$ac_optarg" ;;
406 -target | --target | --targe | --targ | --tar | --ta | --t)
407 ac_prev=target ;;
408 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
409 target="$ac_optarg" ;;
411 -v | -verbose | --verbose | --verbos | --verbo | --verb)
412 verbose=yes ;;
414 -version | --version | --versio | --versi | --vers)
415 echo "configure generated by autoconf version 2.13"
416 exit 0 ;;
418 -with-* | --with-*)
419 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
420 # Reject names that are not valid shell variable names.
421 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
422 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
424 ac_package=`echo $ac_package| sed 's/-/_/g'`
425 case "$ac_option" in
426 *=*) ;;
427 *) ac_optarg=yes ;;
428 esac
429 eval "with_${ac_package}='$ac_optarg'" ;;
431 -without-* | --without-*)
432 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
433 # Reject names that are not valid shell variable names.
434 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
435 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
437 ac_package=`echo $ac_package| sed 's/-/_/g'`
438 eval "with_${ac_package}=no" ;;
440 --x)
441 # Obsolete; use --with-x.
442 with_x=yes ;;
444 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
445 | --x-incl | --x-inc | --x-in | --x-i)
446 ac_prev=x_includes ;;
447 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
448 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
449 x_includes="$ac_optarg" ;;
451 -x-libraries | --x-libraries | --x-librarie | --x-librari \
452 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
453 ac_prev=x_libraries ;;
454 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
455 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
456 x_libraries="$ac_optarg" ;;
458 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
462 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
463 echo "configure: warning: $ac_option: invalid host type" 1>&2
465 if test "x$nonopt" != xNONE; then
466 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
468 nonopt="$ac_option"
471 esac
472 done
474 if test -n "$ac_prev"; then
475 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
478 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
480 # File descriptor usage:
481 # 0 standard input
482 # 1 file creation
483 # 2 errors and warnings
484 # 3 some systems may open it to /dev/tty
485 # 4 used on the Kubota Titan
486 # 6 checking for... messages and results
487 # 5 compiler messages saved in config.log
488 if test "$silent" = yes; then
489 exec 6>/dev/null
490 else
491 exec 6>&1
493 exec 5>./config.log
495 echo "\
496 This file contains any messages produced by compilers while
497 running configure, to aid debugging if configure makes a mistake.
498 " 1>&5
500 # Strip out --no-create and --no-recursion so they do not pile up.
501 # Also quote any args containing shell metacharacters.
502 ac_configure_args=
503 for ac_arg
505 case "$ac_arg" in
506 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
507 | --no-cr | --no-c) ;;
508 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
509 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
510 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
511 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
512 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
513 esac
514 done
516 # NLS nuisances.
517 # Only set these to C if already set. These must not be set unconditionally
518 # because not all systems understand e.g. LANG=C (notably SCO).
519 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
520 # Non-C LC_CTYPE values break the ctype check.
521 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
522 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
523 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
524 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
526 # confdefs.h avoids OS command line length limits that DEFS can exceed.
527 rm -rf conftest* confdefs.h
528 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
529 echo > confdefs.h
531 # A filename unique to this package, relative to the directory that
532 # configure is in, which we can look for to find out if srcdir is correct.
533 ac_unique_file=include/includes.h
535 # Find the source files, if location was not specified.
536 if test -z "$srcdir"; then
537 ac_srcdir_defaulted=yes
538 # Try the directory containing this script, then its parent.
539 ac_prog=$0
540 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
541 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
542 srcdir=$ac_confdir
543 if test ! -r $srcdir/$ac_unique_file; then
544 srcdir=..
546 else
547 ac_srcdir_defaulted=no
549 if test ! -r $srcdir/$ac_unique_file; then
550 if test "$ac_srcdir_defaulted" = yes; then
551 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
552 else
553 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
556 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
558 # Prefer explicitly selected file to automatically selected ones.
559 if test -z "$CONFIG_SITE"; then
560 if test "x$prefix" != xNONE; then
561 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
562 else
563 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
566 for ac_site_file in $CONFIG_SITE; do
567 if test -r "$ac_site_file"; then
568 echo "loading site script $ac_site_file"
569 . "$ac_site_file"
571 done
573 if test -r "$cache_file"; then
574 echo "loading cache $cache_file"
575 . $cache_file
576 else
577 echo "creating cache $cache_file"
578 > $cache_file
581 ac_ext=c
582 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
583 ac_cpp='$CPP $CPPFLAGS'
584 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
585 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
586 cross_compiling=$ac_cv_prog_cc_cross
588 ac_exeext=
589 ac_objext=o
590 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
591 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
592 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
593 ac_n= ac_c='
594 ' ac_t=' '
595 else
596 ac_n=-n ac_c= ac_t=
598 else
599 ac_n= ac_c='\c' ac_t=
605 #################################################
606 # Directory handling stuff to support both the
607 # legacy SAMBA directories and FHS compliant
608 # ones...
611 # Check whether --with-fhs or --without-fhs was given.
612 if test "${with_fhs+set}" = set; then
613 withval="$with_fhs"
614 codepagedir="\$(DATADIR)/samba/codepages"
615 configdir="${sysconfdir}/samba"
616 lockdir="\${VARDIR}/cache/samba"
617 piddir="\$(VARDIR)/run/samba"
618 logfilebase="\${VARDIR}/log/samba"
619 privatedir="\${CONFIGDIR}/private"
620 swatdir="\${DATADIR}/samba/swat"
621 else
622 codepagedir="\$(LIBDIR)/codepages"
623 configdir="\$(LIBDIR)"
624 logfilebase="\$(VARDIR)"
625 lockdir="\${VARDIR}/locks"
626 piddir="\$(VARDIR)/locks"
627 privatedir="\${prefix}/private"
628 swatdir="\${prefix}/swat"
632 #################################################
633 # set private directory location
634 # Check whether --with-privatedir or --without-privatedir was given.
635 if test "${with_privatedir+set}" = set; then
636 withval="$with_privatedir"
637 case "$withval" in
638 yes|no)
640 # Just in case anybody calls it without argument
642 echo "configure: warning: --with-privatedir called without argument - will use default" 1>&2
645 privatedir="$withval"
647 esac
651 #################################################
652 # set lock directory location
653 # Check whether --with-lockdir or --without-lockdir was given.
654 if test "${with_lockdir+set}" = set; then
655 withval="$with_lockdir"
656 case "$withval" in
657 yes|no)
659 # Just in case anybody calls it without argument
661 echo "configure: warning: --with-lockdir called without argument - will use default" 1>&2
664 lockdir="$withval"
666 esac
670 #################################################
671 # set pid directory location
672 # Check whether --with-piddir or --without-piddir was given.
673 if test "${with_piddir+set}" = set; then
674 withval="$with_piddir"
675 case "$withval" in
676 yes|no)
678 # Just in case anybody calls it without argument
680 echo "configure: warning: --with-piddir called without argument - will use default" 1>&2
683 piddir="$withval"
685 esac
689 #################################################
690 # set SWAT directory location
691 # Check whether --with-swatdir or --without-swatdir was given.
692 if test "${with_swatdir+set}" = set; then
693 withval="$with_swatdir"
694 case "$withval" in
695 yes|no)
697 # Just in case anybody does it
699 echo "configure: warning: --with-swatdir called without argument - will use default" 1>&2
702 swatdir="$withval"
704 esac
708 #################################################
709 # set configuration directory location
710 # Check whether --with-configdir or --without-configdir was given.
711 if test "${with_configdir+set}" = set; then
712 withval="$with_configdir"
713 case "$withval" in
714 yes|no)
716 # Just in case anybody does it
718 echo "configure: warning: --with-configdir called without argument - will use default" 1>&2
721 configdir="$withval"
723 esac
727 #################################################
728 # set codepage directory location
729 # Check whether --with-codepagedir or --without-codepagedir was given.
730 if test "${with_codepagedir+set}" = set; then
731 withval="$with_codepagedir"
732 case "$withval" in
733 yes|no)
735 # Just in case anybody does it
737 echo "configure: warning: --with-codepagedir called without argument - will use default" 1>&2
740 codepagedir="$withval"
742 esac
746 #################################################
747 # set log directory location
748 # Check whether --with-logfilebase or --without-logfilebase was given.
749 if test "${with_logfilebase+set}" = set; then
750 withval="$with_logfilebase"
751 case "$withval" in
752 yes|no)
754 # Just in case anybody does it
756 echo "configure: warning: --with-logfilebase called without argument - will use default" 1>&2
759 logfilebase="$withval"
761 esac
796 # compile with optimization and without debugging by default
797 CFLAGS="-O ${CFLAGS}"
799 # Check whether --enable-debug or --disable-debug was given.
800 if test "${enable_debug+set}" = set; then
801 enableval="$enable_debug"
802 if eval "test x$enable_debug = xyes"; then
803 CFLAGS="${CFLAGS} -g"
810 # Extract the first word of "gcc", so it can be a program name with args.
811 set dummy gcc; ac_word=$2
812 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
813 echo "configure:814: checking for $ac_word" >&5
814 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
815 echo $ac_n "(cached) $ac_c" 1>&6
816 else
817 if test -n "$CC"; then
818 ac_cv_prog_CC="$CC" # Let the user override the test.
819 else
820 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
821 ac_dummy="$PATH"
822 for ac_dir in $ac_dummy; do
823 test -z "$ac_dir" && ac_dir=.
824 if test -f $ac_dir/$ac_word; then
825 ac_cv_prog_CC="gcc"
826 break
828 done
829 IFS="$ac_save_ifs"
832 CC="$ac_cv_prog_CC"
833 if test -n "$CC"; then
834 echo "$ac_t""$CC" 1>&6
835 else
836 echo "$ac_t""no" 1>&6
839 if test -z "$CC"; then
840 # Extract the first word of "cc", so it can be a program name with args.
841 set dummy cc; ac_word=$2
842 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
843 echo "configure:844: checking for $ac_word" >&5
844 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
845 echo $ac_n "(cached) $ac_c" 1>&6
846 else
847 if test -n "$CC"; then
848 ac_cv_prog_CC="$CC" # Let the user override the test.
849 else
850 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
851 ac_prog_rejected=no
852 ac_dummy="$PATH"
853 for ac_dir in $ac_dummy; do
854 test -z "$ac_dir" && ac_dir=.
855 if test -f $ac_dir/$ac_word; then
856 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
857 ac_prog_rejected=yes
858 continue
860 ac_cv_prog_CC="cc"
861 break
863 done
864 IFS="$ac_save_ifs"
865 if test $ac_prog_rejected = yes; then
866 # We found a bogon in the path, so make sure we never use it.
867 set dummy $ac_cv_prog_CC
868 shift
869 if test $# -gt 0; then
870 # We chose a different compiler from the bogus one.
871 # However, it has the same basename, so the bogon will be chosen
872 # first if we set CC to just the basename; use the full file name.
873 shift
874 set dummy "$ac_dir/$ac_word" "$@"
875 shift
876 ac_cv_prog_CC="$@"
881 CC="$ac_cv_prog_CC"
882 if test -n "$CC"; then
883 echo "$ac_t""$CC" 1>&6
884 else
885 echo "$ac_t""no" 1>&6
888 if test -z "$CC"; then
889 case "`uname -s`" in
890 *win32* | *WIN32*)
891 # Extract the first word of "cl", so it can be a program name with args.
892 set dummy cl; ac_word=$2
893 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
894 echo "configure:895: checking for $ac_word" >&5
895 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
896 echo $ac_n "(cached) $ac_c" 1>&6
897 else
898 if test -n "$CC"; then
899 ac_cv_prog_CC="$CC" # Let the user override the test.
900 else
901 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
902 ac_dummy="$PATH"
903 for ac_dir in $ac_dummy; do
904 test -z "$ac_dir" && ac_dir=.
905 if test -f $ac_dir/$ac_word; then
906 ac_cv_prog_CC="cl"
907 break
909 done
910 IFS="$ac_save_ifs"
913 CC="$ac_cv_prog_CC"
914 if test -n "$CC"; then
915 echo "$ac_t""$CC" 1>&6
916 else
917 echo "$ac_t""no" 1>&6
920 esac
922 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
925 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
926 echo "configure:927: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
928 ac_ext=c
929 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
930 ac_cpp='$CPP $CPPFLAGS'
931 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
932 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
933 cross_compiling=$ac_cv_prog_cc_cross
935 cat > conftest.$ac_ext << EOF
937 #line 938 "configure"
938 #include "confdefs.h"
940 main(){return(0);}
942 if { (eval echo configure:943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
943 ac_cv_prog_cc_works=yes
944 # If we can't run a trivial program, we are probably using a cross compiler.
945 if (./conftest; exit) 2>/dev/null; then
946 ac_cv_prog_cc_cross=no
947 else
948 ac_cv_prog_cc_cross=yes
950 else
951 echo "configure: failed program was:" >&5
952 cat conftest.$ac_ext >&5
953 ac_cv_prog_cc_works=no
955 rm -fr conftest*
956 ac_ext=c
957 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
958 ac_cpp='$CPP $CPPFLAGS'
959 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
960 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
961 cross_compiling=$ac_cv_prog_cc_cross
963 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
964 if test $ac_cv_prog_cc_works = no; then
965 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
967 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
968 echo "configure:969: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
969 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
970 cross_compiling=$ac_cv_prog_cc_cross
972 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
973 echo "configure:974: checking whether we are using GNU C" >&5
974 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
975 echo $ac_n "(cached) $ac_c" 1>&6
976 else
977 cat > conftest.c <<EOF
978 #ifdef __GNUC__
979 yes;
980 #endif
982 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:983: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
983 ac_cv_prog_gcc=yes
984 else
985 ac_cv_prog_gcc=no
989 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
991 if test $ac_cv_prog_gcc = yes; then
992 GCC=yes
993 else
994 GCC=
997 ac_test_CFLAGS="${CFLAGS+set}"
998 ac_save_CFLAGS="$CFLAGS"
999 CFLAGS=
1000 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1001 echo "configure:1002: checking whether ${CC-cc} accepts -g" >&5
1002 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1003 echo $ac_n "(cached) $ac_c" 1>&6
1004 else
1005 echo 'void f(){}' > conftest.c
1006 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1007 ac_cv_prog_cc_g=yes
1008 else
1009 ac_cv_prog_cc_g=no
1011 rm -f conftest*
1015 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1016 if test "$ac_test_CFLAGS" = set; then
1017 CFLAGS="$ac_save_CFLAGS"
1018 elif test $ac_cv_prog_cc_g = yes; then
1019 if test "$GCC" = yes; then
1020 CFLAGS="-g -O2"
1021 else
1022 CFLAGS="-g"
1024 else
1025 if test "$GCC" = yes; then
1026 CFLAGS="-O2"
1027 else
1028 CFLAGS=
1032 ac_aux_dir=
1033 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1034 if test -f $ac_dir/install-sh; then
1035 ac_aux_dir=$ac_dir
1036 ac_install_sh="$ac_aux_dir/install-sh -c"
1037 break
1038 elif test -f $ac_dir/install.sh; then
1039 ac_aux_dir=$ac_dir
1040 ac_install_sh="$ac_aux_dir/install.sh -c"
1041 break
1043 done
1044 if test -z "$ac_aux_dir"; then
1045 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1047 ac_config_guess=$ac_aux_dir/config.guess
1048 ac_config_sub=$ac_aux_dir/config.sub
1049 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1051 # Find a good install program. We prefer a C program (faster),
1052 # so one script is as good as another. But avoid the broken or
1053 # incompatible versions:
1054 # SysV /etc/install, /usr/sbin/install
1055 # SunOS /usr/etc/install
1056 # IRIX /sbin/install
1057 # AIX /bin/install
1058 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1059 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1060 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1061 # ./install, which can be erroneously created by make from ./install.sh.
1062 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1063 echo "configure:1064: checking for a BSD compatible install" >&5
1064 if test -z "$INSTALL"; then
1065 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1066 echo $ac_n "(cached) $ac_c" 1>&6
1067 else
1068 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1069 for ac_dir in $PATH; do
1070 # Account for people who put trailing slashes in PATH elements.
1071 case "$ac_dir/" in
1072 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1074 # OSF1 and SCO ODT 3.0 have their own names for install.
1075 # Don't use installbsd from OSF since it installs stuff as root
1076 # by default.
1077 for ac_prog in ginstall scoinst install; do
1078 if test -f $ac_dir/$ac_prog; then
1079 if test $ac_prog = install &&
1080 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1081 # AIX install. It has an incompatible calling convention.
1083 else
1084 ac_cv_path_install="$ac_dir/$ac_prog -c"
1085 break 2
1088 done
1090 esac
1091 done
1092 IFS="$ac_save_IFS"
1095 if test "${ac_cv_path_install+set}" = set; then
1096 INSTALL="$ac_cv_path_install"
1097 else
1098 # As a last resort, use the slow shell script. We don't cache a
1099 # path for INSTALL within a source directory, because that will
1100 # break other packages using the cache if that directory is
1101 # removed, or if the path is relative.
1102 INSTALL="$ac_install_sh"
1105 echo "$ac_t""$INSTALL" 1>&6
1107 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1108 # It thinks the first close brace ends the variable substitution.
1109 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1111 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1113 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1115 for ac_prog in gawk mawk nawk awk
1117 # Extract the first word of "$ac_prog", so it can be a program name with args.
1118 set dummy $ac_prog; ac_word=$2
1119 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1120 echo "configure:1121: checking for $ac_word" >&5
1121 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1122 echo $ac_n "(cached) $ac_c" 1>&6
1123 else
1124 if test -n "$AWK"; then
1125 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1126 else
1127 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1128 ac_dummy="$PATH"
1129 for ac_dir in $ac_dummy; do
1130 test -z "$ac_dir" && ac_dir=.
1131 if test -f $ac_dir/$ac_word; then
1132 ac_cv_prog_AWK="$ac_prog"
1133 break
1135 done
1136 IFS="$ac_save_ifs"
1139 AWK="$ac_cv_prog_AWK"
1140 if test -n "$AWK"; then
1141 echo "$ac_t""$AWK" 1>&6
1142 else
1143 echo "$ac_t""no" 1>&6
1146 test -n "$AWK" && break
1147 done
1149 LD=ld
1150 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1151 echo "configure:1152: checking if the linker ($LD) is GNU ld" >&5
1152 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1153 echo $ac_n "(cached) $ac_c" 1>&6
1154 else
1155 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1156 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1157 ac_cv_prog_gnu_ld=yes
1158 else
1159 ac_cv_prog_gnu_ld=no
1163 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1165 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1166 echo "configure:1167: checking for Cygwin environment" >&5
1167 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1168 echo $ac_n "(cached) $ac_c" 1>&6
1169 else
1170 cat > conftest.$ac_ext <<EOF
1171 #line 1172 "configure"
1172 #include "confdefs.h"
1174 int main() {
1176 #ifndef __CYGWIN__
1177 #define __CYGWIN__ __CYGWIN32__
1178 #endif
1179 return __CYGWIN__;
1180 ; return 0; }
1182 if { (eval echo configure:1183: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1183 rm -rf conftest*
1184 ac_cv_cygwin=yes
1185 else
1186 echo "configure: failed program was:" >&5
1187 cat conftest.$ac_ext >&5
1188 rm -rf conftest*
1189 ac_cv_cygwin=no
1191 rm -f conftest*
1192 rm -f conftest*
1195 echo "$ac_t""$ac_cv_cygwin" 1>&6
1196 CYGWIN=
1197 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1198 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1199 echo "configure:1200: checking for mingw32 environment" >&5
1200 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1201 echo $ac_n "(cached) $ac_c" 1>&6
1202 else
1203 cat > conftest.$ac_ext <<EOF
1204 #line 1205 "configure"
1205 #include "confdefs.h"
1207 int main() {
1208 return __MINGW32__;
1209 ; return 0; }
1211 if { (eval echo configure:1212: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1212 rm -rf conftest*
1213 ac_cv_mingw32=yes
1214 else
1215 echo "configure: failed program was:" >&5
1216 cat conftest.$ac_ext >&5
1217 rm -rf conftest*
1218 ac_cv_mingw32=no
1220 rm -f conftest*
1221 rm -f conftest*
1224 echo "$ac_t""$ac_cv_mingw32" 1>&6
1225 MINGW32=
1226 test "$ac_cv_mingw32" = yes && MINGW32=yes
1229 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1230 echo "configure:1231: checking for executable suffix" >&5
1231 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1232 echo $ac_n "(cached) $ac_c" 1>&6
1233 else
1234 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1235 ac_cv_exeext=.exe
1236 else
1237 rm -f conftest*
1238 echo 'int main () { return 0; }' > conftest.$ac_ext
1239 ac_cv_exeext=
1240 if { (eval echo configure:1241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1241 for file in conftest.*; do
1242 case $file in
1243 *.c | *.o | *.obj) ;;
1244 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1245 esac
1246 done
1247 else
1248 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1250 rm -f conftest*
1251 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1255 EXEEXT=""
1256 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1257 echo "$ac_t""${ac_cv_exeext}" 1>&6
1258 ac_exeext=$EXEEXT
1260 # Extract the first word of "passwd", so it can be a program name with args.
1261 set dummy passwd; ac_word=$2
1262 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1263 echo "configure:1264: checking for $ac_word" >&5
1264 if eval "test \"`echo '$''{'ac_cv_path_passwd_program'+set}'`\" = set"; then
1265 echo $ac_n "(cached) $ac_c" 1>&6
1266 else
1267 case "$passwd_program" in
1269 ac_cv_path_passwd_program="$passwd_program" # Let the user override the test with a path.
1271 ?:/*)
1272 ac_cv_path_passwd_program="$passwd_program" # Let the user override the test with a dos path.
1275 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1276 ac_dummy="$PATH"
1277 for ac_dir in $ac_dummy; do
1278 test -z "$ac_dir" && ac_dir=.
1279 if test -f $ac_dir/$ac_word; then
1280 ac_cv_path_passwd_program="$ac_dir/$ac_word"
1281 break
1283 done
1284 IFS="$ac_save_ifs"
1285 test -z "$ac_cv_path_passwd_program" && ac_cv_path_passwd_program="/bin/passwd"
1287 esac
1289 passwd_program="$ac_cv_path_passwd_program"
1290 if test -n "$passwd_program"; then
1291 echo "$ac_t""$passwd_program" 1>&6
1292 else
1293 echo "$ac_t""no" 1>&6
1298 if test "x$CC" != xcc; then
1299 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1300 echo "configure:1301: checking whether $CC and cc understand -c and -o together" >&5
1301 else
1302 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1303 echo "configure:1304: checking whether cc understands -c and -o together" >&5
1305 set dummy $CC; ac_cc="`echo $2 |
1306 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1307 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1308 echo $ac_n "(cached) $ac_c" 1>&6
1309 else
1310 echo 'foo(){}' > conftest.c
1311 # Make sure it works both with $CC and with simple cc.
1312 # We do the test twice because some compilers refuse to overwrite an
1313 # existing .o file with -o, though they will create one.
1314 ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1315 if { (eval echo configure:1316: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1316 test -f conftest.o && { (eval echo configure:1317: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1317 then
1318 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
1319 if test "x$CC" != xcc; then
1320 # Test first that cc exists at all.
1321 if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:1322: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1322 ac_try='cc -c conftest.c -o conftest.o 1>&5'
1323 if { (eval echo configure:1324: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1324 test -f conftest.o && { (eval echo configure:1325: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1325 then
1326 # cc works too.
1328 else
1329 # cc exists but doesn't like -o.
1330 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1334 else
1335 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1337 rm -f conftest*
1340 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1341 echo "$ac_t""yes" 1>&6
1342 else
1343 echo "$ac_t""no" 1>&6
1344 cat >> confdefs.h <<\EOF
1345 #define NO_MINUS_C_MINUS_O 1
1350 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1351 BROKEN_CC=
1352 else
1353 BROKEN_CC=#
1357 echo $ac_n "checking that the C compiler understands volatile""... $ac_c" 1>&6
1358 echo "configure:1359: checking that the C compiler understands volatile" >&5
1359 if eval "test \"`echo '$''{'samba_cv_volatile'+set}'`\" = set"; then
1360 echo $ac_n "(cached) $ac_c" 1>&6
1361 else
1363 cat > conftest.$ac_ext <<EOF
1364 #line 1365 "configure"
1365 #include "confdefs.h"
1366 #include <sys/types.h>
1367 int main() {
1368 volatile int i = 0
1369 ; return 0; }
1371 if { (eval echo configure:1372: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1372 rm -rf conftest*
1373 samba_cv_volatile=yes
1374 else
1375 echo "configure: failed program was:" >&5
1376 cat conftest.$ac_ext >&5
1377 rm -rf conftest*
1378 samba_cv_volatile=no
1380 rm -f conftest*
1383 echo "$ac_t""$samba_cv_volatile" 1>&6
1384 if test x"$samba_cv_volatile" = x"yes"; then
1385 cat >> confdefs.h <<\EOF
1386 #define HAVE_VOLATILE 1
1394 # Do some error checking and defaulting for the host and target type.
1395 # The inputs are:
1396 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1398 # The rules are:
1399 # 1. You are not allowed to specify --host, --target, and nonopt at the
1400 # same time.
1401 # 2. Host defaults to nonopt.
1402 # 3. If nonopt is not specified, then host defaults to the current host,
1403 # as determined by config.guess.
1404 # 4. Target and build default to nonopt.
1405 # 5. If nonopt is not specified, then target and build default to host.
1407 # The aliases save the names the user supplied, while $host etc.
1408 # will get canonicalized.
1409 case $host---$target---$nonopt in
1410 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1411 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1412 esac
1415 # Make sure we can run config.sub.
1416 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1417 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1420 echo $ac_n "checking host system type""... $ac_c" 1>&6
1421 echo "configure:1422: checking host system type" >&5
1423 host_alias=$host
1424 case "$host_alias" in
1425 NONE)
1426 case $nonopt in
1427 NONE)
1428 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1429 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1430 fi ;;
1431 *) host_alias=$nonopt ;;
1432 esac ;;
1433 esac
1435 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1436 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1437 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1438 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1439 echo "$ac_t""$host" 1>&6
1441 echo $ac_n "checking target system type""... $ac_c" 1>&6
1442 echo "configure:1443: checking target system type" >&5
1444 target_alias=$target
1445 case "$target_alias" in
1446 NONE)
1447 case $nonopt in
1448 NONE) target_alias=$host_alias ;;
1449 *) target_alias=$nonopt ;;
1450 esac ;;
1451 esac
1453 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1454 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1455 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1456 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1457 echo "$ac_t""$target" 1>&6
1459 echo $ac_n "checking build system type""... $ac_c" 1>&6
1460 echo "configure:1461: checking build system type" >&5
1462 build_alias=$build
1463 case "$build_alias" in
1464 NONE)
1465 case $nonopt in
1466 NONE) build_alias=$host_alias ;;
1467 *) build_alias=$nonopt ;;
1468 esac ;;
1469 esac
1471 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1472 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1473 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1474 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1475 echo "$ac_t""$build" 1>&6
1477 test "$host_alias" != "$target_alias" &&
1478 test "$program_prefix$program_suffix$program_transform_name" = \
1479 NONENONEs,x,x, &&
1480 program_prefix=${target_alias}-
1483 case "$host_os" in
1484 *irix6*) cat >> confdefs.h <<\EOF
1485 #include <standards.h>
1489 esac
1493 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
1494 echo "configure:1495: checking config.cache system type" >&5
1495 if { test x"${ac_cv_host_system_type+set}" = x"set" &&
1496 test x"$ac_cv_host_system_type" != x"$host"; } ||
1497 { test x"${ac_cv_build_system_type+set}" = x"set" &&
1498 test x"$ac_cv_build_system_type" != x"$build"; } ||
1499 { test x"${ac_cv_target_system_type+set}" = x"set" &&
1500 test x"$ac_cv_target_system_type" != x"$target"; }; then
1501 echo "$ac_t""different" 1>&6
1502 { echo "configure: error: "you must remove config.cache and restart configure"" 1>&2; exit 1; }
1503 else
1504 echo "$ac_t""same" 1>&6
1506 ac_cv_host_system_type="$host"
1507 ac_cv_build_system_type="$build"
1508 ac_cv_target_system_type="$target"
1511 DYNEXP=
1514 # Config CPPFLAG settings for strange OS's that must be set
1515 # before other tests.
1517 case "$host_os" in
1518 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1519 *hpux*)
1520 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1521 echo "configure:1522: checking whether ${CC-cc} accepts -Ae" >&5
1522 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1523 echo $ac_n "(cached) $ac_c" 1>&6
1524 else
1525 echo 'void f(){}' > conftest.c
1526 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1527 ac_cv_prog_cc_Ae=yes
1528 else
1529 ac_cv_prog_cc_Ae=no
1531 rm -f conftest*
1535 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1536 # mmap on HPUX is completely broken...
1537 cat >> confdefs.h <<\EOF
1538 #define MMAP_BLACKLIST 1
1541 if test $ac_cv_prog_cc_Ae = yes; then
1542 CPPFLAGS="$CPPFLAGS -Ae"
1545 # Defines needed for HPUX support.
1546 # HPUX has bigcrypt but (sometimes?) doesn't use it for
1547 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
1549 case `uname -r` in
1550 *9*|*10*)
1551 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4 -DMAX_POSITIVE_LOCK_OFFSET=0x1ffffffffffLL"
1552 cat >> confdefs.h <<\EOF
1553 #define USE_BOTH_CRYPT_CALLS 1
1556 cat >> confdefs.h <<\EOF
1557 #define _HPUX_SOURCE 1
1560 cat >> confdefs.h <<\EOF
1561 #define _POSIX_SOURCE 1
1564 cat >> confdefs.h <<\EOF
1565 #define _ALIGNMENT_REQUIRED 1
1568 cat >> confdefs.h <<\EOF
1569 #define _MAX_ALIGNMENT 4
1573 *11*)
1574 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4 -DMAX_POSITIVE_LOCK_OFFSET=0x1ffffffffffLL"
1575 cat >> confdefs.h <<\EOF
1576 #define _HPUX_SOURCE 1
1579 cat >> confdefs.h <<\EOF
1580 #define _POSIX_SOURCE 1
1583 cat >> confdefs.h <<\EOF
1584 #define _LARGEFILE64_SOURCE 1
1587 cat >> confdefs.h <<\EOF
1588 #define POSIX_ACL_NEEDS_MASK 1
1591 cat >> confdefs.h <<\EOF
1592 #define _ALIGNMENT_REQUIRED 1
1595 cat >> confdefs.h <<\EOF
1596 #define _MAX_ALIGNMENT 4
1599 cat >> confdefs.h <<\EOF
1600 #define USE_BOTH_CRYPT_CALLS 1
1604 esac
1605 DYNEXP="-Wl,-E"
1610 # CRAY Unicos has broken const handling
1611 *unicos*)
1612 echo "$ac_t""disabling const" 1>&6
1613 CPPFLAGS="$CPPFLAGS -Dconst="
1617 # AIX4.x doesn't even admit to having large
1618 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1620 *aix4*)
1621 echo "$ac_t""enabling large file support" 1>&6
1622 CPPFLAGS="$CPPFLAGS -D_LARGE_FILES"
1623 cat >> confdefs.h <<\EOF
1624 #define _LARGE_FILES 1
1629 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
1630 # to the existance of large files..
1631 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
1632 # recommendations on large file support, however it makes the
1633 # compile work using gcc 2.7 and 2.8, whereas using the Sun
1634 # recommendation makes the compile fail on gcc2.7. JRA.
1636 *solaris*)
1637 case `uname -r` in
1638 5.0*|5.1*|5.2*|5.3*|5.5*)
1639 echo "$ac_t""no large file support" 1>&6
1641 5.*)
1642 echo "$ac_t""enabling large file support" 1>&6
1643 if test "$ac_cv_prog_gcc" = yes; then
1644 ${CC-cc} -v >conftest.c 2>&1
1645 ac_cv_gcc_compiler_version_number=`grep 'gcc version' conftest.c`
1646 rm -fr conftest.c
1647 case "$ac_cv_gcc_compiler_version_number" in
1648 *"gcc version 2.6"*|*"gcc version 2.7"*)
1649 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
1650 cat >> confdefs.h <<\EOF
1651 #define _LARGEFILE64_SOURCE 1
1656 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1657 cat >> confdefs.h <<\EOF
1658 #define _LARGEFILE64_SOURCE 1
1661 cat >> confdefs.h <<\EOF
1662 #define _FILE_OFFSET_BITS 64
1666 esac
1667 else
1668 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1669 cat >> confdefs.h <<\EOF
1670 #define _LARGEFILE64_SOURCE 1
1673 cat >> confdefs.h <<\EOF
1674 #define _FILE_OFFSET_BITS 64
1679 esac
1682 # VOS may need to have POSIX support and System V compatibility enabled.
1684 *vos*)
1685 case "$CPPFLAGS" in
1686 *-D_POSIX_C_SOURCE*)
1689 CPPFLAGS="$CPPFLAGS -D_POSIX_C_SOURCE=199506L"
1690 cat >> confdefs.h <<\EOF
1691 #define _POSIX_C_SOURCE 199506L
1695 esac
1696 case "$CPPFLAGS" in
1697 *-D_SYSV*|*-D_SVID_SOURCE*)
1700 CPPFLAGS="$CPPFLAGS -D_SYSV"
1701 cat >> confdefs.h <<\EOF
1702 #define _SYSV 1
1705 esac
1708 # Tests needed for SINIX large file support.
1710 *sysv4*)
1711 if test $host = mips-sni-sysv4 ; then
1712 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1713 echo "configure:1714: checking for LFS support" >&5
1714 old_CPPFLAGS="$CPPFLAGS"
1715 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1716 if test "$cross_compiling" = yes; then
1717 SINIX_LFS_SUPPORT=cross
1718 else
1719 cat > conftest.$ac_ext <<EOF
1720 #line 1721 "configure"
1721 #include "confdefs.h"
1723 #include <unistd.h>
1724 main () {
1725 #if _LFS64_LARGEFILE == 1
1726 exit(0);
1727 #else
1728 exit(1);
1729 #endif
1732 if { (eval echo configure:1733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1733 then
1734 SINIX_LFS_SUPPORT=yes
1735 else
1736 echo "configure: failed program was:" >&5
1737 cat conftest.$ac_ext >&5
1738 rm -fr conftest*
1739 SINIX_LFS_SUPPORT=no
1741 rm -fr conftest*
1744 CPPFLAGS="$old_CPPFLAGS"
1745 if test x$SINIX_LFS_SUPPORT = xyes ; then
1746 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1747 cat >> confdefs.h <<\EOF
1748 #define _LARGEFILE64_SOURCE 1
1751 CFLAGS="`getconf LFS64_CFLAGS` $CFLAGS"
1752 LDFLAGS="`getconf LFS64_LDFLAGS` $LDFLAGS"
1753 LIBS="`getconf LFS64_LIBS` $LIBS"
1755 echo "$ac_t""$SINIX_LFS_SUPPORT" 1>&6
1759 # Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
1761 *linux*)
1762 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1763 echo "configure:1764: checking for LFS support" >&5
1764 old_CPPFLAGS="$CPPFLAGS"
1765 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1766 if test "$cross_compiling" = yes; then
1767 LINUX_LFS_SUPPORT=cross
1768 else
1769 cat > conftest.$ac_ext <<EOF
1770 #line 1771 "configure"
1771 #include "confdefs.h"
1773 #include <unistd.h>
1774 #include <sys/utsname.h>
1775 main() {
1776 #if _LFS64_LARGEFILE == 1
1777 struct utsname uts;
1778 char *release;
1779 int major, minor;
1781 /* Ensure this is glibc 2.2 or higher */
1782 #if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
1783 int libc_major = __GLIBC__;
1784 int libc_minor = __GLIBC_MINOR__;
1786 if (libc_major < 2)
1787 exit(1);
1788 if (libc_minor < 2)
1789 exit(1);
1790 #endif
1792 /* Ensure this is kernel 2.4 or higher */
1794 uname(&uts);
1795 release = uts.release;
1796 major = atoi(strsep(&release, "."));
1797 minor = atoi(strsep(&release, "."));
1799 if (major > 2 || (major == 2 && minor > 3))
1800 exit(0);
1801 exit(1);
1802 #else
1803 exit(1);
1804 #endif
1808 if { (eval echo configure:1809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1809 then
1810 LINUX_LFS_SUPPORT=yes
1811 else
1812 echo "configure: failed program was:" >&5
1813 cat conftest.$ac_ext >&5
1814 rm -fr conftest*
1815 LINUX_LFS_SUPPORT=no
1817 rm -fr conftest*
1820 CPPFLAGS="$old_CPPFLAGS"
1821 if test x$LINUX_LFS_SUPPORT = xyes ; then
1822 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1823 cat >> confdefs.h <<\EOF
1824 #define _LARGEFILE64_SOURCE 1
1827 cat >> confdefs.h <<\EOF
1828 #define _FILE_OFFSET_BITS 64
1831 cat >> confdefs.h <<\EOF
1832 #define _GNU_SOURCE 1
1836 echo "$ac_t""$LINUX_LFS_SUPPORT" 1>&6
1839 *hurd*)
1840 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1841 echo "configure:1842: checking for LFS support" >&5
1842 old_CPPFLAGS="$CPPFLAGS"
1843 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1844 if test "$cross_compiling" = yes; then
1845 GLIBC_LFS_SUPPORT=cross
1846 else
1847 cat > conftest.$ac_ext <<EOF
1848 #line 1849 "configure"
1849 #include "confdefs.h"
1851 #include <unistd.h>
1852 main () {
1853 #if _LFS64_LARGEFILE == 1
1854 exit(0);
1855 #else
1856 exit(1);
1857 #endif
1860 if { (eval echo configure:1861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1861 then
1862 GLIBC_LFS_SUPPORT=yes
1863 else
1864 echo "configure: failed program was:" >&5
1865 cat conftest.$ac_ext >&5
1866 rm -fr conftest*
1867 GLIBC_LFS_SUPPORT=no
1869 rm -fr conftest*
1872 CPPFLAGS="$old_CPPFLAGS"
1873 if test x$GLIBC_LFS_SUPPORT = xyes ; then
1874 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1875 cat >> confdefs.h <<\EOF
1876 #define _LARGEFILE64_SOURCE 1
1879 cat >> confdefs.h <<\EOF
1880 #define _GNU_SOURCE 1
1884 echo "$ac_t""$GLIBC_LFS_SUPPORT" 1>&6
1887 esac
1889 echo $ac_n "checking for inline""... $ac_c" 1>&6
1890 echo "configure:1891: checking for inline" >&5
1891 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1892 echo $ac_n "(cached) $ac_c" 1>&6
1893 else
1894 ac_cv_c_inline=no
1895 for ac_kw in inline __inline__ __inline; do
1896 cat > conftest.$ac_ext <<EOF
1897 #line 1898 "configure"
1898 #include "confdefs.h"
1900 int main() {
1901 } $ac_kw foo() {
1902 ; return 0; }
1904 if { (eval echo configure:1905: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1905 rm -rf conftest*
1906 ac_cv_c_inline=$ac_kw; break
1907 else
1908 echo "configure: failed program was:" >&5
1909 cat conftest.$ac_ext >&5
1911 rm -f conftest*
1912 done
1916 echo "$ac_t""$ac_cv_c_inline" 1>&6
1917 case "$ac_cv_c_inline" in
1918 inline | yes) ;;
1919 no) cat >> confdefs.h <<\EOF
1920 #define inline
1923 *) cat >> confdefs.h <<EOF
1924 #define inline $ac_cv_c_inline
1927 esac
1929 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1930 echo "configure:1931: checking how to run the C preprocessor" >&5
1931 # On Suns, sometimes $CPP names a directory.
1932 if test -n "$CPP" && test -d "$CPP"; then
1933 CPP=
1935 if test -z "$CPP"; then
1936 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1937 echo $ac_n "(cached) $ac_c" 1>&6
1938 else
1939 # This must be in double quotes, not single quotes, because CPP may get
1940 # substituted into the Makefile and "${CC-cc}" will confuse make.
1941 CPP="${CC-cc} -E"
1942 # On the NeXT, cc -E runs the code through the compiler's parser,
1943 # not just through cpp.
1944 cat > conftest.$ac_ext <<EOF
1945 #line 1946 "configure"
1946 #include "confdefs.h"
1947 #include <assert.h>
1948 Syntax Error
1950 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1951 { (eval echo configure:1952: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1952 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1953 if test -z "$ac_err"; then
1955 else
1956 echo "$ac_err" >&5
1957 echo "configure: failed program was:" >&5
1958 cat conftest.$ac_ext >&5
1959 rm -rf conftest*
1960 CPP="${CC-cc} -E -traditional-cpp"
1961 cat > conftest.$ac_ext <<EOF
1962 #line 1963 "configure"
1963 #include "confdefs.h"
1964 #include <assert.h>
1965 Syntax Error
1967 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1968 { (eval echo configure:1969: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1969 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1970 if test -z "$ac_err"; then
1972 else
1973 echo "$ac_err" >&5
1974 echo "configure: failed program was:" >&5
1975 cat conftest.$ac_ext >&5
1976 rm -rf conftest*
1977 CPP="${CC-cc} -nologo -E"
1978 cat > conftest.$ac_ext <<EOF
1979 #line 1980 "configure"
1980 #include "confdefs.h"
1981 #include <assert.h>
1982 Syntax Error
1984 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1985 { (eval echo configure:1986: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1986 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1987 if test -z "$ac_err"; then
1989 else
1990 echo "$ac_err" >&5
1991 echo "configure: failed program was:" >&5
1992 cat conftest.$ac_ext >&5
1993 rm -rf conftest*
1994 CPP=/lib/cpp
1996 rm -f conftest*
1998 rm -f conftest*
2000 rm -f conftest*
2001 ac_cv_prog_CPP="$CPP"
2003 CPP="$ac_cv_prog_CPP"
2004 else
2005 ac_cv_prog_CPP="$CPP"
2007 echo "$ac_t""$CPP" 1>&6
2009 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2010 echo "configure:2011: checking for ANSI C header files" >&5
2011 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2012 echo $ac_n "(cached) $ac_c" 1>&6
2013 else
2014 cat > conftest.$ac_ext <<EOF
2015 #line 2016 "configure"
2016 #include "confdefs.h"
2017 #include <stdlib.h>
2018 #include <stdarg.h>
2019 #include <string.h>
2020 #include <float.h>
2022 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2023 { (eval echo configure:2024: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2024 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2025 if test -z "$ac_err"; then
2026 rm -rf conftest*
2027 ac_cv_header_stdc=yes
2028 else
2029 echo "$ac_err" >&5
2030 echo "configure: failed program was:" >&5
2031 cat conftest.$ac_ext >&5
2032 rm -rf conftest*
2033 ac_cv_header_stdc=no
2035 rm -f conftest*
2037 if test $ac_cv_header_stdc = yes; then
2038 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2039 cat > conftest.$ac_ext <<EOF
2040 #line 2041 "configure"
2041 #include "confdefs.h"
2042 #include <string.h>
2044 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2045 egrep "memchr" >/dev/null 2>&1; then
2047 else
2048 rm -rf conftest*
2049 ac_cv_header_stdc=no
2051 rm -f conftest*
2055 if test $ac_cv_header_stdc = yes; then
2056 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2057 cat > conftest.$ac_ext <<EOF
2058 #line 2059 "configure"
2059 #include "confdefs.h"
2060 #include <stdlib.h>
2062 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2063 egrep "free" >/dev/null 2>&1; then
2065 else
2066 rm -rf conftest*
2067 ac_cv_header_stdc=no
2069 rm -f conftest*
2073 if test $ac_cv_header_stdc = yes; then
2074 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2075 if test "$cross_compiling" = yes; then
2077 else
2078 cat > conftest.$ac_ext <<EOF
2079 #line 2080 "configure"
2080 #include "confdefs.h"
2081 #include <ctype.h>
2082 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2083 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2084 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2085 int main () { int i; for (i = 0; i < 256; i++)
2086 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2087 exit (0); }
2090 if { (eval echo configure:2091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2091 then
2093 else
2094 echo "configure: failed program was:" >&5
2095 cat conftest.$ac_ext >&5
2096 rm -fr conftest*
2097 ac_cv_header_stdc=no
2099 rm -fr conftest*
2105 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2106 if test $ac_cv_header_stdc = yes; then
2107 cat >> confdefs.h <<\EOF
2108 #define STDC_HEADERS 1
2113 ac_header_dirent=no
2114 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
2116 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2117 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
2118 echo "configure:2119: checking for $ac_hdr that defines DIR" >&5
2119 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
2120 echo $ac_n "(cached) $ac_c" 1>&6
2121 else
2122 cat > conftest.$ac_ext <<EOF
2123 #line 2124 "configure"
2124 #include "confdefs.h"
2125 #include <sys/types.h>
2126 #include <$ac_hdr>
2127 int main() {
2128 DIR *dirp = 0;
2129 ; return 0; }
2131 if { (eval echo configure:2132: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2132 rm -rf conftest*
2133 eval "ac_cv_header_dirent_$ac_safe=yes"
2134 else
2135 echo "configure: failed program was:" >&5
2136 cat conftest.$ac_ext >&5
2137 rm -rf conftest*
2138 eval "ac_cv_header_dirent_$ac_safe=no"
2140 rm -f conftest*
2142 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2143 echo "$ac_t""yes" 1>&6
2144 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2145 cat >> confdefs.h <<EOF
2146 #define $ac_tr_hdr 1
2148 ac_header_dirent=$ac_hdr; break
2149 else
2150 echo "$ac_t""no" 1>&6
2152 done
2153 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2154 if test $ac_header_dirent = dirent.h; then
2155 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2156 echo "configure:2157: checking for opendir in -ldir" >&5
2157 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2158 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2159 echo $ac_n "(cached) $ac_c" 1>&6
2160 else
2161 ac_save_LIBS="$LIBS"
2162 LIBS="-ldir $LIBS"
2163 cat > conftest.$ac_ext <<EOF
2164 #line 2165 "configure"
2165 #include "confdefs.h"
2166 /* Override any gcc2 internal prototype to avoid an error. */
2167 /* We use char because int might match the return type of a gcc2
2168 builtin and then its argument prototype would still apply. */
2169 char opendir();
2171 int main() {
2172 opendir()
2173 ; return 0; }
2175 if { (eval echo configure:2176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2176 rm -rf conftest*
2177 eval "ac_cv_lib_$ac_lib_var=yes"
2178 else
2179 echo "configure: failed program was:" >&5
2180 cat conftest.$ac_ext >&5
2181 rm -rf conftest*
2182 eval "ac_cv_lib_$ac_lib_var=no"
2184 rm -f conftest*
2185 LIBS="$ac_save_LIBS"
2188 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2189 echo "$ac_t""yes" 1>&6
2190 LIBS="$LIBS -ldir"
2191 else
2192 echo "$ac_t""no" 1>&6
2195 else
2196 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2197 echo "configure:2198: checking for opendir in -lx" >&5
2198 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2199 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2200 echo $ac_n "(cached) $ac_c" 1>&6
2201 else
2202 ac_save_LIBS="$LIBS"
2203 LIBS="-lx $LIBS"
2204 cat > conftest.$ac_ext <<EOF
2205 #line 2206 "configure"
2206 #include "confdefs.h"
2207 /* Override any gcc2 internal prototype to avoid an error. */
2208 /* We use char because int might match the return type of a gcc2
2209 builtin and then its argument prototype would still apply. */
2210 char opendir();
2212 int main() {
2213 opendir()
2214 ; return 0; }
2216 if { (eval echo configure:2217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2217 rm -rf conftest*
2218 eval "ac_cv_lib_$ac_lib_var=yes"
2219 else
2220 echo "configure: failed program was:" >&5
2221 cat conftest.$ac_ext >&5
2222 rm -rf conftest*
2223 eval "ac_cv_lib_$ac_lib_var=no"
2225 rm -f conftest*
2226 LIBS="$ac_save_LIBS"
2229 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2230 echo "$ac_t""yes" 1>&6
2231 LIBS="$LIBS -lx"
2232 else
2233 echo "$ac_t""no" 1>&6
2238 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2239 echo "configure:2240: checking whether time.h and sys/time.h may both be included" >&5
2240 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2241 echo $ac_n "(cached) $ac_c" 1>&6
2242 else
2243 cat > conftest.$ac_ext <<EOF
2244 #line 2245 "configure"
2245 #include "confdefs.h"
2246 #include <sys/types.h>
2247 #include <sys/time.h>
2248 #include <time.h>
2249 int main() {
2250 struct tm *tp;
2251 ; return 0; }
2253 if { (eval echo configure:2254: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2254 rm -rf conftest*
2255 ac_cv_header_time=yes
2256 else
2257 echo "configure: failed program was:" >&5
2258 cat conftest.$ac_ext >&5
2259 rm -rf conftest*
2260 ac_cv_header_time=no
2262 rm -f conftest*
2265 echo "$ac_t""$ac_cv_header_time" 1>&6
2266 if test $ac_cv_header_time = yes; then
2267 cat >> confdefs.h <<\EOF
2268 #define TIME_WITH_SYS_TIME 1
2273 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2274 echo "configure:2275: checking for sys/wait.h that is POSIX.1 compatible" >&5
2275 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2276 echo $ac_n "(cached) $ac_c" 1>&6
2277 else
2278 cat > conftest.$ac_ext <<EOF
2279 #line 2280 "configure"
2280 #include "confdefs.h"
2281 #include <sys/types.h>
2282 #include <sys/wait.h>
2283 #ifndef WEXITSTATUS
2284 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2285 #endif
2286 #ifndef WIFEXITED
2287 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2288 #endif
2289 int main() {
2290 int s;
2291 wait (&s);
2292 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2293 ; return 0; }
2295 if { (eval echo configure:2296: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2296 rm -rf conftest*
2297 ac_cv_header_sys_wait_h=yes
2298 else
2299 echo "configure: failed program was:" >&5
2300 cat conftest.$ac_ext >&5
2301 rm -rf conftest*
2302 ac_cv_header_sys_wait_h=no
2304 rm -f conftest*
2307 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2308 if test $ac_cv_header_sys_wait_h = yes; then
2309 cat >> confdefs.h <<\EOF
2310 #define HAVE_SYS_WAIT_H 1
2315 for ac_hdr in arpa/inet.h sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h
2317 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2318 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2319 echo "configure:2320: checking for $ac_hdr" >&5
2320 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2321 echo $ac_n "(cached) $ac_c" 1>&6
2322 else
2323 cat > conftest.$ac_ext <<EOF
2324 #line 2325 "configure"
2325 #include "confdefs.h"
2326 #include <$ac_hdr>
2328 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2329 { (eval echo configure:2330: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2330 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2331 if test -z "$ac_err"; then
2332 rm -rf conftest*
2333 eval "ac_cv_header_$ac_safe=yes"
2334 else
2335 echo "$ac_err" >&5
2336 echo "configure: failed program was:" >&5
2337 cat conftest.$ac_ext >&5
2338 rm -rf conftest*
2339 eval "ac_cv_header_$ac_safe=no"
2341 rm -f conftest*
2343 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2344 echo "$ac_t""yes" 1>&6
2345 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2346 cat >> confdefs.h <<EOF
2347 #define $ac_tr_hdr 1
2350 else
2351 echo "$ac_t""no" 1>&6
2353 done
2355 for ac_hdr in unistd.h utime.h grp.h sys/id.h limits.h memory.h net/if.h
2357 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2358 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2359 echo "configure:2360: checking for $ac_hdr" >&5
2360 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2361 echo $ac_n "(cached) $ac_c" 1>&6
2362 else
2363 cat > conftest.$ac_ext <<EOF
2364 #line 2365 "configure"
2365 #include "confdefs.h"
2366 #include <$ac_hdr>
2368 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2369 { (eval echo configure:2370: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2370 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2371 if test -z "$ac_err"; then
2372 rm -rf conftest*
2373 eval "ac_cv_header_$ac_safe=yes"
2374 else
2375 echo "$ac_err" >&5
2376 echo "configure: failed program was:" >&5
2377 cat conftest.$ac_ext >&5
2378 rm -rf conftest*
2379 eval "ac_cv_header_$ac_safe=no"
2381 rm -f conftest*
2383 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2384 echo "$ac_t""yes" 1>&6
2385 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2386 cat >> confdefs.h <<EOF
2387 #define $ac_tr_hdr 1
2390 else
2391 echo "$ac_t""no" 1>&6
2393 done
2395 for ac_hdr in compat.h rpc/rpc.h rpcsvc/nis.h rpcsvc/yp_prot.h rpcsvc/ypclnt.h
2397 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2398 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2399 echo "configure:2400: checking for $ac_hdr" >&5
2400 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2401 echo $ac_n "(cached) $ac_c" 1>&6
2402 else
2403 cat > conftest.$ac_ext <<EOF
2404 #line 2405 "configure"
2405 #include "confdefs.h"
2406 #include <$ac_hdr>
2408 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2409 { (eval echo configure:2410: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2410 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2411 if test -z "$ac_err"; then
2412 rm -rf conftest*
2413 eval "ac_cv_header_$ac_safe=yes"
2414 else
2415 echo "$ac_err" >&5
2416 echo "configure: failed program was:" >&5
2417 cat conftest.$ac_ext >&5
2418 rm -rf conftest*
2419 eval "ac_cv_header_$ac_safe=no"
2421 rm -f conftest*
2423 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2424 echo "$ac_t""yes" 1>&6
2425 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2426 cat >> confdefs.h <<EOF
2427 #define $ac_tr_hdr 1
2430 else
2431 echo "$ac_t""no" 1>&6
2433 done
2435 for ac_hdr in stdlib.h string.h strings.h syslog.h sys/file.h
2437 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2438 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2439 echo "configure:2440: checking for $ac_hdr" >&5
2440 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2441 echo $ac_n "(cached) $ac_c" 1>&6
2442 else
2443 cat > conftest.$ac_ext <<EOF
2444 #line 2445 "configure"
2445 #include "confdefs.h"
2446 #include <$ac_hdr>
2448 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2449 { (eval echo configure:2450: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2450 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2451 if test -z "$ac_err"; then
2452 rm -rf conftest*
2453 eval "ac_cv_header_$ac_safe=yes"
2454 else
2455 echo "$ac_err" >&5
2456 echo "configure: failed program was:" >&5
2457 cat conftest.$ac_ext >&5
2458 rm -rf conftest*
2459 eval "ac_cv_header_$ac_safe=no"
2461 rm -f conftest*
2463 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2464 echo "$ac_t""yes" 1>&6
2465 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2466 cat >> confdefs.h <<EOF
2467 #define $ac_tr_hdr 1
2470 else
2471 echo "$ac_t""no" 1>&6
2473 done
2475 for ac_hdr in sys/param.h ctype.h sys/wait.h sys/resource.h sys/ioctl.h sys/ipc.h sys/mode.h
2477 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2478 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2479 echo "configure:2480: checking for $ac_hdr" >&5
2480 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2481 echo $ac_n "(cached) $ac_c" 1>&6
2482 else
2483 cat > conftest.$ac_ext <<EOF
2484 #line 2485 "configure"
2485 #include "confdefs.h"
2486 #include <$ac_hdr>
2488 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2489 { (eval echo configure:2490: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2490 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2491 if test -z "$ac_err"; then
2492 rm -rf conftest*
2493 eval "ac_cv_header_$ac_safe=yes"
2494 else
2495 echo "$ac_err" >&5
2496 echo "configure: failed program was:" >&5
2497 cat conftest.$ac_ext >&5
2498 rm -rf conftest*
2499 eval "ac_cv_header_$ac_safe=no"
2501 rm -f conftest*
2503 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2504 echo "$ac_t""yes" 1>&6
2505 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2506 cat >> confdefs.h <<EOF
2507 #define $ac_tr_hdr 1
2510 else
2511 echo "$ac_t""no" 1>&6
2513 done
2515 for ac_hdr in sys/mman.h sys/filio.h sys/priv.h sys/shm.h sys/socket.h
2517 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2518 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2519 echo "configure:2520: checking for $ac_hdr" >&5
2520 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2521 echo $ac_n "(cached) $ac_c" 1>&6
2522 else
2523 cat > conftest.$ac_ext <<EOF
2524 #line 2525 "configure"
2525 #include "confdefs.h"
2526 #include <$ac_hdr>
2528 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2529 { (eval echo configure:2530: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2530 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2531 if test -z "$ac_err"; then
2532 rm -rf conftest*
2533 eval "ac_cv_header_$ac_safe=yes"
2534 else
2535 echo "$ac_err" >&5
2536 echo "configure: failed program was:" >&5
2537 cat conftest.$ac_ext >&5
2538 rm -rf conftest*
2539 eval "ac_cv_header_$ac_safe=no"
2541 rm -f conftest*
2543 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2544 echo "$ac_t""yes" 1>&6
2545 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2546 cat >> confdefs.h <<EOF
2547 #define $ac_tr_hdr 1
2550 else
2551 echo "$ac_t""no" 1>&6
2553 done
2555 for ac_hdr in syslog.h sys/syslog.h sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h termio.h
2557 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2558 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2559 echo "configure:2560: checking for $ac_hdr" >&5
2560 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2561 echo $ac_n "(cached) $ac_c" 1>&6
2562 else
2563 cat > conftest.$ac_ext <<EOF
2564 #line 2565 "configure"
2565 #include "confdefs.h"
2566 #include <$ac_hdr>
2568 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2569 { (eval echo configure:2570: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2570 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2571 if test -z "$ac_err"; then
2572 rm -rf conftest*
2573 eval "ac_cv_header_$ac_safe=yes"
2574 else
2575 echo "$ac_err" >&5
2576 echo "configure: failed program was:" >&5
2577 cat conftest.$ac_ext >&5
2578 rm -rf conftest*
2579 eval "ac_cv_header_$ac_safe=no"
2581 rm -f conftest*
2583 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2584 echo "$ac_t""yes" 1>&6
2585 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2586 cat >> confdefs.h <<EOF
2587 #define $ac_tr_hdr 1
2590 else
2591 echo "$ac_t""no" 1>&6
2593 done
2595 for ac_hdr in sys/termio.h sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h
2597 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2598 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2599 echo "configure:2600: checking for $ac_hdr" >&5
2600 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2601 echo $ac_n "(cached) $ac_c" 1>&6
2602 else
2603 cat > conftest.$ac_ext <<EOF
2604 #line 2605 "configure"
2605 #include "confdefs.h"
2606 #include <$ac_hdr>
2608 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2609 { (eval echo configure:2610: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2610 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2611 if test -z "$ac_err"; then
2612 rm -rf conftest*
2613 eval "ac_cv_header_$ac_safe=yes"
2614 else
2615 echo "$ac_err" >&5
2616 echo "configure: failed program was:" >&5
2617 cat conftest.$ac_ext >&5
2618 rm -rf conftest*
2619 eval "ac_cv_header_$ac_safe=no"
2621 rm -f conftest*
2623 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2624 echo "$ac_t""yes" 1>&6
2625 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2626 cat >> confdefs.h <<EOF
2627 #define $ac_tr_hdr 1
2630 else
2631 echo "$ac_t""no" 1>&6
2633 done
2635 for ac_hdr in security/pam_modules.h security/_pam_macros.h dlfcn.h synch.h pthread.h nsswitch.h
2637 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2638 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2639 echo "configure:2640: checking for $ac_hdr" >&5
2640 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2641 echo $ac_n "(cached) $ac_c" 1>&6
2642 else
2643 cat > conftest.$ac_ext <<EOF
2644 #line 2645 "configure"
2645 #include "confdefs.h"
2646 #include <$ac_hdr>
2648 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2649 { (eval echo configure:2650: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2650 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2651 if test -z "$ac_err"; then
2652 rm -rf conftest*
2653 eval "ac_cv_header_$ac_safe=yes"
2654 else
2655 echo "$ac_err" >&5
2656 echo "configure: failed program was:" >&5
2657 cat conftest.$ac_ext >&5
2658 rm -rf conftest*
2659 eval "ac_cv_header_$ac_safe=no"
2661 rm -f conftest*
2663 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2664 echo "$ac_t""yes" 1>&6
2665 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2666 cat >> confdefs.h <<EOF
2667 #define $ac_tr_hdr 1
2670 else
2671 echo "$ac_t""no" 1>&6
2673 done
2677 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
2678 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
2680 case "$host_os" in
2681 *hpux*)
2682 cat > conftest.$ac_ext <<EOF
2683 #line 2684 "configure"
2684 #include "confdefs.h"
2685 #include <shadow.h>
2686 int main() {
2687 struct spwd testme
2688 ; return 0; }
2690 if { (eval echo configure:2691: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2691 rm -rf conftest*
2692 ac_cv_header_shadow_h=yes
2693 else
2694 echo "configure: failed program was:" >&5
2695 cat conftest.$ac_ext >&5
2696 rm -rf conftest*
2697 ac_cv_header_shadow_h=no
2699 rm -f conftest*
2700 if test x"$ac_cv_header_shadow_h" = x"yes"; then
2701 cat >> confdefs.h <<\EOF
2702 #define HAVE_SHADOW_H 1
2707 esac
2708 for ac_hdr in shadow.h netinet/ip.h netinet/tcp.h netinet/in_systm.h netinet/in_ip.h
2710 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2711 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2712 echo "configure:2713: checking for $ac_hdr" >&5
2713 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2714 echo $ac_n "(cached) $ac_c" 1>&6
2715 else
2716 cat > conftest.$ac_ext <<EOF
2717 #line 2718 "configure"
2718 #include "confdefs.h"
2719 #include <$ac_hdr>
2721 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2722 { (eval echo configure:2723: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2723 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2724 if test -z "$ac_err"; then
2725 rm -rf conftest*
2726 eval "ac_cv_header_$ac_safe=yes"
2727 else
2728 echo "$ac_err" >&5
2729 echo "configure: failed program was:" >&5
2730 cat conftest.$ac_ext >&5
2731 rm -rf conftest*
2732 eval "ac_cv_header_$ac_safe=no"
2734 rm -f conftest*
2736 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2737 echo "$ac_t""yes" 1>&6
2738 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2739 cat >> confdefs.h <<EOF
2740 #define $ac_tr_hdr 1
2743 else
2744 echo "$ac_t""no" 1>&6
2746 done
2748 for ac_hdr in nss.h nss_common.h ns_api.h sys/security.h security/pam_appl.h security/pam_modules.h
2750 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2751 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2752 echo "configure:2753: checking for $ac_hdr" >&5
2753 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2754 echo $ac_n "(cached) $ac_c" 1>&6
2755 else
2756 cat > conftest.$ac_ext <<EOF
2757 #line 2758 "configure"
2758 #include "confdefs.h"
2759 #include <$ac_hdr>
2761 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2762 { (eval echo configure:2763: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2763 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2764 if test -z "$ac_err"; then
2765 rm -rf conftest*
2766 eval "ac_cv_header_$ac_safe=yes"
2767 else
2768 echo "$ac_err" >&5
2769 echo "configure: failed program was:" >&5
2770 cat conftest.$ac_ext >&5
2771 rm -rf conftest*
2772 eval "ac_cv_header_$ac_safe=no"
2774 rm -f conftest*
2776 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2777 echo "$ac_t""yes" 1>&6
2778 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2779 cat >> confdefs.h <<EOF
2780 #define $ac_tr_hdr 1
2783 else
2784 echo "$ac_t""no" 1>&6
2786 done
2788 for ac_hdr in stropts.h poll.h
2790 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2791 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2792 echo "configure:2793: checking for $ac_hdr" >&5
2793 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2794 echo $ac_n "(cached) $ac_c" 1>&6
2795 else
2796 cat > conftest.$ac_ext <<EOF
2797 #line 2798 "configure"
2798 #include "confdefs.h"
2799 #include <$ac_hdr>
2801 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2802 { (eval echo configure:2803: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2803 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2804 if test -z "$ac_err"; then
2805 rm -rf conftest*
2806 eval "ac_cv_header_$ac_safe=yes"
2807 else
2808 echo "$ac_err" >&5
2809 echo "configure: failed program was:" >&5
2810 cat conftest.$ac_ext >&5
2811 rm -rf conftest*
2812 eval "ac_cv_header_$ac_safe=no"
2814 rm -f conftest*
2816 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2817 echo "$ac_t""yes" 1>&6
2818 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2819 cat >> confdefs.h <<EOF
2820 #define $ac_tr_hdr 1
2823 else
2824 echo "$ac_t""no" 1>&6
2826 done
2828 for ac_hdr in sys/capability.h syscall.h sys/syscall.h
2830 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2831 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2832 echo "configure:2833: checking for $ac_hdr" >&5
2833 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2834 echo $ac_n "(cached) $ac_c" 1>&6
2835 else
2836 cat > conftest.$ac_ext <<EOF
2837 #line 2838 "configure"
2838 #include "confdefs.h"
2839 #include <$ac_hdr>
2841 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2842 { (eval echo configure:2843: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2843 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2844 if test -z "$ac_err"; then
2845 rm -rf conftest*
2846 eval "ac_cv_header_$ac_safe=yes"
2847 else
2848 echo "$ac_err" >&5
2849 echo "configure: failed program was:" >&5
2850 cat conftest.$ac_ext >&5
2851 rm -rf conftest*
2852 eval "ac_cv_header_$ac_safe=no"
2854 rm -f conftest*
2856 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2857 echo "$ac_t""yes" 1>&6
2858 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2859 cat >> confdefs.h <<EOF
2860 #define $ac_tr_hdr 1
2863 else
2864 echo "$ac_t""no" 1>&6
2866 done
2868 for ac_hdr in sys/acl.h sys/cdefs.h glob.h
2870 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2871 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2872 echo "configure:2873: checking for $ac_hdr" >&5
2873 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2874 echo $ac_n "(cached) $ac_c" 1>&6
2875 else
2876 cat > conftest.$ac_ext <<EOF
2877 #line 2878 "configure"
2878 #include "confdefs.h"
2879 #include <$ac_hdr>
2881 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2882 { (eval echo configure:2883: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2883 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2884 if test -z "$ac_err"; then
2885 rm -rf conftest*
2886 eval "ac_cv_header_$ac_safe=yes"
2887 else
2888 echo "$ac_err" >&5
2889 echo "configure: failed program was:" >&5
2890 cat conftest.$ac_ext >&5
2891 rm -rf conftest*
2892 eval "ac_cv_header_$ac_safe=no"
2894 rm -f conftest*
2896 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2897 echo "$ac_t""yes" 1>&6
2898 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2899 cat >> confdefs.h <<EOF
2900 #define $ac_tr_hdr 1
2903 else
2904 echo "$ac_t""no" 1>&6
2906 done
2909 # For experimental utmp support (lastlog on some BSD-like systems)
2910 for ac_hdr in utmp.h utmpx.h lastlog.h
2912 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2913 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2914 echo "configure:2915: checking for $ac_hdr" >&5
2915 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2916 echo $ac_n "(cached) $ac_c" 1>&6
2917 else
2918 cat > conftest.$ac_ext <<EOF
2919 #line 2920 "configure"
2920 #include "confdefs.h"
2921 #include <$ac_hdr>
2923 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2924 { (eval echo configure:2925: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2925 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2926 if test -z "$ac_err"; then
2927 rm -rf conftest*
2928 eval "ac_cv_header_$ac_safe=yes"
2929 else
2930 echo "$ac_err" >&5
2931 echo "configure: failed program was:" >&5
2932 cat conftest.$ac_ext >&5
2933 rm -rf conftest*
2934 eval "ac_cv_header_$ac_safe=no"
2936 rm -f conftest*
2938 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2939 echo "$ac_t""yes" 1>&6
2940 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2941 cat >> confdefs.h <<EOF
2942 #define $ac_tr_hdr 1
2945 else
2946 echo "$ac_t""no" 1>&6
2948 done
2951 # For quotas on Veritas VxFS filesystems
2952 for ac_hdr in sys/fs/vx_quota.h
2954 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2955 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2956 echo "configure:2957: checking for $ac_hdr" >&5
2957 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2958 echo $ac_n "(cached) $ac_c" 1>&6
2959 else
2960 cat > conftest.$ac_ext <<EOF
2961 #line 2962 "configure"
2962 #include "confdefs.h"
2963 #include <$ac_hdr>
2965 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2966 { (eval echo configure:2967: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2967 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2968 if test -z "$ac_err"; then
2969 rm -rf conftest*
2970 eval "ac_cv_header_$ac_safe=yes"
2971 else
2972 echo "$ac_err" >&5
2973 echo "configure: failed program was:" >&5
2974 cat conftest.$ac_ext >&5
2975 rm -rf conftest*
2976 eval "ac_cv_header_$ac_safe=no"
2978 rm -f conftest*
2980 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2981 echo "$ac_t""yes" 1>&6
2982 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2983 cat >> confdefs.h <<EOF
2984 #define $ac_tr_hdr 1
2987 else
2988 echo "$ac_t""no" 1>&6
2990 done
2993 # For quotas on Linux XFS filesystems
2994 for ac_hdr in linux/xqm.h
2996 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2997 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2998 echo "configure:2999: checking for $ac_hdr" >&5
2999 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3000 echo $ac_n "(cached) $ac_c" 1>&6
3001 else
3002 cat > conftest.$ac_ext <<EOF
3003 #line 3004 "configure"
3004 #include "confdefs.h"
3005 #include <$ac_hdr>
3007 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3008 { (eval echo configure:3009: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3009 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3010 if test -z "$ac_err"; then
3011 rm -rf conftest*
3012 eval "ac_cv_header_$ac_safe=yes"
3013 else
3014 echo "$ac_err" >&5
3015 echo "configure: failed program was:" >&5
3016 cat conftest.$ac_ext >&5
3017 rm -rf conftest*
3018 eval "ac_cv_header_$ac_safe=no"
3020 rm -f conftest*
3022 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3023 echo "$ac_t""yes" 1>&6
3024 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3025 cat >> confdefs.h <<EOF
3026 #define $ac_tr_hdr 1
3029 else
3030 echo "$ac_t""no" 1>&6
3032 done
3035 echo $ac_n "checking size of int""... $ac_c" 1>&6
3036 echo "configure:3037: checking size of int" >&5
3037 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
3038 echo $ac_n "(cached) $ac_c" 1>&6
3039 else
3040 if test "$cross_compiling" = yes; then
3041 ac_cv_sizeof_int=cross
3042 else
3043 cat > conftest.$ac_ext <<EOF
3044 #line 3045 "configure"
3045 #include "confdefs.h"
3046 #include <stdio.h>
3047 int main()
3049 FILE *f=fopen("conftestval", "w");
3050 if (!f) return(1);
3051 fprintf(f, "%d\n", sizeof(int));
3052 return(0);
3055 if { (eval echo configure:3056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3056 then
3057 ac_cv_sizeof_int=`cat conftestval`
3058 else
3059 echo "configure: failed program was:" >&5
3060 cat conftest.$ac_ext >&5
3061 rm -fr conftest*
3062 ac_cv_sizeof_int=0
3064 rm -fr conftest*
3068 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
3069 cat >> confdefs.h <<EOF
3070 #define SIZEOF_INT $ac_cv_sizeof_int
3074 echo $ac_n "checking size of long""... $ac_c" 1>&6
3075 echo "configure:3076: checking size of long" >&5
3076 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
3077 echo $ac_n "(cached) $ac_c" 1>&6
3078 else
3079 if test "$cross_compiling" = yes; then
3080 ac_cv_sizeof_long=cross
3081 else
3082 cat > conftest.$ac_ext <<EOF
3083 #line 3084 "configure"
3084 #include "confdefs.h"
3085 #include <stdio.h>
3086 int main()
3088 FILE *f=fopen("conftestval", "w");
3089 if (!f) return(1);
3090 fprintf(f, "%d\n", sizeof(long));
3091 return(0);
3094 if { (eval echo configure:3095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3095 then
3096 ac_cv_sizeof_long=`cat conftestval`
3097 else
3098 echo "configure: failed program was:" >&5
3099 cat conftest.$ac_ext >&5
3100 rm -fr conftest*
3101 ac_cv_sizeof_long=0
3103 rm -fr conftest*
3107 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
3108 cat >> confdefs.h <<EOF
3109 #define SIZEOF_LONG $ac_cv_sizeof_long
3113 echo $ac_n "checking size of short""... $ac_c" 1>&6
3114 echo "configure:3115: checking size of short" >&5
3115 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
3116 echo $ac_n "(cached) $ac_c" 1>&6
3117 else
3118 if test "$cross_compiling" = yes; then
3119 ac_cv_sizeof_short=cross
3120 else
3121 cat > conftest.$ac_ext <<EOF
3122 #line 3123 "configure"
3123 #include "confdefs.h"
3124 #include <stdio.h>
3125 int main()
3127 FILE *f=fopen("conftestval", "w");
3128 if (!f) return(1);
3129 fprintf(f, "%d\n", sizeof(short));
3130 return(0);
3133 if { (eval echo configure:3134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3134 then
3135 ac_cv_sizeof_short=`cat conftestval`
3136 else
3137 echo "configure: failed program was:" >&5
3138 cat conftest.$ac_ext >&5
3139 rm -fr conftest*
3140 ac_cv_sizeof_short=0
3142 rm -fr conftest*
3146 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
3147 cat >> confdefs.h <<EOF
3148 #define SIZEOF_SHORT $ac_cv_sizeof_short
3153 echo $ac_n "checking for working const""... $ac_c" 1>&6
3154 echo "configure:3155: checking for working const" >&5
3155 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3156 echo $ac_n "(cached) $ac_c" 1>&6
3157 else
3158 cat > conftest.$ac_ext <<EOF
3159 #line 3160 "configure"
3160 #include "confdefs.h"
3162 int main() {
3164 /* Ultrix mips cc rejects this. */
3165 typedef int charset[2]; const charset x;
3166 /* SunOS 4.1.1 cc rejects this. */
3167 char const *const *ccp;
3168 char **p;
3169 /* NEC SVR4.0.2 mips cc rejects this. */
3170 struct point {int x, y;};
3171 static struct point const zero = {0,0};
3172 /* AIX XL C 1.02.0.0 rejects this.
3173 It does not let you subtract one const X* pointer from another in an arm
3174 of an if-expression whose if-part is not a constant expression */
3175 const char *g = "string";
3176 ccp = &g + (g ? g-g : 0);
3177 /* HPUX 7.0 cc rejects these. */
3178 ++ccp;
3179 p = (char**) ccp;
3180 ccp = (char const *const *) p;
3181 { /* SCO 3.2v4 cc rejects this. */
3182 char *t;
3183 char const *s = 0 ? (char *) 0 : (char const *) 0;
3185 *t++ = 0;
3187 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3188 int x[] = {25, 17};
3189 const int *foo = &x[0];
3190 ++foo;
3192 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3193 typedef const int *iptr;
3194 iptr p = 0;
3195 ++p;
3197 { /* AIX XL C 1.02.0.0 rejects this saying
3198 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3199 struct s { int j; const int *ap[3]; };
3200 struct s *b; b->j = 5;
3202 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3203 const int foo = 10;
3206 ; return 0; }
3208 if { (eval echo configure:3209: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3209 rm -rf conftest*
3210 ac_cv_c_const=yes
3211 else
3212 echo "configure: failed program was:" >&5
3213 cat conftest.$ac_ext >&5
3214 rm -rf conftest*
3215 ac_cv_c_const=no
3217 rm -f conftest*
3220 echo "$ac_t""$ac_cv_c_const" 1>&6
3221 if test $ac_cv_c_const = no; then
3222 cat >> confdefs.h <<\EOF
3223 #define const
3228 echo $ac_n "checking for inline""... $ac_c" 1>&6
3229 echo "configure:3230: checking for inline" >&5
3230 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3231 echo $ac_n "(cached) $ac_c" 1>&6
3232 else
3233 ac_cv_c_inline=no
3234 for ac_kw in inline __inline__ __inline; do
3235 cat > conftest.$ac_ext <<EOF
3236 #line 3237 "configure"
3237 #include "confdefs.h"
3239 int main() {
3240 } $ac_kw foo() {
3241 ; return 0; }
3243 if { (eval echo configure:3244: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3244 rm -rf conftest*
3245 ac_cv_c_inline=$ac_kw; break
3246 else
3247 echo "configure: failed program was:" >&5
3248 cat conftest.$ac_ext >&5
3250 rm -f conftest*
3251 done
3255 echo "$ac_t""$ac_cv_c_inline" 1>&6
3256 case "$ac_cv_c_inline" in
3257 inline | yes) ;;
3258 no) cat >> confdefs.h <<\EOF
3259 #define inline
3262 *) cat >> confdefs.h <<EOF
3263 #define inline $ac_cv_c_inline
3266 esac
3268 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3269 echo "configure:3270: checking whether byte ordering is bigendian" >&5
3270 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3271 echo $ac_n "(cached) $ac_c" 1>&6
3272 else
3273 ac_cv_c_bigendian=unknown
3274 # See if sys/param.h defines the BYTE_ORDER macro.
3275 cat > conftest.$ac_ext <<EOF
3276 #line 3277 "configure"
3277 #include "confdefs.h"
3278 #include <sys/types.h>
3279 #include <sys/param.h>
3280 int main() {
3282 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3283 bogus endian macros
3284 #endif
3285 ; return 0; }
3287 if { (eval echo configure:3288: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3288 rm -rf conftest*
3289 # It does; now see whether it defined to BIG_ENDIAN or not.
3290 cat > conftest.$ac_ext <<EOF
3291 #line 3292 "configure"
3292 #include "confdefs.h"
3293 #include <sys/types.h>
3294 #include <sys/param.h>
3295 int main() {
3297 #if BYTE_ORDER != BIG_ENDIAN
3298 not big endian
3299 #endif
3300 ; return 0; }
3302 if { (eval echo configure:3303: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3303 rm -rf conftest*
3304 ac_cv_c_bigendian=yes
3305 else
3306 echo "configure: failed program was:" >&5
3307 cat conftest.$ac_ext >&5
3308 rm -rf conftest*
3309 ac_cv_c_bigendian=no
3311 rm -f conftest*
3312 else
3313 echo "configure: failed program was:" >&5
3314 cat conftest.$ac_ext >&5
3316 rm -f conftest*
3317 if test $ac_cv_c_bigendian = unknown; then
3318 if test "$cross_compiling" = yes; then
3319 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3320 else
3321 cat > conftest.$ac_ext <<EOF
3322 #line 3323 "configure"
3323 #include "confdefs.h"
3324 main () {
3325 /* Are we little or big endian? From Harbison&Steele. */
3326 union
3328 long l;
3329 char c[sizeof (long)];
3330 } u;
3331 u.l = 1;
3332 exit (u.c[sizeof (long) - 1] == 1);
3335 if { (eval echo configure:3336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3336 then
3337 ac_cv_c_bigendian=no
3338 else
3339 echo "configure: failed program was:" >&5
3340 cat conftest.$ac_ext >&5
3341 rm -fr conftest*
3342 ac_cv_c_bigendian=yes
3344 rm -fr conftest*
3350 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3351 if test $ac_cv_c_bigendian = yes; then
3352 cat >> confdefs.h <<\EOF
3353 #define WORDS_BIGENDIAN 1
3358 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
3359 echo "configure:3360: checking whether char is unsigned" >&5
3360 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
3361 echo $ac_n "(cached) $ac_c" 1>&6
3362 else
3363 if test "$GCC" = yes; then
3364 # GCC predefines this symbol on systems where it applies.
3365 cat > conftest.$ac_ext <<EOF
3366 #line 3367 "configure"
3367 #include "confdefs.h"
3368 #ifdef __CHAR_UNSIGNED__
3370 #endif
3373 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3374 egrep "yes" >/dev/null 2>&1; then
3375 rm -rf conftest*
3376 ac_cv_c_char_unsigned=yes
3377 else
3378 rm -rf conftest*
3379 ac_cv_c_char_unsigned=no
3381 rm -f conftest*
3383 else
3384 if test "$cross_compiling" = yes; then
3385 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3386 else
3387 cat > conftest.$ac_ext <<EOF
3388 #line 3389 "configure"
3389 #include "confdefs.h"
3390 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
3391 #if !defined(__STDC__) || __STDC__ != 1
3392 #define volatile
3393 #endif
3394 main() {
3395 volatile char c = 255; exit(c < 0);
3398 if { (eval echo configure:3399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3399 then
3400 ac_cv_c_char_unsigned=yes
3401 else
3402 echo "configure: failed program was:" >&5
3403 cat conftest.$ac_ext >&5
3404 rm -fr conftest*
3405 ac_cv_c_char_unsigned=no
3407 rm -fr conftest*
3413 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
3414 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
3415 cat >> confdefs.h <<\EOF
3416 #define __CHAR_UNSIGNED__ 1
3422 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3423 echo "configure:3424: checking return type of signal handlers" >&5
3424 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3425 echo $ac_n "(cached) $ac_c" 1>&6
3426 else
3427 cat > conftest.$ac_ext <<EOF
3428 #line 3429 "configure"
3429 #include "confdefs.h"
3430 #include <sys/types.h>
3431 #include <signal.h>
3432 #ifdef signal
3433 #undef signal
3434 #endif
3435 #ifdef __cplusplus
3436 extern "C" void (*signal (int, void (*)(int)))(int);
3437 #else
3438 void (*signal ()) ();
3439 #endif
3441 int main() {
3442 int i;
3443 ; return 0; }
3445 if { (eval echo configure:3446: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3446 rm -rf conftest*
3447 ac_cv_type_signal=void
3448 else
3449 echo "configure: failed program was:" >&5
3450 cat conftest.$ac_ext >&5
3451 rm -rf conftest*
3452 ac_cv_type_signal=int
3454 rm -f conftest*
3457 echo "$ac_t""$ac_cv_type_signal" 1>&6
3458 cat >> confdefs.h <<EOF
3459 #define RETSIGTYPE $ac_cv_type_signal
3463 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3464 echo "configure:3465: checking for uid_t in sys/types.h" >&5
3465 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3466 echo $ac_n "(cached) $ac_c" 1>&6
3467 else
3468 cat > conftest.$ac_ext <<EOF
3469 #line 3470 "configure"
3470 #include "confdefs.h"
3471 #include <sys/types.h>
3473 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3474 egrep "uid_t" >/dev/null 2>&1; then
3475 rm -rf conftest*
3476 ac_cv_type_uid_t=yes
3477 else
3478 rm -rf conftest*
3479 ac_cv_type_uid_t=no
3481 rm -f conftest*
3485 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3486 if test $ac_cv_type_uid_t = no; then
3487 cat >> confdefs.h <<\EOF
3488 #define uid_t int
3491 cat >> confdefs.h <<\EOF
3492 #define gid_t int
3497 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3498 echo "configure:3499: checking for mode_t" >&5
3499 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3500 echo $ac_n "(cached) $ac_c" 1>&6
3501 else
3502 cat > conftest.$ac_ext <<EOF
3503 #line 3504 "configure"
3504 #include "confdefs.h"
3505 #include <sys/types.h>
3506 #if STDC_HEADERS
3507 #include <stdlib.h>
3508 #include <stddef.h>
3509 #endif
3511 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3512 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3513 rm -rf conftest*
3514 ac_cv_type_mode_t=yes
3515 else
3516 rm -rf conftest*
3517 ac_cv_type_mode_t=no
3519 rm -f conftest*
3522 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3523 if test $ac_cv_type_mode_t = no; then
3524 cat >> confdefs.h <<\EOF
3525 #define mode_t int
3530 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3531 echo "configure:3532: checking for off_t" >&5
3532 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3533 echo $ac_n "(cached) $ac_c" 1>&6
3534 else
3535 cat > conftest.$ac_ext <<EOF
3536 #line 3537 "configure"
3537 #include "confdefs.h"
3538 #include <sys/types.h>
3539 #if STDC_HEADERS
3540 #include <stdlib.h>
3541 #include <stddef.h>
3542 #endif
3544 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3545 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3546 rm -rf conftest*
3547 ac_cv_type_off_t=yes
3548 else
3549 rm -rf conftest*
3550 ac_cv_type_off_t=no
3552 rm -f conftest*
3555 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3556 if test $ac_cv_type_off_t = no; then
3557 cat >> confdefs.h <<\EOF
3558 #define off_t long
3563 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3564 echo "configure:3565: checking for size_t" >&5
3565 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3566 echo $ac_n "(cached) $ac_c" 1>&6
3567 else
3568 cat > conftest.$ac_ext <<EOF
3569 #line 3570 "configure"
3570 #include "confdefs.h"
3571 #include <sys/types.h>
3572 #if STDC_HEADERS
3573 #include <stdlib.h>
3574 #include <stddef.h>
3575 #endif
3577 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3578 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3579 rm -rf conftest*
3580 ac_cv_type_size_t=yes
3581 else
3582 rm -rf conftest*
3583 ac_cv_type_size_t=no
3585 rm -f conftest*
3588 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3589 if test $ac_cv_type_size_t = no; then
3590 cat >> confdefs.h <<\EOF
3591 #define size_t unsigned
3596 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3597 echo "configure:3598: checking for pid_t" >&5
3598 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3599 echo $ac_n "(cached) $ac_c" 1>&6
3600 else
3601 cat > conftest.$ac_ext <<EOF
3602 #line 3603 "configure"
3603 #include "confdefs.h"
3604 #include <sys/types.h>
3605 #if STDC_HEADERS
3606 #include <stdlib.h>
3607 #include <stddef.h>
3608 #endif
3610 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3611 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3612 rm -rf conftest*
3613 ac_cv_type_pid_t=yes
3614 else
3615 rm -rf conftest*
3616 ac_cv_type_pid_t=no
3618 rm -f conftest*
3621 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3622 if test $ac_cv_type_pid_t = no; then
3623 cat >> confdefs.h <<\EOF
3624 #define pid_t int
3629 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3630 echo "configure:3631: checking for st_rdev in struct stat" >&5
3631 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3632 echo $ac_n "(cached) $ac_c" 1>&6
3633 else
3634 cat > conftest.$ac_ext <<EOF
3635 #line 3636 "configure"
3636 #include "confdefs.h"
3637 #include <sys/types.h>
3638 #include <sys/stat.h>
3639 int main() {
3640 struct stat s; s.st_rdev;
3641 ; return 0; }
3643 if { (eval echo configure:3644: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3644 rm -rf conftest*
3645 ac_cv_struct_st_rdev=yes
3646 else
3647 echo "configure: failed program was:" >&5
3648 cat conftest.$ac_ext >&5
3649 rm -rf conftest*
3650 ac_cv_struct_st_rdev=no
3652 rm -f conftest*
3655 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3656 if test $ac_cv_struct_st_rdev = yes; then
3657 cat >> confdefs.h <<\EOF
3658 #define HAVE_ST_RDEV 1
3663 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
3664 echo "configure:3665: checking for d_off in dirent" >&5
3665 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
3666 echo $ac_n "(cached) $ac_c" 1>&6
3667 else
3668 cat > conftest.$ac_ext <<EOF
3669 #line 3670 "configure"
3670 #include "confdefs.h"
3672 #include <unistd.h>
3673 #include <sys/types.h>
3674 #include <dirent.h>
3675 int main() {
3676 struct dirent d; d.d_off;
3677 ; return 0; }
3679 if { (eval echo configure:3680: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3680 rm -rf conftest*
3681 ac_cv_dirent_d_off=yes
3682 else
3683 echo "configure: failed program was:" >&5
3684 cat conftest.$ac_ext >&5
3685 rm -rf conftest*
3686 ac_cv_dirent_d_off=no
3688 rm -f conftest*
3691 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
3692 if test $ac_cv_dirent_d_off = yes; then
3693 cat >> confdefs.h <<\EOF
3694 #define HAVE_DIRENT_D_OFF 1
3699 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
3700 echo "configure:3701: checking for ino_t" >&5
3701 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
3702 echo $ac_n "(cached) $ac_c" 1>&6
3703 else
3704 cat > conftest.$ac_ext <<EOF
3705 #line 3706 "configure"
3706 #include "confdefs.h"
3707 #include <sys/types.h>
3708 #if STDC_HEADERS
3709 #include <stdlib.h>
3710 #include <stddef.h>
3711 #endif
3713 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3714 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3715 rm -rf conftest*
3716 ac_cv_type_ino_t=yes
3717 else
3718 rm -rf conftest*
3719 ac_cv_type_ino_t=no
3721 rm -f conftest*
3724 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
3725 if test $ac_cv_type_ino_t = no; then
3726 cat >> confdefs.h <<\EOF
3727 #define ino_t unsigned
3732 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3733 echo "configure:3734: checking for loff_t" >&5
3734 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
3735 echo $ac_n "(cached) $ac_c" 1>&6
3736 else
3737 cat > conftest.$ac_ext <<EOF
3738 #line 3739 "configure"
3739 #include "confdefs.h"
3740 #include <sys/types.h>
3741 #if STDC_HEADERS
3742 #include <stdlib.h>
3743 #include <stddef.h>
3744 #endif
3746 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3747 egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3748 rm -rf conftest*
3749 ac_cv_type_loff_t=yes
3750 else
3751 rm -rf conftest*
3752 ac_cv_type_loff_t=no
3754 rm -f conftest*
3757 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
3758 if test $ac_cv_type_loff_t = no; then
3759 cat >> confdefs.h <<\EOF
3760 #define loff_t off_t
3765 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
3766 echo "configure:3767: checking for offset_t" >&5
3767 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
3768 echo $ac_n "(cached) $ac_c" 1>&6
3769 else
3770 cat > conftest.$ac_ext <<EOF
3771 #line 3772 "configure"
3772 #include "confdefs.h"
3773 #include <sys/types.h>
3774 #if STDC_HEADERS
3775 #include <stdlib.h>
3776 #include <stddef.h>
3777 #endif
3779 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3780 egrep "(^|[^a-zA-Z_0-9])offset_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3781 rm -rf conftest*
3782 ac_cv_type_offset_t=yes
3783 else
3784 rm -rf conftest*
3785 ac_cv_type_offset_t=no
3787 rm -f conftest*
3790 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
3791 if test $ac_cv_type_offset_t = no; then
3792 cat >> confdefs.h <<\EOF
3793 #define offset_t loff_t
3798 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3799 echo "configure:3800: checking for ssize_t" >&5
3800 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3801 echo $ac_n "(cached) $ac_c" 1>&6
3802 else
3803 cat > conftest.$ac_ext <<EOF
3804 #line 3805 "configure"
3805 #include "confdefs.h"
3806 #include <sys/types.h>
3807 #if STDC_HEADERS
3808 #include <stdlib.h>
3809 #include <stddef.h>
3810 #endif
3812 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3813 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3814 rm -rf conftest*
3815 ac_cv_type_ssize_t=yes
3816 else
3817 rm -rf conftest*
3818 ac_cv_type_ssize_t=no
3820 rm -f conftest*
3823 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3824 if test $ac_cv_type_ssize_t = no; then
3825 cat >> confdefs.h <<\EOF
3826 #define ssize_t int
3831 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
3832 echo "configure:3833: checking for wchar_t" >&5
3833 if eval "test \"`echo '$''{'ac_cv_type_wchar_t'+set}'`\" = set"; then
3834 echo $ac_n "(cached) $ac_c" 1>&6
3835 else
3836 cat > conftest.$ac_ext <<EOF
3837 #line 3838 "configure"
3838 #include "confdefs.h"
3839 #include <sys/types.h>
3840 #if STDC_HEADERS
3841 #include <stdlib.h>
3842 #include <stddef.h>
3843 #endif
3845 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3846 egrep "(^|[^a-zA-Z_0-9])wchar_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3847 rm -rf conftest*
3848 ac_cv_type_wchar_t=yes
3849 else
3850 rm -rf conftest*
3851 ac_cv_type_wchar_t=no
3853 rm -f conftest*
3856 echo "$ac_t""$ac_cv_type_wchar_t" 1>&6
3857 if test $ac_cv_type_wchar_t = no; then
3858 cat >> confdefs.h <<\EOF
3859 #define wchar_t unsigned short
3865 ############################################
3866 # for cups support we need libcups, and a handful of header files
3868 # Check whether --enable-cups or --disable-cups was given.
3869 if test "${enable_cups+set}" = set; then
3870 enableval="$enable_cups"
3875 if test x$enable_cups != xno; then
3876 # Extract the first word of "cups-config", so it can be a program name with args.
3877 set dummy cups-config; ac_word=$2
3878 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3879 echo "configure:3880: checking for $ac_word" >&5
3880 if eval "test \"`echo '$''{'ac_cv_path_CUPS_CONFIG'+set}'`\" = set"; then
3881 echo $ac_n "(cached) $ac_c" 1>&6
3882 else
3883 case "$CUPS_CONFIG" in
3885 ac_cv_path_CUPS_CONFIG="$CUPS_CONFIG" # Let the user override the test with a path.
3887 ?:/*)
3888 ac_cv_path_CUPS_CONFIG="$CUPS_CONFIG" # Let the user override the test with a dos path.
3891 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3892 ac_dummy="$PATH"
3893 for ac_dir in $ac_dummy; do
3894 test -z "$ac_dir" && ac_dir=.
3895 if test -f $ac_dir/$ac_word; then
3896 ac_cv_path_CUPS_CONFIG="$ac_dir/$ac_word"
3897 break
3899 done
3900 IFS="$ac_save_ifs"
3902 esac
3904 CUPS_CONFIG="$ac_cv_path_CUPS_CONFIG"
3905 if test -n "$CUPS_CONFIG"; then
3906 echo "$ac_t""$CUPS_CONFIG" 1>&6
3907 else
3908 echo "$ac_t""no" 1>&6
3912 if test "x$CUPS_CONFIG" != x; then
3913 cat >> confdefs.h <<\EOF
3914 #define HAVE_CUPS 1
3917 CFLAGS="$CFLAGS `$CUPS_CONFIG --cflags`"
3918 LDFLAGS="$LDFLAGS `$CUPS_CONFIG --ldflags`"
3919 LIBS="$LIBS `$CUPS_CONFIG --libs`"
3923 ############################################
3924 # we need dlopen/dlclose/dlsym/dlerror for PAM, the password database plugins and the new VFS code
3925 for ac_func in dlopen
3927 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3928 echo "configure:3929: checking for $ac_func" >&5
3929 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3930 echo $ac_n "(cached) $ac_c" 1>&6
3931 else
3932 cat > conftest.$ac_ext <<EOF
3933 #line 3934 "configure"
3934 #include "confdefs.h"
3935 /* System header to define __stub macros and hopefully few prototypes,
3936 which can conflict with char $ac_func(); below. */
3937 #include <assert.h>
3938 /* Override any gcc2 internal prototype to avoid an error. */
3939 /* We use char because int might match the return type of a gcc2
3940 builtin and then its argument prototype would still apply. */
3941 char $ac_func();
3943 int main() {
3945 /* The GNU C library defines this for functions which it implements
3946 to always fail with ENOSYS. Some functions are actually named
3947 something starting with __ and the normal name is an alias. */
3948 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3949 choke me
3950 #else
3951 $ac_func();
3952 #endif
3954 ; return 0; }
3956 if { (eval echo configure:3957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3957 rm -rf conftest*
3958 eval "ac_cv_func_$ac_func=yes"
3959 else
3960 echo "configure: failed program was:" >&5
3961 cat conftest.$ac_ext >&5
3962 rm -rf conftest*
3963 eval "ac_cv_func_$ac_func=no"
3965 rm -f conftest*
3968 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3969 echo "$ac_t""yes" 1>&6
3970 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3971 cat >> confdefs.h <<EOF
3972 #define $ac_tr_func 1
3975 else
3976 echo "$ac_t""no" 1>&6
3978 done
3980 if test x"$ac_cv_func_dlopen" = x"no"; then
3981 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3982 echo "configure:3983: checking for dlopen in -ldl" >&5
3983 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3984 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3985 echo $ac_n "(cached) $ac_c" 1>&6
3986 else
3987 ac_save_LIBS="$LIBS"
3988 LIBS="-ldl $LIBS"
3989 cat > conftest.$ac_ext <<EOF
3990 #line 3991 "configure"
3991 #include "confdefs.h"
3992 /* Override any gcc2 internal prototype to avoid an error. */
3993 /* We use char because int might match the return type of a gcc2
3994 builtin and then its argument prototype would still apply. */
3995 char dlopen();
3997 int main() {
3998 dlopen()
3999 ; return 0; }
4001 if { (eval echo configure:4002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4002 rm -rf conftest*
4003 eval "ac_cv_lib_$ac_lib_var=yes"
4004 else
4005 echo "configure: failed program was:" >&5
4006 cat conftest.$ac_ext >&5
4007 rm -rf conftest*
4008 eval "ac_cv_lib_$ac_lib_var=no"
4010 rm -f conftest*
4011 LIBS="$ac_save_LIBS"
4014 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4015 echo "$ac_t""yes" 1>&6
4016 LIBS="$LIBS -ldl";
4017 cat >> confdefs.h <<\EOF
4018 #define HAVE_DLOPEN 1
4021 else
4022 echo "$ac_t""no" 1>&6
4026 # dlopen/dlclose/dlsym/dlerror will be checked again later and defines will be set then
4028 ############################################
4029 # check if the compiler can do immediate structures
4030 echo $ac_n "checking for immediate structures""... $ac_c" 1>&6
4031 echo "configure:4032: checking for immediate structures" >&5
4032 if eval "test \"`echo '$''{'samba_cv_immediate_structures'+set}'`\" = set"; then
4033 echo $ac_n "(cached) $ac_c" 1>&6
4034 else
4036 cat > conftest.$ac_ext <<EOF
4037 #line 4038 "configure"
4038 #include "confdefs.h"
4040 #include <stdio.h>
4041 int main() {
4043 typedef struct {unsigned x;} FOOBAR;
4044 #define X_FOOBAR(x) ((FOOBAR) { x })
4045 #define FOO_ONE X_FOOBAR(1)
4046 FOOBAR f = FOO_ONE;
4047 static struct {
4048 FOOBAR y;
4049 } f2[] = {
4050 {FOO_ONE}
4053 ; return 0; }
4055 if { (eval echo configure:4056: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4056 rm -rf conftest*
4057 samba_cv_immediate_structures=yes
4058 else
4059 echo "configure: failed program was:" >&5
4060 cat conftest.$ac_ext >&5
4061 rm -rf conftest*
4062 samba_cv_immediate_structures=no
4064 rm -f conftest*
4067 echo "$ac_t""$samba_cv_immediate_structures" 1>&6
4068 if test x"$samba_cv_immediate_structures" = x"yes"; then
4069 cat >> confdefs.h <<\EOF
4070 #define HAVE_IMMEDIATE_STRUCTURES 1
4075 ############################################
4076 # check for unix domain sockets
4077 echo $ac_n "checking for unix domain sockets""... $ac_c" 1>&6
4078 echo "configure:4079: checking for unix domain sockets" >&5
4079 if eval "test \"`echo '$''{'samba_cv_unixsocket'+set}'`\" = set"; then
4080 echo $ac_n "(cached) $ac_c" 1>&6
4081 else
4083 cat > conftest.$ac_ext <<EOF
4084 #line 4085 "configure"
4085 #include "confdefs.h"
4087 #include <sys/types.h>
4088 #include <stdlib.h>
4089 #include <stddef.h>
4090 #include <sys/socket.h>
4091 #include <sys/un.h>
4092 int main() {
4094 struct sockaddr_un sunaddr;
4095 sunaddr.sun_family = AF_UNIX;
4097 ; return 0; }
4099 if { (eval echo configure:4100: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4100 rm -rf conftest*
4101 samba_cv_unixsocket=yes
4102 else
4103 echo "configure: failed program was:" >&5
4104 cat conftest.$ac_ext >&5
4105 rm -rf conftest*
4106 samba_cv_unixsocket=no
4108 rm -f conftest*
4111 echo "$ac_t""$samba_cv_unixsocket" 1>&6
4112 if test x"$samba_cv_unixsocket" = x"yes"; then
4113 cat >> confdefs.h <<\EOF
4114 #define HAVE_UNIXSOCKET 1
4119 echo $ac_n "checking for socklen_t type""... $ac_c" 1>&6
4120 echo "configure:4121: checking for socklen_t type" >&5
4121 if eval "test \"`echo '$''{'samba_cv_socklen_t'+set}'`\" = set"; then
4122 echo $ac_n "(cached) $ac_c" 1>&6
4123 else
4125 cat > conftest.$ac_ext <<EOF
4126 #line 4127 "configure"
4127 #include "confdefs.h"
4129 #include <sys/types.h>
4130 #if STDC_HEADERS
4131 #include <stdlib.h>
4132 #include <stddef.h>
4133 #endif
4134 #include <sys/socket.h>
4135 int main() {
4136 socklen_t i = 0
4137 ; return 0; }
4139 if { (eval echo configure:4140: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4140 rm -rf conftest*
4141 samba_cv_socklen_t=yes
4142 else
4143 echo "configure: failed program was:" >&5
4144 cat conftest.$ac_ext >&5
4145 rm -rf conftest*
4146 samba_cv_socklen_t=no
4148 rm -f conftest*
4151 echo "$ac_t""$samba_cv_socklen_t" 1>&6
4152 if test x"$samba_cv_socklen_t" = x"yes"; then
4153 cat >> confdefs.h <<\EOF
4154 #define HAVE_SOCKLEN_T_TYPE 1
4159 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
4160 echo "configure:4161: checking for sig_atomic_t type" >&5
4161 if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+set}'`\" = set"; then
4162 echo $ac_n "(cached) $ac_c" 1>&6
4163 else
4165 cat > conftest.$ac_ext <<EOF
4166 #line 4167 "configure"
4167 #include "confdefs.h"
4169 #include <sys/types.h>
4170 #if STDC_HEADERS
4171 #include <stdlib.h>
4172 #include <stddef.h>
4173 #endif
4174 #include <signal.h>
4175 int main() {
4176 sig_atomic_t i = 0
4177 ; return 0; }
4179 if { (eval echo configure:4180: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4180 rm -rf conftest*
4181 samba_cv_sig_atomic_t=yes
4182 else
4183 echo "configure: failed program was:" >&5
4184 cat conftest.$ac_ext >&5
4185 rm -rf conftest*
4186 samba_cv_sig_atomic_t=no
4188 rm -f conftest*
4191 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
4192 if test x"$samba_cv_sig_atomic_t" = x"yes"; then
4193 cat >> confdefs.h <<\EOF
4194 #define HAVE_SIG_ATOMIC_T_TYPE 1
4199 # stupid headers have the functions but no declaration. grrrr.
4201 echo $ac_n "checking for errno declaration""... $ac_c" 1>&6
4202 echo "configure:4203: checking for errno declaration" >&5
4203 if eval "test \"`echo '$''{'ac_cv_have_errno_decl'+set}'`\" = set"; then
4204 echo $ac_n "(cached) $ac_c" 1>&6
4205 else
4207 cat > conftest.$ac_ext <<EOF
4208 #line 4209 "configure"
4209 #include "confdefs.h"
4210 #include <errno.h>
4211 int main() {
4212 int i = (int)errno
4213 ; return 0; }
4215 if { (eval echo configure:4216: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4216 rm -rf conftest*
4217 ac_cv_have_errno_decl=yes
4218 else
4219 echo "configure: failed program was:" >&5
4220 cat conftest.$ac_ext >&5
4221 rm -rf conftest*
4222 ac_cv_have_errno_decl=no
4224 rm -f conftest*
4227 echo "$ac_t""$ac_cv_have_errno_decl" 1>&6
4228 if test x"$ac_cv_have_errno_decl" = x"yes"; then
4229 cat >> confdefs.h <<\EOF
4230 #define HAVE_ERRNO_DECL 1
4236 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
4237 echo "configure:4238: checking for setresuid declaration" >&5
4238 if eval "test \"`echo '$''{'ac_cv_have_setresuid_decl'+set}'`\" = set"; then
4239 echo $ac_n "(cached) $ac_c" 1>&6
4240 else
4242 cat > conftest.$ac_ext <<EOF
4243 #line 4244 "configure"
4244 #include "confdefs.h"
4245 #include <unistd.h>
4246 int main() {
4247 int i = (int)setresuid
4248 ; return 0; }
4250 if { (eval echo configure:4251: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4251 rm -rf conftest*
4252 ac_cv_have_setresuid_decl=yes
4253 else
4254 echo "configure: failed program was:" >&5
4255 cat conftest.$ac_ext >&5
4256 rm -rf conftest*
4257 ac_cv_have_setresuid_decl=no
4259 rm -f conftest*
4262 echo "$ac_t""$ac_cv_have_setresuid_decl" 1>&6
4263 if test x"$ac_cv_have_setresuid_decl" = x"yes"; then
4264 cat >> confdefs.h <<\EOF
4265 #define HAVE_SETRESUID_DECL 1
4271 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
4272 echo "configure:4273: checking for setresgid declaration" >&5
4273 if eval "test \"`echo '$''{'ac_cv_have_setresgid_decl'+set}'`\" = set"; then
4274 echo $ac_n "(cached) $ac_c" 1>&6
4275 else
4277 cat > conftest.$ac_ext <<EOF
4278 #line 4279 "configure"
4279 #include "confdefs.h"
4280 #include <unistd.h>
4281 int main() {
4282 int i = (int)setresgid
4283 ; return 0; }
4285 if { (eval echo configure:4286: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4286 rm -rf conftest*
4287 ac_cv_have_setresgid_decl=yes
4288 else
4289 echo "configure: failed program was:" >&5
4290 cat conftest.$ac_ext >&5
4291 rm -rf conftest*
4292 ac_cv_have_setresgid_decl=no
4294 rm -f conftest*
4297 echo "$ac_t""$ac_cv_have_setresgid_decl" 1>&6
4298 if test x"$ac_cv_have_setresgid_decl" = x"yes"; then
4299 cat >> confdefs.h <<\EOF
4300 #define HAVE_SETRESGID_DECL 1
4306 echo $ac_n "checking for asprintf declaration""... $ac_c" 1>&6
4307 echo "configure:4308: checking for asprintf declaration" >&5
4308 if eval "test \"`echo '$''{'ac_cv_have_asprintf_decl'+set}'`\" = set"; then
4309 echo $ac_n "(cached) $ac_c" 1>&6
4310 else
4312 cat > conftest.$ac_ext <<EOF
4313 #line 4314 "configure"
4314 #include "confdefs.h"
4315 #include <stdio.h>
4316 int main() {
4317 int i = (int)asprintf
4318 ; return 0; }
4320 if { (eval echo configure:4321: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4321 rm -rf conftest*
4322 ac_cv_have_asprintf_decl=yes
4323 else
4324 echo "configure: failed program was:" >&5
4325 cat conftest.$ac_ext >&5
4326 rm -rf conftest*
4327 ac_cv_have_asprintf_decl=no
4329 rm -f conftest*
4332 echo "$ac_t""$ac_cv_have_asprintf_decl" 1>&6
4333 if test x"$ac_cv_have_asprintf_decl" = x"yes"; then
4334 cat >> confdefs.h <<\EOF
4335 #define HAVE_ASPRINTF_DECL 1
4341 echo $ac_n "checking for vasprintf declaration""... $ac_c" 1>&6
4342 echo "configure:4343: checking for vasprintf declaration" >&5
4343 if eval "test \"`echo '$''{'ac_cv_have_vasprintf_decl'+set}'`\" = set"; then
4344 echo $ac_n "(cached) $ac_c" 1>&6
4345 else
4347 cat > conftest.$ac_ext <<EOF
4348 #line 4349 "configure"
4349 #include "confdefs.h"
4350 #include <stdio.h>
4351 int main() {
4352 int i = (int)vasprintf
4353 ; return 0; }
4355 if { (eval echo configure:4356: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4356 rm -rf conftest*
4357 ac_cv_have_vasprintf_decl=yes
4358 else
4359 echo "configure: failed program was:" >&5
4360 cat conftest.$ac_ext >&5
4361 rm -rf conftest*
4362 ac_cv_have_vasprintf_decl=no
4364 rm -f conftest*
4367 echo "$ac_t""$ac_cv_have_vasprintf_decl" 1>&6
4368 if test x"$ac_cv_have_vasprintf_decl" = x"yes"; then
4369 cat >> confdefs.h <<\EOF
4370 #define HAVE_VASPRINTF_DECL 1
4376 echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6
4377 echo "configure:4378: checking for vsnprintf declaration" >&5
4378 if eval "test \"`echo '$''{'ac_cv_have_vsnprintf_decl'+set}'`\" = set"; then
4379 echo $ac_n "(cached) $ac_c" 1>&6
4380 else
4382 cat > conftest.$ac_ext <<EOF
4383 #line 4384 "configure"
4384 #include "confdefs.h"
4385 #include <stdio.h>
4386 int main() {
4387 int i = (int)vsnprintf
4388 ; return 0; }
4390 if { (eval echo configure:4391: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4391 rm -rf conftest*
4392 ac_cv_have_vsnprintf_decl=yes
4393 else
4394 echo "configure: failed program was:" >&5
4395 cat conftest.$ac_ext >&5
4396 rm -rf conftest*
4397 ac_cv_have_vsnprintf_decl=no
4399 rm -f conftest*
4402 echo "$ac_t""$ac_cv_have_vsnprintf_decl" 1>&6
4403 if test x"$ac_cv_have_vsnprintf_decl" = x"yes"; then
4404 cat >> confdefs.h <<\EOF
4405 #define HAVE_VSNPRINTF_DECL 1
4411 echo $ac_n "checking for snprintf declaration""... $ac_c" 1>&6
4412 echo "configure:4413: checking for snprintf declaration" >&5
4413 if eval "test \"`echo '$''{'ac_cv_have_snprintf_decl'+set}'`\" = set"; then
4414 echo $ac_n "(cached) $ac_c" 1>&6
4415 else
4417 cat > conftest.$ac_ext <<EOF
4418 #line 4419 "configure"
4419 #include "confdefs.h"
4420 #include <stdio.h>
4421 int main() {
4422 int i = (int)snprintf
4423 ; return 0; }
4425 if { (eval echo configure:4426: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4426 rm -rf conftest*
4427 ac_cv_have_snprintf_decl=yes
4428 else
4429 echo "configure: failed program was:" >&5
4430 cat conftest.$ac_ext >&5
4431 rm -rf conftest*
4432 ac_cv_have_snprintf_decl=no
4434 rm -f conftest*
4437 echo "$ac_t""$ac_cv_have_snprintf_decl" 1>&6
4438 if test x"$ac_cv_have_snprintf_decl" = x"yes"; then
4439 cat >> confdefs.h <<\EOF
4440 #define HAVE_SNPRINTF_DECL 1
4446 # and glibc has setresuid under linux but the function does
4447 # nothing until kernel 2.1.44! very dumb.
4448 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
4449 echo "configure:4450: checking for real setresuid" >&5
4450 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
4451 echo $ac_n "(cached) $ac_c" 1>&6
4452 else
4454 if test "$cross_compiling" = yes; then
4455 samba_cv_have_setresuid=cross
4456 else
4457 cat > conftest.$ac_ext <<EOF
4458 #line 4459 "configure"
4459 #include "confdefs.h"
4460 #include <errno.h>
4461 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
4463 if { (eval echo configure:4464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4464 then
4465 samba_cv_have_setresuid=yes
4466 else
4467 echo "configure: failed program was:" >&5
4468 cat conftest.$ac_ext >&5
4469 rm -fr conftest*
4470 samba_cv_have_setresuid=no
4472 rm -fr conftest*
4477 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
4478 if test x"$samba_cv_have_setresuid" = x"yes"; then
4479 cat >> confdefs.h <<\EOF
4480 #define HAVE_SETRESUID 1
4485 # Do the same check for setresguid...
4487 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
4488 echo "configure:4489: checking for real setresgid" >&5
4489 if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then
4490 echo $ac_n "(cached) $ac_c" 1>&6
4491 else
4493 if test "$cross_compiling" = yes; then
4494 samba_cv_have_setresgid=cross
4495 else
4496 cat > conftest.$ac_ext <<EOF
4497 #line 4498 "configure"
4498 #include "confdefs.h"
4499 #include <unistd.h>
4500 #include <errno.h>
4501 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
4503 if { (eval echo configure:4504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4504 then
4505 samba_cv_have_setresgid=yes
4506 else
4507 echo "configure: failed program was:" >&5
4508 cat conftest.$ac_ext >&5
4509 rm -fr conftest*
4510 samba_cv_have_setresgid=no
4512 rm -fr conftest*
4517 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
4518 if test x"$samba_cv_have_setresgid" = x"yes"; then
4519 cat >> confdefs.h <<\EOF
4520 #define HAVE_SETRESGID 1
4525 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
4526 echo "configure:4527: checking for 8-bit clean memcmp" >&5
4527 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
4528 echo $ac_n "(cached) $ac_c" 1>&6
4529 else
4530 if test "$cross_compiling" = yes; then
4531 ac_cv_func_memcmp_clean=no
4532 else
4533 cat > conftest.$ac_ext <<EOF
4534 #line 4535 "configure"
4535 #include "confdefs.h"
4537 main()
4539 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4540 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
4544 if { (eval echo configure:4545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4545 then
4546 ac_cv_func_memcmp_clean=yes
4547 else
4548 echo "configure: failed program was:" >&5
4549 cat conftest.$ac_ext >&5
4550 rm -fr conftest*
4551 ac_cv_func_memcmp_clean=no
4553 rm -fr conftest*
4558 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
4559 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
4562 ###############################################
4563 # Readline included by default unless explicitly asked not to
4564 test "${with_readline+set}" != "set" && with_readline=yes
4566 # test for where we get readline() from
4567 echo $ac_n "checking whether to use readline""... $ac_c" 1>&6
4568 echo "configure:4569: checking whether to use readline" >&5
4569 # Check whether --with-readline or --without-readline was given.
4570 if test "${with_readline+set}" = set; then
4571 withval="$with_readline"
4572 case "$with_readline" in
4573 yes)
4574 echo "$ac_t""yes" 1>&6
4576 for ac_hdr in readline.h history.h readline/readline.h
4578 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4579 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4580 echo "configure:4581: checking for $ac_hdr" >&5
4581 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4582 echo $ac_n "(cached) $ac_c" 1>&6
4583 else
4584 cat > conftest.$ac_ext <<EOF
4585 #line 4586 "configure"
4586 #include "confdefs.h"
4587 #include <$ac_hdr>
4589 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4590 { (eval echo configure:4591: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4591 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4592 if test -z "$ac_err"; then
4593 rm -rf conftest*
4594 eval "ac_cv_header_$ac_safe=yes"
4595 else
4596 echo "$ac_err" >&5
4597 echo "configure: failed program was:" >&5
4598 cat conftest.$ac_ext >&5
4599 rm -rf conftest*
4600 eval "ac_cv_header_$ac_safe=no"
4602 rm -f conftest*
4604 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4605 echo "$ac_t""yes" 1>&6
4606 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4607 cat >> confdefs.h <<EOF
4608 #define $ac_tr_hdr 1
4611 else
4612 echo "$ac_t""no" 1>&6
4614 done
4616 for ac_hdr in readline/history.h
4618 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4619 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4620 echo "configure:4621: checking for $ac_hdr" >&5
4621 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4622 echo $ac_n "(cached) $ac_c" 1>&6
4623 else
4624 cat > conftest.$ac_ext <<EOF
4625 #line 4626 "configure"
4626 #include "confdefs.h"
4627 #include <$ac_hdr>
4629 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4630 { (eval echo configure:4631: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4631 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4632 if test -z "$ac_err"; then
4633 rm -rf conftest*
4634 eval "ac_cv_header_$ac_safe=yes"
4635 else
4636 echo "$ac_err" >&5
4637 echo "configure: failed program was:" >&5
4638 cat conftest.$ac_ext >&5
4639 rm -rf conftest*
4640 eval "ac_cv_header_$ac_safe=no"
4642 rm -f conftest*
4644 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4645 echo "$ac_t""yes" 1>&6
4646 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4647 cat >> confdefs.h <<EOF
4648 #define $ac_tr_hdr 1
4651 else
4652 echo "$ac_t""no" 1>&6
4654 done
4657 for ac_hdr in readline.h readline/readline.h
4659 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4660 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4661 echo "configure:4662: checking for $ac_hdr" >&5
4662 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4663 echo $ac_n "(cached) $ac_c" 1>&6
4664 else
4665 cat > conftest.$ac_ext <<EOF
4666 #line 4667 "configure"
4667 #include "confdefs.h"
4668 #include <$ac_hdr>
4670 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4671 { (eval echo configure:4672: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4672 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4673 if test -z "$ac_err"; then
4674 rm -rf conftest*
4675 eval "ac_cv_header_$ac_safe=yes"
4676 else
4677 echo "$ac_err" >&5
4678 echo "configure: failed program was:" >&5
4679 cat conftest.$ac_ext >&5
4680 rm -rf conftest*
4681 eval "ac_cv_header_$ac_safe=no"
4683 rm -f conftest*
4685 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4686 echo "$ac_t""yes" 1>&6
4687 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4688 cat >> confdefs.h <<EOF
4689 #define $ac_tr_hdr 1
4692 for termlib in ncurses curses termcap terminfo termlib; do
4693 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4694 echo "configure:4695: checking for tgetent in -l${termlib}" >&5
4695 ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4696 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4697 echo $ac_n "(cached) $ac_c" 1>&6
4698 else
4699 ac_save_LIBS="$LIBS"
4700 LIBS="-l${termlib} $LIBS"
4701 cat > conftest.$ac_ext <<EOF
4702 #line 4703 "configure"
4703 #include "confdefs.h"
4704 /* Override any gcc2 internal prototype to avoid an error. */
4705 /* We use char because int might match the return type of a gcc2
4706 builtin and then its argument prototype would still apply. */
4707 char tgetent();
4709 int main() {
4710 tgetent()
4711 ; return 0; }
4713 if { (eval echo configure:4714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4714 rm -rf conftest*
4715 eval "ac_cv_lib_$ac_lib_var=yes"
4716 else
4717 echo "configure: failed program was:" >&5
4718 cat conftest.$ac_ext >&5
4719 rm -rf conftest*
4720 eval "ac_cv_lib_$ac_lib_var=no"
4722 rm -f conftest*
4723 LIBS="$ac_save_LIBS"
4726 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4727 echo "$ac_t""yes" 1>&6
4728 TERMLIBS="-l${termlib}"; break
4729 else
4730 echo "$ac_t""no" 1>&6
4733 done
4734 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4735 echo "configure:4736: checking for rl_callback_handler_install in -lreadline" >&5
4736 ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4737 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4738 echo $ac_n "(cached) $ac_c" 1>&6
4739 else
4740 ac_save_LIBS="$LIBS"
4741 LIBS="-lreadline $TERMLIBS $LIBS"
4742 cat > conftest.$ac_ext <<EOF
4743 #line 4744 "configure"
4744 #include "confdefs.h"
4745 /* Override any gcc2 internal prototype to avoid an error. */
4746 /* We use char because int might match the return type of a gcc2
4747 builtin and then its argument prototype would still apply. */
4748 char rl_callback_handler_install();
4750 int main() {
4751 rl_callback_handler_install()
4752 ; return 0; }
4754 if { (eval echo configure:4755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4755 rm -rf conftest*
4756 eval "ac_cv_lib_$ac_lib_var=yes"
4757 else
4758 echo "configure: failed program was:" >&5
4759 cat conftest.$ac_ext >&5
4760 rm -rf conftest*
4761 eval "ac_cv_lib_$ac_lib_var=no"
4763 rm -f conftest*
4764 LIBS="$ac_save_LIBS"
4767 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4768 echo "$ac_t""yes" 1>&6
4769 TERMLIBS="-lreadline $TERMLIBS"
4770 cat >> confdefs.h <<\EOF
4771 #define HAVE_LIBREADLINE 1
4774 break
4775 else
4776 echo "$ac_t""no" 1>&6
4777 TERMLIBS=
4780 else
4781 echo "$ac_t""no" 1>&6
4783 done
4787 echo "$ac_t""no" 1>&6
4790 echo "$ac_t""yes" 1>&6
4792 # Needed for AC_CHECK_HEADERS and AC_CHECK_LIB to look at
4793 # alternate readline path
4794 _ldflags=${LDFLAGS}
4795 _cppflags=${CPPFLAGS}
4797 # Add additional search path
4798 LDFLAGS="-L$with_readline/lib $LDFLAGS"
4799 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
4801 for ac_hdr in readline.h history.h readline/readline.h
4803 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4804 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4805 echo "configure:4806: checking for $ac_hdr" >&5
4806 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4807 echo $ac_n "(cached) $ac_c" 1>&6
4808 else
4809 cat > conftest.$ac_ext <<EOF
4810 #line 4811 "configure"
4811 #include "confdefs.h"
4812 #include <$ac_hdr>
4814 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4815 { (eval echo configure:4816: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4816 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4817 if test -z "$ac_err"; then
4818 rm -rf conftest*
4819 eval "ac_cv_header_$ac_safe=yes"
4820 else
4821 echo "$ac_err" >&5
4822 echo "configure: failed program was:" >&5
4823 cat conftest.$ac_ext >&5
4824 rm -rf conftest*
4825 eval "ac_cv_header_$ac_safe=no"
4827 rm -f conftest*
4829 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4830 echo "$ac_t""yes" 1>&6
4831 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4832 cat >> confdefs.h <<EOF
4833 #define $ac_tr_hdr 1
4836 else
4837 echo "$ac_t""no" 1>&6
4839 done
4841 for ac_hdr in readline/history.h
4843 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4844 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4845 echo "configure:4846: checking for $ac_hdr" >&5
4846 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4847 echo $ac_n "(cached) $ac_c" 1>&6
4848 else
4849 cat > conftest.$ac_ext <<EOF
4850 #line 4851 "configure"
4851 #include "confdefs.h"
4852 #include <$ac_hdr>
4854 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4855 { (eval echo configure:4856: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4856 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4857 if test -z "$ac_err"; then
4858 rm -rf conftest*
4859 eval "ac_cv_header_$ac_safe=yes"
4860 else
4861 echo "$ac_err" >&5
4862 echo "configure: failed program was:" >&5
4863 cat conftest.$ac_ext >&5
4864 rm -rf conftest*
4865 eval "ac_cv_header_$ac_safe=no"
4867 rm -f conftest*
4869 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4870 echo "$ac_t""yes" 1>&6
4871 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4872 cat >> confdefs.h <<EOF
4873 #define $ac_tr_hdr 1
4876 else
4877 echo "$ac_t""no" 1>&6
4879 done
4882 for ac_hdr in readline.h readline/readline.h
4884 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4885 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4886 echo "configure:4887: checking for $ac_hdr" >&5
4887 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4888 echo $ac_n "(cached) $ac_c" 1>&6
4889 else
4890 cat > conftest.$ac_ext <<EOF
4891 #line 4892 "configure"
4892 #include "confdefs.h"
4893 #include <$ac_hdr>
4895 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4896 { (eval echo configure:4897: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4897 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4898 if test -z "$ac_err"; then
4899 rm -rf conftest*
4900 eval "ac_cv_header_$ac_safe=yes"
4901 else
4902 echo "$ac_err" >&5
4903 echo "configure: failed program was:" >&5
4904 cat conftest.$ac_ext >&5
4905 rm -rf conftest*
4906 eval "ac_cv_header_$ac_safe=no"
4908 rm -f conftest*
4910 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4911 echo "$ac_t""yes" 1>&6
4912 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4913 cat >> confdefs.h <<EOF
4914 #define $ac_tr_hdr 1
4917 for termlib in ncurses curses termcap terminfo termlib; do
4918 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4919 echo "configure:4920: checking for tgetent in -l${termlib}" >&5
4920 ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4921 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4922 echo $ac_n "(cached) $ac_c" 1>&6
4923 else
4924 ac_save_LIBS="$LIBS"
4925 LIBS="-l${termlib} $LIBS"
4926 cat > conftest.$ac_ext <<EOF
4927 #line 4928 "configure"
4928 #include "confdefs.h"
4929 /* Override any gcc2 internal prototype to avoid an error. */
4930 /* We use char because int might match the return type of a gcc2
4931 builtin and then its argument prototype would still apply. */
4932 char tgetent();
4934 int main() {
4935 tgetent()
4936 ; return 0; }
4938 if { (eval echo configure:4939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4939 rm -rf conftest*
4940 eval "ac_cv_lib_$ac_lib_var=yes"
4941 else
4942 echo "configure: failed program was:" >&5
4943 cat conftest.$ac_ext >&5
4944 rm -rf conftest*
4945 eval "ac_cv_lib_$ac_lib_var=no"
4947 rm -f conftest*
4948 LIBS="$ac_save_LIBS"
4951 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4952 echo "$ac_t""yes" 1>&6
4953 TERMLIBS="-l${termlib}"; break
4954 else
4955 echo "$ac_t""no" 1>&6
4958 done
4959 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4960 echo "configure:4961: checking for rl_callback_handler_install in -lreadline" >&5
4961 ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4962 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4963 echo $ac_n "(cached) $ac_c" 1>&6
4964 else
4965 ac_save_LIBS="$LIBS"
4966 LIBS="-lreadline $TERMLIBS $LIBS"
4967 cat > conftest.$ac_ext <<EOF
4968 #line 4969 "configure"
4969 #include "confdefs.h"
4970 /* Override any gcc2 internal prototype to avoid an error. */
4971 /* We use char because int might match the return type of a gcc2
4972 builtin and then its argument prototype would still apply. */
4973 char rl_callback_handler_install();
4975 int main() {
4976 rl_callback_handler_install()
4977 ; return 0; }
4979 if { (eval echo configure:4980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4980 rm -rf conftest*
4981 eval "ac_cv_lib_$ac_lib_var=yes"
4982 else
4983 echo "configure: failed program was:" >&5
4984 cat conftest.$ac_ext >&5
4985 rm -rf conftest*
4986 eval "ac_cv_lib_$ac_lib_var=no"
4988 rm -f conftest*
4989 LIBS="$ac_save_LIBS"
4992 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4993 echo "$ac_t""yes" 1>&6
4994 TERMLDFLAGS="-L$with_readline/lib"
4995 TERMCPPFLAGS="-I$with_readline/include"
4996 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
4997 TERMLIBS="-lreadline $TERMLIBS"
4998 cat >> confdefs.h <<\EOF
4999 #define HAVE_LIBREADLINE 1
5002 break
5003 else
5004 echo "$ac_t""no" 1>&6
5005 TERMLIBS= CPPFLAGS=$_cppflags
5008 else
5009 echo "$ac_t""no" 1>&6
5011 done
5014 LDFLAGS=$_ldflags
5016 esac
5017 else
5018 echo "$ac_t""no" 1>&6
5025 # The following test taken from the cvs sources
5026 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
5027 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
5028 # libsocket.so which has a bad implementation of gethostbyname (it
5029 # only looks in /etc/hosts), so we only look for -lsocket if we need
5030 # it.
5031 for ac_func in connect
5033 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5034 echo "configure:5035: checking for $ac_func" >&5
5035 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5036 echo $ac_n "(cached) $ac_c" 1>&6
5037 else
5038 cat > conftest.$ac_ext <<EOF
5039 #line 5040 "configure"
5040 #include "confdefs.h"
5041 /* System header to define __stub macros and hopefully few prototypes,
5042 which can conflict with char $ac_func(); below. */
5043 #include <assert.h>
5044 /* Override any gcc2 internal prototype to avoid an error. */
5045 /* We use char because int might match the return type of a gcc2
5046 builtin and then its argument prototype would still apply. */
5047 char $ac_func();
5049 int main() {
5051 /* The GNU C library defines this for functions which it implements
5052 to always fail with ENOSYS. Some functions are actually named
5053 something starting with __ and the normal name is an alias. */
5054 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5055 choke me
5056 #else
5057 $ac_func();
5058 #endif
5060 ; return 0; }
5062 if { (eval echo configure:5063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5063 rm -rf conftest*
5064 eval "ac_cv_func_$ac_func=yes"
5065 else
5066 echo "configure: failed program was:" >&5
5067 cat conftest.$ac_ext >&5
5068 rm -rf conftest*
5069 eval "ac_cv_func_$ac_func=no"
5071 rm -f conftest*
5074 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5075 echo "$ac_t""yes" 1>&6
5076 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5077 cat >> confdefs.h <<EOF
5078 #define $ac_tr_func 1
5081 else
5082 echo "$ac_t""no" 1>&6
5084 done
5086 if test x"$ac_cv_func_connect" = x"no"; then
5087 case "$LIBS" in
5088 *-lnsl*) ;;
5089 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
5090 echo "configure:5091: checking for printf in -lnsl_s" >&5
5091 ac_lib_var=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
5092 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5093 echo $ac_n "(cached) $ac_c" 1>&6
5094 else
5095 ac_save_LIBS="$LIBS"
5096 LIBS="-lnsl_s $LIBS"
5097 cat > conftest.$ac_ext <<EOF
5098 #line 5099 "configure"
5099 #include "confdefs.h"
5100 /* Override any gcc2 internal prototype to avoid an error. */
5101 /* We use char because int might match the return type of a gcc2
5102 builtin and then its argument prototype would still apply. */
5103 char printf();
5105 int main() {
5106 printf()
5107 ; return 0; }
5109 if { (eval echo configure:5110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5110 rm -rf conftest*
5111 eval "ac_cv_lib_$ac_lib_var=yes"
5112 else
5113 echo "configure: failed program was:" >&5
5114 cat conftest.$ac_ext >&5
5115 rm -rf conftest*
5116 eval "ac_cv_lib_$ac_lib_var=no"
5118 rm -f conftest*
5119 LIBS="$ac_save_LIBS"
5122 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5123 echo "$ac_t""yes" 1>&6
5124 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5125 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5126 cat >> confdefs.h <<EOF
5127 #define $ac_tr_lib 1
5130 LIBS="-lnsl_s $LIBS"
5132 else
5133 echo "$ac_t""no" 1>&6
5136 esac
5137 case "$LIBS" in
5138 *-lnsl*) ;;
5139 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
5140 echo "configure:5141: checking for printf in -lnsl" >&5
5141 ac_lib_var=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
5142 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5143 echo $ac_n "(cached) $ac_c" 1>&6
5144 else
5145 ac_save_LIBS="$LIBS"
5146 LIBS="-lnsl $LIBS"
5147 cat > conftest.$ac_ext <<EOF
5148 #line 5149 "configure"
5149 #include "confdefs.h"
5150 /* Override any gcc2 internal prototype to avoid an error. */
5151 /* We use char because int might match the return type of a gcc2
5152 builtin and then its argument prototype would still apply. */
5153 char printf();
5155 int main() {
5156 printf()
5157 ; return 0; }
5159 if { (eval echo configure:5160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5160 rm -rf conftest*
5161 eval "ac_cv_lib_$ac_lib_var=yes"
5162 else
5163 echo "configure: failed program was:" >&5
5164 cat conftest.$ac_ext >&5
5165 rm -rf conftest*
5166 eval "ac_cv_lib_$ac_lib_var=no"
5168 rm -f conftest*
5169 LIBS="$ac_save_LIBS"
5172 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5173 echo "$ac_t""yes" 1>&6
5174 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5175 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5176 cat >> confdefs.h <<EOF
5177 #define $ac_tr_lib 1
5180 LIBS="-lnsl $LIBS"
5182 else
5183 echo "$ac_t""no" 1>&6
5186 esac
5187 case "$LIBS" in
5188 *-lsocket*) ;;
5189 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
5190 echo "configure:5191: checking for connect in -lsocket" >&5
5191 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
5192 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5193 echo $ac_n "(cached) $ac_c" 1>&6
5194 else
5195 ac_save_LIBS="$LIBS"
5196 LIBS="-lsocket $LIBS"
5197 cat > conftest.$ac_ext <<EOF
5198 #line 5199 "configure"
5199 #include "confdefs.h"
5200 /* Override any gcc2 internal prototype to avoid an error. */
5201 /* We use char because int might match the return type of a gcc2
5202 builtin and then its argument prototype would still apply. */
5203 char connect();
5205 int main() {
5206 connect()
5207 ; return 0; }
5209 if { (eval echo configure:5210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5210 rm -rf conftest*
5211 eval "ac_cv_lib_$ac_lib_var=yes"
5212 else
5213 echo "configure: failed program was:" >&5
5214 cat conftest.$ac_ext >&5
5215 rm -rf conftest*
5216 eval "ac_cv_lib_$ac_lib_var=no"
5218 rm -f conftest*
5219 LIBS="$ac_save_LIBS"
5222 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5223 echo "$ac_t""yes" 1>&6
5224 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5225 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5226 cat >> confdefs.h <<EOF
5227 #define $ac_tr_lib 1
5230 LIBS="-lsocket $LIBS"
5232 else
5233 echo "$ac_t""no" 1>&6
5236 esac
5237 case "$LIBS" in
5238 *-linet*) ;;
5239 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
5240 echo "configure:5241: checking for connect in -linet" >&5
5241 ac_lib_var=`echo inet'_'connect | sed 'y%./+-%__p_%'`
5242 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5243 echo $ac_n "(cached) $ac_c" 1>&6
5244 else
5245 ac_save_LIBS="$LIBS"
5246 LIBS="-linet $LIBS"
5247 cat > conftest.$ac_ext <<EOF
5248 #line 5249 "configure"
5249 #include "confdefs.h"
5250 /* Override any gcc2 internal prototype to avoid an error. */
5251 /* We use char because int might match the return type of a gcc2
5252 builtin and then its argument prototype would still apply. */
5253 char connect();
5255 int main() {
5256 connect()
5257 ; return 0; }
5259 if { (eval echo configure:5260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5260 rm -rf conftest*
5261 eval "ac_cv_lib_$ac_lib_var=yes"
5262 else
5263 echo "configure: failed program was:" >&5
5264 cat conftest.$ac_ext >&5
5265 rm -rf conftest*
5266 eval "ac_cv_lib_$ac_lib_var=no"
5268 rm -f conftest*
5269 LIBS="$ac_save_LIBS"
5272 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5273 echo "$ac_t""yes" 1>&6
5274 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5275 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5276 cat >> confdefs.h <<EOF
5277 #define $ac_tr_lib 1
5280 LIBS="-linet $LIBS"
5282 else
5283 echo "$ac_t""no" 1>&6
5286 esac
5287 if test x"$ac_cv_lib_socket_connect" = x"yes" ||
5288 test x"$ac_cv_lib_inet_connect" = x"yes"; then
5289 # ac_cv_func_connect=yes
5290 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
5291 cat >> confdefs.h <<\EOF
5292 #define HAVE_CONNECT 1
5298 ###############################################
5299 # test for where we get get_yp_default_domain() from
5300 for ac_func in yp_get_default_domain
5302 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5303 echo "configure:5304: checking for $ac_func" >&5
5304 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5305 echo $ac_n "(cached) $ac_c" 1>&6
5306 else
5307 cat > conftest.$ac_ext <<EOF
5308 #line 5309 "configure"
5309 #include "confdefs.h"
5310 /* System header to define __stub macros and hopefully few prototypes,
5311 which can conflict with char $ac_func(); below. */
5312 #include <assert.h>
5313 /* Override any gcc2 internal prototype to avoid an error. */
5314 /* We use char because int might match the return type of a gcc2
5315 builtin and then its argument prototype would still apply. */
5316 char $ac_func();
5318 int main() {
5320 /* The GNU C library defines this for functions which it implements
5321 to always fail with ENOSYS. Some functions are actually named
5322 something starting with __ and the normal name is an alias. */
5323 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5324 choke me
5325 #else
5326 $ac_func();
5327 #endif
5329 ; return 0; }
5331 if { (eval echo configure:5332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5332 rm -rf conftest*
5333 eval "ac_cv_func_$ac_func=yes"
5334 else
5335 echo "configure: failed program was:" >&5
5336 cat conftest.$ac_ext >&5
5337 rm -rf conftest*
5338 eval "ac_cv_func_$ac_func=no"
5340 rm -f conftest*
5343 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5344 echo "$ac_t""yes" 1>&6
5345 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5346 cat >> confdefs.h <<EOF
5347 #define $ac_tr_func 1
5350 else
5351 echo "$ac_t""no" 1>&6
5353 done
5355 if test x"$ac_cv_func_yp_get_default_domain" = x"no"; then
5356 echo $ac_n "checking for yp_get_default_domain in -lnsl""... $ac_c" 1>&6
5357 echo "configure:5358: checking for yp_get_default_domain in -lnsl" >&5
5358 ac_lib_var=`echo nsl'_'yp_get_default_domain | sed 'y%./+-%__p_%'`
5359 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5360 echo $ac_n "(cached) $ac_c" 1>&6
5361 else
5362 ac_save_LIBS="$LIBS"
5363 LIBS="-lnsl $LIBS"
5364 cat > conftest.$ac_ext <<EOF
5365 #line 5366 "configure"
5366 #include "confdefs.h"
5367 /* Override any gcc2 internal prototype to avoid an error. */
5368 /* We use char because int might match the return type of a gcc2
5369 builtin and then its argument prototype would still apply. */
5370 char yp_get_default_domain();
5372 int main() {
5373 yp_get_default_domain()
5374 ; return 0; }
5376 if { (eval echo configure:5377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5377 rm -rf conftest*
5378 eval "ac_cv_lib_$ac_lib_var=yes"
5379 else
5380 echo "configure: failed program was:" >&5
5381 cat conftest.$ac_ext >&5
5382 rm -rf conftest*
5383 eval "ac_cv_lib_$ac_lib_var=no"
5385 rm -f conftest*
5386 LIBS="$ac_save_LIBS"
5389 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5390 echo "$ac_t""yes" 1>&6
5391 LIBS="$LIBS -lnsl";
5392 cat >> confdefs.h <<\EOF
5393 #define HAVE_YP_GET_DEFAULT_DOMAIN 1
5396 else
5397 echo "$ac_t""no" 1>&6
5402 # Check if we have execl, if not we need to compile smbrun.
5403 for ac_func in execl
5405 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5406 echo "configure:5407: checking for $ac_func" >&5
5407 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5408 echo $ac_n "(cached) $ac_c" 1>&6
5409 else
5410 cat > conftest.$ac_ext <<EOF
5411 #line 5412 "configure"
5412 #include "confdefs.h"
5413 /* System header to define __stub macros and hopefully few prototypes,
5414 which can conflict with char $ac_func(); below. */
5415 #include <assert.h>
5416 /* Override any gcc2 internal prototype to avoid an error. */
5417 /* We use char because int might match the return type of a gcc2
5418 builtin and then its argument prototype would still apply. */
5419 char $ac_func();
5421 int main() {
5423 /* The GNU C library defines this for functions which it implements
5424 to always fail with ENOSYS. Some functions are actually named
5425 something starting with __ and the normal name is an alias. */
5426 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5427 choke me
5428 #else
5429 $ac_func();
5430 #endif
5432 ; return 0; }
5434 if { (eval echo configure:5435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5435 rm -rf conftest*
5436 eval "ac_cv_func_$ac_func=yes"
5437 else
5438 echo "configure: failed program was:" >&5
5439 cat conftest.$ac_ext >&5
5440 rm -rf conftest*
5441 eval "ac_cv_func_$ac_func=no"
5443 rm -f conftest*
5446 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5447 echo "$ac_t""yes" 1>&6
5448 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5449 cat >> confdefs.h <<EOF
5450 #define $ac_tr_func 1
5453 else
5454 echo "$ac_t""no" 1>&6
5456 done
5458 if test x"$ac_cv_func_execl" = x"no"; then
5459 RUNPROG="bin/smbrun\$(EXEEXT)"
5460 else
5461 RUNPROG=""
5464 for ac_func in dlopen dlclose dlsym dlerror waitpid getcwd strdup strndup strnlen strtoul strerror chown fchown chmod fchmod chroot link
5466 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5467 echo "configure:5468: checking for $ac_func" >&5
5468 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5469 echo $ac_n "(cached) $ac_c" 1>&6
5470 else
5471 cat > conftest.$ac_ext <<EOF
5472 #line 5473 "configure"
5473 #include "confdefs.h"
5474 /* System header to define __stub macros and hopefully few prototypes,
5475 which can conflict with char $ac_func(); below. */
5476 #include <assert.h>
5477 /* Override any gcc2 internal prototype to avoid an error. */
5478 /* We use char because int might match the return type of a gcc2
5479 builtin and then its argument prototype would still apply. */
5480 char $ac_func();
5482 int main() {
5484 /* The GNU C library defines this for functions which it implements
5485 to always fail with ENOSYS. Some functions are actually named
5486 something starting with __ and the normal name is an alias. */
5487 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5488 choke me
5489 #else
5490 $ac_func();
5491 #endif
5493 ; return 0; }
5495 if { (eval echo configure:5496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5496 rm -rf conftest*
5497 eval "ac_cv_func_$ac_func=yes"
5498 else
5499 echo "configure: failed program was:" >&5
5500 cat conftest.$ac_ext >&5
5501 rm -rf conftest*
5502 eval "ac_cv_func_$ac_func=no"
5504 rm -f conftest*
5507 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5508 echo "$ac_t""yes" 1>&6
5509 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5510 cat >> confdefs.h <<EOF
5511 #define $ac_tr_func 1
5514 else
5515 echo "$ac_t""no" 1>&6
5517 done
5519 for ac_func in fstat strchr utime utimes getrlimit fsync bzero memset strlcpy strlcat setpgid mknod mknod64
5521 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5522 echo "configure:5523: checking for $ac_func" >&5
5523 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5524 echo $ac_n "(cached) $ac_c" 1>&6
5525 else
5526 cat > conftest.$ac_ext <<EOF
5527 #line 5528 "configure"
5528 #include "confdefs.h"
5529 /* System header to define __stub macros and hopefully few prototypes,
5530 which can conflict with char $ac_func(); below. */
5531 #include <assert.h>
5532 /* Override any gcc2 internal prototype to avoid an error. */
5533 /* We use char because int might match the return type of a gcc2
5534 builtin and then its argument prototype would still apply. */
5535 char $ac_func();
5537 int main() {
5539 /* The GNU C library defines this for functions which it implements
5540 to always fail with ENOSYS. Some functions are actually named
5541 something starting with __ and the normal name is an alias. */
5542 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5543 choke me
5544 #else
5545 $ac_func();
5546 #endif
5548 ; return 0; }
5550 if { (eval echo configure:5551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5551 rm -rf conftest*
5552 eval "ac_cv_func_$ac_func=yes"
5553 else
5554 echo "configure: failed program was:" >&5
5555 cat conftest.$ac_ext >&5
5556 rm -rf conftest*
5557 eval "ac_cv_func_$ac_func=no"
5559 rm -f conftest*
5562 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5563 echo "$ac_t""yes" 1>&6
5564 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5565 cat >> confdefs.h <<EOF
5566 #define $ac_tr_func 1
5569 else
5570 echo "$ac_t""no" 1>&6
5572 done
5574 for ac_func in memmove vsnprintf snprintf asprintf vasprintf setsid glob strpbrk pipe crypt16 getauthuid
5576 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5577 echo "configure:5578: checking for $ac_func" >&5
5578 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5579 echo $ac_n "(cached) $ac_c" 1>&6
5580 else
5581 cat > conftest.$ac_ext <<EOF
5582 #line 5583 "configure"
5583 #include "confdefs.h"
5584 /* System header to define __stub macros and hopefully few prototypes,
5585 which can conflict with char $ac_func(); below. */
5586 #include <assert.h>
5587 /* Override any gcc2 internal prototype to avoid an error. */
5588 /* We use char because int might match the return type of a gcc2
5589 builtin and then its argument prototype would still apply. */
5590 char $ac_func();
5592 int main() {
5594 /* The GNU C library defines this for functions which it implements
5595 to always fail with ENOSYS. Some functions are actually named
5596 something starting with __ and the normal name is an alias. */
5597 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5598 choke me
5599 #else
5600 $ac_func();
5601 #endif
5603 ; return 0; }
5605 if { (eval echo configure:5606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5606 rm -rf conftest*
5607 eval "ac_cv_func_$ac_func=yes"
5608 else
5609 echo "configure: failed program was:" >&5
5610 cat conftest.$ac_ext >&5
5611 rm -rf conftest*
5612 eval "ac_cv_func_$ac_func=no"
5614 rm -f conftest*
5617 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5618 echo "$ac_t""yes" 1>&6
5619 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5620 cat >> confdefs.h <<EOF
5621 #define $ac_tr_func 1
5624 else
5625 echo "$ac_t""no" 1>&6
5627 done
5629 for ac_func in strftime sigprocmask sigblock sigaction sigset innetgr setnetgrent getnetgrent endnetgrent
5631 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5632 echo "configure:5633: checking for $ac_func" >&5
5633 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5634 echo $ac_n "(cached) $ac_c" 1>&6
5635 else
5636 cat > conftest.$ac_ext <<EOF
5637 #line 5638 "configure"
5638 #include "confdefs.h"
5639 /* System header to define __stub macros and hopefully few prototypes,
5640 which can conflict with char $ac_func(); below. */
5641 #include <assert.h>
5642 /* Override any gcc2 internal prototype to avoid an error. */
5643 /* We use char because int might match the return type of a gcc2
5644 builtin and then its argument prototype would still apply. */
5645 char $ac_func();
5647 int main() {
5649 /* The GNU C library defines this for functions which it implements
5650 to always fail with ENOSYS. Some functions are actually named
5651 something starting with __ and the normal name is an alias. */
5652 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5653 choke me
5654 #else
5655 $ac_func();
5656 #endif
5658 ; return 0; }
5660 if { (eval echo configure:5661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5661 rm -rf conftest*
5662 eval "ac_cv_func_$ac_func=yes"
5663 else
5664 echo "configure: failed program was:" >&5
5665 cat conftest.$ac_ext >&5
5666 rm -rf conftest*
5667 eval "ac_cv_func_$ac_func=no"
5669 rm -f conftest*
5672 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5673 echo "$ac_t""yes" 1>&6
5674 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5675 cat >> confdefs.h <<EOF
5676 #define $ac_tr_func 1
5679 else
5680 echo "$ac_t""no" 1>&6
5682 done
5684 for ac_func in initgroups select poll rdchk getgrnam getgrent pathconf realpath
5686 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5687 echo "configure:5688: checking for $ac_func" >&5
5688 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5689 echo $ac_n "(cached) $ac_c" 1>&6
5690 else
5691 cat > conftest.$ac_ext <<EOF
5692 #line 5693 "configure"
5693 #include "confdefs.h"
5694 /* System header to define __stub macros and hopefully few prototypes,
5695 which can conflict with char $ac_func(); below. */
5696 #include <assert.h>
5697 /* Override any gcc2 internal prototype to avoid an error. */
5698 /* We use char because int might match the return type of a gcc2
5699 builtin and then its argument prototype would still apply. */
5700 char $ac_func();
5702 int main() {
5704 /* The GNU C library defines this for functions which it implements
5705 to always fail with ENOSYS. Some functions are actually named
5706 something starting with __ and the normal name is an alias. */
5707 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5708 choke me
5709 #else
5710 $ac_func();
5711 #endif
5713 ; return 0; }
5715 if { (eval echo configure:5716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5716 rm -rf conftest*
5717 eval "ac_cv_func_$ac_func=yes"
5718 else
5719 echo "configure: failed program was:" >&5
5720 cat conftest.$ac_ext >&5
5721 rm -rf conftest*
5722 eval "ac_cv_func_$ac_func=no"
5724 rm -f conftest*
5727 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5728 echo "$ac_t""yes" 1>&6
5729 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5730 cat >> confdefs.h <<EOF
5731 #define $ac_tr_func 1
5734 else
5735 echo "$ac_t""no" 1>&6
5737 done
5739 for ac_func in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
5741 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5742 echo "configure:5743: checking for $ac_func" >&5
5743 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5744 echo $ac_n "(cached) $ac_c" 1>&6
5745 else
5746 cat > conftest.$ac_ext <<EOF
5747 #line 5748 "configure"
5748 #include "confdefs.h"
5749 /* System header to define __stub macros and hopefully few prototypes,
5750 which can conflict with char $ac_func(); below. */
5751 #include <assert.h>
5752 /* Override any gcc2 internal prototype to avoid an error. */
5753 /* We use char because int might match the return type of a gcc2
5754 builtin and then its argument prototype would still apply. */
5755 char $ac_func();
5757 int main() {
5759 /* The GNU C library defines this for functions which it implements
5760 to always fail with ENOSYS. Some functions are actually named
5761 something starting with __ and the normal name is an alias. */
5762 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5763 choke me
5764 #else
5765 $ac_func();
5766 #endif
5768 ; return 0; }
5770 if { (eval echo configure:5771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5771 rm -rf conftest*
5772 eval "ac_cv_func_$ac_func=yes"
5773 else
5774 echo "configure: failed program was:" >&5
5775 cat conftest.$ac_ext >&5
5776 rm -rf conftest*
5777 eval "ac_cv_func_$ac_func=no"
5779 rm -f conftest*
5782 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5783 echo "$ac_t""yes" 1>&6
5784 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5785 cat >> confdefs.h <<EOF
5786 #define $ac_tr_func 1
5789 else
5790 echo "$ac_t""no" 1>&6
5792 done
5794 for ac_func in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
5796 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5797 echo "configure:5798: checking for $ac_func" >&5
5798 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5799 echo $ac_n "(cached) $ac_c" 1>&6
5800 else
5801 cat > conftest.$ac_ext <<EOF
5802 #line 5803 "configure"
5803 #include "confdefs.h"
5804 /* System header to define __stub macros and hopefully few prototypes,
5805 which can conflict with char $ac_func(); below. */
5806 #include <assert.h>
5807 /* Override any gcc2 internal prototype to avoid an error. */
5808 /* We use char because int might match the return type of a gcc2
5809 builtin and then its argument prototype would still apply. */
5810 char $ac_func();
5812 int main() {
5814 /* The GNU C library defines this for functions which it implements
5815 to always fail with ENOSYS. Some functions are actually named
5816 something starting with __ and the normal name is an alias. */
5817 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5818 choke me
5819 #else
5820 $ac_func();
5821 #endif
5823 ; return 0; }
5825 if { (eval echo configure:5826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5826 rm -rf conftest*
5827 eval "ac_cv_func_$ac_func=yes"
5828 else
5829 echo "configure: failed program was:" >&5
5830 cat conftest.$ac_ext >&5
5831 rm -rf conftest*
5832 eval "ac_cv_func_$ac_func=no"
5834 rm -f conftest*
5837 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5838 echo "$ac_t""yes" 1>&6
5839 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5840 cat >> confdefs.h <<EOF
5841 #define $ac_tr_func 1
5844 else
5845 echo "$ac_t""no" 1>&6
5847 done
5849 for ac_func in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam setlinebuf
5851 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5852 echo "configure:5853: checking for $ac_func" >&5
5853 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5854 echo $ac_n "(cached) $ac_c" 1>&6
5855 else
5856 cat > conftest.$ac_ext <<EOF
5857 #line 5858 "configure"
5858 #include "confdefs.h"
5859 /* System header to define __stub macros and hopefully few prototypes,
5860 which can conflict with char $ac_func(); below. */
5861 #include <assert.h>
5862 /* Override any gcc2 internal prototype to avoid an error. */
5863 /* We use char because int might match the return type of a gcc2
5864 builtin and then its argument prototype would still apply. */
5865 char $ac_func();
5867 int main() {
5869 /* The GNU C library defines this for functions which it implements
5870 to always fail with ENOSYS. Some functions are actually named
5871 something starting with __ and the normal name is an alias. */
5872 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5873 choke me
5874 #else
5875 $ac_func();
5876 #endif
5878 ; return 0; }
5880 if { (eval echo configure:5881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5881 rm -rf conftest*
5882 eval "ac_cv_func_$ac_func=yes"
5883 else
5884 echo "configure: failed program was:" >&5
5885 cat conftest.$ac_ext >&5
5886 rm -rf conftest*
5887 eval "ac_cv_func_$ac_func=no"
5889 rm -f conftest*
5892 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5893 echo "$ac_t""yes" 1>&6
5894 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5895 cat >> confdefs.h <<EOF
5896 #define $ac_tr_func 1
5899 else
5900 echo "$ac_t""no" 1>&6
5902 done
5904 for ac_func in srandom random srand rand setenv usleep strcasecmp fcvt fcvtl symlink readlink
5906 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5907 echo "configure:5908: checking for $ac_func" >&5
5908 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5909 echo $ac_n "(cached) $ac_c" 1>&6
5910 else
5911 cat > conftest.$ac_ext <<EOF
5912 #line 5913 "configure"
5913 #include "confdefs.h"
5914 /* System header to define __stub macros and hopefully few prototypes,
5915 which can conflict with char $ac_func(); below. */
5916 #include <assert.h>
5917 /* Override any gcc2 internal prototype to avoid an error. */
5918 /* We use char because int might match the return type of a gcc2
5919 builtin and then its argument prototype would still apply. */
5920 char $ac_func();
5922 int main() {
5924 /* The GNU C library defines this for functions which it implements
5925 to always fail with ENOSYS. Some functions are actually named
5926 something starting with __ and the normal name is an alias. */
5927 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5928 choke me
5929 #else
5930 $ac_func();
5931 #endif
5933 ; return 0; }
5935 if { (eval echo configure:5936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5936 rm -rf conftest*
5937 eval "ac_cv_func_$ac_func=yes"
5938 else
5939 echo "configure: failed program was:" >&5
5940 cat conftest.$ac_ext >&5
5941 rm -rf conftest*
5942 eval "ac_cv_func_$ac_func=no"
5944 rm -f conftest*
5947 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5948 echo "$ac_t""yes" 1>&6
5949 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5950 cat >> confdefs.h <<EOF
5951 #define $ac_tr_func 1
5954 else
5955 echo "$ac_t""no" 1>&6
5957 done
5959 for ac_func in syslog vsyslog
5961 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5962 echo "configure:5963: checking for $ac_func" >&5
5963 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5964 echo $ac_n "(cached) $ac_c" 1>&6
5965 else
5966 cat > conftest.$ac_ext <<EOF
5967 #line 5968 "configure"
5968 #include "confdefs.h"
5969 /* System header to define __stub macros and hopefully few prototypes,
5970 which can conflict with char $ac_func(); below. */
5971 #include <assert.h>
5972 /* Override any gcc2 internal prototype to avoid an error. */
5973 /* We use char because int might match the return type of a gcc2
5974 builtin and then its argument prototype would still apply. */
5975 char $ac_func();
5977 int main() {
5979 /* The GNU C library defines this for functions which it implements
5980 to always fail with ENOSYS. Some functions are actually named
5981 something starting with __ and the normal name is an alias. */
5982 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5983 choke me
5984 #else
5985 $ac_func();
5986 #endif
5988 ; return 0; }
5990 if { (eval echo configure:5991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5991 rm -rf conftest*
5992 eval "ac_cv_func_$ac_func=yes"
5993 else
5994 echo "configure: failed program was:" >&5
5995 cat conftest.$ac_ext >&5
5996 rm -rf conftest*
5997 eval "ac_cv_func_$ac_func=no"
5999 rm -f conftest*
6002 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6003 echo "$ac_t""yes" 1>&6
6004 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6005 cat >> confdefs.h <<EOF
6006 #define $ac_tr_func 1
6009 else
6010 echo "$ac_t""no" 1>&6
6012 done
6015 # syscall() is needed for smbwrapper.
6016 for ac_func in syscall
6018 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6019 echo "configure:6020: checking for $ac_func" >&5
6020 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6021 echo $ac_n "(cached) $ac_c" 1>&6
6022 else
6023 cat > conftest.$ac_ext <<EOF
6024 #line 6025 "configure"
6025 #include "confdefs.h"
6026 /* System header to define __stub macros and hopefully few prototypes,
6027 which can conflict with char $ac_func(); below. */
6028 #include <assert.h>
6029 /* Override any gcc2 internal prototype to avoid an error. */
6030 /* We use char because int might match the return type of a gcc2
6031 builtin and then its argument prototype would still apply. */
6032 char $ac_func();
6034 int main() {
6036 /* The GNU C library defines this for functions which it implements
6037 to always fail with ENOSYS. Some functions are actually named
6038 something starting with __ and the normal name is an alias. */
6039 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6040 choke me
6041 #else
6042 $ac_func();
6043 #endif
6045 ; return 0; }
6047 if { (eval echo configure:6048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6048 rm -rf conftest*
6049 eval "ac_cv_func_$ac_func=yes"
6050 else
6051 echo "configure: failed program was:" >&5
6052 cat conftest.$ac_ext >&5
6053 rm -rf conftest*
6054 eval "ac_cv_func_$ac_func=no"
6056 rm -f conftest*
6059 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6060 echo "$ac_t""yes" 1>&6
6061 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6062 cat >> confdefs.h <<EOF
6063 #define $ac_tr_func 1
6066 else
6067 echo "$ac_t""no" 1>&6
6069 done
6072 for ac_func in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
6074 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6075 echo "configure:6076: checking for $ac_func" >&5
6076 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6077 echo $ac_n "(cached) $ac_c" 1>&6
6078 else
6079 cat > conftest.$ac_ext <<EOF
6080 #line 6081 "configure"
6081 #include "confdefs.h"
6082 /* System header to define __stub macros and hopefully few prototypes,
6083 which can conflict with char $ac_func(); below. */
6084 #include <assert.h>
6085 /* Override any gcc2 internal prototype to avoid an error. */
6086 /* We use char because int might match the return type of a gcc2
6087 builtin and then its argument prototype would still apply. */
6088 char $ac_func();
6090 int main() {
6092 /* The GNU C library defines this for functions which it implements
6093 to always fail with ENOSYS. Some functions are actually named
6094 something starting with __ and the normal name is an alias. */
6095 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6096 choke me
6097 #else
6098 $ac_func();
6099 #endif
6101 ; return 0; }
6103 if { (eval echo configure:6104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6104 rm -rf conftest*
6105 eval "ac_cv_func_$ac_func=yes"
6106 else
6107 echo "configure: failed program was:" >&5
6108 cat conftest.$ac_ext >&5
6109 rm -rf conftest*
6110 eval "ac_cv_func_$ac_func=no"
6112 rm -f conftest*
6115 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6116 echo "$ac_t""yes" 1>&6
6117 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6118 cat >> confdefs.h <<EOF
6119 #define $ac_tr_func 1
6122 else
6123 echo "$ac_t""no" 1>&6
6125 done
6127 for ac_func in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
6129 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6130 echo "configure:6131: checking for $ac_func" >&5
6131 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6132 echo $ac_n "(cached) $ac_c" 1>&6
6133 else
6134 cat > conftest.$ac_ext <<EOF
6135 #line 6136 "configure"
6136 #include "confdefs.h"
6137 /* System header to define __stub macros and hopefully few prototypes,
6138 which can conflict with char $ac_func(); below. */
6139 #include <assert.h>
6140 /* Override any gcc2 internal prototype to avoid an error. */
6141 /* We use char because int might match the return type of a gcc2
6142 builtin and then its argument prototype would still apply. */
6143 char $ac_func();
6145 int main() {
6147 /* The GNU C library defines this for functions which it implements
6148 to always fail with ENOSYS. Some functions are actually named
6149 something starting with __ and the normal name is an alias. */
6150 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6151 choke me
6152 #else
6153 $ac_func();
6154 #endif
6156 ; return 0; }
6158 if { (eval echo configure:6159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6159 rm -rf conftest*
6160 eval "ac_cv_func_$ac_func=yes"
6161 else
6162 echo "configure: failed program was:" >&5
6163 cat conftest.$ac_ext >&5
6164 rm -rf conftest*
6165 eval "ac_cv_func_$ac_func=no"
6167 rm -f conftest*
6170 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6171 echo "$ac_t""yes" 1>&6
6172 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6173 cat >> confdefs.h <<EOF
6174 #define $ac_tr_func 1
6177 else
6178 echo "$ac_t""no" 1>&6
6180 done
6182 for ac_func in __getcwd _getcwd
6184 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6185 echo "configure:6186: checking for $ac_func" >&5
6186 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6187 echo $ac_n "(cached) $ac_c" 1>&6
6188 else
6189 cat > conftest.$ac_ext <<EOF
6190 #line 6191 "configure"
6191 #include "confdefs.h"
6192 /* System header to define __stub macros and hopefully few prototypes,
6193 which can conflict with char $ac_func(); below. */
6194 #include <assert.h>
6195 /* Override any gcc2 internal prototype to avoid an error. */
6196 /* We use char because int might match the return type of a gcc2
6197 builtin and then its argument prototype would still apply. */
6198 char $ac_func();
6200 int main() {
6202 /* The GNU C library defines this for functions which it implements
6203 to always fail with ENOSYS. Some functions are actually named
6204 something starting with __ and the normal name is an alias. */
6205 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6206 choke me
6207 #else
6208 $ac_func();
6209 #endif
6211 ; return 0; }
6213 if { (eval echo configure:6214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6214 rm -rf conftest*
6215 eval "ac_cv_func_$ac_func=yes"
6216 else
6217 echo "configure: failed program was:" >&5
6218 cat conftest.$ac_ext >&5
6219 rm -rf conftest*
6220 eval "ac_cv_func_$ac_func=no"
6222 rm -f conftest*
6225 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6226 echo "$ac_t""yes" 1>&6
6227 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6228 cat >> confdefs.h <<EOF
6229 #define $ac_tr_func 1
6232 else
6233 echo "$ac_t""no" 1>&6
6235 done
6237 for ac_func in __xstat __fxstat __lxstat
6239 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6240 echo "configure:6241: checking for $ac_func" >&5
6241 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6242 echo $ac_n "(cached) $ac_c" 1>&6
6243 else
6244 cat > conftest.$ac_ext <<EOF
6245 #line 6246 "configure"
6246 #include "confdefs.h"
6247 /* System header to define __stub macros and hopefully few prototypes,
6248 which can conflict with char $ac_func(); below. */
6249 #include <assert.h>
6250 /* Override any gcc2 internal prototype to avoid an error. */
6251 /* We use char because int might match the return type of a gcc2
6252 builtin and then its argument prototype would still apply. */
6253 char $ac_func();
6255 int main() {
6257 /* The GNU C library defines this for functions which it implements
6258 to always fail with ENOSYS. Some functions are actually named
6259 something starting with __ and the normal name is an alias. */
6260 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6261 choke me
6262 #else
6263 $ac_func();
6264 #endif
6266 ; return 0; }
6268 if { (eval echo configure:6269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6269 rm -rf conftest*
6270 eval "ac_cv_func_$ac_func=yes"
6271 else
6272 echo "configure: failed program was:" >&5
6273 cat conftest.$ac_ext >&5
6274 rm -rf conftest*
6275 eval "ac_cv_func_$ac_func=no"
6277 rm -f conftest*
6280 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6281 echo "$ac_t""yes" 1>&6
6282 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6283 cat >> confdefs.h <<EOF
6284 #define $ac_tr_func 1
6287 else
6288 echo "$ac_t""no" 1>&6
6290 done
6292 for ac_func in _stat _lstat _fstat __stat __lstat __fstat
6294 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6295 echo "configure:6296: checking for $ac_func" >&5
6296 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6297 echo $ac_n "(cached) $ac_c" 1>&6
6298 else
6299 cat > conftest.$ac_ext <<EOF
6300 #line 6301 "configure"
6301 #include "confdefs.h"
6302 /* System header to define __stub macros and hopefully few prototypes,
6303 which can conflict with char $ac_func(); below. */
6304 #include <assert.h>
6305 /* Override any gcc2 internal prototype to avoid an error. */
6306 /* We use char because int might match the return type of a gcc2
6307 builtin and then its argument prototype would still apply. */
6308 char $ac_func();
6310 int main() {
6312 /* The GNU C library defines this for functions which it implements
6313 to always fail with ENOSYS. Some functions are actually named
6314 something starting with __ and the normal name is an alias. */
6315 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6316 choke me
6317 #else
6318 $ac_func();
6319 #endif
6321 ; return 0; }
6323 if { (eval echo configure:6324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6324 rm -rf conftest*
6325 eval "ac_cv_func_$ac_func=yes"
6326 else
6327 echo "configure: failed program was:" >&5
6328 cat conftest.$ac_ext >&5
6329 rm -rf conftest*
6330 eval "ac_cv_func_$ac_func=no"
6332 rm -f conftest*
6335 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6336 echo "$ac_t""yes" 1>&6
6337 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6338 cat >> confdefs.h <<EOF
6339 #define $ac_tr_func 1
6342 else
6343 echo "$ac_t""no" 1>&6
6345 done
6347 for ac_func in _acl __acl _facl __facl _open __open _chdir __chdir
6349 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6350 echo "configure:6351: checking for $ac_func" >&5
6351 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6352 echo $ac_n "(cached) $ac_c" 1>&6
6353 else
6354 cat > conftest.$ac_ext <<EOF
6355 #line 6356 "configure"
6356 #include "confdefs.h"
6357 /* System header to define __stub macros and hopefully few prototypes,
6358 which can conflict with char $ac_func(); below. */
6359 #include <assert.h>
6360 /* Override any gcc2 internal prototype to avoid an error. */
6361 /* We use char because int might match the return type of a gcc2
6362 builtin and then its argument prototype would still apply. */
6363 char $ac_func();
6365 int main() {
6367 /* The GNU C library defines this for functions which it implements
6368 to always fail with ENOSYS. Some functions are actually named
6369 something starting with __ and the normal name is an alias. */
6370 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6371 choke me
6372 #else
6373 $ac_func();
6374 #endif
6376 ; return 0; }
6378 if { (eval echo configure:6379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6379 rm -rf conftest*
6380 eval "ac_cv_func_$ac_func=yes"
6381 else
6382 echo "configure: failed program was:" >&5
6383 cat conftest.$ac_ext >&5
6384 rm -rf conftest*
6385 eval "ac_cv_func_$ac_func=no"
6387 rm -f conftest*
6390 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6391 echo "$ac_t""yes" 1>&6
6392 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6393 cat >> confdefs.h <<EOF
6394 #define $ac_tr_func 1
6397 else
6398 echo "$ac_t""no" 1>&6
6400 done
6402 for ac_func in _close __close _fchdir __fchdir _fcntl __fcntl
6404 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6405 echo "configure:6406: checking for $ac_func" >&5
6406 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6407 echo $ac_n "(cached) $ac_c" 1>&6
6408 else
6409 cat > conftest.$ac_ext <<EOF
6410 #line 6411 "configure"
6411 #include "confdefs.h"
6412 /* System header to define __stub macros and hopefully few prototypes,
6413 which can conflict with char $ac_func(); below. */
6414 #include <assert.h>
6415 /* Override any gcc2 internal prototype to avoid an error. */
6416 /* We use char because int might match the return type of a gcc2
6417 builtin and then its argument prototype would still apply. */
6418 char $ac_func();
6420 int main() {
6422 /* The GNU C library defines this for functions which it implements
6423 to always fail with ENOSYS. Some functions are actually named
6424 something starting with __ and the normal name is an alias. */
6425 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6426 choke me
6427 #else
6428 $ac_func();
6429 #endif
6431 ; return 0; }
6433 if { (eval echo configure:6434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6434 rm -rf conftest*
6435 eval "ac_cv_func_$ac_func=yes"
6436 else
6437 echo "configure: failed program was:" >&5
6438 cat conftest.$ac_ext >&5
6439 rm -rf conftest*
6440 eval "ac_cv_func_$ac_func=no"
6442 rm -f conftest*
6445 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6446 echo "$ac_t""yes" 1>&6
6447 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6448 cat >> confdefs.h <<EOF
6449 #define $ac_tr_func 1
6452 else
6453 echo "$ac_t""no" 1>&6
6455 done
6457 for ac_func in getdents _getdents __getdents _lseek __lseek _read __read
6459 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6460 echo "configure:6461: checking for $ac_func" >&5
6461 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6462 echo $ac_n "(cached) $ac_c" 1>&6
6463 else
6464 cat > conftest.$ac_ext <<EOF
6465 #line 6466 "configure"
6466 #include "confdefs.h"
6467 /* System header to define __stub macros and hopefully few prototypes,
6468 which can conflict with char $ac_func(); below. */
6469 #include <assert.h>
6470 /* Override any gcc2 internal prototype to avoid an error. */
6471 /* We use char because int might match the return type of a gcc2
6472 builtin and then its argument prototype would still apply. */
6473 char $ac_func();
6475 int main() {
6477 /* The GNU C library defines this for functions which it implements
6478 to always fail with ENOSYS. Some functions are actually named
6479 something starting with __ and the normal name is an alias. */
6480 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6481 choke me
6482 #else
6483 $ac_func();
6484 #endif
6486 ; return 0; }
6488 if { (eval echo configure:6489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6489 rm -rf conftest*
6490 eval "ac_cv_func_$ac_func=yes"
6491 else
6492 echo "configure: failed program was:" >&5
6493 cat conftest.$ac_ext >&5
6494 rm -rf conftest*
6495 eval "ac_cv_func_$ac_func=no"
6497 rm -f conftest*
6500 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6501 echo "$ac_t""yes" 1>&6
6502 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6503 cat >> confdefs.h <<EOF
6504 #define $ac_tr_func 1
6507 else
6508 echo "$ac_t""no" 1>&6
6510 done
6512 for ac_func in _write __write _fork __fork
6514 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6515 echo "configure:6516: checking for $ac_func" >&5
6516 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6517 echo $ac_n "(cached) $ac_c" 1>&6
6518 else
6519 cat > conftest.$ac_ext <<EOF
6520 #line 6521 "configure"
6521 #include "confdefs.h"
6522 /* System header to define __stub macros and hopefully few prototypes,
6523 which can conflict with char $ac_func(); below. */
6524 #include <assert.h>
6525 /* Override any gcc2 internal prototype to avoid an error. */
6526 /* We use char because int might match the return type of a gcc2
6527 builtin and then its argument prototype would still apply. */
6528 char $ac_func();
6530 int main() {
6532 /* The GNU C library defines this for functions which it implements
6533 to always fail with ENOSYS. Some functions are actually named
6534 something starting with __ and the normal name is an alias. */
6535 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6536 choke me
6537 #else
6538 $ac_func();
6539 #endif
6541 ; return 0; }
6543 if { (eval echo configure:6544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6544 rm -rf conftest*
6545 eval "ac_cv_func_$ac_func=yes"
6546 else
6547 echo "configure: failed program was:" >&5
6548 cat conftest.$ac_ext >&5
6549 rm -rf conftest*
6550 eval "ac_cv_func_$ac_func=no"
6552 rm -f conftest*
6555 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6556 echo "$ac_t""yes" 1>&6
6557 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6558 cat >> confdefs.h <<EOF
6559 #define $ac_tr_func 1
6562 else
6563 echo "$ac_t""no" 1>&6
6565 done
6567 for ac_func in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
6569 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6570 echo "configure:6571: checking for $ac_func" >&5
6571 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6572 echo $ac_n "(cached) $ac_c" 1>&6
6573 else
6574 cat > conftest.$ac_ext <<EOF
6575 #line 6576 "configure"
6576 #include "confdefs.h"
6577 /* System header to define __stub macros and hopefully few prototypes,
6578 which can conflict with char $ac_func(); below. */
6579 #include <assert.h>
6580 /* Override any gcc2 internal prototype to avoid an error. */
6581 /* We use char because int might match the return type of a gcc2
6582 builtin and then its argument prototype would still apply. */
6583 char $ac_func();
6585 int main() {
6587 /* The GNU C library defines this for functions which it implements
6588 to always fail with ENOSYS. Some functions are actually named
6589 something starting with __ and the normal name is an alias. */
6590 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6591 choke me
6592 #else
6593 $ac_func();
6594 #endif
6596 ; return 0; }
6598 if { (eval echo configure:6599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6599 rm -rf conftest*
6600 eval "ac_cv_func_$ac_func=yes"
6601 else
6602 echo "configure: failed program was:" >&5
6603 cat conftest.$ac_ext >&5
6604 rm -rf conftest*
6605 eval "ac_cv_func_$ac_func=no"
6607 rm -f conftest*
6610 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6611 echo "$ac_t""yes" 1>&6
6612 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6613 cat >> confdefs.h <<EOF
6614 #define $ac_tr_func 1
6617 else
6618 echo "$ac_t""no" 1>&6
6620 done
6622 for ac_func in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
6624 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6625 echo "configure:6626: checking for $ac_func" >&5
6626 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6627 echo $ac_n "(cached) $ac_c" 1>&6
6628 else
6629 cat > conftest.$ac_ext <<EOF
6630 #line 6631 "configure"
6631 #include "confdefs.h"
6632 /* System header to define __stub macros and hopefully few prototypes,
6633 which can conflict with char $ac_func(); below. */
6634 #include <assert.h>
6635 /* Override any gcc2 internal prototype to avoid an error. */
6636 /* We use char because int might match the return type of a gcc2
6637 builtin and then its argument prototype would still apply. */
6638 char $ac_func();
6640 int main() {
6642 /* The GNU C library defines this for functions which it implements
6643 to always fail with ENOSYS. Some functions are actually named
6644 something starting with __ and the normal name is an alias. */
6645 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6646 choke me
6647 #else
6648 $ac_func();
6649 #endif
6651 ; return 0; }
6653 if { (eval echo configure:6654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6654 rm -rf conftest*
6655 eval "ac_cv_func_$ac_func=yes"
6656 else
6657 echo "configure: failed program was:" >&5
6658 cat conftest.$ac_ext >&5
6659 rm -rf conftest*
6660 eval "ac_cv_func_$ac_func=no"
6662 rm -f conftest*
6665 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6666 echo "$ac_t""yes" 1>&6
6667 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6668 cat >> confdefs.h <<EOF
6669 #define $ac_tr_func 1
6672 else
6673 echo "$ac_t""no" 1>&6
6675 done
6677 for ac_func in pread _pread __pread pread64 _pread64 __pread64
6679 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6680 echo "configure:6681: checking for $ac_func" >&5
6681 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6682 echo $ac_n "(cached) $ac_c" 1>&6
6683 else
6684 cat > conftest.$ac_ext <<EOF
6685 #line 6686 "configure"
6686 #include "confdefs.h"
6687 /* System header to define __stub macros and hopefully few prototypes,
6688 which can conflict with char $ac_func(); below. */
6689 #include <assert.h>
6690 /* Override any gcc2 internal prototype to avoid an error. */
6691 /* We use char because int might match the return type of a gcc2
6692 builtin and then its argument prototype would still apply. */
6693 char $ac_func();
6695 int main() {
6697 /* The GNU C library defines this for functions which it implements
6698 to always fail with ENOSYS. Some functions are actually named
6699 something starting with __ and the normal name is an alias. */
6700 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6701 choke me
6702 #else
6703 $ac_func();
6704 #endif
6706 ; return 0; }
6708 if { (eval echo configure:6709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6709 rm -rf conftest*
6710 eval "ac_cv_func_$ac_func=yes"
6711 else
6712 echo "configure: failed program was:" >&5
6713 cat conftest.$ac_ext >&5
6714 rm -rf conftest*
6715 eval "ac_cv_func_$ac_func=no"
6717 rm -f conftest*
6720 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6721 echo "$ac_t""yes" 1>&6
6722 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6723 cat >> confdefs.h <<EOF
6724 #define $ac_tr_func 1
6727 else
6728 echo "$ac_t""no" 1>&6
6730 done
6732 for ac_func in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
6734 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6735 echo "configure:6736: checking for $ac_func" >&5
6736 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6737 echo $ac_n "(cached) $ac_c" 1>&6
6738 else
6739 cat > conftest.$ac_ext <<EOF
6740 #line 6741 "configure"
6741 #include "confdefs.h"
6742 /* System header to define __stub macros and hopefully few prototypes,
6743 which can conflict with char $ac_func(); below. */
6744 #include <assert.h>
6745 /* Override any gcc2 internal prototype to avoid an error. */
6746 /* We use char because int might match the return type of a gcc2
6747 builtin and then its argument prototype would still apply. */
6748 char $ac_func();
6750 int main() {
6752 /* The GNU C library defines this for functions which it implements
6753 to always fail with ENOSYS. Some functions are actually named
6754 something starting with __ and the normal name is an alias. */
6755 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6756 choke me
6757 #else
6758 $ac_func();
6759 #endif
6761 ; return 0; }
6763 if { (eval echo configure:6764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6764 rm -rf conftest*
6765 eval "ac_cv_func_$ac_func=yes"
6766 else
6767 echo "configure: failed program was:" >&5
6768 cat conftest.$ac_ext >&5
6769 rm -rf conftest*
6770 eval "ac_cv_func_$ac_func=no"
6772 rm -f conftest*
6775 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6776 echo "$ac_t""yes" 1>&6
6777 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6778 cat >> confdefs.h <<EOF
6779 #define $ac_tr_func 1
6782 else
6783 echo "$ac_t""no" 1>&6
6785 done
6787 for ac_func in open64 _open64 __open64 creat64
6789 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6790 echo "configure:6791: checking for $ac_func" >&5
6791 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6792 echo $ac_n "(cached) $ac_c" 1>&6
6793 else
6794 cat > conftest.$ac_ext <<EOF
6795 #line 6796 "configure"
6796 #include "confdefs.h"
6797 /* System header to define __stub macros and hopefully few prototypes,
6798 which can conflict with char $ac_func(); below. */
6799 #include <assert.h>
6800 /* Override any gcc2 internal prototype to avoid an error. */
6801 /* We use char because int might match the return type of a gcc2
6802 builtin and then its argument prototype would still apply. */
6803 char $ac_func();
6805 int main() {
6807 /* The GNU C library defines this for functions which it implements
6808 to always fail with ENOSYS. Some functions are actually named
6809 something starting with __ and the normal name is an alias. */
6810 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6811 choke me
6812 #else
6813 $ac_func();
6814 #endif
6816 ; return 0; }
6818 if { (eval echo configure:6819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6819 rm -rf conftest*
6820 eval "ac_cv_func_$ac_func=yes"
6821 else
6822 echo "configure: failed program was:" >&5
6823 cat conftest.$ac_ext >&5
6824 rm -rf conftest*
6825 eval "ac_cv_func_$ac_func=no"
6827 rm -f conftest*
6830 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6831 echo "$ac_t""yes" 1>&6
6832 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6833 cat >> confdefs.h <<EOF
6834 #define $ac_tr_func 1
6837 else
6838 echo "$ac_t""no" 1>&6
6840 done
6844 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
6847 if test x$ac_cv_func_stat64 = xno ; then
6848 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
6849 echo "configure:6850: checking for stat64 in <sys/stat.h>" >&5
6850 cat > conftest.$ac_ext <<EOF
6851 #line 6852 "configure"
6852 #include "confdefs.h"
6854 #if defined(HAVE_UNISTD_H)
6855 #include <unistd.h>
6856 #endif
6857 #include <sys/stat.h>
6859 int main() {
6860 struct stat64 st64; exit(stat64(".",&st64));
6861 ; return 0; }
6863 if { (eval echo configure:6864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6864 rm -rf conftest*
6865 ac_cv_func_stat64=yes
6866 else
6867 echo "configure: failed program was:" >&5
6868 cat conftest.$ac_ext >&5
6870 rm -f conftest*
6871 echo "$ac_t""$ac_cv_func_stat64" 1>&6
6872 if test x$ac_cv_func_stat64 = xyes ; then
6873 cat >> confdefs.h <<\EOF
6874 #define HAVE_STAT64 1
6880 if test x$ac_cv_func_lstat64 = xno ; then
6881 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
6882 echo "configure:6883: checking for lstat64 in <sys/stat.h>" >&5
6883 cat > conftest.$ac_ext <<EOF
6884 #line 6885 "configure"
6885 #include "confdefs.h"
6887 #if defined(HAVE_UNISTD_H)
6888 #include <unistd.h>
6889 #endif
6890 #include <sys/stat.h>
6892 int main() {
6893 struct stat64 st64; exit(lstat64(".",&st64));
6894 ; return 0; }
6896 if { (eval echo configure:6897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6897 rm -rf conftest*
6898 ac_cv_func_lstat64=yes
6899 else
6900 echo "configure: failed program was:" >&5
6901 cat conftest.$ac_ext >&5
6903 rm -f conftest*
6904 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
6905 if test x$ac_cv_func_lstat64 = xyes ; then
6906 cat >> confdefs.h <<\EOF
6907 #define HAVE_LSTAT64 1
6913 if test x$ac_cv_func_fstat64 = xno ; then
6914 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
6915 echo "configure:6916: checking for fstat64 in <sys/stat.h>" >&5
6916 cat > conftest.$ac_ext <<EOF
6917 #line 6918 "configure"
6918 #include "confdefs.h"
6920 #if defined(HAVE_UNISTD_H)
6921 #include <unistd.h>
6922 #endif
6923 #include <sys/stat.h>
6925 int main() {
6926 struct stat64 st64; exit(fstat64(0,&st64));
6927 ; return 0; }
6929 if { (eval echo configure:6930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6930 rm -rf conftest*
6931 ac_cv_func_fstat64=yes
6932 else
6933 echo "configure: failed program was:" >&5
6934 cat conftest.$ac_ext >&5
6936 rm -f conftest*
6937 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
6938 if test x$ac_cv_func_fstat64 = xyes ; then
6939 cat >> confdefs.h <<\EOF
6940 #define HAVE_FSTAT64 1
6947 # If no strcasecmp, check for it in some known places
6948 # It is in -lresolv on ReliantUNIX and UnixWare
6949 # -lresolve *must* follow -lnsl for name resolution to work properly
6952 if test x$ac_cv_func_strcasecmp = xno ; then
6953 echo $ac_n "checking for strcasecmp in -lresolv""... $ac_c" 1>&6
6954 echo "configure:6955: checking for strcasecmp in -lresolv" >&5
6955 ac_lib_var=`echo resolv'_'strcasecmp | sed 'y%./+-%__p_%'`
6956 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6957 echo $ac_n "(cached) $ac_c" 1>&6
6958 else
6959 ac_save_LIBS="$LIBS"
6960 LIBS="-lresolv $LIBS"
6961 cat > conftest.$ac_ext <<EOF
6962 #line 6963 "configure"
6963 #include "confdefs.h"
6964 /* Override any gcc2 internal prototype to avoid an error. */
6965 /* We use char because int might match the return type of a gcc2
6966 builtin and then its argument prototype would still apply. */
6967 char strcasecmp();
6969 int main() {
6970 strcasecmp()
6971 ; return 0; }
6973 if { (eval echo configure:6974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6974 rm -rf conftest*
6975 eval "ac_cv_lib_$ac_lib_var=yes"
6976 else
6977 echo "configure: failed program was:" >&5
6978 cat conftest.$ac_ext >&5
6979 rm -rf conftest*
6980 eval "ac_cv_lib_$ac_lib_var=no"
6982 rm -f conftest*
6983 LIBS="$ac_save_LIBS"
6986 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6987 echo "$ac_t""yes" 1>&6
6988 LIBS="$LIBS -lresolv"
6989 cat >> confdefs.h <<\EOF
6990 #define HAVE_STRCASECMP 1
6993 else
6994 echo "$ac_t""no" 1>&6
7000 # Check for the functions putprpwnam, set_auth_parameters,
7001 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
7002 # Needed for OSF1 and HPUX.
7005 case "$LIBS" in
7006 *-lsecurity*) for ac_func in putprpwnam
7008 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7009 echo "configure:7010: checking for $ac_func" >&5
7010 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7011 echo $ac_n "(cached) $ac_c" 1>&6
7012 else
7013 cat > conftest.$ac_ext <<EOF
7014 #line 7015 "configure"
7015 #include "confdefs.h"
7016 /* System header to define __stub macros and hopefully few prototypes,
7017 which can conflict with char $ac_func(); below. */
7018 #include <assert.h>
7019 /* Override any gcc2 internal prototype to avoid an error. */
7020 /* We use char because int might match the return type of a gcc2
7021 builtin and then its argument prototype would still apply. */
7022 char $ac_func();
7024 int main() {
7026 /* The GNU C library defines this for functions which it implements
7027 to always fail with ENOSYS. Some functions are actually named
7028 something starting with __ and the normal name is an alias. */
7029 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7030 choke me
7031 #else
7032 $ac_func();
7033 #endif
7035 ; return 0; }
7037 if { (eval echo configure:7038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7038 rm -rf conftest*
7039 eval "ac_cv_func_$ac_func=yes"
7040 else
7041 echo "configure: failed program was:" >&5
7042 cat conftest.$ac_ext >&5
7043 rm -rf conftest*
7044 eval "ac_cv_func_$ac_func=no"
7046 rm -f conftest*
7049 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7050 echo "$ac_t""yes" 1>&6
7051 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7052 cat >> confdefs.h <<EOF
7053 #define $ac_tr_func 1
7056 else
7057 echo "$ac_t""no" 1>&6
7059 done
7061 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
7062 echo "configure:7063: checking for putprpwnam in -lsecurity" >&5
7063 ac_lib_var=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
7064 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7065 echo $ac_n "(cached) $ac_c" 1>&6
7066 else
7067 ac_save_LIBS="$LIBS"
7068 LIBS="-lsecurity $LIBS"
7069 cat > conftest.$ac_ext <<EOF
7070 #line 7071 "configure"
7071 #include "confdefs.h"
7072 /* Override any gcc2 internal prototype to avoid an error. */
7073 /* We use char because int might match the return type of a gcc2
7074 builtin and then its argument prototype would still apply. */
7075 char putprpwnam();
7077 int main() {
7078 putprpwnam()
7079 ; return 0; }
7081 if { (eval echo configure:7082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7082 rm -rf conftest*
7083 eval "ac_cv_lib_$ac_lib_var=yes"
7084 else
7085 echo "configure: failed program was:" >&5
7086 cat conftest.$ac_ext >&5
7087 rm -rf conftest*
7088 eval "ac_cv_lib_$ac_lib_var=no"
7090 rm -f conftest*
7091 LIBS="$ac_save_LIBS"
7094 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7095 echo "$ac_t""yes" 1>&6
7096 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7097 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7098 cat >> confdefs.h <<EOF
7099 #define $ac_tr_lib 1
7102 LIBS="-lsecurity $LIBS"
7104 else
7105 echo "$ac_t""no" 1>&6
7108 for ac_func in putprpwnam
7110 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7111 echo "configure:7112: checking for $ac_func" >&5
7112 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7113 echo $ac_n "(cached) $ac_c" 1>&6
7114 else
7115 cat > conftest.$ac_ext <<EOF
7116 #line 7117 "configure"
7117 #include "confdefs.h"
7118 /* System header to define __stub macros and hopefully few prototypes,
7119 which can conflict with char $ac_func(); below. */
7120 #include <assert.h>
7121 /* Override any gcc2 internal prototype to avoid an error. */
7122 /* We use char because int might match the return type of a gcc2
7123 builtin and then its argument prototype would still apply. */
7124 char $ac_func();
7126 int main() {
7128 /* The GNU C library defines this for functions which it implements
7129 to always fail with ENOSYS. Some functions are actually named
7130 something starting with __ and the normal name is an alias. */
7131 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7132 choke me
7133 #else
7134 $ac_func();
7135 #endif
7137 ; return 0; }
7139 if { (eval echo configure:7140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7140 rm -rf conftest*
7141 eval "ac_cv_func_$ac_func=yes"
7142 else
7143 echo "configure: failed program was:" >&5
7144 cat conftest.$ac_ext >&5
7145 rm -rf conftest*
7146 eval "ac_cv_func_$ac_func=no"
7148 rm -f conftest*
7151 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7152 echo "$ac_t""yes" 1>&6
7153 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7154 cat >> confdefs.h <<EOF
7155 #define $ac_tr_func 1
7158 else
7159 echo "$ac_t""no" 1>&6
7161 done
7164 esac
7166 case "$LIBS" in
7167 *-lsec*) for ac_func in putprpwnam
7169 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7170 echo "configure:7171: checking for $ac_func" >&5
7171 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7172 echo $ac_n "(cached) $ac_c" 1>&6
7173 else
7174 cat > conftest.$ac_ext <<EOF
7175 #line 7176 "configure"
7176 #include "confdefs.h"
7177 /* System header to define __stub macros and hopefully few prototypes,
7178 which can conflict with char $ac_func(); below. */
7179 #include <assert.h>
7180 /* Override any gcc2 internal prototype to avoid an error. */
7181 /* We use char because int might match the return type of a gcc2
7182 builtin and then its argument prototype would still apply. */
7183 char $ac_func();
7185 int main() {
7187 /* The GNU C library defines this for functions which it implements
7188 to always fail with ENOSYS. Some functions are actually named
7189 something starting with __ and the normal name is an alias. */
7190 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7191 choke me
7192 #else
7193 $ac_func();
7194 #endif
7196 ; return 0; }
7198 if { (eval echo configure:7199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7199 rm -rf conftest*
7200 eval "ac_cv_func_$ac_func=yes"
7201 else
7202 echo "configure: failed program was:" >&5
7203 cat conftest.$ac_ext >&5
7204 rm -rf conftest*
7205 eval "ac_cv_func_$ac_func=no"
7207 rm -f conftest*
7210 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7211 echo "$ac_t""yes" 1>&6
7212 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7213 cat >> confdefs.h <<EOF
7214 #define $ac_tr_func 1
7217 else
7218 echo "$ac_t""no" 1>&6
7220 done
7222 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
7223 echo "configure:7224: checking for putprpwnam in -lsec" >&5
7224 ac_lib_var=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
7225 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7226 echo $ac_n "(cached) $ac_c" 1>&6
7227 else
7228 ac_save_LIBS="$LIBS"
7229 LIBS="-lsec $LIBS"
7230 cat > conftest.$ac_ext <<EOF
7231 #line 7232 "configure"
7232 #include "confdefs.h"
7233 /* Override any gcc2 internal prototype to avoid an error. */
7234 /* We use char because int might match the return type of a gcc2
7235 builtin and then its argument prototype would still apply. */
7236 char putprpwnam();
7238 int main() {
7239 putprpwnam()
7240 ; return 0; }
7242 if { (eval echo configure:7243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7243 rm -rf conftest*
7244 eval "ac_cv_lib_$ac_lib_var=yes"
7245 else
7246 echo "configure: failed program was:" >&5
7247 cat conftest.$ac_ext >&5
7248 rm -rf conftest*
7249 eval "ac_cv_lib_$ac_lib_var=no"
7251 rm -f conftest*
7252 LIBS="$ac_save_LIBS"
7255 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7256 echo "$ac_t""yes" 1>&6
7257 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7258 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7259 cat >> confdefs.h <<EOF
7260 #define $ac_tr_lib 1
7263 LIBS="-lsec $LIBS"
7265 else
7266 echo "$ac_t""no" 1>&6
7269 for ac_func in putprpwnam
7271 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7272 echo "configure:7273: checking for $ac_func" >&5
7273 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7274 echo $ac_n "(cached) $ac_c" 1>&6
7275 else
7276 cat > conftest.$ac_ext <<EOF
7277 #line 7278 "configure"
7278 #include "confdefs.h"
7279 /* System header to define __stub macros and hopefully few prototypes,
7280 which can conflict with char $ac_func(); below. */
7281 #include <assert.h>
7282 /* Override any gcc2 internal prototype to avoid an error. */
7283 /* We use char because int might match the return type of a gcc2
7284 builtin and then its argument prototype would still apply. */
7285 char $ac_func();
7287 int main() {
7289 /* The GNU C library defines this for functions which it implements
7290 to always fail with ENOSYS. Some functions are actually named
7291 something starting with __ and the normal name is an alias. */
7292 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7293 choke me
7294 #else
7295 $ac_func();
7296 #endif
7298 ; return 0; }
7300 if { (eval echo configure:7301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7301 rm -rf conftest*
7302 eval "ac_cv_func_$ac_func=yes"
7303 else
7304 echo "configure: failed program was:" >&5
7305 cat conftest.$ac_ext >&5
7306 rm -rf conftest*
7307 eval "ac_cv_func_$ac_func=no"
7309 rm -f conftest*
7312 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7313 echo "$ac_t""yes" 1>&6
7314 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7315 cat >> confdefs.h <<EOF
7316 #define $ac_tr_func 1
7319 else
7320 echo "$ac_t""no" 1>&6
7322 done
7325 esac
7328 case "$LIBS" in
7329 *-lsecurity*) for ac_func in set_auth_parameters
7331 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7332 echo "configure:7333: checking for $ac_func" >&5
7333 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7334 echo $ac_n "(cached) $ac_c" 1>&6
7335 else
7336 cat > conftest.$ac_ext <<EOF
7337 #line 7338 "configure"
7338 #include "confdefs.h"
7339 /* System header to define __stub macros and hopefully few prototypes,
7340 which can conflict with char $ac_func(); below. */
7341 #include <assert.h>
7342 /* Override any gcc2 internal prototype to avoid an error. */
7343 /* We use char because int might match the return type of a gcc2
7344 builtin and then its argument prototype would still apply. */
7345 char $ac_func();
7347 int main() {
7349 /* The GNU C library defines this for functions which it implements
7350 to always fail with ENOSYS. Some functions are actually named
7351 something starting with __ and the normal name is an alias. */
7352 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7353 choke me
7354 #else
7355 $ac_func();
7356 #endif
7358 ; return 0; }
7360 if { (eval echo configure:7361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7361 rm -rf conftest*
7362 eval "ac_cv_func_$ac_func=yes"
7363 else
7364 echo "configure: failed program was:" >&5
7365 cat conftest.$ac_ext >&5
7366 rm -rf conftest*
7367 eval "ac_cv_func_$ac_func=no"
7369 rm -f conftest*
7372 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7373 echo "$ac_t""yes" 1>&6
7374 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7375 cat >> confdefs.h <<EOF
7376 #define $ac_tr_func 1
7379 else
7380 echo "$ac_t""no" 1>&6
7382 done
7384 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
7385 echo "configure:7386: checking for set_auth_parameters in -lsecurity" >&5
7386 ac_lib_var=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7387 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7388 echo $ac_n "(cached) $ac_c" 1>&6
7389 else
7390 ac_save_LIBS="$LIBS"
7391 LIBS="-lsecurity $LIBS"
7392 cat > conftest.$ac_ext <<EOF
7393 #line 7394 "configure"
7394 #include "confdefs.h"
7395 /* Override any gcc2 internal prototype to avoid an error. */
7396 /* We use char because int might match the return type of a gcc2
7397 builtin and then its argument prototype would still apply. */
7398 char set_auth_parameters();
7400 int main() {
7401 set_auth_parameters()
7402 ; return 0; }
7404 if { (eval echo configure:7405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7405 rm -rf conftest*
7406 eval "ac_cv_lib_$ac_lib_var=yes"
7407 else
7408 echo "configure: failed program was:" >&5
7409 cat conftest.$ac_ext >&5
7410 rm -rf conftest*
7411 eval "ac_cv_lib_$ac_lib_var=no"
7413 rm -f conftest*
7414 LIBS="$ac_save_LIBS"
7417 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7418 echo "$ac_t""yes" 1>&6
7419 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7420 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7421 cat >> confdefs.h <<EOF
7422 #define $ac_tr_lib 1
7425 LIBS="-lsecurity $LIBS"
7427 else
7428 echo "$ac_t""no" 1>&6
7431 for ac_func in set_auth_parameters
7433 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7434 echo "configure:7435: checking for $ac_func" >&5
7435 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7436 echo $ac_n "(cached) $ac_c" 1>&6
7437 else
7438 cat > conftest.$ac_ext <<EOF
7439 #line 7440 "configure"
7440 #include "confdefs.h"
7441 /* System header to define __stub macros and hopefully few prototypes,
7442 which can conflict with char $ac_func(); below. */
7443 #include <assert.h>
7444 /* Override any gcc2 internal prototype to avoid an error. */
7445 /* We use char because int might match the return type of a gcc2
7446 builtin and then its argument prototype would still apply. */
7447 char $ac_func();
7449 int main() {
7451 /* The GNU C library defines this for functions which it implements
7452 to always fail with ENOSYS. Some functions are actually named
7453 something starting with __ and the normal name is an alias. */
7454 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7455 choke me
7456 #else
7457 $ac_func();
7458 #endif
7460 ; return 0; }
7462 if { (eval echo configure:7463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7463 rm -rf conftest*
7464 eval "ac_cv_func_$ac_func=yes"
7465 else
7466 echo "configure: failed program was:" >&5
7467 cat conftest.$ac_ext >&5
7468 rm -rf conftest*
7469 eval "ac_cv_func_$ac_func=no"
7471 rm -f conftest*
7474 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7475 echo "$ac_t""yes" 1>&6
7476 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7477 cat >> confdefs.h <<EOF
7478 #define $ac_tr_func 1
7481 else
7482 echo "$ac_t""no" 1>&6
7484 done
7487 esac
7489 case "$LIBS" in
7490 *-lsec*) for ac_func in set_auth_parameters
7492 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7493 echo "configure:7494: checking for $ac_func" >&5
7494 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7495 echo $ac_n "(cached) $ac_c" 1>&6
7496 else
7497 cat > conftest.$ac_ext <<EOF
7498 #line 7499 "configure"
7499 #include "confdefs.h"
7500 /* System header to define __stub macros and hopefully few prototypes,
7501 which can conflict with char $ac_func(); below. */
7502 #include <assert.h>
7503 /* Override any gcc2 internal prototype to avoid an error. */
7504 /* We use char because int might match the return type of a gcc2
7505 builtin and then its argument prototype would still apply. */
7506 char $ac_func();
7508 int main() {
7510 /* The GNU C library defines this for functions which it implements
7511 to always fail with ENOSYS. Some functions are actually named
7512 something starting with __ and the normal name is an alias. */
7513 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7514 choke me
7515 #else
7516 $ac_func();
7517 #endif
7519 ; return 0; }
7521 if { (eval echo configure:7522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7522 rm -rf conftest*
7523 eval "ac_cv_func_$ac_func=yes"
7524 else
7525 echo "configure: failed program was:" >&5
7526 cat conftest.$ac_ext >&5
7527 rm -rf conftest*
7528 eval "ac_cv_func_$ac_func=no"
7530 rm -f conftest*
7533 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7534 echo "$ac_t""yes" 1>&6
7535 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7536 cat >> confdefs.h <<EOF
7537 #define $ac_tr_func 1
7540 else
7541 echo "$ac_t""no" 1>&6
7543 done
7545 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
7546 echo "configure:7547: checking for set_auth_parameters in -lsec" >&5
7547 ac_lib_var=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7548 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7549 echo $ac_n "(cached) $ac_c" 1>&6
7550 else
7551 ac_save_LIBS="$LIBS"
7552 LIBS="-lsec $LIBS"
7553 cat > conftest.$ac_ext <<EOF
7554 #line 7555 "configure"
7555 #include "confdefs.h"
7556 /* Override any gcc2 internal prototype to avoid an error. */
7557 /* We use char because int might match the return type of a gcc2
7558 builtin and then its argument prototype would still apply. */
7559 char set_auth_parameters();
7561 int main() {
7562 set_auth_parameters()
7563 ; return 0; }
7565 if { (eval echo configure:7566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7566 rm -rf conftest*
7567 eval "ac_cv_lib_$ac_lib_var=yes"
7568 else
7569 echo "configure: failed program was:" >&5
7570 cat conftest.$ac_ext >&5
7571 rm -rf conftest*
7572 eval "ac_cv_lib_$ac_lib_var=no"
7574 rm -f conftest*
7575 LIBS="$ac_save_LIBS"
7578 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7579 echo "$ac_t""yes" 1>&6
7580 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7581 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7582 cat >> confdefs.h <<EOF
7583 #define $ac_tr_lib 1
7586 LIBS="-lsec $LIBS"
7588 else
7589 echo "$ac_t""no" 1>&6
7592 for ac_func in set_auth_parameters
7594 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7595 echo "configure:7596: checking for $ac_func" >&5
7596 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7597 echo $ac_n "(cached) $ac_c" 1>&6
7598 else
7599 cat > conftest.$ac_ext <<EOF
7600 #line 7601 "configure"
7601 #include "confdefs.h"
7602 /* System header to define __stub macros and hopefully few prototypes,
7603 which can conflict with char $ac_func(); below. */
7604 #include <assert.h>
7605 /* Override any gcc2 internal prototype to avoid an error. */
7606 /* We use char because int might match the return type of a gcc2
7607 builtin and then its argument prototype would still apply. */
7608 char $ac_func();
7610 int main() {
7612 /* The GNU C library defines this for functions which it implements
7613 to always fail with ENOSYS. Some functions are actually named
7614 something starting with __ and the normal name is an alias. */
7615 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7616 choke me
7617 #else
7618 $ac_func();
7619 #endif
7621 ; return 0; }
7623 if { (eval echo configure:7624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7624 rm -rf conftest*
7625 eval "ac_cv_func_$ac_func=yes"
7626 else
7627 echo "configure: failed program was:" >&5
7628 cat conftest.$ac_ext >&5
7629 rm -rf conftest*
7630 eval "ac_cv_func_$ac_func=no"
7632 rm -f conftest*
7635 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7636 echo "$ac_t""yes" 1>&6
7637 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7638 cat >> confdefs.h <<EOF
7639 #define $ac_tr_func 1
7642 else
7643 echo "$ac_t""no" 1>&6
7645 done
7648 esac
7651 # UnixWare 7.x has its getspnam in -lgen
7652 case "$LIBS" in
7653 *-lgen*) for ac_func in getspnam
7655 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7656 echo "configure:7657: checking for $ac_func" >&5
7657 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7658 echo $ac_n "(cached) $ac_c" 1>&6
7659 else
7660 cat > conftest.$ac_ext <<EOF
7661 #line 7662 "configure"
7662 #include "confdefs.h"
7663 /* System header to define __stub macros and hopefully few prototypes,
7664 which can conflict with char $ac_func(); below. */
7665 #include <assert.h>
7666 /* Override any gcc2 internal prototype to avoid an error. */
7667 /* We use char because int might match the return type of a gcc2
7668 builtin and then its argument prototype would still apply. */
7669 char $ac_func();
7671 int main() {
7673 /* The GNU C library defines this for functions which it implements
7674 to always fail with ENOSYS. Some functions are actually named
7675 something starting with __ and the normal name is an alias. */
7676 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7677 choke me
7678 #else
7679 $ac_func();
7680 #endif
7682 ; return 0; }
7684 if { (eval echo configure:7685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7685 rm -rf conftest*
7686 eval "ac_cv_func_$ac_func=yes"
7687 else
7688 echo "configure: failed program was:" >&5
7689 cat conftest.$ac_ext >&5
7690 rm -rf conftest*
7691 eval "ac_cv_func_$ac_func=no"
7693 rm -f conftest*
7696 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7697 echo "$ac_t""yes" 1>&6
7698 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7699 cat >> confdefs.h <<EOF
7700 #define $ac_tr_func 1
7703 else
7704 echo "$ac_t""no" 1>&6
7706 done
7708 *) echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
7709 echo "configure:7710: checking for getspnam in -lgen" >&5
7710 ac_lib_var=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
7711 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7712 echo $ac_n "(cached) $ac_c" 1>&6
7713 else
7714 ac_save_LIBS="$LIBS"
7715 LIBS="-lgen $LIBS"
7716 cat > conftest.$ac_ext <<EOF
7717 #line 7718 "configure"
7718 #include "confdefs.h"
7719 /* Override any gcc2 internal prototype to avoid an error. */
7720 /* We use char because int might match the return type of a gcc2
7721 builtin and then its argument prototype would still apply. */
7722 char getspnam();
7724 int main() {
7725 getspnam()
7726 ; return 0; }
7728 if { (eval echo configure:7729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7729 rm -rf conftest*
7730 eval "ac_cv_lib_$ac_lib_var=yes"
7731 else
7732 echo "configure: failed program was:" >&5
7733 cat conftest.$ac_ext >&5
7734 rm -rf conftest*
7735 eval "ac_cv_lib_$ac_lib_var=no"
7737 rm -f conftest*
7738 LIBS="$ac_save_LIBS"
7741 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7742 echo "$ac_t""yes" 1>&6
7743 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7744 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7745 cat >> confdefs.h <<EOF
7746 #define $ac_tr_lib 1
7749 LIBS="-lgen $LIBS"
7751 else
7752 echo "$ac_t""no" 1>&6
7755 for ac_func in getspnam
7757 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7758 echo "configure:7759: checking for $ac_func" >&5
7759 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7760 echo $ac_n "(cached) $ac_c" 1>&6
7761 else
7762 cat > conftest.$ac_ext <<EOF
7763 #line 7764 "configure"
7764 #include "confdefs.h"
7765 /* System header to define __stub macros and hopefully few prototypes,
7766 which can conflict with char $ac_func(); below. */
7767 #include <assert.h>
7768 /* Override any gcc2 internal prototype to avoid an error. */
7769 /* We use char because int might match the return type of a gcc2
7770 builtin and then its argument prototype would still apply. */
7771 char $ac_func();
7773 int main() {
7775 /* The GNU C library defines this for functions which it implements
7776 to always fail with ENOSYS. Some functions are actually named
7777 something starting with __ and the normal name is an alias. */
7778 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7779 choke me
7780 #else
7781 $ac_func();
7782 #endif
7784 ; return 0; }
7786 if { (eval echo configure:7787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7787 rm -rf conftest*
7788 eval "ac_cv_func_$ac_func=yes"
7789 else
7790 echo "configure: failed program was:" >&5
7791 cat conftest.$ac_ext >&5
7792 rm -rf conftest*
7793 eval "ac_cv_func_$ac_func=no"
7795 rm -f conftest*
7798 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7799 echo "$ac_t""yes" 1>&6
7800 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7801 cat >> confdefs.h <<EOF
7802 #define $ac_tr_func 1
7805 else
7806 echo "$ac_t""no" 1>&6
7808 done
7811 esac
7814 case "$LIBS" in
7815 *-lsecurity*) for ac_func in getspnam
7817 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7818 echo "configure:7819: checking for $ac_func" >&5
7819 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7820 echo $ac_n "(cached) $ac_c" 1>&6
7821 else
7822 cat > conftest.$ac_ext <<EOF
7823 #line 7824 "configure"
7824 #include "confdefs.h"
7825 /* System header to define __stub macros and hopefully few prototypes,
7826 which can conflict with char $ac_func(); below. */
7827 #include <assert.h>
7828 /* Override any gcc2 internal prototype to avoid an error. */
7829 /* We use char because int might match the return type of a gcc2
7830 builtin and then its argument prototype would still apply. */
7831 char $ac_func();
7833 int main() {
7835 /* The GNU C library defines this for functions which it implements
7836 to always fail with ENOSYS. Some functions are actually named
7837 something starting with __ and the normal name is an alias. */
7838 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7839 choke me
7840 #else
7841 $ac_func();
7842 #endif
7844 ; return 0; }
7846 if { (eval echo configure:7847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7847 rm -rf conftest*
7848 eval "ac_cv_func_$ac_func=yes"
7849 else
7850 echo "configure: failed program was:" >&5
7851 cat conftest.$ac_ext >&5
7852 rm -rf conftest*
7853 eval "ac_cv_func_$ac_func=no"
7855 rm -f conftest*
7858 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7859 echo "$ac_t""yes" 1>&6
7860 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7861 cat >> confdefs.h <<EOF
7862 #define $ac_tr_func 1
7865 else
7866 echo "$ac_t""no" 1>&6
7868 done
7870 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
7871 echo "configure:7872: checking for getspnam in -lsecurity" >&5
7872 ac_lib_var=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
7873 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7874 echo $ac_n "(cached) $ac_c" 1>&6
7875 else
7876 ac_save_LIBS="$LIBS"
7877 LIBS="-lsecurity $LIBS"
7878 cat > conftest.$ac_ext <<EOF
7879 #line 7880 "configure"
7880 #include "confdefs.h"
7881 /* Override any gcc2 internal prototype to avoid an error. */
7882 /* We use char because int might match the return type of a gcc2
7883 builtin and then its argument prototype would still apply. */
7884 char getspnam();
7886 int main() {
7887 getspnam()
7888 ; return 0; }
7890 if { (eval echo configure:7891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7891 rm -rf conftest*
7892 eval "ac_cv_lib_$ac_lib_var=yes"
7893 else
7894 echo "configure: failed program was:" >&5
7895 cat conftest.$ac_ext >&5
7896 rm -rf conftest*
7897 eval "ac_cv_lib_$ac_lib_var=no"
7899 rm -f conftest*
7900 LIBS="$ac_save_LIBS"
7903 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7904 echo "$ac_t""yes" 1>&6
7905 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7906 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7907 cat >> confdefs.h <<EOF
7908 #define $ac_tr_lib 1
7911 LIBS="-lsecurity $LIBS"
7913 else
7914 echo "$ac_t""no" 1>&6
7917 for ac_func in getspnam
7919 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7920 echo "configure:7921: checking for $ac_func" >&5
7921 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7922 echo $ac_n "(cached) $ac_c" 1>&6
7923 else
7924 cat > conftest.$ac_ext <<EOF
7925 #line 7926 "configure"
7926 #include "confdefs.h"
7927 /* System header to define __stub macros and hopefully few prototypes,
7928 which can conflict with char $ac_func(); below. */
7929 #include <assert.h>
7930 /* Override any gcc2 internal prototype to avoid an error. */
7931 /* We use char because int might match the return type of a gcc2
7932 builtin and then its argument prototype would still apply. */
7933 char $ac_func();
7935 int main() {
7937 /* The GNU C library defines this for functions which it implements
7938 to always fail with ENOSYS. Some functions are actually named
7939 something starting with __ and the normal name is an alias. */
7940 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7941 choke me
7942 #else
7943 $ac_func();
7944 #endif
7946 ; return 0; }
7948 if { (eval echo configure:7949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7949 rm -rf conftest*
7950 eval "ac_cv_func_$ac_func=yes"
7951 else
7952 echo "configure: failed program was:" >&5
7953 cat conftest.$ac_ext >&5
7954 rm -rf conftest*
7955 eval "ac_cv_func_$ac_func=no"
7957 rm -f conftest*
7960 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7961 echo "$ac_t""yes" 1>&6
7962 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7963 cat >> confdefs.h <<EOF
7964 #define $ac_tr_func 1
7967 else
7968 echo "$ac_t""no" 1>&6
7970 done
7973 esac
7975 case "$LIBS" in
7976 *-lsec*) for ac_func in getspnam
7978 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7979 echo "configure:7980: checking for $ac_func" >&5
7980 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7981 echo $ac_n "(cached) $ac_c" 1>&6
7982 else
7983 cat > conftest.$ac_ext <<EOF
7984 #line 7985 "configure"
7985 #include "confdefs.h"
7986 /* System header to define __stub macros and hopefully few prototypes,
7987 which can conflict with char $ac_func(); below. */
7988 #include <assert.h>
7989 /* Override any gcc2 internal prototype to avoid an error. */
7990 /* We use char because int might match the return type of a gcc2
7991 builtin and then its argument prototype would still apply. */
7992 char $ac_func();
7994 int main() {
7996 /* The GNU C library defines this for functions which it implements
7997 to always fail with ENOSYS. Some functions are actually named
7998 something starting with __ and the normal name is an alias. */
7999 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8000 choke me
8001 #else
8002 $ac_func();
8003 #endif
8005 ; return 0; }
8007 if { (eval echo configure:8008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8008 rm -rf conftest*
8009 eval "ac_cv_func_$ac_func=yes"
8010 else
8011 echo "configure: failed program was:" >&5
8012 cat conftest.$ac_ext >&5
8013 rm -rf conftest*
8014 eval "ac_cv_func_$ac_func=no"
8016 rm -f conftest*
8019 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8020 echo "$ac_t""yes" 1>&6
8021 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8022 cat >> confdefs.h <<EOF
8023 #define $ac_tr_func 1
8026 else
8027 echo "$ac_t""no" 1>&6
8029 done
8031 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
8032 echo "configure:8033: checking for getspnam in -lsec" >&5
8033 ac_lib_var=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
8034 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8035 echo $ac_n "(cached) $ac_c" 1>&6
8036 else
8037 ac_save_LIBS="$LIBS"
8038 LIBS="-lsec $LIBS"
8039 cat > conftest.$ac_ext <<EOF
8040 #line 8041 "configure"
8041 #include "confdefs.h"
8042 /* Override any gcc2 internal prototype to avoid an error. */
8043 /* We use char because int might match the return type of a gcc2
8044 builtin and then its argument prototype would still apply. */
8045 char getspnam();
8047 int main() {
8048 getspnam()
8049 ; return 0; }
8051 if { (eval echo configure:8052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8052 rm -rf conftest*
8053 eval "ac_cv_lib_$ac_lib_var=yes"
8054 else
8055 echo "configure: failed program was:" >&5
8056 cat conftest.$ac_ext >&5
8057 rm -rf conftest*
8058 eval "ac_cv_lib_$ac_lib_var=no"
8060 rm -f conftest*
8061 LIBS="$ac_save_LIBS"
8064 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8065 echo "$ac_t""yes" 1>&6
8066 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8067 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8068 cat >> confdefs.h <<EOF
8069 #define $ac_tr_lib 1
8072 LIBS="-lsec $LIBS"
8074 else
8075 echo "$ac_t""no" 1>&6
8078 for ac_func in getspnam
8080 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8081 echo "configure:8082: checking for $ac_func" >&5
8082 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8083 echo $ac_n "(cached) $ac_c" 1>&6
8084 else
8085 cat > conftest.$ac_ext <<EOF
8086 #line 8087 "configure"
8087 #include "confdefs.h"
8088 /* System header to define __stub macros and hopefully few prototypes,
8089 which can conflict with char $ac_func(); below. */
8090 #include <assert.h>
8091 /* Override any gcc2 internal prototype to avoid an error. */
8092 /* We use char because int might match the return type of a gcc2
8093 builtin and then its argument prototype would still apply. */
8094 char $ac_func();
8096 int main() {
8098 /* The GNU C library defines this for functions which it implements
8099 to always fail with ENOSYS. Some functions are actually named
8100 something starting with __ and the normal name is an alias. */
8101 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8102 choke me
8103 #else
8104 $ac_func();
8105 #endif
8107 ; return 0; }
8109 if { (eval echo configure:8110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8110 rm -rf conftest*
8111 eval "ac_cv_func_$ac_func=yes"
8112 else
8113 echo "configure: failed program was:" >&5
8114 cat conftest.$ac_ext >&5
8115 rm -rf conftest*
8116 eval "ac_cv_func_$ac_func=no"
8118 rm -f conftest*
8121 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8122 echo "$ac_t""yes" 1>&6
8123 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8124 cat >> confdefs.h <<EOF
8125 #define $ac_tr_func 1
8128 else
8129 echo "$ac_t""no" 1>&6
8131 done
8134 esac
8137 case "$LIBS" in
8138 *-lsecurity*) for ac_func in bigcrypt
8140 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8141 echo "configure:8142: checking for $ac_func" >&5
8142 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8143 echo $ac_n "(cached) $ac_c" 1>&6
8144 else
8145 cat > conftest.$ac_ext <<EOF
8146 #line 8147 "configure"
8147 #include "confdefs.h"
8148 /* System header to define __stub macros and hopefully few prototypes,
8149 which can conflict with char $ac_func(); below. */
8150 #include <assert.h>
8151 /* Override any gcc2 internal prototype to avoid an error. */
8152 /* We use char because int might match the return type of a gcc2
8153 builtin and then its argument prototype would still apply. */
8154 char $ac_func();
8156 int main() {
8158 /* The GNU C library defines this for functions which it implements
8159 to always fail with ENOSYS. Some functions are actually named
8160 something starting with __ and the normal name is an alias. */
8161 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8162 choke me
8163 #else
8164 $ac_func();
8165 #endif
8167 ; return 0; }
8169 if { (eval echo configure:8170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8170 rm -rf conftest*
8171 eval "ac_cv_func_$ac_func=yes"
8172 else
8173 echo "configure: failed program was:" >&5
8174 cat conftest.$ac_ext >&5
8175 rm -rf conftest*
8176 eval "ac_cv_func_$ac_func=no"
8178 rm -f conftest*
8181 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8182 echo "$ac_t""yes" 1>&6
8183 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8184 cat >> confdefs.h <<EOF
8185 #define $ac_tr_func 1
8188 else
8189 echo "$ac_t""no" 1>&6
8191 done
8193 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
8194 echo "configure:8195: checking for bigcrypt in -lsecurity" >&5
8195 ac_lib_var=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
8196 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8197 echo $ac_n "(cached) $ac_c" 1>&6
8198 else
8199 ac_save_LIBS="$LIBS"
8200 LIBS="-lsecurity $LIBS"
8201 cat > conftest.$ac_ext <<EOF
8202 #line 8203 "configure"
8203 #include "confdefs.h"
8204 /* Override any gcc2 internal prototype to avoid an error. */
8205 /* We use char because int might match the return type of a gcc2
8206 builtin and then its argument prototype would still apply. */
8207 char bigcrypt();
8209 int main() {
8210 bigcrypt()
8211 ; return 0; }
8213 if { (eval echo configure:8214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8214 rm -rf conftest*
8215 eval "ac_cv_lib_$ac_lib_var=yes"
8216 else
8217 echo "configure: failed program was:" >&5
8218 cat conftest.$ac_ext >&5
8219 rm -rf conftest*
8220 eval "ac_cv_lib_$ac_lib_var=no"
8222 rm -f conftest*
8223 LIBS="$ac_save_LIBS"
8226 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8227 echo "$ac_t""yes" 1>&6
8228 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8229 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8230 cat >> confdefs.h <<EOF
8231 #define $ac_tr_lib 1
8234 LIBS="-lsecurity $LIBS"
8236 else
8237 echo "$ac_t""no" 1>&6
8240 for ac_func in bigcrypt
8242 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8243 echo "configure:8244: checking for $ac_func" >&5
8244 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8245 echo $ac_n "(cached) $ac_c" 1>&6
8246 else
8247 cat > conftest.$ac_ext <<EOF
8248 #line 8249 "configure"
8249 #include "confdefs.h"
8250 /* System header to define __stub macros and hopefully few prototypes,
8251 which can conflict with char $ac_func(); below. */
8252 #include <assert.h>
8253 /* Override any gcc2 internal prototype to avoid an error. */
8254 /* We use char because int might match the return type of a gcc2
8255 builtin and then its argument prototype would still apply. */
8256 char $ac_func();
8258 int main() {
8260 /* The GNU C library defines this for functions which it implements
8261 to always fail with ENOSYS. Some functions are actually named
8262 something starting with __ and the normal name is an alias. */
8263 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8264 choke me
8265 #else
8266 $ac_func();
8267 #endif
8269 ; return 0; }
8271 if { (eval echo configure:8272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8272 rm -rf conftest*
8273 eval "ac_cv_func_$ac_func=yes"
8274 else
8275 echo "configure: failed program was:" >&5
8276 cat conftest.$ac_ext >&5
8277 rm -rf conftest*
8278 eval "ac_cv_func_$ac_func=no"
8280 rm -f conftest*
8283 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8284 echo "$ac_t""yes" 1>&6
8285 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8286 cat >> confdefs.h <<EOF
8287 #define $ac_tr_func 1
8290 else
8291 echo "$ac_t""no" 1>&6
8293 done
8296 esac
8298 case "$LIBS" in
8299 *-lsec*) for ac_func in bigcrypt
8301 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8302 echo "configure:8303: checking for $ac_func" >&5
8303 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8304 echo $ac_n "(cached) $ac_c" 1>&6
8305 else
8306 cat > conftest.$ac_ext <<EOF
8307 #line 8308 "configure"
8308 #include "confdefs.h"
8309 /* System header to define __stub macros and hopefully few prototypes,
8310 which can conflict with char $ac_func(); below. */
8311 #include <assert.h>
8312 /* Override any gcc2 internal prototype to avoid an error. */
8313 /* We use char because int might match the return type of a gcc2
8314 builtin and then its argument prototype would still apply. */
8315 char $ac_func();
8317 int main() {
8319 /* The GNU C library defines this for functions which it implements
8320 to always fail with ENOSYS. Some functions are actually named
8321 something starting with __ and the normal name is an alias. */
8322 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8323 choke me
8324 #else
8325 $ac_func();
8326 #endif
8328 ; return 0; }
8330 if { (eval echo configure:8331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8331 rm -rf conftest*
8332 eval "ac_cv_func_$ac_func=yes"
8333 else
8334 echo "configure: failed program was:" >&5
8335 cat conftest.$ac_ext >&5
8336 rm -rf conftest*
8337 eval "ac_cv_func_$ac_func=no"
8339 rm -f conftest*
8342 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8343 echo "$ac_t""yes" 1>&6
8344 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8345 cat >> confdefs.h <<EOF
8346 #define $ac_tr_func 1
8349 else
8350 echo "$ac_t""no" 1>&6
8352 done
8354 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
8355 echo "configure:8356: checking for bigcrypt in -lsec" >&5
8356 ac_lib_var=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
8357 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8358 echo $ac_n "(cached) $ac_c" 1>&6
8359 else
8360 ac_save_LIBS="$LIBS"
8361 LIBS="-lsec $LIBS"
8362 cat > conftest.$ac_ext <<EOF
8363 #line 8364 "configure"
8364 #include "confdefs.h"
8365 /* Override any gcc2 internal prototype to avoid an error. */
8366 /* We use char because int might match the return type of a gcc2
8367 builtin and then its argument prototype would still apply. */
8368 char bigcrypt();
8370 int main() {
8371 bigcrypt()
8372 ; return 0; }
8374 if { (eval echo configure:8375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8375 rm -rf conftest*
8376 eval "ac_cv_lib_$ac_lib_var=yes"
8377 else
8378 echo "configure: failed program was:" >&5
8379 cat conftest.$ac_ext >&5
8380 rm -rf conftest*
8381 eval "ac_cv_lib_$ac_lib_var=no"
8383 rm -f conftest*
8384 LIBS="$ac_save_LIBS"
8387 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8388 echo "$ac_t""yes" 1>&6
8389 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8390 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8391 cat >> confdefs.h <<EOF
8392 #define $ac_tr_lib 1
8395 LIBS="-lsec $LIBS"
8397 else
8398 echo "$ac_t""no" 1>&6
8401 for ac_func in bigcrypt
8403 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8404 echo "configure:8405: checking for $ac_func" >&5
8405 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8406 echo $ac_n "(cached) $ac_c" 1>&6
8407 else
8408 cat > conftest.$ac_ext <<EOF
8409 #line 8410 "configure"
8410 #include "confdefs.h"
8411 /* System header to define __stub macros and hopefully few prototypes,
8412 which can conflict with char $ac_func(); below. */
8413 #include <assert.h>
8414 /* Override any gcc2 internal prototype to avoid an error. */
8415 /* We use char because int might match the return type of a gcc2
8416 builtin and then its argument prototype would still apply. */
8417 char $ac_func();
8419 int main() {
8421 /* The GNU C library defines this for functions which it implements
8422 to always fail with ENOSYS. Some functions are actually named
8423 something starting with __ and the normal name is an alias. */
8424 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8425 choke me
8426 #else
8427 $ac_func();
8428 #endif
8430 ; return 0; }
8432 if { (eval echo configure:8433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8433 rm -rf conftest*
8434 eval "ac_cv_func_$ac_func=yes"
8435 else
8436 echo "configure: failed program was:" >&5
8437 cat conftest.$ac_ext >&5
8438 rm -rf conftest*
8439 eval "ac_cv_func_$ac_func=no"
8441 rm -f conftest*
8444 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8445 echo "$ac_t""yes" 1>&6
8446 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8447 cat >> confdefs.h <<EOF
8448 #define $ac_tr_func 1
8451 else
8452 echo "$ac_t""no" 1>&6
8454 done
8457 esac
8460 case "$LIBS" in
8461 *-lsecurity*) for ac_func in getprpwnam
8463 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8464 echo "configure:8465: checking for $ac_func" >&5
8465 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8466 echo $ac_n "(cached) $ac_c" 1>&6
8467 else
8468 cat > conftest.$ac_ext <<EOF
8469 #line 8470 "configure"
8470 #include "confdefs.h"
8471 /* System header to define __stub macros and hopefully few prototypes,
8472 which can conflict with char $ac_func(); below. */
8473 #include <assert.h>
8474 /* Override any gcc2 internal prototype to avoid an error. */
8475 /* We use char because int might match the return type of a gcc2
8476 builtin and then its argument prototype would still apply. */
8477 char $ac_func();
8479 int main() {
8481 /* The GNU C library defines this for functions which it implements
8482 to always fail with ENOSYS. Some functions are actually named
8483 something starting with __ and the normal name is an alias. */
8484 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8485 choke me
8486 #else
8487 $ac_func();
8488 #endif
8490 ; return 0; }
8492 if { (eval echo configure:8493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8493 rm -rf conftest*
8494 eval "ac_cv_func_$ac_func=yes"
8495 else
8496 echo "configure: failed program was:" >&5
8497 cat conftest.$ac_ext >&5
8498 rm -rf conftest*
8499 eval "ac_cv_func_$ac_func=no"
8501 rm -f conftest*
8504 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8505 echo "$ac_t""yes" 1>&6
8506 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8507 cat >> confdefs.h <<EOF
8508 #define $ac_tr_func 1
8511 else
8512 echo "$ac_t""no" 1>&6
8514 done
8516 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
8517 echo "configure:8518: checking for getprpwnam in -lsecurity" >&5
8518 ac_lib_var=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
8519 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8520 echo $ac_n "(cached) $ac_c" 1>&6
8521 else
8522 ac_save_LIBS="$LIBS"
8523 LIBS="-lsecurity $LIBS"
8524 cat > conftest.$ac_ext <<EOF
8525 #line 8526 "configure"
8526 #include "confdefs.h"
8527 /* Override any gcc2 internal prototype to avoid an error. */
8528 /* We use char because int might match the return type of a gcc2
8529 builtin and then its argument prototype would still apply. */
8530 char getprpwnam();
8532 int main() {
8533 getprpwnam()
8534 ; return 0; }
8536 if { (eval echo configure:8537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8537 rm -rf conftest*
8538 eval "ac_cv_lib_$ac_lib_var=yes"
8539 else
8540 echo "configure: failed program was:" >&5
8541 cat conftest.$ac_ext >&5
8542 rm -rf conftest*
8543 eval "ac_cv_lib_$ac_lib_var=no"
8545 rm -f conftest*
8546 LIBS="$ac_save_LIBS"
8549 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8550 echo "$ac_t""yes" 1>&6
8551 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8552 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8553 cat >> confdefs.h <<EOF
8554 #define $ac_tr_lib 1
8557 LIBS="-lsecurity $LIBS"
8559 else
8560 echo "$ac_t""no" 1>&6
8563 for ac_func in getprpwnam
8565 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8566 echo "configure:8567: checking for $ac_func" >&5
8567 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8568 echo $ac_n "(cached) $ac_c" 1>&6
8569 else
8570 cat > conftest.$ac_ext <<EOF
8571 #line 8572 "configure"
8572 #include "confdefs.h"
8573 /* System header to define __stub macros and hopefully few prototypes,
8574 which can conflict with char $ac_func(); below. */
8575 #include <assert.h>
8576 /* Override any gcc2 internal prototype to avoid an error. */
8577 /* We use char because int might match the return type of a gcc2
8578 builtin and then its argument prototype would still apply. */
8579 char $ac_func();
8581 int main() {
8583 /* The GNU C library defines this for functions which it implements
8584 to always fail with ENOSYS. Some functions are actually named
8585 something starting with __ and the normal name is an alias. */
8586 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8587 choke me
8588 #else
8589 $ac_func();
8590 #endif
8592 ; return 0; }
8594 if { (eval echo configure:8595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8595 rm -rf conftest*
8596 eval "ac_cv_func_$ac_func=yes"
8597 else
8598 echo "configure: failed program was:" >&5
8599 cat conftest.$ac_ext >&5
8600 rm -rf conftest*
8601 eval "ac_cv_func_$ac_func=no"
8603 rm -f conftest*
8606 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8607 echo "$ac_t""yes" 1>&6
8608 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8609 cat >> confdefs.h <<EOF
8610 #define $ac_tr_func 1
8613 else
8614 echo "$ac_t""no" 1>&6
8616 done
8619 esac
8621 case "$LIBS" in
8622 *-lsec*) for ac_func in getprpwnam
8624 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8625 echo "configure:8626: checking for $ac_func" >&5
8626 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8627 echo $ac_n "(cached) $ac_c" 1>&6
8628 else
8629 cat > conftest.$ac_ext <<EOF
8630 #line 8631 "configure"
8631 #include "confdefs.h"
8632 /* System header to define __stub macros and hopefully few prototypes,
8633 which can conflict with char $ac_func(); below. */
8634 #include <assert.h>
8635 /* Override any gcc2 internal prototype to avoid an error. */
8636 /* We use char because int might match the return type of a gcc2
8637 builtin and then its argument prototype would still apply. */
8638 char $ac_func();
8640 int main() {
8642 /* The GNU C library defines this for functions which it implements
8643 to always fail with ENOSYS. Some functions are actually named
8644 something starting with __ and the normal name is an alias. */
8645 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8646 choke me
8647 #else
8648 $ac_func();
8649 #endif
8651 ; return 0; }
8653 if { (eval echo configure:8654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8654 rm -rf conftest*
8655 eval "ac_cv_func_$ac_func=yes"
8656 else
8657 echo "configure: failed program was:" >&5
8658 cat conftest.$ac_ext >&5
8659 rm -rf conftest*
8660 eval "ac_cv_func_$ac_func=no"
8662 rm -f conftest*
8665 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8666 echo "$ac_t""yes" 1>&6
8667 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8668 cat >> confdefs.h <<EOF
8669 #define $ac_tr_func 1
8672 else
8673 echo "$ac_t""no" 1>&6
8675 done
8677 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
8678 echo "configure:8679: checking for getprpwnam in -lsec" >&5
8679 ac_lib_var=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
8680 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8681 echo $ac_n "(cached) $ac_c" 1>&6
8682 else
8683 ac_save_LIBS="$LIBS"
8684 LIBS="-lsec $LIBS"
8685 cat > conftest.$ac_ext <<EOF
8686 #line 8687 "configure"
8687 #include "confdefs.h"
8688 /* Override any gcc2 internal prototype to avoid an error. */
8689 /* We use char because int might match the return type of a gcc2
8690 builtin and then its argument prototype would still apply. */
8691 char getprpwnam();
8693 int main() {
8694 getprpwnam()
8695 ; return 0; }
8697 if { (eval echo configure:8698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8698 rm -rf conftest*
8699 eval "ac_cv_lib_$ac_lib_var=yes"
8700 else
8701 echo "configure: failed program was:" >&5
8702 cat conftest.$ac_ext >&5
8703 rm -rf conftest*
8704 eval "ac_cv_lib_$ac_lib_var=no"
8706 rm -f conftest*
8707 LIBS="$ac_save_LIBS"
8710 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8711 echo "$ac_t""yes" 1>&6
8712 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8713 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8714 cat >> confdefs.h <<EOF
8715 #define $ac_tr_lib 1
8718 LIBS="-lsec $LIBS"
8720 else
8721 echo "$ac_t""no" 1>&6
8724 for ac_func in getprpwnam
8726 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8727 echo "configure:8728: checking for $ac_func" >&5
8728 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8729 echo $ac_n "(cached) $ac_c" 1>&6
8730 else
8731 cat > conftest.$ac_ext <<EOF
8732 #line 8733 "configure"
8733 #include "confdefs.h"
8734 /* System header to define __stub macros and hopefully few prototypes,
8735 which can conflict with char $ac_func(); below. */
8736 #include <assert.h>
8737 /* Override any gcc2 internal prototype to avoid an error. */
8738 /* We use char because int might match the return type of a gcc2
8739 builtin and then its argument prototype would still apply. */
8740 char $ac_func();
8742 int main() {
8744 /* The GNU C library defines this for functions which it implements
8745 to always fail with ENOSYS. Some functions are actually named
8746 something starting with __ and the normal name is an alias. */
8747 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8748 choke me
8749 #else
8750 $ac_func();
8751 #endif
8753 ; return 0; }
8755 if { (eval echo configure:8756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8756 rm -rf conftest*
8757 eval "ac_cv_func_$ac_func=yes"
8758 else
8759 echo "configure: failed program was:" >&5
8760 cat conftest.$ac_ext >&5
8761 rm -rf conftest*
8762 eval "ac_cv_func_$ac_func=no"
8764 rm -f conftest*
8767 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8768 echo "$ac_t""yes" 1>&6
8769 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8770 cat >> confdefs.h <<EOF
8771 #define $ac_tr_func 1
8774 else
8775 echo "$ac_t""no" 1>&6
8777 done
8780 esac
8783 # this bit needs to be modified for each OS that is suported by
8784 # smbwrapper. You need to specify how to created a shared library and
8785 # how to compile C code to produce PIC object files
8787 # these are the defaults, good for lots of systems
8788 HOST_OS="$host_os"
8789 LDSHFLAGS="-shared"
8790 SONAMEFLAG="#"
8791 SHLD="\${CC}"
8792 PICFLAG=""
8793 PICSUFFIX="po.o"
8794 SHLIBEXT="so"
8795 # Assume non-shared by default and override below
8796 BLDSHARED="false"
8797 echo $ac_n "checking ability to build shared libraries""... $ac_c" 1>&6
8798 echo "configure:8799: checking ability to build shared libraries" >&5
8800 # and these are for particular systems
8801 case "$host_os" in
8802 *linux*) cat >> confdefs.h <<\EOF
8803 #define LINUX 1
8806 BLDSHARED="true"
8807 LDSHFLAGS="-shared"
8808 DYNEXP="-Wl,--export-dynamic"
8809 PICFLAG="-fPIC"
8810 SONAMEFLAG="-Wl,-soname="
8811 cat >> confdefs.h <<\EOF
8812 #define STAT_ST_BLOCKSIZE 512
8816 *solaris*) cat >> confdefs.h <<\EOF
8817 #define SUNOS5 1
8820 BLDSHARED="true"
8821 LDSHFLAGS="-G"
8822 SONAMEFLAG="-h "
8823 if test "${GCC}" = "yes"; then
8824 PICFLAG="-fPIC"
8825 if test "${ac_cv_prog_gnu_ld}" = "yes"; then
8826 DYNEXP="-Wl,-E"
8828 else
8829 PICFLAG="-KPIC"
8830 ## ${CFLAGS} added for building 64-bit shared
8831 ## libs using Sun's Compiler
8832 LDSHFLAGS="-G \${CFLAGS}"
8833 POBAD_CC=""
8834 PICSUFFIX="po.o"
8836 cat >> confdefs.h <<\EOF
8837 #define STAT_ST_BLOCKSIZE 512
8840 cat >> confdefs.h <<\EOF
8841 #define BROKEN_GETGRNAM 1
8845 *sunos*) cat >> confdefs.h <<\EOF
8846 #define SUNOS4 1
8849 BLDSHARED="true"
8850 LDSHFLAGS="-G"
8851 SONAMEFLAG="-Wl,-h,"
8852 PICFLAG="-KPIC" # Is this correct for SunOS
8853 cat >> confdefs.h <<\EOF
8854 #define STAT_ST_BLOCKSIZE 512
8857 cat >> confdefs.h <<\EOF
8858 #define BROKEN_GETGRNAM 1
8862 *freebsd*) BLDSHARED="true"
8863 LDSHFLAGS="-shared"
8864 DYNEXP="-Wl,--export-dynamic"
8865 SONAMEFLAG="-Wl,-soname,"
8866 PICFLAG="-fPIC -DPIC"
8867 cat >> confdefs.h <<\EOF
8868 #define STAT_ST_BLOCKSIZE 512
8871 cat >> confdefs.h <<\EOF
8872 #define BROKEN_GETGRNAM 1
8876 *openbsd*) BLDSHARED="true"
8877 LDSHFLAGS="-shared"
8878 DYNEXP="-Wl,-Bdynamic"
8879 SONAMEFLAG="-Wl,-soname,"
8880 PICFLAG="-fPIC"
8881 cat >> confdefs.h <<\EOF
8882 #define STAT_ST_BLOCKSIZE 512
8885 cat >> confdefs.h <<\EOF
8886 #define BROKEN_GETGRNAM 1
8890 *irix*) cat >> confdefs.h <<\EOF
8891 #define IRIX 1
8894 case "$host_os" in
8895 *irix6*) cat >> confdefs.h <<\EOF
8896 #define IRIX6 1
8900 esac
8901 ATTEMPT_WRAP32_BUILD=yes
8902 BLDSHARED="true"
8903 LDSHFLAGS="-set_version sgi1.0 -shared"
8904 SONAMEFLAG="-soname "
8905 SHLD="\${LD}"
8906 if test "${GCC}" = "yes"; then
8907 PICFLAG="-fPIC"
8908 else
8909 PICFLAG="-KPIC"
8911 cat >> confdefs.h <<\EOF
8912 #define STAT_ST_BLOCKSIZE 512
8916 *aix*) cat >> confdefs.h <<\EOF
8917 #define AIX 1
8920 BLDSHARED="true"
8921 LDSHFLAGS="-Wl,-bexpall,-bM:SRE,-bnoentry"
8922 DYNEXP="-Wl,-brtl,-bexpall"
8923 PICFLAG="-O2"
8924 if test "${GCC}" != "yes"; then
8925 ## for funky AIX compiler using strncpy()
8926 CFLAGS="$CFLAGS -D_LINUX_SOURCE_COMPAT -qmaxmem=32000"
8929 cat >> confdefs.h <<\EOF
8930 #define STAT_ST_BLOCKSIZE DEV_BSIZE
8934 *hpux*) cat >> confdefs.h <<\EOF
8935 #define HPUX 1
8938 SHLIBEXT="sl"
8939 # Use special PIC flags for the native HP-UX compiler.
8940 if test $ac_cv_prog_cc_Ae = yes; then
8941 BLDSHARED="true"
8942 SHLD="/usr/bin/ld"
8943 LDSHFLAGS="-B symbolic -b -z"
8944 SONAMEFLAG="+h "
8945 PICFLAG="+z"
8947 DYNEXP="-Wl,-E"
8948 cat >> confdefs.h <<\EOF
8949 #define STAT_ST_BLOCKSIZE 8192
8952 cat >> confdefs.h <<\EOF
8953 #define POSIX_ACL_NEEDS_MASK 1
8957 *qnx*) cat >> confdefs.h <<\EOF
8958 #define QNX 1
8961 cat >> confdefs.h <<\EOF
8962 #define STAT_ST_BLOCKSIZE 512
8966 *osf*) cat >> confdefs.h <<\EOF
8967 #define OSF1 1
8970 BLDSHARED="true"
8971 LDSHFLAGS="-shared"
8972 SONAMEFLAG="-Wl,-soname,"
8973 PICFLAG="-fPIC"
8974 cat >> confdefs.h <<\EOF
8975 #define STAT_ST_BLOCKSIZE 512
8978 cat >> confdefs.h <<\EOF
8979 #define BROKEN_GETGRNAM 1
8983 *sco*) cat >> confdefs.h <<\EOF
8984 #define SCO 1
8987 cat >> confdefs.h <<\EOF
8988 #define STAT_ST_BLOCKSIZE 512
8992 *unixware*) cat >> confdefs.h <<\EOF
8993 #define UNIXWARE 1
8996 BLDSHARED="true"
8997 LDSHFLAGS="-shared"
8998 SONAMEFLAG="-Wl,-soname,"
8999 PICFLAG="-KPIC"
9000 cat >> confdefs.h <<\EOF
9001 #define STAT_ST_BLOCKSIZE 512
9005 *next2*) cat >> confdefs.h <<\EOF
9006 #define NEXT2 1
9009 cat >> confdefs.h <<\EOF
9010 #define STAT_ST_BLOCKSIZE 512
9014 *dgux*) # Extract the first word of "groff", so it can be a program name with args.
9015 set dummy groff; ac_word=$2
9016 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9017 echo "configure:9018: checking for $ac_word" >&5
9018 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
9019 echo $ac_n "(cached) $ac_c" 1>&6
9020 else
9021 if test -n "$ROFF"; then
9022 ac_cv_prog_ROFF="$ROFF" # Let the user override the test.
9023 else
9024 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9025 ac_dummy="$PATH"
9026 for ac_dir in $ac_dummy; do
9027 test -z "$ac_dir" && ac_dir=.
9028 if test -f $ac_dir/$ac_word; then
9029 ac_cv_prog_ROFF="groff -etpsR -Tascii -man"
9030 break
9032 done
9033 IFS="$ac_save_ifs"
9036 ROFF="$ac_cv_prog_ROFF"
9037 if test -n "$ROFF"; then
9038 echo "$ac_t""$ROFF" 1>&6
9039 else
9040 echo "$ac_t""no" 1>&6
9043 cat >> confdefs.h <<\EOF
9044 #define STAT_ST_BLOCKSIZE 512
9048 *sysv4*)
9049 case "$host" in
9050 *-univel-*) if test "$GCC" != yes ; then
9051 cat >> confdefs.h <<\EOF
9052 #define HAVE_MEMSET 1
9056 LDSHFLAGS="-G"
9057 DYNEXP="-Bexport"
9059 *mips-sni-sysv4*) cat >> confdefs.h <<\EOF
9060 #define RELIANTUNIX 1
9063 esac
9064 cat >> confdefs.h <<\EOF
9065 #define STAT_ST_BLOCKSIZE 512
9069 *sysv5*)
9070 if test "$GCC" != yes ; then
9071 cat >> confdefs.h <<\EOF
9072 #define HAVE_MEMSET 1
9076 LDSHFLAGS="-G"
9077 cat >> confdefs.h <<\EOF
9078 #define STAT_ST_BLOCKSIZE 512
9082 *vos*) cat >> confdefs.h <<\EOF
9083 #define STAT_ST_BLOCKSIZE 4096
9086 BLDSHARED="false"
9087 LDSHFLAGS=""
9090 cat >> confdefs.h <<\EOF
9091 #define STAT_ST_BLOCKSIZE 512
9095 esac
9097 echo "$ac_t""$BLDSHARED" 1>&6
9098 echo $ac_n "checking linker flags for shared libraries""... $ac_c" 1>&6
9099 echo "configure:9100: checking linker flags for shared libraries" >&5
9100 echo "$ac_t""$LDSHFLAGS" 1>&6
9101 echo $ac_n "checking compiler flags for position-independent code""... $ac_c" 1>&6
9102 echo "configure:9103: checking compiler flags for position-independent code" >&5
9103 echo "$ac_t""$PICFLAGS" 1>&6
9105 # try to work out how to produce pic code with this compiler
9106 if test x$PICFLAG = x; then
9107 echo $ac_n "checking whether ${CC-cc} accepts -fpic""... $ac_c" 1>&6
9108 echo "configure:9109: checking whether ${CC-cc} accepts -fpic" >&5
9109 if eval "test \"`echo '$''{'ac_cv_prog_cc_fpic'+set}'`\" = set"; then
9110 echo $ac_n "(cached) $ac_c" 1>&6
9111 else
9112 echo 'void f(){}' > conftest.c
9113 if test -z "`${CC-cc} -fpic -c conftest.c 2>&1`"; then
9114 ac_cv_prog_cc_fpic=yes
9115 else
9116 ac_cv_prog_cc_fpic=no
9118 rm -f conftest*
9122 echo "$ac_t""$ac_cv_prog_cc_fpic" 1>&6
9123 if test $ac_cv_prog_cc_fpic = yes; then
9124 PICFLAG="-fpic";
9127 if test x$PICFLAG = x; then
9128 echo $ac_n "checking whether ${CC-cc} accepts -KPIC""... $ac_c" 1>&6
9129 echo "configure:9130: checking whether ${CC-cc} accepts -KPIC" >&5
9130 if eval "test \"`echo '$''{'ac_cv_prog_cc_KPIC'+set}'`\" = set"; then
9131 echo $ac_n "(cached) $ac_c" 1>&6
9132 else
9133 echo 'void f(){}' > conftest.c
9134 if test -z "`${CC-cc} -KPIC -c conftest.c 2>&1`"; then
9135 ac_cv_prog_cc_KPIC=yes
9136 else
9137 ac_cv_prog_cc_KPIC=no
9139 rm -f conftest*
9143 echo "$ac_t""$ac_cv_prog_cc_KPIC" 1>&6
9144 if test $ac_cv_prog_cc_KPIC = yes; then
9145 PICFLAG="-KPIC";
9148 if test x$PICFLAG = x; then
9149 echo $ac_n "checking whether ${CC-cc} accepts -Kpic""... $ac_c" 1>&6
9150 echo "configure:9151: checking whether ${CC-cc} accepts -Kpic" >&5
9151 if eval "test \"`echo '$''{'ac_cv_prog_cc_Kpic'+set}'`\" = set"; then
9152 echo $ac_n "(cached) $ac_c" 1>&6
9153 else
9154 echo 'void f(){}' > conftest.c
9155 if test -z "`${CC-cc} -Kpic -c conftest.c 2>&1`"; then
9156 ac_cv_prog_cc_Kpic=yes
9157 else
9158 ac_cv_prog_cc_Kpic=no
9160 rm -f conftest*
9164 echo "$ac_t""$ac_cv_prog_cc_Kpic" 1>&6
9165 if test $ac_cv_prog_cc_Kpic = yes; then
9166 PICFLAG="-Kpic";
9170 ################
9172 echo $ac_n "checking for long long""... $ac_c" 1>&6
9173 echo "configure:9174: checking for long long" >&5
9174 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
9175 echo $ac_n "(cached) $ac_c" 1>&6
9176 else
9178 if test "$cross_compiling" = yes; then
9179 samba_cv_have_longlong=cross
9180 else
9181 cat > conftest.$ac_ext <<EOF
9182 #line 9183 "configure"
9183 #include "confdefs.h"
9184 #include <stdio.h>
9185 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
9187 if { (eval echo configure:9188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9188 then
9189 samba_cv_have_longlong=yes
9190 else
9191 echo "configure: failed program was:" >&5
9192 cat conftest.$ac_ext >&5
9193 rm -fr conftest*
9194 samba_cv_have_longlong=no
9196 rm -fr conftest*
9201 echo "$ac_t""$samba_cv_have_longlong" 1>&6
9202 if test x"$samba_cv_have_longlong" = x"yes"; then
9203 cat >> confdefs.h <<\EOF
9204 #define HAVE_LONGLONG 1
9210 # Check if the compiler supports the LL prefix on long long integers.
9211 # AIX needs this.
9213 echo $ac_n "checking for LL suffix on long long integers""... $ac_c" 1>&6
9214 echo "configure:9215: checking for LL suffix on long long integers" >&5
9215 if eval "test \"`echo '$''{'samba_cv_compiler_supports_ll'+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 <stdio.h>
9223 int main() {
9224 long long i = 0x8000000000LL
9225 ; return 0; }
9227 if { (eval echo configure:9228: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9228 rm -rf conftest*
9229 samba_cv_compiler_supports_ll=yes
9230 else
9231 echo "configure: failed program was:" >&5
9232 cat conftest.$ac_ext >&5
9233 rm -rf conftest*
9234 samba_cv_compiler_supports_ll=no
9236 rm -f conftest*
9239 echo "$ac_t""$samba_cv_compiler_supports_ll" 1>&6
9240 if test x"$samba_cv_compiler_supports_ll" = x"yes"; then
9241 cat >> confdefs.h <<\EOF
9242 #define COMPILER_SUPPORTS_LL 1
9248 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
9249 echo "configure:9250: checking for 64 bit off_t" >&5
9250 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
9251 echo $ac_n "(cached) $ac_c" 1>&6
9252 else
9254 if test "$cross_compiling" = yes; then
9255 samba_cv_SIZEOF_OFF_T=cross
9256 else
9257 cat > conftest.$ac_ext <<EOF
9258 #line 9259 "configure"
9259 #include "confdefs.h"
9260 #include <stdio.h>
9261 #include <sys/stat.h>
9262 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
9264 if { (eval echo configure:9265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9265 then
9266 samba_cv_SIZEOF_OFF_T=yes
9267 else
9268 echo "configure: failed program was:" >&5
9269 cat conftest.$ac_ext >&5
9270 rm -fr conftest*
9271 samba_cv_SIZEOF_OFF_T=no
9273 rm -fr conftest*
9278 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
9279 if test x"$samba_cv_SIZEOF_OFF_T" = x"yes"; then
9280 cat >> confdefs.h <<\EOF
9281 #define SIZEOF_OFF_T 8
9286 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
9287 echo "configure:9288: checking for off64_t" >&5
9288 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
9289 echo $ac_n "(cached) $ac_c" 1>&6
9290 else
9292 if test "$cross_compiling" = yes; then
9293 samba_cv_HAVE_OFF64_T=cross
9294 else
9295 cat > conftest.$ac_ext <<EOF
9296 #line 9297 "configure"
9297 #include "confdefs.h"
9299 #if defined(HAVE_UNISTD_H)
9300 #include <unistd.h>
9301 #endif
9302 #include <stdio.h>
9303 #include <sys/stat.h>
9304 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9306 if { (eval echo configure:9307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9307 then
9308 samba_cv_HAVE_OFF64_T=yes
9309 else
9310 echo "configure: failed program was:" >&5
9311 cat conftest.$ac_ext >&5
9312 rm -fr conftest*
9313 samba_cv_HAVE_OFF64_T=no
9315 rm -fr conftest*
9320 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
9321 if test x"$samba_cv_HAVE_OFF64_T" = x"yes"; then
9322 cat >> confdefs.h <<\EOF
9323 #define HAVE_OFF64_T 1
9328 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
9329 echo "configure:9330: checking for 64 bit ino_t" >&5
9330 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
9331 echo $ac_n "(cached) $ac_c" 1>&6
9332 else
9334 if test "$cross_compiling" = yes; then
9335 samba_cv_SIZEOF_INO_T=cross
9336 else
9337 cat > conftest.$ac_ext <<EOF
9338 #line 9339 "configure"
9339 #include "confdefs.h"
9340 #include <stdio.h>
9341 #include <sys/stat.h>
9342 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
9344 if { (eval echo configure:9345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9345 then
9346 samba_cv_SIZEOF_INO_T=yes
9347 else
9348 echo "configure: failed program was:" >&5
9349 cat conftest.$ac_ext >&5
9350 rm -fr conftest*
9351 samba_cv_SIZEOF_INO_T=no
9353 rm -fr conftest*
9358 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
9359 if test x"$samba_cv_SIZEOF_INO_T" = x"yes"; then
9360 cat >> confdefs.h <<\EOF
9361 #define SIZEOF_INO_T 8
9366 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
9367 echo "configure:9368: checking for ino64_t" >&5
9368 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
9369 echo $ac_n "(cached) $ac_c" 1>&6
9370 else
9372 if test "$cross_compiling" = yes; then
9373 samba_cv_HAVE_INO64_T=cross
9374 else
9375 cat > conftest.$ac_ext <<EOF
9376 #line 9377 "configure"
9377 #include "confdefs.h"
9379 #if defined(HAVE_UNISTD_H)
9380 #include <unistd.h>
9381 #endif
9382 #include <stdio.h>
9383 #include <sys/stat.h>
9384 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9386 if { (eval echo configure:9387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9387 then
9388 samba_cv_HAVE_INO64_T=yes
9389 else
9390 echo "configure: failed program was:" >&5
9391 cat conftest.$ac_ext >&5
9392 rm -fr conftest*
9393 samba_cv_HAVE_INO64_T=no
9395 rm -fr conftest*
9400 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
9401 if test x"$samba_cv_HAVE_INO64_T" = x"yes"; then
9402 cat >> confdefs.h <<\EOF
9403 #define HAVE_INO64_T 1
9408 echo $ac_n "checking for dev64_t""... $ac_c" 1>&6
9409 echo "configure:9410: checking for dev64_t" >&5
9410 if eval "test \"`echo '$''{'samba_cv_HAVE_DEV64_T'+set}'`\" = set"; then
9411 echo $ac_n "(cached) $ac_c" 1>&6
9412 else
9414 if test "$cross_compiling" = yes; then
9415 samba_cv_HAVE_DEV64_T=cross
9416 else
9417 cat > conftest.$ac_ext <<EOF
9418 #line 9419 "configure"
9419 #include "confdefs.h"
9421 #if defined(HAVE_UNISTD_H)
9422 #include <unistd.h>
9423 #endif
9424 #include <stdio.h>
9425 #include <sys/stat.h>
9426 main() { struct stat64 st; dev64_t s; if (sizeof(dev_t) == sizeof(dev64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9428 if { (eval echo configure:9429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9429 then
9430 samba_cv_HAVE_DEV64_T=yes
9431 else
9432 echo "configure: failed program was:" >&5
9433 cat conftest.$ac_ext >&5
9434 rm -fr conftest*
9435 samba_cv_HAVE_DEV64_T=no
9437 rm -fr conftest*
9442 echo "$ac_t""$samba_cv_HAVE_DEV64_T" 1>&6
9443 if test x"$samba_cv_HAVE_DEV64_T" = x"yes"; then
9444 cat >> confdefs.h <<\EOF
9445 #define HAVE_DEV64_T 1
9450 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
9451 echo "configure:9452: checking for struct dirent64" >&5
9452 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
9453 echo $ac_n "(cached) $ac_c" 1>&6
9454 else
9456 cat > conftest.$ac_ext <<EOF
9457 #line 9458 "configure"
9458 #include "confdefs.h"
9460 #if defined(HAVE_UNISTD_H)
9461 #include <unistd.h>
9462 #endif
9463 #include <sys/types.h>
9464 #include <dirent.h>
9465 int main() {
9466 struct dirent64 de;
9467 ; return 0; }
9469 if { (eval echo configure:9470: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9470 rm -rf conftest*
9471 samba_cv_HAVE_STRUCT_DIRENT64=yes
9472 else
9473 echo "configure: failed program was:" >&5
9474 cat conftest.$ac_ext >&5
9475 rm -rf conftest*
9476 samba_cv_HAVE_STRUCT_DIRENT64=no
9478 rm -f conftest*
9481 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
9482 if test x"$samba_cv_HAVE_STRUCT_DIRENT64" = x"yes" && test x"$ac_cv_func_readdir64" = x"yes"; then
9483 cat >> confdefs.h <<\EOF
9484 #define HAVE_STRUCT_DIRENT64 1
9489 echo $ac_n "checking for major macro""... $ac_c" 1>&6
9490 echo "configure:9491: checking for major macro" >&5
9491 if eval "test \"`echo '$''{'samba_cv_HAVE_DEVICE_MAJOR_FN'+set}'`\" = set"; then
9492 echo $ac_n "(cached) $ac_c" 1>&6
9493 else
9495 if test "$cross_compiling" = yes; then
9496 samba_cv_HAVE_DEVICE_MAJOR_FN=cross
9497 else
9498 cat > conftest.$ac_ext <<EOF
9499 #line 9500 "configure"
9500 #include "confdefs.h"
9502 #if defined(HAVE_UNISTD_H)
9503 #include <unistd.h>
9504 #endif
9505 #include <sys/types.h>
9506 main() { dev_t dev; int i = major(dev); return 0; }
9508 if { (eval echo configure:9509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9509 then
9510 samba_cv_HAVE_DEVICE_MAJOR_FN=yes
9511 else
9512 echo "configure: failed program was:" >&5
9513 cat conftest.$ac_ext >&5
9514 rm -fr conftest*
9515 samba_cv_HAVE_DEVICE_MAJOR_FN=no
9517 rm -fr conftest*
9522 echo "$ac_t""$samba_cv_HAVE_DEVICE_MAJOR_FN" 1>&6
9523 if test x"$samba_cv_HAVE_DEVICE_MAJOR_FN" = x"yes"; then
9524 cat >> confdefs.h <<\EOF
9525 #define HAVE_DEVICE_MAJOR_FN 1
9530 echo $ac_n "checking for minor macro""... $ac_c" 1>&6
9531 echo "configure:9532: checking for minor macro" >&5
9532 if eval "test \"`echo '$''{'samba_cv_HAVE_DEVICE_MINOR_FN'+set}'`\" = set"; then
9533 echo $ac_n "(cached) $ac_c" 1>&6
9534 else
9536 if test "$cross_compiling" = yes; then
9537 samba_cv_HAVE_DEVICE_MINOR_FN=cross
9538 else
9539 cat > conftest.$ac_ext <<EOF
9540 #line 9541 "configure"
9541 #include "confdefs.h"
9543 #if defined(HAVE_UNISTD_H)
9544 #include <unistd.h>
9545 #endif
9546 #include <sys/types.h>
9547 main() { dev_t dev; int i = minor(dev); return 0; }
9549 if { (eval echo configure:9550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9550 then
9551 samba_cv_HAVE_DEVICE_MINOR_FN=yes
9552 else
9553 echo "configure: failed program was:" >&5
9554 cat conftest.$ac_ext >&5
9555 rm -fr conftest*
9556 samba_cv_HAVE_DEVICE_MINOR_FN=no
9558 rm -fr conftest*
9563 echo "$ac_t""$samba_cv_HAVE_DEVICE_MINOR_FN" 1>&6
9564 if test x"$samba_cv_HAVE_DEVICE_MINOR_FN" = x"yes"; then
9565 cat >> confdefs.h <<\EOF
9566 #define HAVE_DEVICE_MINOR_FN 1
9571 echo $ac_n "checking for makedev macro""... $ac_c" 1>&6
9572 echo "configure:9573: checking for makedev macro" >&5
9573 if eval "test \"`echo '$''{'samba_cv_HAVE_MAKEDEV_FN'+set}'`\" = set"; then
9574 echo $ac_n "(cached) $ac_c" 1>&6
9575 else
9577 if test "$cross_compiling" = yes; then
9578 samba_cv_HAVE_MAKEDEV_FN=cross
9579 else
9580 cat > conftest.$ac_ext <<EOF
9581 #line 9582 "configure"
9582 #include "confdefs.h"
9584 #if defined(HAVE_UNISTD_H)
9585 #include <unistd.h>
9586 #endif
9587 #include <sys/types.h>
9588 main() { dev_t dev = makedev(1,2); return 0; }
9590 if { (eval echo configure:9591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9591 then
9592 samba_cv_HAVE_MAKEDEV_FN=yes
9593 else
9594 echo "configure: failed program was:" >&5
9595 cat conftest.$ac_ext >&5
9596 rm -fr conftest*
9597 samba_cv_HAVE_MAKEDEV_FN=no
9599 rm -fr conftest*
9604 echo "$ac_t""$samba_cv_HAVE_MAKEDEV_FN" 1>&6
9605 if test x"$samba_cv_HAVE_MAKEDEV_FN" = x"yes"; then
9606 cat >> confdefs.h <<\EOF
9607 #define MAKEDEV_FN 1
9612 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
9613 echo "configure:9614: checking for unsigned char" >&5
9614 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
9615 echo $ac_n "(cached) $ac_c" 1>&6
9616 else
9618 if test "$cross_compiling" = yes; then
9619 samba_cv_HAVE_UNSIGNED_CHAR=cross
9620 else
9621 cat > conftest.$ac_ext <<EOF
9622 #line 9623 "configure"
9623 #include "confdefs.h"
9624 #include <stdio.h>
9625 main() { char c; c=250; exit((c > 0)?0:1); }
9627 if { (eval echo configure:9628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9628 then
9629 samba_cv_HAVE_UNSIGNED_CHAR=yes
9630 else
9631 echo "configure: failed program was:" >&5
9632 cat conftest.$ac_ext >&5
9633 rm -fr conftest*
9634 samba_cv_HAVE_UNSIGNED_CHAR=no
9636 rm -fr conftest*
9641 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
9642 if test x"$samba_cv_HAVE_UNSIGNED_CHAR" = x"yes"; then
9643 cat >> confdefs.h <<\EOF
9644 #define HAVE_UNSIGNED_CHAR 1
9649 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
9650 echo "configure:9651: checking for sin_len in sock" >&5
9651 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
9652 echo $ac_n "(cached) $ac_c" 1>&6
9653 else
9655 cat > conftest.$ac_ext <<EOF
9656 #line 9657 "configure"
9657 #include "confdefs.h"
9658 #include <sys/types.h>
9659 #include <sys/socket.h>
9660 #include <netinet/in.h>
9661 int main() {
9662 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
9663 ; return 0; }
9665 if { (eval echo configure:9666: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9666 rm -rf conftest*
9667 samba_cv_HAVE_SOCK_SIN_LEN=yes
9668 else
9669 echo "configure: failed program was:" >&5
9670 cat conftest.$ac_ext >&5
9671 rm -rf conftest*
9672 samba_cv_HAVE_SOCK_SIN_LEN=no
9674 rm -f conftest*
9677 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
9678 if test x"$samba_cv_HAVE_SOCK_SIN_LEN" = x"yes"; then
9679 cat >> confdefs.h <<\EOF
9680 #define HAVE_SOCK_SIN_LEN 1
9685 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
9686 echo "configure:9687: checking whether seekdir returns void" >&5
9687 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
9688 echo $ac_n "(cached) $ac_c" 1>&6
9689 else
9691 cat > conftest.$ac_ext <<EOF
9692 #line 9693 "configure"
9693 #include "confdefs.h"
9694 #include <sys/types.h>
9695 #include <dirent.h>
9696 void seekdir(DIR *d, long loc) { return; }
9697 int main() {
9698 return 0;
9699 ; return 0; }
9701 if { (eval echo configure:9702: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9702 rm -rf conftest*
9703 samba_cv_SEEKDIR_RETURNS_VOID=yes
9704 else
9705 echo "configure: failed program was:" >&5
9706 cat conftest.$ac_ext >&5
9707 rm -rf conftest*
9708 samba_cv_SEEKDIR_RETURNS_VOID=no
9710 rm -f conftest*
9713 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
9714 if test x"$samba_cv_SEEKDIR_RETURNS_VOID" = x"yes"; then
9715 cat >> confdefs.h <<\EOF
9716 #define SEEKDIR_RETURNS_VOID 1
9721 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
9722 echo "configure:9723: checking for __FILE__ macro" >&5
9723 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
9724 echo $ac_n "(cached) $ac_c" 1>&6
9725 else
9727 cat > conftest.$ac_ext <<EOF
9728 #line 9729 "configure"
9729 #include "confdefs.h"
9730 #include <stdio.h>
9731 int main() {
9732 printf("%s\n", __FILE__);
9733 ; return 0; }
9735 if { (eval echo configure:9736: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9736 rm -rf conftest*
9737 samba_cv_HAVE_FILE_MACRO=yes
9738 else
9739 echo "configure: failed program was:" >&5
9740 cat conftest.$ac_ext >&5
9741 rm -rf conftest*
9742 samba_cv_HAVE_FILE_MACRO=no
9744 rm -f conftest*
9747 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
9748 if test x"$samba_cv_HAVE_FILE_MACRO" = x"yes"; then
9749 cat >> confdefs.h <<\EOF
9750 #define HAVE_FILE_MACRO 1
9755 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
9756 echo "configure:9757: checking for __FUNCTION__ macro" >&5
9757 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
9758 echo $ac_n "(cached) $ac_c" 1>&6
9759 else
9761 cat > conftest.$ac_ext <<EOF
9762 #line 9763 "configure"
9763 #include "confdefs.h"
9764 #include <stdio.h>
9765 int main() {
9766 printf("%s\n", __FUNCTION__);
9767 ; return 0; }
9769 if { (eval echo configure:9770: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9770 rm -rf conftest*
9771 samba_cv_HAVE_FUNCTION_MACRO=yes
9772 else
9773 echo "configure: failed program was:" >&5
9774 cat conftest.$ac_ext >&5
9775 rm -rf conftest*
9776 samba_cv_HAVE_FUNCTION_MACRO=no
9778 rm -f conftest*
9781 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
9782 if test x"$samba_cv_HAVE_FUNCTION_MACRO" = x"yes"; then
9783 cat >> confdefs.h <<\EOF
9784 #define HAVE_FUNCTION_MACRO 1
9789 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
9790 echo "configure:9791: checking if gettimeofday takes tz argument" >&5
9791 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
9792 echo $ac_n "(cached) $ac_c" 1>&6
9793 else
9795 if test "$cross_compiling" = yes; then
9796 samba_cv_HAVE_GETTIMEOFDAY_TZ=cross
9797 else
9798 cat > conftest.$ac_ext <<EOF
9799 #line 9800 "configure"
9800 #include "confdefs.h"
9802 #include <sys/time.h>
9803 #include <unistd.h>
9804 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
9806 if { (eval echo configure:9807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9807 then
9808 samba_cv_HAVE_GETTIMEOFDAY_TZ=yes
9809 else
9810 echo "configure: failed program was:" >&5
9811 cat conftest.$ac_ext >&5
9812 rm -fr conftest*
9813 samba_cv_HAVE_GETTIMEOFDAY_TZ=no
9815 rm -fr conftest*
9820 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
9821 if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
9822 cat >> confdefs.h <<\EOF
9823 #define HAVE_GETTIMEOFDAY_TZ 1
9828 echo $ac_n "checking for __va_copy""... $ac_c" 1>&6
9829 echo "configure:9830: checking for __va_copy" >&5
9830 if eval "test \"`echo '$''{'samba_cv_HAVE_VA_COPY'+set}'`\" = set"; then
9831 echo $ac_n "(cached) $ac_c" 1>&6
9832 else
9834 cat > conftest.$ac_ext <<EOF
9835 #line 9836 "configure"
9836 #include "confdefs.h"
9837 #include <stdarg.h>
9838 va_list ap1,ap2;
9839 int main() {
9840 __va_copy(ap1,ap2);
9841 ; return 0; }
9843 if { (eval echo configure:9844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9844 rm -rf conftest*
9845 samba_cv_HAVE_VA_COPY=yes
9846 else
9847 echo "configure: failed program was:" >&5
9848 cat conftest.$ac_ext >&5
9849 rm -rf conftest*
9850 samba_cv_HAVE_VA_COPY=no
9852 rm -f conftest*
9855 echo "$ac_t""$samba_cv_HAVE_VA_COPY" 1>&6
9856 if test x"$samba_cv_HAVE_VA_COPY" = x"yes"; then
9857 cat >> confdefs.h <<\EOF
9858 #define HAVE_VA_COPY 1
9863 echo $ac_n "checking for C99 vsnprintf""... $ac_c" 1>&6
9864 echo "configure:9865: checking for C99 vsnprintf" >&5
9865 if eval "test \"`echo '$''{'samba_cv_HAVE_C99_VSNPRINTF'+set}'`\" = set"; then
9866 echo $ac_n "(cached) $ac_c" 1>&6
9867 else
9869 if test "$cross_compiling" = yes; then
9870 samba_cv_HAVE_C99_VSNPRINTF=cross
9871 else
9872 cat > conftest.$ac_ext <<EOF
9873 #line 9874 "configure"
9874 #include "confdefs.h"
9876 #include <sys/types.h>
9877 #include <stdarg.h>
9878 void foo(const char *format, ...) {
9879 va_list ap;
9880 int len;
9881 char buf[5];
9883 va_start(ap, format);
9884 len = vsnprintf(buf, 0, format, ap);
9885 va_end(ap);
9886 if (len != 5) exit(1);
9888 va_start(ap, format);
9889 len = vsnprintf(0, 0, format, ap);
9890 va_end(ap);
9891 if (len != 5) exit(1);
9893 if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
9895 exit(0);
9897 main() { foo("hello"); }
9900 if { (eval echo configure:9901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9901 then
9902 samba_cv_HAVE_C99_VSNPRINTF=yes
9903 else
9904 echo "configure: failed program was:" >&5
9905 cat conftest.$ac_ext >&5
9906 rm -fr conftest*
9907 samba_cv_HAVE_C99_VSNPRINTF=no
9909 rm -fr conftest*
9914 echo "$ac_t""$samba_cv_HAVE_C99_VSNPRINTF" 1>&6
9915 if test x"$samba_cv_HAVE_C99_VSNPRINTF" = x"yes"; then
9916 cat >> confdefs.h <<\EOF
9917 #define HAVE_C99_VSNPRINTF 1
9922 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
9923 echo "configure:9924: checking for broken readdir" >&5
9924 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
9925 echo $ac_n "(cached) $ac_c" 1>&6
9926 else
9928 if test "$cross_compiling" = yes; then
9929 samba_cv_HAVE_BROKEN_READDIR=cross
9930 else
9931 cat > conftest.$ac_ext <<EOF
9932 #line 9933 "configure"
9933 #include "confdefs.h"
9934 #include <sys/types.h>
9935 #include <dirent.h>
9936 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
9937 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
9938 di->d_name[0] == 0) exit(0); exit(1);}
9940 if { (eval echo configure:9941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9941 then
9942 samba_cv_HAVE_BROKEN_READDIR=yes
9943 else
9944 echo "configure: failed program was:" >&5
9945 cat conftest.$ac_ext >&5
9946 rm -fr conftest*
9947 samba_cv_HAVE_BROKEN_READDIR=no
9949 rm -fr conftest*
9954 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
9955 if test x"$samba_cv_HAVE_BROKEN_READDIR" = x"yes"; then
9956 cat >> confdefs.h <<\EOF
9957 #define HAVE_BROKEN_READDIR 1
9962 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
9963 echo "configure:9964: checking for utimbuf" >&5
9964 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
9965 echo $ac_n "(cached) $ac_c" 1>&6
9966 else
9968 cat > conftest.$ac_ext <<EOF
9969 #line 9970 "configure"
9970 #include "confdefs.h"
9971 #include <sys/types.h>
9972 #include <utime.h>
9973 int main() {
9974 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
9975 ; return 0; }
9977 if { (eval echo configure:9978: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9978 rm -rf conftest*
9979 samba_cv_HAVE_UTIMBUF=yes
9980 else
9981 echo "configure: failed program was:" >&5
9982 cat conftest.$ac_ext >&5
9983 rm -rf conftest*
9984 samba_cv_HAVE_UTIMBUF=no
9986 rm -f conftest*
9989 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
9990 if test x"$samba_cv_HAVE_UTIMBUF" = x"yes"; then
9991 cat >> confdefs.h <<\EOF
9992 #define HAVE_UTIMBUF 1
9998 for ac_func in pututline pututxline updwtmp updwtmpx getutmpx
10000 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10001 echo "configure:10002: checking for $ac_func" >&5
10002 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10003 echo $ac_n "(cached) $ac_c" 1>&6
10004 else
10005 cat > conftest.$ac_ext <<EOF
10006 #line 10007 "configure"
10007 #include "confdefs.h"
10008 /* System header to define __stub macros and hopefully few prototypes,
10009 which can conflict with char $ac_func(); below. */
10010 #include <assert.h>
10011 /* Override any gcc2 internal prototype to avoid an error. */
10012 /* We use char because int might match the return type of a gcc2
10013 builtin and then its argument prototype would still apply. */
10014 char $ac_func();
10016 int main() {
10018 /* The GNU C library defines this for functions which it implements
10019 to always fail with ENOSYS. Some functions are actually named
10020 something starting with __ and the normal name is an alias. */
10021 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10022 choke me
10023 #else
10024 $ac_func();
10025 #endif
10027 ; return 0; }
10029 if { (eval echo configure:10030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10030 rm -rf conftest*
10031 eval "ac_cv_func_$ac_func=yes"
10032 else
10033 echo "configure: failed program was:" >&5
10034 cat conftest.$ac_ext >&5
10035 rm -rf conftest*
10036 eval "ac_cv_func_$ac_func=no"
10038 rm -f conftest*
10041 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10042 echo "$ac_t""yes" 1>&6
10043 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10044 cat >> confdefs.h <<EOF
10045 #define $ac_tr_func 1
10048 else
10049 echo "$ac_t""no" 1>&6
10051 done
10054 echo $ac_n "checking for ut_name in utmp""... $ac_c" 1>&6
10055 echo "configure:10056: checking for ut_name in utmp" >&5
10056 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_NAME'+set}'`\" = set"; then
10057 echo $ac_n "(cached) $ac_c" 1>&6
10058 else
10060 cat > conftest.$ac_ext <<EOF
10061 #line 10062 "configure"
10062 #include "confdefs.h"
10063 #include <sys/types.h>
10064 #include <utmp.h>
10065 int main() {
10066 struct utmp ut; ut.ut_name[0] = 'a';
10067 ; return 0; }
10069 if { (eval echo configure:10070: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10070 rm -rf conftest*
10071 samba_cv_HAVE_UT_UT_NAME=yes
10072 else
10073 echo "configure: failed program was:" >&5
10074 cat conftest.$ac_ext >&5
10075 rm -rf conftest*
10076 samba_cv_HAVE_UT_UT_NAME=no
10078 rm -f conftest*
10081 echo "$ac_t""$samba_cv_HAVE_UT_UT_NAME" 1>&6
10082 if test x"$samba_cv_HAVE_UT_UT_NAME" = x"yes"; then
10083 cat >> confdefs.h <<\EOF
10084 #define HAVE_UT_UT_NAME 1
10089 echo $ac_n "checking for ut_user in utmp""... $ac_c" 1>&6
10090 echo "configure:10091: checking for ut_user in utmp" >&5
10091 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_USER'+set}'`\" = set"; then
10092 echo $ac_n "(cached) $ac_c" 1>&6
10093 else
10095 cat > conftest.$ac_ext <<EOF
10096 #line 10097 "configure"
10097 #include "confdefs.h"
10098 #include <sys/types.h>
10099 #include <utmp.h>
10100 int main() {
10101 struct utmp ut; ut.ut_user[0] = 'a';
10102 ; return 0; }
10104 if { (eval echo configure:10105: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10105 rm -rf conftest*
10106 samba_cv_HAVE_UT_UT_USER=yes
10107 else
10108 echo "configure: failed program was:" >&5
10109 cat conftest.$ac_ext >&5
10110 rm -rf conftest*
10111 samba_cv_HAVE_UT_UT_USER=no
10113 rm -f conftest*
10116 echo "$ac_t""$samba_cv_HAVE_UT_UT_USER" 1>&6
10117 if test x"$samba_cv_HAVE_UT_UT_USER" = x"yes"; then
10118 cat >> confdefs.h <<\EOF
10119 #define HAVE_UT_UT_USER 1
10124 echo $ac_n "checking for ut_id in utmp""... $ac_c" 1>&6
10125 echo "configure:10126: checking for ut_id in utmp" >&5
10126 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ID'+set}'`\" = set"; then
10127 echo $ac_n "(cached) $ac_c" 1>&6
10128 else
10130 cat > conftest.$ac_ext <<EOF
10131 #line 10132 "configure"
10132 #include "confdefs.h"
10133 #include <sys/types.h>
10134 #include <utmp.h>
10135 int main() {
10136 struct utmp ut; ut.ut_id[0] = 'a';
10137 ; return 0; }
10139 if { (eval echo configure:10140: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10140 rm -rf conftest*
10141 samba_cv_HAVE_UT_UT_ID=yes
10142 else
10143 echo "configure: failed program was:" >&5
10144 cat conftest.$ac_ext >&5
10145 rm -rf conftest*
10146 samba_cv_HAVE_UT_UT_ID=no
10148 rm -f conftest*
10151 echo "$ac_t""$samba_cv_HAVE_UT_UT_ID" 1>&6
10152 if test x"$samba_cv_HAVE_UT_UT_ID" = x"yes"; then
10153 cat >> confdefs.h <<\EOF
10154 #define HAVE_UT_UT_ID 1
10159 echo $ac_n "checking for ut_host in utmp""... $ac_c" 1>&6
10160 echo "configure:10161: checking for ut_host in utmp" >&5
10161 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_HOST'+set}'`\" = set"; then
10162 echo $ac_n "(cached) $ac_c" 1>&6
10163 else
10165 cat > conftest.$ac_ext <<EOF
10166 #line 10167 "configure"
10167 #include "confdefs.h"
10168 #include <sys/types.h>
10169 #include <utmp.h>
10170 int main() {
10171 struct utmp ut; ut.ut_host[0] = 'a';
10172 ; return 0; }
10174 if { (eval echo configure:10175: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10175 rm -rf conftest*
10176 samba_cv_HAVE_UT_UT_HOST=yes
10177 else
10178 echo "configure: failed program was:" >&5
10179 cat conftest.$ac_ext >&5
10180 rm -rf conftest*
10181 samba_cv_HAVE_UT_UT_HOST=no
10183 rm -f conftest*
10186 echo "$ac_t""$samba_cv_HAVE_UT_UT_HOST" 1>&6
10187 if test x"$samba_cv_HAVE_UT_UT_HOST" = x"yes"; then
10188 cat >> confdefs.h <<\EOF
10189 #define HAVE_UT_UT_HOST 1
10194 echo $ac_n "checking for ut_time in utmp""... $ac_c" 1>&6
10195 echo "configure:10196: checking for ut_time in utmp" >&5
10196 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TIME'+set}'`\" = set"; then
10197 echo $ac_n "(cached) $ac_c" 1>&6
10198 else
10200 cat > conftest.$ac_ext <<EOF
10201 #line 10202 "configure"
10202 #include "confdefs.h"
10203 #include <sys/types.h>
10204 #include <utmp.h>
10205 int main() {
10206 struct utmp ut; time_t t; ut.ut_time = t;
10207 ; return 0; }
10209 if { (eval echo configure:10210: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10210 rm -rf conftest*
10211 samba_cv_HAVE_UT_UT_TIME=yes
10212 else
10213 echo "configure: failed program was:" >&5
10214 cat conftest.$ac_ext >&5
10215 rm -rf conftest*
10216 samba_cv_HAVE_UT_UT_TIME=no
10218 rm -f conftest*
10221 echo "$ac_t""$samba_cv_HAVE_UT_UT_TIME" 1>&6
10222 if test x"$samba_cv_HAVE_UT_UT_TIME" = x"yes"; then
10223 cat >> confdefs.h <<\EOF
10224 #define HAVE_UT_UT_TIME 1
10229 echo $ac_n "checking for ut_tv in utmp""... $ac_c" 1>&6
10230 echo "configure:10231: checking for ut_tv in utmp" >&5
10231 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TV'+set}'`\" = set"; then
10232 echo $ac_n "(cached) $ac_c" 1>&6
10233 else
10235 cat > conftest.$ac_ext <<EOF
10236 #line 10237 "configure"
10237 #include "confdefs.h"
10238 #include <sys/types.h>
10239 #include <utmp.h>
10240 int main() {
10241 struct utmp ut; struct timeval tv; ut.ut_tv = tv;
10242 ; return 0; }
10244 if { (eval echo configure:10245: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10245 rm -rf conftest*
10246 samba_cv_HAVE_UT_UT_TV=yes
10247 else
10248 echo "configure: failed program was:" >&5
10249 cat conftest.$ac_ext >&5
10250 rm -rf conftest*
10251 samba_cv_HAVE_UT_UT_TV=no
10253 rm -f conftest*
10256 echo "$ac_t""$samba_cv_HAVE_UT_UT_TV" 1>&6
10257 if test x"$samba_cv_HAVE_UT_UT_TV" = x"yes"; then
10258 cat >> confdefs.h <<\EOF
10259 #define HAVE_UT_UT_TV 1
10264 echo $ac_n "checking for ut_type in utmp""... $ac_c" 1>&6
10265 echo "configure:10266: checking for ut_type in utmp" >&5
10266 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TYPE'+set}'`\" = set"; then
10267 echo $ac_n "(cached) $ac_c" 1>&6
10268 else
10270 cat > conftest.$ac_ext <<EOF
10271 #line 10272 "configure"
10272 #include "confdefs.h"
10273 #include <sys/types.h>
10274 #include <utmp.h>
10275 int main() {
10276 struct utmp ut; ut.ut_type = 0;
10277 ; return 0; }
10279 if { (eval echo configure:10280: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10280 rm -rf conftest*
10281 samba_cv_HAVE_UT_UT_TYPE=yes
10282 else
10283 echo "configure: failed program was:" >&5
10284 cat conftest.$ac_ext >&5
10285 rm -rf conftest*
10286 samba_cv_HAVE_UT_UT_TYPE=no
10288 rm -f conftest*
10291 echo "$ac_t""$samba_cv_HAVE_UT_UT_TYPE" 1>&6
10292 if test x"$samba_cv_HAVE_UT_UT_TYPE" = x"yes"; then
10293 cat >> confdefs.h <<\EOF
10294 #define HAVE_UT_UT_TYPE 1
10299 echo $ac_n "checking for ut_pid in utmp""... $ac_c" 1>&6
10300 echo "configure:10301: checking for ut_pid in utmp" >&5
10301 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_PID'+set}'`\" = set"; then
10302 echo $ac_n "(cached) $ac_c" 1>&6
10303 else
10305 cat > conftest.$ac_ext <<EOF
10306 #line 10307 "configure"
10307 #include "confdefs.h"
10308 #include <sys/types.h>
10309 #include <utmp.h>
10310 int main() {
10311 struct utmp ut; ut.ut_pid = 0;
10312 ; return 0; }
10314 if { (eval echo configure:10315: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10315 rm -rf conftest*
10316 samba_cv_HAVE_UT_UT_PID=yes
10317 else
10318 echo "configure: failed program was:" >&5
10319 cat conftest.$ac_ext >&5
10320 rm -rf conftest*
10321 samba_cv_HAVE_UT_UT_PID=no
10323 rm -f conftest*
10326 echo "$ac_t""$samba_cv_HAVE_UT_UT_PID" 1>&6
10327 if test x"$samba_cv_HAVE_UT_UT_PID" = x"yes"; then
10328 cat >> confdefs.h <<\EOF
10329 #define HAVE_UT_UT_PID 1
10334 echo $ac_n "checking for ut_exit in utmp""... $ac_c" 1>&6
10335 echo "configure:10336: checking for ut_exit in utmp" >&5
10336 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_EXIT'+set}'`\" = set"; then
10337 echo $ac_n "(cached) $ac_c" 1>&6
10338 else
10340 cat > conftest.$ac_ext <<EOF
10341 #line 10342 "configure"
10342 #include "confdefs.h"
10343 #include <sys/types.h>
10344 #include <utmp.h>
10345 int main() {
10346 struct utmp ut; ut.ut_exit.e_exit = 0;
10347 ; return 0; }
10349 if { (eval echo configure:10350: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10350 rm -rf conftest*
10351 samba_cv_HAVE_UT_UT_EXIT=yes
10352 else
10353 echo "configure: failed program was:" >&5
10354 cat conftest.$ac_ext >&5
10355 rm -rf conftest*
10356 samba_cv_HAVE_UT_UT_EXIT=no
10358 rm -f conftest*
10361 echo "$ac_t""$samba_cv_HAVE_UT_UT_EXIT" 1>&6
10362 if test x"$samba_cv_HAVE_UT_UT_EXIT" = x"yes"; then
10363 cat >> confdefs.h <<\EOF
10364 #define HAVE_UT_UT_EXIT 1
10369 echo $ac_n "checking for ut_addr in utmp""... $ac_c" 1>&6
10370 echo "configure:10371: checking for ut_addr in utmp" >&5
10371 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ADDR'+set}'`\" = set"; then
10372 echo $ac_n "(cached) $ac_c" 1>&6
10373 else
10375 cat > conftest.$ac_ext <<EOF
10376 #line 10377 "configure"
10377 #include "confdefs.h"
10378 #include <sys/types.h>
10379 #include <utmp.h>
10380 int main() {
10381 struct utmp ut; ut.ut_addr = 0;
10382 ; return 0; }
10384 if { (eval echo configure:10385: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10385 rm -rf conftest*
10386 samba_cv_HAVE_UT_UT_ADDR=yes
10387 else
10388 echo "configure: failed program was:" >&5
10389 cat conftest.$ac_ext >&5
10390 rm -rf conftest*
10391 samba_cv_HAVE_UT_UT_ADDR=no
10393 rm -f conftest*
10396 echo "$ac_t""$samba_cv_HAVE_UT_UT_ADDR" 1>&6
10397 if test x"$samba_cv_HAVE_UT_UT_ADDR" = x"yes"; then
10398 cat >> confdefs.h <<\EOF
10399 #define HAVE_UT_UT_ADDR 1
10404 if test x$ac_cv_func_pututline = xyes ; then
10405 echo $ac_n "checking whether pututline returns pointer""... $ac_c" 1>&6
10406 echo "configure:10407: checking whether pututline returns pointer" >&5
10407 if eval "test \"`echo '$''{'samba_cv_PUTUTLINE_RETURNS_UTMP'+set}'`\" = set"; then
10408 echo $ac_n "(cached) $ac_c" 1>&6
10409 else
10411 cat > conftest.$ac_ext <<EOF
10412 #line 10413 "configure"
10413 #include "confdefs.h"
10414 #include <sys/types.h>
10415 #include <utmp.h>
10416 int main() {
10417 struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
10418 ; return 0; }
10420 if { (eval echo configure:10421: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10421 rm -rf conftest*
10422 samba_cv_PUTUTLINE_RETURNS_UTMP=yes
10423 else
10424 echo "configure: failed program was:" >&5
10425 cat conftest.$ac_ext >&5
10426 rm -rf conftest*
10427 samba_cv_PUTUTLINE_RETURNS_UTMP=no
10429 rm -f conftest*
10432 echo "$ac_t""$samba_cv_PUTUTLINE_RETURNS_UTMP" 1>&6
10433 if test x"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x"yes"; then
10434 cat >> confdefs.h <<\EOF
10435 #define PUTUTLINE_RETURNS_UTMP 1
10441 echo $ac_n "checking for ut_syslen in utmpx""... $ac_c" 1>&6
10442 echo "configure:10443: checking for ut_syslen in utmpx" >&5
10443 if eval "test \"`echo '$''{'samba_cv_HAVE_UX_UT_SYSLEN'+set}'`\" = set"; then
10444 echo $ac_n "(cached) $ac_c" 1>&6
10445 else
10447 cat > conftest.$ac_ext <<EOF
10448 #line 10449 "configure"
10449 #include "confdefs.h"
10450 #include <sys/types.h>
10451 #include <utmpx.h>
10452 int main() {
10453 struct utmpx ux; ux.ut_syslen = 0;
10454 ; return 0; }
10456 if { (eval echo configure:10457: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10457 rm -rf conftest*
10458 samba_cv_HAVE_UX_UT_SYSLEN=yes
10459 else
10460 echo "configure: failed program was:" >&5
10461 cat conftest.$ac_ext >&5
10462 rm -rf conftest*
10463 samba_cv_HAVE_UX_UT_SYSLEN=no
10465 rm -f conftest*
10468 echo "$ac_t""$samba_cv_HAVE_UX_UT_SYSLEN" 1>&6
10469 if test x"$samba_cv_HAVE_UX_UT_SYSLEN" = x"yes"; then
10470 cat >> confdefs.h <<\EOF
10471 #define HAVE_UX_UT_SYSLEN 1
10476 echo $ac_n "checking for Linux kernel oplocks""... $ac_c" 1>&6
10477 echo "configure:10478: checking for Linux kernel oplocks" >&5
10478 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_LINUX'+set}'`\" = set"; then
10479 echo $ac_n "(cached) $ac_c" 1>&6
10480 else
10482 if test "$cross_compiling" = yes; then
10483 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=cross
10484 else
10485 cat > conftest.$ac_ext <<EOF
10486 #line 10487 "configure"
10487 #include "confdefs.h"
10489 #include <sys/types.h>
10490 #include <fcntl.h>
10491 #ifndef F_GETLEASE
10492 #define F_GETLEASE 1025
10493 #endif
10494 main() {
10495 int fd = open("/dev/null", O_RDONLY);
10496 return fcntl(fd, F_GETLEASE, 0) == -1;
10500 if { (eval echo configure:10501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10501 then
10502 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=yes
10503 else
10504 echo "configure: failed program was:" >&5
10505 cat conftest.$ac_ext >&5
10506 rm -fr conftest*
10507 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=no
10509 rm -fr conftest*
10514 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" 1>&6
10515 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x"yes"; then
10516 cat >> confdefs.h <<\EOF
10517 #define HAVE_KERNEL_OPLOCKS_LINUX 1
10522 echo $ac_n "checking for kernel change notify support""... $ac_c" 1>&6
10523 echo "configure:10524: checking for kernel change notify support" >&5
10524 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_CHANGE_NOTIFY'+set}'`\" = set"; then
10525 echo $ac_n "(cached) $ac_c" 1>&6
10526 else
10528 if test "$cross_compiling" = yes; then
10529 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=cross
10530 else
10531 cat > conftest.$ac_ext <<EOF
10532 #line 10533 "configure"
10533 #include "confdefs.h"
10535 #include <sys/types.h>
10536 #include <fcntl.h>
10537 #include <signal.h>
10538 #ifndef F_NOTIFY
10539 #define F_NOTIFY 1026
10540 #endif
10541 main() {
10542 exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0);
10546 if { (eval echo configure:10547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10547 then
10548 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=yes
10549 else
10550 echo "configure: failed program was:" >&5
10551 cat conftest.$ac_ext >&5
10552 rm -fr conftest*
10553 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=no
10555 rm -fr conftest*
10560 echo "$ac_t""$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" 1>&6
10561 if test x"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x"yes" && test x"$target_cpu" != x"s390"; then
10562 cat >> confdefs.h <<\EOF
10563 #define HAVE_KERNEL_CHANGE_NOTIFY 1
10568 echo $ac_n "checking for kernel share modes""... $ac_c" 1>&6
10569 echo "configure:10570: checking for kernel share modes" >&5
10570 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_SHARE_MODES'+set}'`\" = set"; then
10571 echo $ac_n "(cached) $ac_c" 1>&6
10572 else
10574 if test "$cross_compiling" = yes; then
10575 samba_cv_HAVE_KERNEL_SHARE_MODES=cross
10576 else
10577 cat > conftest.$ac_ext <<EOF
10578 #line 10579 "configure"
10579 #include "confdefs.h"
10581 #include <sys/types.h>
10582 #include <fcntl.h>
10583 #include <signal.h>
10584 #include <sys/file.h>
10585 #ifndef LOCK_MAND
10586 #define LOCK_MAND 32
10587 #define LOCK_READ 64
10588 #endif
10589 main() {
10590 exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
10594 if { (eval echo configure:10595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10595 then
10596 samba_cv_HAVE_KERNEL_SHARE_MODES=yes
10597 else
10598 echo "configure: failed program was:" >&5
10599 cat conftest.$ac_ext >&5
10600 rm -fr conftest*
10601 samba_cv_HAVE_KERNEL_SHARE_MODES=no
10603 rm -fr conftest*
10608 echo "$ac_t""$samba_cv_HAVE_KERNEL_SHARE_MODES" 1>&6
10609 if test x"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x"yes"; then
10610 cat >> confdefs.h <<\EOF
10611 #define HAVE_KERNEL_SHARE_MODES 1
10619 echo $ac_n "checking for IRIX kernel oplock type definitions""... $ac_c" 1>&6
10620 echo "configure:10621: checking for IRIX kernel oplock type definitions" >&5
10621 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_IRIX'+set}'`\" = set"; then
10622 echo $ac_n "(cached) $ac_c" 1>&6
10623 else
10625 cat > conftest.$ac_ext <<EOF
10626 #line 10627 "configure"
10627 #include "confdefs.h"
10628 #include <sys/types.h>
10629 #include <fcntl.h>
10630 int main() {
10631 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
10632 ; return 0; }
10634 if { (eval echo configure:10635: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10635 rm -rf conftest*
10636 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=yes
10637 else
10638 echo "configure: failed program was:" >&5
10639 cat conftest.$ac_ext >&5
10640 rm -rf conftest*
10641 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=no
10643 rm -f conftest*
10646 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" 1>&6
10647 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x"yes"; then
10648 cat >> confdefs.h <<\EOF
10649 #define HAVE_KERNEL_OPLOCKS_IRIX 1
10654 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
10655 echo "configure:10656: checking for irix specific capabilities" >&5
10656 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
10657 echo $ac_n "(cached) $ac_c" 1>&6
10658 else
10660 if test "$cross_compiling" = yes; then
10661 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=cross
10662 else
10663 cat > conftest.$ac_ext <<EOF
10664 #line 10665 "configure"
10665 #include "confdefs.h"
10666 #include <sys/types.h>
10667 #include <sys/capability.h>
10668 main() {
10669 cap_t cap;
10670 if ((cap = cap_get_proc()) == NULL)
10671 exit(1);
10672 cap->cap_effective |= CAP_NETWORK_MGT;
10673 cap->cap_inheritable |= CAP_NETWORK_MGT;
10674 cap_set_proc(cap);
10675 exit(0);
10679 if { (eval echo configure:10680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10680 then
10681 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=yes
10682 else
10683 echo "configure: failed program was:" >&5
10684 cat conftest.$ac_ext >&5
10685 rm -fr conftest*
10686 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=no
10688 rm -fr conftest*
10693 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
10694 if test x"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x"yes"; then
10695 cat >> confdefs.h <<\EOF
10696 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
10702 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
10703 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
10706 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10707 echo "configure:10708: checking for int16 typedef included by rpc/rpc.h" >&5
10708 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10709 echo $ac_n "(cached) $ac_c" 1>&6
10710 else
10712 cat > conftest.$ac_ext <<EOF
10713 #line 10714 "configure"
10714 #include "confdefs.h"
10715 #include <sys/types.h>
10716 #if defined(HAVE_RPC_RPC_H)
10717 #include <rpc/rpc.h>
10718 #endif
10719 int main() {
10720 int16 testvar;
10721 ; return 0; }
10723 if { (eval echo configure:10724: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10724 rm -rf conftest*
10725 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=yes
10726 else
10727 echo "configure: failed program was:" >&5
10728 cat conftest.$ac_ext >&5
10729 rm -rf conftest*
10730 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=no
10732 rm -f conftest*
10735 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
10736 if test x"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x"yes"; then
10737 cat >> confdefs.h <<\EOF
10738 #define HAVE_INT16_FROM_RPC_RPC_H 1
10743 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10744 echo "configure:10745: checking for uint16 typedef included by rpc/rpc.h" >&5
10745 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10746 echo $ac_n "(cached) $ac_c" 1>&6
10747 else
10749 cat > conftest.$ac_ext <<EOF
10750 #line 10751 "configure"
10751 #include "confdefs.h"
10752 #include <sys/types.h>
10753 #if defined(HAVE_RPC_RPC_H)
10754 #include <rpc/rpc.h>
10755 #endif
10756 int main() {
10757 uint16 testvar;
10758 ; return 0; }
10760 if { (eval echo configure:10761: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10761 rm -rf conftest*
10762 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=yes
10763 else
10764 echo "configure: failed program was:" >&5
10765 cat conftest.$ac_ext >&5
10766 rm -rf conftest*
10767 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=no
10769 rm -f conftest*
10772 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
10773 if test x"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x"yes"; then
10774 cat >> confdefs.h <<\EOF
10775 #define HAVE_UINT16_FROM_RPC_RPC_H 1
10780 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10781 echo "configure:10782: checking for int32 typedef included by rpc/rpc.h" >&5
10782 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10783 echo $ac_n "(cached) $ac_c" 1>&6
10784 else
10786 cat > conftest.$ac_ext <<EOF
10787 #line 10788 "configure"
10788 #include "confdefs.h"
10789 #include <sys/types.h>
10790 #if defined(HAVE_RPC_RPC_H)
10791 #include <rpc/rpc.h>
10792 #endif
10793 int main() {
10794 int32 testvar;
10795 ; return 0; }
10797 if { (eval echo configure:10798: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10798 rm -rf conftest*
10799 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=yes
10800 else
10801 echo "configure: failed program was:" >&5
10802 cat conftest.$ac_ext >&5
10803 rm -rf conftest*
10804 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=no
10806 rm -f conftest*
10809 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
10810 if test x"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x"yes"; then
10811 cat >> confdefs.h <<\EOF
10812 #define HAVE_INT32_FROM_RPC_RPC_H 1
10817 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10818 echo "configure:10819: checking for uint32 typedef included by rpc/rpc.h" >&5
10819 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10820 echo $ac_n "(cached) $ac_c" 1>&6
10821 else
10823 cat > conftest.$ac_ext <<EOF
10824 #line 10825 "configure"
10825 #include "confdefs.h"
10826 #include <sys/types.h>
10827 #if defined(HAVE_RPC_RPC_H)
10828 #include <rpc/rpc.h>
10829 #endif
10830 int main() {
10831 uint32 testvar;
10832 ; return 0; }
10834 if { (eval echo configure:10835: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10835 rm -rf conftest*
10836 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=yes
10837 else
10838 echo "configure: failed program was:" >&5
10839 cat conftest.$ac_ext >&5
10840 rm -rf conftest*
10841 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=no
10843 rm -f conftest*
10846 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
10847 if test x"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x"yes"; then
10848 cat >> confdefs.h <<\EOF
10849 #define HAVE_UINT32_FROM_RPC_RPC_H 1
10855 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
10856 echo "configure:10857: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
10857 if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
10858 echo $ac_n "(cached) $ac_c" 1>&6
10859 else
10861 cat > conftest.$ac_ext <<EOF
10862 #line 10863 "configure"
10863 #include "confdefs.h"
10864 #include <sys/types.h>
10865 #ifdef HAVE_SYS_SECURITY_H
10866 #include <sys/security.h>
10867 #include <prot.h>
10868 #endif /* HAVE_SYS_SECURITY_H */
10869 #if defined(HAVE_RPC_RPC_H)
10870 #include <rpc/rpc.h>
10871 #endif
10872 int main() {
10873 int testvar;
10874 ; return 0; }
10876 if { (eval echo configure:10877: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10877 rm -rf conftest*
10878 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=no
10879 else
10880 echo "configure: failed program was:" >&5
10881 cat conftest.$ac_ext >&5
10882 rm -rf conftest*
10883 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=yes
10885 rm -f conftest*
10888 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
10889 if test x"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x"yes"; then
10890 cat >> confdefs.h <<\EOF
10891 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
10896 echo $ac_n "checking for test routines""... $ac_c" 1>&6
10897 echo "configure:10898: checking for test routines" >&5
10898 if test "$cross_compiling" = yes; then
10899 echo "configure: warning: cannot run when cross-compiling" 1>&2
10900 else
10901 cat > conftest.$ac_ext <<EOF
10902 #line 10903 "configure"
10903 #include "confdefs.h"
10904 #include "${srcdir-.}/tests/trivial.c"
10906 if { (eval echo configure:10907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10907 then
10908 echo "$ac_t""yes" 1>&6
10909 else
10910 echo "configure: failed program was:" >&5
10911 cat conftest.$ac_ext >&5
10912 rm -fr conftest*
10913 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
10915 rm -fr conftest*
10919 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
10920 echo "configure:10921: checking for ftruncate extend" >&5
10921 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
10922 echo $ac_n "(cached) $ac_c" 1>&6
10923 else
10925 if test "$cross_compiling" = yes; then
10926 samba_cv_HAVE_FTRUNCATE_EXTEND=cross
10927 else
10928 cat > conftest.$ac_ext <<EOF
10929 #line 10930 "configure"
10930 #include "confdefs.h"
10931 #include "${srcdir-.}/tests/ftruncate.c"
10933 if { (eval echo configure:10934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10934 then
10935 samba_cv_HAVE_FTRUNCATE_EXTEND=yes
10936 else
10937 echo "configure: failed program was:" >&5
10938 cat conftest.$ac_ext >&5
10939 rm -fr conftest*
10940 samba_cv_HAVE_FTRUNCATE_EXTEND=no
10942 rm -fr conftest*
10947 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
10948 if test x"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x"yes"; then
10949 cat >> confdefs.h <<\EOF
10950 #define HAVE_FTRUNCATE_EXTEND 1
10955 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
10956 echo "configure:10957: checking for broken getgroups" >&5
10957 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
10958 echo $ac_n "(cached) $ac_c" 1>&6
10959 else
10961 if test "$cross_compiling" = yes; then
10962 samba_cv_HAVE_BROKEN_GETGROUPS=cross
10963 else
10964 cat > conftest.$ac_ext <<EOF
10965 #line 10966 "configure"
10966 #include "confdefs.h"
10967 #include "${srcdir-.}/tests/getgroups.c"
10969 if { (eval echo configure:10970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10970 then
10971 samba_cv_HAVE_BROKEN_GETGROUPS=yes
10972 else
10973 echo "configure: failed program was:" >&5
10974 cat conftest.$ac_ext >&5
10975 rm -fr conftest*
10976 samba_cv_HAVE_BROKEN_GETGROUPS=no
10978 rm -fr conftest*
10983 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
10984 if test x"$samba_cv_HAVE_BROKEN_GETGROUPS" = x"yes"; then
10985 cat >> confdefs.h <<\EOF
10986 #define HAVE_BROKEN_GETGROUPS 1
10991 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
10992 echo "configure:10993: checking whether getpass should be replaced" >&5
10993 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
10994 echo $ac_n "(cached) $ac_c" 1>&6
10995 else
10997 SAVE_CPPFLAGS="$CPPFLAGS"
10998 CPPFLAGS="$CPPFLAGS -I${srcdir-.}/ -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/popt -I${srcdir-.}/smbwrapper"
10999 cat > conftest.$ac_ext <<EOF
11000 #line 11001 "configure"
11001 #include "confdefs.h"
11003 #define REPLACE_GETPASS 1
11004 #define NO_CONFIG_H 1
11005 #define main dont_declare_main
11006 #include "${srcdir-.}/lib/getsmbpass.c"
11007 #undef main
11009 int main() {
11011 ; return 0; }
11013 if { (eval echo configure:11014: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11014 rm -rf conftest*
11015 samba_cv_REPLACE_GETPASS=yes
11016 else
11017 echo "configure: failed program was:" >&5
11018 cat conftest.$ac_ext >&5
11019 rm -rf conftest*
11020 samba_cv_REPLACE_GETPASS=no
11022 rm -f conftest*
11023 CPPFLAGS="$SAVE_CPPFLAGS"
11027 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
11028 if test x"$samba_cv_REPLACE_GETPASS" = x"yes"; then
11029 cat >> confdefs.h <<\EOF
11030 #define REPLACE_GETPASS 1
11035 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
11036 echo "configure:11037: checking for broken inet_ntoa" >&5
11037 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
11038 echo $ac_n "(cached) $ac_c" 1>&6
11039 else
11041 if test "$cross_compiling" = yes; then
11042 samba_cv_REPLACE_INET_NTOA=cross
11043 else
11044 cat > conftest.$ac_ext <<EOF
11045 #line 11046 "configure"
11046 #include "confdefs.h"
11048 #include <stdio.h>
11049 #include <sys/types.h>
11050 #include <netinet/in.h>
11051 #ifdef HAVE_ARPA_INET_H
11052 #include <arpa/inet.h>
11053 #endif
11054 main() { struct in_addr ip; ip.s_addr = 0x12345678;
11055 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
11056 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
11057 exit(1);}
11059 if { (eval echo configure:11060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11060 then
11061 samba_cv_REPLACE_INET_NTOA=yes
11062 else
11063 echo "configure: failed program was:" >&5
11064 cat conftest.$ac_ext >&5
11065 rm -fr conftest*
11066 samba_cv_REPLACE_INET_NTOA=no
11068 rm -fr conftest*
11073 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
11074 if test x"$samba_cv_REPLACE_INET_NTOA" = x"yes"; then
11075 cat >> confdefs.h <<\EOF
11076 #define REPLACE_INET_NTOA 1
11081 echo $ac_n "checking for secure mkstemp""... $ac_c" 1>&6
11082 echo "configure:11083: checking for secure mkstemp" >&5
11083 if eval "test \"`echo '$''{'samba_cv_HAVE_SECURE_MKSTEMP'+set}'`\" = set"; then
11084 echo $ac_n "(cached) $ac_c" 1>&6
11085 else
11087 if test "$cross_compiling" = yes; then
11088 samba_cv_HAVE_SECURE_MKSTEMP=cross
11089 else
11090 cat > conftest.$ac_ext <<EOF
11091 #line 11092 "configure"
11092 #include "confdefs.h"
11093 #include <stdlib.h>
11094 #include <sys/types.h>
11095 #include <sys/stat.h>
11096 #include <unistd.h>
11097 main() {
11098 struct stat st;
11099 char tpl[20]="/tmp/test.XXXXXX";
11100 int fd = mkstemp(tpl);
11101 if (fd == -1) exit(1);
11102 unlink(tpl);
11103 if (fstat(fd, &st) != 0) exit(1);
11104 if ((st.st_mode & 0777) != 0600) exit(1);
11105 exit(0);
11108 if { (eval echo configure:11109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11109 then
11110 samba_cv_HAVE_SECURE_MKSTEMP=yes
11111 else
11112 echo "configure: failed program was:" >&5
11113 cat conftest.$ac_ext >&5
11114 rm -fr conftest*
11115 samba_cv_HAVE_SECURE_MKSTEMP=no
11117 rm -fr conftest*
11122 echo "$ac_t""$samba_cv_HAVE_SECURE_MKSTEMP" 1>&6
11123 if test x"$samba_cv_HAVE_SECURE_MKSTEMP" = x"yes"; then
11124 cat >> confdefs.h <<\EOF
11125 #define HAVE_SECURE_MKSTEMP 1
11130 echo $ac_n "checking for sysconf(_SC_NGROUPS_MAX)""... $ac_c" 1>&6
11131 echo "configure:11132: checking for sysconf(_SC_NGROUPS_MAX)" >&5
11132 if eval "test \"`echo '$''{'samba_cv_SYSCONF_SC_NGROUPS_MAX'+set}'`\" = set"; then
11133 echo $ac_n "(cached) $ac_c" 1>&6
11134 else
11136 if test "$cross_compiling" = yes; then
11137 samba_cv_SYSCONF_SC_NGROUPS_MAX=cross
11138 else
11139 cat > conftest.$ac_ext <<EOF
11140 #line 11141 "configure"
11141 #include "confdefs.h"
11142 #include <unistd.h>
11143 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
11145 if { (eval echo configure:11146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11146 then
11147 samba_cv_SYSCONF_SC_NGROUPS_MAX=yes
11148 else
11149 echo "configure: failed program was:" >&5
11150 cat conftest.$ac_ext >&5
11151 rm -fr conftest*
11152 samba_cv_SYSCONF_SC_NGROUPS_MAX=no
11154 rm -fr conftest*
11159 echo "$ac_t""$samba_cv_SYSCONF_SC_NGROUPS_MAX" 1>&6
11160 if test x"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x"yes"; then
11161 cat >> confdefs.h <<\EOF
11162 #define SYSCONF_SC_NGROUPS_MAX 1
11167 echo $ac_n "checking for root""... $ac_c" 1>&6
11168 echo "configure:11169: checking for root" >&5
11169 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
11170 echo $ac_n "(cached) $ac_c" 1>&6
11171 else
11173 if test "$cross_compiling" = yes; then
11174 samba_cv_HAVE_ROOT=cross
11175 else
11176 cat > conftest.$ac_ext <<EOF
11177 #line 11178 "configure"
11178 #include "confdefs.h"
11179 main() { exit(getuid() != 0); }
11181 if { (eval echo configure:11182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11182 then
11183 samba_cv_HAVE_ROOT=yes
11184 else
11185 echo "configure: failed program was:" >&5
11186 cat conftest.$ac_ext >&5
11187 rm -fr conftest*
11188 samba_cv_HAVE_ROOT=no
11190 rm -fr conftest*
11195 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
11196 if test x"$samba_cv_HAVE_ROOT" = x"yes"; then
11197 cat >> confdefs.h <<\EOF
11198 #define HAVE_ROOT 1
11201 else
11202 echo "configure: warning: running as non-root will disable some tests" 1>&2
11205 ##################
11206 # look for a method of finding the list of network interfaces
11207 iface=no;
11208 echo $ac_n "checking for iface AIX""... $ac_c" 1>&6
11209 echo "configure:11210: checking for iface AIX" >&5
11210 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_AIX'+set}'`\" = set"; then
11211 echo $ac_n "(cached) $ac_c" 1>&6
11212 else
11214 if test "$cross_compiling" = yes; then
11215 samba_cv_HAVE_IFACE_AIX=cross
11216 else
11217 cat > conftest.$ac_ext <<EOF
11218 #line 11219 "configure"
11219 #include "confdefs.h"
11221 #define HAVE_IFACE_AIX 1
11222 #define AUTOCONF_TEST 1
11223 #include "confdefs.h"
11224 #include "${srcdir-.}/lib/interfaces.c"
11226 if { (eval echo configure:11227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11227 then
11228 samba_cv_HAVE_IFACE_AIX=yes
11229 else
11230 echo "configure: failed program was:" >&5
11231 cat conftest.$ac_ext >&5
11232 rm -fr conftest*
11233 samba_cv_HAVE_IFACE_AIX=no
11235 rm -fr conftest*
11240 echo "$ac_t""$samba_cv_HAVE_IFACE_AIX" 1>&6
11241 if test x"$samba_cv_HAVE_IFACE_AIX" = x"yes"; then
11242 iface=yes;cat >> confdefs.h <<\EOF
11243 #define HAVE_IFACE_AIX 1
11248 if test $iface = no; then
11249 echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6
11250 echo "configure:11251: checking for iface ifconf" >&5
11251 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFCONF'+set}'`\" = set"; then
11252 echo $ac_n "(cached) $ac_c" 1>&6
11253 else
11255 if test "$cross_compiling" = yes; then
11256 samba_cv_HAVE_IFACE_IFCONF=cross
11257 else
11258 cat > conftest.$ac_ext <<EOF
11259 #line 11260 "configure"
11260 #include "confdefs.h"
11262 #define HAVE_IFACE_IFCONF 1
11263 #define AUTOCONF_TEST 1
11264 #include "confdefs.h"
11265 #include "${srcdir-.}/lib/interfaces.c"
11267 if { (eval echo configure:11268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11268 then
11269 samba_cv_HAVE_IFACE_IFCONF=yes
11270 else
11271 echo "configure: failed program was:" >&5
11272 cat conftest.$ac_ext >&5
11273 rm -fr conftest*
11274 samba_cv_HAVE_IFACE_IFCONF=no
11276 rm -fr conftest*
11281 echo "$ac_t""$samba_cv_HAVE_IFACE_IFCONF" 1>&6
11282 if test x"$samba_cv_HAVE_IFACE_IFCONF" = x"yes"; then
11283 iface=yes;cat >> confdefs.h <<\EOF
11284 #define HAVE_IFACE_IFCONF 1
11290 if test $iface = no; then
11291 echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6
11292 echo "configure:11293: checking for iface ifreq" >&5
11293 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFREQ'+set}'`\" = set"; then
11294 echo $ac_n "(cached) $ac_c" 1>&6
11295 else
11297 if test "$cross_compiling" = yes; then
11298 samba_cv_HAVE_IFACE_IFREQ=cross
11299 else
11300 cat > conftest.$ac_ext <<EOF
11301 #line 11302 "configure"
11302 #include "confdefs.h"
11304 #define HAVE_IFACE_IFREQ 1
11305 #define AUTOCONF_TEST 1
11306 #include "confdefs.h"
11307 #include "${srcdir-.}/lib/interfaces.c"
11309 if { (eval echo configure:11310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11310 then
11311 samba_cv_HAVE_IFACE_IFREQ=yes
11312 else
11313 echo "configure: failed program was:" >&5
11314 cat conftest.$ac_ext >&5
11315 rm -fr conftest*
11316 samba_cv_HAVE_IFACE_IFREQ=no
11318 rm -fr conftest*
11323 echo "$ac_t""$samba_cv_HAVE_IFACE_IFREQ" 1>&6
11324 if test x"$samba_cv_HAVE_IFACE_IFREQ" = x"yes"; then
11325 iface=yes;cat >> confdefs.h <<\EOF
11326 #define HAVE_IFACE_IFREQ 1
11333 ################################################
11334 # look for a method of setting the effective uid
11335 seteuid=no;
11336 if test $seteuid = no; then
11337 echo $ac_n "checking for setresuid""... $ac_c" 1>&6
11338 echo "configure:11339: checking for setresuid" >&5
11339 if eval "test \"`echo '$''{'samba_cv_USE_SETRESUID'+set}'`\" = set"; then
11340 echo $ac_n "(cached) $ac_c" 1>&6
11341 else
11343 if test "$cross_compiling" = yes; then
11344 samba_cv_USE_SETRESUID=cross
11345 else
11346 cat > conftest.$ac_ext <<EOF
11347 #line 11348 "configure"
11348 #include "confdefs.h"
11350 #define AUTOCONF_TEST 1
11351 #define USE_SETRESUID 1
11352 #include "confdefs.h"
11353 #include "${srcdir-.}/lib/util_sec.c"
11355 if { (eval echo configure:11356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11356 then
11357 samba_cv_USE_SETRESUID=yes
11358 else
11359 echo "configure: failed program was:" >&5
11360 cat conftest.$ac_ext >&5
11361 rm -fr conftest*
11362 samba_cv_USE_SETRESUID=no
11364 rm -fr conftest*
11369 echo "$ac_t""$samba_cv_USE_SETRESUID" 1>&6
11370 if test x"$samba_cv_USE_SETRESUID" = x"yes"; then
11371 seteuid=yes;cat >> confdefs.h <<\EOF
11372 #define USE_SETRESUID 1
11379 if test $seteuid = no; then
11380 echo $ac_n "checking for setreuid""... $ac_c" 1>&6
11381 echo "configure:11382: checking for setreuid" >&5
11382 if eval "test \"`echo '$''{'samba_cv_USE_SETREUID'+set}'`\" = set"; then
11383 echo $ac_n "(cached) $ac_c" 1>&6
11384 else
11386 if test "$cross_compiling" = yes; then
11387 samba_cv_USE_SETREUID=cross
11388 else
11389 cat > conftest.$ac_ext <<EOF
11390 #line 11391 "configure"
11391 #include "confdefs.h"
11393 #define AUTOCONF_TEST 1
11394 #define USE_SETREUID 1
11395 #include "confdefs.h"
11396 #include "${srcdir-.}/lib/util_sec.c"
11398 if { (eval echo configure:11399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11399 then
11400 samba_cv_USE_SETREUID=yes
11401 else
11402 echo "configure: failed program was:" >&5
11403 cat conftest.$ac_ext >&5
11404 rm -fr conftest*
11405 samba_cv_USE_SETREUID=no
11407 rm -fr conftest*
11412 echo "$ac_t""$samba_cv_USE_SETREUID" 1>&6
11413 if test x"$samba_cv_USE_SETREUID" = x"yes"; then
11414 seteuid=yes;cat >> confdefs.h <<\EOF
11415 #define USE_SETREUID 1
11421 if test $seteuid = no; then
11422 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
11423 echo "configure:11424: checking for seteuid" >&5
11424 if eval "test \"`echo '$''{'samba_cv_USE_SETEUID'+set}'`\" = set"; then
11425 echo $ac_n "(cached) $ac_c" 1>&6
11426 else
11428 if test "$cross_compiling" = yes; then
11429 samba_cv_USE_SETEUID=cross
11430 else
11431 cat > conftest.$ac_ext <<EOF
11432 #line 11433 "configure"
11433 #include "confdefs.h"
11435 #define AUTOCONF_TEST 1
11436 #define USE_SETEUID 1
11437 #include "confdefs.h"
11438 #include "${srcdir-.}/lib/util_sec.c"
11440 if { (eval echo configure:11441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11441 then
11442 samba_cv_USE_SETEUID=yes
11443 else
11444 echo "configure: failed program was:" >&5
11445 cat conftest.$ac_ext >&5
11446 rm -fr conftest*
11447 samba_cv_USE_SETEUID=no
11449 rm -fr conftest*
11454 echo "$ac_t""$samba_cv_USE_SETEUID" 1>&6
11455 if test x"$samba_cv_USE_SETEUID" = x"yes"; then
11456 seteuid=yes;cat >> confdefs.h <<\EOF
11457 #define USE_SETEUID 1
11463 if test $seteuid = no; then
11464 echo $ac_n "checking for setuidx""... $ac_c" 1>&6
11465 echo "configure:11466: checking for setuidx" >&5
11466 if eval "test \"`echo '$''{'samba_cv_USE_SETUIDX'+set}'`\" = set"; then
11467 echo $ac_n "(cached) $ac_c" 1>&6
11468 else
11470 if test "$cross_compiling" = yes; then
11471 samba_cv_USE_SETUIDX=cross
11472 else
11473 cat > conftest.$ac_ext <<EOF
11474 #line 11475 "configure"
11475 #include "confdefs.h"
11477 #define AUTOCONF_TEST 1
11478 #define USE_SETUIDX 1
11479 #include "confdefs.h"
11480 #include "${srcdir-.}/lib/util_sec.c"
11482 if { (eval echo configure:11483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11483 then
11484 samba_cv_USE_SETUIDX=yes
11485 else
11486 echo "configure: failed program was:" >&5
11487 cat conftest.$ac_ext >&5
11488 rm -fr conftest*
11489 samba_cv_USE_SETUIDX=no
11491 rm -fr conftest*
11496 echo "$ac_t""$samba_cv_USE_SETUIDX" 1>&6
11497 if test x"$samba_cv_USE_SETUIDX" = x"yes"; then
11498 seteuid=yes;cat >> confdefs.h <<\EOF
11499 #define USE_SETUIDX 1
11506 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
11507 echo "configure:11508: checking for working mmap" >&5
11508 if eval "test \"`echo '$''{'samba_cv_HAVE_MMAP'+set}'`\" = set"; then
11509 echo $ac_n "(cached) $ac_c" 1>&6
11510 else
11512 if test "$cross_compiling" = yes; then
11513 samba_cv_HAVE_MMAP=cross
11514 else
11515 cat > conftest.$ac_ext <<EOF
11516 #line 11517 "configure"
11517 #include "confdefs.h"
11518 #include "${srcdir-.}/tests/shared_mmap.c"
11520 if { (eval echo configure:11521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11521 then
11522 samba_cv_HAVE_MMAP=yes
11523 else
11524 echo "configure: failed program was:" >&5
11525 cat conftest.$ac_ext >&5
11526 rm -fr conftest*
11527 samba_cv_HAVE_MMAP=no
11529 rm -fr conftest*
11534 echo "$ac_t""$samba_cv_HAVE_MMAP" 1>&6
11535 if test x"$samba_cv_HAVE_MMAP" = x"yes"; then
11536 cat >> confdefs.h <<\EOF
11537 #define HAVE_MMAP 1
11542 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
11543 echo "configure:11544: checking for ftruncate needs root" >&5
11544 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
11545 echo $ac_n "(cached) $ac_c" 1>&6
11546 else
11548 if test "$cross_compiling" = yes; then
11549 samba_cv_FTRUNCATE_NEEDS_ROOT=cross
11550 else
11551 cat > conftest.$ac_ext <<EOF
11552 #line 11553 "configure"
11553 #include "confdefs.h"
11554 #include "${srcdir-.}/tests/ftruncroot.c"
11556 if { (eval echo configure:11557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11557 then
11558 samba_cv_FTRUNCATE_NEEDS_ROOT=yes
11559 else
11560 echo "configure: failed program was:" >&5
11561 cat conftest.$ac_ext >&5
11562 rm -fr conftest*
11563 samba_cv_FTRUNCATE_NEEDS_ROOT=no
11565 rm -fr conftest*
11570 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
11571 if test x"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x"yes"; then
11572 cat >> confdefs.h <<\EOF
11573 #define FTRUNCATE_NEEDS_ROOT 1
11578 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
11579 echo "configure:11580: checking for fcntl locking" >&5
11580 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
11581 echo $ac_n "(cached) $ac_c" 1>&6
11582 else
11584 if test "$cross_compiling" = yes; then
11585 samba_cv_HAVE_FCNTL_LOCK=cross
11586 else
11587 cat > conftest.$ac_ext <<EOF
11588 #line 11589 "configure"
11589 #include "confdefs.h"
11590 #include "${srcdir-.}/tests/fcntl_lock.c"
11592 if { (eval echo configure:11593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11593 then
11594 samba_cv_HAVE_FCNTL_LOCK=yes
11595 else
11596 echo "configure: failed program was:" >&5
11597 cat conftest.$ac_ext >&5
11598 rm -fr conftest*
11599 samba_cv_HAVE_FCNTL_LOCK=no
11601 rm -fr conftest*
11606 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
11607 if test x"$samba_cv_HAVE_FCNTL_LOCK" = x"yes"; then
11608 cat >> confdefs.h <<\EOF
11609 #define HAVE_FCNTL_LOCK 1
11614 echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6
11615 echo "configure:11616: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
11616 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_FCNTL64_LOCKS'+set}'`\" = set"; then
11617 echo $ac_n "(cached) $ac_c" 1>&6
11618 else
11620 if test "$cross_compiling" = yes; then
11621 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=cross
11622 else
11623 cat > conftest.$ac_ext <<EOF
11624 #line 11625 "configure"
11625 #include "confdefs.h"
11626 #include "${srcdir-.}/tests/fcntl_lock64.c"
11628 if { (eval echo configure:11629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11629 then
11630 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=yes
11631 else
11632 echo "configure: failed program was:" >&5
11633 cat conftest.$ac_ext >&5
11634 rm -fr conftest*
11635 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=no
11637 rm -fr conftest*
11642 echo "$ac_t""$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" 1>&6
11643 if test x"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x"yes"; then
11644 cat >> confdefs.h <<\EOF
11645 #define HAVE_BROKEN_FCNTL64_LOCKS 1
11649 else
11652 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
11653 echo "configure:11654: checking for 64 bit fcntl locking" >&5
11654 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
11655 echo $ac_n "(cached) $ac_c" 1>&6
11656 else
11658 if test "$cross_compiling" = yes; then
11659 samba_cv_HAVE_STRUCT_FLOCK64=cross
11660 else
11661 cat > conftest.$ac_ext <<EOF
11662 #line 11663 "configure"
11663 #include "confdefs.h"
11665 #if defined(HAVE_UNISTD_H)
11666 #include <unistd.h>
11667 #endif
11668 #include <stdio.h>
11669 #include <stdlib.h>
11671 #ifdef HAVE_FCNTL_H
11672 #include <fcntl.h>
11673 #endif
11675 #ifdef HAVE_SYS_FCNTL_H
11676 #include <sys/fcntl.h>
11677 #endif
11678 main() { struct flock64 fl64;
11679 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
11680 exit(0);
11681 #else
11682 exit(1);
11683 #endif
11686 if { (eval echo configure:11687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11687 then
11688 samba_cv_HAVE_STRUCT_FLOCK64=yes
11689 else
11690 echo "configure: failed program was:" >&5
11691 cat conftest.$ac_ext >&5
11692 rm -fr conftest*
11693 samba_cv_HAVE_STRUCT_FLOCK64=no
11695 rm -fr conftest*
11700 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
11702 if test x"$samba_cv_HAVE_STRUCT_FLOCK64" = x"yes"; then
11703 cat >> confdefs.h <<\EOF
11704 #define HAVE_STRUCT_FLOCK64 1
11710 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
11711 echo "configure:11712: checking for st_blocks in struct stat" >&5
11712 if eval "test \"`echo '$''{'samba_cv_HAVE_STAT_ST_BLOCKS'+set}'`\" = set"; then
11713 echo $ac_n "(cached) $ac_c" 1>&6
11714 else
11716 cat > conftest.$ac_ext <<EOF
11717 #line 11718 "configure"
11718 #include "confdefs.h"
11719 #include <sys/types.h>
11720 #include <sys/stat.h>
11721 #include <unistd.h>
11722 int main() {
11723 struct stat st; st.st_blocks = 0;
11724 ; return 0; }
11726 if { (eval echo configure:11727: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11727 rm -rf conftest*
11728 samba_cv_HAVE_STAT_ST_BLOCKS=yes
11729 else
11730 echo "configure: failed program was:" >&5
11731 cat conftest.$ac_ext >&5
11732 rm -rf conftest*
11733 samba_cv_HAVE_STAT_ST_BLOCKS=no
11735 rm -f conftest*
11738 echo "$ac_t""$samba_cv_HAVE_STAT_ST_BLOCKS" 1>&6
11739 if test x"$samba_cv_HAVE_STAT_ST_BLOCKS" = x"yes"; then
11740 cat >> confdefs.h <<\EOF
11741 #define HAVE_STAT_ST_BLOCKS 1
11746 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
11747 echo "configure:11748: checking for st_blksize in struct stat" >&5
11748 if eval "test \"`echo '$''{'samba_cv_HAVE_STAT_ST_BLKSIZE'+set}'`\" = set"; then
11749 echo $ac_n "(cached) $ac_c" 1>&6
11750 else
11752 cat > conftest.$ac_ext <<EOF
11753 #line 11754 "configure"
11754 #include "confdefs.h"
11755 #include <sys/types.h>
11756 #include <sys/stat.h>
11757 #include <unistd.h>
11758 int main() {
11759 struct stat st; st.st_blksize = 0;
11760 ; return 0; }
11762 if { (eval echo configure:11763: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11763 rm -rf conftest*
11764 samba_cv_HAVE_STAT_ST_BLKSIZE=yes
11765 else
11766 echo "configure: failed program was:" >&5
11767 cat conftest.$ac_ext >&5
11768 rm -rf conftest*
11769 samba_cv_HAVE_STAT_ST_BLKSIZE=no
11771 rm -f conftest*
11774 echo "$ac_t""$samba_cv_HAVE_STAT_ST_BLKSIZE" 1>&6
11775 if test x"$samba_cv_HAVE_STAT_ST_BLKSIZE" = x"yes"; then
11776 cat >> confdefs.h <<\EOF
11777 #define HAVE_STAT_ST_BLKSIZE 1
11782 case "$host_os" in
11783 *linux*)
11784 echo $ac_n "checking for broken RedHat 7.2 system header files""... $ac_c" 1>&6
11785 echo "configure:11786: checking for broken RedHat 7.2 system header files" >&5
11786 if eval "test \"`echo '$''{'samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS'+set}'`\" = set"; then
11787 echo $ac_n "(cached) $ac_c" 1>&6
11788 else
11790 cat > conftest.$ac_ext <<EOF
11791 #line 11792 "configure"
11792 #include "confdefs.h"
11794 #ifdef HAVE_SYS_VFS_H
11795 #include <sys/vfs.h>
11796 #endif
11797 #ifdef HAVE_SYS_CAPABILITY_H
11798 #include <sys/capability.h>
11799 #endif
11801 int main() {
11802 int i;
11803 ; return 0; }
11805 if { (eval echo configure:11806: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11806 rm -rf conftest*
11807 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=no
11808 else
11809 echo "configure: failed program was:" >&5
11810 cat conftest.$ac_ext >&5
11811 rm -rf conftest*
11812 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=yes
11814 rm -f conftest*
11817 echo "$ac_t""$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" 1>&6
11818 if test x"$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" = x"yes"; then
11819 cat >> confdefs.h <<\EOF
11820 #define BROKEN_REDHAT_7_SYSTEM_HEADERS 1
11825 esac
11827 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
11828 echo "configure:11829: checking for broken nisplus include files" >&5
11829 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
11830 echo $ac_n "(cached) $ac_c" 1>&6
11831 else
11833 cat > conftest.$ac_ext <<EOF
11834 #line 11835 "configure"
11835 #include "confdefs.h"
11836 #include <sys/acl.h>
11837 #if defined(HAVE_RPCSVC_NIS_H)
11838 #include <rpcsvc/nis.h>
11839 #endif
11840 int main() {
11841 int i;
11842 ; return 0; }
11844 if { (eval echo configure:11845: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11845 rm -rf conftest*
11846 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=no
11847 else
11848 echo "configure: failed program was:" >&5
11849 cat conftest.$ac_ext >&5
11850 rm -rf conftest*
11851 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=yes
11853 rm -f conftest*
11856 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
11857 if test x"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x"yes"; then
11858 cat >> confdefs.h <<\EOF
11859 #define BROKEN_NISPLUS_INCLUDE_FILES 1
11865 #################################################
11866 # check for smbwrapper support
11867 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
11868 echo "configure:11869: checking whether to use smbwrapper" >&5
11869 # Check whether --with-smbwrapper or --without-smbwrapper was given.
11870 if test "${with_smbwrapper+set}" = set; then
11871 withval="$with_smbwrapper"
11872 case "$withval" in
11873 yes)
11874 echo "$ac_t""yes" 1>&6
11875 cat >> confdefs.h <<\EOF
11876 #define WITH_SMBWRAPPER 1
11879 WRAPPROG="bin/smbsh\$(EXEEXT)"
11880 WRAP="bin/smbwrapper.$SHLIBEXT"
11882 if test x$ATTEMPT_WRAP32_BUILD = x; then
11883 WRAP32=""
11884 else
11885 WRAP32=bin/smbwrapper.32.$SHLIBEXT
11888 # Conditions under which smbwrapper should not be built.
11890 if test x$PICFLAG = x; then
11891 echo No support for PIC code - disabling smbwrapper and smbsh
11892 WRAPPROG=""
11893 WRAP=""
11894 WRAP32=""
11895 elif test x$ac_cv_func_syscall = xno; then
11896 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
11897 WRAPPROG=""
11898 WRAP=""
11899 WRAP32=""
11903 echo "$ac_t""no" 1>&6
11905 esac
11906 else
11907 echo "$ac_t""no" 1>&6
11912 #################################################
11913 # check for the AFS filesystem
11914 echo $ac_n "checking whether to use AFS""... $ac_c" 1>&6
11915 echo "configure:11916: checking whether to use AFS" >&5
11916 # Check whether --with-afs or --without-afs was given.
11917 if test "${with_afs+set}" = set; then
11918 withval="$with_afs"
11919 case "$withval" in
11920 yes)
11921 echo "$ac_t""yes" 1>&6
11922 cat >> confdefs.h <<\EOF
11923 #define WITH_AFS 1
11928 echo "$ac_t""no" 1>&6
11930 esac
11931 else
11932 echo "$ac_t""no" 1>&6
11938 #################################################
11939 # check for the DFS auth system
11940 echo $ac_n "checking whether to use DCE/DFS auth""... $ac_c" 1>&6
11941 echo "configure:11942: checking whether to use DCE/DFS auth" >&5
11942 # Check whether --with-dfs or --without-dfs was given.
11943 if test "${with_dfs+set}" = set; then
11944 withval="$with_dfs"
11945 case "$withval" in
11946 yes)
11947 echo "$ac_t""yes" 1>&6
11948 cat >> confdefs.h <<\EOF
11949 #define WITH_DFS 1
11954 echo "$ac_t""no" 1>&6
11956 esac
11957 else
11958 echo "$ac_t""no" 1>&6
11963 #################################################
11964 # check for Kerberos IV auth system
11965 echo $ac_n "checking whether to use Kerberos IV""... $ac_c" 1>&6
11966 echo "configure:11967: checking whether to use Kerberos IV" >&5
11967 # Check whether --with-krb4 or --without-krb4 was given.
11968 if test "${with_krb4+set}" = set; then
11969 withval="$with_krb4"
11970 case "$withval" in
11971 yes)
11972 echo "$ac_t""yes" 1>&6
11973 cat >> confdefs.h <<\EOF
11974 #define KRB4_AUTH 1
11977 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
11978 echo "configure:11979: checking for dn_expand in -lresolv" >&5
11979 ac_lib_var=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
11980 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11981 echo $ac_n "(cached) $ac_c" 1>&6
11982 else
11983 ac_save_LIBS="$LIBS"
11984 LIBS="-lresolv $LIBS"
11985 cat > conftest.$ac_ext <<EOF
11986 #line 11987 "configure"
11987 #include "confdefs.h"
11988 /* Override any gcc2 internal prototype to avoid an error. */
11989 /* We use char because int might match the return type of a gcc2
11990 builtin and then its argument prototype would still apply. */
11991 char dn_expand();
11993 int main() {
11994 dn_expand()
11995 ; return 0; }
11997 if { (eval echo configure:11998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11998 rm -rf conftest*
11999 eval "ac_cv_lib_$ac_lib_var=yes"
12000 else
12001 echo "configure: failed program was:" >&5
12002 cat conftest.$ac_ext >&5
12003 rm -rf conftest*
12004 eval "ac_cv_lib_$ac_lib_var=no"
12006 rm -f conftest*
12007 LIBS="$ac_save_LIBS"
12010 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12011 echo "$ac_t""yes" 1>&6
12012 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
12013 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
12014 cat >> confdefs.h <<EOF
12015 #define $ac_tr_lib 1
12018 LIBS="-lresolv $LIBS"
12020 else
12021 echo "$ac_t""no" 1>&6
12024 LIBS="$LIBS -lkrb -ldes"
12025 CFLAGS="$CFLAGS -I$withval/include"
12026 LDFLAGS="$LDFLAGS -L$withval/lib"
12029 echo "$ac_t""no" 1>&6
12031 esac
12032 else
12033 echo "$ac_t""no" 1>&6
12038 #################################################
12039 # check for Kerberos 5 auth system
12040 echo $ac_n "checking whether to use Kerberos 5""... $ac_c" 1>&6
12041 echo "configure:12042: checking whether to use Kerberos 5" >&5
12042 # Check whether --with-krb5 or --without-krb5 was given.
12043 if test "${with_krb5+set}" = set; then
12044 withval="$with_krb5"
12045 case "$withval" in
12046 yes)
12047 echo "$ac_t""yes" 1>&6
12048 cat >> confdefs.h <<\EOF
12049 #define KRB5_AUTH 1
12052 LIBS="$LIBS -ldes425 -lkrb5 -lcrypto -lcom_err"
12053 CFLAGS="$CFLAGS -I$withval/include"
12054 LDFLAGS="$LDFLAGS -L$withval/lib"
12057 echo "$ac_t""no" 1>&6
12059 esac
12060 else
12061 echo "$ac_t""no" 1>&6
12066 #################################################
12067 # check for automount support
12068 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
12069 echo "configure:12070: checking whether to use AUTOMOUNT" >&5
12070 # Check whether --with-automount or --without-automount was given.
12071 if test "${with_automount+set}" = set; then
12072 withval="$with_automount"
12073 case "$withval" in
12074 yes)
12075 echo "$ac_t""yes" 1>&6
12076 cat >> confdefs.h <<\EOF
12077 #define WITH_AUTOMOUNT 1
12082 echo "$ac_t""no" 1>&6
12084 esac
12085 else
12086 echo "$ac_t""no" 1>&6
12091 #################################################
12092 # check for smbmount support
12093 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
12094 echo "configure:12095: checking whether to use SMBMOUNT" >&5
12095 # Check whether --with-smbmount or --without-smbmount was given.
12096 if test "${with_smbmount+set}" = set; then
12097 withval="$with_smbmount"
12098 case "$withval" in
12099 yes)
12100 case "$host_os" in
12101 *linux*)
12102 echo "$ac_t""yes" 1>&6
12103 cat >> confdefs.h <<\EOF
12104 #define WITH_SMBMOUNT 1
12107 MPROGS="bin/smbmount bin/smbmnt bin/smbumount"
12110 { echo "configure: error: not on a linux system!" 1>&2; exit 1; }
12112 esac
12115 echo "$ac_t""no" 1>&6
12116 MPROGS=
12118 esac
12119 else
12120 echo "$ac_t""no" 1>&6
12121 MPROGS=
12127 #################################################
12128 # check for a PAM password database
12129 with_pam_for_crypt=no
12130 echo $ac_n "checking whether to use PAM password database""... $ac_c" 1>&6
12131 echo "configure:12132: checking whether to use PAM password database" >&5
12132 # Check whether --with-pam or --without-pam was given.
12133 if test "${with_pam+set}" = set; then
12134 withval="$with_pam"
12135 case "$withval" in
12136 yes)
12137 echo "$ac_t""yes" 1>&6
12138 cat >> confdefs.h <<\EOF
12139 #define WITH_PAM 1
12142 LIBS="$LIBS -lpam"
12143 with_pam_for_crypt=yes
12146 echo "$ac_t""no" 1>&6
12148 esac
12149 else
12150 echo "$ac_t""no" 1>&6
12155 # we can't build a pam module if we don't have pam.
12156 echo $ac_n "checking for pam_get_data in -lpam""... $ac_c" 1>&6
12157 echo "configure:12158: checking for pam_get_data in -lpam" >&5
12158 ac_lib_var=`echo pam'_'pam_get_data | sed 'y%./+-%__p_%'`
12159 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12160 echo $ac_n "(cached) $ac_c" 1>&6
12161 else
12162 ac_save_LIBS="$LIBS"
12163 LIBS="-lpam $LIBS"
12164 cat > conftest.$ac_ext <<EOF
12165 #line 12166 "configure"
12166 #include "confdefs.h"
12167 /* Override any gcc2 internal prototype to avoid an error. */
12168 /* We use char because int might match the return type of a gcc2
12169 builtin and then its argument prototype would still apply. */
12170 char pam_get_data();
12172 int main() {
12173 pam_get_data()
12174 ; return 0; }
12176 if { (eval echo configure:12177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12177 rm -rf conftest*
12178 eval "ac_cv_lib_$ac_lib_var=yes"
12179 else
12180 echo "configure: failed program was:" >&5
12181 cat conftest.$ac_ext >&5
12182 rm -rf conftest*
12183 eval "ac_cv_lib_$ac_lib_var=no"
12185 rm -f conftest*
12186 LIBS="$ac_save_LIBS"
12189 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12190 echo "$ac_t""yes" 1>&6
12191 cat >> confdefs.h <<\EOF
12192 #define HAVE_LIBPAM 1
12195 else
12196 echo "$ac_t""no" 1>&6
12200 #################################################
12201 # check for pam_smbpass support
12202 echo $ac_n "checking whether to use pam_smbpass""... $ac_c" 1>&6
12203 echo "configure:12204: checking whether to use pam_smbpass" >&5
12204 # Check whether --with-pam_smbpass or --without-pam_smbpass was given.
12205 if test "${with_pam_smbpass+set}" = set; then
12206 withval="$with_pam_smbpass"
12207 case "$withval" in
12208 yes)
12209 echo "$ac_t""yes" 1>&6
12211 # Conditions under which pam_smbpass should not be built.
12213 if test x$PICFLAG = x; then
12214 echo "$ac_t""No support for PIC code - disabling pam_smbpass" 1>&6
12215 PAM_MOD=""
12216 elif test x$ac_cv_lib_pam_pam_get_data = xno; then
12217 echo "$ac_t""No libpam found -- disabling pam_smbpass" 1>&6
12218 PAM_MOD=""
12219 else
12220 cat >> confdefs.h <<\EOF
12221 #define WITH_PAM_SMBPASS 1
12224 PAM_MOD="bin/pam_smbpass.so"
12228 echo "$ac_t""no" 1>&6
12230 esac
12231 else
12232 echo "$ac_t""no" 1>&6
12238 ###############################################
12239 # test for where we get crypt() from, but only
12240 # if not using PAM
12241 if test $with_pam_for_crypt = no; then
12242 for ac_func in crypt
12244 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12245 echo "configure:12246: checking for $ac_func" >&5
12246 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12247 echo $ac_n "(cached) $ac_c" 1>&6
12248 else
12249 cat > conftest.$ac_ext <<EOF
12250 #line 12251 "configure"
12251 #include "confdefs.h"
12252 /* System header to define __stub macros and hopefully few prototypes,
12253 which can conflict with char $ac_func(); below. */
12254 #include <assert.h>
12255 /* Override any gcc2 internal prototype to avoid an error. */
12256 /* We use char because int might match the return type of a gcc2
12257 builtin and then its argument prototype would still apply. */
12258 char $ac_func();
12260 int main() {
12262 /* The GNU C library defines this for functions which it implements
12263 to always fail with ENOSYS. Some functions are actually named
12264 something starting with __ and the normal name is an alias. */
12265 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12266 choke me
12267 #else
12268 $ac_func();
12269 #endif
12271 ; return 0; }
12273 if { (eval echo configure:12274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12274 rm -rf conftest*
12275 eval "ac_cv_func_$ac_func=yes"
12276 else
12277 echo "configure: failed program was:" >&5
12278 cat conftest.$ac_ext >&5
12279 rm -rf conftest*
12280 eval "ac_cv_func_$ac_func=no"
12282 rm -f conftest*
12285 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12286 echo "$ac_t""yes" 1>&6
12287 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12288 cat >> confdefs.h <<EOF
12289 #define $ac_tr_func 1
12292 else
12293 echo "$ac_t""no" 1>&6
12295 done
12297 if test x"$ac_cv_func_crypt" = x"no"; then
12298 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
12299 echo "configure:12300: checking for crypt in -lcrypt" >&5
12300 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
12301 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12302 echo $ac_n "(cached) $ac_c" 1>&6
12303 else
12304 ac_save_LIBS="$LIBS"
12305 LIBS="-lcrypt $LIBS"
12306 cat > conftest.$ac_ext <<EOF
12307 #line 12308 "configure"
12308 #include "confdefs.h"
12309 /* Override any gcc2 internal prototype to avoid an error. */
12310 /* We use char because int might match the return type of a gcc2
12311 builtin and then its argument prototype would still apply. */
12312 char crypt();
12314 int main() {
12315 crypt()
12316 ; return 0; }
12318 if { (eval echo configure:12319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12319 rm -rf conftest*
12320 eval "ac_cv_lib_$ac_lib_var=yes"
12321 else
12322 echo "configure: failed program was:" >&5
12323 cat conftest.$ac_ext >&5
12324 rm -rf conftest*
12325 eval "ac_cv_lib_$ac_lib_var=no"
12327 rm -f conftest*
12328 LIBS="$ac_save_LIBS"
12331 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12332 echo "$ac_t""yes" 1>&6
12333 LIBS="$LIBS -lcrypt";
12334 cat >> confdefs.h <<\EOF
12335 #define HAVE_CRYPT 1
12338 else
12339 echo "$ac_t""no" 1>&6
12346 ## moved after the check for -lcrypt in order to
12347 ## ensure that the necessary libraries are included
12348 ## check checking for truncated salt. Wrapped by the
12349 ## $with_pam_for_crypt variable as above --jerry
12351 if test $with_pam_for_crypt = no; then
12352 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
12353 echo "configure:12354: checking for a crypt that needs truncated salt" >&5
12354 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
12355 echo $ac_n "(cached) $ac_c" 1>&6
12356 else
12358 if test "$cross_compiling" = yes; then
12359 samba_cv_HAVE_TRUNCATED_SALT=cross
12360 else
12361 cat > conftest.$ac_ext <<EOF
12362 #line 12363 "configure"
12363 #include "confdefs.h"
12364 #include "${srcdir-.}/tests/crypttest.c"
12366 if { (eval echo configure:12367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12367 then
12368 samba_cv_HAVE_TRUNCATED_SALT=no
12369 else
12370 echo "configure: failed program was:" >&5
12371 cat conftest.$ac_ext >&5
12372 rm -fr conftest*
12373 samba_cv_HAVE_TRUNCATED_SALT=yes
12375 rm -fr conftest*
12380 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
12381 if test x"$samba_cv_HAVE_TRUNCATED_SALT" = x"yes"; then
12382 cat >> confdefs.h <<\EOF
12383 #define HAVE_TRUNCATED_SALT 1
12390 ########################################################################################
12392 ## TESTS FOR SAM BACKENDS. KEEP THESE GROUPED TOGETHER
12394 ########################################################################################
12396 ## set the with_smbpasswd_sam as the default
12397 with_smbpasswd_sam=yes
12401 #################################################
12402 # check for a TDB password database
12403 echo $ac_n "checking whether to use TDB SAM database""... $ac_c" 1>&6
12404 echo "configure:12405: checking whether to use TDB SAM database" >&5
12405 # Check whether --with-tdbsam or --without-tdbsam was given.
12406 if test "${with_tdbsam+set}" = set; then
12407 withval="$with_tdbsam"
12408 case "$withval" in
12409 yes)
12410 echo "$ac_t""yes" 1>&6
12411 cat >> confdefs.h <<\EOF
12412 #define WITH_TDB_SAM 1
12415 with_smbpasswd_sam=no
12418 echo "$ac_t""no" 1>&6
12420 esac
12421 else
12422 echo "$ac_t""no" 1>&6
12427 #################################################
12428 # check for a LDAP password database
12429 echo $ac_n "checking whether to use LDAP SAM database""... $ac_c" 1>&6
12430 echo "configure:12431: checking whether to use LDAP SAM database" >&5
12431 # Check whether --with-ldapsam or --without-ldapsam was given.
12432 if test "${with_ldapsam+set}" = set; then
12433 withval="$with_ldapsam"
12434 case "$withval" in
12435 yes)
12436 echo "$ac_t""yes" 1>&6
12437 cat >> confdefs.h <<\EOF
12438 #define WITH_LDAP_SAM 1
12441 LDAPLIBS="-lldap"
12442 echo $ac_n "checking for ber_bvfree in -llber""... $ac_c" 1>&6
12443 echo "configure:12444: checking for ber_bvfree in -llber" >&5
12444 ac_lib_var=`echo lber'_'ber_bvfree | sed 'y%./+-%__p_%'`
12445 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12446 echo $ac_n "(cached) $ac_c" 1>&6
12447 else
12448 ac_save_LIBS="$LIBS"
12449 LIBS="-llber $LIBS"
12450 cat > conftest.$ac_ext <<EOF
12451 #line 12452 "configure"
12452 #include "confdefs.h"
12453 /* Override any gcc2 internal prototype to avoid an error. */
12454 /* We use char because int might match the return type of a gcc2
12455 builtin and then its argument prototype would still apply. */
12456 char ber_bvfree();
12458 int main() {
12459 ber_bvfree()
12460 ; return 0; }
12462 if { (eval echo configure:12463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12463 rm -rf conftest*
12464 eval "ac_cv_lib_$ac_lib_var=yes"
12465 else
12466 echo "configure: failed program was:" >&5
12467 cat conftest.$ac_ext >&5
12468 rm -rf conftest*
12469 eval "ac_cv_lib_$ac_lib_var=no"
12471 rm -f conftest*
12472 LIBS="$ac_save_LIBS"
12475 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12476 echo "$ac_t""yes" 1>&6
12477 LDAPLIBS="$LDAPLIBS -llber"
12478 else
12479 echo "$ac_t""no" 1>&6
12482 ## remove -lresolv as this should be included by the -lsasl dependency
12483 ## in the OpenLDAP clients. By not requiring it specifically, we avoid
12484 ## issues on platforms that don't have it
12485 LDAPLIBS="$LDAPLIBS"
12486 old_LDFLAGS="$LDFLAGS"
12487 LDFLAGS="$LDFLAGS $LDAPLIBS"
12488 for ac_func in ldap_start_tls_s
12490 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12491 echo "configure:12492: checking for $ac_func" >&5
12492 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12493 echo $ac_n "(cached) $ac_c" 1>&6
12494 else
12495 cat > conftest.$ac_ext <<EOF
12496 #line 12497 "configure"
12497 #include "confdefs.h"
12498 /* System header to define __stub macros and hopefully few prototypes,
12499 which can conflict with char $ac_func(); below. */
12500 #include <assert.h>
12501 /* Override any gcc2 internal prototype to avoid an error. */
12502 /* We use char because int might match the return type of a gcc2
12503 builtin and then its argument prototype would still apply. */
12504 char $ac_func();
12506 int main() {
12508 /* The GNU C library defines this for functions which it implements
12509 to always fail with ENOSYS. Some functions are actually named
12510 something starting with __ and the normal name is an alias. */
12511 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12512 choke me
12513 #else
12514 $ac_func();
12515 #endif
12517 ; return 0; }
12519 if { (eval echo configure:12520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12520 rm -rf conftest*
12521 eval "ac_cv_func_$ac_func=yes"
12522 else
12523 echo "configure: failed program was:" >&5
12524 cat conftest.$ac_ext >&5
12525 rm -rf conftest*
12526 eval "ac_cv_func_$ac_func=no"
12528 rm -f conftest*
12531 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12532 echo "$ac_t""yes" 1>&6
12533 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12534 cat >> confdefs.h <<EOF
12535 #define $ac_tr_func 1
12538 else
12539 echo "$ac_t""no" 1>&6
12541 done
12543 LDFLAGS="$old_LDFLAGS"
12544 with_smbpasswd_sam=no
12546 echo $ac_n "checking whether ldap_set_rebind_proc takes 3 arguments""... $ac_c" 1>&6
12547 echo "configure:12548: checking whether ldap_set_rebind_proc takes 3 arguments" >&5
12548 if eval "test \"`echo '$''{'samba_cv_ldap_set_rebind_proc'+set}'`\" = set"; then
12549 echo $ac_n "(cached) $ac_c" 1>&6
12550 else
12552 cat > conftest.$ac_ext <<EOF
12553 #line 12554 "configure"
12554 #include "confdefs.h"
12556 #include <lber.h>
12557 #include <ldap.h>
12558 int main() {
12559 ldap_set_rebind_proc(0, 0, 0);
12560 ; return 0; }
12562 if { (eval echo configure:12563: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12563 rm -rf conftest*
12564 samba_cv_ldap_set_rebind_proc=3
12565 else
12566 echo "configure: failed program was:" >&5
12567 cat conftest.$ac_ext >&5
12568 rm -rf conftest*
12569 samba_cv_ldap_set_rebind_proc=2
12571 rm -f conftest*
12574 echo "$ac_t""$samba_cv_ldap_set_rebind_proc" 1>&6
12575 if test x"$samba_cv_ldap_set_rebind_proc" = x"3"; then
12576 cat >> confdefs.h <<\EOF
12577 #define LDAP_SET_REBIND_PROC_ARGS 3
12580 else
12581 cat >> confdefs.h <<\EOF
12582 #define LDAP_SET_REBIND_PROC_ARGS 2
12588 echo "$ac_t""no" 1>&6
12590 esac
12591 else
12592 echo "$ac_t""no" 1>&6
12598 #################################################
12599 # check for a NISPLUS password database
12600 echo $ac_n "checking whether to use NISPLUS SAM database""... $ac_c" 1>&6
12601 echo "configure:12602: checking whether to use NISPLUS SAM database" >&5
12602 # Check whether --with-nisplussam or --without-nisplussam was given.
12603 if test "${with_nisplussam+set}" = set; then
12604 withval="$with_nisplussam"
12605 case "$withval" in
12606 yes)
12607 echo "$ac_t""yes" 1>&6
12608 cat >> confdefs.h <<\EOF
12609 #define WITH_NISPLUS_SAM 1
12612 with_smbpasswd_sam=no
12615 echo "$ac_t""no" 1>&6
12617 esac
12618 else
12619 echo "$ac_t""no" 1>&6
12624 ################################################
12625 # This test should come last because the
12626 # smbpasswd SAM is only used if another format
12627 # has not been defined
12628 echo $ac_n "checking whether to use traditional smbpasswd file""... $ac_c" 1>&6
12629 echo "configure:12630: checking whether to use traditional smbpasswd file" >&5
12630 if test $with_smbpasswd_sam = yes; then
12631 echo "$ac_t""yes" 1>&6
12632 cat >> confdefs.h <<\EOF
12633 #define WITH_SMBPASSWD_SAM 1
12636 PDBEDIT=""
12637 else
12638 echo "$ac_t""no" 1>&6
12639 PDBEDIT="bin/pdbedit\$(EXEEXT)"
12642 ########################################################################################
12644 ## END OF TESTS FOR SAM BACKENDS.
12646 ########################################################################################
12648 #################################################
12649 # check for a NISPLUS_HOME support
12650 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
12651 echo "configure:12652: checking whether to use NISPLUS_HOME" >&5
12652 # Check whether --with-nisplus-home or --without-nisplus-home was given.
12653 if test "${with_nisplus_home+set}" = set; then
12654 withval="$with_nisplus_home"
12655 case "$withval" in
12656 yes)
12657 echo "$ac_t""yes" 1>&6
12658 cat >> confdefs.h <<\EOF
12659 #define WITH_NISPLUS_HOME 1
12664 echo "$ac_t""no" 1>&6
12666 esac
12667 else
12668 echo "$ac_t""no" 1>&6
12673 #################################################
12674 # check for the secure socket layer
12675 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
12676 echo "configure:12677: checking whether to use SSL" >&5
12677 # Check whether --with-ssl or --without-ssl was given.
12678 if test "${with_ssl+set}" = set; then
12679 withval="$with_ssl"
12680 case "$withval" in
12681 yes)
12682 echo "$ac_t""yes" 1>&6
12683 cat >> confdefs.h <<\EOF
12684 #define WITH_SSL 1
12687 withval="/usr/local/ssl" # default
12689 if test "${with_sslinc+set}" = set; then
12691 withval="$with_sslinc"
12692 case "$withval" in
12693 yes|no)
12694 echo "configure: warning: --with-sslinc called without argument - will use default" 1>&w
12695 CFLAGS="-I/usr/local/ssl/include $CFLAGS"
12698 CFLAGS="-I${withval} $CFLAGS"
12700 esac
12702 else
12704 CFLAGS="-I/usr/local/ssl/include $CFLAGS"
12708 if test "${with_ssllib+set}" = set; then
12710 withval="$with_ssllib"
12711 case "$withval" in
12712 yes|no)
12713 echo "configure: warning: --with-ssllib called without argument - will use default" 1>&w
12714 LDFLAGS="-L/usr/local/ssl/lib $LDFLAGS"
12717 LDFLAGS="-L${withval}/lib $LDFLAGS"
12719 esac
12721 else
12723 LDFLAGS="-L/usr/local/ssl/lib $LDFLAGS"
12727 LIBS="-lssl -lcrypto $LIBS"
12729 # if test ! -d ${withval}; then
12730 # echo "configure: error: called with --with-ssl, but ssl base directory ${withval} does not exist or is not a directory. Aborting config" 1>&2
12731 # exit 1
12732 # fi
12734 CFLAGS="-DHAVE_CRYPT_DECL $CFLAGS" # Damn, SSLeay defines its own
12738 echo "$ac_t""no" 1>&6
12740 esac
12741 else
12742 echo "$ac_t""no" 1>&6
12747 #################################################
12748 # check for syslog logging
12749 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
12750 echo "configure:12751: checking whether to use syslog logging" >&5
12751 # Check whether --with-syslog or --without-syslog was given.
12752 if test "${with_syslog+set}" = set; then
12753 withval="$with_syslog"
12754 case "$withval" in
12755 yes)
12756 echo "$ac_t""yes" 1>&6
12757 cat >> confdefs.h <<\EOF
12758 #define WITH_SYSLOG 1
12763 echo "$ac_t""no" 1>&6
12765 esac
12766 else
12767 echo "$ac_t""no" 1>&6
12772 #################################################
12773 # check for a shared memory profiling support
12774 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
12775 echo "configure:12776: checking whether to use profiling" >&5
12776 # Check whether --with-profiling-data or --without-profiling-data was given.
12777 if test "${with_profiling_data+set}" = set; then
12778 withval="$with_profiling_data"
12779 case "$withval" in
12780 yes)
12781 echo "$ac_t""yes" 1>&6
12782 cat >> confdefs.h <<\EOF
12783 #define WITH_PROFILE 1
12788 echo "$ac_t""no" 1>&6
12790 esac
12791 else
12792 echo "$ac_t""no" 1>&6
12798 #################################################
12799 # check for experimental disk-quotas support
12800 QUOTAOBJS=smbd/noquotas.o
12802 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
12803 echo "configure:12804: checking whether to support disk-quotas" >&5
12804 # Check whether --with-quotas or --without-quotas was given.
12805 if test "${with_quotas+set}" = set; then
12806 withval="$with_quotas"
12807 case "$withval" in
12808 yes)
12809 echo "$ac_t""yes" 1>&6
12810 QUOTAOBJS=smbd/quotas.o
12813 echo "$ac_t""no" 1>&6
12815 esac
12816 else
12817 echo "$ac_t""no" 1>&6
12823 #################################################
12824 # check for experimental utmp accounting
12826 echo $ac_n "checking whether to support utmp accounting""... $ac_c" 1>&6
12827 echo "configure:12828: checking whether to support utmp accounting" >&5
12828 # Check whether --with-utmp or --without-utmp was given.
12829 if test "${with_utmp+set}" = set; then
12830 withval="$with_utmp"
12831 case "$withval" in
12832 yes)
12833 echo "$ac_t""yes" 1>&6
12834 cat >> confdefs.h <<\EOF
12835 #define WITH_UTMP 1
12840 echo "$ac_t""no" 1>&6
12842 esac
12843 else
12844 echo "$ac_t""no" 1>&6
12849 #################################################
12850 # check for MS Dfs support
12852 echo $ac_n "checking whether to support Microsoft Dfs""... $ac_c" 1>&6
12853 echo "configure:12854: checking whether to support Microsoft Dfs" >&5
12854 # Check whether --with-msdfs or --without-msdfs was given.
12855 if test "${with_msdfs+set}" = set; then
12856 withval="$with_msdfs"
12857 case "$withval" in
12858 yes)
12859 echo "$ac_t""yes" 1>&6
12860 cat >> confdefs.h <<\EOF
12861 #define WITH_MSDFS 1
12866 echo "$ac_t""no" 1>&6
12868 esac
12869 else
12870 echo "$ac_t""no" 1>&6
12875 #################################################
12876 # should we build libsmbclient?
12878 INSTALLCLIENTCMD_SH=:
12879 INSTALLCLIENTCMD_A=:
12880 LIBSMBCLIENT_SHARED=
12881 LIBSMBCLIENT=
12882 echo $ac_n "checking whether to build the libsmbclient shared library""... $ac_c" 1>&6
12883 echo "configure:12884: checking whether to build the libsmbclient shared library" >&5
12884 # Check whether --with-libsmbclient or --without-libsmbclient was given.
12885 if test "${with_libsmbclient+set}" = set; then
12886 withval="$with_libsmbclient"
12887 case "$withval" in
12888 yes)
12889 if test $BLDSHARED = true; then
12890 INSTALLCLIENTCMD_SH="\$(INSTALLCMD)"
12891 LIBSMBCLIENT_SHARED=bin/libsmbclient.$SHLIBEXT
12892 LIBSMBCLIENT=libsmbclient
12893 echo "$ac_t""yes" 1>&6
12894 else
12895 INSTALLCLIENTCMD_A="\$(INSTALLCMD)"
12896 LIBSMBCLIENT=libsmbclient
12897 echo "$ac_t""no shared library support -- will supply static library" 1>&6
12901 echo "$ac_t""no" 1>&6
12903 esac
12904 else
12905 echo "$ac_t""no" 1>&6
12910 #################################################
12911 # these tests are taken from the GNU fileutils package
12912 echo "checking how to get filesystem space usage" 1>&6
12913 echo "configure:12914: checking how to get filesystem space usage" >&5
12914 space=no
12916 # Test for statvfs64.
12917 if test $space = no; then
12918 # SVR4
12919 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
12920 echo "configure:12921: checking statvfs64 function (SVR4)" >&5
12921 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
12922 echo $ac_n "(cached) $ac_c" 1>&6
12923 else
12924 if test "$cross_compiling" = yes; then
12925 fu_cv_sys_stat_statvfs64=cross
12926 else
12927 cat > conftest.$ac_ext <<EOF
12928 #line 12929 "configure"
12929 #include "confdefs.h"
12931 #if defined(HAVE_UNISTD_H)
12932 #include <unistd.h>
12933 #endif
12934 #include <sys/types.h>
12935 #include <sys/statvfs.h>
12936 main ()
12938 struct statvfs64 fsd;
12939 exit (statvfs64 (".", &fsd));
12942 if { (eval echo configure:12943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12943 then
12944 fu_cv_sys_stat_statvfs64=yes
12945 else
12946 echo "configure: failed program was:" >&5
12947 cat conftest.$ac_ext >&5
12948 rm -fr conftest*
12949 fu_cv_sys_stat_statvfs64=no
12951 rm -fr conftest*
12956 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
12957 if test $fu_cv_sys_stat_statvfs64 = yes; then
12958 space=yes
12959 cat >> confdefs.h <<\EOF
12960 #define STAT_STATVFS64 1
12966 # Perform only the link test since it seems there are no variants of the
12967 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
12968 # because that got a false positive on SCO OSR5. Adding the declaration
12969 # of a `struct statvfs' causes this test to fail (as it should) on such
12970 # systems. That system is reported to work fine with STAT_STATFS4 which
12971 # is what it gets when this test fails.
12972 if test $space = no; then
12973 # SVR4
12974 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
12975 echo "configure:12976: checking statvfs function (SVR4)" >&5
12976 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
12977 echo $ac_n "(cached) $ac_c" 1>&6
12978 else
12979 cat > conftest.$ac_ext <<EOF
12980 #line 12981 "configure"
12981 #include "confdefs.h"
12982 #include <sys/types.h>
12983 #include <sys/statvfs.h>
12984 int main() {
12985 struct statvfs fsd; statvfs (0, &fsd);
12986 ; return 0; }
12988 if { (eval echo configure:12989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12989 rm -rf conftest*
12990 fu_cv_sys_stat_statvfs=yes
12991 else
12992 echo "configure: failed program was:" >&5
12993 cat conftest.$ac_ext >&5
12994 rm -rf conftest*
12995 fu_cv_sys_stat_statvfs=no
12997 rm -f conftest*
13000 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
13001 if test $fu_cv_sys_stat_statvfs = yes; then
13002 space=yes
13003 cat >> confdefs.h <<\EOF
13004 #define STAT_STATVFS 1
13010 if test $space = no; then
13011 # DEC Alpha running OSF/1
13012 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
13013 echo "configure:13014: checking for 3-argument statfs function (DEC OSF/1)" >&5
13014 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
13015 echo $ac_n "(cached) $ac_c" 1>&6
13016 else
13017 if test "$cross_compiling" = yes; then
13018 fu_cv_sys_stat_statfs3_osf1=no
13019 else
13020 cat > conftest.$ac_ext <<EOF
13021 #line 13022 "configure"
13022 #include "confdefs.h"
13024 #include <sys/param.h>
13025 #include <sys/types.h>
13026 #include <sys/mount.h>
13027 main ()
13029 struct statfs fsd;
13030 fsd.f_fsize = 0;
13031 exit (statfs (".", &fsd, sizeof (struct statfs)));
13034 if { (eval echo configure:13035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13035 then
13036 fu_cv_sys_stat_statfs3_osf1=yes
13037 else
13038 echo "configure: failed program was:" >&5
13039 cat conftest.$ac_ext >&5
13040 rm -fr conftest*
13041 fu_cv_sys_stat_statfs3_osf1=no
13043 rm -fr conftest*
13048 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
13049 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
13050 space=yes
13051 cat >> confdefs.h <<\EOF
13052 #define STAT_STATFS3_OSF1 1
13058 if test $space = no; then
13059 # AIX
13060 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
13061 echo "configure:13062: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
13062 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
13063 echo $ac_n "(cached) $ac_c" 1>&6
13064 else
13065 if test "$cross_compiling" = yes; then
13066 fu_cv_sys_stat_statfs2_bsize=no
13067 else
13068 cat > conftest.$ac_ext <<EOF
13069 #line 13070 "configure"
13070 #include "confdefs.h"
13072 #ifdef HAVE_SYS_PARAM_H
13073 #include <sys/param.h>
13074 #endif
13075 #ifdef HAVE_SYS_MOUNT_H
13076 #include <sys/mount.h>
13077 #endif
13078 #ifdef HAVE_SYS_VFS_H
13079 #include <sys/vfs.h>
13080 #endif
13081 main ()
13083 struct statfs fsd;
13084 fsd.f_bsize = 0;
13085 exit (statfs (".", &fsd));
13088 if { (eval echo configure:13089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13089 then
13090 fu_cv_sys_stat_statfs2_bsize=yes
13091 else
13092 echo "configure: failed program was:" >&5
13093 cat conftest.$ac_ext >&5
13094 rm -fr conftest*
13095 fu_cv_sys_stat_statfs2_bsize=no
13097 rm -fr conftest*
13102 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
13103 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
13104 space=yes
13105 cat >> confdefs.h <<\EOF
13106 #define STAT_STATFS2_BSIZE 1
13112 if test $space = no; then
13113 # SVR3
13114 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
13115 echo "configure:13116: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
13116 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
13117 echo $ac_n "(cached) $ac_c" 1>&6
13118 else
13119 if test "$cross_compiling" = yes; then
13120 fu_cv_sys_stat_statfs4=no
13121 else
13122 cat > conftest.$ac_ext <<EOF
13123 #line 13124 "configure"
13124 #include "confdefs.h"
13125 #include <sys/types.h>
13126 #include <sys/statfs.h>
13127 main ()
13129 struct statfs fsd;
13130 exit (statfs (".", &fsd, sizeof fsd, 0));
13133 if { (eval echo configure:13134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13134 then
13135 fu_cv_sys_stat_statfs4=yes
13136 else
13137 echo "configure: failed program was:" >&5
13138 cat conftest.$ac_ext >&5
13139 rm -fr conftest*
13140 fu_cv_sys_stat_statfs4=no
13142 rm -fr conftest*
13147 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
13148 if test $fu_cv_sys_stat_statfs4 = yes; then
13149 space=yes
13150 cat >> confdefs.h <<\EOF
13151 #define STAT_STATFS4 1
13157 if test $space = no; then
13158 # 4.4BSD and NetBSD
13159 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
13160 echo "configure:13161: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
13161 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
13162 echo $ac_n "(cached) $ac_c" 1>&6
13163 else
13164 if test "$cross_compiling" = yes; then
13165 fu_cv_sys_stat_statfs2_fsize=no
13166 else
13167 cat > conftest.$ac_ext <<EOF
13168 #line 13169 "configure"
13169 #include "confdefs.h"
13170 #include <sys/types.h>
13171 #ifdef HAVE_SYS_PARAM_H
13172 #include <sys/param.h>
13173 #endif
13174 #ifdef HAVE_SYS_MOUNT_H
13175 #include <sys/mount.h>
13176 #endif
13177 main ()
13179 struct statfs fsd;
13180 fsd.f_fsize = 0;
13181 exit (statfs (".", &fsd));
13184 if { (eval echo configure:13185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13185 then
13186 fu_cv_sys_stat_statfs2_fsize=yes
13187 else
13188 echo "configure: failed program was:" >&5
13189 cat conftest.$ac_ext >&5
13190 rm -fr conftest*
13191 fu_cv_sys_stat_statfs2_fsize=no
13193 rm -fr conftest*
13198 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
13199 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
13200 space=yes
13201 cat >> confdefs.h <<\EOF
13202 #define STAT_STATFS2_FSIZE 1
13208 if test $space = no; then
13209 # Ultrix
13210 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
13211 echo "configure:13212: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
13212 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
13213 echo $ac_n "(cached) $ac_c" 1>&6
13214 else
13215 if test "$cross_compiling" = yes; then
13216 fu_cv_sys_stat_fs_data=no
13217 else
13218 cat > conftest.$ac_ext <<EOF
13219 #line 13220 "configure"
13220 #include "confdefs.h"
13221 #include <sys/types.h>
13222 #ifdef HAVE_SYS_PARAM_H
13223 #include <sys/param.h>
13224 #endif
13225 #ifdef HAVE_SYS_MOUNT_H
13226 #include <sys/mount.h>
13227 #endif
13228 #ifdef HAVE_SYS_FS_TYPES_H
13229 #include <sys/fs_types.h>
13230 #endif
13231 main ()
13233 struct fs_data fsd;
13234 /* Ultrix's statfs returns 1 for success,
13235 0 for not mounted, -1 for failure. */
13236 exit (statfs (".", &fsd) != 1);
13239 if { (eval echo configure:13240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13240 then
13241 fu_cv_sys_stat_fs_data=yes
13242 else
13243 echo "configure: failed program was:" >&5
13244 cat conftest.$ac_ext >&5
13245 rm -fr conftest*
13246 fu_cv_sys_stat_fs_data=no
13248 rm -fr conftest*
13253 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
13254 if test $fu_cv_sys_stat_fs_data = yes; then
13255 space=yes
13256 cat >> confdefs.h <<\EOF
13257 #define STAT_STATFS2_FS_DATA 1
13264 # As a gating factor for large file support, in order to
13265 # use <4GB files we must have the following minimal support
13266 # available.
13267 # long long, and a 64 bit off_t or off64_t.
13268 # If we don't have all of these then disable large
13269 # file support.
13271 echo $ac_n "checking if large file support can be enabled""... $ac_c" 1>&6
13272 echo "configure:13273: checking if large file support can be enabled" >&5
13273 cat > conftest.$ac_ext <<EOF
13274 #line 13275 "configure"
13275 #include "confdefs.h"
13277 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
13278 #include <sys/types.h>
13279 #else
13280 __COMPILE_ERROR_
13281 #endif
13283 int main() {
13284 int i
13285 ; return 0; }
13287 if { (eval echo configure:13288: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13288 rm -rf conftest*
13289 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=yes
13290 else
13291 echo "configure: failed program was:" >&5
13292 cat conftest.$ac_ext >&5
13293 rm -rf conftest*
13294 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=no
13296 rm -f conftest*
13297 if test x"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x"yes"; then
13298 echo "$ac_t""yes" 1>&6
13299 cat >> confdefs.h <<\EOF
13300 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
13303 else
13304 echo "$ac_t""no" 1>&6
13307 # Check whether --with-spinlocks or --without-spinlocks was given.
13308 if test "${with_spinlocks+set}" = set; then
13309 withval="$with_spinlocks"
13313 if test "x$with_spinlocks" = "xyes"; then
13314 cat >> confdefs.h <<\EOF
13315 #define USE_SPINLOCKS 1
13319 case "$host_cpu" in
13320 sparc)
13321 cat >> confdefs.h <<\EOF
13322 #define SPARC_SPINLOCKS 1
13327 i386|i486|i586|i686)
13328 cat >> confdefs.h <<\EOF
13329 #define INTEL_SPINLOCKS 1
13334 mips)
13335 cat >> confdefs.h <<\EOF
13336 #define MIPS_SPINLOCKS 1
13341 powerpc)
13342 cat >> confdefs.h <<\EOF
13343 #define POWERPC_SPINLOCKS 1
13347 esac
13350 #################################################
13351 # check for ACL support
13353 echo $ac_n "checking whether to support ACLs""... $ac_c" 1>&6
13354 echo "configure:13355: checking whether to support ACLs" >&5
13355 # Check whether --with-acl-support or --without-acl-support was given.
13356 if test "${with_acl_support+set}" = set; then
13357 withval="$with_acl_support"
13358 case "$withval" in
13359 yes)
13361 case "$host_os" in
13362 *sysv5*)
13363 echo "$ac_t""Using UnixWare ACLs" 1>&6
13364 cat >> confdefs.h <<\EOF
13365 #define HAVE_UNIXWARE_ACLS 1
13369 *solaris*)
13370 echo "$ac_t""Using solaris ACLs" 1>&6
13371 cat >> confdefs.h <<\EOF
13372 #define HAVE_SOLARIS_ACLS 1
13376 *hpux*)
13377 echo "$ac_t""Using HPUX ACLs" 1>&6
13378 cat >> confdefs.h <<\EOF
13379 #define HAVE_HPUX_ACLS 1
13383 *irix*)
13384 echo "$ac_t""Using IRIX ACLs" 1>&6
13385 cat >> confdefs.h <<\EOF
13386 #define HAVE_IRIX_ACLS 1
13390 *aix*)
13391 echo "$ac_t""Using AIX ACLs" 1>&6
13392 cat >> confdefs.h <<\EOF
13393 #define HAVE_AIX_ACLS 1
13397 *osf*)
13398 echo "$ac_t""Using Tru64 ACLs" 1>&6
13399 cat >> confdefs.h <<\EOF
13400 #define HAVE_TRU64_ACLS 1
13403 LIBS="$LIBS -lpacl"
13406 echo $ac_n "checking for acl_get_file in -lacl""... $ac_c" 1>&6
13407 echo "configure:13408: checking for acl_get_file in -lacl" >&5
13408 ac_lib_var=`echo acl'_'acl_get_file | sed 'y%./+-%__p_%'`
13409 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13410 echo $ac_n "(cached) $ac_c" 1>&6
13411 else
13412 ac_save_LIBS="$LIBS"
13413 LIBS="-lacl $LIBS"
13414 cat > conftest.$ac_ext <<EOF
13415 #line 13416 "configure"
13416 #include "confdefs.h"
13417 /* Override any gcc2 internal prototype to avoid an error. */
13418 /* We use char because int might match the return type of a gcc2
13419 builtin and then its argument prototype would still apply. */
13420 char acl_get_file();
13422 int main() {
13423 acl_get_file()
13424 ; return 0; }
13426 if { (eval echo configure:13427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13427 rm -rf conftest*
13428 eval "ac_cv_lib_$ac_lib_var=yes"
13429 else
13430 echo "configure: failed program was:" >&5
13431 cat conftest.$ac_ext >&5
13432 rm -rf conftest*
13433 eval "ac_cv_lib_$ac_lib_var=no"
13435 rm -f conftest*
13436 LIBS="$ac_save_LIBS"
13439 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13440 echo "$ac_t""yes" 1>&6
13441 ac_tr_lib=HAVE_LIB`echo acl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
13442 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
13443 cat >> confdefs.h <<EOF
13444 #define $ac_tr_lib 1
13447 LIBS="-lacl $LIBS"
13449 else
13450 echo "$ac_t""no" 1>&6
13453 echo $ac_n "checking for ACL support""... $ac_c" 1>&6
13454 echo "configure:13455: checking for ACL support" >&5
13455 if eval "test \"`echo '$''{'samba_cv_HAVE_POSIX_ACLS'+set}'`\" = set"; then
13456 echo $ac_n "(cached) $ac_c" 1>&6
13457 else
13459 cat > conftest.$ac_ext <<EOF
13460 #line 13461 "configure"
13461 #include "confdefs.h"
13462 #include <sys/types.h>
13463 #include <sys/acl.h>
13464 int main() {
13465 acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
13466 ; return 0; }
13468 if { (eval echo configure:13469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13469 rm -rf conftest*
13470 samba_cv_HAVE_POSIX_ACLS=yes
13471 else
13472 echo "configure: failed program was:" >&5
13473 cat conftest.$ac_ext >&5
13474 rm -rf conftest*
13475 samba_cv_HAVE_POSIX_ACLS=no
13477 rm -f conftest*
13480 echo "$ac_t""$samba_cv_HAVE_POSIX_ACLS" 1>&6
13481 if test x"$samba_cv_HAVE_POSIX_ACLS" = x"yes"; then
13482 echo "$ac_t""Using posix ACLs" 1>&6
13483 cat >> confdefs.h <<\EOF
13484 #define HAVE_POSIX_ACLS 1
13487 echo $ac_n "checking for acl_get_perm_np""... $ac_c" 1>&6
13488 echo "configure:13489: checking for acl_get_perm_np" >&5
13489 if eval "test \"`echo '$''{'samba_cv_HAVE_ACL_GET_PERM_NP'+set}'`\" = set"; then
13490 echo $ac_n "(cached) $ac_c" 1>&6
13491 else
13493 cat > conftest.$ac_ext <<EOF
13494 #line 13495 "configure"
13495 #include "confdefs.h"
13496 #include <sys/types.h>
13497 #include <sys/acl.h>
13498 int main() {
13499 acl_permset_t permset_d; acl_perm_t perm; return acl_get_perm_np( permset_d, perm);
13500 ; return 0; }
13502 if { (eval echo configure:13503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13503 rm -rf conftest*
13504 samba_cv_HAVE_ACL_GET_PERM_NP=yes
13505 else
13506 echo "configure: failed program was:" >&5
13507 cat conftest.$ac_ext >&5
13508 rm -rf conftest*
13509 samba_cv_HAVE_ACL_GET_PERM_NP=no
13511 rm -f conftest*
13514 echo "$ac_t""$samba_cv_HAVE_ACL_GET_PERM_NP" 1>&6
13515 if test x"$samba_cv_HAVE_ACL_GET_PERM_NP" = x"yes"; then
13516 cat >> confdefs.h <<\EOF
13517 #define HAVE_ACL_GET_PERM_NP 1
13523 esac
13526 echo "$ac_t""no" 1>&6
13527 cat >> confdefs.h <<\EOF
13528 #define HAVE_NO_ACLS 1
13532 esac
13533 else
13534 cat >> confdefs.h <<\EOF
13535 #define HAVE_NO_ACLS 1
13538 echo "$ac_t""no" 1>&6
13543 #################################################
13544 # check for the historical SAMBA installation
13546 if test "x$prefix" = xNONE -a "$sbindir" = "\${exec_prefix}/sbin"; then
13547 # Put all binaries under the /usr/local/samba/bin directory.
13548 sbindir="$bindir"
13551 #################################################
13552 # check for sendfile support
13554 echo $ac_n "checking whether to check for support sendfile""... $ac_c" 1>&6
13555 echo "configure:13556: checking whether to check for support sendfile" >&5
13556 # Check whether --with-sendfile-support or --without-sendfile-support was given.
13557 if test "${with_sendfile_support+set}" = set; then
13558 withval="$with_sendfile_support"
13559 case "$withval" in
13560 yes)
13562 echo "$ac_t""yes" 1>&6;
13564 case "$host_os" in
13565 *linux*)
13566 echo $ac_n "checking for linux sendfile64 support""... $ac_c" 1>&6
13567 echo "configure:13568: checking for linux sendfile64 support" >&5
13568 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILE64'+set}'`\" = set"; then
13569 echo $ac_n "(cached) $ac_c" 1>&6
13570 else
13572 cat > conftest.$ac_ext <<EOF
13573 #line 13574 "configure"
13574 #include "confdefs.h"
13575 #include <sys/sendfile.h>
13576 int main() {
13578 int tofd, fromfd;
13579 off64_t offset;
13580 size_t total;
13581 ssize_t nwritten = sendfile64(tofd, fromfd, &offset, total);
13583 ; return 0; }
13585 if { (eval echo configure:13586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13586 rm -rf conftest*
13587 samba_cv_HAVE_SENDFILE64=yes
13588 else
13589 echo "configure: failed program was:" >&5
13590 cat conftest.$ac_ext >&5
13591 rm -rf conftest*
13592 samba_cv_HAVE_SENDFILE64=no
13594 rm -f conftest*
13597 echo "$ac_t""$samba_cv_HAVE_SENDFILE64" 1>&6
13599 echo $ac_n "checking for linux sendfile support""... $ac_c" 1>&6
13600 echo "configure:13601: checking for linux sendfile support" >&5
13601 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILE'+set}'`\" = set"; then
13602 echo $ac_n "(cached) $ac_c" 1>&6
13603 else
13605 cat > conftest.$ac_ext <<EOF
13606 #line 13607 "configure"
13607 #include "confdefs.h"
13608 #include <sys/sendfile.h>
13609 int main() {
13611 int tofd, fromfd;
13612 off_t offset;
13613 size_t total;
13614 ssize_t nwritten = sendfile(tofd, fromfd, &offset, total);
13616 ; return 0; }
13618 if { (eval echo configure:13619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13619 rm -rf conftest*
13620 samba_cv_HAVE_SENDFILE=yes
13621 else
13622 echo "configure: failed program was:" >&5
13623 cat conftest.$ac_ext >&5
13624 rm -rf conftest*
13625 samba_cv_HAVE_SENDFILE=no
13627 rm -f conftest*
13630 echo "$ac_t""$samba_cv_HAVE_SENDFILE" 1>&6
13632 # Try and cope with broken Linux sendfile....
13633 echo $ac_n "checking for broken linux sendfile support""... $ac_c" 1>&6
13634 echo "configure:13635: checking for broken linux sendfile support" >&5
13635 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_LINUX_SENDFILE'+set}'`\" = set"; then
13636 echo $ac_n "(cached) $ac_c" 1>&6
13637 else
13639 cat > conftest.$ac_ext <<EOF
13640 #line 13641 "configure"
13641 #include "confdefs.h"
13643 #if defined(_FILE_OFFSET_BITS) && (_FILE_OFFSET_BITS == 64)
13644 #undef _FILE_OFFSET_BITS
13645 #endif
13646 #include <sys/sendfile.h>
13647 int main() {
13649 int tofd, fromfd;
13650 off_t offset;
13651 size_t total;
13652 ssize_t nwritten = sendfile(tofd, fromfd, &offset, total);
13654 ; return 0; }
13656 if { (eval echo configure:13657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13657 rm -rf conftest*
13658 samba_cv_HAVE_BROKEN_LINUX_SENDFILE=yes
13659 else
13660 echo "configure: failed program was:" >&5
13661 cat conftest.$ac_ext >&5
13662 rm -rf conftest*
13663 samba_cv_HAVE_BROKEN_LINUX_SENDFILE=no
13665 rm -f conftest*
13668 echo "$ac_t""$samba_cv_HAVE_BROKEN_LINUX_SENDFILE" 1>&6
13670 if test x"$samba_cv_HAVE_SENDFILE64" = x"yes"; then
13671 cat >> confdefs.h <<\EOF
13672 #define HAVE_SENDFILE64 1
13675 cat >> confdefs.h <<\EOF
13676 #define LINUX_SENDFILE_API 1
13679 cat >> confdefs.h <<\EOF
13680 #define WITH_SENDFILE 1
13683 elif test x"$samba_cv_HAVE_SENDFILE" = x"yes"; then
13684 cat >> confdefs.h <<\EOF
13685 #define HAVE_SENDFILE 1
13688 cat >> confdefs.h <<\EOF
13689 #define LINUX_SENDFILE_API 1
13692 cat >> confdefs.h <<\EOF
13693 #define WITH_SENDFILE 1
13696 elif test x"$samba_cv_HAVE_BROKEN_LINUX_SENDFILE" = x"yes"; then
13697 cat >> confdefs.h <<\EOF
13698 #define LINUX_BROKEN_SENDFILE_API 1
13701 cat >> confdefs.h <<\EOF
13702 #define WITH_SENDFILE 1
13705 else
13706 echo "$ac_t""no" 1>&6;
13710 *freebsd*)
13711 echo $ac_n "checking for freebsd sendfile support""... $ac_c" 1>&6
13712 echo "configure:13713: checking for freebsd sendfile support" >&5
13713 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILE'+set}'`\" = set"; then
13714 echo $ac_n "(cached) $ac_c" 1>&6
13715 else
13717 cat > conftest.$ac_ext <<EOF
13718 #line 13719 "configure"
13719 #include "confdefs.h"
13721 #include <sys/types.h>
13722 #include <sys/socket.h>
13723 #include <sys/uio.h>
13724 int main() {
13726 #define NULL (void *)0
13727 int fromfd, tofd, ret, total;
13728 off_t offset, nwritten;
13729 struct sf_hdtr {
13730 struct iovec *headers;
13731 int hdr_cnt;
13732 struct iovec *trailers;
13733 int trl_cnt;
13734 } hdr;
13735 struct iovec hdtrl;
13736 hdr.headers = &hdtrl;
13737 hdr.hdr_cnt = 1;
13738 hdr.trailers = NULL;
13739 hdr.trl_cnt = 0;
13740 hdtrl.iov_base = NULL;
13741 hdtrl.iov_len = 0;
13742 ret = sendfile(fromfd, tofd, offset, total, &hdr, &nwritten, 0);
13744 ; return 0; }
13746 if { (eval echo configure:13747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13747 rm -rf conftest*
13748 samba_cv_HAVE_SENDFILE=yes
13749 else
13750 echo "configure: failed program was:" >&5
13751 cat conftest.$ac_ext >&5
13752 rm -rf conftest*
13753 samba_cv_HAVE_SENDFILE=no
13755 rm -f conftest*
13758 echo "$ac_t""$samba_cv_HAVE_SENDFILE" 1>&6
13760 if test x"$samba_cv_HAVE_SENDFILE" = x"yes"; then
13761 cat >> confdefs.h <<\EOF
13762 #define HAVE_SENDFILE 1
13765 cat >> confdefs.h <<\EOF
13766 #define FREEBSD_SENDFILE_API 1
13769 cat >> confdefs.h <<\EOF
13770 #define WITH_SENDFILE 1
13773 else
13774 echo "$ac_t""no" 1>&6;
13778 *hpux*)
13779 echo $ac_n "checking for hpux sendfile64 support""... $ac_c" 1>&6
13780 echo "configure:13781: checking for hpux sendfile64 support" >&5
13781 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILE64'+set}'`\" = set"; then
13782 echo $ac_n "(cached) $ac_c" 1>&6
13783 else
13785 cat > conftest.$ac_ext <<EOF
13786 #line 13787 "configure"
13787 #include "confdefs.h"
13789 #include <sys/socket.h>
13790 #include <sys/uio.h>
13791 int main() {
13793 int fromfd, tofd;
13794 size_t total=0;
13795 struct iovec hdtrl[2];
13796 ssize_t nwritten;
13797 off64_t offset;
13799 hdtrl[0].iov_base = 0;
13800 hdtrl[0].iov_len = 0;
13802 nwritten = sendfile64(tofd, fromfd, offset, total, &hdtrl[0], 0);
13804 ; return 0; }
13806 if { (eval echo configure:13807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13807 rm -rf conftest*
13808 samba_cv_HAVE_SENDFILE64=yes
13809 else
13810 echo "configure: failed program was:" >&5
13811 cat conftest.$ac_ext >&5
13812 rm -rf conftest*
13813 samba_cv_HAVE_SENDFILE64=no
13815 rm -f conftest*
13818 echo "$ac_t""$samba_cv_HAVE_SENDFILE64" 1>&6
13819 if test x"$samba_cv_HAVE_SENDFILE64" = x"yes"; then
13820 cat >> confdefs.h <<\EOF
13821 #define HAVE_SENDFILE64 1
13824 cat >> confdefs.h <<\EOF
13825 #define HPUX_SENDFILE_API 1
13828 cat >> confdefs.h <<\EOF
13829 #define WITH_SENDFILE 1
13832 else
13833 echo "$ac_t""no" 1>&6;
13836 echo $ac_n "checking for hpux sendfile support""... $ac_c" 1>&6
13837 echo "configure:13838: checking for hpux sendfile support" >&5
13838 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILE'+set}'`\" = set"; then
13839 echo $ac_n "(cached) $ac_c" 1>&6
13840 else
13842 cat > conftest.$ac_ext <<EOF
13843 #line 13844 "configure"
13844 #include "confdefs.h"
13846 #include <sys/socket.h>
13847 #include <sys/uio.h>
13848 int main() {
13850 int fromfd, tofd;
13851 size_t total=0;
13852 struct iovec hdtrl[2];
13853 ssize_t nwritten;
13854 off_t offset;
13856 hdtrl[0].iov_base = 0;
13857 hdtrl[0].iov_len = 0;
13859 nwritten = sendfile(tofd, fromfd, offset, total, &hdtrl[0], 0);
13861 ; return 0; }
13863 if { (eval echo configure:13864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13864 rm -rf conftest*
13865 samba_cv_HAVE_SENDFILE=yes
13866 else
13867 echo "configure: failed program was:" >&5
13868 cat conftest.$ac_ext >&5
13869 rm -rf conftest*
13870 samba_cv_HAVE_SENDFILE=no
13872 rm -f conftest*
13875 echo "$ac_t""$samba_cv_HAVE_SENDFILE" 1>&6
13876 if test x"$samba_cv_HAVE_SENDFILE" = x"yes"; then
13877 cat >> confdefs.h <<\EOF
13878 #define HAVE_SENDFILE 1
13881 cat >> confdefs.h <<\EOF
13882 #define HPUX_SENDFILE_API 1
13885 cat >> confdefs.h <<\EOF
13886 #define WITH_SENDFILE 1
13889 else
13890 echo "$ac_t""no" 1>&6;
13894 *solaris*)
13895 LIBS="$LIBS -lsendfile"
13896 echo $ac_n "checking for solaris sendfilev64 support""... $ac_c" 1>&6
13897 echo "configure:13898: checking for solaris sendfilev64 support" >&5
13898 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILEV64'+set}'`\" = set"; then
13899 echo $ac_n "(cached) $ac_c" 1>&6
13900 else
13902 cat > conftest.$ac_ext <<EOF
13903 #line 13904 "configure"
13904 #include "confdefs.h"
13906 #include <sys/sendfile.h>
13907 int main() {
13909 int sfvcnt;
13910 size_t xferred;
13911 struct sendfilevec vec[2];
13912 ssize_t nwritten;
13913 int tofd;
13915 sfvcnt = 2;
13917 vec[0].sfv_fd = SFV_FD_SELF;
13918 vec[0].sfv_flag = 0;
13919 vec[0].sfv_off = 0;
13920 vec[0].sfv_len = 0;
13922 vec[1].sfv_fd = 0;
13923 vec[1].sfv_flag = 0;
13924 vec[1].sfv_off = 0;
13925 vec[1].sfv_len = 0;
13926 nwritten = sendfilev64(tofd, vec, sfvcnt, &xferred);
13928 ; return 0; }
13930 if { (eval echo configure:13931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13931 rm -rf conftest*
13932 samba_cv_HAVE_SENDFILEV64=yes
13933 else
13934 echo "configure: failed program was:" >&5
13935 cat conftest.$ac_ext >&5
13936 rm -rf conftest*
13937 samba_cv_HAVE_SENDFILEV64=no
13939 rm -f conftest*
13942 echo "$ac_t""$samba_cv_HAVE_SENDFILEV64" 1>&6
13944 if test x"$samba_cv_HAVE_SENDFILEV64" = x"yes"; then
13945 cat >> confdefs.h <<\EOF
13946 #define HAVE_SENDFILEV64 1
13949 cat >> confdefs.h <<\EOF
13950 #define SOLARIS_SENDFILE_API 1
13953 cat >> confdefs.h <<\EOF
13954 #define WITH_SENDFILE 1
13957 else
13958 echo "$ac_t""no" 1>&6;
13961 echo $ac_n "checking for solaris sendfilev support""... $ac_c" 1>&6
13962 echo "configure:13963: checking for solaris sendfilev support" >&5
13963 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILEV'+set}'`\" = set"; then
13964 echo $ac_n "(cached) $ac_c" 1>&6
13965 else
13967 cat > conftest.$ac_ext <<EOF
13968 #line 13969 "configure"
13969 #include "confdefs.h"
13971 #include <sys/sendfile.h>
13972 int main() {
13974 int sfvcnt;
13975 size_t xferred;
13976 struct sendfilevec vec[2];
13977 ssize_t nwritten;
13978 int tofd;
13980 sfvcnt = 2;
13982 vec[0].sfv_fd = SFV_FD_SELF;
13983 vec[0].sfv_flag = 0;
13984 vec[0].sfv_off = 0;
13985 vec[0].sfv_len = 0;
13987 vec[1].sfv_fd = 0;
13988 vec[1].sfv_flag = 0;
13989 vec[1].sfv_off = 0;
13990 vec[1].sfv_len = 0;
13991 nwritten = sendfilev(tofd, vec, sfvcnt, &xferred);
13993 ; return 0; }
13995 if { (eval echo configure:13996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13996 rm -rf conftest*
13997 samba_cv_HAVE_SENDFILEV=yes
13998 else
13999 echo "configure: failed program was:" >&5
14000 cat conftest.$ac_ext >&5
14001 rm -rf conftest*
14002 samba_cv_HAVE_SENDFILEV=no
14004 rm -f conftest*
14007 echo "$ac_t""$samba_cv_HAVE_SENDFILEV" 1>&6
14009 if test x"$samba_cv_HAVE_SENDFILEV" = x"yes"; then
14010 cat >> confdefs.h <<\EOF
14011 #define HAVE_SENDFILEV 1
14014 cat >> confdefs.h <<\EOF
14015 #define SOLARIS_SENDFILE_API 1
14018 cat >> confdefs.h <<\EOF
14019 #define WITH_SENDFILE 1
14022 else
14023 echo "$ac_t""no" 1>&6;
14029 esac
14032 echo "$ac_t""no" 1>&6
14034 esac
14035 else
14036 echo "$ac_t""no" 1>&6
14041 #################################################
14042 # Check whether winbind is supported on this platform. If so we need to
14043 # build and install client programs (WINBIND_TARGETS), sbin programs
14044 # (WINBIND_STARGETS) and shared libraries (WINBIND_LTARGETS).
14046 echo $ac_n "checking whether to build winbind""... $ac_c" 1>&6
14047 echo "configure:14048: checking whether to build winbind" >&5
14049 # Initially, the value of $host_os decides whether winbind is supported
14051 case "$host_os" in
14052 *linux*|*irix*)
14053 HAVE_WINBIND=yes
14055 *solaris*)
14056 HAVE_WINBIND=yes
14057 WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_solaris.o"
14058 WINBIND_NSS_EXTRA_LIBS="-lsocket"
14060 *hpux11*)
14061 HAVE_WINBIND=yes
14062 WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_solaris.o"
14064 *aix4*)
14065 HAVE_WINBIND=yes
14068 HAVE_WINBIND=no
14069 winbind_no_reason=", unsupported on $host_os"
14071 esac
14073 # Check the setting of --with-winbindd
14075 # Check whether --with-winbind or --without-winbind was given.
14076 if test "${with_winbind+set}" = set; then
14077 withval="$with_winbind"
14079 case "$withval" in
14080 yes)
14081 HAVE_WINBIND=yes
14084 HAVE_WINBIND=no
14085 winbind_reason=""
14087 esac
14091 # We need unix domain sockets for winbind
14093 if test x"$HAVE_WINBIND" = x"yes"; then
14094 if test x"$samba_cv_unixsocket" = x"no"; then
14095 winbind_no_reason=", no unix domain socket support on $host_os"
14096 HAVE_WINBIND=no
14100 # Display test results
14102 if test x"$HAVE_WINBIND" = x"yes"; then
14104 echo "$ac_t""yes" 1>&6
14106 echo $ac_n "checking whether to enable winbind auth challenge/response code""... $ac_c" 1>&6
14107 echo "configure:14108: checking whether to enable winbind auth challenge/response code" >&5
14108 # Check whether --with-winbind-auth-challenge or --without-winbind-auth-challenge was given.
14109 if test "${with_winbind_auth_challenge+set}" = set; then
14110 withval="$with_winbind_auth_challenge"
14112 case "$withval" in
14113 yes)
14114 cat >> confdefs.h <<\EOF
14115 #define WITH_WINBIND_AUTH_CRAP 1
14118 echo "$ac_t""yes" 1>&6
14121 echo "$ac_t""no" 1>&6
14123 esac
14124 else
14125 echo "$ac_t""no" 1>&6
14130 # Check for FreeBSD problem with getgroups
14132 WINBIND_TARGETS="bin/wbinfo\$(EXEEXT)"
14133 WINBIND_STARGETS="bin/winbindd\$(EXEEXT)"
14134 case "$host_os" in
14135 *irix*)
14136 WINBIND_LTARGETS="nsswitch/libns_winbind.so"
14139 WINBIND_LTARGETS="nsswitch/libnss_winbind.so"
14141 esac
14144 case "$with_pam" in
14145 yes)
14146 WINBIND_PAM_TARGETS="nsswitch/pam_winbind.so"
14148 esac
14150 # Check for Horrible winbindd ldap hack.
14152 echo $ac_n "checking whether to enable winbind ldap hack""... $ac_c" 1>&6
14153 echo "configure:14154: checking whether to enable winbind ldap hack" >&5
14154 # Check whether --with-winbind-ldap-hack or --without-winbind-ldap-hack was given.
14155 if test "${with_winbind_ldap_hack+set}" = set; then
14156 withval="$with_winbind_ldap_hack"
14158 case "$withval" in
14159 yes)
14160 cat >> confdefs.h <<\EOF
14161 #define WITH_HORRIBLE_LDAP_NATIVE_MODE_HACK 1
14164 LIBS="$LIBS -lldap";
14165 echo "$ac_t""yes" 1>&6
14168 echo "$ac_t""no" 1>&6
14170 esac
14171 else
14172 echo "$ac_t""no" 1>&6
14177 else
14178 echo "$ac_t""no$winbind_no_reason" 1>&6
14180 WINBIND_TARGETS=""
14181 WINBIND_STARGETS=""
14182 WINBIND_LTARGETS=""
14183 WINBIND_PAM_TARGETS=""
14187 # Check for FreeBSD problem with getgroups
14188 # It returns EGID too many times in the list of groups
14189 # and causes a security problem
14190 echo $ac_n "checking whether or not getgroups returns EGID too many times""... $ac_c" 1>&6
14191 echo "configure:14192: checking whether or not getgroups returns EGID too many times" >&5
14192 if eval "test \"`echo '$''{'samba_cv_have_getgroups_too_many_egids'+set}'`\" = set"; then
14193 echo $ac_n "(cached) $ac_c" 1>&6
14194 else
14195 if test "$cross_compiling" = yes; then
14196 samba_cv_have_getgroups_too_many_egids=cross
14197 else
14198 cat > conftest.$ac_ext <<EOF
14199 #line 14200 "configure"
14200 #include "confdefs.h"
14202 #include <sys/types.h>
14203 #include <stdio.h>
14205 int main(int argc, char *argv[])
14207 gid_t groups[10];
14208 int n = 10;
14210 n = getgroups(n, &groups);
14211 /* Could actually pass back the number of EGIDs there ... */
14212 exit((n > 1 && groups[0] == getegid() && groups[1] == getegid()) ? 1 : 0);
14215 if { (eval echo configure:14216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14216 then
14217 samba_cv_have_getgroups_too_many_egids=no
14218 else
14219 echo "configure: failed program was:" >&5
14220 cat conftest.$ac_ext >&5
14221 rm -fr conftest*
14222 samba_cv_have_getgroups_too_many_egids=yes
14224 rm -fr conftest*
14229 echo "$ac_t""$samba_cv_have_getgroups_too_many_egids" 1>&6
14230 if test x"$samba_cv_have_getgroups_too_many_egids" = x"yes"; then
14231 cat >> confdefs.h <<\EOF
14232 #define HAVE_GETGROUPS_TOO_MANY_EGIDS 1
14237 # Substitution time!
14246 # Solaris has some extra fields in struct passwd that need to be
14247 # initialised otherwise nscd crashes. Unfortunately autoconf < 2.50
14248 # doesn't have the AC_CHECK_MEMBER macro which would be handy for checking
14249 # this.
14251 #AC_CHECK_MEMBER(struct passwd.pw_comment,
14252 # AC_DEFINE(HAVE_PASSWD_PW_COMMENT, 1, [Defined if struct passwd has pw_comment field]),
14253 # [#include <pwd.h>])
14255 echo $ac_n "checking whether struct passwd has pw_comment""... $ac_c" 1>&6
14256 echo "configure:14257: checking whether struct passwd has pw_comment" >&5
14257 if eval "test \"`echo '$''{'samba_cv_passwd_pw_comment'+set}'`\" = set"; then
14258 echo $ac_n "(cached) $ac_c" 1>&6
14259 else
14261 cat > conftest.$ac_ext <<EOF
14262 #line 14263 "configure"
14263 #include "confdefs.h"
14264 #include <pwd.h>
14265 int main() {
14266 struct passwd p; p.pw_comment;
14267 ; return 0; }
14269 if { (eval echo configure:14270: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14270 rm -rf conftest*
14271 samba_cv_passwd_pw_comment=yes
14272 else
14273 echo "configure: failed program was:" >&5
14274 cat conftest.$ac_ext >&5
14275 rm -rf conftest*
14276 samba_cv_passwd_pw_comment=no
14278 rm -f conftest*
14281 echo "$ac_t""$samba_cv_passwd_pw_comment" 1>&6
14282 if test x"$samba_cv_passwd_pw_comment" = x"yes"; then
14283 cat >> confdefs.h <<\EOF
14284 #define HAVE_PASSWD_PW_COMMENT 1
14289 #AC_CHECK_MEMBER(struct passwd.pw_age,
14290 # AC_DEFINE(HAVE_PASSWD_PW_AGE, 1, [Defined if struct passwd has pw_age field]),
14291 # [#include <pwd.h>])
14293 echo $ac_n "checking whether struct passwd has pw_age""... $ac_c" 1>&6
14294 echo "configure:14295: checking whether struct passwd has pw_age" >&5
14295 if eval "test \"`echo '$''{'samba_cv_passwd_pw_age'+set}'`\" = set"; then
14296 echo $ac_n "(cached) $ac_c" 1>&6
14297 else
14299 cat > conftest.$ac_ext <<EOF
14300 #line 14301 "configure"
14301 #include "confdefs.h"
14302 #include <pwd.h>
14303 int main() {
14304 struct passwd p; p.pw_age;
14305 ; return 0; }
14307 if { (eval echo configure:14308: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14308 rm -rf conftest*
14309 samba_cv_passwd_pw_age=yes
14310 else
14311 echo "configure: failed program was:" >&5
14312 cat conftest.$ac_ext >&5
14313 rm -rf conftest*
14314 samba_cv_passwd_pw_age=no
14316 rm -f conftest*
14319 echo "$ac_t""$samba_cv_passwd_pw_age" 1>&6
14320 if test x"$samba_cv_passwd_pw_age" = x"yes"; then
14321 cat >> confdefs.h <<\EOF
14322 #define HAVE_PASSWD_PW_AGE 1
14327 #################################################
14328 # Check to see if we should use the included popt
14330 # Check whether --with-included-popt or --without-included-popt was given.
14331 if test "${with_included_popt+set}" = set; then
14332 withval="$with_included_popt"
14334 case "$withval" in
14335 yes)
14336 INCLUDED_POPT=yes
14339 INCLUDED_POPT=no
14341 esac
14344 if test x"$INCLUDED_POPT" != x"yes"; then
14345 echo $ac_n "checking for poptGetContext in -lpopt""... $ac_c" 1>&6
14346 echo "configure:14347: checking for poptGetContext in -lpopt" >&5
14347 ac_lib_var=`echo popt'_'poptGetContext | sed 'y%./+-%__p_%'`
14348 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14349 echo $ac_n "(cached) $ac_c" 1>&6
14350 else
14351 ac_save_LIBS="$LIBS"
14352 LIBS="-lpopt $LIBS"
14353 cat > conftest.$ac_ext <<EOF
14354 #line 14355 "configure"
14355 #include "confdefs.h"
14356 /* Override any gcc2 internal prototype to avoid an error. */
14357 /* We use char because int might match the return type of a gcc2
14358 builtin and then its argument prototype would still apply. */
14359 char poptGetContext();
14361 int main() {
14362 poptGetContext()
14363 ; return 0; }
14365 if { (eval echo configure:14366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14366 rm -rf conftest*
14367 eval "ac_cv_lib_$ac_lib_var=yes"
14368 else
14369 echo "configure: failed program was:" >&5
14370 cat conftest.$ac_ext >&5
14371 rm -rf conftest*
14372 eval "ac_cv_lib_$ac_lib_var=no"
14374 rm -f conftest*
14375 LIBS="$ac_save_LIBS"
14378 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14379 echo "$ac_t""yes" 1>&6
14380 INCLUDED_POPT=no
14381 else
14382 echo "$ac_t""no" 1>&6
14383 INCLUDED_POPT=yes
14388 echo $ac_n "checking whether to use included popt""... $ac_c" 1>&6
14389 echo "configure:14390: checking whether to use included popt" >&5
14390 if test x"$INCLUDED_POPT" = x"yes"; then
14391 echo "$ac_t""$srcdir/popt" 1>&6
14392 BUILD_POPT='$(POPT_OBJS)'
14393 FLAGS1="-I$srcdir/popt"
14394 else
14395 echo "$ac_t""no" 1>&6
14396 LIBS="$LIBS -lpopt"
14401 #################################################
14402 # final configure stuff
14403 echo $ac_n "checking configure summary""... $ac_c" 1>&6
14404 echo "configure:14405: checking configure summary" >&5
14405 if test "$cross_compiling" = yes; then
14406 echo "configure: warning: cannot run when cross-compiling" 1>&2
14407 else
14408 cat > conftest.$ac_ext <<EOF
14409 #line 14410 "configure"
14410 #include "confdefs.h"
14411 #include "${srcdir-.}/tests/summary.c"
14413 if { (eval echo configure:14414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14414 then
14415 echo "$ac_t""yes" 1>&6
14416 else
14417 echo "configure: failed program was:" >&5
14418 cat conftest.$ac_ext >&5
14419 rm -fr conftest*
14420 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }; exit 1;
14422 rm -fr conftest*
14426 builddir=`pwd`
14429 trap '' 1 2 15
14430 cat > confcache <<\EOF
14431 # This file is a shell script that caches the results of configure
14432 # tests run on this system so they can be shared between configure
14433 # scripts and configure runs. It is not useful on other systems.
14434 # If it contains results you don't want to keep, you may remove or edit it.
14436 # By default, configure uses ./config.cache as the cache file,
14437 # creating it if it does not exist already. You can give configure
14438 # the --cache-file=FILE option to use a different cache file; that is
14439 # what configure does when it calls configure scripts in
14440 # subdirectories, so they share the cache.
14441 # Giving --cache-file=/dev/null disables caching, for debugging configure.
14442 # config.status only pays attention to the cache file if you give it the
14443 # --recheck option to rerun configure.
14446 # The following way of writing the cache mishandles newlines in values,
14447 # but we know of no workaround that is simple, portable, and efficient.
14448 # So, don't put newlines in cache variables' values.
14449 # Ultrix sh set writes to stderr and can't be redirected directly,
14450 # and sets the high bit in the cache file unless we assign to the vars.
14451 (set) 2>&1 |
14452 case `(ac_space=' '; set | grep ac_space) 2>&1` in
14453 *ac_space=\ *)
14454 # `set' does not quote correctly, so add quotes (double-quote substitution
14455 # turns \\\\ into \\, and sed turns \\ into \).
14456 sed -n \
14457 -e "s/'/'\\\\''/g" \
14458 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
14461 # `set' quotes correctly as required by POSIX, so do not add quotes.
14462 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
14464 esac >> confcache
14465 if cmp -s $cache_file confcache; then
14467 else
14468 if test -w $cache_file; then
14469 echo "updating cache $cache_file"
14470 cat confcache > $cache_file
14471 else
14472 echo "not updating unwritable cache $cache_file"
14475 rm -f confcache
14477 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
14479 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14480 # Let make expand exec_prefix.
14481 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14483 # Any assignment to VPATH causes Sun make to only execute
14484 # the first set of double-colon rules, so remove it if not needed.
14485 # If there is a colon in the path, we need to keep it.
14486 if test "x$srcdir" = x.; then
14487 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
14490 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
14492 DEFS=-DHAVE_CONFIG_H
14494 # Without the "./", some shells look in PATH for config.status.
14495 : ${CONFIG_STATUS=./config.status}
14497 echo creating $CONFIG_STATUS
14498 rm -f $CONFIG_STATUS
14499 cat > $CONFIG_STATUS <<EOF
14500 #! /bin/sh
14501 # Generated automatically by configure.
14502 # Run this file to recreate the current configuration.
14503 # This directory was configured as follows,
14504 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14506 # $0 $ac_configure_args
14508 # Compiler output produced by configure, useful for debugging
14509 # configure, is in ./config.log if it exists.
14511 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
14512 for ac_option
14514 case "\$ac_option" in
14515 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14516 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
14517 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
14518 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
14519 echo "$CONFIG_STATUS generated by autoconf version 2.13"
14520 exit 0 ;;
14521 -help | --help | --hel | --he | --h)
14522 echo "\$ac_cs_usage"; exit 0 ;;
14523 *) echo "\$ac_cs_usage"; exit 1 ;;
14524 esac
14525 done
14527 ac_given_srcdir=$srcdir
14528 ac_given_INSTALL="$INSTALL"
14530 trap 'rm -fr `echo "include/stamp-h Makefile script/findsmb include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
14532 cat >> $CONFIG_STATUS <<EOF
14534 # Protect against being on the right side of a sed subst in config.status.
14535 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
14536 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
14537 $ac_vpsub
14538 $extrasub
14539 s%@SHELL@%$SHELL%g
14540 s%@CFLAGS@%$CFLAGS%g
14541 s%@CPPFLAGS@%$CPPFLAGS%g
14542 s%@CXXFLAGS@%$CXXFLAGS%g
14543 s%@FFLAGS@%$FFLAGS%g
14544 s%@DEFS@%$DEFS%g
14545 s%@LDFLAGS@%$LDFLAGS%g
14546 s%@LIBS@%$LIBS%g
14547 s%@exec_prefix@%$exec_prefix%g
14548 s%@prefix@%$prefix%g
14549 s%@program_transform_name@%$program_transform_name%g
14550 s%@bindir@%$bindir%g
14551 s%@sbindir@%$sbindir%g
14552 s%@libexecdir@%$libexecdir%g
14553 s%@datadir@%$datadir%g
14554 s%@sysconfdir@%$sysconfdir%g
14555 s%@sharedstatedir@%$sharedstatedir%g
14556 s%@localstatedir@%$localstatedir%g
14557 s%@libdir@%$libdir%g
14558 s%@includedir@%$includedir%g
14559 s%@oldincludedir@%$oldincludedir%g
14560 s%@infodir@%$infodir%g
14561 s%@mandir@%$mandir%g
14562 s%@codepagedir@%$codepagedir%g
14563 s%@configdir@%$configdir%g
14564 s%@lockdir@%$lockdir%g
14565 s%@piddir@%$piddir%g
14566 s%@logfilebase@%$logfilebase%g
14567 s%@privatedir@%$privatedir%g
14568 s%@swatdir@%$swatdir%g
14569 s%@RUNPROG@%$RUNPROG%g
14570 s%@MPROGS@%$MPROGS%g
14571 s%@LDSHFLAGS@%$LDSHFLAGS%g
14572 s%@SONAMEFLAG@%$SONAMEFLAG%g
14573 s%@SHLD@%$SHLD%g
14574 s%@HOST_OS@%$HOST_OS%g
14575 s%@PAM_MOD@%$PAM_MOD%g
14576 s%@PDBEDIT@%$PDBEDIT%g
14577 s%@WRAP@%$WRAP%g
14578 s%@WRAP32@%$WRAP32%g
14579 s%@WRAPPROG@%$WRAPPROG%g
14580 s%@PICFLAG@%$PICFLAG%g
14581 s%@PICSUFFIX@%$PICSUFFIX%g
14582 s%@SHLIBEXT@%$SHLIBEXT%g
14583 s%@BLDSHARED@%$BLDSHARED%g
14584 s%@INSTALLCLIENTCMD_SH@%$INSTALLCLIENTCMD_SH%g
14585 s%@INSTALLCLIENTCMD_A@%$INSTALLCLIENTCMD_A%g
14586 s%@LIBSMBCLIENT_SHARED@%$LIBSMBCLIENT_SHARED%g
14587 s%@LIBSMBCLIENT@%$LIBSMBCLIENT%g
14588 s%@CC@%$CC%g
14589 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
14590 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
14591 s%@INSTALL_DATA@%$INSTALL_DATA%g
14592 s%@AWK@%$AWK%g
14593 s%@EXEEXT@%$EXEEXT%g
14594 s%@passwd_program@%$passwd_program%g
14595 s%@BROKEN_CC@%$BROKEN_CC%g
14596 s%@host@%$host%g
14597 s%@host_alias@%$host_alias%g
14598 s%@host_cpu@%$host_cpu%g
14599 s%@host_vendor@%$host_vendor%g
14600 s%@host_os@%$host_os%g
14601 s%@target@%$target%g
14602 s%@target_alias@%$target_alias%g
14603 s%@target_cpu@%$target_cpu%g
14604 s%@target_vendor@%$target_vendor%g
14605 s%@target_os@%$target_os%g
14606 s%@build@%$build%g
14607 s%@build_alias@%$build_alias%g
14608 s%@build_cpu@%$build_cpu%g
14609 s%@build_vendor@%$build_vendor%g
14610 s%@build_os@%$build_os%g
14611 s%@CPP@%$CPP%g
14612 s%@CUPS_CONFIG@%$CUPS_CONFIG%g
14613 s%@LIBOBJS@%$LIBOBJS%g
14614 s%@TERMLIBS@%$TERMLIBS%g
14615 s%@TERMLDFLAGS@%$TERMLDFLAGS%g
14616 s%@ROFF@%$ROFF%g
14617 s%@DYNEXP@%$DYNEXP%g
14618 s%@LDAPLIBS@%$LDAPLIBS%g
14619 s%@QUOTAOBJS@%$QUOTAOBJS%g
14620 s%@WINBIND_TARGETS@%$WINBIND_TARGETS%g
14621 s%@WINBIND_STARGETS@%$WINBIND_STARGETS%g
14622 s%@WINBIND_LTARGETS@%$WINBIND_LTARGETS%g
14623 s%@WINBIND_PAM_TARGETS@%$WINBIND_PAM_TARGETS%g
14624 s%@WINBIND_NSS_EXTRA_OBJS@%$WINBIND_NSS_EXTRA_OBJS%g
14625 s%@WINBIND_NSS_EXTRA_LIBS@%$WINBIND_NSS_EXTRA_LIBS%g
14626 s%@BUILD_POPT@%$BUILD_POPT%g
14627 s%@FLAGS1@%$FLAGS1%g
14628 s%@builddir@%$builddir%g
14630 CEOF
14633 cat >> $CONFIG_STATUS <<\EOF
14635 # Split the substitutions into bite-sized pieces for seds with
14636 # small command number limits, like on Digital OSF/1 and HP-UX.
14637 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
14638 ac_file=1 # Number of current file.
14639 ac_beg=1 # First line for current file.
14640 ac_end=$ac_max_sed_cmds # Line after last line for current file.
14641 ac_more_lines=:
14642 ac_sed_cmds=""
14643 while $ac_more_lines; do
14644 if test $ac_beg -gt 1; then
14645 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
14646 else
14647 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
14649 if test ! -s conftest.s$ac_file; then
14650 ac_more_lines=false
14651 rm -f conftest.s$ac_file
14652 else
14653 if test -z "$ac_sed_cmds"; then
14654 ac_sed_cmds="sed -f conftest.s$ac_file"
14655 else
14656 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
14658 ac_file=`expr $ac_file + 1`
14659 ac_beg=$ac_end
14660 ac_end=`expr $ac_end + $ac_max_sed_cmds`
14662 done
14663 if test -z "$ac_sed_cmds"; then
14664 ac_sed_cmds=cat
14668 cat >> $CONFIG_STATUS <<EOF
14670 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile script/findsmb"}
14672 cat >> $CONFIG_STATUS <<\EOF
14673 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
14674 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14675 case "$ac_file" in
14676 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
14677 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14678 *) ac_file_in="${ac_file}.in" ;;
14679 esac
14681 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
14683 # Remove last slash and all that follows it. Not all systems have dirname.
14684 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
14685 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
14686 # The file is in a subdirectory.
14687 test ! -d "$ac_dir" && mkdir "$ac_dir"
14688 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
14689 # A "../" for each directory in $ac_dir_suffix.
14690 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
14691 else
14692 ac_dir_suffix= ac_dots=
14695 case "$ac_given_srcdir" in
14696 .) srcdir=.
14697 if test -z "$ac_dots"; then top_srcdir=.
14698 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
14699 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
14700 *) # Relative path.
14701 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
14702 top_srcdir="$ac_dots$ac_given_srcdir" ;;
14703 esac
14705 case "$ac_given_INSTALL" in
14706 [/$]*) INSTALL="$ac_given_INSTALL" ;;
14707 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
14708 esac
14710 echo creating "$ac_file"
14711 rm -f "$ac_file"
14712 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
14713 case "$ac_file" in
14714 *Makefile*) ac_comsub="1i\\
14715 # $configure_input" ;;
14716 *) ac_comsub= ;;
14717 esac
14719 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
14720 sed -e "$ac_comsub
14721 s%@configure_input@%$configure_input%g
14722 s%@srcdir@%$srcdir%g
14723 s%@top_srcdir@%$top_srcdir%g
14724 s%@INSTALL@%$INSTALL%g
14725 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
14726 fi; done
14727 rm -f conftest.s*
14729 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14730 # NAME is the cpp macro being defined and VALUE is the value it is being given.
14732 # ac_d sets the value in "#define NAME VALUE" lines.
14733 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14734 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
14735 ac_dC='\3'
14736 ac_dD='%g'
14737 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
14738 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14739 ac_uB='\([ ]\)%\1#\2define\3'
14740 ac_uC=' '
14741 ac_uD='\4%g'
14742 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14743 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14744 ac_eB='$%\1#\2define\3'
14745 ac_eC=' '
14746 ac_eD='%g'
14748 if test "${CONFIG_HEADERS+set}" != set; then
14750 cat >> $CONFIG_STATUS <<EOF
14751 CONFIG_HEADERS="include/config.h"
14753 cat >> $CONFIG_STATUS <<\EOF
14755 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
14756 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14757 case "$ac_file" in
14758 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
14759 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14760 *) ac_file_in="${ac_file}.in" ;;
14761 esac
14763 echo creating $ac_file
14765 rm -f conftest.frag conftest.in conftest.out
14766 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
14767 cat $ac_file_inputs > conftest.in
14771 # Transform confdefs.h into a sed script conftest.vals that substitutes
14772 # the proper values into config.h.in to produce config.h. And first:
14773 # Protect against being on the right side of a sed subst in config.status.
14774 # Protect against being in an unquoted here document in config.status.
14775 rm -f conftest.vals
14776 cat > conftest.hdr <<\EOF
14777 s/[\\&%]/\\&/g
14778 s%[\\$`]%\\&%g
14779 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
14780 s%ac_d%ac_u%gp
14781 s%ac_u%ac_e%gp
14783 sed -n -f conftest.hdr confdefs.h > conftest.vals
14784 rm -f conftest.hdr
14786 # This sed command replaces #undef with comments. This is necessary, for
14787 # example, in the case of _POSIX_SOURCE, which is predefined and required
14788 # on some systems where configure will not decide to define it.
14789 cat >> conftest.vals <<\EOF
14790 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
14793 # Break up conftest.vals because some shells have a limit on
14794 # the size of here documents, and old seds have small limits too.
14796 rm -f conftest.tail
14797 while :
14799 ac_lines=`grep -c . conftest.vals`
14800 # grep -c gives empty output for an empty file on some AIX systems.
14801 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
14802 # Write a limited-size here document to conftest.frag.
14803 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
14804 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
14805 echo 'CEOF
14806 sed -f conftest.frag conftest.in > conftest.out
14807 rm -f conftest.in
14808 mv conftest.out conftest.in
14809 ' >> $CONFIG_STATUS
14810 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
14811 rm -f conftest.vals
14812 mv conftest.tail conftest.vals
14813 done
14814 rm -f conftest.vals
14816 cat >> $CONFIG_STATUS <<\EOF
14817 rm -f conftest.frag conftest.h
14818 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
14819 cat conftest.in >> conftest.h
14820 rm -f conftest.in
14821 if cmp -s $ac_file conftest.h 2>/dev/null; then
14822 echo "$ac_file is unchanged"
14823 rm -f conftest.h
14824 else
14825 # Remove last slash and all that follows it. Not all systems have dirname.
14826 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
14827 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
14828 # The file is in a subdirectory.
14829 test ! -d "$ac_dir" && mkdir "$ac_dir"
14831 rm -f $ac_file
14832 mv conftest.h $ac_file
14834 fi; done
14837 cat >> $CONFIG_STATUS <<EOF
14840 cat >> $CONFIG_STATUS <<\EOF
14842 exit 0
14844 chmod +x $CONFIG_STATUS
14845 rm -fr confdefs* $ac_clean_files
14846 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1