reverting patch back to localhost in smbd_running()
[Samba.git] / source / configure
blobdfadf4f84e97001ebde051d5ead6266f19b45f79
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 # Extract the first word of "passwd", so it can be a program name with args.
1166 set dummy passwd; ac_word=$2
1167 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1168 echo "configure:1169: checking for $ac_word" >&5
1169 if eval "test \"`echo '$''{'ac_cv_path_passwd_program'+set}'`\" = set"; then
1170 echo $ac_n "(cached) $ac_c" 1>&6
1171 else
1172 case "$passwd_program" in
1174 ac_cv_path_passwd_program="$passwd_program" # Let the user override the test with a path.
1176 ?:/*)
1177 ac_cv_path_passwd_program="$passwd_program" # Let the user override the test with a dos path.
1180 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1181 ac_dummy="$PATH"
1182 for ac_dir in $ac_dummy; do
1183 test -z "$ac_dir" && ac_dir=.
1184 if test -f $ac_dir/$ac_word; then
1185 ac_cv_path_passwd_program="$ac_dir/$ac_word"
1186 break
1188 done
1189 IFS="$ac_save_ifs"
1190 test -z "$ac_cv_path_passwd_program" && ac_cv_path_passwd_program="/bin/passwd"
1192 esac
1194 passwd_program="$ac_cv_path_passwd_program"
1195 if test -n "$passwd_program"; then
1196 echo "$ac_t""$passwd_program" 1>&6
1197 else
1198 echo "$ac_t""no" 1>&6
1203 if test "x$CC" != xcc; then
1204 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1205 echo "configure:1206: checking whether $CC and cc understand -c and -o together" >&5
1206 else
1207 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1208 echo "configure:1209: checking whether cc understands -c and -o together" >&5
1210 set dummy $CC; ac_cc="`echo $2 |
1211 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1212 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1213 echo $ac_n "(cached) $ac_c" 1>&6
1214 else
1215 echo 'foo(){}' > conftest.c
1216 # Make sure it works both with $CC and with simple cc.
1217 # We do the test twice because some compilers refuse to overwrite an
1218 # existing .o file with -o, though they will create one.
1219 ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1220 if { (eval echo configure:1221: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1221 test -f conftest.o && { (eval echo configure:1222: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1222 then
1223 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
1224 if test "x$CC" != xcc; then
1225 # Test first that cc exists at all.
1226 if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:1227: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1227 ac_try='cc -c conftest.c -o conftest.o 1>&5'
1228 if { (eval echo configure:1229: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1229 test -f conftest.o && { (eval echo configure:1230: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1230 then
1231 # cc works too.
1233 else
1234 # cc exists but doesn't like -o.
1235 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1239 else
1240 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1242 rm -f conftest*
1245 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1246 echo "$ac_t""yes" 1>&6
1247 else
1248 echo "$ac_t""no" 1>&6
1249 cat >> confdefs.h <<\EOF
1250 #define NO_MINUS_C_MINUS_O 1
1255 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1256 BROKEN_CC=
1257 else
1258 BROKEN_CC=#
1262 echo $ac_n "checking that the C compiler understands volatile""... $ac_c" 1>&6
1263 echo "configure:1264: checking that the C compiler understands volatile" >&5
1264 if eval "test \"`echo '$''{'samba_cv_volatile'+set}'`\" = set"; then
1265 echo $ac_n "(cached) $ac_c" 1>&6
1266 else
1268 cat > conftest.$ac_ext <<EOF
1269 #line 1270 "configure"
1270 #include "confdefs.h"
1271 #include <sys/types.h>
1272 int main() {
1273 volatile int i = 0
1274 ; return 0; }
1276 if { (eval echo configure:1277: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1277 rm -rf conftest*
1278 samba_cv_volatile=yes
1279 else
1280 echo "configure: failed program was:" >&5
1281 cat conftest.$ac_ext >&5
1282 rm -rf conftest*
1283 samba_cv_volatile=no
1285 rm -f conftest*
1288 echo "$ac_t""$samba_cv_volatile" 1>&6
1289 if test x"$samba_cv_volatile" = x"yes"; then
1290 cat >> confdefs.h <<\EOF
1291 #define HAVE_VOLATILE 1
1299 # Do some error checking and defaulting for the host and target type.
1300 # The inputs are:
1301 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1303 # The rules are:
1304 # 1. You are not allowed to specify --host, --target, and nonopt at the
1305 # same time.
1306 # 2. Host defaults to nonopt.
1307 # 3. If nonopt is not specified, then host defaults to the current host,
1308 # as determined by config.guess.
1309 # 4. Target and build default to nonopt.
1310 # 5. If nonopt is not specified, then target and build default to host.
1312 # The aliases save the names the user supplied, while $host etc.
1313 # will get canonicalized.
1314 case $host---$target---$nonopt in
1315 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1316 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1317 esac
1320 # Make sure we can run config.sub.
1321 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1322 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1325 echo $ac_n "checking host system type""... $ac_c" 1>&6
1326 echo "configure:1327: checking host system type" >&5
1328 host_alias=$host
1329 case "$host_alias" in
1330 NONE)
1331 case $nonopt in
1332 NONE)
1333 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1334 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1335 fi ;;
1336 *) host_alias=$nonopt ;;
1337 esac ;;
1338 esac
1340 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1341 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1342 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1343 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1344 echo "$ac_t""$host" 1>&6
1346 echo $ac_n "checking target system type""... $ac_c" 1>&6
1347 echo "configure:1348: checking target system type" >&5
1349 target_alias=$target
1350 case "$target_alias" in
1351 NONE)
1352 case $nonopt in
1353 NONE) target_alias=$host_alias ;;
1354 *) target_alias=$nonopt ;;
1355 esac ;;
1356 esac
1358 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1359 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1360 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1361 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1362 echo "$ac_t""$target" 1>&6
1364 echo $ac_n "checking build system type""... $ac_c" 1>&6
1365 echo "configure:1366: checking build system type" >&5
1367 build_alias=$build
1368 case "$build_alias" in
1369 NONE)
1370 case $nonopt in
1371 NONE) build_alias=$host_alias ;;
1372 *) build_alias=$nonopt ;;
1373 esac ;;
1374 esac
1376 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1377 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1378 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1379 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1380 echo "$ac_t""$build" 1>&6
1382 test "$host_alias" != "$target_alias" &&
1383 test "$program_prefix$program_suffix$program_transform_name" = \
1384 NONENONEs,x,x, &&
1385 program_prefix=${target_alias}-
1388 case "$host_os" in
1389 *irix6*) cat >> confdefs.h <<\EOF
1390 #include <standards.h>
1394 esac
1398 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
1399 echo "configure:1400: checking config.cache system type" >&5
1400 if { test x"${ac_cv_host_system_type+set}" = x"set" &&
1401 test x"$ac_cv_host_system_type" != x"$host"; } ||
1402 { test x"${ac_cv_build_system_type+set}" = x"set" &&
1403 test x"$ac_cv_build_system_type" != x"$build"; } ||
1404 { test x"${ac_cv_target_system_type+set}" = x"set" &&
1405 test x"$ac_cv_target_system_type" != x"$target"; }; then
1406 echo "$ac_t""different" 1>&6
1407 { echo "configure: error: "you must remove config.cache and restart configure"" 1>&2; exit 1; }
1408 else
1409 echo "$ac_t""same" 1>&6
1411 ac_cv_host_system_type="$host"
1412 ac_cv_build_system_type="$build"
1413 ac_cv_target_system_type="$target"
1416 DYNEXP=
1419 # Config CPPFLAG settings for strange OS's that must be set
1420 # before other tests.
1422 case "$host_os" in
1423 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1424 *hpux*)
1425 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1426 echo "configure:1427: checking whether ${CC-cc} accepts -Ae" >&5
1427 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1428 echo $ac_n "(cached) $ac_c" 1>&6
1429 else
1430 echo 'void f(){}' > conftest.c
1431 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1432 ac_cv_prog_cc_Ae=yes
1433 else
1434 ac_cv_prog_cc_Ae=no
1436 rm -f conftest*
1440 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1441 # mmap on HPUX is completely broken...
1442 cat >> confdefs.h <<\EOF
1443 #define MMAP_BLACKLIST 1
1446 if test $ac_cv_prog_cc_Ae = yes; then
1447 CPPFLAGS="$CPPFLAGS -Ae"
1450 # Defines needed for HPUX support.
1451 # HPUX has bigcrypt but (sometimes?) doesn't use it for
1452 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
1454 case `uname -r` in
1455 *9*|*10*)
1456 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4 -DMAX_POSITIVE_LOCK_OFFSET=0x1ffffffffffLL"
1457 cat >> confdefs.h <<\EOF
1458 #define USE_BOTH_CRYPT_CALLS 1
1461 cat >> confdefs.h <<\EOF
1462 #define _HPUX_SOURCE 1
1465 cat >> confdefs.h <<\EOF
1466 #define _POSIX_SOURCE 1
1469 cat >> confdefs.h <<\EOF
1470 #define _ALIGNMENT_REQUIRED 1
1473 cat >> confdefs.h <<\EOF
1474 #define _MAX_ALIGNMENT 4
1478 *11*)
1479 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4 -DMAX_POSITIVE_LOCK_OFFSET=0x1ffffffffffLL"
1480 cat >> confdefs.h <<\EOF
1481 #define _HPUX_SOURCE 1
1484 cat >> confdefs.h <<\EOF
1485 #define _POSIX_SOURCE 1
1488 cat >> confdefs.h <<\EOF
1489 #define _LARGEFILE64_SOURCE 1
1492 cat >> confdefs.h <<\EOF
1493 #define _ALIGNMENT_REQUIRED 1
1496 cat >> confdefs.h <<\EOF
1497 #define _MAX_ALIGNMENT 4
1500 cat >> confdefs.h <<\EOF
1501 #define USE_BOTH_CRYPT_CALLS 1
1505 esac
1506 DYNEXP="-Wl,-E"
1511 # CRAY Unicos has broken const handling
1512 *unicos*)
1513 echo "$ac_t""disabling const" 1>&6
1514 CPPFLAGS="$CPPFLAGS -Dconst="
1518 # AIX4.x doesn't even admit to having large
1519 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1521 *aix4*)
1522 echo "$ac_t""enabling large file support" 1>&6
1523 CPPFLAGS="$CPPFLAGS -D_LARGE_FILES"
1524 cat >> confdefs.h <<\EOF
1525 #define _LARGE_FILES 1
1530 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
1531 # to the existance of large files..
1532 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
1533 # recommendations on large file support, however it makes the
1534 # compile work using gcc 2.7 and 2.8, whereas using the Sun
1535 # recommendation makes the compile fail on gcc2.7. JRA.
1537 *solaris*)
1538 case `uname -r` in
1539 5.0*|5.1*|5.2*|5.3*|5.5*)
1540 echo "$ac_t""no large file support" 1>&6
1542 5.*)
1543 echo "$ac_t""enabling large file support" 1>&6
1544 if test "$ac_cv_prog_gcc" = yes; then
1545 ${CC-cc} -v >conftest.c 2>&1
1546 ac_cv_gcc_compiler_version_number=`grep 'gcc version' conftest.c`
1547 rm -fr conftest.c
1548 case "$ac_cv_gcc_compiler_version_number" in
1549 *"gcc version 2.6"*|*"gcc version 2.7"*)
1550 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
1551 cat >> confdefs.h <<\EOF
1552 #define _LARGEFILE64_SOURCE 1
1557 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1558 cat >> confdefs.h <<\EOF
1559 #define _LARGEFILE64_SOURCE 1
1562 cat >> confdefs.h <<\EOF
1563 #define _FILE_OFFSET_BITS 64
1567 esac
1568 else
1569 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1570 cat >> confdefs.h <<\EOF
1571 #define _LARGEFILE64_SOURCE 1
1574 cat >> confdefs.h <<\EOF
1575 #define _FILE_OFFSET_BITS 64
1580 esac
1583 # VOS may need to have POSIX support and System V compatibility enabled.
1585 *vos*)
1586 case "$CPPFLAGS" in
1587 *-D_POSIX_C_SOURCE*)
1590 CPPFLAGS="$CPPFLAGS -D_POSIX_C_SOURCE=199506L"
1591 cat >> confdefs.h <<\EOF
1592 #define _POSIX_C_SOURCE 199506L
1596 esac
1597 case "$CPPFLAGS" in
1598 *-D_SYSV*|*-D_SVID_SOURCE*)
1601 CPPFLAGS="$CPPFLAGS -D_SYSV"
1602 cat >> confdefs.h <<\EOF
1603 #define _SYSV 1
1606 esac
1609 # Tests needed for SINIX large file support.
1611 *sysv4*)
1612 if test $host = mips-sni-sysv4 ; then
1613 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1614 echo "configure:1615: checking for LFS support" >&5
1615 old_CPPFLAGS="$CPPFLAGS"
1616 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1617 if test "$cross_compiling" = yes; then
1618 SINIX_LFS_SUPPORT=cross
1619 else
1620 cat > conftest.$ac_ext <<EOF
1621 #line 1622 "configure"
1622 #include "confdefs.h"
1624 #include <unistd.h>
1625 main () {
1626 #if _LFS64_LARGEFILE == 1
1627 exit(0);
1628 #else
1629 exit(1);
1630 #endif
1633 if { (eval echo configure:1634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1634 then
1635 SINIX_LFS_SUPPORT=yes
1636 else
1637 echo "configure: failed program was:" >&5
1638 cat conftest.$ac_ext >&5
1639 rm -fr conftest*
1640 SINIX_LFS_SUPPORT=no
1642 rm -fr conftest*
1645 CPPFLAGS="$old_CPPFLAGS"
1646 if test x$SINIX_LFS_SUPPORT = xyes ; then
1647 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1648 cat >> confdefs.h <<\EOF
1649 #define _LARGEFILE64_SOURCE 1
1652 CFLAGS="`getconf LFS64_CFLAGS` $CFLAGS"
1653 LDFLAGS="`getconf LFS64_LDFLAGS` $LDFLAGS"
1654 LIBS="`getconf LFS64_LIBS` $LIBS"
1656 echo "$ac_t""$SINIX_LFS_SUPPORT" 1>&6
1660 # Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
1662 *linux*)
1663 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1664 echo "configure:1665: checking for LFS support" >&5
1665 old_CPPFLAGS="$CPPFLAGS"
1666 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1667 if test "$cross_compiling" = yes; then
1668 LINUX_LFS_SUPPORT=cross
1669 else
1670 cat > conftest.$ac_ext <<EOF
1671 #line 1672 "configure"
1672 #include "confdefs.h"
1674 #include <unistd.h>
1675 #include <sys/utsname.h>
1676 main() {
1677 #if _LFS64_LARGEFILE == 1
1678 struct utsname uts;
1679 char *release;
1680 int major, minor;
1682 /* Ensure this is glibc 2.2 or higher */
1683 #if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
1684 int libc_major = __GLIBC__;
1685 int libc_minor = __GLIBC_MINOR__;
1687 if (libc_major < 2)
1688 exit(1);
1689 if (libc_minor < 2)
1690 exit(1);
1691 #endif
1693 /* Ensure this is kernel 2.4 or higher */
1695 uname(&uts);
1696 release = uts.release;
1697 major = atoi(strsep(&release, "."));
1698 minor = atoi(strsep(&release, "."));
1700 if (major > 2 || (major == 2 && minor > 3))
1701 exit(0);
1702 exit(1);
1703 #else
1704 exit(1);
1705 #endif
1709 if { (eval echo configure:1710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1710 then
1711 LINUX_LFS_SUPPORT=yes
1712 else
1713 echo "configure: failed program was:" >&5
1714 cat conftest.$ac_ext >&5
1715 rm -fr conftest*
1716 LINUX_LFS_SUPPORT=no
1718 rm -fr conftest*
1721 CPPFLAGS="$old_CPPFLAGS"
1722 if test x$LINUX_LFS_SUPPORT = xyes ; then
1723 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1724 cat >> confdefs.h <<\EOF
1725 #define _LARGEFILE64_SOURCE 1
1728 cat >> confdefs.h <<\EOF
1729 #define _FILE_OFFSET_BITS 64
1732 cat >> confdefs.h <<\EOF
1733 #define _GNU_SOURCE 1
1737 echo "$ac_t""$LINUX_LFS_SUPPORT" 1>&6
1740 *hurd*)
1741 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1742 echo "configure:1743: checking for LFS support" >&5
1743 old_CPPFLAGS="$CPPFLAGS"
1744 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1745 if test "$cross_compiling" = yes; then
1746 GLIBC_LFS_SUPPORT=cross
1747 else
1748 cat > conftest.$ac_ext <<EOF
1749 #line 1750 "configure"
1750 #include "confdefs.h"
1752 #include <unistd.h>
1753 main () {
1754 #if _LFS64_LARGEFILE == 1
1755 exit(0);
1756 #else
1757 exit(1);
1758 #endif
1761 if { (eval echo configure:1762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1762 then
1763 GLIBC_LFS_SUPPORT=yes
1764 else
1765 echo "configure: failed program was:" >&5
1766 cat conftest.$ac_ext >&5
1767 rm -fr conftest*
1768 GLIBC_LFS_SUPPORT=no
1770 rm -fr conftest*
1773 CPPFLAGS="$old_CPPFLAGS"
1774 if test x$GLIBC_LFS_SUPPORT = xyes ; then
1775 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1776 cat >> confdefs.h <<\EOF
1777 #define _LARGEFILE64_SOURCE 1
1780 cat >> confdefs.h <<\EOF
1781 #define _GNU_SOURCE 1
1785 echo "$ac_t""$GLIBC_LFS_SUPPORT" 1>&6
1788 esac
1790 echo $ac_n "checking for inline""... $ac_c" 1>&6
1791 echo "configure:1792: checking for inline" >&5
1792 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1793 echo $ac_n "(cached) $ac_c" 1>&6
1794 else
1795 ac_cv_c_inline=no
1796 for ac_kw in inline __inline__ __inline; do
1797 cat > conftest.$ac_ext <<EOF
1798 #line 1799 "configure"
1799 #include "confdefs.h"
1801 int main() {
1802 } $ac_kw foo() {
1803 ; return 0; }
1805 if { (eval echo configure:1806: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1806 rm -rf conftest*
1807 ac_cv_c_inline=$ac_kw; break
1808 else
1809 echo "configure: failed program was:" >&5
1810 cat conftest.$ac_ext >&5
1812 rm -f conftest*
1813 done
1817 echo "$ac_t""$ac_cv_c_inline" 1>&6
1818 case "$ac_cv_c_inline" in
1819 inline | yes) ;;
1820 no) cat >> confdefs.h <<\EOF
1821 #define inline
1824 *) cat >> confdefs.h <<EOF
1825 #define inline $ac_cv_c_inline
1828 esac
1830 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1831 echo "configure:1832: checking how to run the C preprocessor" >&5
1832 # On Suns, sometimes $CPP names a directory.
1833 if test -n "$CPP" && test -d "$CPP"; then
1834 CPP=
1836 if test -z "$CPP"; then
1837 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1838 echo $ac_n "(cached) $ac_c" 1>&6
1839 else
1840 # This must be in double quotes, not single quotes, because CPP may get
1841 # substituted into the Makefile and "${CC-cc}" will confuse make.
1842 CPP="${CC-cc} -E"
1843 # On the NeXT, cc -E runs the code through the compiler's parser,
1844 # not just through cpp.
1845 cat > conftest.$ac_ext <<EOF
1846 #line 1847 "configure"
1847 #include "confdefs.h"
1848 #include <assert.h>
1849 Syntax Error
1851 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1852 { (eval echo configure:1853: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1853 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1854 if test -z "$ac_err"; then
1856 else
1857 echo "$ac_err" >&5
1858 echo "configure: failed program was:" >&5
1859 cat conftest.$ac_ext >&5
1860 rm -rf conftest*
1861 CPP="${CC-cc} -E -traditional-cpp"
1862 cat > conftest.$ac_ext <<EOF
1863 #line 1864 "configure"
1864 #include "confdefs.h"
1865 #include <assert.h>
1866 Syntax Error
1868 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1869 { (eval echo configure:1870: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1870 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1871 if test -z "$ac_err"; then
1873 else
1874 echo "$ac_err" >&5
1875 echo "configure: failed program was:" >&5
1876 cat conftest.$ac_ext >&5
1877 rm -rf conftest*
1878 CPP="${CC-cc} -nologo -E"
1879 cat > conftest.$ac_ext <<EOF
1880 #line 1881 "configure"
1881 #include "confdefs.h"
1882 #include <assert.h>
1883 Syntax Error
1885 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1886 { (eval echo configure:1887: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1887 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1888 if test -z "$ac_err"; then
1890 else
1891 echo "$ac_err" >&5
1892 echo "configure: failed program was:" >&5
1893 cat conftest.$ac_ext >&5
1894 rm -rf conftest*
1895 CPP=/lib/cpp
1897 rm -f conftest*
1899 rm -f conftest*
1901 rm -f conftest*
1902 ac_cv_prog_CPP="$CPP"
1904 CPP="$ac_cv_prog_CPP"
1905 else
1906 ac_cv_prog_CPP="$CPP"
1908 echo "$ac_t""$CPP" 1>&6
1910 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1911 echo "configure:1912: checking for ANSI C header files" >&5
1912 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1913 echo $ac_n "(cached) $ac_c" 1>&6
1914 else
1915 cat > conftest.$ac_ext <<EOF
1916 #line 1917 "configure"
1917 #include "confdefs.h"
1918 #include <stdlib.h>
1919 #include <stdarg.h>
1920 #include <string.h>
1921 #include <float.h>
1923 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1924 { (eval echo configure:1925: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1925 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1926 if test -z "$ac_err"; then
1927 rm -rf conftest*
1928 ac_cv_header_stdc=yes
1929 else
1930 echo "$ac_err" >&5
1931 echo "configure: failed program was:" >&5
1932 cat conftest.$ac_ext >&5
1933 rm -rf conftest*
1934 ac_cv_header_stdc=no
1936 rm -f conftest*
1938 if test $ac_cv_header_stdc = yes; then
1939 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1940 cat > conftest.$ac_ext <<EOF
1941 #line 1942 "configure"
1942 #include "confdefs.h"
1943 #include <string.h>
1945 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1946 egrep "memchr" >/dev/null 2>&1; then
1948 else
1949 rm -rf conftest*
1950 ac_cv_header_stdc=no
1952 rm -f conftest*
1956 if test $ac_cv_header_stdc = yes; then
1957 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1958 cat > conftest.$ac_ext <<EOF
1959 #line 1960 "configure"
1960 #include "confdefs.h"
1961 #include <stdlib.h>
1963 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1964 egrep "free" >/dev/null 2>&1; then
1966 else
1967 rm -rf conftest*
1968 ac_cv_header_stdc=no
1970 rm -f conftest*
1974 if test $ac_cv_header_stdc = yes; then
1975 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1976 if test "$cross_compiling" = yes; then
1978 else
1979 cat > conftest.$ac_ext <<EOF
1980 #line 1981 "configure"
1981 #include "confdefs.h"
1982 #include <ctype.h>
1983 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1984 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1985 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1986 int main () { int i; for (i = 0; i < 256; i++)
1987 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1988 exit (0); }
1991 if { (eval echo configure:1992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1992 then
1994 else
1995 echo "configure: failed program was:" >&5
1996 cat conftest.$ac_ext >&5
1997 rm -fr conftest*
1998 ac_cv_header_stdc=no
2000 rm -fr conftest*
2006 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2007 if test $ac_cv_header_stdc = yes; then
2008 cat >> confdefs.h <<\EOF
2009 #define STDC_HEADERS 1
2014 ac_header_dirent=no
2015 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
2017 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2018 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
2019 echo "configure:2020: checking for $ac_hdr that defines DIR" >&5
2020 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
2021 echo $ac_n "(cached) $ac_c" 1>&6
2022 else
2023 cat > conftest.$ac_ext <<EOF
2024 #line 2025 "configure"
2025 #include "confdefs.h"
2026 #include <sys/types.h>
2027 #include <$ac_hdr>
2028 int main() {
2029 DIR *dirp = 0;
2030 ; return 0; }
2032 if { (eval echo configure:2033: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2033 rm -rf conftest*
2034 eval "ac_cv_header_dirent_$ac_safe=yes"
2035 else
2036 echo "configure: failed program was:" >&5
2037 cat conftest.$ac_ext >&5
2038 rm -rf conftest*
2039 eval "ac_cv_header_dirent_$ac_safe=no"
2041 rm -f conftest*
2043 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2044 echo "$ac_t""yes" 1>&6
2045 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2046 cat >> confdefs.h <<EOF
2047 #define $ac_tr_hdr 1
2049 ac_header_dirent=$ac_hdr; break
2050 else
2051 echo "$ac_t""no" 1>&6
2053 done
2054 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2055 if test $ac_header_dirent = dirent.h; then
2056 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2057 echo "configure:2058: checking for opendir in -ldir" >&5
2058 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2059 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2060 echo $ac_n "(cached) $ac_c" 1>&6
2061 else
2062 ac_save_LIBS="$LIBS"
2063 LIBS="-ldir $LIBS"
2064 cat > conftest.$ac_ext <<EOF
2065 #line 2066 "configure"
2066 #include "confdefs.h"
2067 /* Override any gcc2 internal prototype to avoid an error. */
2068 /* We use char because int might match the return type of a gcc2
2069 builtin and then its argument prototype would still apply. */
2070 char opendir();
2072 int main() {
2073 opendir()
2074 ; return 0; }
2076 if { (eval echo configure:2077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2077 rm -rf conftest*
2078 eval "ac_cv_lib_$ac_lib_var=yes"
2079 else
2080 echo "configure: failed program was:" >&5
2081 cat conftest.$ac_ext >&5
2082 rm -rf conftest*
2083 eval "ac_cv_lib_$ac_lib_var=no"
2085 rm -f conftest*
2086 LIBS="$ac_save_LIBS"
2089 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2090 echo "$ac_t""yes" 1>&6
2091 LIBS="$LIBS -ldir"
2092 else
2093 echo "$ac_t""no" 1>&6
2096 else
2097 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2098 echo "configure:2099: checking for opendir in -lx" >&5
2099 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2100 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2101 echo $ac_n "(cached) $ac_c" 1>&6
2102 else
2103 ac_save_LIBS="$LIBS"
2104 LIBS="-lx $LIBS"
2105 cat > conftest.$ac_ext <<EOF
2106 #line 2107 "configure"
2107 #include "confdefs.h"
2108 /* Override any gcc2 internal prototype to avoid an error. */
2109 /* We use char because int might match the return type of a gcc2
2110 builtin and then its argument prototype would still apply. */
2111 char opendir();
2113 int main() {
2114 opendir()
2115 ; return 0; }
2117 if { (eval echo configure:2118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2118 rm -rf conftest*
2119 eval "ac_cv_lib_$ac_lib_var=yes"
2120 else
2121 echo "configure: failed program was:" >&5
2122 cat conftest.$ac_ext >&5
2123 rm -rf conftest*
2124 eval "ac_cv_lib_$ac_lib_var=no"
2126 rm -f conftest*
2127 LIBS="$ac_save_LIBS"
2130 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2131 echo "$ac_t""yes" 1>&6
2132 LIBS="$LIBS -lx"
2133 else
2134 echo "$ac_t""no" 1>&6
2139 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2140 echo "configure:2141: checking whether time.h and sys/time.h may both be included" >&5
2141 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2142 echo $ac_n "(cached) $ac_c" 1>&6
2143 else
2144 cat > conftest.$ac_ext <<EOF
2145 #line 2146 "configure"
2146 #include "confdefs.h"
2147 #include <sys/types.h>
2148 #include <sys/time.h>
2149 #include <time.h>
2150 int main() {
2151 struct tm *tp;
2152 ; return 0; }
2154 if { (eval echo configure:2155: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2155 rm -rf conftest*
2156 ac_cv_header_time=yes
2157 else
2158 echo "configure: failed program was:" >&5
2159 cat conftest.$ac_ext >&5
2160 rm -rf conftest*
2161 ac_cv_header_time=no
2163 rm -f conftest*
2166 echo "$ac_t""$ac_cv_header_time" 1>&6
2167 if test $ac_cv_header_time = yes; then
2168 cat >> confdefs.h <<\EOF
2169 #define TIME_WITH_SYS_TIME 1
2174 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2175 echo "configure:2176: checking for sys/wait.h that is POSIX.1 compatible" >&5
2176 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2177 echo $ac_n "(cached) $ac_c" 1>&6
2178 else
2179 cat > conftest.$ac_ext <<EOF
2180 #line 2181 "configure"
2181 #include "confdefs.h"
2182 #include <sys/types.h>
2183 #include <sys/wait.h>
2184 #ifndef WEXITSTATUS
2185 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2186 #endif
2187 #ifndef WIFEXITED
2188 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2189 #endif
2190 int main() {
2191 int s;
2192 wait (&s);
2193 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2194 ; return 0; }
2196 if { (eval echo configure:2197: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2197 rm -rf conftest*
2198 ac_cv_header_sys_wait_h=yes
2199 else
2200 echo "configure: failed program was:" >&5
2201 cat conftest.$ac_ext >&5
2202 rm -rf conftest*
2203 ac_cv_header_sys_wait_h=no
2205 rm -f conftest*
2208 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2209 if test $ac_cv_header_sys_wait_h = yes; then
2210 cat >> confdefs.h <<\EOF
2211 #define HAVE_SYS_WAIT_H 1
2216 for ac_hdr in arpa/inet.h sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h
2218 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2219 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2220 echo "configure:2221: checking for $ac_hdr" >&5
2221 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2222 echo $ac_n "(cached) $ac_c" 1>&6
2223 else
2224 cat > conftest.$ac_ext <<EOF
2225 #line 2226 "configure"
2226 #include "confdefs.h"
2227 #include <$ac_hdr>
2229 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2230 { (eval echo configure:2231: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2231 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2232 if test -z "$ac_err"; then
2233 rm -rf conftest*
2234 eval "ac_cv_header_$ac_safe=yes"
2235 else
2236 echo "$ac_err" >&5
2237 echo "configure: failed program was:" >&5
2238 cat conftest.$ac_ext >&5
2239 rm -rf conftest*
2240 eval "ac_cv_header_$ac_safe=no"
2242 rm -f conftest*
2244 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2245 echo "$ac_t""yes" 1>&6
2246 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2247 cat >> confdefs.h <<EOF
2248 #define $ac_tr_hdr 1
2251 else
2252 echo "$ac_t""no" 1>&6
2254 done
2256 for ac_hdr in unistd.h utime.h grp.h sys/id.h limits.h memory.h net/if.h
2258 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2259 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2260 echo "configure:2261: checking for $ac_hdr" >&5
2261 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2262 echo $ac_n "(cached) $ac_c" 1>&6
2263 else
2264 cat > conftest.$ac_ext <<EOF
2265 #line 2266 "configure"
2266 #include "confdefs.h"
2267 #include <$ac_hdr>
2269 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2270 { (eval echo configure:2271: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2271 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2272 if test -z "$ac_err"; then
2273 rm -rf conftest*
2274 eval "ac_cv_header_$ac_safe=yes"
2275 else
2276 echo "$ac_err" >&5
2277 echo "configure: failed program was:" >&5
2278 cat conftest.$ac_ext >&5
2279 rm -rf conftest*
2280 eval "ac_cv_header_$ac_safe=no"
2282 rm -f conftest*
2284 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2285 echo "$ac_t""yes" 1>&6
2286 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2287 cat >> confdefs.h <<EOF
2288 #define $ac_tr_hdr 1
2291 else
2292 echo "$ac_t""no" 1>&6
2294 done
2296 for ac_hdr in compat.h rpc/rpc.h rpcsvc/nis.h rpcsvc/yp_prot.h rpcsvc/ypclnt.h
2298 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2299 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2300 echo "configure:2301: checking for $ac_hdr" >&5
2301 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2302 echo $ac_n "(cached) $ac_c" 1>&6
2303 else
2304 cat > conftest.$ac_ext <<EOF
2305 #line 2306 "configure"
2306 #include "confdefs.h"
2307 #include <$ac_hdr>
2309 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2310 { (eval echo configure:2311: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2311 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2312 if test -z "$ac_err"; then
2313 rm -rf conftest*
2314 eval "ac_cv_header_$ac_safe=yes"
2315 else
2316 echo "$ac_err" >&5
2317 echo "configure: failed program was:" >&5
2318 cat conftest.$ac_ext >&5
2319 rm -rf conftest*
2320 eval "ac_cv_header_$ac_safe=no"
2322 rm -f conftest*
2324 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2325 echo "$ac_t""yes" 1>&6
2326 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2327 cat >> confdefs.h <<EOF
2328 #define $ac_tr_hdr 1
2331 else
2332 echo "$ac_t""no" 1>&6
2334 done
2336 for ac_hdr in stdlib.h string.h strings.h syslog.h sys/file.h
2338 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2339 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2340 echo "configure:2341: checking for $ac_hdr" >&5
2341 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2342 echo $ac_n "(cached) $ac_c" 1>&6
2343 else
2344 cat > conftest.$ac_ext <<EOF
2345 #line 2346 "configure"
2346 #include "confdefs.h"
2347 #include <$ac_hdr>
2349 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2350 { (eval echo configure:2351: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2351 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2352 if test -z "$ac_err"; then
2353 rm -rf conftest*
2354 eval "ac_cv_header_$ac_safe=yes"
2355 else
2356 echo "$ac_err" >&5
2357 echo "configure: failed program was:" >&5
2358 cat conftest.$ac_ext >&5
2359 rm -rf conftest*
2360 eval "ac_cv_header_$ac_safe=no"
2362 rm -f conftest*
2364 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2365 echo "$ac_t""yes" 1>&6
2366 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2367 cat >> confdefs.h <<EOF
2368 #define $ac_tr_hdr 1
2371 else
2372 echo "$ac_t""no" 1>&6
2374 done
2376 for ac_hdr in sys/param.h ctype.h sys/wait.h sys/resource.h sys/ioctl.h sys/ipc.h sys/mode.h
2378 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2379 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2380 echo "configure:2381: checking for $ac_hdr" >&5
2381 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2382 echo $ac_n "(cached) $ac_c" 1>&6
2383 else
2384 cat > conftest.$ac_ext <<EOF
2385 #line 2386 "configure"
2386 #include "confdefs.h"
2387 #include <$ac_hdr>
2389 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2390 { (eval echo configure:2391: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2391 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2392 if test -z "$ac_err"; then
2393 rm -rf conftest*
2394 eval "ac_cv_header_$ac_safe=yes"
2395 else
2396 echo "$ac_err" >&5
2397 echo "configure: failed program was:" >&5
2398 cat conftest.$ac_ext >&5
2399 rm -rf conftest*
2400 eval "ac_cv_header_$ac_safe=no"
2402 rm -f conftest*
2404 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2405 echo "$ac_t""yes" 1>&6
2406 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2407 cat >> confdefs.h <<EOF
2408 #define $ac_tr_hdr 1
2411 else
2412 echo "$ac_t""no" 1>&6
2414 done
2416 for ac_hdr in sys/mman.h sys/filio.h sys/priv.h sys/shm.h sys/socket.h
2418 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2419 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2420 echo "configure:2421: checking for $ac_hdr" >&5
2421 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2422 echo $ac_n "(cached) $ac_c" 1>&6
2423 else
2424 cat > conftest.$ac_ext <<EOF
2425 #line 2426 "configure"
2426 #include "confdefs.h"
2427 #include <$ac_hdr>
2429 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2430 { (eval echo configure:2431: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2431 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2432 if test -z "$ac_err"; then
2433 rm -rf conftest*
2434 eval "ac_cv_header_$ac_safe=yes"
2435 else
2436 echo "$ac_err" >&5
2437 echo "configure: failed program was:" >&5
2438 cat conftest.$ac_ext >&5
2439 rm -rf conftest*
2440 eval "ac_cv_header_$ac_safe=no"
2442 rm -f conftest*
2444 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2445 echo "$ac_t""yes" 1>&6
2446 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2447 cat >> confdefs.h <<EOF
2448 #define $ac_tr_hdr 1
2451 else
2452 echo "$ac_t""no" 1>&6
2454 done
2456 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
2458 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2459 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2460 echo "configure:2461: checking for $ac_hdr" >&5
2461 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2462 echo $ac_n "(cached) $ac_c" 1>&6
2463 else
2464 cat > conftest.$ac_ext <<EOF
2465 #line 2466 "configure"
2466 #include "confdefs.h"
2467 #include <$ac_hdr>
2469 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2470 { (eval echo configure:2471: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2471 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2472 if test -z "$ac_err"; then
2473 rm -rf conftest*
2474 eval "ac_cv_header_$ac_safe=yes"
2475 else
2476 echo "$ac_err" >&5
2477 echo "configure: failed program was:" >&5
2478 cat conftest.$ac_ext >&5
2479 rm -rf conftest*
2480 eval "ac_cv_header_$ac_safe=no"
2482 rm -f conftest*
2484 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2485 echo "$ac_t""yes" 1>&6
2486 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2487 cat >> confdefs.h <<EOF
2488 #define $ac_tr_hdr 1
2491 else
2492 echo "$ac_t""no" 1>&6
2494 done
2496 for ac_hdr in sys/termio.h sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h
2498 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2499 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2500 echo "configure:2501: checking for $ac_hdr" >&5
2501 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2502 echo $ac_n "(cached) $ac_c" 1>&6
2503 else
2504 cat > conftest.$ac_ext <<EOF
2505 #line 2506 "configure"
2506 #include "confdefs.h"
2507 #include <$ac_hdr>
2509 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2510 { (eval echo configure:2511: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2511 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2512 if test -z "$ac_err"; then
2513 rm -rf conftest*
2514 eval "ac_cv_header_$ac_safe=yes"
2515 else
2516 echo "$ac_err" >&5
2517 echo "configure: failed program was:" >&5
2518 cat conftest.$ac_ext >&5
2519 rm -rf conftest*
2520 eval "ac_cv_header_$ac_safe=no"
2522 rm -f conftest*
2524 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2525 echo "$ac_t""yes" 1>&6
2526 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2527 cat >> confdefs.h <<EOF
2528 #define $ac_tr_hdr 1
2531 else
2532 echo "$ac_t""no" 1>&6
2534 done
2536 for ac_hdr in security/pam_modules.h security/_pam_macros.h dlfcn.h synch.h pthread.h nsswitch.h
2538 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2539 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2540 echo "configure:2541: checking for $ac_hdr" >&5
2541 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2542 echo $ac_n "(cached) $ac_c" 1>&6
2543 else
2544 cat > conftest.$ac_ext <<EOF
2545 #line 2546 "configure"
2546 #include "confdefs.h"
2547 #include <$ac_hdr>
2549 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2550 { (eval echo configure:2551: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2551 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2552 if test -z "$ac_err"; then
2553 rm -rf conftest*
2554 eval "ac_cv_header_$ac_safe=yes"
2555 else
2556 echo "$ac_err" >&5
2557 echo "configure: failed program was:" >&5
2558 cat conftest.$ac_ext >&5
2559 rm -rf conftest*
2560 eval "ac_cv_header_$ac_safe=no"
2562 rm -f conftest*
2564 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2565 echo "$ac_t""yes" 1>&6
2566 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2567 cat >> confdefs.h <<EOF
2568 #define $ac_tr_hdr 1
2571 else
2572 echo "$ac_t""no" 1>&6
2574 done
2578 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
2579 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
2581 case "$host_os" in
2582 *hpux*)
2583 cat > conftest.$ac_ext <<EOF
2584 #line 2585 "configure"
2585 #include "confdefs.h"
2586 #include <shadow.h>
2587 int main() {
2588 struct spwd testme
2589 ; return 0; }
2591 if { (eval echo configure:2592: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2592 rm -rf conftest*
2593 ac_cv_header_shadow_h=yes
2594 else
2595 echo "configure: failed program was:" >&5
2596 cat conftest.$ac_ext >&5
2597 rm -rf conftest*
2598 ac_cv_header_shadow_h=no
2600 rm -f conftest*
2601 if test x"$ac_cv_header_shadow_h" = x"yes"; then
2602 cat >> confdefs.h <<\EOF
2603 #define HAVE_SHADOW_H 1
2608 esac
2609 for ac_hdr in shadow.h netinet/ip.h netinet/tcp.h netinet/in_systm.h netinet/in_ip.h
2611 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2612 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2613 echo "configure:2614: checking for $ac_hdr" >&5
2614 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2615 echo $ac_n "(cached) $ac_c" 1>&6
2616 else
2617 cat > conftest.$ac_ext <<EOF
2618 #line 2619 "configure"
2619 #include "confdefs.h"
2620 #include <$ac_hdr>
2622 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2623 { (eval echo configure:2624: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2624 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2625 if test -z "$ac_err"; then
2626 rm -rf conftest*
2627 eval "ac_cv_header_$ac_safe=yes"
2628 else
2629 echo "$ac_err" >&5
2630 echo "configure: failed program was:" >&5
2631 cat conftest.$ac_ext >&5
2632 rm -rf conftest*
2633 eval "ac_cv_header_$ac_safe=no"
2635 rm -f conftest*
2637 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2638 echo "$ac_t""yes" 1>&6
2639 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2640 cat >> confdefs.h <<EOF
2641 #define $ac_tr_hdr 1
2644 else
2645 echo "$ac_t""no" 1>&6
2647 done
2649 for ac_hdr in nss.h nss_common.h ns_api.h sys/security.h security/pam_appl.h security/pam_modules.h
2651 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2652 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2653 echo "configure:2654: checking for $ac_hdr" >&5
2654 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2655 echo $ac_n "(cached) $ac_c" 1>&6
2656 else
2657 cat > conftest.$ac_ext <<EOF
2658 #line 2659 "configure"
2659 #include "confdefs.h"
2660 #include <$ac_hdr>
2662 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2663 { (eval echo configure:2664: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2664 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2665 if test -z "$ac_err"; then
2666 rm -rf conftest*
2667 eval "ac_cv_header_$ac_safe=yes"
2668 else
2669 echo "$ac_err" >&5
2670 echo "configure: failed program was:" >&5
2671 cat conftest.$ac_ext >&5
2672 rm -rf conftest*
2673 eval "ac_cv_header_$ac_safe=no"
2675 rm -f conftest*
2677 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2678 echo "$ac_t""yes" 1>&6
2679 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2680 cat >> confdefs.h <<EOF
2681 #define $ac_tr_hdr 1
2684 else
2685 echo "$ac_t""no" 1>&6
2687 done
2689 for ac_hdr in stropts.h poll.h
2691 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2692 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2693 echo "configure:2694: checking for $ac_hdr" >&5
2694 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2695 echo $ac_n "(cached) $ac_c" 1>&6
2696 else
2697 cat > conftest.$ac_ext <<EOF
2698 #line 2699 "configure"
2699 #include "confdefs.h"
2700 #include <$ac_hdr>
2702 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2703 { (eval echo configure:2704: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2704 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2705 if test -z "$ac_err"; then
2706 rm -rf conftest*
2707 eval "ac_cv_header_$ac_safe=yes"
2708 else
2709 echo "$ac_err" >&5
2710 echo "configure: failed program was:" >&5
2711 cat conftest.$ac_ext >&5
2712 rm -rf conftest*
2713 eval "ac_cv_header_$ac_safe=no"
2715 rm -f conftest*
2717 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2718 echo "$ac_t""yes" 1>&6
2719 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2720 cat >> confdefs.h <<EOF
2721 #define $ac_tr_hdr 1
2724 else
2725 echo "$ac_t""no" 1>&6
2727 done
2729 for ac_hdr in sys/capability.h syscall.h sys/syscall.h
2731 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2732 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2733 echo "configure:2734: checking for $ac_hdr" >&5
2734 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2735 echo $ac_n "(cached) $ac_c" 1>&6
2736 else
2737 cat > conftest.$ac_ext <<EOF
2738 #line 2739 "configure"
2739 #include "confdefs.h"
2740 #include <$ac_hdr>
2742 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2743 { (eval echo configure:2744: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2744 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2745 if test -z "$ac_err"; then
2746 rm -rf conftest*
2747 eval "ac_cv_header_$ac_safe=yes"
2748 else
2749 echo "$ac_err" >&5
2750 echo "configure: failed program was:" >&5
2751 cat conftest.$ac_ext >&5
2752 rm -rf conftest*
2753 eval "ac_cv_header_$ac_safe=no"
2755 rm -f conftest*
2757 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2758 echo "$ac_t""yes" 1>&6
2759 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2760 cat >> confdefs.h <<EOF
2761 #define $ac_tr_hdr 1
2764 else
2765 echo "$ac_t""no" 1>&6
2767 done
2769 for ac_hdr in sys/acl.h sys/cdefs.h glob.h
2771 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2772 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2773 echo "configure:2774: checking for $ac_hdr" >&5
2774 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2775 echo $ac_n "(cached) $ac_c" 1>&6
2776 else
2777 cat > conftest.$ac_ext <<EOF
2778 #line 2779 "configure"
2779 #include "confdefs.h"
2780 #include <$ac_hdr>
2782 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2783 { (eval echo configure:2784: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2784 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2785 if test -z "$ac_err"; then
2786 rm -rf conftest*
2787 eval "ac_cv_header_$ac_safe=yes"
2788 else
2789 echo "$ac_err" >&5
2790 echo "configure: failed program was:" >&5
2791 cat conftest.$ac_ext >&5
2792 rm -rf conftest*
2793 eval "ac_cv_header_$ac_safe=no"
2795 rm -f conftest*
2797 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2798 echo "$ac_t""yes" 1>&6
2799 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2800 cat >> confdefs.h <<EOF
2801 #define $ac_tr_hdr 1
2804 else
2805 echo "$ac_t""no" 1>&6
2807 done
2810 # For experimental utmp support (lastlog on some BSD-like systems)
2811 for ac_hdr in utmp.h utmpx.h lastlog.h
2813 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2814 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2815 echo "configure:2816: checking for $ac_hdr" >&5
2816 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2817 echo $ac_n "(cached) $ac_c" 1>&6
2818 else
2819 cat > conftest.$ac_ext <<EOF
2820 #line 2821 "configure"
2821 #include "confdefs.h"
2822 #include <$ac_hdr>
2824 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2825 { (eval echo configure:2826: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2826 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2827 if test -z "$ac_err"; then
2828 rm -rf conftest*
2829 eval "ac_cv_header_$ac_safe=yes"
2830 else
2831 echo "$ac_err" >&5
2832 echo "configure: failed program was:" >&5
2833 cat conftest.$ac_ext >&5
2834 rm -rf conftest*
2835 eval "ac_cv_header_$ac_safe=no"
2837 rm -f conftest*
2839 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2840 echo "$ac_t""yes" 1>&6
2841 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2842 cat >> confdefs.h <<EOF
2843 #define $ac_tr_hdr 1
2846 else
2847 echo "$ac_t""no" 1>&6
2849 done
2852 # For quotas on Veritas VxFS filesystems
2853 for ac_hdr in sys/fs/vx_quota.h
2855 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2856 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2857 echo "configure:2858: checking for $ac_hdr" >&5
2858 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2859 echo $ac_n "(cached) $ac_c" 1>&6
2860 else
2861 cat > conftest.$ac_ext <<EOF
2862 #line 2863 "configure"
2863 #include "confdefs.h"
2864 #include <$ac_hdr>
2866 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2867 { (eval echo configure:2868: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2868 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2869 if test -z "$ac_err"; then
2870 rm -rf conftest*
2871 eval "ac_cv_header_$ac_safe=yes"
2872 else
2873 echo "$ac_err" >&5
2874 echo "configure: failed program was:" >&5
2875 cat conftest.$ac_ext >&5
2876 rm -rf conftest*
2877 eval "ac_cv_header_$ac_safe=no"
2879 rm -f conftest*
2881 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2882 echo "$ac_t""yes" 1>&6
2883 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2884 cat >> confdefs.h <<EOF
2885 #define $ac_tr_hdr 1
2888 else
2889 echo "$ac_t""no" 1>&6
2891 done
2894 # For quotas on Linux XFS filesystems
2895 for ac_hdr in linux/xqm.h
2897 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2898 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2899 echo "configure:2900: checking for $ac_hdr" >&5
2900 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2901 echo $ac_n "(cached) $ac_c" 1>&6
2902 else
2903 cat > conftest.$ac_ext <<EOF
2904 #line 2905 "configure"
2905 #include "confdefs.h"
2906 #include <$ac_hdr>
2908 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2909 { (eval echo configure:2910: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2910 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2911 if test -z "$ac_err"; then
2912 rm -rf conftest*
2913 eval "ac_cv_header_$ac_safe=yes"
2914 else
2915 echo "$ac_err" >&5
2916 echo "configure: failed program was:" >&5
2917 cat conftest.$ac_ext >&5
2918 rm -rf conftest*
2919 eval "ac_cv_header_$ac_safe=no"
2921 rm -f conftest*
2923 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2924 echo "$ac_t""yes" 1>&6
2925 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2926 cat >> confdefs.h <<EOF
2927 #define $ac_tr_hdr 1
2930 else
2931 echo "$ac_t""no" 1>&6
2933 done
2936 echo $ac_n "checking size of int""... $ac_c" 1>&6
2937 echo "configure:2938: checking size of int" >&5
2938 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2939 echo $ac_n "(cached) $ac_c" 1>&6
2940 else
2941 if test "$cross_compiling" = yes; then
2942 ac_cv_sizeof_int=cross
2943 else
2944 cat > conftest.$ac_ext <<EOF
2945 #line 2946 "configure"
2946 #include "confdefs.h"
2947 #include <stdio.h>
2948 int main()
2950 FILE *f=fopen("conftestval", "w");
2951 if (!f) return(1);
2952 fprintf(f, "%d\n", sizeof(int));
2953 return(0);
2956 if { (eval echo configure:2957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2957 then
2958 ac_cv_sizeof_int=`cat conftestval`
2959 else
2960 echo "configure: failed program was:" >&5
2961 cat conftest.$ac_ext >&5
2962 rm -fr conftest*
2963 ac_cv_sizeof_int=0
2965 rm -fr conftest*
2969 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2970 cat >> confdefs.h <<EOF
2971 #define SIZEOF_INT $ac_cv_sizeof_int
2975 echo $ac_n "checking size of long""... $ac_c" 1>&6
2976 echo "configure:2977: checking size of long" >&5
2977 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2978 echo $ac_n "(cached) $ac_c" 1>&6
2979 else
2980 if test "$cross_compiling" = yes; then
2981 ac_cv_sizeof_long=cross
2982 else
2983 cat > conftest.$ac_ext <<EOF
2984 #line 2985 "configure"
2985 #include "confdefs.h"
2986 #include <stdio.h>
2987 int main()
2989 FILE *f=fopen("conftestval", "w");
2990 if (!f) return(1);
2991 fprintf(f, "%d\n", sizeof(long));
2992 return(0);
2995 if { (eval echo configure:2996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2996 then
2997 ac_cv_sizeof_long=`cat conftestval`
2998 else
2999 echo "configure: failed program was:" >&5
3000 cat conftest.$ac_ext >&5
3001 rm -fr conftest*
3002 ac_cv_sizeof_long=0
3004 rm -fr conftest*
3008 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
3009 cat >> confdefs.h <<EOF
3010 #define SIZEOF_LONG $ac_cv_sizeof_long
3014 echo $ac_n "checking size of short""... $ac_c" 1>&6
3015 echo "configure:3016: checking size of short" >&5
3016 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
3017 echo $ac_n "(cached) $ac_c" 1>&6
3018 else
3019 if test "$cross_compiling" = yes; then
3020 ac_cv_sizeof_short=cross
3021 else
3022 cat > conftest.$ac_ext <<EOF
3023 #line 3024 "configure"
3024 #include "confdefs.h"
3025 #include <stdio.h>
3026 int main()
3028 FILE *f=fopen("conftestval", "w");
3029 if (!f) return(1);
3030 fprintf(f, "%d\n", sizeof(short));
3031 return(0);
3034 if { (eval echo configure:3035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3035 then
3036 ac_cv_sizeof_short=`cat conftestval`
3037 else
3038 echo "configure: failed program was:" >&5
3039 cat conftest.$ac_ext >&5
3040 rm -fr conftest*
3041 ac_cv_sizeof_short=0
3043 rm -fr conftest*
3047 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
3048 cat >> confdefs.h <<EOF
3049 #define SIZEOF_SHORT $ac_cv_sizeof_short
3054 echo $ac_n "checking for working const""... $ac_c" 1>&6
3055 echo "configure:3056: checking for working const" >&5
3056 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3057 echo $ac_n "(cached) $ac_c" 1>&6
3058 else
3059 cat > conftest.$ac_ext <<EOF
3060 #line 3061 "configure"
3061 #include "confdefs.h"
3063 int main() {
3065 /* Ultrix mips cc rejects this. */
3066 typedef int charset[2]; const charset x;
3067 /* SunOS 4.1.1 cc rejects this. */
3068 char const *const *ccp;
3069 char **p;
3070 /* NEC SVR4.0.2 mips cc rejects this. */
3071 struct point {int x, y;};
3072 static struct point const zero = {0,0};
3073 /* AIX XL C 1.02.0.0 rejects this.
3074 It does not let you subtract one const X* pointer from another in an arm
3075 of an if-expression whose if-part is not a constant expression */
3076 const char *g = "string";
3077 ccp = &g + (g ? g-g : 0);
3078 /* HPUX 7.0 cc rejects these. */
3079 ++ccp;
3080 p = (char**) ccp;
3081 ccp = (char const *const *) p;
3082 { /* SCO 3.2v4 cc rejects this. */
3083 char *t;
3084 char const *s = 0 ? (char *) 0 : (char const *) 0;
3086 *t++ = 0;
3088 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3089 int x[] = {25, 17};
3090 const int *foo = &x[0];
3091 ++foo;
3093 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3094 typedef const int *iptr;
3095 iptr p = 0;
3096 ++p;
3098 { /* AIX XL C 1.02.0.0 rejects this saying
3099 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3100 struct s { int j; const int *ap[3]; };
3101 struct s *b; b->j = 5;
3103 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3104 const int foo = 10;
3107 ; return 0; }
3109 if { (eval echo configure:3110: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3110 rm -rf conftest*
3111 ac_cv_c_const=yes
3112 else
3113 echo "configure: failed program was:" >&5
3114 cat conftest.$ac_ext >&5
3115 rm -rf conftest*
3116 ac_cv_c_const=no
3118 rm -f conftest*
3121 echo "$ac_t""$ac_cv_c_const" 1>&6
3122 if test $ac_cv_c_const = no; then
3123 cat >> confdefs.h <<\EOF
3124 #define const
3129 echo $ac_n "checking for inline""... $ac_c" 1>&6
3130 echo "configure:3131: checking for inline" >&5
3131 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3132 echo $ac_n "(cached) $ac_c" 1>&6
3133 else
3134 ac_cv_c_inline=no
3135 for ac_kw in inline __inline__ __inline; do
3136 cat > conftest.$ac_ext <<EOF
3137 #line 3138 "configure"
3138 #include "confdefs.h"
3140 int main() {
3141 } $ac_kw foo() {
3142 ; return 0; }
3144 if { (eval echo configure:3145: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3145 rm -rf conftest*
3146 ac_cv_c_inline=$ac_kw; break
3147 else
3148 echo "configure: failed program was:" >&5
3149 cat conftest.$ac_ext >&5
3151 rm -f conftest*
3152 done
3156 echo "$ac_t""$ac_cv_c_inline" 1>&6
3157 case "$ac_cv_c_inline" in
3158 inline | yes) ;;
3159 no) cat >> confdefs.h <<\EOF
3160 #define inline
3163 *) cat >> confdefs.h <<EOF
3164 #define inline $ac_cv_c_inline
3167 esac
3169 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3170 echo "configure:3171: checking whether byte ordering is bigendian" >&5
3171 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3172 echo $ac_n "(cached) $ac_c" 1>&6
3173 else
3174 ac_cv_c_bigendian=unknown
3175 # See if sys/param.h defines the BYTE_ORDER macro.
3176 cat > conftest.$ac_ext <<EOF
3177 #line 3178 "configure"
3178 #include "confdefs.h"
3179 #include <sys/types.h>
3180 #include <sys/param.h>
3181 int main() {
3183 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3184 bogus endian macros
3185 #endif
3186 ; return 0; }
3188 if { (eval echo configure:3189: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3189 rm -rf conftest*
3190 # It does; now see whether it defined to BIG_ENDIAN or not.
3191 cat > conftest.$ac_ext <<EOF
3192 #line 3193 "configure"
3193 #include "confdefs.h"
3194 #include <sys/types.h>
3195 #include <sys/param.h>
3196 int main() {
3198 #if BYTE_ORDER != BIG_ENDIAN
3199 not big endian
3200 #endif
3201 ; return 0; }
3203 if { (eval echo configure:3204: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3204 rm -rf conftest*
3205 ac_cv_c_bigendian=yes
3206 else
3207 echo "configure: failed program was:" >&5
3208 cat conftest.$ac_ext >&5
3209 rm -rf conftest*
3210 ac_cv_c_bigendian=no
3212 rm -f conftest*
3213 else
3214 echo "configure: failed program was:" >&5
3215 cat conftest.$ac_ext >&5
3217 rm -f conftest*
3218 if test $ac_cv_c_bigendian = unknown; then
3219 if test "$cross_compiling" = yes; then
3220 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3221 else
3222 cat > conftest.$ac_ext <<EOF
3223 #line 3224 "configure"
3224 #include "confdefs.h"
3225 main () {
3226 /* Are we little or big endian? From Harbison&Steele. */
3227 union
3229 long l;
3230 char c[sizeof (long)];
3231 } u;
3232 u.l = 1;
3233 exit (u.c[sizeof (long) - 1] == 1);
3236 if { (eval echo configure:3237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3237 then
3238 ac_cv_c_bigendian=no
3239 else
3240 echo "configure: failed program was:" >&5
3241 cat conftest.$ac_ext >&5
3242 rm -fr conftest*
3243 ac_cv_c_bigendian=yes
3245 rm -fr conftest*
3251 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3252 if test $ac_cv_c_bigendian = yes; then
3253 cat >> confdefs.h <<\EOF
3254 #define WORDS_BIGENDIAN 1
3259 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
3260 echo "configure:3261: checking whether char is unsigned" >&5
3261 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
3262 echo $ac_n "(cached) $ac_c" 1>&6
3263 else
3264 if test "$GCC" = yes; then
3265 # GCC predefines this symbol on systems where it applies.
3266 cat > conftest.$ac_ext <<EOF
3267 #line 3268 "configure"
3268 #include "confdefs.h"
3269 #ifdef __CHAR_UNSIGNED__
3271 #endif
3274 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3275 egrep "yes" >/dev/null 2>&1; then
3276 rm -rf conftest*
3277 ac_cv_c_char_unsigned=yes
3278 else
3279 rm -rf conftest*
3280 ac_cv_c_char_unsigned=no
3282 rm -f conftest*
3284 else
3285 if test "$cross_compiling" = yes; then
3286 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3287 else
3288 cat > conftest.$ac_ext <<EOF
3289 #line 3290 "configure"
3290 #include "confdefs.h"
3291 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
3292 #if !defined(__STDC__) || __STDC__ != 1
3293 #define volatile
3294 #endif
3295 main() {
3296 volatile char c = 255; exit(c < 0);
3299 if { (eval echo configure:3300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3300 then
3301 ac_cv_c_char_unsigned=yes
3302 else
3303 echo "configure: failed program was:" >&5
3304 cat conftest.$ac_ext >&5
3305 rm -fr conftest*
3306 ac_cv_c_char_unsigned=no
3308 rm -fr conftest*
3314 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
3315 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
3316 cat >> confdefs.h <<\EOF
3317 #define __CHAR_UNSIGNED__ 1
3323 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3324 echo "configure:3325: checking return type of signal handlers" >&5
3325 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3326 echo $ac_n "(cached) $ac_c" 1>&6
3327 else
3328 cat > conftest.$ac_ext <<EOF
3329 #line 3330 "configure"
3330 #include "confdefs.h"
3331 #include <sys/types.h>
3332 #include <signal.h>
3333 #ifdef signal
3334 #undef signal
3335 #endif
3336 #ifdef __cplusplus
3337 extern "C" void (*signal (int, void (*)(int)))(int);
3338 #else
3339 void (*signal ()) ();
3340 #endif
3342 int main() {
3343 int i;
3344 ; return 0; }
3346 if { (eval echo configure:3347: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3347 rm -rf conftest*
3348 ac_cv_type_signal=void
3349 else
3350 echo "configure: failed program was:" >&5
3351 cat conftest.$ac_ext >&5
3352 rm -rf conftest*
3353 ac_cv_type_signal=int
3355 rm -f conftest*
3358 echo "$ac_t""$ac_cv_type_signal" 1>&6
3359 cat >> confdefs.h <<EOF
3360 #define RETSIGTYPE $ac_cv_type_signal
3364 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3365 echo "configure:3366: checking for uid_t in sys/types.h" >&5
3366 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3367 echo $ac_n "(cached) $ac_c" 1>&6
3368 else
3369 cat > conftest.$ac_ext <<EOF
3370 #line 3371 "configure"
3371 #include "confdefs.h"
3372 #include <sys/types.h>
3374 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3375 egrep "uid_t" >/dev/null 2>&1; then
3376 rm -rf conftest*
3377 ac_cv_type_uid_t=yes
3378 else
3379 rm -rf conftest*
3380 ac_cv_type_uid_t=no
3382 rm -f conftest*
3386 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3387 if test $ac_cv_type_uid_t = no; then
3388 cat >> confdefs.h <<\EOF
3389 #define uid_t int
3392 cat >> confdefs.h <<\EOF
3393 #define gid_t int
3398 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3399 echo "configure:3400: checking for mode_t" >&5
3400 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3401 echo $ac_n "(cached) $ac_c" 1>&6
3402 else
3403 cat > conftest.$ac_ext <<EOF
3404 #line 3405 "configure"
3405 #include "confdefs.h"
3406 #include <sys/types.h>
3407 #if STDC_HEADERS
3408 #include <stdlib.h>
3409 #include <stddef.h>
3410 #endif
3412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3413 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3414 rm -rf conftest*
3415 ac_cv_type_mode_t=yes
3416 else
3417 rm -rf conftest*
3418 ac_cv_type_mode_t=no
3420 rm -f conftest*
3423 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3424 if test $ac_cv_type_mode_t = no; then
3425 cat >> confdefs.h <<\EOF
3426 #define mode_t int
3431 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3432 echo "configure:3433: checking for off_t" >&5
3433 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3434 echo $ac_n "(cached) $ac_c" 1>&6
3435 else
3436 cat > conftest.$ac_ext <<EOF
3437 #line 3438 "configure"
3438 #include "confdefs.h"
3439 #include <sys/types.h>
3440 #if STDC_HEADERS
3441 #include <stdlib.h>
3442 #include <stddef.h>
3443 #endif
3445 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3446 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3447 rm -rf conftest*
3448 ac_cv_type_off_t=yes
3449 else
3450 rm -rf conftest*
3451 ac_cv_type_off_t=no
3453 rm -f conftest*
3456 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3457 if test $ac_cv_type_off_t = no; then
3458 cat >> confdefs.h <<\EOF
3459 #define off_t long
3464 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3465 echo "configure:3466: checking for size_t" >&5
3466 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3467 echo $ac_n "(cached) $ac_c" 1>&6
3468 else
3469 cat > conftest.$ac_ext <<EOF
3470 #line 3471 "configure"
3471 #include "confdefs.h"
3472 #include <sys/types.h>
3473 #if STDC_HEADERS
3474 #include <stdlib.h>
3475 #include <stddef.h>
3476 #endif
3478 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3479 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3480 rm -rf conftest*
3481 ac_cv_type_size_t=yes
3482 else
3483 rm -rf conftest*
3484 ac_cv_type_size_t=no
3486 rm -f conftest*
3489 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3490 if test $ac_cv_type_size_t = no; then
3491 cat >> confdefs.h <<\EOF
3492 #define size_t unsigned
3497 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3498 echo "configure:3499: checking for pid_t" >&5
3499 if eval "test \"`echo '$''{'ac_cv_type_pid_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])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3513 rm -rf conftest*
3514 ac_cv_type_pid_t=yes
3515 else
3516 rm -rf conftest*
3517 ac_cv_type_pid_t=no
3519 rm -f conftest*
3522 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3523 if test $ac_cv_type_pid_t = no; then
3524 cat >> confdefs.h <<\EOF
3525 #define pid_t int
3530 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3531 echo "configure:3532: checking for st_rdev in struct stat" >&5
3532 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+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 #include <sys/stat.h>
3540 int main() {
3541 struct stat s; s.st_rdev;
3542 ; return 0; }
3544 if { (eval echo configure:3545: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3545 rm -rf conftest*
3546 ac_cv_struct_st_rdev=yes
3547 else
3548 echo "configure: failed program was:" >&5
3549 cat conftest.$ac_ext >&5
3550 rm -rf conftest*
3551 ac_cv_struct_st_rdev=no
3553 rm -f conftest*
3556 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3557 if test $ac_cv_struct_st_rdev = yes; then
3558 cat >> confdefs.h <<\EOF
3559 #define HAVE_ST_RDEV 1
3564 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
3565 echo "configure:3566: checking for d_off in dirent" >&5
3566 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
3567 echo $ac_n "(cached) $ac_c" 1>&6
3568 else
3569 cat > conftest.$ac_ext <<EOF
3570 #line 3571 "configure"
3571 #include "confdefs.h"
3573 #include <unistd.h>
3574 #include <sys/types.h>
3575 #include <dirent.h>
3576 int main() {
3577 struct dirent d; d.d_off;
3578 ; return 0; }
3580 if { (eval echo configure:3581: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3581 rm -rf conftest*
3582 ac_cv_dirent_d_off=yes
3583 else
3584 echo "configure: failed program was:" >&5
3585 cat conftest.$ac_ext >&5
3586 rm -rf conftest*
3587 ac_cv_dirent_d_off=no
3589 rm -f conftest*
3592 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
3593 if test $ac_cv_dirent_d_off = yes; then
3594 cat >> confdefs.h <<\EOF
3595 #define HAVE_DIRENT_D_OFF 1
3600 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
3601 echo "configure:3602: checking for ino_t" >&5
3602 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
3603 echo $ac_n "(cached) $ac_c" 1>&6
3604 else
3605 cat > conftest.$ac_ext <<EOF
3606 #line 3607 "configure"
3607 #include "confdefs.h"
3608 #include <sys/types.h>
3609 #if STDC_HEADERS
3610 #include <stdlib.h>
3611 #include <stddef.h>
3612 #endif
3614 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3615 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3616 rm -rf conftest*
3617 ac_cv_type_ino_t=yes
3618 else
3619 rm -rf conftest*
3620 ac_cv_type_ino_t=no
3622 rm -f conftest*
3625 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
3626 if test $ac_cv_type_ino_t = no; then
3627 cat >> confdefs.h <<\EOF
3628 #define ino_t unsigned
3633 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3634 echo "configure:3635: checking for loff_t" >&5
3635 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
3636 echo $ac_n "(cached) $ac_c" 1>&6
3637 else
3638 cat > conftest.$ac_ext <<EOF
3639 #line 3640 "configure"
3640 #include "confdefs.h"
3641 #include <sys/types.h>
3642 #if STDC_HEADERS
3643 #include <stdlib.h>
3644 #include <stddef.h>
3645 #endif
3647 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3648 egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3649 rm -rf conftest*
3650 ac_cv_type_loff_t=yes
3651 else
3652 rm -rf conftest*
3653 ac_cv_type_loff_t=no
3655 rm -f conftest*
3658 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
3659 if test $ac_cv_type_loff_t = no; then
3660 cat >> confdefs.h <<\EOF
3661 #define loff_t off_t
3666 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
3667 echo "configure:3668: checking for offset_t" >&5
3668 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
3669 echo $ac_n "(cached) $ac_c" 1>&6
3670 else
3671 cat > conftest.$ac_ext <<EOF
3672 #line 3673 "configure"
3673 #include "confdefs.h"
3674 #include <sys/types.h>
3675 #if STDC_HEADERS
3676 #include <stdlib.h>
3677 #include <stddef.h>
3678 #endif
3680 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3681 egrep "(^|[^a-zA-Z_0-9])offset_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3682 rm -rf conftest*
3683 ac_cv_type_offset_t=yes
3684 else
3685 rm -rf conftest*
3686 ac_cv_type_offset_t=no
3688 rm -f conftest*
3691 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
3692 if test $ac_cv_type_offset_t = no; then
3693 cat >> confdefs.h <<\EOF
3694 #define offset_t loff_t
3699 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3700 echo "configure:3701: checking for ssize_t" >&5
3701 if eval "test \"`echo '$''{'ac_cv_type_ssize_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])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3715 rm -rf conftest*
3716 ac_cv_type_ssize_t=yes
3717 else
3718 rm -rf conftest*
3719 ac_cv_type_ssize_t=no
3721 rm -f conftest*
3724 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3725 if test $ac_cv_type_ssize_t = no; then
3726 cat >> confdefs.h <<\EOF
3727 #define ssize_t int
3732 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
3733 echo "configure:3734: checking for wchar_t" >&5
3734 if eval "test \"`echo '$''{'ac_cv_type_wchar_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])wchar_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3748 rm -rf conftest*
3749 ac_cv_type_wchar_t=yes
3750 else
3751 rm -rf conftest*
3752 ac_cv_type_wchar_t=no
3754 rm -f conftest*
3757 echo "$ac_t""$ac_cv_type_wchar_t" 1>&6
3758 if test $ac_cv_type_wchar_t = no; then
3759 cat >> confdefs.h <<\EOF
3760 #define wchar_t unsigned short
3766 ############################################
3767 # for cups support we need libcups, and a handful of header files
3769 # Check whether --enable-cups or --disable-cups was given.
3770 if test "${enable_cups+set}" = set; then
3771 enableval="$enable_cups"
3776 if test x$enable_cups != xno; then
3777 # Extract the first word of "cups-config", so it can be a program name with args.
3778 set dummy cups-config; ac_word=$2
3779 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3780 echo "configure:3781: checking for $ac_word" >&5
3781 if eval "test \"`echo '$''{'ac_cv_path_CUPS_CONFIG'+set}'`\" = set"; then
3782 echo $ac_n "(cached) $ac_c" 1>&6
3783 else
3784 case "$CUPS_CONFIG" in
3786 ac_cv_path_CUPS_CONFIG="$CUPS_CONFIG" # Let the user override the test with a path.
3788 ?:/*)
3789 ac_cv_path_CUPS_CONFIG="$CUPS_CONFIG" # Let the user override the test with a dos path.
3792 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3793 ac_dummy="$PATH"
3794 for ac_dir in $ac_dummy; do
3795 test -z "$ac_dir" && ac_dir=.
3796 if test -f $ac_dir/$ac_word; then
3797 ac_cv_path_CUPS_CONFIG="$ac_dir/$ac_word"
3798 break
3800 done
3801 IFS="$ac_save_ifs"
3803 esac
3805 CUPS_CONFIG="$ac_cv_path_CUPS_CONFIG"
3806 if test -n "$CUPS_CONFIG"; then
3807 echo "$ac_t""$CUPS_CONFIG" 1>&6
3808 else
3809 echo "$ac_t""no" 1>&6
3813 if test "x$CUPS_CONFIG" != x; then
3814 cat >> confdefs.h <<\EOF
3815 #define HAVE_CUPS 1
3818 CFLAGS="$CFLAGS `$CUPS_CONFIG --cflags`"
3819 LDFLAGS="$LDFLAGS `$CUPS_CONFIG --ldflags`"
3820 LIBS="$LIBS `$CUPS_CONFIG --libs`"
3824 ############################################
3825 # we need dlopen/dlclose/dlsym/dlerror for PAM, the password database plugins and the new VFS code
3826 for ac_func in dlopen
3828 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3829 echo "configure:3830: checking for $ac_func" >&5
3830 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3831 echo $ac_n "(cached) $ac_c" 1>&6
3832 else
3833 cat > conftest.$ac_ext <<EOF
3834 #line 3835 "configure"
3835 #include "confdefs.h"
3836 /* System header to define __stub macros and hopefully few prototypes,
3837 which can conflict with char $ac_func(); below. */
3838 #include <assert.h>
3839 /* Override any gcc2 internal prototype to avoid an error. */
3840 /* We use char because int might match the return type of a gcc2
3841 builtin and then its argument prototype would still apply. */
3842 char $ac_func();
3844 int main() {
3846 /* The GNU C library defines this for functions which it implements
3847 to always fail with ENOSYS. Some functions are actually named
3848 something starting with __ and the normal name is an alias. */
3849 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3850 choke me
3851 #else
3852 $ac_func();
3853 #endif
3855 ; return 0; }
3857 if { (eval echo configure:3858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3858 rm -rf conftest*
3859 eval "ac_cv_func_$ac_func=yes"
3860 else
3861 echo "configure: failed program was:" >&5
3862 cat conftest.$ac_ext >&5
3863 rm -rf conftest*
3864 eval "ac_cv_func_$ac_func=no"
3866 rm -f conftest*
3869 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3870 echo "$ac_t""yes" 1>&6
3871 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3872 cat >> confdefs.h <<EOF
3873 #define $ac_tr_func 1
3876 else
3877 echo "$ac_t""no" 1>&6
3879 done
3881 if test x"$ac_cv_func_dlopen" = x"no"; then
3882 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3883 echo "configure:3884: checking for dlopen in -ldl" >&5
3884 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3885 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3886 echo $ac_n "(cached) $ac_c" 1>&6
3887 else
3888 ac_save_LIBS="$LIBS"
3889 LIBS="-ldl $LIBS"
3890 cat > conftest.$ac_ext <<EOF
3891 #line 3892 "configure"
3892 #include "confdefs.h"
3893 /* Override any gcc2 internal prototype to avoid an error. */
3894 /* We use char because int might match the return type of a gcc2
3895 builtin and then its argument prototype would still apply. */
3896 char dlopen();
3898 int main() {
3899 dlopen()
3900 ; return 0; }
3902 if { (eval echo configure:3903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3903 rm -rf conftest*
3904 eval "ac_cv_lib_$ac_lib_var=yes"
3905 else
3906 echo "configure: failed program was:" >&5
3907 cat conftest.$ac_ext >&5
3908 rm -rf conftest*
3909 eval "ac_cv_lib_$ac_lib_var=no"
3911 rm -f conftest*
3912 LIBS="$ac_save_LIBS"
3915 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3916 echo "$ac_t""yes" 1>&6
3917 LIBS="$LIBS -ldl";
3918 cat >> confdefs.h <<\EOF
3919 #define HAVE_DLOPEN 1
3922 else
3923 echo "$ac_t""no" 1>&6
3927 # dlopen/dlclose/dlsym/dlerror will be checked again later and defines will be set then
3929 ############################################
3930 # check if the compiler can do immediate structures
3931 echo $ac_n "checking for immediate structures""... $ac_c" 1>&6
3932 echo "configure:3933: checking for immediate structures" >&5
3933 if eval "test \"`echo '$''{'samba_cv_immediate_structures'+set}'`\" = set"; then
3934 echo $ac_n "(cached) $ac_c" 1>&6
3935 else
3937 cat > conftest.$ac_ext <<EOF
3938 #line 3939 "configure"
3939 #include "confdefs.h"
3941 #include <stdio.h>
3942 int main() {
3944 typedef struct {unsigned x;} FOOBAR;
3945 #define X_FOOBAR(x) ((FOOBAR) { x })
3946 #define FOO_ONE X_FOOBAR(1)
3947 FOOBAR f = FOO_ONE;
3948 static struct {
3949 FOOBAR y;
3950 } f2[] = {
3951 {FOO_ONE}
3954 ; return 0; }
3956 if { (eval echo configure:3957: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3957 rm -rf conftest*
3958 samba_cv_immediate_structures=yes
3959 else
3960 echo "configure: failed program was:" >&5
3961 cat conftest.$ac_ext >&5
3962 rm -rf conftest*
3963 samba_cv_immediate_structures=no
3965 rm -f conftest*
3968 echo "$ac_t""$samba_cv_immediate_structures" 1>&6
3969 if test x"$samba_cv_immediate_structures" = x"yes"; then
3970 cat >> confdefs.h <<\EOF
3971 #define HAVE_IMMEDIATE_STRUCTURES 1
3976 ############################################
3977 # check for unix domain sockets
3978 echo $ac_n "checking for unix domain sockets""... $ac_c" 1>&6
3979 echo "configure:3980: checking for unix domain sockets" >&5
3980 if eval "test \"`echo '$''{'samba_cv_unixsocket'+set}'`\" = set"; then
3981 echo $ac_n "(cached) $ac_c" 1>&6
3982 else
3984 cat > conftest.$ac_ext <<EOF
3985 #line 3986 "configure"
3986 #include "confdefs.h"
3988 #include <sys/types.h>
3989 #include <stdlib.h>
3990 #include <stddef.h>
3991 #include <sys/socket.h>
3992 #include <sys/un.h>
3993 int main() {
3995 struct sockaddr_un sunaddr;
3996 sunaddr.sun_family = AF_UNIX;
3998 ; return 0; }
4000 if { (eval echo configure:4001: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4001 rm -rf conftest*
4002 samba_cv_unixsocket=yes
4003 else
4004 echo "configure: failed program was:" >&5
4005 cat conftest.$ac_ext >&5
4006 rm -rf conftest*
4007 samba_cv_unixsocket=no
4009 rm -f conftest*
4012 echo "$ac_t""$samba_cv_unixsocket" 1>&6
4013 if test x"$samba_cv_unixsocket" = x"yes"; then
4014 cat >> confdefs.h <<\EOF
4015 #define HAVE_UNIXSOCKET 1
4020 echo $ac_n "checking for socklen_t type""... $ac_c" 1>&6
4021 echo "configure:4022: checking for socklen_t type" >&5
4022 if eval "test \"`echo '$''{'samba_cv_socklen_t'+set}'`\" = set"; then
4023 echo $ac_n "(cached) $ac_c" 1>&6
4024 else
4026 cat > conftest.$ac_ext <<EOF
4027 #line 4028 "configure"
4028 #include "confdefs.h"
4030 #include <sys/types.h>
4031 #if STDC_HEADERS
4032 #include <stdlib.h>
4033 #include <stddef.h>
4034 #endif
4035 #include <sys/socket.h>
4036 int main() {
4037 socklen_t i = 0
4038 ; return 0; }
4040 if { (eval echo configure:4041: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4041 rm -rf conftest*
4042 samba_cv_socklen_t=yes
4043 else
4044 echo "configure: failed program was:" >&5
4045 cat conftest.$ac_ext >&5
4046 rm -rf conftest*
4047 samba_cv_socklen_t=no
4049 rm -f conftest*
4052 echo "$ac_t""$samba_cv_socklen_t" 1>&6
4053 if test x"$samba_cv_socklen_t" = x"yes"; then
4054 cat >> confdefs.h <<\EOF
4055 #define HAVE_SOCKLEN_T_TYPE 1
4060 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
4061 echo "configure:4062: checking for sig_atomic_t type" >&5
4062 if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+set}'`\" = set"; then
4063 echo $ac_n "(cached) $ac_c" 1>&6
4064 else
4066 cat > conftest.$ac_ext <<EOF
4067 #line 4068 "configure"
4068 #include "confdefs.h"
4070 #include <sys/types.h>
4071 #if STDC_HEADERS
4072 #include <stdlib.h>
4073 #include <stddef.h>
4074 #endif
4075 #include <signal.h>
4076 int main() {
4077 sig_atomic_t i = 0
4078 ; return 0; }
4080 if { (eval echo configure:4081: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4081 rm -rf conftest*
4082 samba_cv_sig_atomic_t=yes
4083 else
4084 echo "configure: failed program was:" >&5
4085 cat conftest.$ac_ext >&5
4086 rm -rf conftest*
4087 samba_cv_sig_atomic_t=no
4089 rm -f conftest*
4092 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
4093 if test x"$samba_cv_sig_atomic_t" = x"yes"; then
4094 cat >> confdefs.h <<\EOF
4095 #define HAVE_SIG_ATOMIC_T_TYPE 1
4100 # stupid headers have the functions but no declaration. grrrr.
4102 echo $ac_n "checking for errno declaration""... $ac_c" 1>&6
4103 echo "configure:4104: checking for errno declaration" >&5
4104 if eval "test \"`echo '$''{'ac_cv_have_errno_decl'+set}'`\" = set"; then
4105 echo $ac_n "(cached) $ac_c" 1>&6
4106 else
4108 cat > conftest.$ac_ext <<EOF
4109 #line 4110 "configure"
4110 #include "confdefs.h"
4111 #include <errno.h>
4112 int main() {
4113 int i = (int)errno
4114 ; return 0; }
4116 if { (eval echo configure:4117: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4117 rm -rf conftest*
4118 ac_cv_have_errno_decl=yes
4119 else
4120 echo "configure: failed program was:" >&5
4121 cat conftest.$ac_ext >&5
4122 rm -rf conftest*
4123 ac_cv_have_errno_decl=no
4125 rm -f conftest*
4128 echo "$ac_t""$ac_cv_have_errno_decl" 1>&6
4129 if test x"$ac_cv_have_errno_decl" = x"yes"; then
4130 cat >> confdefs.h <<\EOF
4131 #define HAVE_ERRNO_DECL 1
4137 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
4138 echo "configure:4139: checking for setresuid declaration" >&5
4139 if eval "test \"`echo '$''{'ac_cv_have_setresuid_decl'+set}'`\" = set"; then
4140 echo $ac_n "(cached) $ac_c" 1>&6
4141 else
4143 cat > conftest.$ac_ext <<EOF
4144 #line 4145 "configure"
4145 #include "confdefs.h"
4146 #include <unistd.h>
4147 int main() {
4148 int i = (int)setresuid
4149 ; return 0; }
4151 if { (eval echo configure:4152: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4152 rm -rf conftest*
4153 ac_cv_have_setresuid_decl=yes
4154 else
4155 echo "configure: failed program was:" >&5
4156 cat conftest.$ac_ext >&5
4157 rm -rf conftest*
4158 ac_cv_have_setresuid_decl=no
4160 rm -f conftest*
4163 echo "$ac_t""$ac_cv_have_setresuid_decl" 1>&6
4164 if test x"$ac_cv_have_setresuid_decl" = x"yes"; then
4165 cat >> confdefs.h <<\EOF
4166 #define HAVE_SETRESUID_DECL 1
4172 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
4173 echo "configure:4174: checking for setresgid declaration" >&5
4174 if eval "test \"`echo '$''{'ac_cv_have_setresgid_decl'+set}'`\" = set"; then
4175 echo $ac_n "(cached) $ac_c" 1>&6
4176 else
4178 cat > conftest.$ac_ext <<EOF
4179 #line 4180 "configure"
4180 #include "confdefs.h"
4181 #include <unistd.h>
4182 int main() {
4183 int i = (int)setresgid
4184 ; return 0; }
4186 if { (eval echo configure:4187: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4187 rm -rf conftest*
4188 ac_cv_have_setresgid_decl=yes
4189 else
4190 echo "configure: failed program was:" >&5
4191 cat conftest.$ac_ext >&5
4192 rm -rf conftest*
4193 ac_cv_have_setresgid_decl=no
4195 rm -f conftest*
4198 echo "$ac_t""$ac_cv_have_setresgid_decl" 1>&6
4199 if test x"$ac_cv_have_setresgid_decl" = x"yes"; then
4200 cat >> confdefs.h <<\EOF
4201 #define HAVE_SETRESGID_DECL 1
4207 echo $ac_n "checking for asprintf declaration""... $ac_c" 1>&6
4208 echo "configure:4209: checking for asprintf declaration" >&5
4209 if eval "test \"`echo '$''{'ac_cv_have_asprintf_decl'+set}'`\" = set"; then
4210 echo $ac_n "(cached) $ac_c" 1>&6
4211 else
4213 cat > conftest.$ac_ext <<EOF
4214 #line 4215 "configure"
4215 #include "confdefs.h"
4216 #include <stdio.h>
4217 int main() {
4218 int i = (int)asprintf
4219 ; return 0; }
4221 if { (eval echo configure:4222: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4222 rm -rf conftest*
4223 ac_cv_have_asprintf_decl=yes
4224 else
4225 echo "configure: failed program was:" >&5
4226 cat conftest.$ac_ext >&5
4227 rm -rf conftest*
4228 ac_cv_have_asprintf_decl=no
4230 rm -f conftest*
4233 echo "$ac_t""$ac_cv_have_asprintf_decl" 1>&6
4234 if test x"$ac_cv_have_asprintf_decl" = x"yes"; then
4235 cat >> confdefs.h <<\EOF
4236 #define HAVE_ASPRINTF_DECL 1
4242 echo $ac_n "checking for vasprintf declaration""... $ac_c" 1>&6
4243 echo "configure:4244: checking for vasprintf declaration" >&5
4244 if eval "test \"`echo '$''{'ac_cv_have_vasprintf_decl'+set}'`\" = set"; then
4245 echo $ac_n "(cached) $ac_c" 1>&6
4246 else
4248 cat > conftest.$ac_ext <<EOF
4249 #line 4250 "configure"
4250 #include "confdefs.h"
4251 #include <stdio.h>
4252 int main() {
4253 int i = (int)vasprintf
4254 ; return 0; }
4256 if { (eval echo configure:4257: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4257 rm -rf conftest*
4258 ac_cv_have_vasprintf_decl=yes
4259 else
4260 echo "configure: failed program was:" >&5
4261 cat conftest.$ac_ext >&5
4262 rm -rf conftest*
4263 ac_cv_have_vasprintf_decl=no
4265 rm -f conftest*
4268 echo "$ac_t""$ac_cv_have_vasprintf_decl" 1>&6
4269 if test x"$ac_cv_have_vasprintf_decl" = x"yes"; then
4270 cat >> confdefs.h <<\EOF
4271 #define HAVE_VASPRINTF_DECL 1
4277 echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6
4278 echo "configure:4279: checking for vsnprintf declaration" >&5
4279 if eval "test \"`echo '$''{'ac_cv_have_vsnprintf_decl'+set}'`\" = set"; then
4280 echo $ac_n "(cached) $ac_c" 1>&6
4281 else
4283 cat > conftest.$ac_ext <<EOF
4284 #line 4285 "configure"
4285 #include "confdefs.h"
4286 #include <stdio.h>
4287 int main() {
4288 int i = (int)vsnprintf
4289 ; return 0; }
4291 if { (eval echo configure:4292: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4292 rm -rf conftest*
4293 ac_cv_have_vsnprintf_decl=yes
4294 else
4295 echo "configure: failed program was:" >&5
4296 cat conftest.$ac_ext >&5
4297 rm -rf conftest*
4298 ac_cv_have_vsnprintf_decl=no
4300 rm -f conftest*
4303 echo "$ac_t""$ac_cv_have_vsnprintf_decl" 1>&6
4304 if test x"$ac_cv_have_vsnprintf_decl" = x"yes"; then
4305 cat >> confdefs.h <<\EOF
4306 #define HAVE_VSNPRINTF_DECL 1
4312 echo $ac_n "checking for snprintf declaration""... $ac_c" 1>&6
4313 echo "configure:4314: checking for snprintf declaration" >&5
4314 if eval "test \"`echo '$''{'ac_cv_have_snprintf_decl'+set}'`\" = set"; then
4315 echo $ac_n "(cached) $ac_c" 1>&6
4316 else
4318 cat > conftest.$ac_ext <<EOF
4319 #line 4320 "configure"
4320 #include "confdefs.h"
4321 #include <stdio.h>
4322 int main() {
4323 int i = (int)snprintf
4324 ; return 0; }
4326 if { (eval echo configure:4327: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4327 rm -rf conftest*
4328 ac_cv_have_snprintf_decl=yes
4329 else
4330 echo "configure: failed program was:" >&5
4331 cat conftest.$ac_ext >&5
4332 rm -rf conftest*
4333 ac_cv_have_snprintf_decl=no
4335 rm -f conftest*
4338 echo "$ac_t""$ac_cv_have_snprintf_decl" 1>&6
4339 if test x"$ac_cv_have_snprintf_decl" = x"yes"; then
4340 cat >> confdefs.h <<\EOF
4341 #define HAVE_SNPRINTF_DECL 1
4347 # and glibc has setresuid under linux but the function does
4348 # nothing until kernel 2.1.44! very dumb.
4349 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
4350 echo "configure:4351: checking for real setresuid" >&5
4351 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
4352 echo $ac_n "(cached) $ac_c" 1>&6
4353 else
4355 if test "$cross_compiling" = yes; then
4356 samba_cv_have_setresuid=cross
4357 else
4358 cat > conftest.$ac_ext <<EOF
4359 #line 4360 "configure"
4360 #include "confdefs.h"
4361 #include <errno.h>
4362 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
4364 if { (eval echo configure:4365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4365 then
4366 samba_cv_have_setresuid=yes
4367 else
4368 echo "configure: failed program was:" >&5
4369 cat conftest.$ac_ext >&5
4370 rm -fr conftest*
4371 samba_cv_have_setresuid=no
4373 rm -fr conftest*
4378 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
4379 if test x"$samba_cv_have_setresuid" = x"yes"; then
4380 cat >> confdefs.h <<\EOF
4381 #define HAVE_SETRESUID 1
4386 # Do the same check for setresguid...
4388 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
4389 echo "configure:4390: checking for real setresgid" >&5
4390 if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then
4391 echo $ac_n "(cached) $ac_c" 1>&6
4392 else
4394 if test "$cross_compiling" = yes; then
4395 samba_cv_have_setresgid=cross
4396 else
4397 cat > conftest.$ac_ext <<EOF
4398 #line 4399 "configure"
4399 #include "confdefs.h"
4400 #include <unistd.h>
4401 #include <errno.h>
4402 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
4404 if { (eval echo configure:4405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4405 then
4406 samba_cv_have_setresgid=yes
4407 else
4408 echo "configure: failed program was:" >&5
4409 cat conftest.$ac_ext >&5
4410 rm -fr conftest*
4411 samba_cv_have_setresgid=no
4413 rm -fr conftest*
4418 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
4419 if test x"$samba_cv_have_setresgid" = x"yes"; then
4420 cat >> confdefs.h <<\EOF
4421 #define HAVE_SETRESGID 1
4426 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
4427 echo "configure:4428: checking for 8-bit clean memcmp" >&5
4428 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
4429 echo $ac_n "(cached) $ac_c" 1>&6
4430 else
4431 if test "$cross_compiling" = yes; then
4432 ac_cv_func_memcmp_clean=no
4433 else
4434 cat > conftest.$ac_ext <<EOF
4435 #line 4436 "configure"
4436 #include "confdefs.h"
4438 main()
4440 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4441 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
4445 if { (eval echo configure:4446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4446 then
4447 ac_cv_func_memcmp_clean=yes
4448 else
4449 echo "configure: failed program was:" >&5
4450 cat conftest.$ac_ext >&5
4451 rm -fr conftest*
4452 ac_cv_func_memcmp_clean=no
4454 rm -fr conftest*
4459 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
4460 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
4463 ###############################################
4464 # Readline included by default unless explicitly asked not to
4465 test "${with_readline+set}" != "set" && with_readline=yes
4467 # test for where we get readline() from
4468 echo $ac_n "checking whether to use readline""... $ac_c" 1>&6
4469 echo "configure:4470: checking whether to use readline" >&5
4470 # Check whether --with-readline or --without-readline was given.
4471 if test "${with_readline+set}" = set; then
4472 withval="$with_readline"
4473 case "$with_readline" in
4474 yes)
4475 echo "$ac_t""yes" 1>&6
4477 for ac_hdr in readline.h history.h readline/readline.h
4479 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4480 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4481 echo "configure:4482: checking for $ac_hdr" >&5
4482 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4483 echo $ac_n "(cached) $ac_c" 1>&6
4484 else
4485 cat > conftest.$ac_ext <<EOF
4486 #line 4487 "configure"
4487 #include "confdefs.h"
4488 #include <$ac_hdr>
4490 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4491 { (eval echo configure:4492: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4492 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4493 if test -z "$ac_err"; then
4494 rm -rf conftest*
4495 eval "ac_cv_header_$ac_safe=yes"
4496 else
4497 echo "$ac_err" >&5
4498 echo "configure: failed program was:" >&5
4499 cat conftest.$ac_ext >&5
4500 rm -rf conftest*
4501 eval "ac_cv_header_$ac_safe=no"
4503 rm -f conftest*
4505 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4506 echo "$ac_t""yes" 1>&6
4507 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4508 cat >> confdefs.h <<EOF
4509 #define $ac_tr_hdr 1
4512 else
4513 echo "$ac_t""no" 1>&6
4515 done
4517 for ac_hdr in readline/history.h
4519 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4520 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4521 echo "configure:4522: checking for $ac_hdr" >&5
4522 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4523 echo $ac_n "(cached) $ac_c" 1>&6
4524 else
4525 cat > conftest.$ac_ext <<EOF
4526 #line 4527 "configure"
4527 #include "confdefs.h"
4528 #include <$ac_hdr>
4530 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4531 { (eval echo configure:4532: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4532 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4533 if test -z "$ac_err"; then
4534 rm -rf conftest*
4535 eval "ac_cv_header_$ac_safe=yes"
4536 else
4537 echo "$ac_err" >&5
4538 echo "configure: failed program was:" >&5
4539 cat conftest.$ac_ext >&5
4540 rm -rf conftest*
4541 eval "ac_cv_header_$ac_safe=no"
4543 rm -f conftest*
4545 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4546 echo "$ac_t""yes" 1>&6
4547 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4548 cat >> confdefs.h <<EOF
4549 #define $ac_tr_hdr 1
4552 else
4553 echo "$ac_t""no" 1>&6
4555 done
4558 for ac_hdr in readline.h readline/readline.h
4560 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4561 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4562 echo "configure:4563: checking for $ac_hdr" >&5
4563 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4564 echo $ac_n "(cached) $ac_c" 1>&6
4565 else
4566 cat > conftest.$ac_ext <<EOF
4567 #line 4568 "configure"
4568 #include "confdefs.h"
4569 #include <$ac_hdr>
4571 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4572 { (eval echo configure:4573: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4573 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4574 if test -z "$ac_err"; then
4575 rm -rf conftest*
4576 eval "ac_cv_header_$ac_safe=yes"
4577 else
4578 echo "$ac_err" >&5
4579 echo "configure: failed program was:" >&5
4580 cat conftest.$ac_ext >&5
4581 rm -rf conftest*
4582 eval "ac_cv_header_$ac_safe=no"
4584 rm -f conftest*
4586 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4587 echo "$ac_t""yes" 1>&6
4588 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4589 cat >> confdefs.h <<EOF
4590 #define $ac_tr_hdr 1
4593 for termlib in ncurses curses termcap terminfo termlib; do
4594 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4595 echo "configure:4596: checking for tgetent in -l${termlib}" >&5
4596 ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4597 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4598 echo $ac_n "(cached) $ac_c" 1>&6
4599 else
4600 ac_save_LIBS="$LIBS"
4601 LIBS="-l${termlib} $LIBS"
4602 cat > conftest.$ac_ext <<EOF
4603 #line 4604 "configure"
4604 #include "confdefs.h"
4605 /* Override any gcc2 internal prototype to avoid an error. */
4606 /* We use char because int might match the return type of a gcc2
4607 builtin and then its argument prototype would still apply. */
4608 char tgetent();
4610 int main() {
4611 tgetent()
4612 ; return 0; }
4614 if { (eval echo configure:4615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4615 rm -rf conftest*
4616 eval "ac_cv_lib_$ac_lib_var=yes"
4617 else
4618 echo "configure: failed program was:" >&5
4619 cat conftest.$ac_ext >&5
4620 rm -rf conftest*
4621 eval "ac_cv_lib_$ac_lib_var=no"
4623 rm -f conftest*
4624 LIBS="$ac_save_LIBS"
4627 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4628 echo "$ac_t""yes" 1>&6
4629 TERMLIBS="-l${termlib}"; break
4630 else
4631 echo "$ac_t""no" 1>&6
4634 done
4635 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4636 echo "configure:4637: checking for rl_callback_handler_install in -lreadline" >&5
4637 ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4638 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4639 echo $ac_n "(cached) $ac_c" 1>&6
4640 else
4641 ac_save_LIBS="$LIBS"
4642 LIBS="-lreadline $TERMLIBS $LIBS"
4643 cat > conftest.$ac_ext <<EOF
4644 #line 4645 "configure"
4645 #include "confdefs.h"
4646 /* Override any gcc2 internal prototype to avoid an error. */
4647 /* We use char because int might match the return type of a gcc2
4648 builtin and then its argument prototype would still apply. */
4649 char rl_callback_handler_install();
4651 int main() {
4652 rl_callback_handler_install()
4653 ; return 0; }
4655 if { (eval echo configure:4656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4656 rm -rf conftest*
4657 eval "ac_cv_lib_$ac_lib_var=yes"
4658 else
4659 echo "configure: failed program was:" >&5
4660 cat conftest.$ac_ext >&5
4661 rm -rf conftest*
4662 eval "ac_cv_lib_$ac_lib_var=no"
4664 rm -f conftest*
4665 LIBS="$ac_save_LIBS"
4668 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4669 echo "$ac_t""yes" 1>&6
4670 TERMLIBS="-lreadline $TERMLIBS"
4671 cat >> confdefs.h <<\EOF
4672 #define HAVE_LIBREADLINE 1
4675 break
4676 else
4677 echo "$ac_t""no" 1>&6
4678 TERMLIBS=
4681 else
4682 echo "$ac_t""no" 1>&6
4684 done
4688 echo "$ac_t""no" 1>&6
4691 echo "$ac_t""yes" 1>&6
4693 # Needed for AC_CHECK_HEADERS and AC_CHECK_LIB to look at
4694 # alternate readline path
4695 _ldflags=${LDFLAGS}
4696 _cppflags=${CPPFLAGS}
4698 # Add additional search path
4699 LDFLAGS="-L$with_readline/lib $LDFLAGS"
4700 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
4702 for ac_hdr in readline.h history.h readline/readline.h
4704 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4705 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4706 echo "configure:4707: checking for $ac_hdr" >&5
4707 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4708 echo $ac_n "(cached) $ac_c" 1>&6
4709 else
4710 cat > conftest.$ac_ext <<EOF
4711 #line 4712 "configure"
4712 #include "confdefs.h"
4713 #include <$ac_hdr>
4715 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4716 { (eval echo configure:4717: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4717 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4718 if test -z "$ac_err"; then
4719 rm -rf conftest*
4720 eval "ac_cv_header_$ac_safe=yes"
4721 else
4722 echo "$ac_err" >&5
4723 echo "configure: failed program was:" >&5
4724 cat conftest.$ac_ext >&5
4725 rm -rf conftest*
4726 eval "ac_cv_header_$ac_safe=no"
4728 rm -f conftest*
4730 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4731 echo "$ac_t""yes" 1>&6
4732 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4733 cat >> confdefs.h <<EOF
4734 #define $ac_tr_hdr 1
4737 else
4738 echo "$ac_t""no" 1>&6
4740 done
4742 for ac_hdr in readline/history.h
4744 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4745 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4746 echo "configure:4747: checking for $ac_hdr" >&5
4747 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4748 echo $ac_n "(cached) $ac_c" 1>&6
4749 else
4750 cat > conftest.$ac_ext <<EOF
4751 #line 4752 "configure"
4752 #include "confdefs.h"
4753 #include <$ac_hdr>
4755 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4756 { (eval echo configure:4757: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4757 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4758 if test -z "$ac_err"; then
4759 rm -rf conftest*
4760 eval "ac_cv_header_$ac_safe=yes"
4761 else
4762 echo "$ac_err" >&5
4763 echo "configure: failed program was:" >&5
4764 cat conftest.$ac_ext >&5
4765 rm -rf conftest*
4766 eval "ac_cv_header_$ac_safe=no"
4768 rm -f conftest*
4770 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4771 echo "$ac_t""yes" 1>&6
4772 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4773 cat >> confdefs.h <<EOF
4774 #define $ac_tr_hdr 1
4777 else
4778 echo "$ac_t""no" 1>&6
4780 done
4783 for ac_hdr in readline.h readline/readline.h
4785 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4786 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4787 echo "configure:4788: checking for $ac_hdr" >&5
4788 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4789 echo $ac_n "(cached) $ac_c" 1>&6
4790 else
4791 cat > conftest.$ac_ext <<EOF
4792 #line 4793 "configure"
4793 #include "confdefs.h"
4794 #include <$ac_hdr>
4796 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4797 { (eval echo configure:4798: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4798 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4799 if test -z "$ac_err"; then
4800 rm -rf conftest*
4801 eval "ac_cv_header_$ac_safe=yes"
4802 else
4803 echo "$ac_err" >&5
4804 echo "configure: failed program was:" >&5
4805 cat conftest.$ac_ext >&5
4806 rm -rf conftest*
4807 eval "ac_cv_header_$ac_safe=no"
4809 rm -f conftest*
4811 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4812 echo "$ac_t""yes" 1>&6
4813 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4814 cat >> confdefs.h <<EOF
4815 #define $ac_tr_hdr 1
4818 for termlib in ncurses curses termcap terminfo termlib; do
4819 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4820 echo "configure:4821: checking for tgetent in -l${termlib}" >&5
4821 ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4822 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4823 echo $ac_n "(cached) $ac_c" 1>&6
4824 else
4825 ac_save_LIBS="$LIBS"
4826 LIBS="-l${termlib} $LIBS"
4827 cat > conftest.$ac_ext <<EOF
4828 #line 4829 "configure"
4829 #include "confdefs.h"
4830 /* Override any gcc2 internal prototype to avoid an error. */
4831 /* We use char because int might match the return type of a gcc2
4832 builtin and then its argument prototype would still apply. */
4833 char tgetent();
4835 int main() {
4836 tgetent()
4837 ; return 0; }
4839 if { (eval echo configure:4840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4840 rm -rf conftest*
4841 eval "ac_cv_lib_$ac_lib_var=yes"
4842 else
4843 echo "configure: failed program was:" >&5
4844 cat conftest.$ac_ext >&5
4845 rm -rf conftest*
4846 eval "ac_cv_lib_$ac_lib_var=no"
4848 rm -f conftest*
4849 LIBS="$ac_save_LIBS"
4852 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4853 echo "$ac_t""yes" 1>&6
4854 TERMLIBS="-l${termlib}"; break
4855 else
4856 echo "$ac_t""no" 1>&6
4859 done
4860 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4861 echo "configure:4862: checking for rl_callback_handler_install in -lreadline" >&5
4862 ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4863 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4864 echo $ac_n "(cached) $ac_c" 1>&6
4865 else
4866 ac_save_LIBS="$LIBS"
4867 LIBS="-lreadline $TERMLIBS $LIBS"
4868 cat > conftest.$ac_ext <<EOF
4869 #line 4870 "configure"
4870 #include "confdefs.h"
4871 /* Override any gcc2 internal prototype to avoid an error. */
4872 /* We use char because int might match the return type of a gcc2
4873 builtin and then its argument prototype would still apply. */
4874 char rl_callback_handler_install();
4876 int main() {
4877 rl_callback_handler_install()
4878 ; return 0; }
4880 if { (eval echo configure:4881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4881 rm -rf conftest*
4882 eval "ac_cv_lib_$ac_lib_var=yes"
4883 else
4884 echo "configure: failed program was:" >&5
4885 cat conftest.$ac_ext >&5
4886 rm -rf conftest*
4887 eval "ac_cv_lib_$ac_lib_var=no"
4889 rm -f conftest*
4890 LIBS="$ac_save_LIBS"
4893 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4894 echo "$ac_t""yes" 1>&6
4895 TERMLDFLAGS="-L$with_readline/lib"
4896 TERMCPPFLAGS="-I$with_readline/include"
4897 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
4898 TERMLIBS="-lreadline $TERMLIBS"
4899 cat >> confdefs.h <<\EOF
4900 #define HAVE_LIBREADLINE 1
4903 break
4904 else
4905 echo "$ac_t""no" 1>&6
4906 TERMLIBS= CPPFLAGS=$_cppflags
4909 else
4910 echo "$ac_t""no" 1>&6
4912 done
4915 LDFLAGS=$_ldflags
4917 esac
4918 else
4919 echo "$ac_t""no" 1>&6
4926 # The following test taken from the cvs sources
4927 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
4928 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
4929 # libsocket.so which has a bad implementation of gethostbyname (it
4930 # only looks in /etc/hosts), so we only look for -lsocket if we need
4931 # it.
4932 for ac_func in connect
4934 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4935 echo "configure:4936: checking for $ac_func" >&5
4936 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4937 echo $ac_n "(cached) $ac_c" 1>&6
4938 else
4939 cat > conftest.$ac_ext <<EOF
4940 #line 4941 "configure"
4941 #include "confdefs.h"
4942 /* System header to define __stub macros and hopefully few prototypes,
4943 which can conflict with char $ac_func(); below. */
4944 #include <assert.h>
4945 /* Override any gcc2 internal prototype to avoid an error. */
4946 /* We use char because int might match the return type of a gcc2
4947 builtin and then its argument prototype would still apply. */
4948 char $ac_func();
4950 int main() {
4952 /* The GNU C library defines this for functions which it implements
4953 to always fail with ENOSYS. Some functions are actually named
4954 something starting with __ and the normal name is an alias. */
4955 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4956 choke me
4957 #else
4958 $ac_func();
4959 #endif
4961 ; return 0; }
4963 if { (eval echo configure:4964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4964 rm -rf conftest*
4965 eval "ac_cv_func_$ac_func=yes"
4966 else
4967 echo "configure: failed program was:" >&5
4968 cat conftest.$ac_ext >&5
4969 rm -rf conftest*
4970 eval "ac_cv_func_$ac_func=no"
4972 rm -f conftest*
4975 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4976 echo "$ac_t""yes" 1>&6
4977 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4978 cat >> confdefs.h <<EOF
4979 #define $ac_tr_func 1
4982 else
4983 echo "$ac_t""no" 1>&6
4985 done
4987 if test x"$ac_cv_func_connect" = x"no"; then
4988 case "$LIBS" in
4989 *-lnsl*) ;;
4990 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
4991 echo "configure:4992: checking for printf in -lnsl_s" >&5
4992 ac_lib_var=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
4993 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4994 echo $ac_n "(cached) $ac_c" 1>&6
4995 else
4996 ac_save_LIBS="$LIBS"
4997 LIBS="-lnsl_s $LIBS"
4998 cat > conftest.$ac_ext <<EOF
4999 #line 5000 "configure"
5000 #include "confdefs.h"
5001 /* Override any gcc2 internal prototype to avoid an error. */
5002 /* We use char because int might match the return type of a gcc2
5003 builtin and then its argument prototype would still apply. */
5004 char printf();
5006 int main() {
5007 printf()
5008 ; return 0; }
5010 if { (eval echo configure:5011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5011 rm -rf conftest*
5012 eval "ac_cv_lib_$ac_lib_var=yes"
5013 else
5014 echo "configure: failed program was:" >&5
5015 cat conftest.$ac_ext >&5
5016 rm -rf conftest*
5017 eval "ac_cv_lib_$ac_lib_var=no"
5019 rm -f conftest*
5020 LIBS="$ac_save_LIBS"
5023 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5024 echo "$ac_t""yes" 1>&6
5025 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5026 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5027 cat >> confdefs.h <<EOF
5028 #define $ac_tr_lib 1
5031 LIBS="-lnsl_s $LIBS"
5033 else
5034 echo "$ac_t""no" 1>&6
5037 esac
5038 case "$LIBS" in
5039 *-lnsl*) ;;
5040 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
5041 echo "configure:5042: checking for printf in -lnsl" >&5
5042 ac_lib_var=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
5043 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5044 echo $ac_n "(cached) $ac_c" 1>&6
5045 else
5046 ac_save_LIBS="$LIBS"
5047 LIBS="-lnsl $LIBS"
5048 cat > conftest.$ac_ext <<EOF
5049 #line 5050 "configure"
5050 #include "confdefs.h"
5051 /* Override any gcc2 internal prototype to avoid an error. */
5052 /* We use char because int might match the return type of a gcc2
5053 builtin and then its argument prototype would still apply. */
5054 char printf();
5056 int main() {
5057 printf()
5058 ; return 0; }
5060 if { (eval echo configure:5061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5061 rm -rf conftest*
5062 eval "ac_cv_lib_$ac_lib_var=yes"
5063 else
5064 echo "configure: failed program was:" >&5
5065 cat conftest.$ac_ext >&5
5066 rm -rf conftest*
5067 eval "ac_cv_lib_$ac_lib_var=no"
5069 rm -f conftest*
5070 LIBS="$ac_save_LIBS"
5073 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5074 echo "$ac_t""yes" 1>&6
5075 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5076 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5077 cat >> confdefs.h <<EOF
5078 #define $ac_tr_lib 1
5081 LIBS="-lnsl $LIBS"
5083 else
5084 echo "$ac_t""no" 1>&6
5087 esac
5088 case "$LIBS" in
5089 *-lsocket*) ;;
5090 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
5091 echo "configure:5092: checking for connect in -lsocket" >&5
5092 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
5093 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5094 echo $ac_n "(cached) $ac_c" 1>&6
5095 else
5096 ac_save_LIBS="$LIBS"
5097 LIBS="-lsocket $LIBS"
5098 cat > conftest.$ac_ext <<EOF
5099 #line 5100 "configure"
5100 #include "confdefs.h"
5101 /* Override any gcc2 internal prototype to avoid an error. */
5102 /* We use char because int might match the return type of a gcc2
5103 builtin and then its argument prototype would still apply. */
5104 char connect();
5106 int main() {
5107 connect()
5108 ; return 0; }
5110 if { (eval echo configure:5111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5111 rm -rf conftest*
5112 eval "ac_cv_lib_$ac_lib_var=yes"
5113 else
5114 echo "configure: failed program was:" >&5
5115 cat conftest.$ac_ext >&5
5116 rm -rf conftest*
5117 eval "ac_cv_lib_$ac_lib_var=no"
5119 rm -f conftest*
5120 LIBS="$ac_save_LIBS"
5123 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5124 echo "$ac_t""yes" 1>&6
5125 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5126 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5127 cat >> confdefs.h <<EOF
5128 #define $ac_tr_lib 1
5131 LIBS="-lsocket $LIBS"
5133 else
5134 echo "$ac_t""no" 1>&6
5137 esac
5138 case "$LIBS" in
5139 *-linet*) ;;
5140 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
5141 echo "configure:5142: checking for connect in -linet" >&5
5142 ac_lib_var=`echo inet'_'connect | sed 'y%./+-%__p_%'`
5143 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5144 echo $ac_n "(cached) $ac_c" 1>&6
5145 else
5146 ac_save_LIBS="$LIBS"
5147 LIBS="-linet $LIBS"
5148 cat > conftest.$ac_ext <<EOF
5149 #line 5150 "configure"
5150 #include "confdefs.h"
5151 /* Override any gcc2 internal prototype to avoid an error. */
5152 /* We use char because int might match the return type of a gcc2
5153 builtin and then its argument prototype would still apply. */
5154 char connect();
5156 int main() {
5157 connect()
5158 ; return 0; }
5160 if { (eval echo configure:5161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5161 rm -rf conftest*
5162 eval "ac_cv_lib_$ac_lib_var=yes"
5163 else
5164 echo "configure: failed program was:" >&5
5165 cat conftest.$ac_ext >&5
5166 rm -rf conftest*
5167 eval "ac_cv_lib_$ac_lib_var=no"
5169 rm -f conftest*
5170 LIBS="$ac_save_LIBS"
5173 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5174 echo "$ac_t""yes" 1>&6
5175 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5176 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5177 cat >> confdefs.h <<EOF
5178 #define $ac_tr_lib 1
5181 LIBS="-linet $LIBS"
5183 else
5184 echo "$ac_t""no" 1>&6
5187 esac
5188 if test x"$ac_cv_lib_socket_connect" = x"yes" ||
5189 test x"$ac_cv_lib_inet_connect" = x"yes"; then
5190 # ac_cv_func_connect=yes
5191 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
5192 cat >> confdefs.h <<\EOF
5193 #define HAVE_CONNECT 1
5199 ###############################################
5200 # test for where we get get_yp_default_domain() from
5201 for ac_func in yp_get_default_domain
5203 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5204 echo "configure:5205: checking for $ac_func" >&5
5205 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5206 echo $ac_n "(cached) $ac_c" 1>&6
5207 else
5208 cat > conftest.$ac_ext <<EOF
5209 #line 5210 "configure"
5210 #include "confdefs.h"
5211 /* System header to define __stub macros and hopefully few prototypes,
5212 which can conflict with char $ac_func(); below. */
5213 #include <assert.h>
5214 /* Override any gcc2 internal prototype to avoid an error. */
5215 /* We use char because int might match the return type of a gcc2
5216 builtin and then its argument prototype would still apply. */
5217 char $ac_func();
5219 int main() {
5221 /* The GNU C library defines this for functions which it implements
5222 to always fail with ENOSYS. Some functions are actually named
5223 something starting with __ and the normal name is an alias. */
5224 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5225 choke me
5226 #else
5227 $ac_func();
5228 #endif
5230 ; return 0; }
5232 if { (eval echo configure:5233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5233 rm -rf conftest*
5234 eval "ac_cv_func_$ac_func=yes"
5235 else
5236 echo "configure: failed program was:" >&5
5237 cat conftest.$ac_ext >&5
5238 rm -rf conftest*
5239 eval "ac_cv_func_$ac_func=no"
5241 rm -f conftest*
5244 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5245 echo "$ac_t""yes" 1>&6
5246 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5247 cat >> confdefs.h <<EOF
5248 #define $ac_tr_func 1
5251 else
5252 echo "$ac_t""no" 1>&6
5254 done
5256 if test x"$ac_cv_func_yp_get_default_domain" = x"no"; then
5257 echo $ac_n "checking for yp_get_default_domain in -lnsl""... $ac_c" 1>&6
5258 echo "configure:5259: checking for yp_get_default_domain in -lnsl" >&5
5259 ac_lib_var=`echo nsl'_'yp_get_default_domain | sed 'y%./+-%__p_%'`
5260 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5261 echo $ac_n "(cached) $ac_c" 1>&6
5262 else
5263 ac_save_LIBS="$LIBS"
5264 LIBS="-lnsl $LIBS"
5265 cat > conftest.$ac_ext <<EOF
5266 #line 5267 "configure"
5267 #include "confdefs.h"
5268 /* Override any gcc2 internal prototype to avoid an error. */
5269 /* We use char because int might match the return type of a gcc2
5270 builtin and then its argument prototype would still apply. */
5271 char yp_get_default_domain();
5273 int main() {
5274 yp_get_default_domain()
5275 ; return 0; }
5277 if { (eval echo configure:5278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5278 rm -rf conftest*
5279 eval "ac_cv_lib_$ac_lib_var=yes"
5280 else
5281 echo "configure: failed program was:" >&5
5282 cat conftest.$ac_ext >&5
5283 rm -rf conftest*
5284 eval "ac_cv_lib_$ac_lib_var=no"
5286 rm -f conftest*
5287 LIBS="$ac_save_LIBS"
5290 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5291 echo "$ac_t""yes" 1>&6
5292 LIBS="$LIBS -lnsl";
5293 cat >> confdefs.h <<\EOF
5294 #define HAVE_YP_GET_DEFAULT_DOMAIN 1
5297 else
5298 echo "$ac_t""no" 1>&6
5303 # Check if we have execl, if not we need to compile smbrun.
5304 for ac_func in execl
5306 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5307 echo "configure:5308: checking for $ac_func" >&5
5308 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5309 echo $ac_n "(cached) $ac_c" 1>&6
5310 else
5311 cat > conftest.$ac_ext <<EOF
5312 #line 5313 "configure"
5313 #include "confdefs.h"
5314 /* System header to define __stub macros and hopefully few prototypes,
5315 which can conflict with char $ac_func(); below. */
5316 #include <assert.h>
5317 /* Override any gcc2 internal prototype to avoid an error. */
5318 /* We use char because int might match the return type of a gcc2
5319 builtin and then its argument prototype would still apply. */
5320 char $ac_func();
5322 int main() {
5324 /* The GNU C library defines this for functions which it implements
5325 to always fail with ENOSYS. Some functions are actually named
5326 something starting with __ and the normal name is an alias. */
5327 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5328 choke me
5329 #else
5330 $ac_func();
5331 #endif
5333 ; return 0; }
5335 if { (eval echo configure:5336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5336 rm -rf conftest*
5337 eval "ac_cv_func_$ac_func=yes"
5338 else
5339 echo "configure: failed program was:" >&5
5340 cat conftest.$ac_ext >&5
5341 rm -rf conftest*
5342 eval "ac_cv_func_$ac_func=no"
5344 rm -f conftest*
5347 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5348 echo "$ac_t""yes" 1>&6
5349 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5350 cat >> confdefs.h <<EOF
5351 #define $ac_tr_func 1
5354 else
5355 echo "$ac_t""no" 1>&6
5357 done
5359 if test x"$ac_cv_func_execl" = x"no"; then
5360 RUNPROG="bin/smbrun"
5361 else
5362 RUNPROG=""
5365 for ac_func in dlopen dlclose dlsym dlerror waitpid getcwd strdup strndup strnlen strtoul strerror chown fchown chmod fchmod chroot link
5367 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5368 echo "configure:5369: checking for $ac_func" >&5
5369 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5370 echo $ac_n "(cached) $ac_c" 1>&6
5371 else
5372 cat > conftest.$ac_ext <<EOF
5373 #line 5374 "configure"
5374 #include "confdefs.h"
5375 /* System header to define __stub macros and hopefully few prototypes,
5376 which can conflict with char $ac_func(); below. */
5377 #include <assert.h>
5378 /* Override any gcc2 internal prototype to avoid an error. */
5379 /* We use char because int might match the return type of a gcc2
5380 builtin and then its argument prototype would still apply. */
5381 char $ac_func();
5383 int main() {
5385 /* The GNU C library defines this for functions which it implements
5386 to always fail with ENOSYS. Some functions are actually named
5387 something starting with __ and the normal name is an alias. */
5388 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5389 choke me
5390 #else
5391 $ac_func();
5392 #endif
5394 ; return 0; }
5396 if { (eval echo configure:5397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5397 rm -rf conftest*
5398 eval "ac_cv_func_$ac_func=yes"
5399 else
5400 echo "configure: failed program was:" >&5
5401 cat conftest.$ac_ext >&5
5402 rm -rf conftest*
5403 eval "ac_cv_func_$ac_func=no"
5405 rm -f conftest*
5408 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5409 echo "$ac_t""yes" 1>&6
5410 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5411 cat >> confdefs.h <<EOF
5412 #define $ac_tr_func 1
5415 else
5416 echo "$ac_t""no" 1>&6
5418 done
5420 for ac_func in fstat strchr utime utimes getrlimit fsync bzero memset strlcpy strlcat setpgid mknod mknod64
5422 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5423 echo "configure:5424: checking for $ac_func" >&5
5424 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5425 echo $ac_n "(cached) $ac_c" 1>&6
5426 else
5427 cat > conftest.$ac_ext <<EOF
5428 #line 5429 "configure"
5429 #include "confdefs.h"
5430 /* System header to define __stub macros and hopefully few prototypes,
5431 which can conflict with char $ac_func(); below. */
5432 #include <assert.h>
5433 /* Override any gcc2 internal prototype to avoid an error. */
5434 /* We use char because int might match the return type of a gcc2
5435 builtin and then its argument prototype would still apply. */
5436 char $ac_func();
5438 int main() {
5440 /* The GNU C library defines this for functions which it implements
5441 to always fail with ENOSYS. Some functions are actually named
5442 something starting with __ and the normal name is an alias. */
5443 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5444 choke me
5445 #else
5446 $ac_func();
5447 #endif
5449 ; return 0; }
5451 if { (eval echo configure:5452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5452 rm -rf conftest*
5453 eval "ac_cv_func_$ac_func=yes"
5454 else
5455 echo "configure: failed program was:" >&5
5456 cat conftest.$ac_ext >&5
5457 rm -rf conftest*
5458 eval "ac_cv_func_$ac_func=no"
5460 rm -f conftest*
5463 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5464 echo "$ac_t""yes" 1>&6
5465 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5466 cat >> confdefs.h <<EOF
5467 #define $ac_tr_func 1
5470 else
5471 echo "$ac_t""no" 1>&6
5473 done
5475 for ac_func in memmove vsnprintf snprintf asprintf vasprintf setsid glob strpbrk pipe crypt16 getauthuid
5477 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5478 echo "configure:5479: checking for $ac_func" >&5
5479 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5480 echo $ac_n "(cached) $ac_c" 1>&6
5481 else
5482 cat > conftest.$ac_ext <<EOF
5483 #line 5484 "configure"
5484 #include "confdefs.h"
5485 /* System header to define __stub macros and hopefully few prototypes,
5486 which can conflict with char $ac_func(); below. */
5487 #include <assert.h>
5488 /* Override any gcc2 internal prototype to avoid an error. */
5489 /* We use char because int might match the return type of a gcc2
5490 builtin and then its argument prototype would still apply. */
5491 char $ac_func();
5493 int main() {
5495 /* The GNU C library defines this for functions which it implements
5496 to always fail with ENOSYS. Some functions are actually named
5497 something starting with __ and the normal name is an alias. */
5498 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5499 choke me
5500 #else
5501 $ac_func();
5502 #endif
5504 ; return 0; }
5506 if { (eval echo configure:5507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5507 rm -rf conftest*
5508 eval "ac_cv_func_$ac_func=yes"
5509 else
5510 echo "configure: failed program was:" >&5
5511 cat conftest.$ac_ext >&5
5512 rm -rf conftest*
5513 eval "ac_cv_func_$ac_func=no"
5515 rm -f conftest*
5518 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5519 echo "$ac_t""yes" 1>&6
5520 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5521 cat >> confdefs.h <<EOF
5522 #define $ac_tr_func 1
5525 else
5526 echo "$ac_t""no" 1>&6
5528 done
5530 for ac_func in strftime sigprocmask sigblock sigaction sigset innetgr setnetgrent getnetgrent endnetgrent
5532 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5533 echo "configure:5534: checking for $ac_func" >&5
5534 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5535 echo $ac_n "(cached) $ac_c" 1>&6
5536 else
5537 cat > conftest.$ac_ext <<EOF
5538 #line 5539 "configure"
5539 #include "confdefs.h"
5540 /* System header to define __stub macros and hopefully few prototypes,
5541 which can conflict with char $ac_func(); below. */
5542 #include <assert.h>
5543 /* Override any gcc2 internal prototype to avoid an error. */
5544 /* We use char because int might match the return type of a gcc2
5545 builtin and then its argument prototype would still apply. */
5546 char $ac_func();
5548 int main() {
5550 /* The GNU C library defines this for functions which it implements
5551 to always fail with ENOSYS. Some functions are actually named
5552 something starting with __ and the normal name is an alias. */
5553 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5554 choke me
5555 #else
5556 $ac_func();
5557 #endif
5559 ; return 0; }
5561 if { (eval echo configure:5562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5562 rm -rf conftest*
5563 eval "ac_cv_func_$ac_func=yes"
5564 else
5565 echo "configure: failed program was:" >&5
5566 cat conftest.$ac_ext >&5
5567 rm -rf conftest*
5568 eval "ac_cv_func_$ac_func=no"
5570 rm -f conftest*
5573 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5574 echo "$ac_t""yes" 1>&6
5575 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5576 cat >> confdefs.h <<EOF
5577 #define $ac_tr_func 1
5580 else
5581 echo "$ac_t""no" 1>&6
5583 done
5585 for ac_func in initgroups select poll rdchk getgrnam getgrent pathconf realpath
5587 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5588 echo "configure:5589: checking for $ac_func" >&5
5589 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5590 echo $ac_n "(cached) $ac_c" 1>&6
5591 else
5592 cat > conftest.$ac_ext <<EOF
5593 #line 5594 "configure"
5594 #include "confdefs.h"
5595 /* System header to define __stub macros and hopefully few prototypes,
5596 which can conflict with char $ac_func(); below. */
5597 #include <assert.h>
5598 /* Override any gcc2 internal prototype to avoid an error. */
5599 /* We use char because int might match the return type of a gcc2
5600 builtin and then its argument prototype would still apply. */
5601 char $ac_func();
5603 int main() {
5605 /* The GNU C library defines this for functions which it implements
5606 to always fail with ENOSYS. Some functions are actually named
5607 something starting with __ and the normal name is an alias. */
5608 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5609 choke me
5610 #else
5611 $ac_func();
5612 #endif
5614 ; return 0; }
5616 if { (eval echo configure:5617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5617 rm -rf conftest*
5618 eval "ac_cv_func_$ac_func=yes"
5619 else
5620 echo "configure: failed program was:" >&5
5621 cat conftest.$ac_ext >&5
5622 rm -rf conftest*
5623 eval "ac_cv_func_$ac_func=no"
5625 rm -f conftest*
5628 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5629 echo "$ac_t""yes" 1>&6
5630 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5631 cat >> confdefs.h <<EOF
5632 #define $ac_tr_func 1
5635 else
5636 echo "$ac_t""no" 1>&6
5638 done
5640 for ac_func in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
5642 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5643 echo "configure:5644: checking for $ac_func" >&5
5644 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5645 echo $ac_n "(cached) $ac_c" 1>&6
5646 else
5647 cat > conftest.$ac_ext <<EOF
5648 #line 5649 "configure"
5649 #include "confdefs.h"
5650 /* System header to define __stub macros and hopefully few prototypes,
5651 which can conflict with char $ac_func(); below. */
5652 #include <assert.h>
5653 /* Override any gcc2 internal prototype to avoid an error. */
5654 /* We use char because int might match the return type of a gcc2
5655 builtin and then its argument prototype would still apply. */
5656 char $ac_func();
5658 int main() {
5660 /* The GNU C library defines this for functions which it implements
5661 to always fail with ENOSYS. Some functions are actually named
5662 something starting with __ and the normal name is an alias. */
5663 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5664 choke me
5665 #else
5666 $ac_func();
5667 #endif
5669 ; return 0; }
5671 if { (eval echo configure:5672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5672 rm -rf conftest*
5673 eval "ac_cv_func_$ac_func=yes"
5674 else
5675 echo "configure: failed program was:" >&5
5676 cat conftest.$ac_ext >&5
5677 rm -rf conftest*
5678 eval "ac_cv_func_$ac_func=no"
5680 rm -f conftest*
5683 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5684 echo "$ac_t""yes" 1>&6
5685 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5686 cat >> confdefs.h <<EOF
5687 #define $ac_tr_func 1
5690 else
5691 echo "$ac_t""no" 1>&6
5693 done
5695 for ac_func in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
5697 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5698 echo "configure:5699: checking for $ac_func" >&5
5699 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5700 echo $ac_n "(cached) $ac_c" 1>&6
5701 else
5702 cat > conftest.$ac_ext <<EOF
5703 #line 5704 "configure"
5704 #include "confdefs.h"
5705 /* System header to define __stub macros and hopefully few prototypes,
5706 which can conflict with char $ac_func(); below. */
5707 #include <assert.h>
5708 /* Override any gcc2 internal prototype to avoid an error. */
5709 /* We use char because int might match the return type of a gcc2
5710 builtin and then its argument prototype would still apply. */
5711 char $ac_func();
5713 int main() {
5715 /* The GNU C library defines this for functions which it implements
5716 to always fail with ENOSYS. Some functions are actually named
5717 something starting with __ and the normal name is an alias. */
5718 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5719 choke me
5720 #else
5721 $ac_func();
5722 #endif
5724 ; return 0; }
5726 if { (eval echo configure:5727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5727 rm -rf conftest*
5728 eval "ac_cv_func_$ac_func=yes"
5729 else
5730 echo "configure: failed program was:" >&5
5731 cat conftest.$ac_ext >&5
5732 rm -rf conftest*
5733 eval "ac_cv_func_$ac_func=no"
5735 rm -f conftest*
5738 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5739 echo "$ac_t""yes" 1>&6
5740 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5741 cat >> confdefs.h <<EOF
5742 #define $ac_tr_func 1
5745 else
5746 echo "$ac_t""no" 1>&6
5748 done
5750 for ac_func in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam setlinebuf
5752 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5753 echo "configure:5754: checking for $ac_func" >&5
5754 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5755 echo $ac_n "(cached) $ac_c" 1>&6
5756 else
5757 cat > conftest.$ac_ext <<EOF
5758 #line 5759 "configure"
5759 #include "confdefs.h"
5760 /* System header to define __stub macros and hopefully few prototypes,
5761 which can conflict with char $ac_func(); below. */
5762 #include <assert.h>
5763 /* Override any gcc2 internal prototype to avoid an error. */
5764 /* We use char because int might match the return type of a gcc2
5765 builtin and then its argument prototype would still apply. */
5766 char $ac_func();
5768 int main() {
5770 /* The GNU C library defines this for functions which it implements
5771 to always fail with ENOSYS. Some functions are actually named
5772 something starting with __ and the normal name is an alias. */
5773 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5774 choke me
5775 #else
5776 $ac_func();
5777 #endif
5779 ; return 0; }
5781 if { (eval echo configure:5782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5782 rm -rf conftest*
5783 eval "ac_cv_func_$ac_func=yes"
5784 else
5785 echo "configure: failed program was:" >&5
5786 cat conftest.$ac_ext >&5
5787 rm -rf conftest*
5788 eval "ac_cv_func_$ac_func=no"
5790 rm -f conftest*
5793 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5794 echo "$ac_t""yes" 1>&6
5795 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5796 cat >> confdefs.h <<EOF
5797 #define $ac_tr_func 1
5800 else
5801 echo "$ac_t""no" 1>&6
5803 done
5805 for ac_func in srandom random srand rand setenv usleep strcasecmp fcvt fcvtl symlink readlink
5807 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5808 echo "configure:5809: checking for $ac_func" >&5
5809 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5810 echo $ac_n "(cached) $ac_c" 1>&6
5811 else
5812 cat > conftest.$ac_ext <<EOF
5813 #line 5814 "configure"
5814 #include "confdefs.h"
5815 /* System header to define __stub macros and hopefully few prototypes,
5816 which can conflict with char $ac_func(); below. */
5817 #include <assert.h>
5818 /* Override any gcc2 internal prototype to avoid an error. */
5819 /* We use char because int might match the return type of a gcc2
5820 builtin and then its argument prototype would still apply. */
5821 char $ac_func();
5823 int main() {
5825 /* The GNU C library defines this for functions which it implements
5826 to always fail with ENOSYS. Some functions are actually named
5827 something starting with __ and the normal name is an alias. */
5828 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5829 choke me
5830 #else
5831 $ac_func();
5832 #endif
5834 ; return 0; }
5836 if { (eval echo configure:5837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5837 rm -rf conftest*
5838 eval "ac_cv_func_$ac_func=yes"
5839 else
5840 echo "configure: failed program was:" >&5
5841 cat conftest.$ac_ext >&5
5842 rm -rf conftest*
5843 eval "ac_cv_func_$ac_func=no"
5845 rm -f conftest*
5848 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5849 echo "$ac_t""yes" 1>&6
5850 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5851 cat >> confdefs.h <<EOF
5852 #define $ac_tr_func 1
5855 else
5856 echo "$ac_t""no" 1>&6
5858 done
5860 for ac_func in syslog vsyslog
5862 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5863 echo "configure:5864: checking for $ac_func" >&5
5864 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5865 echo $ac_n "(cached) $ac_c" 1>&6
5866 else
5867 cat > conftest.$ac_ext <<EOF
5868 #line 5869 "configure"
5869 #include "confdefs.h"
5870 /* System header to define __stub macros and hopefully few prototypes,
5871 which can conflict with char $ac_func(); below. */
5872 #include <assert.h>
5873 /* Override any gcc2 internal prototype to avoid an error. */
5874 /* We use char because int might match the return type of a gcc2
5875 builtin and then its argument prototype would still apply. */
5876 char $ac_func();
5878 int main() {
5880 /* The GNU C library defines this for functions which it implements
5881 to always fail with ENOSYS. Some functions are actually named
5882 something starting with __ and the normal name is an alias. */
5883 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5884 choke me
5885 #else
5886 $ac_func();
5887 #endif
5889 ; return 0; }
5891 if { (eval echo configure:5892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5892 rm -rf conftest*
5893 eval "ac_cv_func_$ac_func=yes"
5894 else
5895 echo "configure: failed program was:" >&5
5896 cat conftest.$ac_ext >&5
5897 rm -rf conftest*
5898 eval "ac_cv_func_$ac_func=no"
5900 rm -f conftest*
5903 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5904 echo "$ac_t""yes" 1>&6
5905 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5906 cat >> confdefs.h <<EOF
5907 #define $ac_tr_func 1
5910 else
5911 echo "$ac_t""no" 1>&6
5913 done
5916 # syscall() is needed for smbwrapper.
5917 for ac_func in syscall
5919 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5920 echo "configure:5921: checking for $ac_func" >&5
5921 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5922 echo $ac_n "(cached) $ac_c" 1>&6
5923 else
5924 cat > conftest.$ac_ext <<EOF
5925 #line 5926 "configure"
5926 #include "confdefs.h"
5927 /* System header to define __stub macros and hopefully few prototypes,
5928 which can conflict with char $ac_func(); below. */
5929 #include <assert.h>
5930 /* Override any gcc2 internal prototype to avoid an error. */
5931 /* We use char because int might match the return type of a gcc2
5932 builtin and then its argument prototype would still apply. */
5933 char $ac_func();
5935 int main() {
5937 /* The GNU C library defines this for functions which it implements
5938 to always fail with ENOSYS. Some functions are actually named
5939 something starting with __ and the normal name is an alias. */
5940 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5941 choke me
5942 #else
5943 $ac_func();
5944 #endif
5946 ; return 0; }
5948 if { (eval echo configure:5949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5949 rm -rf conftest*
5950 eval "ac_cv_func_$ac_func=yes"
5951 else
5952 echo "configure: failed program was:" >&5
5953 cat conftest.$ac_ext >&5
5954 rm -rf conftest*
5955 eval "ac_cv_func_$ac_func=no"
5957 rm -f conftest*
5960 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5961 echo "$ac_t""yes" 1>&6
5962 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5963 cat >> confdefs.h <<EOF
5964 #define $ac_tr_func 1
5967 else
5968 echo "$ac_t""no" 1>&6
5970 done
5973 for ac_func in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
5975 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5976 echo "configure:5977: checking for $ac_func" >&5
5977 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5978 echo $ac_n "(cached) $ac_c" 1>&6
5979 else
5980 cat > conftest.$ac_ext <<EOF
5981 #line 5982 "configure"
5982 #include "confdefs.h"
5983 /* System header to define __stub macros and hopefully few prototypes,
5984 which can conflict with char $ac_func(); below. */
5985 #include <assert.h>
5986 /* Override any gcc2 internal prototype to avoid an error. */
5987 /* We use char because int might match the return type of a gcc2
5988 builtin and then its argument prototype would still apply. */
5989 char $ac_func();
5991 int main() {
5993 /* The GNU C library defines this for functions which it implements
5994 to always fail with ENOSYS. Some functions are actually named
5995 something starting with __ and the normal name is an alias. */
5996 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5997 choke me
5998 #else
5999 $ac_func();
6000 #endif
6002 ; return 0; }
6004 if { (eval echo configure:6005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6005 rm -rf conftest*
6006 eval "ac_cv_func_$ac_func=yes"
6007 else
6008 echo "configure: failed program was:" >&5
6009 cat conftest.$ac_ext >&5
6010 rm -rf conftest*
6011 eval "ac_cv_func_$ac_func=no"
6013 rm -f conftest*
6016 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6017 echo "$ac_t""yes" 1>&6
6018 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6019 cat >> confdefs.h <<EOF
6020 #define $ac_tr_func 1
6023 else
6024 echo "$ac_t""no" 1>&6
6026 done
6028 for ac_func in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
6030 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6031 echo "configure:6032: checking for $ac_func" >&5
6032 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6033 echo $ac_n "(cached) $ac_c" 1>&6
6034 else
6035 cat > conftest.$ac_ext <<EOF
6036 #line 6037 "configure"
6037 #include "confdefs.h"
6038 /* System header to define __stub macros and hopefully few prototypes,
6039 which can conflict with char $ac_func(); below. */
6040 #include <assert.h>
6041 /* Override any gcc2 internal prototype to avoid an error. */
6042 /* We use char because int might match the return type of a gcc2
6043 builtin and then its argument prototype would still apply. */
6044 char $ac_func();
6046 int main() {
6048 /* The GNU C library defines this for functions which it implements
6049 to always fail with ENOSYS. Some functions are actually named
6050 something starting with __ and the normal name is an alias. */
6051 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6052 choke me
6053 #else
6054 $ac_func();
6055 #endif
6057 ; return 0; }
6059 if { (eval echo configure:6060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6060 rm -rf conftest*
6061 eval "ac_cv_func_$ac_func=yes"
6062 else
6063 echo "configure: failed program was:" >&5
6064 cat conftest.$ac_ext >&5
6065 rm -rf conftest*
6066 eval "ac_cv_func_$ac_func=no"
6068 rm -f conftest*
6071 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6072 echo "$ac_t""yes" 1>&6
6073 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6074 cat >> confdefs.h <<EOF
6075 #define $ac_tr_func 1
6078 else
6079 echo "$ac_t""no" 1>&6
6081 done
6083 for ac_func in __getcwd _getcwd
6085 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6086 echo "configure:6087: checking for $ac_func" >&5
6087 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6088 echo $ac_n "(cached) $ac_c" 1>&6
6089 else
6090 cat > conftest.$ac_ext <<EOF
6091 #line 6092 "configure"
6092 #include "confdefs.h"
6093 /* System header to define __stub macros and hopefully few prototypes,
6094 which can conflict with char $ac_func(); below. */
6095 #include <assert.h>
6096 /* Override any gcc2 internal prototype to avoid an error. */
6097 /* We use char because int might match the return type of a gcc2
6098 builtin and then its argument prototype would still apply. */
6099 char $ac_func();
6101 int main() {
6103 /* The GNU C library defines this for functions which it implements
6104 to always fail with ENOSYS. Some functions are actually named
6105 something starting with __ and the normal name is an alias. */
6106 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6107 choke me
6108 #else
6109 $ac_func();
6110 #endif
6112 ; return 0; }
6114 if { (eval echo configure:6115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6115 rm -rf conftest*
6116 eval "ac_cv_func_$ac_func=yes"
6117 else
6118 echo "configure: failed program was:" >&5
6119 cat conftest.$ac_ext >&5
6120 rm -rf conftest*
6121 eval "ac_cv_func_$ac_func=no"
6123 rm -f conftest*
6126 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6127 echo "$ac_t""yes" 1>&6
6128 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6129 cat >> confdefs.h <<EOF
6130 #define $ac_tr_func 1
6133 else
6134 echo "$ac_t""no" 1>&6
6136 done
6138 for ac_func in __xstat __fxstat __lxstat
6140 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6141 echo "configure:6142: checking for $ac_func" >&5
6142 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6143 echo $ac_n "(cached) $ac_c" 1>&6
6144 else
6145 cat > conftest.$ac_ext <<EOF
6146 #line 6147 "configure"
6147 #include "confdefs.h"
6148 /* System header to define __stub macros and hopefully few prototypes,
6149 which can conflict with char $ac_func(); below. */
6150 #include <assert.h>
6151 /* Override any gcc2 internal prototype to avoid an error. */
6152 /* We use char because int might match the return type of a gcc2
6153 builtin and then its argument prototype would still apply. */
6154 char $ac_func();
6156 int main() {
6158 /* The GNU C library defines this for functions which it implements
6159 to always fail with ENOSYS. Some functions are actually named
6160 something starting with __ and the normal name is an alias. */
6161 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6162 choke me
6163 #else
6164 $ac_func();
6165 #endif
6167 ; return 0; }
6169 if { (eval echo configure:6170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6170 rm -rf conftest*
6171 eval "ac_cv_func_$ac_func=yes"
6172 else
6173 echo "configure: failed program was:" >&5
6174 cat conftest.$ac_ext >&5
6175 rm -rf conftest*
6176 eval "ac_cv_func_$ac_func=no"
6178 rm -f conftest*
6181 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6182 echo "$ac_t""yes" 1>&6
6183 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6184 cat >> confdefs.h <<EOF
6185 #define $ac_tr_func 1
6188 else
6189 echo "$ac_t""no" 1>&6
6191 done
6193 for ac_func in _stat _lstat _fstat __stat __lstat __fstat
6195 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6196 echo "configure:6197: checking for $ac_func" >&5
6197 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6198 echo $ac_n "(cached) $ac_c" 1>&6
6199 else
6200 cat > conftest.$ac_ext <<EOF
6201 #line 6202 "configure"
6202 #include "confdefs.h"
6203 /* System header to define __stub macros and hopefully few prototypes,
6204 which can conflict with char $ac_func(); below. */
6205 #include <assert.h>
6206 /* Override any gcc2 internal prototype to avoid an error. */
6207 /* We use char because int might match the return type of a gcc2
6208 builtin and then its argument prototype would still apply. */
6209 char $ac_func();
6211 int main() {
6213 /* The GNU C library defines this for functions which it implements
6214 to always fail with ENOSYS. Some functions are actually named
6215 something starting with __ and the normal name is an alias. */
6216 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6217 choke me
6218 #else
6219 $ac_func();
6220 #endif
6222 ; return 0; }
6224 if { (eval echo configure:6225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6225 rm -rf conftest*
6226 eval "ac_cv_func_$ac_func=yes"
6227 else
6228 echo "configure: failed program was:" >&5
6229 cat conftest.$ac_ext >&5
6230 rm -rf conftest*
6231 eval "ac_cv_func_$ac_func=no"
6233 rm -f conftest*
6236 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6237 echo "$ac_t""yes" 1>&6
6238 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6239 cat >> confdefs.h <<EOF
6240 #define $ac_tr_func 1
6243 else
6244 echo "$ac_t""no" 1>&6
6246 done
6248 for ac_func in _acl __acl _facl __facl _open __open _chdir __chdir
6250 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6251 echo "configure:6252: checking for $ac_func" >&5
6252 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6253 echo $ac_n "(cached) $ac_c" 1>&6
6254 else
6255 cat > conftest.$ac_ext <<EOF
6256 #line 6257 "configure"
6257 #include "confdefs.h"
6258 /* System header to define __stub macros and hopefully few prototypes,
6259 which can conflict with char $ac_func(); below. */
6260 #include <assert.h>
6261 /* Override any gcc2 internal prototype to avoid an error. */
6262 /* We use char because int might match the return type of a gcc2
6263 builtin and then its argument prototype would still apply. */
6264 char $ac_func();
6266 int main() {
6268 /* The GNU C library defines this for functions which it implements
6269 to always fail with ENOSYS. Some functions are actually named
6270 something starting with __ and the normal name is an alias. */
6271 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6272 choke me
6273 #else
6274 $ac_func();
6275 #endif
6277 ; return 0; }
6279 if { (eval echo configure:6280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6280 rm -rf conftest*
6281 eval "ac_cv_func_$ac_func=yes"
6282 else
6283 echo "configure: failed program was:" >&5
6284 cat conftest.$ac_ext >&5
6285 rm -rf conftest*
6286 eval "ac_cv_func_$ac_func=no"
6288 rm -f conftest*
6291 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6292 echo "$ac_t""yes" 1>&6
6293 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6294 cat >> confdefs.h <<EOF
6295 #define $ac_tr_func 1
6298 else
6299 echo "$ac_t""no" 1>&6
6301 done
6303 for ac_func in _close __close _fchdir __fchdir _fcntl __fcntl
6305 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6306 echo "configure:6307: checking for $ac_func" >&5
6307 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6308 echo $ac_n "(cached) $ac_c" 1>&6
6309 else
6310 cat > conftest.$ac_ext <<EOF
6311 #line 6312 "configure"
6312 #include "confdefs.h"
6313 /* System header to define __stub macros and hopefully few prototypes,
6314 which can conflict with char $ac_func(); below. */
6315 #include <assert.h>
6316 /* Override any gcc2 internal prototype to avoid an error. */
6317 /* We use char because int might match the return type of a gcc2
6318 builtin and then its argument prototype would still apply. */
6319 char $ac_func();
6321 int main() {
6323 /* The GNU C library defines this for functions which it implements
6324 to always fail with ENOSYS. Some functions are actually named
6325 something starting with __ and the normal name is an alias. */
6326 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6327 choke me
6328 #else
6329 $ac_func();
6330 #endif
6332 ; return 0; }
6334 if { (eval echo configure:6335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6335 rm -rf conftest*
6336 eval "ac_cv_func_$ac_func=yes"
6337 else
6338 echo "configure: failed program was:" >&5
6339 cat conftest.$ac_ext >&5
6340 rm -rf conftest*
6341 eval "ac_cv_func_$ac_func=no"
6343 rm -f conftest*
6346 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6347 echo "$ac_t""yes" 1>&6
6348 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6349 cat >> confdefs.h <<EOF
6350 #define $ac_tr_func 1
6353 else
6354 echo "$ac_t""no" 1>&6
6356 done
6358 for ac_func in getdents _getdents __getdents _lseek __lseek _read __read
6360 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6361 echo "configure:6362: checking for $ac_func" >&5
6362 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6363 echo $ac_n "(cached) $ac_c" 1>&6
6364 else
6365 cat > conftest.$ac_ext <<EOF
6366 #line 6367 "configure"
6367 #include "confdefs.h"
6368 /* System header to define __stub macros and hopefully few prototypes,
6369 which can conflict with char $ac_func(); below. */
6370 #include <assert.h>
6371 /* Override any gcc2 internal prototype to avoid an error. */
6372 /* We use char because int might match the return type of a gcc2
6373 builtin and then its argument prototype would still apply. */
6374 char $ac_func();
6376 int main() {
6378 /* The GNU C library defines this for functions which it implements
6379 to always fail with ENOSYS. Some functions are actually named
6380 something starting with __ and the normal name is an alias. */
6381 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6382 choke me
6383 #else
6384 $ac_func();
6385 #endif
6387 ; return 0; }
6389 if { (eval echo configure:6390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6390 rm -rf conftest*
6391 eval "ac_cv_func_$ac_func=yes"
6392 else
6393 echo "configure: failed program was:" >&5
6394 cat conftest.$ac_ext >&5
6395 rm -rf conftest*
6396 eval "ac_cv_func_$ac_func=no"
6398 rm -f conftest*
6401 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6402 echo "$ac_t""yes" 1>&6
6403 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6404 cat >> confdefs.h <<EOF
6405 #define $ac_tr_func 1
6408 else
6409 echo "$ac_t""no" 1>&6
6411 done
6413 for ac_func in _write __write _fork __fork
6415 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6416 echo "configure:6417: checking for $ac_func" >&5
6417 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6418 echo $ac_n "(cached) $ac_c" 1>&6
6419 else
6420 cat > conftest.$ac_ext <<EOF
6421 #line 6422 "configure"
6422 #include "confdefs.h"
6423 /* System header to define __stub macros and hopefully few prototypes,
6424 which can conflict with char $ac_func(); below. */
6425 #include <assert.h>
6426 /* Override any gcc2 internal prototype to avoid an error. */
6427 /* We use char because int might match the return type of a gcc2
6428 builtin and then its argument prototype would still apply. */
6429 char $ac_func();
6431 int main() {
6433 /* The GNU C library defines this for functions which it implements
6434 to always fail with ENOSYS. Some functions are actually named
6435 something starting with __ and the normal name is an alias. */
6436 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6437 choke me
6438 #else
6439 $ac_func();
6440 #endif
6442 ; return 0; }
6444 if { (eval echo configure:6445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6445 rm -rf conftest*
6446 eval "ac_cv_func_$ac_func=yes"
6447 else
6448 echo "configure: failed program was:" >&5
6449 cat conftest.$ac_ext >&5
6450 rm -rf conftest*
6451 eval "ac_cv_func_$ac_func=no"
6453 rm -f conftest*
6456 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6457 echo "$ac_t""yes" 1>&6
6458 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6459 cat >> confdefs.h <<EOF
6460 #define $ac_tr_func 1
6463 else
6464 echo "$ac_t""no" 1>&6
6466 done
6468 for ac_func in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
6470 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6471 echo "configure:6472: checking for $ac_func" >&5
6472 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6473 echo $ac_n "(cached) $ac_c" 1>&6
6474 else
6475 cat > conftest.$ac_ext <<EOF
6476 #line 6477 "configure"
6477 #include "confdefs.h"
6478 /* System header to define __stub macros and hopefully few prototypes,
6479 which can conflict with char $ac_func(); below. */
6480 #include <assert.h>
6481 /* Override any gcc2 internal prototype to avoid an error. */
6482 /* We use char because int might match the return type of a gcc2
6483 builtin and then its argument prototype would still apply. */
6484 char $ac_func();
6486 int main() {
6488 /* The GNU C library defines this for functions which it implements
6489 to always fail with ENOSYS. Some functions are actually named
6490 something starting with __ and the normal name is an alias. */
6491 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6492 choke me
6493 #else
6494 $ac_func();
6495 #endif
6497 ; return 0; }
6499 if { (eval echo configure:6500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6500 rm -rf conftest*
6501 eval "ac_cv_func_$ac_func=yes"
6502 else
6503 echo "configure: failed program was:" >&5
6504 cat conftest.$ac_ext >&5
6505 rm -rf conftest*
6506 eval "ac_cv_func_$ac_func=no"
6508 rm -f conftest*
6511 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6512 echo "$ac_t""yes" 1>&6
6513 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6514 cat >> confdefs.h <<EOF
6515 #define $ac_tr_func 1
6518 else
6519 echo "$ac_t""no" 1>&6
6521 done
6523 for ac_func in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
6525 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6526 echo "configure:6527: checking for $ac_func" >&5
6527 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6528 echo $ac_n "(cached) $ac_c" 1>&6
6529 else
6530 cat > conftest.$ac_ext <<EOF
6531 #line 6532 "configure"
6532 #include "confdefs.h"
6533 /* System header to define __stub macros and hopefully few prototypes,
6534 which can conflict with char $ac_func(); below. */
6535 #include <assert.h>
6536 /* Override any gcc2 internal prototype to avoid an error. */
6537 /* We use char because int might match the return type of a gcc2
6538 builtin and then its argument prototype would still apply. */
6539 char $ac_func();
6541 int main() {
6543 /* The GNU C library defines this for functions which it implements
6544 to always fail with ENOSYS. Some functions are actually named
6545 something starting with __ and the normal name is an alias. */
6546 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6547 choke me
6548 #else
6549 $ac_func();
6550 #endif
6552 ; return 0; }
6554 if { (eval echo configure:6555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6555 rm -rf conftest*
6556 eval "ac_cv_func_$ac_func=yes"
6557 else
6558 echo "configure: failed program was:" >&5
6559 cat conftest.$ac_ext >&5
6560 rm -rf conftest*
6561 eval "ac_cv_func_$ac_func=no"
6563 rm -f conftest*
6566 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6567 echo "$ac_t""yes" 1>&6
6568 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6569 cat >> confdefs.h <<EOF
6570 #define $ac_tr_func 1
6573 else
6574 echo "$ac_t""no" 1>&6
6576 done
6578 for ac_func in pread _pread __pread pread64 _pread64 __pread64
6580 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6581 echo "configure:6582: checking for $ac_func" >&5
6582 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6583 echo $ac_n "(cached) $ac_c" 1>&6
6584 else
6585 cat > conftest.$ac_ext <<EOF
6586 #line 6587 "configure"
6587 #include "confdefs.h"
6588 /* System header to define __stub macros and hopefully few prototypes,
6589 which can conflict with char $ac_func(); below. */
6590 #include <assert.h>
6591 /* Override any gcc2 internal prototype to avoid an error. */
6592 /* We use char because int might match the return type of a gcc2
6593 builtin and then its argument prototype would still apply. */
6594 char $ac_func();
6596 int main() {
6598 /* The GNU C library defines this for functions which it implements
6599 to always fail with ENOSYS. Some functions are actually named
6600 something starting with __ and the normal name is an alias. */
6601 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6602 choke me
6603 #else
6604 $ac_func();
6605 #endif
6607 ; return 0; }
6609 if { (eval echo configure:6610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6610 rm -rf conftest*
6611 eval "ac_cv_func_$ac_func=yes"
6612 else
6613 echo "configure: failed program was:" >&5
6614 cat conftest.$ac_ext >&5
6615 rm -rf conftest*
6616 eval "ac_cv_func_$ac_func=no"
6618 rm -f conftest*
6621 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6622 echo "$ac_t""yes" 1>&6
6623 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6624 cat >> confdefs.h <<EOF
6625 #define $ac_tr_func 1
6628 else
6629 echo "$ac_t""no" 1>&6
6631 done
6633 for ac_func in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
6635 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6636 echo "configure:6637: checking for $ac_func" >&5
6637 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6638 echo $ac_n "(cached) $ac_c" 1>&6
6639 else
6640 cat > conftest.$ac_ext <<EOF
6641 #line 6642 "configure"
6642 #include "confdefs.h"
6643 /* System header to define __stub macros and hopefully few prototypes,
6644 which can conflict with char $ac_func(); below. */
6645 #include <assert.h>
6646 /* Override any gcc2 internal prototype to avoid an error. */
6647 /* We use char because int might match the return type of a gcc2
6648 builtin and then its argument prototype would still apply. */
6649 char $ac_func();
6651 int main() {
6653 /* The GNU C library defines this for functions which it implements
6654 to always fail with ENOSYS. Some functions are actually named
6655 something starting with __ and the normal name is an alias. */
6656 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6657 choke me
6658 #else
6659 $ac_func();
6660 #endif
6662 ; return 0; }
6664 if { (eval echo configure:6665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6665 rm -rf conftest*
6666 eval "ac_cv_func_$ac_func=yes"
6667 else
6668 echo "configure: failed program was:" >&5
6669 cat conftest.$ac_ext >&5
6670 rm -rf conftest*
6671 eval "ac_cv_func_$ac_func=no"
6673 rm -f conftest*
6676 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6677 echo "$ac_t""yes" 1>&6
6678 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6679 cat >> confdefs.h <<EOF
6680 #define $ac_tr_func 1
6683 else
6684 echo "$ac_t""no" 1>&6
6686 done
6688 for ac_func in open64 _open64 __open64 creat64
6690 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6691 echo "configure:6692: checking for $ac_func" >&5
6692 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6693 echo $ac_n "(cached) $ac_c" 1>&6
6694 else
6695 cat > conftest.$ac_ext <<EOF
6696 #line 6697 "configure"
6697 #include "confdefs.h"
6698 /* System header to define __stub macros and hopefully few prototypes,
6699 which can conflict with char $ac_func(); below. */
6700 #include <assert.h>
6701 /* Override any gcc2 internal prototype to avoid an error. */
6702 /* We use char because int might match the return type of a gcc2
6703 builtin and then its argument prototype would still apply. */
6704 char $ac_func();
6706 int main() {
6708 /* The GNU C library defines this for functions which it implements
6709 to always fail with ENOSYS. Some functions are actually named
6710 something starting with __ and the normal name is an alias. */
6711 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6712 choke me
6713 #else
6714 $ac_func();
6715 #endif
6717 ; return 0; }
6719 if { (eval echo configure:6720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6720 rm -rf conftest*
6721 eval "ac_cv_func_$ac_func=yes"
6722 else
6723 echo "configure: failed program was:" >&5
6724 cat conftest.$ac_ext >&5
6725 rm -rf conftest*
6726 eval "ac_cv_func_$ac_func=no"
6728 rm -f conftest*
6731 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6732 echo "$ac_t""yes" 1>&6
6733 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6734 cat >> confdefs.h <<EOF
6735 #define $ac_tr_func 1
6738 else
6739 echo "$ac_t""no" 1>&6
6741 done
6745 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
6748 if test x$ac_cv_func_stat64 = xno ; then
6749 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
6750 echo "configure:6751: checking for stat64 in <sys/stat.h>" >&5
6751 cat > conftest.$ac_ext <<EOF
6752 #line 6753 "configure"
6753 #include "confdefs.h"
6755 #if defined(HAVE_UNISTD_H)
6756 #include <unistd.h>
6757 #endif
6758 #include <sys/stat.h>
6760 int main() {
6761 struct stat64 st64; exit(stat64(".",&st64));
6762 ; return 0; }
6764 if { (eval echo configure:6765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6765 rm -rf conftest*
6766 ac_cv_func_stat64=yes
6767 else
6768 echo "configure: failed program was:" >&5
6769 cat conftest.$ac_ext >&5
6771 rm -f conftest*
6772 echo "$ac_t""$ac_cv_func_stat64" 1>&6
6773 if test x$ac_cv_func_stat64 = xyes ; then
6774 cat >> confdefs.h <<\EOF
6775 #define HAVE_STAT64 1
6781 if test x$ac_cv_func_lstat64 = xno ; then
6782 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
6783 echo "configure:6784: checking for lstat64 in <sys/stat.h>" >&5
6784 cat > conftest.$ac_ext <<EOF
6785 #line 6786 "configure"
6786 #include "confdefs.h"
6788 #if defined(HAVE_UNISTD_H)
6789 #include <unistd.h>
6790 #endif
6791 #include <sys/stat.h>
6793 int main() {
6794 struct stat64 st64; exit(lstat64(".",&st64));
6795 ; return 0; }
6797 if { (eval echo configure:6798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6798 rm -rf conftest*
6799 ac_cv_func_lstat64=yes
6800 else
6801 echo "configure: failed program was:" >&5
6802 cat conftest.$ac_ext >&5
6804 rm -f conftest*
6805 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
6806 if test x$ac_cv_func_lstat64 = xyes ; then
6807 cat >> confdefs.h <<\EOF
6808 #define HAVE_LSTAT64 1
6814 if test x$ac_cv_func_fstat64 = xno ; then
6815 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
6816 echo "configure:6817: checking for fstat64 in <sys/stat.h>" >&5
6817 cat > conftest.$ac_ext <<EOF
6818 #line 6819 "configure"
6819 #include "confdefs.h"
6821 #if defined(HAVE_UNISTD_H)
6822 #include <unistd.h>
6823 #endif
6824 #include <sys/stat.h>
6826 int main() {
6827 struct stat64 st64; exit(fstat64(0,&st64));
6828 ; return 0; }
6830 if { (eval echo configure:6831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6831 rm -rf conftest*
6832 ac_cv_func_fstat64=yes
6833 else
6834 echo "configure: failed program was:" >&5
6835 cat conftest.$ac_ext >&5
6837 rm -f conftest*
6838 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
6839 if test x$ac_cv_func_fstat64 = xyes ; then
6840 cat >> confdefs.h <<\EOF
6841 #define HAVE_FSTAT64 1
6848 # If no strcasecmp, check for it in some known places
6849 # It is in -lresolv on ReliantUNIX and UnixWare
6850 # -lresolve *must* follow -lnsl for name resolution to work properly
6853 if test x$ac_cv_func_strcasecmp = xno ; then
6854 echo $ac_n "checking for strcasecmp in -lresolv""... $ac_c" 1>&6
6855 echo "configure:6856: checking for strcasecmp in -lresolv" >&5
6856 ac_lib_var=`echo resolv'_'strcasecmp | sed 'y%./+-%__p_%'`
6857 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6858 echo $ac_n "(cached) $ac_c" 1>&6
6859 else
6860 ac_save_LIBS="$LIBS"
6861 LIBS="-lresolv $LIBS"
6862 cat > conftest.$ac_ext <<EOF
6863 #line 6864 "configure"
6864 #include "confdefs.h"
6865 /* Override any gcc2 internal prototype to avoid an error. */
6866 /* We use char because int might match the return type of a gcc2
6867 builtin and then its argument prototype would still apply. */
6868 char strcasecmp();
6870 int main() {
6871 strcasecmp()
6872 ; return 0; }
6874 if { (eval echo configure:6875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6875 rm -rf conftest*
6876 eval "ac_cv_lib_$ac_lib_var=yes"
6877 else
6878 echo "configure: failed program was:" >&5
6879 cat conftest.$ac_ext >&5
6880 rm -rf conftest*
6881 eval "ac_cv_lib_$ac_lib_var=no"
6883 rm -f conftest*
6884 LIBS="$ac_save_LIBS"
6887 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6888 echo "$ac_t""yes" 1>&6
6889 LIBS="$LIBS -lresolv"
6890 cat >> confdefs.h <<\EOF
6891 #define HAVE_STRCASECMP 1
6894 else
6895 echo "$ac_t""no" 1>&6
6901 # Check for the functions putprpwnam, set_auth_parameters,
6902 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
6903 # Needed for OSF1 and HPUX.
6906 case "$LIBS" in
6907 *-lsecurity*) for ac_func in putprpwnam
6909 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6910 echo "configure:6911: checking for $ac_func" >&5
6911 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6912 echo $ac_n "(cached) $ac_c" 1>&6
6913 else
6914 cat > conftest.$ac_ext <<EOF
6915 #line 6916 "configure"
6916 #include "confdefs.h"
6917 /* System header to define __stub macros and hopefully few prototypes,
6918 which can conflict with char $ac_func(); below. */
6919 #include <assert.h>
6920 /* Override any gcc2 internal prototype to avoid an error. */
6921 /* We use char because int might match the return type of a gcc2
6922 builtin and then its argument prototype would still apply. */
6923 char $ac_func();
6925 int main() {
6927 /* The GNU C library defines this for functions which it implements
6928 to always fail with ENOSYS. Some functions are actually named
6929 something starting with __ and the normal name is an alias. */
6930 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6931 choke me
6932 #else
6933 $ac_func();
6934 #endif
6936 ; return 0; }
6938 if { (eval echo configure:6939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6939 rm -rf conftest*
6940 eval "ac_cv_func_$ac_func=yes"
6941 else
6942 echo "configure: failed program was:" >&5
6943 cat conftest.$ac_ext >&5
6944 rm -rf conftest*
6945 eval "ac_cv_func_$ac_func=no"
6947 rm -f conftest*
6950 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6951 echo "$ac_t""yes" 1>&6
6952 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6953 cat >> confdefs.h <<EOF
6954 #define $ac_tr_func 1
6957 else
6958 echo "$ac_t""no" 1>&6
6960 done
6962 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
6963 echo "configure:6964: checking for putprpwnam in -lsecurity" >&5
6964 ac_lib_var=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
6965 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6966 echo $ac_n "(cached) $ac_c" 1>&6
6967 else
6968 ac_save_LIBS="$LIBS"
6969 LIBS="-lsecurity $LIBS"
6970 cat > conftest.$ac_ext <<EOF
6971 #line 6972 "configure"
6972 #include "confdefs.h"
6973 /* Override any gcc2 internal prototype to avoid an error. */
6974 /* We use char because int might match the return type of a gcc2
6975 builtin and then its argument prototype would still apply. */
6976 char putprpwnam();
6978 int main() {
6979 putprpwnam()
6980 ; return 0; }
6982 if { (eval echo configure:6983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6983 rm -rf conftest*
6984 eval "ac_cv_lib_$ac_lib_var=yes"
6985 else
6986 echo "configure: failed program was:" >&5
6987 cat conftest.$ac_ext >&5
6988 rm -rf conftest*
6989 eval "ac_cv_lib_$ac_lib_var=no"
6991 rm -f conftest*
6992 LIBS="$ac_save_LIBS"
6995 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6996 echo "$ac_t""yes" 1>&6
6997 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6998 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6999 cat >> confdefs.h <<EOF
7000 #define $ac_tr_lib 1
7003 LIBS="-lsecurity $LIBS"
7005 else
7006 echo "$ac_t""no" 1>&6
7009 for ac_func in putprpwnam
7011 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7012 echo "configure:7013: checking for $ac_func" >&5
7013 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7014 echo $ac_n "(cached) $ac_c" 1>&6
7015 else
7016 cat > conftest.$ac_ext <<EOF
7017 #line 7018 "configure"
7018 #include "confdefs.h"
7019 /* System header to define __stub macros and hopefully few prototypes,
7020 which can conflict with char $ac_func(); below. */
7021 #include <assert.h>
7022 /* Override any gcc2 internal prototype to avoid an error. */
7023 /* We use char because int might match the return type of a gcc2
7024 builtin and then its argument prototype would still apply. */
7025 char $ac_func();
7027 int main() {
7029 /* The GNU C library defines this for functions which it implements
7030 to always fail with ENOSYS. Some functions are actually named
7031 something starting with __ and the normal name is an alias. */
7032 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7033 choke me
7034 #else
7035 $ac_func();
7036 #endif
7038 ; return 0; }
7040 if { (eval echo configure:7041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7041 rm -rf conftest*
7042 eval "ac_cv_func_$ac_func=yes"
7043 else
7044 echo "configure: failed program was:" >&5
7045 cat conftest.$ac_ext >&5
7046 rm -rf conftest*
7047 eval "ac_cv_func_$ac_func=no"
7049 rm -f conftest*
7052 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7053 echo "$ac_t""yes" 1>&6
7054 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7055 cat >> confdefs.h <<EOF
7056 #define $ac_tr_func 1
7059 else
7060 echo "$ac_t""no" 1>&6
7062 done
7065 esac
7067 case "$LIBS" in
7068 *-lsec*) for ac_func in putprpwnam
7070 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7071 echo "configure:7072: checking for $ac_func" >&5
7072 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7073 echo $ac_n "(cached) $ac_c" 1>&6
7074 else
7075 cat > conftest.$ac_ext <<EOF
7076 #line 7077 "configure"
7077 #include "confdefs.h"
7078 /* System header to define __stub macros and hopefully few prototypes,
7079 which can conflict with char $ac_func(); below. */
7080 #include <assert.h>
7081 /* Override any gcc2 internal prototype to avoid an error. */
7082 /* We use char because int might match the return type of a gcc2
7083 builtin and then its argument prototype would still apply. */
7084 char $ac_func();
7086 int main() {
7088 /* The GNU C library defines this for functions which it implements
7089 to always fail with ENOSYS. Some functions are actually named
7090 something starting with __ and the normal name is an alias. */
7091 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7092 choke me
7093 #else
7094 $ac_func();
7095 #endif
7097 ; return 0; }
7099 if { (eval echo configure:7100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7100 rm -rf conftest*
7101 eval "ac_cv_func_$ac_func=yes"
7102 else
7103 echo "configure: failed program was:" >&5
7104 cat conftest.$ac_ext >&5
7105 rm -rf conftest*
7106 eval "ac_cv_func_$ac_func=no"
7108 rm -f conftest*
7111 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7112 echo "$ac_t""yes" 1>&6
7113 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7114 cat >> confdefs.h <<EOF
7115 #define $ac_tr_func 1
7118 else
7119 echo "$ac_t""no" 1>&6
7121 done
7123 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
7124 echo "configure:7125: checking for putprpwnam in -lsec" >&5
7125 ac_lib_var=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
7126 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7127 echo $ac_n "(cached) $ac_c" 1>&6
7128 else
7129 ac_save_LIBS="$LIBS"
7130 LIBS="-lsec $LIBS"
7131 cat > conftest.$ac_ext <<EOF
7132 #line 7133 "configure"
7133 #include "confdefs.h"
7134 /* Override any gcc2 internal prototype to avoid an error. */
7135 /* We use char because int might match the return type of a gcc2
7136 builtin and then its argument prototype would still apply. */
7137 char putprpwnam();
7139 int main() {
7140 putprpwnam()
7141 ; return 0; }
7143 if { (eval echo configure:7144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7144 rm -rf conftest*
7145 eval "ac_cv_lib_$ac_lib_var=yes"
7146 else
7147 echo "configure: failed program was:" >&5
7148 cat conftest.$ac_ext >&5
7149 rm -rf conftest*
7150 eval "ac_cv_lib_$ac_lib_var=no"
7152 rm -f conftest*
7153 LIBS="$ac_save_LIBS"
7156 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7157 echo "$ac_t""yes" 1>&6
7158 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7159 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7160 cat >> confdefs.h <<EOF
7161 #define $ac_tr_lib 1
7164 LIBS="-lsec $LIBS"
7166 else
7167 echo "$ac_t""no" 1>&6
7170 for ac_func in putprpwnam
7172 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7173 echo "configure:7174: checking for $ac_func" >&5
7174 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7175 echo $ac_n "(cached) $ac_c" 1>&6
7176 else
7177 cat > conftest.$ac_ext <<EOF
7178 #line 7179 "configure"
7179 #include "confdefs.h"
7180 /* System header to define __stub macros and hopefully few prototypes,
7181 which can conflict with char $ac_func(); below. */
7182 #include <assert.h>
7183 /* Override any gcc2 internal prototype to avoid an error. */
7184 /* We use char because int might match the return type of a gcc2
7185 builtin and then its argument prototype would still apply. */
7186 char $ac_func();
7188 int main() {
7190 /* The GNU C library defines this for functions which it implements
7191 to always fail with ENOSYS. Some functions are actually named
7192 something starting with __ and the normal name is an alias. */
7193 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7194 choke me
7195 #else
7196 $ac_func();
7197 #endif
7199 ; return 0; }
7201 if { (eval echo configure:7202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7202 rm -rf conftest*
7203 eval "ac_cv_func_$ac_func=yes"
7204 else
7205 echo "configure: failed program was:" >&5
7206 cat conftest.$ac_ext >&5
7207 rm -rf conftest*
7208 eval "ac_cv_func_$ac_func=no"
7210 rm -f conftest*
7213 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7214 echo "$ac_t""yes" 1>&6
7215 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7216 cat >> confdefs.h <<EOF
7217 #define $ac_tr_func 1
7220 else
7221 echo "$ac_t""no" 1>&6
7223 done
7226 esac
7229 case "$LIBS" in
7230 *-lsecurity*) for ac_func in set_auth_parameters
7232 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7233 echo "configure:7234: checking for $ac_func" >&5
7234 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7235 echo $ac_n "(cached) $ac_c" 1>&6
7236 else
7237 cat > conftest.$ac_ext <<EOF
7238 #line 7239 "configure"
7239 #include "confdefs.h"
7240 /* System header to define __stub macros and hopefully few prototypes,
7241 which can conflict with char $ac_func(); below. */
7242 #include <assert.h>
7243 /* Override any gcc2 internal prototype to avoid an error. */
7244 /* We use char because int might match the return type of a gcc2
7245 builtin and then its argument prototype would still apply. */
7246 char $ac_func();
7248 int main() {
7250 /* The GNU C library defines this for functions which it implements
7251 to always fail with ENOSYS. Some functions are actually named
7252 something starting with __ and the normal name is an alias. */
7253 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7254 choke me
7255 #else
7256 $ac_func();
7257 #endif
7259 ; return 0; }
7261 if { (eval echo configure:7262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7262 rm -rf conftest*
7263 eval "ac_cv_func_$ac_func=yes"
7264 else
7265 echo "configure: failed program was:" >&5
7266 cat conftest.$ac_ext >&5
7267 rm -rf conftest*
7268 eval "ac_cv_func_$ac_func=no"
7270 rm -f conftest*
7273 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7274 echo "$ac_t""yes" 1>&6
7275 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7276 cat >> confdefs.h <<EOF
7277 #define $ac_tr_func 1
7280 else
7281 echo "$ac_t""no" 1>&6
7283 done
7285 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
7286 echo "configure:7287: checking for set_auth_parameters in -lsecurity" >&5
7287 ac_lib_var=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7288 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7289 echo $ac_n "(cached) $ac_c" 1>&6
7290 else
7291 ac_save_LIBS="$LIBS"
7292 LIBS="-lsecurity $LIBS"
7293 cat > conftest.$ac_ext <<EOF
7294 #line 7295 "configure"
7295 #include "confdefs.h"
7296 /* Override any gcc2 internal prototype to avoid an error. */
7297 /* We use char because int might match the return type of a gcc2
7298 builtin and then its argument prototype would still apply. */
7299 char set_auth_parameters();
7301 int main() {
7302 set_auth_parameters()
7303 ; return 0; }
7305 if { (eval echo configure:7306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7306 rm -rf conftest*
7307 eval "ac_cv_lib_$ac_lib_var=yes"
7308 else
7309 echo "configure: failed program was:" >&5
7310 cat conftest.$ac_ext >&5
7311 rm -rf conftest*
7312 eval "ac_cv_lib_$ac_lib_var=no"
7314 rm -f conftest*
7315 LIBS="$ac_save_LIBS"
7318 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7319 echo "$ac_t""yes" 1>&6
7320 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7321 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7322 cat >> confdefs.h <<EOF
7323 #define $ac_tr_lib 1
7326 LIBS="-lsecurity $LIBS"
7328 else
7329 echo "$ac_t""no" 1>&6
7332 for ac_func in set_auth_parameters
7334 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7335 echo "configure:7336: checking for $ac_func" >&5
7336 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7337 echo $ac_n "(cached) $ac_c" 1>&6
7338 else
7339 cat > conftest.$ac_ext <<EOF
7340 #line 7341 "configure"
7341 #include "confdefs.h"
7342 /* System header to define __stub macros and hopefully few prototypes,
7343 which can conflict with char $ac_func(); below. */
7344 #include <assert.h>
7345 /* Override any gcc2 internal prototype to avoid an error. */
7346 /* We use char because int might match the return type of a gcc2
7347 builtin and then its argument prototype would still apply. */
7348 char $ac_func();
7350 int main() {
7352 /* The GNU C library defines this for functions which it implements
7353 to always fail with ENOSYS. Some functions are actually named
7354 something starting with __ and the normal name is an alias. */
7355 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7356 choke me
7357 #else
7358 $ac_func();
7359 #endif
7361 ; return 0; }
7363 if { (eval echo configure:7364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7364 rm -rf conftest*
7365 eval "ac_cv_func_$ac_func=yes"
7366 else
7367 echo "configure: failed program was:" >&5
7368 cat conftest.$ac_ext >&5
7369 rm -rf conftest*
7370 eval "ac_cv_func_$ac_func=no"
7372 rm -f conftest*
7375 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7376 echo "$ac_t""yes" 1>&6
7377 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7378 cat >> confdefs.h <<EOF
7379 #define $ac_tr_func 1
7382 else
7383 echo "$ac_t""no" 1>&6
7385 done
7388 esac
7390 case "$LIBS" in
7391 *-lsec*) for ac_func in set_auth_parameters
7393 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7394 echo "configure:7395: checking for $ac_func" >&5
7395 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7396 echo $ac_n "(cached) $ac_c" 1>&6
7397 else
7398 cat > conftest.$ac_ext <<EOF
7399 #line 7400 "configure"
7400 #include "confdefs.h"
7401 /* System header to define __stub macros and hopefully few prototypes,
7402 which can conflict with char $ac_func(); below. */
7403 #include <assert.h>
7404 /* Override any gcc2 internal prototype to avoid an error. */
7405 /* We use char because int might match the return type of a gcc2
7406 builtin and then its argument prototype would still apply. */
7407 char $ac_func();
7409 int main() {
7411 /* The GNU C library defines this for functions which it implements
7412 to always fail with ENOSYS. Some functions are actually named
7413 something starting with __ and the normal name is an alias. */
7414 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7415 choke me
7416 #else
7417 $ac_func();
7418 #endif
7420 ; return 0; }
7422 if { (eval echo configure:7423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7423 rm -rf conftest*
7424 eval "ac_cv_func_$ac_func=yes"
7425 else
7426 echo "configure: failed program was:" >&5
7427 cat conftest.$ac_ext >&5
7428 rm -rf conftest*
7429 eval "ac_cv_func_$ac_func=no"
7431 rm -f conftest*
7434 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7435 echo "$ac_t""yes" 1>&6
7436 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7437 cat >> confdefs.h <<EOF
7438 #define $ac_tr_func 1
7441 else
7442 echo "$ac_t""no" 1>&6
7444 done
7446 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
7447 echo "configure:7448: checking for set_auth_parameters in -lsec" >&5
7448 ac_lib_var=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7449 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7450 echo $ac_n "(cached) $ac_c" 1>&6
7451 else
7452 ac_save_LIBS="$LIBS"
7453 LIBS="-lsec $LIBS"
7454 cat > conftest.$ac_ext <<EOF
7455 #line 7456 "configure"
7456 #include "confdefs.h"
7457 /* Override any gcc2 internal prototype to avoid an error. */
7458 /* We use char because int might match the return type of a gcc2
7459 builtin and then its argument prototype would still apply. */
7460 char set_auth_parameters();
7462 int main() {
7463 set_auth_parameters()
7464 ; return 0; }
7466 if { (eval echo configure:7467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7467 rm -rf conftest*
7468 eval "ac_cv_lib_$ac_lib_var=yes"
7469 else
7470 echo "configure: failed program was:" >&5
7471 cat conftest.$ac_ext >&5
7472 rm -rf conftest*
7473 eval "ac_cv_lib_$ac_lib_var=no"
7475 rm -f conftest*
7476 LIBS="$ac_save_LIBS"
7479 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7480 echo "$ac_t""yes" 1>&6
7481 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7482 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7483 cat >> confdefs.h <<EOF
7484 #define $ac_tr_lib 1
7487 LIBS="-lsec $LIBS"
7489 else
7490 echo "$ac_t""no" 1>&6
7493 for ac_func in set_auth_parameters
7495 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7496 echo "configure:7497: checking for $ac_func" >&5
7497 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7498 echo $ac_n "(cached) $ac_c" 1>&6
7499 else
7500 cat > conftest.$ac_ext <<EOF
7501 #line 7502 "configure"
7502 #include "confdefs.h"
7503 /* System header to define __stub macros and hopefully few prototypes,
7504 which can conflict with char $ac_func(); below. */
7505 #include <assert.h>
7506 /* Override any gcc2 internal prototype to avoid an error. */
7507 /* We use char because int might match the return type of a gcc2
7508 builtin and then its argument prototype would still apply. */
7509 char $ac_func();
7511 int main() {
7513 /* The GNU C library defines this for functions which it implements
7514 to always fail with ENOSYS. Some functions are actually named
7515 something starting with __ and the normal name is an alias. */
7516 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7517 choke me
7518 #else
7519 $ac_func();
7520 #endif
7522 ; return 0; }
7524 if { (eval echo configure:7525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7525 rm -rf conftest*
7526 eval "ac_cv_func_$ac_func=yes"
7527 else
7528 echo "configure: failed program was:" >&5
7529 cat conftest.$ac_ext >&5
7530 rm -rf conftest*
7531 eval "ac_cv_func_$ac_func=no"
7533 rm -f conftest*
7536 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7537 echo "$ac_t""yes" 1>&6
7538 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7539 cat >> confdefs.h <<EOF
7540 #define $ac_tr_func 1
7543 else
7544 echo "$ac_t""no" 1>&6
7546 done
7549 esac
7552 # UnixWare 7.x has its getspnam in -lgen
7553 case "$LIBS" in
7554 *-lgen*) for ac_func in getspnam
7556 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7557 echo "configure:7558: checking for $ac_func" >&5
7558 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7559 echo $ac_n "(cached) $ac_c" 1>&6
7560 else
7561 cat > conftest.$ac_ext <<EOF
7562 #line 7563 "configure"
7563 #include "confdefs.h"
7564 /* System header to define __stub macros and hopefully few prototypes,
7565 which can conflict with char $ac_func(); below. */
7566 #include <assert.h>
7567 /* Override any gcc2 internal prototype to avoid an error. */
7568 /* We use char because int might match the return type of a gcc2
7569 builtin and then its argument prototype would still apply. */
7570 char $ac_func();
7572 int main() {
7574 /* The GNU C library defines this for functions which it implements
7575 to always fail with ENOSYS. Some functions are actually named
7576 something starting with __ and the normal name is an alias. */
7577 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7578 choke me
7579 #else
7580 $ac_func();
7581 #endif
7583 ; return 0; }
7585 if { (eval echo configure:7586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7586 rm -rf conftest*
7587 eval "ac_cv_func_$ac_func=yes"
7588 else
7589 echo "configure: failed program was:" >&5
7590 cat conftest.$ac_ext >&5
7591 rm -rf conftest*
7592 eval "ac_cv_func_$ac_func=no"
7594 rm -f conftest*
7597 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7598 echo "$ac_t""yes" 1>&6
7599 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7600 cat >> confdefs.h <<EOF
7601 #define $ac_tr_func 1
7604 else
7605 echo "$ac_t""no" 1>&6
7607 done
7609 *) echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
7610 echo "configure:7611: checking for getspnam in -lgen" >&5
7611 ac_lib_var=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
7612 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7613 echo $ac_n "(cached) $ac_c" 1>&6
7614 else
7615 ac_save_LIBS="$LIBS"
7616 LIBS="-lgen $LIBS"
7617 cat > conftest.$ac_ext <<EOF
7618 #line 7619 "configure"
7619 #include "confdefs.h"
7620 /* Override any gcc2 internal prototype to avoid an error. */
7621 /* We use char because int might match the return type of a gcc2
7622 builtin and then its argument prototype would still apply. */
7623 char getspnam();
7625 int main() {
7626 getspnam()
7627 ; return 0; }
7629 if { (eval echo configure:7630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7630 rm -rf conftest*
7631 eval "ac_cv_lib_$ac_lib_var=yes"
7632 else
7633 echo "configure: failed program was:" >&5
7634 cat conftest.$ac_ext >&5
7635 rm -rf conftest*
7636 eval "ac_cv_lib_$ac_lib_var=no"
7638 rm -f conftest*
7639 LIBS="$ac_save_LIBS"
7642 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7643 echo "$ac_t""yes" 1>&6
7644 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7645 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7646 cat >> confdefs.h <<EOF
7647 #define $ac_tr_lib 1
7650 LIBS="-lgen $LIBS"
7652 else
7653 echo "$ac_t""no" 1>&6
7656 for ac_func in getspnam
7658 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7659 echo "configure:7660: checking for $ac_func" >&5
7660 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7661 echo $ac_n "(cached) $ac_c" 1>&6
7662 else
7663 cat > conftest.$ac_ext <<EOF
7664 #line 7665 "configure"
7665 #include "confdefs.h"
7666 /* System header to define __stub macros and hopefully few prototypes,
7667 which can conflict with char $ac_func(); below. */
7668 #include <assert.h>
7669 /* Override any gcc2 internal prototype to avoid an error. */
7670 /* We use char because int might match the return type of a gcc2
7671 builtin and then its argument prototype would still apply. */
7672 char $ac_func();
7674 int main() {
7676 /* The GNU C library defines this for functions which it implements
7677 to always fail with ENOSYS. Some functions are actually named
7678 something starting with __ and the normal name is an alias. */
7679 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7680 choke me
7681 #else
7682 $ac_func();
7683 #endif
7685 ; return 0; }
7687 if { (eval echo configure:7688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7688 rm -rf conftest*
7689 eval "ac_cv_func_$ac_func=yes"
7690 else
7691 echo "configure: failed program was:" >&5
7692 cat conftest.$ac_ext >&5
7693 rm -rf conftest*
7694 eval "ac_cv_func_$ac_func=no"
7696 rm -f conftest*
7699 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7700 echo "$ac_t""yes" 1>&6
7701 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7702 cat >> confdefs.h <<EOF
7703 #define $ac_tr_func 1
7706 else
7707 echo "$ac_t""no" 1>&6
7709 done
7712 esac
7715 case "$LIBS" in
7716 *-lsecurity*) for ac_func in getspnam
7718 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7719 echo "configure:7720: checking for $ac_func" >&5
7720 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7721 echo $ac_n "(cached) $ac_c" 1>&6
7722 else
7723 cat > conftest.$ac_ext <<EOF
7724 #line 7725 "configure"
7725 #include "confdefs.h"
7726 /* System header to define __stub macros and hopefully few prototypes,
7727 which can conflict with char $ac_func(); below. */
7728 #include <assert.h>
7729 /* Override any gcc2 internal prototype to avoid an error. */
7730 /* We use char because int might match the return type of a gcc2
7731 builtin and then its argument prototype would still apply. */
7732 char $ac_func();
7734 int main() {
7736 /* The GNU C library defines this for functions which it implements
7737 to always fail with ENOSYS. Some functions are actually named
7738 something starting with __ and the normal name is an alias. */
7739 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7740 choke me
7741 #else
7742 $ac_func();
7743 #endif
7745 ; return 0; }
7747 if { (eval echo configure:7748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7748 rm -rf conftest*
7749 eval "ac_cv_func_$ac_func=yes"
7750 else
7751 echo "configure: failed program was:" >&5
7752 cat conftest.$ac_ext >&5
7753 rm -rf conftest*
7754 eval "ac_cv_func_$ac_func=no"
7756 rm -f conftest*
7759 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7760 echo "$ac_t""yes" 1>&6
7761 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7762 cat >> confdefs.h <<EOF
7763 #define $ac_tr_func 1
7766 else
7767 echo "$ac_t""no" 1>&6
7769 done
7771 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
7772 echo "configure:7773: checking for getspnam in -lsecurity" >&5
7773 ac_lib_var=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
7774 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7775 echo $ac_n "(cached) $ac_c" 1>&6
7776 else
7777 ac_save_LIBS="$LIBS"
7778 LIBS="-lsecurity $LIBS"
7779 cat > conftest.$ac_ext <<EOF
7780 #line 7781 "configure"
7781 #include "confdefs.h"
7782 /* Override any gcc2 internal prototype to avoid an error. */
7783 /* We use char because int might match the return type of a gcc2
7784 builtin and then its argument prototype would still apply. */
7785 char getspnam();
7787 int main() {
7788 getspnam()
7789 ; return 0; }
7791 if { (eval echo configure:7792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7792 rm -rf conftest*
7793 eval "ac_cv_lib_$ac_lib_var=yes"
7794 else
7795 echo "configure: failed program was:" >&5
7796 cat conftest.$ac_ext >&5
7797 rm -rf conftest*
7798 eval "ac_cv_lib_$ac_lib_var=no"
7800 rm -f conftest*
7801 LIBS="$ac_save_LIBS"
7804 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7805 echo "$ac_t""yes" 1>&6
7806 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7807 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7808 cat >> confdefs.h <<EOF
7809 #define $ac_tr_lib 1
7812 LIBS="-lsecurity $LIBS"
7814 else
7815 echo "$ac_t""no" 1>&6
7818 for ac_func in getspnam
7820 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7821 echo "configure:7822: checking for $ac_func" >&5
7822 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7823 echo $ac_n "(cached) $ac_c" 1>&6
7824 else
7825 cat > conftest.$ac_ext <<EOF
7826 #line 7827 "configure"
7827 #include "confdefs.h"
7828 /* System header to define __stub macros and hopefully few prototypes,
7829 which can conflict with char $ac_func(); below. */
7830 #include <assert.h>
7831 /* Override any gcc2 internal prototype to avoid an error. */
7832 /* We use char because int might match the return type of a gcc2
7833 builtin and then its argument prototype would still apply. */
7834 char $ac_func();
7836 int main() {
7838 /* The GNU C library defines this for functions which it implements
7839 to always fail with ENOSYS. Some functions are actually named
7840 something starting with __ and the normal name is an alias. */
7841 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7842 choke me
7843 #else
7844 $ac_func();
7845 #endif
7847 ; return 0; }
7849 if { (eval echo configure:7850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7850 rm -rf conftest*
7851 eval "ac_cv_func_$ac_func=yes"
7852 else
7853 echo "configure: failed program was:" >&5
7854 cat conftest.$ac_ext >&5
7855 rm -rf conftest*
7856 eval "ac_cv_func_$ac_func=no"
7858 rm -f conftest*
7861 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7862 echo "$ac_t""yes" 1>&6
7863 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7864 cat >> confdefs.h <<EOF
7865 #define $ac_tr_func 1
7868 else
7869 echo "$ac_t""no" 1>&6
7871 done
7874 esac
7876 case "$LIBS" in
7877 *-lsec*) for ac_func in getspnam
7879 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7880 echo "configure:7881: checking for $ac_func" >&5
7881 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7882 echo $ac_n "(cached) $ac_c" 1>&6
7883 else
7884 cat > conftest.$ac_ext <<EOF
7885 #line 7886 "configure"
7886 #include "confdefs.h"
7887 /* System header to define __stub macros and hopefully few prototypes,
7888 which can conflict with char $ac_func(); below. */
7889 #include <assert.h>
7890 /* Override any gcc2 internal prototype to avoid an error. */
7891 /* We use char because int might match the return type of a gcc2
7892 builtin and then its argument prototype would still apply. */
7893 char $ac_func();
7895 int main() {
7897 /* The GNU C library defines this for functions which it implements
7898 to always fail with ENOSYS. Some functions are actually named
7899 something starting with __ and the normal name is an alias. */
7900 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7901 choke me
7902 #else
7903 $ac_func();
7904 #endif
7906 ; return 0; }
7908 if { (eval echo configure:7909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7909 rm -rf conftest*
7910 eval "ac_cv_func_$ac_func=yes"
7911 else
7912 echo "configure: failed program was:" >&5
7913 cat conftest.$ac_ext >&5
7914 rm -rf conftest*
7915 eval "ac_cv_func_$ac_func=no"
7917 rm -f conftest*
7920 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7921 echo "$ac_t""yes" 1>&6
7922 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7923 cat >> confdefs.h <<EOF
7924 #define $ac_tr_func 1
7927 else
7928 echo "$ac_t""no" 1>&6
7930 done
7932 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
7933 echo "configure:7934: checking for getspnam in -lsec" >&5
7934 ac_lib_var=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
7935 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7936 echo $ac_n "(cached) $ac_c" 1>&6
7937 else
7938 ac_save_LIBS="$LIBS"
7939 LIBS="-lsec $LIBS"
7940 cat > conftest.$ac_ext <<EOF
7941 #line 7942 "configure"
7942 #include "confdefs.h"
7943 /* Override any gcc2 internal prototype to avoid an error. */
7944 /* We use char because int might match the return type of a gcc2
7945 builtin and then its argument prototype would still apply. */
7946 char getspnam();
7948 int main() {
7949 getspnam()
7950 ; return 0; }
7952 if { (eval echo configure:7953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7953 rm -rf conftest*
7954 eval "ac_cv_lib_$ac_lib_var=yes"
7955 else
7956 echo "configure: failed program was:" >&5
7957 cat conftest.$ac_ext >&5
7958 rm -rf conftest*
7959 eval "ac_cv_lib_$ac_lib_var=no"
7961 rm -f conftest*
7962 LIBS="$ac_save_LIBS"
7965 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7966 echo "$ac_t""yes" 1>&6
7967 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7968 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7969 cat >> confdefs.h <<EOF
7970 #define $ac_tr_lib 1
7973 LIBS="-lsec $LIBS"
7975 else
7976 echo "$ac_t""no" 1>&6
7979 for ac_func in getspnam
7981 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7982 echo "configure:7983: checking for $ac_func" >&5
7983 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7984 echo $ac_n "(cached) $ac_c" 1>&6
7985 else
7986 cat > conftest.$ac_ext <<EOF
7987 #line 7988 "configure"
7988 #include "confdefs.h"
7989 /* System header to define __stub macros and hopefully few prototypes,
7990 which can conflict with char $ac_func(); below. */
7991 #include <assert.h>
7992 /* Override any gcc2 internal prototype to avoid an error. */
7993 /* We use char because int might match the return type of a gcc2
7994 builtin and then its argument prototype would still apply. */
7995 char $ac_func();
7997 int main() {
7999 /* The GNU C library defines this for functions which it implements
8000 to always fail with ENOSYS. Some functions are actually named
8001 something starting with __ and the normal name is an alias. */
8002 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8003 choke me
8004 #else
8005 $ac_func();
8006 #endif
8008 ; return 0; }
8010 if { (eval echo configure:8011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8011 rm -rf conftest*
8012 eval "ac_cv_func_$ac_func=yes"
8013 else
8014 echo "configure: failed program was:" >&5
8015 cat conftest.$ac_ext >&5
8016 rm -rf conftest*
8017 eval "ac_cv_func_$ac_func=no"
8019 rm -f conftest*
8022 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8023 echo "$ac_t""yes" 1>&6
8024 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8025 cat >> confdefs.h <<EOF
8026 #define $ac_tr_func 1
8029 else
8030 echo "$ac_t""no" 1>&6
8032 done
8035 esac
8038 case "$LIBS" in
8039 *-lsecurity*) for ac_func in bigcrypt
8041 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8042 echo "configure:8043: checking for $ac_func" >&5
8043 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8044 echo $ac_n "(cached) $ac_c" 1>&6
8045 else
8046 cat > conftest.$ac_ext <<EOF
8047 #line 8048 "configure"
8048 #include "confdefs.h"
8049 /* System header to define __stub macros and hopefully few prototypes,
8050 which can conflict with char $ac_func(); below. */
8051 #include <assert.h>
8052 /* Override any gcc2 internal prototype to avoid an error. */
8053 /* We use char because int might match the return type of a gcc2
8054 builtin and then its argument prototype would still apply. */
8055 char $ac_func();
8057 int main() {
8059 /* The GNU C library defines this for functions which it implements
8060 to always fail with ENOSYS. Some functions are actually named
8061 something starting with __ and the normal name is an alias. */
8062 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8063 choke me
8064 #else
8065 $ac_func();
8066 #endif
8068 ; return 0; }
8070 if { (eval echo configure:8071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8071 rm -rf conftest*
8072 eval "ac_cv_func_$ac_func=yes"
8073 else
8074 echo "configure: failed program was:" >&5
8075 cat conftest.$ac_ext >&5
8076 rm -rf conftest*
8077 eval "ac_cv_func_$ac_func=no"
8079 rm -f conftest*
8082 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8083 echo "$ac_t""yes" 1>&6
8084 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8085 cat >> confdefs.h <<EOF
8086 #define $ac_tr_func 1
8089 else
8090 echo "$ac_t""no" 1>&6
8092 done
8094 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
8095 echo "configure:8096: checking for bigcrypt in -lsecurity" >&5
8096 ac_lib_var=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
8097 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8098 echo $ac_n "(cached) $ac_c" 1>&6
8099 else
8100 ac_save_LIBS="$LIBS"
8101 LIBS="-lsecurity $LIBS"
8102 cat > conftest.$ac_ext <<EOF
8103 #line 8104 "configure"
8104 #include "confdefs.h"
8105 /* Override any gcc2 internal prototype to avoid an error. */
8106 /* We use char because int might match the return type of a gcc2
8107 builtin and then its argument prototype would still apply. */
8108 char bigcrypt();
8110 int main() {
8111 bigcrypt()
8112 ; return 0; }
8114 if { (eval echo configure:8115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8115 rm -rf conftest*
8116 eval "ac_cv_lib_$ac_lib_var=yes"
8117 else
8118 echo "configure: failed program was:" >&5
8119 cat conftest.$ac_ext >&5
8120 rm -rf conftest*
8121 eval "ac_cv_lib_$ac_lib_var=no"
8123 rm -f conftest*
8124 LIBS="$ac_save_LIBS"
8127 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8128 echo "$ac_t""yes" 1>&6
8129 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8130 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8131 cat >> confdefs.h <<EOF
8132 #define $ac_tr_lib 1
8135 LIBS="-lsecurity $LIBS"
8137 else
8138 echo "$ac_t""no" 1>&6
8141 for ac_func in bigcrypt
8143 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8144 echo "configure:8145: checking for $ac_func" >&5
8145 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8146 echo $ac_n "(cached) $ac_c" 1>&6
8147 else
8148 cat > conftest.$ac_ext <<EOF
8149 #line 8150 "configure"
8150 #include "confdefs.h"
8151 /* System header to define __stub macros and hopefully few prototypes,
8152 which can conflict with char $ac_func(); below. */
8153 #include <assert.h>
8154 /* Override any gcc2 internal prototype to avoid an error. */
8155 /* We use char because int might match the return type of a gcc2
8156 builtin and then its argument prototype would still apply. */
8157 char $ac_func();
8159 int main() {
8161 /* The GNU C library defines this for functions which it implements
8162 to always fail with ENOSYS. Some functions are actually named
8163 something starting with __ and the normal name is an alias. */
8164 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8165 choke me
8166 #else
8167 $ac_func();
8168 #endif
8170 ; return 0; }
8172 if { (eval echo configure:8173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8173 rm -rf conftest*
8174 eval "ac_cv_func_$ac_func=yes"
8175 else
8176 echo "configure: failed program was:" >&5
8177 cat conftest.$ac_ext >&5
8178 rm -rf conftest*
8179 eval "ac_cv_func_$ac_func=no"
8181 rm -f conftest*
8184 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8185 echo "$ac_t""yes" 1>&6
8186 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8187 cat >> confdefs.h <<EOF
8188 #define $ac_tr_func 1
8191 else
8192 echo "$ac_t""no" 1>&6
8194 done
8197 esac
8199 case "$LIBS" in
8200 *-lsec*) for ac_func in bigcrypt
8202 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8203 echo "configure:8204: checking for $ac_func" >&5
8204 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8205 echo $ac_n "(cached) $ac_c" 1>&6
8206 else
8207 cat > conftest.$ac_ext <<EOF
8208 #line 8209 "configure"
8209 #include "confdefs.h"
8210 /* System header to define __stub macros and hopefully few prototypes,
8211 which can conflict with char $ac_func(); below. */
8212 #include <assert.h>
8213 /* Override any gcc2 internal prototype to avoid an error. */
8214 /* We use char because int might match the return type of a gcc2
8215 builtin and then its argument prototype would still apply. */
8216 char $ac_func();
8218 int main() {
8220 /* The GNU C library defines this for functions which it implements
8221 to always fail with ENOSYS. Some functions are actually named
8222 something starting with __ and the normal name is an alias. */
8223 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8224 choke me
8225 #else
8226 $ac_func();
8227 #endif
8229 ; return 0; }
8231 if { (eval echo configure:8232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8232 rm -rf conftest*
8233 eval "ac_cv_func_$ac_func=yes"
8234 else
8235 echo "configure: failed program was:" >&5
8236 cat conftest.$ac_ext >&5
8237 rm -rf conftest*
8238 eval "ac_cv_func_$ac_func=no"
8240 rm -f conftest*
8243 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8244 echo "$ac_t""yes" 1>&6
8245 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8246 cat >> confdefs.h <<EOF
8247 #define $ac_tr_func 1
8250 else
8251 echo "$ac_t""no" 1>&6
8253 done
8255 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
8256 echo "configure:8257: checking for bigcrypt in -lsec" >&5
8257 ac_lib_var=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
8258 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8259 echo $ac_n "(cached) $ac_c" 1>&6
8260 else
8261 ac_save_LIBS="$LIBS"
8262 LIBS="-lsec $LIBS"
8263 cat > conftest.$ac_ext <<EOF
8264 #line 8265 "configure"
8265 #include "confdefs.h"
8266 /* Override any gcc2 internal prototype to avoid an error. */
8267 /* We use char because int might match the return type of a gcc2
8268 builtin and then its argument prototype would still apply. */
8269 char bigcrypt();
8271 int main() {
8272 bigcrypt()
8273 ; return 0; }
8275 if { (eval echo configure:8276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8276 rm -rf conftest*
8277 eval "ac_cv_lib_$ac_lib_var=yes"
8278 else
8279 echo "configure: failed program was:" >&5
8280 cat conftest.$ac_ext >&5
8281 rm -rf conftest*
8282 eval "ac_cv_lib_$ac_lib_var=no"
8284 rm -f conftest*
8285 LIBS="$ac_save_LIBS"
8288 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8289 echo "$ac_t""yes" 1>&6
8290 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8291 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8292 cat >> confdefs.h <<EOF
8293 #define $ac_tr_lib 1
8296 LIBS="-lsec $LIBS"
8298 else
8299 echo "$ac_t""no" 1>&6
8302 for ac_func in bigcrypt
8304 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8305 echo "configure:8306: checking for $ac_func" >&5
8306 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8307 echo $ac_n "(cached) $ac_c" 1>&6
8308 else
8309 cat > conftest.$ac_ext <<EOF
8310 #line 8311 "configure"
8311 #include "confdefs.h"
8312 /* System header to define __stub macros and hopefully few prototypes,
8313 which can conflict with char $ac_func(); below. */
8314 #include <assert.h>
8315 /* Override any gcc2 internal prototype to avoid an error. */
8316 /* We use char because int might match the return type of a gcc2
8317 builtin and then its argument prototype would still apply. */
8318 char $ac_func();
8320 int main() {
8322 /* The GNU C library defines this for functions which it implements
8323 to always fail with ENOSYS. Some functions are actually named
8324 something starting with __ and the normal name is an alias. */
8325 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8326 choke me
8327 #else
8328 $ac_func();
8329 #endif
8331 ; return 0; }
8333 if { (eval echo configure:8334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8334 rm -rf conftest*
8335 eval "ac_cv_func_$ac_func=yes"
8336 else
8337 echo "configure: failed program was:" >&5
8338 cat conftest.$ac_ext >&5
8339 rm -rf conftest*
8340 eval "ac_cv_func_$ac_func=no"
8342 rm -f conftest*
8345 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8346 echo "$ac_t""yes" 1>&6
8347 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8348 cat >> confdefs.h <<EOF
8349 #define $ac_tr_func 1
8352 else
8353 echo "$ac_t""no" 1>&6
8355 done
8358 esac
8361 case "$LIBS" in
8362 *-lsecurity*) for ac_func in getprpwnam
8364 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8365 echo "configure:8366: checking for $ac_func" >&5
8366 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8367 echo $ac_n "(cached) $ac_c" 1>&6
8368 else
8369 cat > conftest.$ac_ext <<EOF
8370 #line 8371 "configure"
8371 #include "confdefs.h"
8372 /* System header to define __stub macros and hopefully few prototypes,
8373 which can conflict with char $ac_func(); below. */
8374 #include <assert.h>
8375 /* Override any gcc2 internal prototype to avoid an error. */
8376 /* We use char because int might match the return type of a gcc2
8377 builtin and then its argument prototype would still apply. */
8378 char $ac_func();
8380 int main() {
8382 /* The GNU C library defines this for functions which it implements
8383 to always fail with ENOSYS. Some functions are actually named
8384 something starting with __ and the normal name is an alias. */
8385 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8386 choke me
8387 #else
8388 $ac_func();
8389 #endif
8391 ; return 0; }
8393 if { (eval echo configure:8394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8394 rm -rf conftest*
8395 eval "ac_cv_func_$ac_func=yes"
8396 else
8397 echo "configure: failed program was:" >&5
8398 cat conftest.$ac_ext >&5
8399 rm -rf conftest*
8400 eval "ac_cv_func_$ac_func=no"
8402 rm -f conftest*
8405 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8406 echo "$ac_t""yes" 1>&6
8407 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8408 cat >> confdefs.h <<EOF
8409 #define $ac_tr_func 1
8412 else
8413 echo "$ac_t""no" 1>&6
8415 done
8417 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
8418 echo "configure:8419: checking for getprpwnam in -lsecurity" >&5
8419 ac_lib_var=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
8420 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8421 echo $ac_n "(cached) $ac_c" 1>&6
8422 else
8423 ac_save_LIBS="$LIBS"
8424 LIBS="-lsecurity $LIBS"
8425 cat > conftest.$ac_ext <<EOF
8426 #line 8427 "configure"
8427 #include "confdefs.h"
8428 /* Override any gcc2 internal prototype to avoid an error. */
8429 /* We use char because int might match the return type of a gcc2
8430 builtin and then its argument prototype would still apply. */
8431 char getprpwnam();
8433 int main() {
8434 getprpwnam()
8435 ; return 0; }
8437 if { (eval echo configure:8438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8438 rm -rf conftest*
8439 eval "ac_cv_lib_$ac_lib_var=yes"
8440 else
8441 echo "configure: failed program was:" >&5
8442 cat conftest.$ac_ext >&5
8443 rm -rf conftest*
8444 eval "ac_cv_lib_$ac_lib_var=no"
8446 rm -f conftest*
8447 LIBS="$ac_save_LIBS"
8450 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8451 echo "$ac_t""yes" 1>&6
8452 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8453 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8454 cat >> confdefs.h <<EOF
8455 #define $ac_tr_lib 1
8458 LIBS="-lsecurity $LIBS"
8460 else
8461 echo "$ac_t""no" 1>&6
8464 for ac_func in getprpwnam
8466 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8467 echo "configure:8468: checking for $ac_func" >&5
8468 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8469 echo $ac_n "(cached) $ac_c" 1>&6
8470 else
8471 cat > conftest.$ac_ext <<EOF
8472 #line 8473 "configure"
8473 #include "confdefs.h"
8474 /* System header to define __stub macros and hopefully few prototypes,
8475 which can conflict with char $ac_func(); below. */
8476 #include <assert.h>
8477 /* Override any gcc2 internal prototype to avoid an error. */
8478 /* We use char because int might match the return type of a gcc2
8479 builtin and then its argument prototype would still apply. */
8480 char $ac_func();
8482 int main() {
8484 /* The GNU C library defines this for functions which it implements
8485 to always fail with ENOSYS. Some functions are actually named
8486 something starting with __ and the normal name is an alias. */
8487 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8488 choke me
8489 #else
8490 $ac_func();
8491 #endif
8493 ; return 0; }
8495 if { (eval echo configure:8496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8496 rm -rf conftest*
8497 eval "ac_cv_func_$ac_func=yes"
8498 else
8499 echo "configure: failed program was:" >&5
8500 cat conftest.$ac_ext >&5
8501 rm -rf conftest*
8502 eval "ac_cv_func_$ac_func=no"
8504 rm -f conftest*
8507 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8508 echo "$ac_t""yes" 1>&6
8509 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8510 cat >> confdefs.h <<EOF
8511 #define $ac_tr_func 1
8514 else
8515 echo "$ac_t""no" 1>&6
8517 done
8520 esac
8522 case "$LIBS" in
8523 *-lsec*) for ac_func in getprpwnam
8525 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8526 echo "configure:8527: checking for $ac_func" >&5
8527 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8528 echo $ac_n "(cached) $ac_c" 1>&6
8529 else
8530 cat > conftest.$ac_ext <<EOF
8531 #line 8532 "configure"
8532 #include "confdefs.h"
8533 /* System header to define __stub macros and hopefully few prototypes,
8534 which can conflict with char $ac_func(); below. */
8535 #include <assert.h>
8536 /* Override any gcc2 internal prototype to avoid an error. */
8537 /* We use char because int might match the return type of a gcc2
8538 builtin and then its argument prototype would still apply. */
8539 char $ac_func();
8541 int main() {
8543 /* The GNU C library defines this for functions which it implements
8544 to always fail with ENOSYS. Some functions are actually named
8545 something starting with __ and the normal name is an alias. */
8546 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8547 choke me
8548 #else
8549 $ac_func();
8550 #endif
8552 ; return 0; }
8554 if { (eval echo configure:8555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8555 rm -rf conftest*
8556 eval "ac_cv_func_$ac_func=yes"
8557 else
8558 echo "configure: failed program was:" >&5
8559 cat conftest.$ac_ext >&5
8560 rm -rf conftest*
8561 eval "ac_cv_func_$ac_func=no"
8563 rm -f conftest*
8566 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8567 echo "$ac_t""yes" 1>&6
8568 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8569 cat >> confdefs.h <<EOF
8570 #define $ac_tr_func 1
8573 else
8574 echo "$ac_t""no" 1>&6
8576 done
8578 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
8579 echo "configure:8580: checking for getprpwnam in -lsec" >&5
8580 ac_lib_var=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
8581 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8582 echo $ac_n "(cached) $ac_c" 1>&6
8583 else
8584 ac_save_LIBS="$LIBS"
8585 LIBS="-lsec $LIBS"
8586 cat > conftest.$ac_ext <<EOF
8587 #line 8588 "configure"
8588 #include "confdefs.h"
8589 /* Override any gcc2 internal prototype to avoid an error. */
8590 /* We use char because int might match the return type of a gcc2
8591 builtin and then its argument prototype would still apply. */
8592 char getprpwnam();
8594 int main() {
8595 getprpwnam()
8596 ; return 0; }
8598 if { (eval echo configure:8599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8599 rm -rf conftest*
8600 eval "ac_cv_lib_$ac_lib_var=yes"
8601 else
8602 echo "configure: failed program was:" >&5
8603 cat conftest.$ac_ext >&5
8604 rm -rf conftest*
8605 eval "ac_cv_lib_$ac_lib_var=no"
8607 rm -f conftest*
8608 LIBS="$ac_save_LIBS"
8611 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8612 echo "$ac_t""yes" 1>&6
8613 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8614 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8615 cat >> confdefs.h <<EOF
8616 #define $ac_tr_lib 1
8619 LIBS="-lsec $LIBS"
8621 else
8622 echo "$ac_t""no" 1>&6
8625 for ac_func in getprpwnam
8627 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8628 echo "configure:8629: checking for $ac_func" >&5
8629 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8630 echo $ac_n "(cached) $ac_c" 1>&6
8631 else
8632 cat > conftest.$ac_ext <<EOF
8633 #line 8634 "configure"
8634 #include "confdefs.h"
8635 /* System header to define __stub macros and hopefully few prototypes,
8636 which can conflict with char $ac_func(); below. */
8637 #include <assert.h>
8638 /* Override any gcc2 internal prototype to avoid an error. */
8639 /* We use char because int might match the return type of a gcc2
8640 builtin and then its argument prototype would still apply. */
8641 char $ac_func();
8643 int main() {
8645 /* The GNU C library defines this for functions which it implements
8646 to always fail with ENOSYS. Some functions are actually named
8647 something starting with __ and the normal name is an alias. */
8648 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8649 choke me
8650 #else
8651 $ac_func();
8652 #endif
8654 ; return 0; }
8656 if { (eval echo configure:8657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8657 rm -rf conftest*
8658 eval "ac_cv_func_$ac_func=yes"
8659 else
8660 echo "configure: failed program was:" >&5
8661 cat conftest.$ac_ext >&5
8662 rm -rf conftest*
8663 eval "ac_cv_func_$ac_func=no"
8665 rm -f conftest*
8668 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8669 echo "$ac_t""yes" 1>&6
8670 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8671 cat >> confdefs.h <<EOF
8672 #define $ac_tr_func 1
8675 else
8676 echo "$ac_t""no" 1>&6
8678 done
8681 esac
8684 # this bit needs to be modified for each OS that is suported by
8685 # smbwrapper. You need to specify how to created a shared library and
8686 # how to compile C code to produce PIC object files
8688 # these are the defaults, good for lots of systems
8689 HOST_OS="$host_os"
8690 LDSHFLAGS="-shared"
8691 SONAMEFLAG="#"
8692 SHLD="\${CC}"
8693 PICFLAG=""
8694 PICSUFFIX="po.o"
8695 SHLIBEXT="so"
8696 # Assume non-shared by default and override below
8697 BLDSHARED="false"
8698 echo $ac_n "checking ability to build shared libraries""... $ac_c" 1>&6
8699 echo "configure:8700: checking ability to build shared libraries" >&5
8701 # and these are for particular systems
8702 case "$host_os" in
8703 *linux*) cat >> confdefs.h <<\EOF
8704 #define LINUX 1
8707 BLDSHARED="true"
8708 LDSHFLAGS="-shared"
8709 DYNEXP="-Wl,--export-dynamic"
8710 PICFLAG="-fPIC"
8711 SONAMEFLAG="-Wl,-soname="
8712 cat >> confdefs.h <<\EOF
8713 #define STAT_ST_BLOCKSIZE 512
8717 *solaris*) cat >> confdefs.h <<\EOF
8718 #define SUNOS5 1
8721 BLDSHARED="true"
8722 LDSHFLAGS="-G"
8723 SONAMEFLAG="-h "
8724 if test "${GCC}" = "yes"; then
8725 PICFLAG="-fPIC"
8726 if test "${ac_cv_prog_gnu_ld}" = "yes"; then
8727 DYNEXP="-Wl,-E"
8729 else
8730 PICFLAG="-KPIC"
8731 ## ${CFLAGS} added for building 64-bit shared
8732 ## libs using Sun's Compiler
8733 LDSHFLAGS="-G \${CFLAGS}"
8734 POBAD_CC=""
8735 PICSUFFIX="po.o"
8737 cat >> confdefs.h <<\EOF
8738 #define STAT_ST_BLOCKSIZE 512
8742 *sunos*) cat >> confdefs.h <<\EOF
8743 #define SUNOS4 1
8746 BLDSHARED="true"
8747 LDSHFLAGS="-G"
8748 SONAMEFLAG="-Wl,-h,"
8749 PICFLAG="-KPIC" # Is this correct for SunOS
8750 cat >> confdefs.h <<\EOF
8751 #define STAT_ST_BLOCKSIZE 512
8755 *freebsd*) BLDSHARED="true"
8756 LDSHFLAGS="-shared"
8757 DYNEXP="-Wl,--export-dynamic"
8758 SONAMEFLAG="-Wl,-soname,"
8759 PICFLAG="-fPIC -DPIC"
8760 cat >> confdefs.h <<\EOF
8761 #define STAT_ST_BLOCKSIZE 512
8765 *openbsd*) BLDSHARED="true"
8766 LDSHFLAGS="-shared"
8767 DYNEXP="-Wl,-Bdynamic"
8768 SONAMEFLAG="-Wl,-soname,"
8769 PICFLAG="-fPIC"
8770 cat >> confdefs.h <<\EOF
8771 #define STAT_ST_BLOCKSIZE 512
8775 *irix*) cat >> confdefs.h <<\EOF
8776 #define IRIX 1
8779 case "$host_os" in
8780 *irix6*) cat >> confdefs.h <<\EOF
8781 #define IRIX6 1
8785 esac
8786 ATTEMPT_WRAP32_BUILD=yes
8787 BLDSHARED="true"
8788 LDSHFLAGS="-set_version sgi1.0 -shared"
8789 SONAMEFLAG="-soname "
8790 SHLD="\${LD}"
8791 if test "${GCC}" = "yes"; then
8792 PICFLAG="-fPIC"
8793 else
8794 PICFLAG="-KPIC"
8796 cat >> confdefs.h <<\EOF
8797 #define STAT_ST_BLOCKSIZE 512
8801 *aix*) cat >> confdefs.h <<\EOF
8802 #define AIX 1
8805 BLDSHARED="true"
8806 LDSHFLAGS="-Wl,-bexpall,-bM:SRE,-bnoentry"
8807 DYNEXP="-Wl,-brtl,-bexpall"
8808 PICFLAG="-O2"
8809 if test "${GCC}" != "yes"; then
8810 ## for funky AIX compiler using strncpy()
8811 CFLAGS="$CFLAGS -D_LINUX_SOURCE_COMPAT -qmaxmem=32000"
8814 cat >> confdefs.h <<\EOF
8815 #define STAT_ST_BLOCKSIZE DEV_BSIZE
8819 *hpux*) cat >> confdefs.h <<\EOF
8820 #define HPUX 1
8823 SHLIBEXT="sl"
8824 # Use special PIC flags for the native HP-UX compiler.
8825 if test $ac_cv_prog_cc_Ae = yes; then
8826 BLDSHARED="true"
8827 SHLD="/usr/bin/ld"
8828 LDSHFLAGS="-B symbolic -b -z"
8829 SONAMEFLAG="+h "
8830 PICFLAG="+z"
8832 DYNEXP="-Wl,-E"
8833 cat >> confdefs.h <<\EOF
8834 #define STAT_ST_BLOCKSIZE 8192
8838 *qnx*) cat >> confdefs.h <<\EOF
8839 #define QNX 1
8842 cat >> confdefs.h <<\EOF
8843 #define STAT_ST_BLOCKSIZE 512
8847 *osf*) cat >> confdefs.h <<\EOF
8848 #define OSF1 1
8851 BLDSHARED="true"
8852 LDSHFLAGS="-shared"
8853 SONAMEFLAG="-Wl,-soname,"
8854 PICFLAG="-fPIC"
8855 cat >> confdefs.h <<\EOF
8856 #define STAT_ST_BLOCKSIZE 512
8860 *sco*) cat >> confdefs.h <<\EOF
8861 #define SCO 1
8864 cat >> confdefs.h <<\EOF
8865 #define STAT_ST_BLOCKSIZE 512
8869 *unixware*) cat >> confdefs.h <<\EOF
8870 #define UNIXWARE 1
8873 BLDSHARED="true"
8874 LDSHFLAGS="-shared"
8875 SONAMEFLAG="-Wl,-soname,"
8876 PICFLAG="-KPIC"
8877 cat >> confdefs.h <<\EOF
8878 #define STAT_ST_BLOCKSIZE 512
8882 *next2*) cat >> confdefs.h <<\EOF
8883 #define NEXT2 1
8886 cat >> confdefs.h <<\EOF
8887 #define STAT_ST_BLOCKSIZE 512
8891 *dgux*) # Extract the first word of "groff", so it can be a program name with args.
8892 set dummy groff; ac_word=$2
8893 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8894 echo "configure:8895: checking for $ac_word" >&5
8895 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
8896 echo $ac_n "(cached) $ac_c" 1>&6
8897 else
8898 if test -n "$ROFF"; then
8899 ac_cv_prog_ROFF="$ROFF" # Let the user override the test.
8900 else
8901 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8902 ac_dummy="$PATH"
8903 for ac_dir in $ac_dummy; do
8904 test -z "$ac_dir" && ac_dir=.
8905 if test -f $ac_dir/$ac_word; then
8906 ac_cv_prog_ROFF="groff -etpsR -Tascii -man"
8907 break
8909 done
8910 IFS="$ac_save_ifs"
8913 ROFF="$ac_cv_prog_ROFF"
8914 if test -n "$ROFF"; then
8915 echo "$ac_t""$ROFF" 1>&6
8916 else
8917 echo "$ac_t""no" 1>&6
8920 cat >> confdefs.h <<\EOF
8921 #define STAT_ST_BLOCKSIZE 512
8925 *sysv4*)
8926 case "$host" in
8927 *-univel-*) if test "$GCC" != yes ; then
8928 cat >> confdefs.h <<\EOF
8929 #define HAVE_MEMSET 1
8933 LDSHFLAGS="-G"
8934 DYNEXP="-Bexport"
8936 *mips-sni-sysv4*) cat >> confdefs.h <<\EOF
8937 #define RELIANTUNIX 1
8940 esac
8941 cat >> confdefs.h <<\EOF
8942 #define STAT_ST_BLOCKSIZE 512
8946 *sysv5*)
8947 if test "$GCC" != yes ; then
8948 cat >> confdefs.h <<\EOF
8949 #define HAVE_MEMSET 1
8953 LDSHFLAGS="-G"
8954 cat >> confdefs.h <<\EOF
8955 #define STAT_ST_BLOCKSIZE 512
8959 *vos*) cat >> confdefs.h <<\EOF
8960 #define STAT_ST_BLOCKSIZE 4096
8963 BLDSHARED="false"
8964 LDSHFLAGS=""
8967 cat >> confdefs.h <<\EOF
8968 #define STAT_ST_BLOCKSIZE 512
8972 esac
8974 echo "$ac_t""$BLDSHARED" 1>&6
8975 echo $ac_n "checking linker flags for shared libraries""... $ac_c" 1>&6
8976 echo "configure:8977: checking linker flags for shared libraries" >&5
8977 echo "$ac_t""$LDSHFLAGS" 1>&6
8978 echo $ac_n "checking compiler flags for position-independent code""... $ac_c" 1>&6
8979 echo "configure:8980: checking compiler flags for position-independent code" >&5
8980 echo "$ac_t""$PICFLAGS" 1>&6
8982 # try to work out how to produce pic code with this compiler
8983 if test x$PICFLAG = x; then
8984 echo $ac_n "checking whether ${CC-cc} accepts -fpic""... $ac_c" 1>&6
8985 echo "configure:8986: checking whether ${CC-cc} accepts -fpic" >&5
8986 if eval "test \"`echo '$''{'ac_cv_prog_cc_fpic'+set}'`\" = set"; then
8987 echo $ac_n "(cached) $ac_c" 1>&6
8988 else
8989 echo 'void f(){}' > conftest.c
8990 if test -z "`${CC-cc} -fpic -c conftest.c 2>&1`"; then
8991 ac_cv_prog_cc_fpic=yes
8992 else
8993 ac_cv_prog_cc_fpic=no
8995 rm -f conftest*
8999 echo "$ac_t""$ac_cv_prog_cc_fpic" 1>&6
9000 if test $ac_cv_prog_cc_fpic = yes; then
9001 PICFLAG="-fpic";
9004 if test x$PICFLAG = x; then
9005 echo $ac_n "checking whether ${CC-cc} accepts -KPIC""... $ac_c" 1>&6
9006 echo "configure:9007: checking whether ${CC-cc} accepts -KPIC" >&5
9007 if eval "test \"`echo '$''{'ac_cv_prog_cc_KPIC'+set}'`\" = set"; then
9008 echo $ac_n "(cached) $ac_c" 1>&6
9009 else
9010 echo 'void f(){}' > conftest.c
9011 if test -z "`${CC-cc} -KPIC -c conftest.c 2>&1`"; then
9012 ac_cv_prog_cc_KPIC=yes
9013 else
9014 ac_cv_prog_cc_KPIC=no
9016 rm -f conftest*
9020 echo "$ac_t""$ac_cv_prog_cc_KPIC" 1>&6
9021 if test $ac_cv_prog_cc_KPIC = yes; then
9022 PICFLAG="-KPIC";
9025 if test x$PICFLAG = x; then
9026 echo $ac_n "checking whether ${CC-cc} accepts -Kpic""... $ac_c" 1>&6
9027 echo "configure:9028: checking whether ${CC-cc} accepts -Kpic" >&5
9028 if eval "test \"`echo '$''{'ac_cv_prog_cc_Kpic'+set}'`\" = set"; then
9029 echo $ac_n "(cached) $ac_c" 1>&6
9030 else
9031 echo 'void f(){}' > conftest.c
9032 if test -z "`${CC-cc} -Kpic -c conftest.c 2>&1`"; then
9033 ac_cv_prog_cc_Kpic=yes
9034 else
9035 ac_cv_prog_cc_Kpic=no
9037 rm -f conftest*
9041 echo "$ac_t""$ac_cv_prog_cc_Kpic" 1>&6
9042 if test $ac_cv_prog_cc_Kpic = yes; then
9043 PICFLAG="-Kpic";
9047 ################
9049 echo $ac_n "checking for long long""... $ac_c" 1>&6
9050 echo "configure:9051: checking for long long" >&5
9051 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
9052 echo $ac_n "(cached) $ac_c" 1>&6
9053 else
9055 if test "$cross_compiling" = yes; then
9056 samba_cv_have_longlong=cross
9057 else
9058 cat > conftest.$ac_ext <<EOF
9059 #line 9060 "configure"
9060 #include "confdefs.h"
9061 #include <stdio.h>
9062 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
9064 if { (eval echo configure:9065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9065 then
9066 samba_cv_have_longlong=yes
9067 else
9068 echo "configure: failed program was:" >&5
9069 cat conftest.$ac_ext >&5
9070 rm -fr conftest*
9071 samba_cv_have_longlong=no
9073 rm -fr conftest*
9078 echo "$ac_t""$samba_cv_have_longlong" 1>&6
9079 if test x"$samba_cv_have_longlong" = x"yes"; then
9080 cat >> confdefs.h <<\EOF
9081 #define HAVE_LONGLONG 1
9087 # Check if the compiler supports the LL prefix on long long integers.
9088 # AIX needs this.
9090 echo $ac_n "checking for LL suffix on long long integers""... $ac_c" 1>&6
9091 echo "configure:9092: checking for LL suffix on long long integers" >&5
9092 if eval "test \"`echo '$''{'samba_cv_compiler_supports_ll'+set}'`\" = set"; then
9093 echo $ac_n "(cached) $ac_c" 1>&6
9094 else
9096 cat > conftest.$ac_ext <<EOF
9097 #line 9098 "configure"
9098 #include "confdefs.h"
9099 #include <stdio.h>
9100 int main() {
9101 long long i = 0x8000000000LL
9102 ; return 0; }
9104 if { (eval echo configure:9105: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9105 rm -rf conftest*
9106 samba_cv_compiler_supports_ll=yes
9107 else
9108 echo "configure: failed program was:" >&5
9109 cat conftest.$ac_ext >&5
9110 rm -rf conftest*
9111 samba_cv_compiler_supports_ll=no
9113 rm -f conftest*
9116 echo "$ac_t""$samba_cv_compiler_supports_ll" 1>&6
9117 if test x"$samba_cv_compiler_supports_ll" = x"yes"; then
9118 cat >> confdefs.h <<\EOF
9119 #define COMPILER_SUPPORTS_LL 1
9125 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
9126 echo "configure:9127: checking for 64 bit off_t" >&5
9127 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
9128 echo $ac_n "(cached) $ac_c" 1>&6
9129 else
9131 if test "$cross_compiling" = yes; then
9132 samba_cv_SIZEOF_OFF_T=cross
9133 else
9134 cat > conftest.$ac_ext <<EOF
9135 #line 9136 "configure"
9136 #include "confdefs.h"
9137 #include <stdio.h>
9138 #include <sys/stat.h>
9139 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
9141 if { (eval echo configure:9142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9142 then
9143 samba_cv_SIZEOF_OFF_T=yes
9144 else
9145 echo "configure: failed program was:" >&5
9146 cat conftest.$ac_ext >&5
9147 rm -fr conftest*
9148 samba_cv_SIZEOF_OFF_T=no
9150 rm -fr conftest*
9155 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
9156 if test x"$samba_cv_SIZEOF_OFF_T" = x"yes"; then
9157 cat >> confdefs.h <<\EOF
9158 #define SIZEOF_OFF_T 8
9163 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
9164 echo "configure:9165: checking for off64_t" >&5
9165 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
9166 echo $ac_n "(cached) $ac_c" 1>&6
9167 else
9169 if test "$cross_compiling" = yes; then
9170 samba_cv_HAVE_OFF64_T=cross
9171 else
9172 cat > conftest.$ac_ext <<EOF
9173 #line 9174 "configure"
9174 #include "confdefs.h"
9176 #if defined(HAVE_UNISTD_H)
9177 #include <unistd.h>
9178 #endif
9179 #include <stdio.h>
9180 #include <sys/stat.h>
9181 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9183 if { (eval echo configure:9184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9184 then
9185 samba_cv_HAVE_OFF64_T=yes
9186 else
9187 echo "configure: failed program was:" >&5
9188 cat conftest.$ac_ext >&5
9189 rm -fr conftest*
9190 samba_cv_HAVE_OFF64_T=no
9192 rm -fr conftest*
9197 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
9198 if test x"$samba_cv_HAVE_OFF64_T" = x"yes"; then
9199 cat >> confdefs.h <<\EOF
9200 #define HAVE_OFF64_T 1
9205 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
9206 echo "configure:9207: checking for 64 bit ino_t" >&5
9207 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
9208 echo $ac_n "(cached) $ac_c" 1>&6
9209 else
9211 if test "$cross_compiling" = yes; then
9212 samba_cv_SIZEOF_INO_T=cross
9213 else
9214 cat > conftest.$ac_ext <<EOF
9215 #line 9216 "configure"
9216 #include "confdefs.h"
9217 #include <stdio.h>
9218 #include <sys/stat.h>
9219 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
9221 if { (eval echo configure:9222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9222 then
9223 samba_cv_SIZEOF_INO_T=yes
9224 else
9225 echo "configure: failed program was:" >&5
9226 cat conftest.$ac_ext >&5
9227 rm -fr conftest*
9228 samba_cv_SIZEOF_INO_T=no
9230 rm -fr conftest*
9235 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
9236 if test x"$samba_cv_SIZEOF_INO_T" = x"yes"; then
9237 cat >> confdefs.h <<\EOF
9238 #define SIZEOF_INO_T 8
9243 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
9244 echo "configure:9245: checking for ino64_t" >&5
9245 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
9246 echo $ac_n "(cached) $ac_c" 1>&6
9247 else
9249 if test "$cross_compiling" = yes; then
9250 samba_cv_HAVE_INO64_T=cross
9251 else
9252 cat > conftest.$ac_ext <<EOF
9253 #line 9254 "configure"
9254 #include "confdefs.h"
9256 #if defined(HAVE_UNISTD_H)
9257 #include <unistd.h>
9258 #endif
9259 #include <stdio.h>
9260 #include <sys/stat.h>
9261 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9263 if { (eval echo configure:9264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9264 then
9265 samba_cv_HAVE_INO64_T=yes
9266 else
9267 echo "configure: failed program was:" >&5
9268 cat conftest.$ac_ext >&5
9269 rm -fr conftest*
9270 samba_cv_HAVE_INO64_T=no
9272 rm -fr conftest*
9277 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
9278 if test x"$samba_cv_HAVE_INO64_T" = x"yes"; then
9279 cat >> confdefs.h <<\EOF
9280 #define HAVE_INO64_T 1
9285 echo $ac_n "checking for dev64_t""... $ac_c" 1>&6
9286 echo "configure:9287: checking for dev64_t" >&5
9287 if eval "test \"`echo '$''{'samba_cv_HAVE_DEV64_T'+set}'`\" = set"; then
9288 echo $ac_n "(cached) $ac_c" 1>&6
9289 else
9291 if test "$cross_compiling" = yes; then
9292 samba_cv_HAVE_DEV64_T=cross
9293 else
9294 cat > conftest.$ac_ext <<EOF
9295 #line 9296 "configure"
9296 #include "confdefs.h"
9298 #if defined(HAVE_UNISTD_H)
9299 #include <unistd.h>
9300 #endif
9301 #include <stdio.h>
9302 #include <sys/stat.h>
9303 main() { struct stat64 st; dev64_t s; if (sizeof(dev_t) == sizeof(dev64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9305 if { (eval echo configure:9306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9306 then
9307 samba_cv_HAVE_DEV64_T=yes
9308 else
9309 echo "configure: failed program was:" >&5
9310 cat conftest.$ac_ext >&5
9311 rm -fr conftest*
9312 samba_cv_HAVE_DEV64_T=no
9314 rm -fr conftest*
9319 echo "$ac_t""$samba_cv_HAVE_DEV64_T" 1>&6
9320 if test x"$samba_cv_HAVE_DEV64_T" = x"yes"; then
9321 cat >> confdefs.h <<\EOF
9322 #define HAVE_DEV64_T 1
9327 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
9328 echo "configure:9329: checking for struct dirent64" >&5
9329 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
9330 echo $ac_n "(cached) $ac_c" 1>&6
9331 else
9333 cat > conftest.$ac_ext <<EOF
9334 #line 9335 "configure"
9335 #include "confdefs.h"
9337 #if defined(HAVE_UNISTD_H)
9338 #include <unistd.h>
9339 #endif
9340 #include <sys/types.h>
9341 #include <dirent.h>
9342 int main() {
9343 struct dirent64 de;
9344 ; return 0; }
9346 if { (eval echo configure:9347: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9347 rm -rf conftest*
9348 samba_cv_HAVE_STRUCT_DIRENT64=yes
9349 else
9350 echo "configure: failed program was:" >&5
9351 cat conftest.$ac_ext >&5
9352 rm -rf conftest*
9353 samba_cv_HAVE_STRUCT_DIRENT64=no
9355 rm -f conftest*
9358 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
9359 if test x"$samba_cv_HAVE_STRUCT_DIRENT64" = x"yes" && test x"$ac_cv_func_readdir64" = x"yes"; then
9360 cat >> confdefs.h <<\EOF
9361 #define HAVE_STRUCT_DIRENT64 1
9366 echo $ac_n "checking for major macro""... $ac_c" 1>&6
9367 echo "configure:9368: checking for major macro" >&5
9368 if eval "test \"`echo '$''{'samba_cv_HAVE_DEVICE_MAJOR_FN'+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_DEVICE_MAJOR_FN=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 <sys/types.h>
9383 main() { dev_t dev; int i = major(dev); return 0; }
9385 if { (eval echo configure:9386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9386 then
9387 samba_cv_HAVE_DEVICE_MAJOR_FN=yes
9388 else
9389 echo "configure: failed program was:" >&5
9390 cat conftest.$ac_ext >&5
9391 rm -fr conftest*
9392 samba_cv_HAVE_DEVICE_MAJOR_FN=no
9394 rm -fr conftest*
9399 echo "$ac_t""$samba_cv_HAVE_DEVICE_MAJOR_FN" 1>&6
9400 if test x"$samba_cv_HAVE_DEVICE_MAJOR_FN" = x"yes"; then
9401 cat >> confdefs.h <<\EOF
9402 #define HAVE_DEVICE_MAJOR_FN 1
9407 echo $ac_n "checking for minor macro""... $ac_c" 1>&6
9408 echo "configure:9409: checking for minor macro" >&5
9409 if eval "test \"`echo '$''{'samba_cv_HAVE_DEVICE_MINOR_FN'+set}'`\" = set"; then
9410 echo $ac_n "(cached) $ac_c" 1>&6
9411 else
9413 if test "$cross_compiling" = yes; then
9414 samba_cv_HAVE_DEVICE_MINOR_FN=cross
9415 else
9416 cat > conftest.$ac_ext <<EOF
9417 #line 9418 "configure"
9418 #include "confdefs.h"
9420 #if defined(HAVE_UNISTD_H)
9421 #include <unistd.h>
9422 #endif
9423 #include <sys/types.h>
9424 main() { dev_t dev; int i = minor(dev); return 0; }
9426 if { (eval echo configure:9427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9427 then
9428 samba_cv_HAVE_DEVICE_MINOR_FN=yes
9429 else
9430 echo "configure: failed program was:" >&5
9431 cat conftest.$ac_ext >&5
9432 rm -fr conftest*
9433 samba_cv_HAVE_DEVICE_MINOR_FN=no
9435 rm -fr conftest*
9440 echo "$ac_t""$samba_cv_HAVE_DEVICE_MINOR_FN" 1>&6
9441 if test x"$samba_cv_HAVE_DEVICE_MINOR_FN" = x"yes"; then
9442 cat >> confdefs.h <<\EOF
9443 #define HAVE_DEVICE_MINOR_FN 1
9448 echo $ac_n "checking for makedev macro""... $ac_c" 1>&6
9449 echo "configure:9450: checking for makedev macro" >&5
9450 if eval "test \"`echo '$''{'samba_cv_HAVE_MAKEDEV_FN'+set}'`\" = set"; then
9451 echo $ac_n "(cached) $ac_c" 1>&6
9452 else
9454 if test "$cross_compiling" = yes; then
9455 samba_cv_HAVE_MAKEDEV_FN=cross
9456 else
9457 cat > conftest.$ac_ext <<EOF
9458 #line 9459 "configure"
9459 #include "confdefs.h"
9461 #if defined(HAVE_UNISTD_H)
9462 #include <unistd.h>
9463 #endif
9464 #include <sys/types.h>
9465 main() { dev_t dev = makedev(1,2); return 0; }
9467 if { (eval echo configure:9468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9468 then
9469 samba_cv_HAVE_MAKEDEV_FN=yes
9470 else
9471 echo "configure: failed program was:" >&5
9472 cat conftest.$ac_ext >&5
9473 rm -fr conftest*
9474 samba_cv_HAVE_MAKEDEV_FN=no
9476 rm -fr conftest*
9481 echo "$ac_t""$samba_cv_HAVE_MAKEDEV_FN" 1>&6
9482 if test x"$samba_cv_HAVE_MAKEDEV_FN" = x"yes"; then
9483 cat >> confdefs.h <<\EOF
9484 #define MAKEDEV_FN 1
9489 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
9490 echo "configure:9491: checking for unsigned char" >&5
9491 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+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_UNSIGNED_CHAR=cross
9497 else
9498 cat > conftest.$ac_ext <<EOF
9499 #line 9500 "configure"
9500 #include "confdefs.h"
9501 #include <stdio.h>
9502 main() { char c; c=250; exit((c > 0)?0:1); }
9504 if { (eval echo configure:9505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9505 then
9506 samba_cv_HAVE_UNSIGNED_CHAR=yes
9507 else
9508 echo "configure: failed program was:" >&5
9509 cat conftest.$ac_ext >&5
9510 rm -fr conftest*
9511 samba_cv_HAVE_UNSIGNED_CHAR=no
9513 rm -fr conftest*
9518 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
9519 if test x"$samba_cv_HAVE_UNSIGNED_CHAR" = x"yes"; then
9520 cat >> confdefs.h <<\EOF
9521 #define HAVE_UNSIGNED_CHAR 1
9526 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
9527 echo "configure:9528: checking for sin_len in sock" >&5
9528 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
9529 echo $ac_n "(cached) $ac_c" 1>&6
9530 else
9532 cat > conftest.$ac_ext <<EOF
9533 #line 9534 "configure"
9534 #include "confdefs.h"
9535 #include <sys/types.h>
9536 #include <sys/socket.h>
9537 #include <netinet/in.h>
9538 int main() {
9539 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
9540 ; return 0; }
9542 if { (eval echo configure:9543: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9543 rm -rf conftest*
9544 samba_cv_HAVE_SOCK_SIN_LEN=yes
9545 else
9546 echo "configure: failed program was:" >&5
9547 cat conftest.$ac_ext >&5
9548 rm -rf conftest*
9549 samba_cv_HAVE_SOCK_SIN_LEN=no
9551 rm -f conftest*
9554 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
9555 if test x"$samba_cv_HAVE_SOCK_SIN_LEN" = x"yes"; then
9556 cat >> confdefs.h <<\EOF
9557 #define HAVE_SOCK_SIN_LEN 1
9562 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
9563 echo "configure:9564: checking whether seekdir returns void" >&5
9564 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
9565 echo $ac_n "(cached) $ac_c" 1>&6
9566 else
9568 cat > conftest.$ac_ext <<EOF
9569 #line 9570 "configure"
9570 #include "confdefs.h"
9571 #include <sys/types.h>
9572 #include <dirent.h>
9573 void seekdir(DIR *d, long loc) { return; }
9574 int main() {
9575 return 0;
9576 ; return 0; }
9578 if { (eval echo configure:9579: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9579 rm -rf conftest*
9580 samba_cv_SEEKDIR_RETURNS_VOID=yes
9581 else
9582 echo "configure: failed program was:" >&5
9583 cat conftest.$ac_ext >&5
9584 rm -rf conftest*
9585 samba_cv_SEEKDIR_RETURNS_VOID=no
9587 rm -f conftest*
9590 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
9591 if test x"$samba_cv_SEEKDIR_RETURNS_VOID" = x"yes"; then
9592 cat >> confdefs.h <<\EOF
9593 #define SEEKDIR_RETURNS_VOID 1
9598 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
9599 echo "configure:9600: checking for __FILE__ macro" >&5
9600 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
9601 echo $ac_n "(cached) $ac_c" 1>&6
9602 else
9604 cat > conftest.$ac_ext <<EOF
9605 #line 9606 "configure"
9606 #include "confdefs.h"
9607 #include <stdio.h>
9608 int main() {
9609 printf("%s\n", __FILE__);
9610 ; return 0; }
9612 if { (eval echo configure:9613: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9613 rm -rf conftest*
9614 samba_cv_HAVE_FILE_MACRO=yes
9615 else
9616 echo "configure: failed program was:" >&5
9617 cat conftest.$ac_ext >&5
9618 rm -rf conftest*
9619 samba_cv_HAVE_FILE_MACRO=no
9621 rm -f conftest*
9624 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
9625 if test x"$samba_cv_HAVE_FILE_MACRO" = x"yes"; then
9626 cat >> confdefs.h <<\EOF
9627 #define HAVE_FILE_MACRO 1
9632 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
9633 echo "configure:9634: checking for __FUNCTION__ macro" >&5
9634 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
9635 echo $ac_n "(cached) $ac_c" 1>&6
9636 else
9638 cat > conftest.$ac_ext <<EOF
9639 #line 9640 "configure"
9640 #include "confdefs.h"
9641 #include <stdio.h>
9642 int main() {
9643 printf("%s\n", __FUNCTION__);
9644 ; return 0; }
9646 if { (eval echo configure:9647: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9647 rm -rf conftest*
9648 samba_cv_HAVE_FUNCTION_MACRO=yes
9649 else
9650 echo "configure: failed program was:" >&5
9651 cat conftest.$ac_ext >&5
9652 rm -rf conftest*
9653 samba_cv_HAVE_FUNCTION_MACRO=no
9655 rm -f conftest*
9658 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
9659 if test x"$samba_cv_HAVE_FUNCTION_MACRO" = x"yes"; then
9660 cat >> confdefs.h <<\EOF
9661 #define HAVE_FUNCTION_MACRO 1
9666 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
9667 echo "configure:9668: checking if gettimeofday takes tz argument" >&5
9668 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
9669 echo $ac_n "(cached) $ac_c" 1>&6
9670 else
9672 if test "$cross_compiling" = yes; then
9673 samba_cv_HAVE_GETTIMEOFDAY_TZ=cross
9674 else
9675 cat > conftest.$ac_ext <<EOF
9676 #line 9677 "configure"
9677 #include "confdefs.h"
9679 #include <sys/time.h>
9680 #include <unistd.h>
9681 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
9683 if { (eval echo configure:9684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9684 then
9685 samba_cv_HAVE_GETTIMEOFDAY_TZ=yes
9686 else
9687 echo "configure: failed program was:" >&5
9688 cat conftest.$ac_ext >&5
9689 rm -fr conftest*
9690 samba_cv_HAVE_GETTIMEOFDAY_TZ=no
9692 rm -fr conftest*
9697 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
9698 if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
9699 cat >> confdefs.h <<\EOF
9700 #define HAVE_GETTIMEOFDAY_TZ 1
9705 echo $ac_n "checking for __va_copy""... $ac_c" 1>&6
9706 echo "configure:9707: checking for __va_copy" >&5
9707 if eval "test \"`echo '$''{'samba_cv_HAVE_VA_COPY'+set}'`\" = set"; then
9708 echo $ac_n "(cached) $ac_c" 1>&6
9709 else
9711 cat > conftest.$ac_ext <<EOF
9712 #line 9713 "configure"
9713 #include "confdefs.h"
9714 #include <stdarg.h>
9715 va_list ap1,ap2;
9716 int main() {
9717 __va_copy(ap1,ap2);
9718 ; return 0; }
9720 if { (eval echo configure:9721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9721 rm -rf conftest*
9722 samba_cv_HAVE_VA_COPY=yes
9723 else
9724 echo "configure: failed program was:" >&5
9725 cat conftest.$ac_ext >&5
9726 rm -rf conftest*
9727 samba_cv_HAVE_VA_COPY=no
9729 rm -f conftest*
9732 echo "$ac_t""$samba_cv_HAVE_VA_COPY" 1>&6
9733 if test x"$samba_cv_HAVE_VA_COPY" = x"yes"; then
9734 cat >> confdefs.h <<\EOF
9735 #define HAVE_VA_COPY 1
9740 echo $ac_n "checking for C99 vsnprintf""... $ac_c" 1>&6
9741 echo "configure:9742: checking for C99 vsnprintf" >&5
9742 if eval "test \"`echo '$''{'samba_cv_HAVE_C99_VSNPRINTF'+set}'`\" = set"; then
9743 echo $ac_n "(cached) $ac_c" 1>&6
9744 else
9746 if test "$cross_compiling" = yes; then
9747 samba_cv_HAVE_C99_VSNPRINTF=cross
9748 else
9749 cat > conftest.$ac_ext <<EOF
9750 #line 9751 "configure"
9751 #include "confdefs.h"
9753 #include <sys/types.h>
9754 #include <stdarg.h>
9755 void foo(const char *format, ...) {
9756 va_list ap;
9757 int len;
9758 char buf[5];
9760 va_start(ap, format);
9761 len = vsnprintf(buf, 0, format, ap);
9762 va_end(ap);
9763 if (len != 5) exit(1);
9765 va_start(ap, format);
9766 len = vsnprintf(0, 0, format, ap);
9767 va_end(ap);
9768 if (len != 5) exit(1);
9770 if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
9772 exit(0);
9774 main() { foo("hello"); }
9777 if { (eval echo configure:9778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9778 then
9779 samba_cv_HAVE_C99_VSNPRINTF=yes
9780 else
9781 echo "configure: failed program was:" >&5
9782 cat conftest.$ac_ext >&5
9783 rm -fr conftest*
9784 samba_cv_HAVE_C99_VSNPRINTF=no
9786 rm -fr conftest*
9791 echo "$ac_t""$samba_cv_HAVE_C99_VSNPRINTF" 1>&6
9792 if test x"$samba_cv_HAVE_C99_VSNPRINTF" = x"yes"; then
9793 cat >> confdefs.h <<\EOF
9794 #define HAVE_C99_VSNPRINTF 1
9799 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
9800 echo "configure:9801: checking for broken readdir" >&5
9801 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
9802 echo $ac_n "(cached) $ac_c" 1>&6
9803 else
9805 if test "$cross_compiling" = yes; then
9806 samba_cv_HAVE_BROKEN_READDIR=cross
9807 else
9808 cat > conftest.$ac_ext <<EOF
9809 #line 9810 "configure"
9810 #include "confdefs.h"
9811 #include <sys/types.h>
9812 #include <dirent.h>
9813 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
9814 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
9815 di->d_name[0] == 0) exit(0); exit(1);}
9817 if { (eval echo configure:9818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9818 then
9819 samba_cv_HAVE_BROKEN_READDIR=yes
9820 else
9821 echo "configure: failed program was:" >&5
9822 cat conftest.$ac_ext >&5
9823 rm -fr conftest*
9824 samba_cv_HAVE_BROKEN_READDIR=no
9826 rm -fr conftest*
9831 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
9832 if test x"$samba_cv_HAVE_BROKEN_READDIR" = x"yes"; then
9833 cat >> confdefs.h <<\EOF
9834 #define HAVE_BROKEN_READDIR 1
9839 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
9840 echo "configure:9841: checking for utimbuf" >&5
9841 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
9842 echo $ac_n "(cached) $ac_c" 1>&6
9843 else
9845 cat > conftest.$ac_ext <<EOF
9846 #line 9847 "configure"
9847 #include "confdefs.h"
9848 #include <sys/types.h>
9849 #include <utime.h>
9850 int main() {
9851 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
9852 ; return 0; }
9854 if { (eval echo configure:9855: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9855 rm -rf conftest*
9856 samba_cv_HAVE_UTIMBUF=yes
9857 else
9858 echo "configure: failed program was:" >&5
9859 cat conftest.$ac_ext >&5
9860 rm -rf conftest*
9861 samba_cv_HAVE_UTIMBUF=no
9863 rm -f conftest*
9866 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
9867 if test x"$samba_cv_HAVE_UTIMBUF" = x"yes"; then
9868 cat >> confdefs.h <<\EOF
9869 #define HAVE_UTIMBUF 1
9875 for ac_func in pututline pututxline updwtmp updwtmpx getutmpx
9877 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9878 echo "configure:9879: checking for $ac_func" >&5
9879 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9880 echo $ac_n "(cached) $ac_c" 1>&6
9881 else
9882 cat > conftest.$ac_ext <<EOF
9883 #line 9884 "configure"
9884 #include "confdefs.h"
9885 /* System header to define __stub macros and hopefully few prototypes,
9886 which can conflict with char $ac_func(); below. */
9887 #include <assert.h>
9888 /* Override any gcc2 internal prototype to avoid an error. */
9889 /* We use char because int might match the return type of a gcc2
9890 builtin and then its argument prototype would still apply. */
9891 char $ac_func();
9893 int main() {
9895 /* The GNU C library defines this for functions which it implements
9896 to always fail with ENOSYS. Some functions are actually named
9897 something starting with __ and the normal name is an alias. */
9898 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9899 choke me
9900 #else
9901 $ac_func();
9902 #endif
9904 ; return 0; }
9906 if { (eval echo configure:9907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9907 rm -rf conftest*
9908 eval "ac_cv_func_$ac_func=yes"
9909 else
9910 echo "configure: failed program was:" >&5
9911 cat conftest.$ac_ext >&5
9912 rm -rf conftest*
9913 eval "ac_cv_func_$ac_func=no"
9915 rm -f conftest*
9918 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9919 echo "$ac_t""yes" 1>&6
9920 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9921 cat >> confdefs.h <<EOF
9922 #define $ac_tr_func 1
9925 else
9926 echo "$ac_t""no" 1>&6
9928 done
9931 echo $ac_n "checking for ut_name in utmp""... $ac_c" 1>&6
9932 echo "configure:9933: checking for ut_name in utmp" >&5
9933 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_NAME'+set}'`\" = set"; then
9934 echo $ac_n "(cached) $ac_c" 1>&6
9935 else
9937 cat > conftest.$ac_ext <<EOF
9938 #line 9939 "configure"
9939 #include "confdefs.h"
9940 #include <sys/types.h>
9941 #include <utmp.h>
9942 int main() {
9943 struct utmp ut; ut.ut_name[0] = 'a';
9944 ; return 0; }
9946 if { (eval echo configure:9947: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9947 rm -rf conftest*
9948 samba_cv_HAVE_UT_UT_NAME=yes
9949 else
9950 echo "configure: failed program was:" >&5
9951 cat conftest.$ac_ext >&5
9952 rm -rf conftest*
9953 samba_cv_HAVE_UT_UT_NAME=no
9955 rm -f conftest*
9958 echo "$ac_t""$samba_cv_HAVE_UT_UT_NAME" 1>&6
9959 if test x"$samba_cv_HAVE_UT_UT_NAME" = x"yes"; then
9960 cat >> confdefs.h <<\EOF
9961 #define HAVE_UT_UT_NAME 1
9966 echo $ac_n "checking for ut_user in utmp""... $ac_c" 1>&6
9967 echo "configure:9968: checking for ut_user in utmp" >&5
9968 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_USER'+set}'`\" = set"; then
9969 echo $ac_n "(cached) $ac_c" 1>&6
9970 else
9972 cat > conftest.$ac_ext <<EOF
9973 #line 9974 "configure"
9974 #include "confdefs.h"
9975 #include <sys/types.h>
9976 #include <utmp.h>
9977 int main() {
9978 struct utmp ut; ut.ut_user[0] = 'a';
9979 ; return 0; }
9981 if { (eval echo configure:9982: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9982 rm -rf conftest*
9983 samba_cv_HAVE_UT_UT_USER=yes
9984 else
9985 echo "configure: failed program was:" >&5
9986 cat conftest.$ac_ext >&5
9987 rm -rf conftest*
9988 samba_cv_HAVE_UT_UT_USER=no
9990 rm -f conftest*
9993 echo "$ac_t""$samba_cv_HAVE_UT_UT_USER" 1>&6
9994 if test x"$samba_cv_HAVE_UT_UT_USER" = x"yes"; then
9995 cat >> confdefs.h <<\EOF
9996 #define HAVE_UT_UT_USER 1
10001 echo $ac_n "checking for ut_id in utmp""... $ac_c" 1>&6
10002 echo "configure:10003: checking for ut_id in utmp" >&5
10003 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ID'+set}'`\" = set"; then
10004 echo $ac_n "(cached) $ac_c" 1>&6
10005 else
10007 cat > conftest.$ac_ext <<EOF
10008 #line 10009 "configure"
10009 #include "confdefs.h"
10010 #include <sys/types.h>
10011 #include <utmp.h>
10012 int main() {
10013 struct utmp ut; ut.ut_id[0] = 'a';
10014 ; return 0; }
10016 if { (eval echo configure:10017: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10017 rm -rf conftest*
10018 samba_cv_HAVE_UT_UT_ID=yes
10019 else
10020 echo "configure: failed program was:" >&5
10021 cat conftest.$ac_ext >&5
10022 rm -rf conftest*
10023 samba_cv_HAVE_UT_UT_ID=no
10025 rm -f conftest*
10028 echo "$ac_t""$samba_cv_HAVE_UT_UT_ID" 1>&6
10029 if test x"$samba_cv_HAVE_UT_UT_ID" = x"yes"; then
10030 cat >> confdefs.h <<\EOF
10031 #define HAVE_UT_UT_ID 1
10036 echo $ac_n "checking for ut_host in utmp""... $ac_c" 1>&6
10037 echo "configure:10038: checking for ut_host in utmp" >&5
10038 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_HOST'+set}'`\" = set"; then
10039 echo $ac_n "(cached) $ac_c" 1>&6
10040 else
10042 cat > conftest.$ac_ext <<EOF
10043 #line 10044 "configure"
10044 #include "confdefs.h"
10045 #include <sys/types.h>
10046 #include <utmp.h>
10047 int main() {
10048 struct utmp ut; ut.ut_host[0] = 'a';
10049 ; return 0; }
10051 if { (eval echo configure:10052: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10052 rm -rf conftest*
10053 samba_cv_HAVE_UT_UT_HOST=yes
10054 else
10055 echo "configure: failed program was:" >&5
10056 cat conftest.$ac_ext >&5
10057 rm -rf conftest*
10058 samba_cv_HAVE_UT_UT_HOST=no
10060 rm -f conftest*
10063 echo "$ac_t""$samba_cv_HAVE_UT_UT_HOST" 1>&6
10064 if test x"$samba_cv_HAVE_UT_UT_HOST" = x"yes"; then
10065 cat >> confdefs.h <<\EOF
10066 #define HAVE_UT_UT_HOST 1
10071 echo $ac_n "checking for ut_time in utmp""... $ac_c" 1>&6
10072 echo "configure:10073: checking for ut_time in utmp" >&5
10073 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TIME'+set}'`\" = set"; then
10074 echo $ac_n "(cached) $ac_c" 1>&6
10075 else
10077 cat > conftest.$ac_ext <<EOF
10078 #line 10079 "configure"
10079 #include "confdefs.h"
10080 #include <sys/types.h>
10081 #include <utmp.h>
10082 int main() {
10083 struct utmp ut; time_t t; ut.ut_time = t;
10084 ; return 0; }
10086 if { (eval echo configure:10087: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10087 rm -rf conftest*
10088 samba_cv_HAVE_UT_UT_TIME=yes
10089 else
10090 echo "configure: failed program was:" >&5
10091 cat conftest.$ac_ext >&5
10092 rm -rf conftest*
10093 samba_cv_HAVE_UT_UT_TIME=no
10095 rm -f conftest*
10098 echo "$ac_t""$samba_cv_HAVE_UT_UT_TIME" 1>&6
10099 if test x"$samba_cv_HAVE_UT_UT_TIME" = x"yes"; then
10100 cat >> confdefs.h <<\EOF
10101 #define HAVE_UT_UT_TIME 1
10106 echo $ac_n "checking for ut_tv in utmp""... $ac_c" 1>&6
10107 echo "configure:10108: checking for ut_tv in utmp" >&5
10108 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TV'+set}'`\" = set"; then
10109 echo $ac_n "(cached) $ac_c" 1>&6
10110 else
10112 cat > conftest.$ac_ext <<EOF
10113 #line 10114 "configure"
10114 #include "confdefs.h"
10115 #include <sys/types.h>
10116 #include <utmp.h>
10117 int main() {
10118 struct utmp ut; struct timeval tv; ut.ut_tv = tv;
10119 ; return 0; }
10121 if { (eval echo configure:10122: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10122 rm -rf conftest*
10123 samba_cv_HAVE_UT_UT_TV=yes
10124 else
10125 echo "configure: failed program was:" >&5
10126 cat conftest.$ac_ext >&5
10127 rm -rf conftest*
10128 samba_cv_HAVE_UT_UT_TV=no
10130 rm -f conftest*
10133 echo "$ac_t""$samba_cv_HAVE_UT_UT_TV" 1>&6
10134 if test x"$samba_cv_HAVE_UT_UT_TV" = x"yes"; then
10135 cat >> confdefs.h <<\EOF
10136 #define HAVE_UT_UT_TV 1
10141 echo $ac_n "checking for ut_type in utmp""... $ac_c" 1>&6
10142 echo "configure:10143: checking for ut_type in utmp" >&5
10143 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TYPE'+set}'`\" = set"; then
10144 echo $ac_n "(cached) $ac_c" 1>&6
10145 else
10147 cat > conftest.$ac_ext <<EOF
10148 #line 10149 "configure"
10149 #include "confdefs.h"
10150 #include <sys/types.h>
10151 #include <utmp.h>
10152 int main() {
10153 struct utmp ut; ut.ut_type = 0;
10154 ; return 0; }
10156 if { (eval echo configure:10157: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10157 rm -rf conftest*
10158 samba_cv_HAVE_UT_UT_TYPE=yes
10159 else
10160 echo "configure: failed program was:" >&5
10161 cat conftest.$ac_ext >&5
10162 rm -rf conftest*
10163 samba_cv_HAVE_UT_UT_TYPE=no
10165 rm -f conftest*
10168 echo "$ac_t""$samba_cv_HAVE_UT_UT_TYPE" 1>&6
10169 if test x"$samba_cv_HAVE_UT_UT_TYPE" = x"yes"; then
10170 cat >> confdefs.h <<\EOF
10171 #define HAVE_UT_UT_TYPE 1
10176 echo $ac_n "checking for ut_pid in utmp""... $ac_c" 1>&6
10177 echo "configure:10178: checking for ut_pid in utmp" >&5
10178 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_PID'+set}'`\" = set"; then
10179 echo $ac_n "(cached) $ac_c" 1>&6
10180 else
10182 cat > conftest.$ac_ext <<EOF
10183 #line 10184 "configure"
10184 #include "confdefs.h"
10185 #include <sys/types.h>
10186 #include <utmp.h>
10187 int main() {
10188 struct utmp ut; ut.ut_pid = 0;
10189 ; return 0; }
10191 if { (eval echo configure:10192: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10192 rm -rf conftest*
10193 samba_cv_HAVE_UT_UT_PID=yes
10194 else
10195 echo "configure: failed program was:" >&5
10196 cat conftest.$ac_ext >&5
10197 rm -rf conftest*
10198 samba_cv_HAVE_UT_UT_PID=no
10200 rm -f conftest*
10203 echo "$ac_t""$samba_cv_HAVE_UT_UT_PID" 1>&6
10204 if test x"$samba_cv_HAVE_UT_UT_PID" = x"yes"; then
10205 cat >> confdefs.h <<\EOF
10206 #define HAVE_UT_UT_PID 1
10211 echo $ac_n "checking for ut_exit in utmp""... $ac_c" 1>&6
10212 echo "configure:10213: checking for ut_exit in utmp" >&5
10213 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_EXIT'+set}'`\" = set"; then
10214 echo $ac_n "(cached) $ac_c" 1>&6
10215 else
10217 cat > conftest.$ac_ext <<EOF
10218 #line 10219 "configure"
10219 #include "confdefs.h"
10220 #include <sys/types.h>
10221 #include <utmp.h>
10222 int main() {
10223 struct utmp ut; ut.ut_exit.e_exit = 0;
10224 ; return 0; }
10226 if { (eval echo configure:10227: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10227 rm -rf conftest*
10228 samba_cv_HAVE_UT_UT_EXIT=yes
10229 else
10230 echo "configure: failed program was:" >&5
10231 cat conftest.$ac_ext >&5
10232 rm -rf conftest*
10233 samba_cv_HAVE_UT_UT_EXIT=no
10235 rm -f conftest*
10238 echo "$ac_t""$samba_cv_HAVE_UT_UT_EXIT" 1>&6
10239 if test x"$samba_cv_HAVE_UT_UT_EXIT" = x"yes"; then
10240 cat >> confdefs.h <<\EOF
10241 #define HAVE_UT_UT_EXIT 1
10246 echo $ac_n "checking for ut_addr in utmp""... $ac_c" 1>&6
10247 echo "configure:10248: checking for ut_addr in utmp" >&5
10248 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ADDR'+set}'`\" = set"; then
10249 echo $ac_n "(cached) $ac_c" 1>&6
10250 else
10252 cat > conftest.$ac_ext <<EOF
10253 #line 10254 "configure"
10254 #include "confdefs.h"
10255 #include <sys/types.h>
10256 #include <utmp.h>
10257 int main() {
10258 struct utmp ut; ut.ut_addr = 0;
10259 ; return 0; }
10261 if { (eval echo configure:10262: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10262 rm -rf conftest*
10263 samba_cv_HAVE_UT_UT_ADDR=yes
10264 else
10265 echo "configure: failed program was:" >&5
10266 cat conftest.$ac_ext >&5
10267 rm -rf conftest*
10268 samba_cv_HAVE_UT_UT_ADDR=no
10270 rm -f conftest*
10273 echo "$ac_t""$samba_cv_HAVE_UT_UT_ADDR" 1>&6
10274 if test x"$samba_cv_HAVE_UT_UT_ADDR" = x"yes"; then
10275 cat >> confdefs.h <<\EOF
10276 #define HAVE_UT_UT_ADDR 1
10281 if test x$ac_cv_func_pututline = xyes ; then
10282 echo $ac_n "checking whether pututline returns pointer""... $ac_c" 1>&6
10283 echo "configure:10284: checking whether pututline returns pointer" >&5
10284 if eval "test \"`echo '$''{'samba_cv_PUTUTLINE_RETURNS_UTMP'+set}'`\" = set"; then
10285 echo $ac_n "(cached) $ac_c" 1>&6
10286 else
10288 cat > conftest.$ac_ext <<EOF
10289 #line 10290 "configure"
10290 #include "confdefs.h"
10291 #include <sys/types.h>
10292 #include <utmp.h>
10293 int main() {
10294 struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
10295 ; return 0; }
10297 if { (eval echo configure:10298: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10298 rm -rf conftest*
10299 samba_cv_PUTUTLINE_RETURNS_UTMP=yes
10300 else
10301 echo "configure: failed program was:" >&5
10302 cat conftest.$ac_ext >&5
10303 rm -rf conftest*
10304 samba_cv_PUTUTLINE_RETURNS_UTMP=no
10306 rm -f conftest*
10309 echo "$ac_t""$samba_cv_PUTUTLINE_RETURNS_UTMP" 1>&6
10310 if test x"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x"yes"; then
10311 cat >> confdefs.h <<\EOF
10312 #define PUTUTLINE_RETURNS_UTMP 1
10318 echo $ac_n "checking for ut_syslen in utmpx""... $ac_c" 1>&6
10319 echo "configure:10320: checking for ut_syslen in utmpx" >&5
10320 if eval "test \"`echo '$''{'samba_cv_HAVE_UX_UT_SYSLEN'+set}'`\" = set"; then
10321 echo $ac_n "(cached) $ac_c" 1>&6
10322 else
10324 cat > conftest.$ac_ext <<EOF
10325 #line 10326 "configure"
10326 #include "confdefs.h"
10327 #include <sys/types.h>
10328 #include <utmpx.h>
10329 int main() {
10330 struct utmpx ux; ux.ut_syslen = 0;
10331 ; return 0; }
10333 if { (eval echo configure:10334: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10334 rm -rf conftest*
10335 samba_cv_HAVE_UX_UT_SYSLEN=yes
10336 else
10337 echo "configure: failed program was:" >&5
10338 cat conftest.$ac_ext >&5
10339 rm -rf conftest*
10340 samba_cv_HAVE_UX_UT_SYSLEN=no
10342 rm -f conftest*
10345 echo "$ac_t""$samba_cv_HAVE_UX_UT_SYSLEN" 1>&6
10346 if test x"$samba_cv_HAVE_UX_UT_SYSLEN" = x"yes"; then
10347 cat >> confdefs.h <<\EOF
10348 #define HAVE_UX_UT_SYSLEN 1
10353 echo $ac_n "checking for Linux kernel oplocks""... $ac_c" 1>&6
10354 echo "configure:10355: checking for Linux kernel oplocks" >&5
10355 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_LINUX'+set}'`\" = set"; then
10356 echo $ac_n "(cached) $ac_c" 1>&6
10357 else
10359 if test "$cross_compiling" = yes; then
10360 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=cross
10361 else
10362 cat > conftest.$ac_ext <<EOF
10363 #line 10364 "configure"
10364 #include "confdefs.h"
10366 #include <sys/types.h>
10367 #include <fcntl.h>
10368 #ifndef F_GETLEASE
10369 #define F_GETLEASE 1025
10370 #endif
10371 main() {
10372 int fd = open("/dev/null", O_RDONLY);
10373 return fcntl(fd, F_GETLEASE, 0) == -1;
10377 if { (eval echo configure:10378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10378 then
10379 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=yes
10380 else
10381 echo "configure: failed program was:" >&5
10382 cat conftest.$ac_ext >&5
10383 rm -fr conftest*
10384 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=no
10386 rm -fr conftest*
10391 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" 1>&6
10392 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x"yes"; then
10393 cat >> confdefs.h <<\EOF
10394 #define HAVE_KERNEL_OPLOCKS_LINUX 1
10399 echo $ac_n "checking for kernel change notify support""... $ac_c" 1>&6
10400 echo "configure:10401: checking for kernel change notify support" >&5
10401 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_CHANGE_NOTIFY'+set}'`\" = set"; then
10402 echo $ac_n "(cached) $ac_c" 1>&6
10403 else
10405 if test "$cross_compiling" = yes; then
10406 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=cross
10407 else
10408 cat > conftest.$ac_ext <<EOF
10409 #line 10410 "configure"
10410 #include "confdefs.h"
10412 #include <sys/types.h>
10413 #include <fcntl.h>
10414 #include <signal.h>
10415 #ifndef F_NOTIFY
10416 #define F_NOTIFY 1026
10417 #endif
10418 main() {
10419 exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0);
10423 if { (eval echo configure:10424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10424 then
10425 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=yes
10426 else
10427 echo "configure: failed program was:" >&5
10428 cat conftest.$ac_ext >&5
10429 rm -fr conftest*
10430 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=no
10432 rm -fr conftest*
10437 echo "$ac_t""$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" 1>&6
10438 if test x"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x"yes" && test x"$target_cpu" != x"s390"; then
10439 cat >> confdefs.h <<\EOF
10440 #define HAVE_KERNEL_CHANGE_NOTIFY 1
10445 echo $ac_n "checking for kernel share modes""... $ac_c" 1>&6
10446 echo "configure:10447: checking for kernel share modes" >&5
10447 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_SHARE_MODES'+set}'`\" = set"; then
10448 echo $ac_n "(cached) $ac_c" 1>&6
10449 else
10451 if test "$cross_compiling" = yes; then
10452 samba_cv_HAVE_KERNEL_SHARE_MODES=cross
10453 else
10454 cat > conftest.$ac_ext <<EOF
10455 #line 10456 "configure"
10456 #include "confdefs.h"
10458 #include <sys/types.h>
10459 #include <fcntl.h>
10460 #include <signal.h>
10461 #include <sys/file.h>
10462 #ifndef LOCK_MAND
10463 #define LOCK_MAND 32
10464 #define LOCK_READ 64
10465 #endif
10466 main() {
10467 exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
10471 if { (eval echo configure:10472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10472 then
10473 samba_cv_HAVE_KERNEL_SHARE_MODES=yes
10474 else
10475 echo "configure: failed program was:" >&5
10476 cat conftest.$ac_ext >&5
10477 rm -fr conftest*
10478 samba_cv_HAVE_KERNEL_SHARE_MODES=no
10480 rm -fr conftest*
10485 echo "$ac_t""$samba_cv_HAVE_KERNEL_SHARE_MODES" 1>&6
10486 if test x"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x"yes"; then
10487 cat >> confdefs.h <<\EOF
10488 #define HAVE_KERNEL_SHARE_MODES 1
10496 echo $ac_n "checking for IRIX kernel oplock type definitions""... $ac_c" 1>&6
10497 echo "configure:10498: checking for IRIX kernel oplock type definitions" >&5
10498 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_IRIX'+set}'`\" = set"; then
10499 echo $ac_n "(cached) $ac_c" 1>&6
10500 else
10502 cat > conftest.$ac_ext <<EOF
10503 #line 10504 "configure"
10504 #include "confdefs.h"
10505 #include <sys/types.h>
10506 #include <fcntl.h>
10507 int main() {
10508 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
10509 ; return 0; }
10511 if { (eval echo configure:10512: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10512 rm -rf conftest*
10513 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=yes
10514 else
10515 echo "configure: failed program was:" >&5
10516 cat conftest.$ac_ext >&5
10517 rm -rf conftest*
10518 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=no
10520 rm -f conftest*
10523 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" 1>&6
10524 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x"yes"; then
10525 cat >> confdefs.h <<\EOF
10526 #define HAVE_KERNEL_OPLOCKS_IRIX 1
10531 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
10532 echo "configure:10533: checking for irix specific capabilities" >&5
10533 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
10534 echo $ac_n "(cached) $ac_c" 1>&6
10535 else
10537 if test "$cross_compiling" = yes; then
10538 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=cross
10539 else
10540 cat > conftest.$ac_ext <<EOF
10541 #line 10542 "configure"
10542 #include "confdefs.h"
10543 #include <sys/types.h>
10544 #include <sys/capability.h>
10545 main() {
10546 cap_t cap;
10547 if ((cap = cap_get_proc()) == NULL)
10548 exit(1);
10549 cap->cap_effective |= CAP_NETWORK_MGT;
10550 cap->cap_inheritable |= CAP_NETWORK_MGT;
10551 cap_set_proc(cap);
10552 exit(0);
10556 if { (eval echo configure:10557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10557 then
10558 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=yes
10559 else
10560 echo "configure: failed program was:" >&5
10561 cat conftest.$ac_ext >&5
10562 rm -fr conftest*
10563 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=no
10565 rm -fr conftest*
10570 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
10571 if test x"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x"yes"; then
10572 cat >> confdefs.h <<\EOF
10573 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
10579 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
10580 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
10583 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10584 echo "configure:10585: checking for int16 typedef included by rpc/rpc.h" >&5
10585 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10586 echo $ac_n "(cached) $ac_c" 1>&6
10587 else
10589 cat > conftest.$ac_ext <<EOF
10590 #line 10591 "configure"
10591 #include "confdefs.h"
10592 #include <sys/types.h>
10593 #if defined(HAVE_RPC_RPC_H)
10594 #include <rpc/rpc.h>
10595 #endif
10596 int main() {
10597 int16 testvar;
10598 ; return 0; }
10600 if { (eval echo configure:10601: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10601 rm -rf conftest*
10602 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=yes
10603 else
10604 echo "configure: failed program was:" >&5
10605 cat conftest.$ac_ext >&5
10606 rm -rf conftest*
10607 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=no
10609 rm -f conftest*
10612 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
10613 if test x"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x"yes"; then
10614 cat >> confdefs.h <<\EOF
10615 #define HAVE_INT16_FROM_RPC_RPC_H 1
10620 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10621 echo "configure:10622: checking for uint16 typedef included by rpc/rpc.h" >&5
10622 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10623 echo $ac_n "(cached) $ac_c" 1>&6
10624 else
10626 cat > conftest.$ac_ext <<EOF
10627 #line 10628 "configure"
10628 #include "confdefs.h"
10629 #include <sys/types.h>
10630 #if defined(HAVE_RPC_RPC_H)
10631 #include <rpc/rpc.h>
10632 #endif
10633 int main() {
10634 uint16 testvar;
10635 ; return 0; }
10637 if { (eval echo configure:10638: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10638 rm -rf conftest*
10639 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=yes
10640 else
10641 echo "configure: failed program was:" >&5
10642 cat conftest.$ac_ext >&5
10643 rm -rf conftest*
10644 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=no
10646 rm -f conftest*
10649 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
10650 if test x"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x"yes"; then
10651 cat >> confdefs.h <<\EOF
10652 #define HAVE_UINT16_FROM_RPC_RPC_H 1
10657 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10658 echo "configure:10659: checking for int32 typedef included by rpc/rpc.h" >&5
10659 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10660 echo $ac_n "(cached) $ac_c" 1>&6
10661 else
10663 cat > conftest.$ac_ext <<EOF
10664 #line 10665 "configure"
10665 #include "confdefs.h"
10666 #include <sys/types.h>
10667 #if defined(HAVE_RPC_RPC_H)
10668 #include <rpc/rpc.h>
10669 #endif
10670 int main() {
10671 int32 testvar;
10672 ; return 0; }
10674 if { (eval echo configure:10675: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10675 rm -rf conftest*
10676 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=yes
10677 else
10678 echo "configure: failed program was:" >&5
10679 cat conftest.$ac_ext >&5
10680 rm -rf conftest*
10681 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=no
10683 rm -f conftest*
10686 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
10687 if test x"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x"yes"; then
10688 cat >> confdefs.h <<\EOF
10689 #define HAVE_INT32_FROM_RPC_RPC_H 1
10694 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10695 echo "configure:10696: checking for uint32 typedef included by rpc/rpc.h" >&5
10696 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10697 echo $ac_n "(cached) $ac_c" 1>&6
10698 else
10700 cat > conftest.$ac_ext <<EOF
10701 #line 10702 "configure"
10702 #include "confdefs.h"
10703 #include <sys/types.h>
10704 #if defined(HAVE_RPC_RPC_H)
10705 #include <rpc/rpc.h>
10706 #endif
10707 int main() {
10708 uint32 testvar;
10709 ; return 0; }
10711 if { (eval echo configure:10712: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10712 rm -rf conftest*
10713 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=yes
10714 else
10715 echo "configure: failed program was:" >&5
10716 cat conftest.$ac_ext >&5
10717 rm -rf conftest*
10718 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=no
10720 rm -f conftest*
10723 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
10724 if test x"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x"yes"; then
10725 cat >> confdefs.h <<\EOF
10726 #define HAVE_UINT32_FROM_RPC_RPC_H 1
10732 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
10733 echo "configure:10734: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
10734 if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
10735 echo $ac_n "(cached) $ac_c" 1>&6
10736 else
10738 cat > conftest.$ac_ext <<EOF
10739 #line 10740 "configure"
10740 #include "confdefs.h"
10741 #include <sys/types.h>
10742 #ifdef HAVE_SYS_SECURITY_H
10743 #include <sys/security.h>
10744 #include <prot.h>
10745 #endif /* HAVE_SYS_SECURITY_H */
10746 #if defined(HAVE_RPC_RPC_H)
10747 #include <rpc/rpc.h>
10748 #endif
10749 int main() {
10750 int testvar;
10751 ; return 0; }
10753 if { (eval echo configure:10754: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10754 rm -rf conftest*
10755 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=no
10756 else
10757 echo "configure: failed program was:" >&5
10758 cat conftest.$ac_ext >&5
10759 rm -rf conftest*
10760 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=yes
10762 rm -f conftest*
10765 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
10766 if test x"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x"yes"; then
10767 cat >> confdefs.h <<\EOF
10768 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
10773 echo $ac_n "checking for test routines""... $ac_c" 1>&6
10774 echo "configure:10775: checking for test routines" >&5
10775 if test "$cross_compiling" = yes; then
10776 echo "configure: warning: cannot run when cross-compiling" 1>&2
10777 else
10778 cat > conftest.$ac_ext <<EOF
10779 #line 10780 "configure"
10780 #include "confdefs.h"
10781 #include "${srcdir-.}/tests/trivial.c"
10783 if { (eval echo configure:10784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10784 then
10785 echo "$ac_t""yes" 1>&6
10786 else
10787 echo "configure: failed program was:" >&5
10788 cat conftest.$ac_ext >&5
10789 rm -fr conftest*
10790 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
10792 rm -fr conftest*
10796 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
10797 echo "configure:10798: checking for ftruncate extend" >&5
10798 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
10799 echo $ac_n "(cached) $ac_c" 1>&6
10800 else
10802 if test "$cross_compiling" = yes; then
10803 samba_cv_HAVE_FTRUNCATE_EXTEND=cross
10804 else
10805 cat > conftest.$ac_ext <<EOF
10806 #line 10807 "configure"
10807 #include "confdefs.h"
10808 #include "${srcdir-.}/tests/ftruncate.c"
10810 if { (eval echo configure:10811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10811 then
10812 samba_cv_HAVE_FTRUNCATE_EXTEND=yes
10813 else
10814 echo "configure: failed program was:" >&5
10815 cat conftest.$ac_ext >&5
10816 rm -fr conftest*
10817 samba_cv_HAVE_FTRUNCATE_EXTEND=no
10819 rm -fr conftest*
10824 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
10825 if test x"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x"yes"; then
10826 cat >> confdefs.h <<\EOF
10827 #define HAVE_FTRUNCATE_EXTEND 1
10832 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
10833 echo "configure:10834: checking for broken getgroups" >&5
10834 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
10835 echo $ac_n "(cached) $ac_c" 1>&6
10836 else
10838 if test "$cross_compiling" = yes; then
10839 samba_cv_HAVE_BROKEN_GETGROUPS=cross
10840 else
10841 cat > conftest.$ac_ext <<EOF
10842 #line 10843 "configure"
10843 #include "confdefs.h"
10844 #include "${srcdir-.}/tests/getgroups.c"
10846 if { (eval echo configure:10847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10847 then
10848 samba_cv_HAVE_BROKEN_GETGROUPS=yes
10849 else
10850 echo "configure: failed program was:" >&5
10851 cat conftest.$ac_ext >&5
10852 rm -fr conftest*
10853 samba_cv_HAVE_BROKEN_GETGROUPS=no
10855 rm -fr conftest*
10860 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
10861 if test x"$samba_cv_HAVE_BROKEN_GETGROUPS" = x"yes"; then
10862 cat >> confdefs.h <<\EOF
10863 #define HAVE_BROKEN_GETGROUPS 1
10868 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
10869 echo "configure:10870: checking whether getpass should be replaced" >&5
10870 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
10871 echo $ac_n "(cached) $ac_c" 1>&6
10872 else
10874 SAVE_CPPFLAGS="$CPPFLAGS"
10875 CPPFLAGS="$CPPFLAGS -I${srcdir-.}/ -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/popt -I${srcdir-.}/smbwrapper"
10876 cat > conftest.$ac_ext <<EOF
10877 #line 10878 "configure"
10878 #include "confdefs.h"
10880 #define REPLACE_GETPASS 1
10881 #define NO_CONFIG_H 1
10882 #define main dont_declare_main
10883 #include "${srcdir-.}/lib/getsmbpass.c"
10884 #undef main
10886 int main() {
10888 ; return 0; }
10890 if { (eval echo configure:10891: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10891 rm -rf conftest*
10892 samba_cv_REPLACE_GETPASS=yes
10893 else
10894 echo "configure: failed program was:" >&5
10895 cat conftest.$ac_ext >&5
10896 rm -rf conftest*
10897 samba_cv_REPLACE_GETPASS=no
10899 rm -f conftest*
10900 CPPFLAGS="$SAVE_CPPFLAGS"
10904 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
10905 if test x"$samba_cv_REPLACE_GETPASS" = x"yes"; then
10906 cat >> confdefs.h <<\EOF
10907 #define REPLACE_GETPASS 1
10912 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
10913 echo "configure:10914: checking for broken inet_ntoa" >&5
10914 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
10915 echo $ac_n "(cached) $ac_c" 1>&6
10916 else
10918 if test "$cross_compiling" = yes; then
10919 samba_cv_REPLACE_INET_NTOA=cross
10920 else
10921 cat > conftest.$ac_ext <<EOF
10922 #line 10923 "configure"
10923 #include "confdefs.h"
10925 #include <stdio.h>
10926 #include <sys/types.h>
10927 #include <netinet/in.h>
10928 #ifdef HAVE_ARPA_INET_H
10929 #include <arpa/inet.h>
10930 #endif
10931 main() { struct in_addr ip; ip.s_addr = 0x12345678;
10932 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
10933 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
10934 exit(1);}
10936 if { (eval echo configure:10937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10937 then
10938 samba_cv_REPLACE_INET_NTOA=yes
10939 else
10940 echo "configure: failed program was:" >&5
10941 cat conftest.$ac_ext >&5
10942 rm -fr conftest*
10943 samba_cv_REPLACE_INET_NTOA=no
10945 rm -fr conftest*
10950 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
10951 if test x"$samba_cv_REPLACE_INET_NTOA" = x"yes"; then
10952 cat >> confdefs.h <<\EOF
10953 #define REPLACE_INET_NTOA 1
10958 echo $ac_n "checking for secure mkstemp""... $ac_c" 1>&6
10959 echo "configure:10960: checking for secure mkstemp" >&5
10960 if eval "test \"`echo '$''{'samba_cv_HAVE_SECURE_MKSTEMP'+set}'`\" = set"; then
10961 echo $ac_n "(cached) $ac_c" 1>&6
10962 else
10964 if test "$cross_compiling" = yes; then
10965 samba_cv_HAVE_SECURE_MKSTEMP=cross
10966 else
10967 cat > conftest.$ac_ext <<EOF
10968 #line 10969 "configure"
10969 #include "confdefs.h"
10970 #include <stdlib.h>
10971 #include <sys/types.h>
10972 #include <sys/stat.h>
10973 #include <unistd.h>
10974 main() {
10975 struct stat st;
10976 char tpl[20]="/tmp/test.XXXXXX";
10977 int fd = mkstemp(tpl);
10978 if (fd == -1) exit(1);
10979 unlink(tpl);
10980 if (fstat(fd, &st) != 0) exit(1);
10981 if ((st.st_mode & 0777) != 0600) exit(1);
10982 exit(0);
10985 if { (eval echo configure:10986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10986 then
10987 samba_cv_HAVE_SECURE_MKSTEMP=yes
10988 else
10989 echo "configure: failed program was:" >&5
10990 cat conftest.$ac_ext >&5
10991 rm -fr conftest*
10992 samba_cv_HAVE_SECURE_MKSTEMP=no
10994 rm -fr conftest*
10999 echo "$ac_t""$samba_cv_HAVE_SECURE_MKSTEMP" 1>&6
11000 if test x"$samba_cv_HAVE_SECURE_MKSTEMP" = x"yes"; then
11001 cat >> confdefs.h <<\EOF
11002 #define HAVE_SECURE_MKSTEMP 1
11007 echo $ac_n "checking for sysconf(_SC_NGROUPS_MAX)""... $ac_c" 1>&6
11008 echo "configure:11009: checking for sysconf(_SC_NGROUPS_MAX)" >&5
11009 if eval "test \"`echo '$''{'samba_cv_SYSCONF_SC_NGROUPS_MAX'+set}'`\" = set"; then
11010 echo $ac_n "(cached) $ac_c" 1>&6
11011 else
11013 if test "$cross_compiling" = yes; then
11014 samba_cv_SYSCONF_SC_NGROUPS_MAX=cross
11015 else
11016 cat > conftest.$ac_ext <<EOF
11017 #line 11018 "configure"
11018 #include "confdefs.h"
11019 #include <unistd.h>
11020 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
11022 if { (eval echo configure:11023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11023 then
11024 samba_cv_SYSCONF_SC_NGROUPS_MAX=yes
11025 else
11026 echo "configure: failed program was:" >&5
11027 cat conftest.$ac_ext >&5
11028 rm -fr conftest*
11029 samba_cv_SYSCONF_SC_NGROUPS_MAX=no
11031 rm -fr conftest*
11036 echo "$ac_t""$samba_cv_SYSCONF_SC_NGROUPS_MAX" 1>&6
11037 if test x"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x"yes"; then
11038 cat >> confdefs.h <<\EOF
11039 #define SYSCONF_SC_NGROUPS_MAX 1
11044 echo $ac_n "checking for root""... $ac_c" 1>&6
11045 echo "configure:11046: checking for root" >&5
11046 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
11047 echo $ac_n "(cached) $ac_c" 1>&6
11048 else
11050 if test "$cross_compiling" = yes; then
11051 samba_cv_HAVE_ROOT=cross
11052 else
11053 cat > conftest.$ac_ext <<EOF
11054 #line 11055 "configure"
11055 #include "confdefs.h"
11056 main() { exit(getuid() != 0); }
11058 if { (eval echo configure:11059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11059 then
11060 samba_cv_HAVE_ROOT=yes
11061 else
11062 echo "configure: failed program was:" >&5
11063 cat conftest.$ac_ext >&5
11064 rm -fr conftest*
11065 samba_cv_HAVE_ROOT=no
11067 rm -fr conftest*
11072 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
11073 if test x"$samba_cv_HAVE_ROOT" = x"yes"; then
11074 cat >> confdefs.h <<\EOF
11075 #define HAVE_ROOT 1
11078 else
11079 echo "configure: warning: running as non-root will disable some tests" 1>&2
11082 ##################
11083 # look for a method of finding the list of network interfaces
11084 iface=no;
11085 echo $ac_n "checking for iface AIX""... $ac_c" 1>&6
11086 echo "configure:11087: checking for iface AIX" >&5
11087 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_AIX'+set}'`\" = set"; then
11088 echo $ac_n "(cached) $ac_c" 1>&6
11089 else
11091 if test "$cross_compiling" = yes; then
11092 samba_cv_HAVE_IFACE_AIX=cross
11093 else
11094 cat > conftest.$ac_ext <<EOF
11095 #line 11096 "configure"
11096 #include "confdefs.h"
11098 #define HAVE_IFACE_AIX 1
11099 #define AUTOCONF_TEST 1
11100 #include "confdefs.h"
11101 #include "${srcdir-.}/lib/interfaces.c"
11103 if { (eval echo configure:11104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11104 then
11105 samba_cv_HAVE_IFACE_AIX=yes
11106 else
11107 echo "configure: failed program was:" >&5
11108 cat conftest.$ac_ext >&5
11109 rm -fr conftest*
11110 samba_cv_HAVE_IFACE_AIX=no
11112 rm -fr conftest*
11117 echo "$ac_t""$samba_cv_HAVE_IFACE_AIX" 1>&6
11118 if test x"$samba_cv_HAVE_IFACE_AIX" = x"yes"; then
11119 iface=yes;cat >> confdefs.h <<\EOF
11120 #define HAVE_IFACE_AIX 1
11125 if test $iface = no; then
11126 echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6
11127 echo "configure:11128: checking for iface ifconf" >&5
11128 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFCONF'+set}'`\" = set"; then
11129 echo $ac_n "(cached) $ac_c" 1>&6
11130 else
11132 if test "$cross_compiling" = yes; then
11133 samba_cv_HAVE_IFACE_IFCONF=cross
11134 else
11135 cat > conftest.$ac_ext <<EOF
11136 #line 11137 "configure"
11137 #include "confdefs.h"
11139 #define HAVE_IFACE_IFCONF 1
11140 #define AUTOCONF_TEST 1
11141 #include "confdefs.h"
11142 #include "${srcdir-.}/lib/interfaces.c"
11144 if { (eval echo configure:11145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11145 then
11146 samba_cv_HAVE_IFACE_IFCONF=yes
11147 else
11148 echo "configure: failed program was:" >&5
11149 cat conftest.$ac_ext >&5
11150 rm -fr conftest*
11151 samba_cv_HAVE_IFACE_IFCONF=no
11153 rm -fr conftest*
11158 echo "$ac_t""$samba_cv_HAVE_IFACE_IFCONF" 1>&6
11159 if test x"$samba_cv_HAVE_IFACE_IFCONF" = x"yes"; then
11160 iface=yes;cat >> confdefs.h <<\EOF
11161 #define HAVE_IFACE_IFCONF 1
11167 if test $iface = no; then
11168 echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6
11169 echo "configure:11170: checking for iface ifreq" >&5
11170 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFREQ'+set}'`\" = set"; then
11171 echo $ac_n "(cached) $ac_c" 1>&6
11172 else
11174 if test "$cross_compiling" = yes; then
11175 samba_cv_HAVE_IFACE_IFREQ=cross
11176 else
11177 cat > conftest.$ac_ext <<EOF
11178 #line 11179 "configure"
11179 #include "confdefs.h"
11181 #define HAVE_IFACE_IFREQ 1
11182 #define AUTOCONF_TEST 1
11183 #include "confdefs.h"
11184 #include "${srcdir-.}/lib/interfaces.c"
11186 if { (eval echo configure:11187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11187 then
11188 samba_cv_HAVE_IFACE_IFREQ=yes
11189 else
11190 echo "configure: failed program was:" >&5
11191 cat conftest.$ac_ext >&5
11192 rm -fr conftest*
11193 samba_cv_HAVE_IFACE_IFREQ=no
11195 rm -fr conftest*
11200 echo "$ac_t""$samba_cv_HAVE_IFACE_IFREQ" 1>&6
11201 if test x"$samba_cv_HAVE_IFACE_IFREQ" = x"yes"; then
11202 iface=yes;cat >> confdefs.h <<\EOF
11203 #define HAVE_IFACE_IFREQ 1
11210 ################################################
11211 # look for a method of setting the effective uid
11212 seteuid=no;
11213 if test $seteuid = no; then
11214 echo $ac_n "checking for setresuid""... $ac_c" 1>&6
11215 echo "configure:11216: checking for setresuid" >&5
11216 if eval "test \"`echo '$''{'samba_cv_USE_SETRESUID'+set}'`\" = set"; then
11217 echo $ac_n "(cached) $ac_c" 1>&6
11218 else
11220 if test "$cross_compiling" = yes; then
11221 samba_cv_USE_SETRESUID=cross
11222 else
11223 cat > conftest.$ac_ext <<EOF
11224 #line 11225 "configure"
11225 #include "confdefs.h"
11227 #define AUTOCONF_TEST 1
11228 #define USE_SETRESUID 1
11229 #include "confdefs.h"
11230 #include "${srcdir-.}/lib/util_sec.c"
11232 if { (eval echo configure:11233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11233 then
11234 samba_cv_USE_SETRESUID=yes
11235 else
11236 echo "configure: failed program was:" >&5
11237 cat conftest.$ac_ext >&5
11238 rm -fr conftest*
11239 samba_cv_USE_SETRESUID=no
11241 rm -fr conftest*
11246 echo "$ac_t""$samba_cv_USE_SETRESUID" 1>&6
11247 if test x"$samba_cv_USE_SETRESUID" = x"yes"; then
11248 seteuid=yes;cat >> confdefs.h <<\EOF
11249 #define USE_SETRESUID 1
11256 if test $seteuid = no; then
11257 echo $ac_n "checking for setreuid""... $ac_c" 1>&6
11258 echo "configure:11259: checking for setreuid" >&5
11259 if eval "test \"`echo '$''{'samba_cv_USE_SETREUID'+set}'`\" = set"; then
11260 echo $ac_n "(cached) $ac_c" 1>&6
11261 else
11263 if test "$cross_compiling" = yes; then
11264 samba_cv_USE_SETREUID=cross
11265 else
11266 cat > conftest.$ac_ext <<EOF
11267 #line 11268 "configure"
11268 #include "confdefs.h"
11270 #define AUTOCONF_TEST 1
11271 #define USE_SETREUID 1
11272 #include "confdefs.h"
11273 #include "${srcdir-.}/lib/util_sec.c"
11275 if { (eval echo configure:11276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11276 then
11277 samba_cv_USE_SETREUID=yes
11278 else
11279 echo "configure: failed program was:" >&5
11280 cat conftest.$ac_ext >&5
11281 rm -fr conftest*
11282 samba_cv_USE_SETREUID=no
11284 rm -fr conftest*
11289 echo "$ac_t""$samba_cv_USE_SETREUID" 1>&6
11290 if test x"$samba_cv_USE_SETREUID" = x"yes"; then
11291 seteuid=yes;cat >> confdefs.h <<\EOF
11292 #define USE_SETREUID 1
11298 if test $seteuid = no; then
11299 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
11300 echo "configure:11301: checking for seteuid" >&5
11301 if eval "test \"`echo '$''{'samba_cv_USE_SETEUID'+set}'`\" = set"; then
11302 echo $ac_n "(cached) $ac_c" 1>&6
11303 else
11305 if test "$cross_compiling" = yes; then
11306 samba_cv_USE_SETEUID=cross
11307 else
11308 cat > conftest.$ac_ext <<EOF
11309 #line 11310 "configure"
11310 #include "confdefs.h"
11312 #define AUTOCONF_TEST 1
11313 #define USE_SETEUID 1
11314 #include "confdefs.h"
11315 #include "${srcdir-.}/lib/util_sec.c"
11317 if { (eval echo configure:11318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11318 then
11319 samba_cv_USE_SETEUID=yes
11320 else
11321 echo "configure: failed program was:" >&5
11322 cat conftest.$ac_ext >&5
11323 rm -fr conftest*
11324 samba_cv_USE_SETEUID=no
11326 rm -fr conftest*
11331 echo "$ac_t""$samba_cv_USE_SETEUID" 1>&6
11332 if test x"$samba_cv_USE_SETEUID" = x"yes"; then
11333 seteuid=yes;cat >> confdefs.h <<\EOF
11334 #define USE_SETEUID 1
11340 if test $seteuid = no; then
11341 echo $ac_n "checking for setuidx""... $ac_c" 1>&6
11342 echo "configure:11343: checking for setuidx" >&5
11343 if eval "test \"`echo '$''{'samba_cv_USE_SETUIDX'+set}'`\" = set"; then
11344 echo $ac_n "(cached) $ac_c" 1>&6
11345 else
11347 if test "$cross_compiling" = yes; then
11348 samba_cv_USE_SETUIDX=cross
11349 else
11350 cat > conftest.$ac_ext <<EOF
11351 #line 11352 "configure"
11352 #include "confdefs.h"
11354 #define AUTOCONF_TEST 1
11355 #define USE_SETUIDX 1
11356 #include "confdefs.h"
11357 #include "${srcdir-.}/lib/util_sec.c"
11359 if { (eval echo configure:11360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11360 then
11361 samba_cv_USE_SETUIDX=yes
11362 else
11363 echo "configure: failed program was:" >&5
11364 cat conftest.$ac_ext >&5
11365 rm -fr conftest*
11366 samba_cv_USE_SETUIDX=no
11368 rm -fr conftest*
11373 echo "$ac_t""$samba_cv_USE_SETUIDX" 1>&6
11374 if test x"$samba_cv_USE_SETUIDX" = x"yes"; then
11375 seteuid=yes;cat >> confdefs.h <<\EOF
11376 #define USE_SETUIDX 1
11383 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
11384 echo "configure:11385: checking for working mmap" >&5
11385 if eval "test \"`echo '$''{'samba_cv_HAVE_MMAP'+set}'`\" = set"; then
11386 echo $ac_n "(cached) $ac_c" 1>&6
11387 else
11389 if test "$cross_compiling" = yes; then
11390 samba_cv_HAVE_MMAP=cross
11391 else
11392 cat > conftest.$ac_ext <<EOF
11393 #line 11394 "configure"
11394 #include "confdefs.h"
11395 #include "${srcdir-.}/tests/shared_mmap.c"
11397 if { (eval echo configure:11398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11398 then
11399 samba_cv_HAVE_MMAP=yes
11400 else
11401 echo "configure: failed program was:" >&5
11402 cat conftest.$ac_ext >&5
11403 rm -fr conftest*
11404 samba_cv_HAVE_MMAP=no
11406 rm -fr conftest*
11411 echo "$ac_t""$samba_cv_HAVE_MMAP" 1>&6
11412 if test x"$samba_cv_HAVE_MMAP" = x"yes"; then
11413 cat >> confdefs.h <<\EOF
11414 #define HAVE_MMAP 1
11419 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
11420 echo "configure:11421: checking for ftruncate needs root" >&5
11421 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
11422 echo $ac_n "(cached) $ac_c" 1>&6
11423 else
11425 if test "$cross_compiling" = yes; then
11426 samba_cv_FTRUNCATE_NEEDS_ROOT=cross
11427 else
11428 cat > conftest.$ac_ext <<EOF
11429 #line 11430 "configure"
11430 #include "confdefs.h"
11431 #include "${srcdir-.}/tests/ftruncroot.c"
11433 if { (eval echo configure:11434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11434 then
11435 samba_cv_FTRUNCATE_NEEDS_ROOT=yes
11436 else
11437 echo "configure: failed program was:" >&5
11438 cat conftest.$ac_ext >&5
11439 rm -fr conftest*
11440 samba_cv_FTRUNCATE_NEEDS_ROOT=no
11442 rm -fr conftest*
11447 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
11448 if test x"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x"yes"; then
11449 cat >> confdefs.h <<\EOF
11450 #define FTRUNCATE_NEEDS_ROOT 1
11455 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
11456 echo "configure:11457: checking for fcntl locking" >&5
11457 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
11458 echo $ac_n "(cached) $ac_c" 1>&6
11459 else
11461 if test "$cross_compiling" = yes; then
11462 samba_cv_HAVE_FCNTL_LOCK=cross
11463 else
11464 cat > conftest.$ac_ext <<EOF
11465 #line 11466 "configure"
11466 #include "confdefs.h"
11467 #include "${srcdir-.}/tests/fcntl_lock.c"
11469 if { (eval echo configure:11470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11470 then
11471 samba_cv_HAVE_FCNTL_LOCK=yes
11472 else
11473 echo "configure: failed program was:" >&5
11474 cat conftest.$ac_ext >&5
11475 rm -fr conftest*
11476 samba_cv_HAVE_FCNTL_LOCK=no
11478 rm -fr conftest*
11483 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
11484 if test x"$samba_cv_HAVE_FCNTL_LOCK" = x"yes"; then
11485 cat >> confdefs.h <<\EOF
11486 #define HAVE_FCNTL_LOCK 1
11491 echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6
11492 echo "configure:11493: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
11493 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_FCNTL64_LOCKS'+set}'`\" = set"; then
11494 echo $ac_n "(cached) $ac_c" 1>&6
11495 else
11497 if test "$cross_compiling" = yes; then
11498 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=cross
11499 else
11500 cat > conftest.$ac_ext <<EOF
11501 #line 11502 "configure"
11502 #include "confdefs.h"
11503 #include "${srcdir-.}/tests/fcntl_lock64.c"
11505 if { (eval echo configure:11506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11506 then
11507 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=yes
11508 else
11509 echo "configure: failed program was:" >&5
11510 cat conftest.$ac_ext >&5
11511 rm -fr conftest*
11512 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=no
11514 rm -fr conftest*
11519 echo "$ac_t""$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" 1>&6
11520 if test x"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x"yes"; then
11521 cat >> confdefs.h <<\EOF
11522 #define HAVE_BROKEN_FCNTL64_LOCKS 1
11526 else
11529 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
11530 echo "configure:11531: checking for 64 bit fcntl locking" >&5
11531 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
11532 echo $ac_n "(cached) $ac_c" 1>&6
11533 else
11535 if test "$cross_compiling" = yes; then
11536 samba_cv_HAVE_STRUCT_FLOCK64=cross
11537 else
11538 cat > conftest.$ac_ext <<EOF
11539 #line 11540 "configure"
11540 #include "confdefs.h"
11542 #if defined(HAVE_UNISTD_H)
11543 #include <unistd.h>
11544 #endif
11545 #include <stdio.h>
11546 #include <stdlib.h>
11548 #ifdef HAVE_FCNTL_H
11549 #include <fcntl.h>
11550 #endif
11552 #ifdef HAVE_SYS_FCNTL_H
11553 #include <sys/fcntl.h>
11554 #endif
11555 main() { struct flock64 fl64;
11556 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
11557 exit(0);
11558 #else
11559 exit(1);
11560 #endif
11563 if { (eval echo configure:11564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11564 then
11565 samba_cv_HAVE_STRUCT_FLOCK64=yes
11566 else
11567 echo "configure: failed program was:" >&5
11568 cat conftest.$ac_ext >&5
11569 rm -fr conftest*
11570 samba_cv_HAVE_STRUCT_FLOCK64=no
11572 rm -fr conftest*
11577 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
11579 if test x"$samba_cv_HAVE_STRUCT_FLOCK64" = x"yes"; then
11580 cat >> confdefs.h <<\EOF
11581 #define HAVE_STRUCT_FLOCK64 1
11587 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
11588 echo "configure:11589: checking for st_blocks in struct stat" >&5
11589 if eval "test \"`echo '$''{'samba_cv_HAVE_STAT_ST_BLOCKS'+set}'`\" = set"; then
11590 echo $ac_n "(cached) $ac_c" 1>&6
11591 else
11593 cat > conftest.$ac_ext <<EOF
11594 #line 11595 "configure"
11595 #include "confdefs.h"
11596 #include <sys/types.h>
11597 #include <sys/stat.h>
11598 #include <unistd.h>
11599 int main() {
11600 struct stat st; st.st_blocks = 0;
11601 ; return 0; }
11603 if { (eval echo configure:11604: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11604 rm -rf conftest*
11605 samba_cv_HAVE_STAT_ST_BLOCKS=yes
11606 else
11607 echo "configure: failed program was:" >&5
11608 cat conftest.$ac_ext >&5
11609 rm -rf conftest*
11610 samba_cv_HAVE_STAT_ST_BLOCKS=no
11612 rm -f conftest*
11615 echo "$ac_t""$samba_cv_HAVE_STAT_ST_BLOCKS" 1>&6
11616 if test x"$samba_cv_HAVE_STAT_ST_BLOCKS" = x"yes"; then
11617 cat >> confdefs.h <<\EOF
11618 #define HAVE_STAT_ST_BLOCKS 1
11623 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
11624 echo "configure:11625: checking for st_blksize in struct stat" >&5
11625 if eval "test \"`echo '$''{'samba_cv_HAVE_STAT_ST_BLKSIZE'+set}'`\" = set"; then
11626 echo $ac_n "(cached) $ac_c" 1>&6
11627 else
11629 cat > conftest.$ac_ext <<EOF
11630 #line 11631 "configure"
11631 #include "confdefs.h"
11632 #include <sys/types.h>
11633 #include <sys/stat.h>
11634 #include <unistd.h>
11635 int main() {
11636 struct stat st; st.st_blksize = 0;
11637 ; return 0; }
11639 if { (eval echo configure:11640: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11640 rm -rf conftest*
11641 samba_cv_HAVE_STAT_ST_BLKSIZE=yes
11642 else
11643 echo "configure: failed program was:" >&5
11644 cat conftest.$ac_ext >&5
11645 rm -rf conftest*
11646 samba_cv_HAVE_STAT_ST_BLKSIZE=no
11648 rm -f conftest*
11651 echo "$ac_t""$samba_cv_HAVE_STAT_ST_BLKSIZE" 1>&6
11652 if test x"$samba_cv_HAVE_STAT_ST_BLKSIZE" = x"yes"; then
11653 cat >> confdefs.h <<\EOF
11654 #define HAVE_STAT_ST_BLKSIZE 1
11659 case "$host_os" in
11660 *linux*)
11661 echo $ac_n "checking for broken RedHat 7.2 system header files""... $ac_c" 1>&6
11662 echo "configure:11663: checking for broken RedHat 7.2 system header files" >&5
11663 if eval "test \"`echo '$''{'samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS'+set}'`\" = set"; then
11664 echo $ac_n "(cached) $ac_c" 1>&6
11665 else
11667 cat > conftest.$ac_ext <<EOF
11668 #line 11669 "configure"
11669 #include "confdefs.h"
11671 #ifdef HAVE_SYS_VFS_H
11672 #include <sys/vfs.h>
11673 #endif
11674 #ifdef HAVE_SYS_CAPABILITY_H
11675 #include <sys/capability.h>
11676 #endif
11678 int main() {
11679 int i;
11680 ; return 0; }
11682 if { (eval echo configure:11683: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11683 rm -rf conftest*
11684 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=no
11685 else
11686 echo "configure: failed program was:" >&5
11687 cat conftest.$ac_ext >&5
11688 rm -rf conftest*
11689 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=yes
11691 rm -f conftest*
11694 echo "$ac_t""$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" 1>&6
11695 if test x"$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" = x"yes"; then
11696 cat >> confdefs.h <<\EOF
11697 #define BROKEN_REDHAT_7_SYSTEM_HEADERS 1
11702 esac
11704 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
11705 echo "configure:11706: checking for broken nisplus include files" >&5
11706 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
11707 echo $ac_n "(cached) $ac_c" 1>&6
11708 else
11710 cat > conftest.$ac_ext <<EOF
11711 #line 11712 "configure"
11712 #include "confdefs.h"
11713 #include <sys/acl.h>
11714 #if defined(HAVE_RPCSVC_NIS_H)
11715 #include <rpcsvc/nis.h>
11716 #endif
11717 int main() {
11718 int i;
11719 ; return 0; }
11721 if { (eval echo configure:11722: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11722 rm -rf conftest*
11723 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=no
11724 else
11725 echo "configure: failed program was:" >&5
11726 cat conftest.$ac_ext >&5
11727 rm -rf conftest*
11728 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=yes
11730 rm -f conftest*
11733 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
11734 if test x"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x"yes"; then
11735 cat >> confdefs.h <<\EOF
11736 #define BROKEN_NISPLUS_INCLUDE_FILES 1
11742 #################################################
11743 # check for smbwrapper support
11744 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
11745 echo "configure:11746: checking whether to use smbwrapper" >&5
11746 # Check whether --with-smbwrapper or --without-smbwrapper was given.
11747 if test "${with_smbwrapper+set}" = set; then
11748 withval="$with_smbwrapper"
11749 case "$withval" in
11750 yes)
11751 echo "$ac_t""yes" 1>&6
11752 cat >> confdefs.h <<\EOF
11753 #define WITH_SMBWRAPPER 1
11756 WRAPPROG="bin/smbsh"
11757 WRAP="bin/smbwrapper.$SHLIBEXT"
11759 if test x$ATTEMPT_WRAP32_BUILD = x; then
11760 WRAP32=""
11761 else
11762 WRAP32=bin/smbwrapper.32.$SHLIBEXT
11765 # Conditions under which smbwrapper should not be built.
11767 if test x$PICFLAG = x; then
11768 echo No support for PIC code - disabling smbwrapper and smbsh
11769 WRAPPROG=""
11770 WRAP=""
11771 WRAP32=""
11772 elif test x$ac_cv_func_syscall = xno; then
11773 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
11774 WRAPPROG=""
11775 WRAP=""
11776 WRAP32=""
11780 echo "$ac_t""no" 1>&6
11782 esac
11783 else
11784 echo "$ac_t""no" 1>&6
11789 #################################################
11790 # check for the AFS filesystem
11791 echo $ac_n "checking whether to use AFS""... $ac_c" 1>&6
11792 echo "configure:11793: checking whether to use AFS" >&5
11793 # Check whether --with-afs or --without-afs was given.
11794 if test "${with_afs+set}" = set; then
11795 withval="$with_afs"
11796 case "$withval" in
11797 yes)
11798 echo "$ac_t""yes" 1>&6
11799 cat >> confdefs.h <<\EOF
11800 #define WITH_AFS 1
11805 echo "$ac_t""no" 1>&6
11807 esac
11808 else
11809 echo "$ac_t""no" 1>&6
11815 #################################################
11816 # check for the DFS auth system
11817 echo $ac_n "checking whether to use DCE/DFS auth""... $ac_c" 1>&6
11818 echo "configure:11819: checking whether to use DCE/DFS auth" >&5
11819 # Check whether --with-dfs or --without-dfs was given.
11820 if test "${with_dfs+set}" = set; then
11821 withval="$with_dfs"
11822 case "$withval" in
11823 yes)
11824 echo "$ac_t""yes" 1>&6
11825 cat >> confdefs.h <<\EOF
11826 #define WITH_DFS 1
11831 echo "$ac_t""no" 1>&6
11833 esac
11834 else
11835 echo "$ac_t""no" 1>&6
11840 #################################################
11841 # check for Kerberos IV auth system
11842 echo $ac_n "checking whether to use Kerberos IV""... $ac_c" 1>&6
11843 echo "configure:11844: checking whether to use Kerberos IV" >&5
11844 # Check whether --with-krb4 or --without-krb4 was given.
11845 if test "${with_krb4+set}" = set; then
11846 withval="$with_krb4"
11847 case "$withval" in
11848 yes)
11849 echo "$ac_t""yes" 1>&6
11850 cat >> confdefs.h <<\EOF
11851 #define KRB4_AUTH 1
11854 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
11855 echo "configure:11856: checking for dn_expand in -lresolv" >&5
11856 ac_lib_var=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
11857 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11858 echo $ac_n "(cached) $ac_c" 1>&6
11859 else
11860 ac_save_LIBS="$LIBS"
11861 LIBS="-lresolv $LIBS"
11862 cat > conftest.$ac_ext <<EOF
11863 #line 11864 "configure"
11864 #include "confdefs.h"
11865 /* Override any gcc2 internal prototype to avoid an error. */
11866 /* We use char because int might match the return type of a gcc2
11867 builtin and then its argument prototype would still apply. */
11868 char dn_expand();
11870 int main() {
11871 dn_expand()
11872 ; return 0; }
11874 if { (eval echo configure:11875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11875 rm -rf conftest*
11876 eval "ac_cv_lib_$ac_lib_var=yes"
11877 else
11878 echo "configure: failed program was:" >&5
11879 cat conftest.$ac_ext >&5
11880 rm -rf conftest*
11881 eval "ac_cv_lib_$ac_lib_var=no"
11883 rm -f conftest*
11884 LIBS="$ac_save_LIBS"
11887 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11888 echo "$ac_t""yes" 1>&6
11889 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11890 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11891 cat >> confdefs.h <<EOF
11892 #define $ac_tr_lib 1
11895 LIBS="-lresolv $LIBS"
11897 else
11898 echo "$ac_t""no" 1>&6
11901 LIBS="$LIBS -lkrb -ldes"
11902 CFLAGS="$CFLAGS -I$withval/include"
11903 LDFLAGS="$LDFLAGS -L$withval/lib"
11906 echo "$ac_t""no" 1>&6
11908 esac
11909 else
11910 echo "$ac_t""no" 1>&6
11915 #################################################
11916 # check for Kerberos 5 auth system
11917 echo $ac_n "checking whether to use Kerberos 5""... $ac_c" 1>&6
11918 echo "configure:11919: checking whether to use Kerberos 5" >&5
11919 # Check whether --with-krb5 or --without-krb5 was given.
11920 if test "${with_krb5+set}" = set; then
11921 withval="$with_krb5"
11922 case "$withval" in
11923 yes)
11924 echo "$ac_t""yes" 1>&6
11925 cat >> confdefs.h <<\EOF
11926 #define KRB5_AUTH 1
11929 LIBS="$LIBS -ldes425 -lkrb5 -lcrypto -lcom_err"
11930 CFLAGS="$CFLAGS -I$withval/include"
11931 LDFLAGS="$LDFLAGS -L$withval/lib"
11934 echo "$ac_t""no" 1>&6
11936 esac
11937 else
11938 echo "$ac_t""no" 1>&6
11943 #################################################
11944 # check for automount support
11945 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
11946 echo "configure:11947: checking whether to use AUTOMOUNT" >&5
11947 # Check whether --with-automount or --without-automount was given.
11948 if test "${with_automount+set}" = set; then
11949 withval="$with_automount"
11950 case "$withval" in
11951 yes)
11952 echo "$ac_t""yes" 1>&6
11953 cat >> confdefs.h <<\EOF
11954 #define WITH_AUTOMOUNT 1
11959 echo "$ac_t""no" 1>&6
11961 esac
11962 else
11963 echo "$ac_t""no" 1>&6
11968 #################################################
11969 # check for smbmount support
11970 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
11971 echo "configure:11972: checking whether to use SMBMOUNT" >&5
11972 # Check whether --with-smbmount or --without-smbmount was given.
11973 if test "${with_smbmount+set}" = set; then
11974 withval="$with_smbmount"
11975 case "$withval" in
11976 yes)
11977 case "$host_os" in
11978 *linux*)
11979 echo "$ac_t""yes" 1>&6
11980 cat >> confdefs.h <<\EOF
11981 #define WITH_SMBMOUNT 1
11984 MPROGS="bin/smbmount bin/smbmnt bin/smbumount"
11987 { echo "configure: error: not on a linux system!" 1>&2; exit 1; }
11989 esac
11992 echo "$ac_t""no" 1>&6
11993 MPROGS=
11995 esac
11996 else
11997 echo "$ac_t""no" 1>&6
11998 MPROGS=
12004 #################################################
12005 # check for a PAM password database
12006 with_pam_for_crypt=no
12007 echo $ac_n "checking whether to use PAM password database""... $ac_c" 1>&6
12008 echo "configure:12009: checking whether to use PAM password database" >&5
12009 # Check whether --with-pam or --without-pam was given.
12010 if test "${with_pam+set}" = set; then
12011 withval="$with_pam"
12012 case "$withval" in
12013 yes)
12014 echo "$ac_t""yes" 1>&6
12015 cat >> confdefs.h <<\EOF
12016 #define WITH_PAM 1
12019 LIBS="$LIBS -lpam"
12020 with_pam_for_crypt=yes
12023 echo "$ac_t""no" 1>&6
12025 esac
12026 else
12027 echo "$ac_t""no" 1>&6
12032 # we can't build a pam module if we don't have pam.
12033 echo $ac_n "checking for pam_get_data in -lpam""... $ac_c" 1>&6
12034 echo "configure:12035: checking for pam_get_data in -lpam" >&5
12035 ac_lib_var=`echo pam'_'pam_get_data | sed 'y%./+-%__p_%'`
12036 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12037 echo $ac_n "(cached) $ac_c" 1>&6
12038 else
12039 ac_save_LIBS="$LIBS"
12040 LIBS="-lpam $LIBS"
12041 cat > conftest.$ac_ext <<EOF
12042 #line 12043 "configure"
12043 #include "confdefs.h"
12044 /* Override any gcc2 internal prototype to avoid an error. */
12045 /* We use char because int might match the return type of a gcc2
12046 builtin and then its argument prototype would still apply. */
12047 char pam_get_data();
12049 int main() {
12050 pam_get_data()
12051 ; return 0; }
12053 if { (eval echo configure:12054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12054 rm -rf conftest*
12055 eval "ac_cv_lib_$ac_lib_var=yes"
12056 else
12057 echo "configure: failed program was:" >&5
12058 cat conftest.$ac_ext >&5
12059 rm -rf conftest*
12060 eval "ac_cv_lib_$ac_lib_var=no"
12062 rm -f conftest*
12063 LIBS="$ac_save_LIBS"
12066 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12067 echo "$ac_t""yes" 1>&6
12068 cat >> confdefs.h <<\EOF
12069 #define HAVE_LIBPAM 1
12072 else
12073 echo "$ac_t""no" 1>&6
12077 #################################################
12078 # check for pam_smbpass support
12079 echo $ac_n "checking whether to use pam_smbpass""... $ac_c" 1>&6
12080 echo "configure:12081: checking whether to use pam_smbpass" >&5
12081 # Check whether --with-pam_smbpass or --without-pam_smbpass was given.
12082 if test "${with_pam_smbpass+set}" = set; then
12083 withval="$with_pam_smbpass"
12084 case "$withval" in
12085 yes)
12086 echo "$ac_t""yes" 1>&6
12088 # Conditions under which pam_smbpass should not be built.
12090 if test x$PICFLAG = x; then
12091 echo "$ac_t""No support for PIC code - disabling pam_smbpass" 1>&6
12092 PAM_MOD=""
12093 elif test x$ac_cv_lib_pam_pam_get_data = xno; then
12094 echo "$ac_t""No libpam found -- disabling pam_smbpass" 1>&6
12095 PAM_MOD=""
12096 else
12097 cat >> confdefs.h <<\EOF
12098 #define WITH_PAM_SMBPASS 1
12101 PAM_MOD="bin/pam_smbpass.so"
12105 echo "$ac_t""no" 1>&6
12107 esac
12108 else
12109 echo "$ac_t""no" 1>&6
12115 ###############################################
12116 # test for where we get crypt() from, but only
12117 # if not using PAM
12118 if test $with_pam_for_crypt = no; then
12119 for ac_func in crypt
12121 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12122 echo "configure:12123: checking for $ac_func" >&5
12123 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12124 echo $ac_n "(cached) $ac_c" 1>&6
12125 else
12126 cat > conftest.$ac_ext <<EOF
12127 #line 12128 "configure"
12128 #include "confdefs.h"
12129 /* System header to define __stub macros and hopefully few prototypes,
12130 which can conflict with char $ac_func(); below. */
12131 #include <assert.h>
12132 /* Override any gcc2 internal prototype to avoid an error. */
12133 /* We use char because int might match the return type of a gcc2
12134 builtin and then its argument prototype would still apply. */
12135 char $ac_func();
12137 int main() {
12139 /* The GNU C library defines this for functions which it implements
12140 to always fail with ENOSYS. Some functions are actually named
12141 something starting with __ and the normal name is an alias. */
12142 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12143 choke me
12144 #else
12145 $ac_func();
12146 #endif
12148 ; return 0; }
12150 if { (eval echo configure:12151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12151 rm -rf conftest*
12152 eval "ac_cv_func_$ac_func=yes"
12153 else
12154 echo "configure: failed program was:" >&5
12155 cat conftest.$ac_ext >&5
12156 rm -rf conftest*
12157 eval "ac_cv_func_$ac_func=no"
12159 rm -f conftest*
12162 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12163 echo "$ac_t""yes" 1>&6
12164 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12165 cat >> confdefs.h <<EOF
12166 #define $ac_tr_func 1
12169 else
12170 echo "$ac_t""no" 1>&6
12172 done
12174 if test x"$ac_cv_func_crypt" = x"no"; then
12175 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
12176 echo "configure:12177: checking for crypt in -lcrypt" >&5
12177 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
12178 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12179 echo $ac_n "(cached) $ac_c" 1>&6
12180 else
12181 ac_save_LIBS="$LIBS"
12182 LIBS="-lcrypt $LIBS"
12183 cat > conftest.$ac_ext <<EOF
12184 #line 12185 "configure"
12185 #include "confdefs.h"
12186 /* Override any gcc2 internal prototype to avoid an error. */
12187 /* We use char because int might match the return type of a gcc2
12188 builtin and then its argument prototype would still apply. */
12189 char crypt();
12191 int main() {
12192 crypt()
12193 ; return 0; }
12195 if { (eval echo configure:12196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12196 rm -rf conftest*
12197 eval "ac_cv_lib_$ac_lib_var=yes"
12198 else
12199 echo "configure: failed program was:" >&5
12200 cat conftest.$ac_ext >&5
12201 rm -rf conftest*
12202 eval "ac_cv_lib_$ac_lib_var=no"
12204 rm -f conftest*
12205 LIBS="$ac_save_LIBS"
12208 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12209 echo "$ac_t""yes" 1>&6
12210 LIBS="$LIBS -lcrypt";
12211 cat >> confdefs.h <<\EOF
12212 #define HAVE_CRYPT 1
12215 else
12216 echo "$ac_t""no" 1>&6
12223 ## moved after the check for -lcrypt in order to
12224 ## ensure that the necessary libraries are included
12225 ## check checking for truncated salt. Wrapped by the
12226 ## $with_pam_for_crypt variable as above --jerry
12228 if test $with_pam_for_crypt = no; then
12229 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
12230 echo "configure:12231: checking for a crypt that needs truncated salt" >&5
12231 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
12232 echo $ac_n "(cached) $ac_c" 1>&6
12233 else
12235 if test "$cross_compiling" = yes; then
12236 samba_cv_HAVE_TRUNCATED_SALT=cross
12237 else
12238 cat > conftest.$ac_ext <<EOF
12239 #line 12240 "configure"
12240 #include "confdefs.h"
12241 #include "${srcdir-.}/tests/crypttest.c"
12243 if { (eval echo configure:12244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12244 then
12245 samba_cv_HAVE_TRUNCATED_SALT=no
12246 else
12247 echo "configure: failed program was:" >&5
12248 cat conftest.$ac_ext >&5
12249 rm -fr conftest*
12250 samba_cv_HAVE_TRUNCATED_SALT=yes
12252 rm -fr conftest*
12257 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
12258 if test x"$samba_cv_HAVE_TRUNCATED_SALT" = x"yes"; then
12259 cat >> confdefs.h <<\EOF
12260 #define HAVE_TRUNCATED_SALT 1
12267 ########################################################################################
12269 ## TESTS FOR SAM BACKENDS. KEEP THESE GROUPED TOGETHER
12271 ########################################################################################
12273 ## set the with_smbpasswd_sam as the default
12274 with_smbpasswd_sam=yes
12278 #################################################
12279 # check for a TDB password database
12280 echo $ac_n "checking whether to use TDB SAM database""... $ac_c" 1>&6
12281 echo "configure:12282: checking whether to use TDB SAM database" >&5
12282 # Check whether --with-tdbsam or --without-tdbsam was given.
12283 if test "${with_tdbsam+set}" = set; then
12284 withval="$with_tdbsam"
12285 case "$withval" in
12286 yes)
12287 echo "$ac_t""yes" 1>&6
12288 cat >> confdefs.h <<\EOF
12289 #define WITH_TDB_SAM 1
12292 with_smbpasswd_sam=no
12295 echo "$ac_t""no" 1>&6
12297 esac
12298 else
12299 echo "$ac_t""no" 1>&6
12304 #################################################
12305 # check for a LDAP password database
12306 echo $ac_n "checking whether to use LDAP SAM database""... $ac_c" 1>&6
12307 echo "configure:12308: checking whether to use LDAP SAM database" >&5
12308 # Check whether --with-ldapsam or --without-ldapsam was given.
12309 if test "${with_ldapsam+set}" = set; then
12310 withval="$with_ldapsam"
12311 case "$withval" in
12312 yes)
12313 echo "$ac_t""yes" 1>&6
12314 cat >> confdefs.h <<\EOF
12315 #define WITH_LDAP_SAM 1
12318 LDAPLIBS="-lldap"
12319 echo $ac_n "checking for ber_bvfree in -llber""... $ac_c" 1>&6
12320 echo "configure:12321: checking for ber_bvfree in -llber" >&5
12321 ac_lib_var=`echo lber'_'ber_bvfree | sed 'y%./+-%__p_%'`
12322 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12323 echo $ac_n "(cached) $ac_c" 1>&6
12324 else
12325 ac_save_LIBS="$LIBS"
12326 LIBS="-llber $LIBS"
12327 cat > conftest.$ac_ext <<EOF
12328 #line 12329 "configure"
12329 #include "confdefs.h"
12330 /* Override any gcc2 internal prototype to avoid an error. */
12331 /* We use char because int might match the return type of a gcc2
12332 builtin and then its argument prototype would still apply. */
12333 char ber_bvfree();
12335 int main() {
12336 ber_bvfree()
12337 ; return 0; }
12339 if { (eval echo configure:12340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12340 rm -rf conftest*
12341 eval "ac_cv_lib_$ac_lib_var=yes"
12342 else
12343 echo "configure: failed program was:" >&5
12344 cat conftest.$ac_ext >&5
12345 rm -rf conftest*
12346 eval "ac_cv_lib_$ac_lib_var=no"
12348 rm -f conftest*
12349 LIBS="$ac_save_LIBS"
12352 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12353 echo "$ac_t""yes" 1>&6
12354 LDAPLIBS="$LDAPLIBS -llber"
12355 else
12356 echo "$ac_t""no" 1>&6
12359 ## remove -lresolv as this should be included by the -lsasl dependency
12360 ## in the OpenLDAP clients. By not requiring it specifically, we avoid
12361 ## issues on platforms that don't have it
12362 LDAPLIBS="$LDAPLIBS"
12363 old_LDFLAGS="$LDFLAGS"
12364 LDFLAGS="$LDFLAGS $LDAPLIBS"
12365 for ac_func in ldap_start_tls_s
12367 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12368 echo "configure:12369: checking for $ac_func" >&5
12369 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12370 echo $ac_n "(cached) $ac_c" 1>&6
12371 else
12372 cat > conftest.$ac_ext <<EOF
12373 #line 12374 "configure"
12374 #include "confdefs.h"
12375 /* System header to define __stub macros and hopefully few prototypes,
12376 which can conflict with char $ac_func(); below. */
12377 #include <assert.h>
12378 /* Override any gcc2 internal prototype to avoid an error. */
12379 /* We use char because int might match the return type of a gcc2
12380 builtin and then its argument prototype would still apply. */
12381 char $ac_func();
12383 int main() {
12385 /* The GNU C library defines this for functions which it implements
12386 to always fail with ENOSYS. Some functions are actually named
12387 something starting with __ and the normal name is an alias. */
12388 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12389 choke me
12390 #else
12391 $ac_func();
12392 #endif
12394 ; return 0; }
12396 if { (eval echo configure:12397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12397 rm -rf conftest*
12398 eval "ac_cv_func_$ac_func=yes"
12399 else
12400 echo "configure: failed program was:" >&5
12401 cat conftest.$ac_ext >&5
12402 rm -rf conftest*
12403 eval "ac_cv_func_$ac_func=no"
12405 rm -f conftest*
12408 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12409 echo "$ac_t""yes" 1>&6
12410 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12411 cat >> confdefs.h <<EOF
12412 #define $ac_tr_func 1
12415 else
12416 echo "$ac_t""no" 1>&6
12418 done
12420 LDFLAGS="$old_LDFLAGS"
12421 with_smbpasswd_sam=no
12423 echo $ac_n "checking whether ldap_set_rebind_proc takes 3 arguments""... $ac_c" 1>&6
12424 echo "configure:12425: checking whether ldap_set_rebind_proc takes 3 arguments" >&5
12425 if eval "test \"`echo '$''{'samba_cv_ldap_set_rebind_proc'+set}'`\" = set"; then
12426 echo $ac_n "(cached) $ac_c" 1>&6
12427 else
12429 cat > conftest.$ac_ext <<EOF
12430 #line 12431 "configure"
12431 #include "confdefs.h"
12433 #include <lber.h>
12434 #include <ldap.h>
12435 int main() {
12436 ldap_set_rebind_proc(0, 0, 0);
12437 ; return 0; }
12439 if { (eval echo configure:12440: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12440 rm -rf conftest*
12441 samba_cv_ldap_set_rebind_proc=3
12442 else
12443 echo "configure: failed program was:" >&5
12444 cat conftest.$ac_ext >&5
12445 rm -rf conftest*
12446 samba_cv_ldap_set_rebind_proc=2
12448 rm -f conftest*
12451 echo "$ac_t""$samba_cv_ldap_set_rebind_proc" 1>&6
12452 if test x"$samba_cv_ldap_set_rebind_proc" = x"3"; then
12453 cat >> confdefs.h <<\EOF
12454 #define LDAP_SET_REBIND_PROC_ARGS 3
12457 else
12458 cat >> confdefs.h <<\EOF
12459 #define LDAP_SET_REBIND_PROC_ARGS 2
12465 echo "$ac_t""no" 1>&6
12467 esac
12468 else
12469 echo "$ac_t""no" 1>&6
12475 #################################################
12476 # check for a NISPLUS password database
12477 echo $ac_n "checking whether to use NISPLUS SAM database""... $ac_c" 1>&6
12478 echo "configure:12479: checking whether to use NISPLUS SAM database" >&5
12479 # Check whether --with-nisplussam or --without-nisplussam was given.
12480 if test "${with_nisplussam+set}" = set; then
12481 withval="$with_nisplussam"
12482 case "$withval" in
12483 yes)
12484 echo "$ac_t""yes" 1>&6
12485 cat >> confdefs.h <<\EOF
12486 #define WITH_NISPLUS_SAM 1
12489 with_smbpasswd_sam=no
12492 echo "$ac_t""no" 1>&6
12494 esac
12495 else
12496 echo "$ac_t""no" 1>&6
12501 ################################################
12502 # This test should come last because the
12503 # smbpasswd SAM is only used if another format
12504 # has not been defined
12505 echo $ac_n "checking whether to use traditional smbpasswd file""... $ac_c" 1>&6
12506 echo "configure:12507: checking whether to use traditional smbpasswd file" >&5
12507 if test $with_smbpasswd_sam = yes; then
12508 echo "$ac_t""yes" 1>&6
12509 cat >> confdefs.h <<\EOF
12510 #define WITH_SMBPASSWD_SAM 1
12513 PDBEDIT=""
12514 else
12515 echo "$ac_t""no" 1>&6
12516 PDBEDIT=bin/pdbedit
12519 ########################################################################################
12521 ## END OF TESTS FOR SAM BACKENDS.
12523 ########################################################################################
12525 #################################################
12526 # check for a NISPLUS_HOME support
12527 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
12528 echo "configure:12529: checking whether to use NISPLUS_HOME" >&5
12529 # Check whether --with-nisplus-home or --without-nisplus-home was given.
12530 if test "${with_nisplus_home+set}" = set; then
12531 withval="$with_nisplus_home"
12532 case "$withval" in
12533 yes)
12534 echo "$ac_t""yes" 1>&6
12535 cat >> confdefs.h <<\EOF
12536 #define WITH_NISPLUS_HOME 1
12541 echo "$ac_t""no" 1>&6
12543 esac
12544 else
12545 echo "$ac_t""no" 1>&6
12550 #################################################
12551 # check for the secure socket layer
12552 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
12553 echo "configure:12554: checking whether to use SSL" >&5
12554 # Check whether --with-ssl or --without-ssl was given.
12555 if test "${with_ssl+set}" = set; then
12556 withval="$with_ssl"
12557 case "$withval" in
12558 yes)
12559 echo "$ac_t""yes" 1>&6
12560 cat >> confdefs.h <<\EOF
12561 #define WITH_SSL 1
12564 withval="/usr/local/ssl" # default
12566 if test "${with_sslinc+set}" = set; then
12568 withval="$with_sslinc"
12569 case "$withval" in
12570 yes|no)
12571 echo "configure: warning: --with-sslinc called without argument - will use default" 1>&w
12572 CFLAGS="-I/usr/local/ssl/include $CFLAGS"
12575 CFLAGS="-I${withval} $CFLAGS"
12577 esac
12579 else
12581 CFLAGS="-I/usr/local/ssl/include $CFLAGS"
12585 if test "${with_ssllib+set}" = set; then
12587 withval="$with_ssllib"
12588 case "$withval" in
12589 yes|no)
12590 echo "configure: warning: --with-ssllib called without argument - will use default" 1>&w
12591 LDFLAGS="-L/usr/local/ssl/lib $LDFLAGS"
12594 LDFLAGS="-L${withval}/lib $LDFLAGS"
12596 esac
12598 else
12600 LDFLAGS="-L/usr/local/ssl/lib $LDFLAGS"
12604 LIBS="-lssl -lcrypto $LIBS"
12606 # if test ! -d ${withval}; then
12607 # echo "configure: error: called with --with-ssl, but ssl base directory ${withval} does not exist or is not a directory. Aborting config" 1>&2
12608 # exit 1
12609 # fi
12611 CFLAGS="-DHAVE_CRYPT_DECL $CFLAGS" # Damn, SSLeay defines its own
12615 echo "$ac_t""no" 1>&6
12617 esac
12618 else
12619 echo "$ac_t""no" 1>&6
12624 #################################################
12625 # check for syslog logging
12626 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
12627 echo "configure:12628: checking whether to use syslog logging" >&5
12628 # Check whether --with-syslog or --without-syslog was given.
12629 if test "${with_syslog+set}" = set; then
12630 withval="$with_syslog"
12631 case "$withval" in
12632 yes)
12633 echo "$ac_t""yes" 1>&6
12634 cat >> confdefs.h <<\EOF
12635 #define WITH_SYSLOG 1
12640 echo "$ac_t""no" 1>&6
12642 esac
12643 else
12644 echo "$ac_t""no" 1>&6
12649 #################################################
12650 # check for a shared memory profiling support
12651 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
12652 echo "configure:12653: checking whether to use profiling" >&5
12653 # Check whether --with-profiling-data or --without-profiling-data was given.
12654 if test "${with_profiling_data+set}" = set; then
12655 withval="$with_profiling_data"
12656 case "$withval" in
12657 yes)
12658 echo "$ac_t""yes" 1>&6
12659 cat >> confdefs.h <<\EOF
12660 #define WITH_PROFILE 1
12665 echo "$ac_t""no" 1>&6
12667 esac
12668 else
12669 echo "$ac_t""no" 1>&6
12675 #################################################
12676 # check for experimental disk-quotas support
12677 QUOTAOBJS=smbd/noquotas.o
12679 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
12680 echo "configure:12681: checking whether to support disk-quotas" >&5
12681 # Check whether --with-quotas or --without-quotas was given.
12682 if test "${with_quotas+set}" = set; then
12683 withval="$with_quotas"
12684 case "$withval" in
12685 yes)
12686 echo "$ac_t""yes" 1>&6
12687 QUOTAOBJS=smbd/quotas.o
12690 echo "$ac_t""no" 1>&6
12692 esac
12693 else
12694 echo "$ac_t""no" 1>&6
12700 #################################################
12701 # check for experimental utmp accounting
12703 echo $ac_n "checking whether to support utmp accounting""... $ac_c" 1>&6
12704 echo "configure:12705: checking whether to support utmp accounting" >&5
12705 # Check whether --with-utmp or --without-utmp was given.
12706 if test "${with_utmp+set}" = set; then
12707 withval="$with_utmp"
12708 case "$withval" in
12709 yes)
12710 echo "$ac_t""yes" 1>&6
12711 cat >> confdefs.h <<\EOF
12712 #define WITH_UTMP 1
12717 echo "$ac_t""no" 1>&6
12719 esac
12720 else
12721 echo "$ac_t""no" 1>&6
12726 #################################################
12727 # check for MS Dfs support
12729 echo $ac_n "checking whether to support Microsoft Dfs""... $ac_c" 1>&6
12730 echo "configure:12731: checking whether to support Microsoft Dfs" >&5
12731 # Check whether --with-msdfs or --without-msdfs was given.
12732 if test "${with_msdfs+set}" = set; then
12733 withval="$with_msdfs"
12734 case "$withval" in
12735 yes)
12736 echo "$ac_t""yes" 1>&6
12737 cat >> confdefs.h <<\EOF
12738 #define WITH_MSDFS 1
12743 echo "$ac_t""no" 1>&6
12745 esac
12746 else
12747 echo "$ac_t""no" 1>&6
12752 #################################################
12753 # should we build libsmbclient?
12755 INSTALLCLIENTCMD_SH=:
12756 INSTALLCLIENTCMD_A=:
12757 LIBSMBCLIENT_SHARED=
12758 LIBSMBCLIENT=
12759 echo $ac_n "checking whether to build the libsmbclient shared library""... $ac_c" 1>&6
12760 echo "configure:12761: checking whether to build the libsmbclient shared library" >&5
12761 # Check whether --with-libsmbclient or --without-libsmbclient was given.
12762 if test "${with_libsmbclient+set}" = set; then
12763 withval="$with_libsmbclient"
12764 case "$withval" in
12765 yes)
12766 if test $BLDSHARED = true; then
12767 INSTALLCLIENTCMD_SH="\$(INSTALLCMD)"
12768 LIBSMBCLIENT_SHARED=bin/libsmbclient.$SHLIBEXT
12769 LIBSMBCLIENT=libsmbclient
12770 echo "$ac_t""yes" 1>&6
12771 else
12772 INSTALLCLIENTCMD_A="\$(INSTALLCMD)"
12773 LIBSMBCLIENT=libsmbclient
12774 echo "$ac_t""no shared library support -- will supply static library" 1>&6
12778 echo "$ac_t""no" 1>&6
12780 esac
12781 else
12782 echo "$ac_t""no" 1>&6
12787 #################################################
12788 # these tests are taken from the GNU fileutils package
12789 echo "checking how to get filesystem space usage" 1>&6
12790 echo "configure:12791: checking how to get filesystem space usage" >&5
12791 space=no
12793 # Test for statvfs64.
12794 if test $space = no; then
12795 # SVR4
12796 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
12797 echo "configure:12798: checking statvfs64 function (SVR4)" >&5
12798 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
12799 echo $ac_n "(cached) $ac_c" 1>&6
12800 else
12801 if test "$cross_compiling" = yes; then
12802 fu_cv_sys_stat_statvfs64=cross
12803 else
12804 cat > conftest.$ac_ext <<EOF
12805 #line 12806 "configure"
12806 #include "confdefs.h"
12808 #if defined(HAVE_UNISTD_H)
12809 #include <unistd.h>
12810 #endif
12811 #include <sys/types.h>
12812 #include <sys/statvfs.h>
12813 main ()
12815 struct statvfs64 fsd;
12816 exit (statvfs64 (".", &fsd));
12819 if { (eval echo configure:12820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12820 then
12821 fu_cv_sys_stat_statvfs64=yes
12822 else
12823 echo "configure: failed program was:" >&5
12824 cat conftest.$ac_ext >&5
12825 rm -fr conftest*
12826 fu_cv_sys_stat_statvfs64=no
12828 rm -fr conftest*
12833 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
12834 if test $fu_cv_sys_stat_statvfs64 = yes; then
12835 space=yes
12836 cat >> confdefs.h <<\EOF
12837 #define STAT_STATVFS64 1
12843 # Perform only the link test since it seems there are no variants of the
12844 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
12845 # because that got a false positive on SCO OSR5. Adding the declaration
12846 # of a `struct statvfs' causes this test to fail (as it should) on such
12847 # systems. That system is reported to work fine with STAT_STATFS4 which
12848 # is what it gets when this test fails.
12849 if test $space = no; then
12850 # SVR4
12851 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
12852 echo "configure:12853: checking statvfs function (SVR4)" >&5
12853 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
12854 echo $ac_n "(cached) $ac_c" 1>&6
12855 else
12856 cat > conftest.$ac_ext <<EOF
12857 #line 12858 "configure"
12858 #include "confdefs.h"
12859 #include <sys/types.h>
12860 #include <sys/statvfs.h>
12861 int main() {
12862 struct statvfs fsd; statvfs (0, &fsd);
12863 ; return 0; }
12865 if { (eval echo configure:12866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12866 rm -rf conftest*
12867 fu_cv_sys_stat_statvfs=yes
12868 else
12869 echo "configure: failed program was:" >&5
12870 cat conftest.$ac_ext >&5
12871 rm -rf conftest*
12872 fu_cv_sys_stat_statvfs=no
12874 rm -f conftest*
12877 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
12878 if test $fu_cv_sys_stat_statvfs = yes; then
12879 space=yes
12880 cat >> confdefs.h <<\EOF
12881 #define STAT_STATVFS 1
12887 if test $space = no; then
12888 # DEC Alpha running OSF/1
12889 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
12890 echo "configure:12891: checking for 3-argument statfs function (DEC OSF/1)" >&5
12891 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
12892 echo $ac_n "(cached) $ac_c" 1>&6
12893 else
12894 if test "$cross_compiling" = yes; then
12895 fu_cv_sys_stat_statfs3_osf1=no
12896 else
12897 cat > conftest.$ac_ext <<EOF
12898 #line 12899 "configure"
12899 #include "confdefs.h"
12901 #include <sys/param.h>
12902 #include <sys/types.h>
12903 #include <sys/mount.h>
12904 main ()
12906 struct statfs fsd;
12907 fsd.f_fsize = 0;
12908 exit (statfs (".", &fsd, sizeof (struct statfs)));
12911 if { (eval echo configure:12912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12912 then
12913 fu_cv_sys_stat_statfs3_osf1=yes
12914 else
12915 echo "configure: failed program was:" >&5
12916 cat conftest.$ac_ext >&5
12917 rm -fr conftest*
12918 fu_cv_sys_stat_statfs3_osf1=no
12920 rm -fr conftest*
12925 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
12926 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
12927 space=yes
12928 cat >> confdefs.h <<\EOF
12929 #define STAT_STATFS3_OSF1 1
12935 if test $space = no; then
12936 # AIX
12937 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
12938 echo "configure:12939: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
12939 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
12940 echo $ac_n "(cached) $ac_c" 1>&6
12941 else
12942 if test "$cross_compiling" = yes; then
12943 fu_cv_sys_stat_statfs2_bsize=no
12944 else
12945 cat > conftest.$ac_ext <<EOF
12946 #line 12947 "configure"
12947 #include "confdefs.h"
12949 #ifdef HAVE_SYS_PARAM_H
12950 #include <sys/param.h>
12951 #endif
12952 #ifdef HAVE_SYS_MOUNT_H
12953 #include <sys/mount.h>
12954 #endif
12955 #ifdef HAVE_SYS_VFS_H
12956 #include <sys/vfs.h>
12957 #endif
12958 main ()
12960 struct statfs fsd;
12961 fsd.f_bsize = 0;
12962 exit (statfs (".", &fsd));
12965 if { (eval echo configure:12966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12966 then
12967 fu_cv_sys_stat_statfs2_bsize=yes
12968 else
12969 echo "configure: failed program was:" >&5
12970 cat conftest.$ac_ext >&5
12971 rm -fr conftest*
12972 fu_cv_sys_stat_statfs2_bsize=no
12974 rm -fr conftest*
12979 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
12980 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
12981 space=yes
12982 cat >> confdefs.h <<\EOF
12983 #define STAT_STATFS2_BSIZE 1
12989 if test $space = no; then
12990 # SVR3
12991 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
12992 echo "configure:12993: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
12993 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
12994 echo $ac_n "(cached) $ac_c" 1>&6
12995 else
12996 if test "$cross_compiling" = yes; then
12997 fu_cv_sys_stat_statfs4=no
12998 else
12999 cat > conftest.$ac_ext <<EOF
13000 #line 13001 "configure"
13001 #include "confdefs.h"
13002 #include <sys/types.h>
13003 #include <sys/statfs.h>
13004 main ()
13006 struct statfs fsd;
13007 exit (statfs (".", &fsd, sizeof fsd, 0));
13010 if { (eval echo configure:13011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13011 then
13012 fu_cv_sys_stat_statfs4=yes
13013 else
13014 echo "configure: failed program was:" >&5
13015 cat conftest.$ac_ext >&5
13016 rm -fr conftest*
13017 fu_cv_sys_stat_statfs4=no
13019 rm -fr conftest*
13024 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
13025 if test $fu_cv_sys_stat_statfs4 = yes; then
13026 space=yes
13027 cat >> confdefs.h <<\EOF
13028 #define STAT_STATFS4 1
13034 if test $space = no; then
13035 # 4.4BSD and NetBSD
13036 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
13037 echo "configure:13038: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
13038 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
13039 echo $ac_n "(cached) $ac_c" 1>&6
13040 else
13041 if test "$cross_compiling" = yes; then
13042 fu_cv_sys_stat_statfs2_fsize=no
13043 else
13044 cat > conftest.$ac_ext <<EOF
13045 #line 13046 "configure"
13046 #include "confdefs.h"
13047 #include <sys/types.h>
13048 #ifdef HAVE_SYS_PARAM_H
13049 #include <sys/param.h>
13050 #endif
13051 #ifdef HAVE_SYS_MOUNT_H
13052 #include <sys/mount.h>
13053 #endif
13054 main ()
13056 struct statfs fsd;
13057 fsd.f_fsize = 0;
13058 exit (statfs (".", &fsd));
13061 if { (eval echo configure:13062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13062 then
13063 fu_cv_sys_stat_statfs2_fsize=yes
13064 else
13065 echo "configure: failed program was:" >&5
13066 cat conftest.$ac_ext >&5
13067 rm -fr conftest*
13068 fu_cv_sys_stat_statfs2_fsize=no
13070 rm -fr conftest*
13075 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
13076 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
13077 space=yes
13078 cat >> confdefs.h <<\EOF
13079 #define STAT_STATFS2_FSIZE 1
13085 if test $space = no; then
13086 # Ultrix
13087 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
13088 echo "configure:13089: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
13089 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
13090 echo $ac_n "(cached) $ac_c" 1>&6
13091 else
13092 if test "$cross_compiling" = yes; then
13093 fu_cv_sys_stat_fs_data=no
13094 else
13095 cat > conftest.$ac_ext <<EOF
13096 #line 13097 "configure"
13097 #include "confdefs.h"
13098 #include <sys/types.h>
13099 #ifdef HAVE_SYS_PARAM_H
13100 #include <sys/param.h>
13101 #endif
13102 #ifdef HAVE_SYS_MOUNT_H
13103 #include <sys/mount.h>
13104 #endif
13105 #ifdef HAVE_SYS_FS_TYPES_H
13106 #include <sys/fs_types.h>
13107 #endif
13108 main ()
13110 struct fs_data fsd;
13111 /* Ultrix's statfs returns 1 for success,
13112 0 for not mounted, -1 for failure. */
13113 exit (statfs (".", &fsd) != 1);
13116 if { (eval echo configure:13117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13117 then
13118 fu_cv_sys_stat_fs_data=yes
13119 else
13120 echo "configure: failed program was:" >&5
13121 cat conftest.$ac_ext >&5
13122 rm -fr conftest*
13123 fu_cv_sys_stat_fs_data=no
13125 rm -fr conftest*
13130 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
13131 if test $fu_cv_sys_stat_fs_data = yes; then
13132 space=yes
13133 cat >> confdefs.h <<\EOF
13134 #define STAT_STATFS2_FS_DATA 1
13141 # As a gating factor for large file support, in order to
13142 # use <4GB files we must have the following minimal support
13143 # available.
13144 # long long, and a 64 bit off_t or off64_t.
13145 # If we don't have all of these then disable large
13146 # file support.
13148 echo $ac_n "checking if large file support can be enabled""... $ac_c" 1>&6
13149 echo "configure:13150: checking if large file support can be enabled" >&5
13150 cat > conftest.$ac_ext <<EOF
13151 #line 13152 "configure"
13152 #include "confdefs.h"
13154 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
13155 #include <sys/types.h>
13156 #else
13157 __COMPILE_ERROR_
13158 #endif
13160 int main() {
13161 int i
13162 ; return 0; }
13164 if { (eval echo configure:13165: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13165 rm -rf conftest*
13166 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=yes
13167 else
13168 echo "configure: failed program was:" >&5
13169 cat conftest.$ac_ext >&5
13170 rm -rf conftest*
13171 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=no
13173 rm -f conftest*
13174 if test x"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x"yes"; then
13175 echo "$ac_t""yes" 1>&6
13176 cat >> confdefs.h <<\EOF
13177 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
13180 else
13181 echo "$ac_t""no" 1>&6
13184 # Check whether --with-spinlocks or --without-spinlocks was given.
13185 if test "${with_spinlocks+set}" = set; then
13186 withval="$with_spinlocks"
13190 if test "x$with_spinlocks" = "xyes"; then
13191 cat >> confdefs.h <<\EOF
13192 #define USE_SPINLOCKS 1
13196 case "$host_cpu" in
13197 sparc)
13198 cat >> confdefs.h <<\EOF
13199 #define SPARC_SPINLOCKS 1
13204 i386|i486|i586|i686)
13205 cat >> confdefs.h <<\EOF
13206 #define INTEL_SPINLOCKS 1
13211 mips)
13212 cat >> confdefs.h <<\EOF
13213 #define MIPS_SPINLOCKS 1
13218 powerpc)
13219 cat >> confdefs.h <<\EOF
13220 #define POWERPC_SPINLOCKS 1
13224 esac
13227 #################################################
13228 # check for ACL support
13230 echo $ac_n "checking whether to support ACLs""... $ac_c" 1>&6
13231 echo "configure:13232: checking whether to support ACLs" >&5
13232 # Check whether --with-acl-support or --without-acl-support was given.
13233 if test "${with_acl_support+set}" = set; then
13234 withval="$with_acl_support"
13235 case "$withval" in
13236 yes)
13238 case "$host_os" in
13239 *sysv5*)
13240 echo "$ac_t""Using UnixWare ACLs" 1>&6
13241 cat >> confdefs.h <<\EOF
13242 #define HAVE_UNIXWARE_ACLS 1
13246 *solaris*)
13247 echo "$ac_t""Using solaris ACLs" 1>&6
13248 cat >> confdefs.h <<\EOF
13249 #define HAVE_SOLARIS_ACLS 1
13253 *hpux*)
13254 echo "$ac_t""Using HPUX ACLs" 1>&6
13255 cat >> confdefs.h <<\EOF
13256 #define HAVE_HPUX_ACLS 1
13260 *irix*)
13261 echo "$ac_t""Using IRIX ACLs" 1>&6
13262 cat >> confdefs.h <<\EOF
13263 #define HAVE_IRIX_ACLS 1
13267 *aix*)
13268 echo "$ac_t""Using AIX ACLs" 1>&6
13269 cat >> confdefs.h <<\EOF
13270 #define HAVE_AIX_ACLS 1
13274 *osf*)
13275 echo "$ac_t""Using Tru64 ACLs" 1>&6
13276 cat >> confdefs.h <<\EOF
13277 #define HAVE_TRU64_ACLS 1
13280 LIBS="$LIBS -lpacl"
13283 echo $ac_n "checking for acl_get_file in -lacl""... $ac_c" 1>&6
13284 echo "configure:13285: checking for acl_get_file in -lacl" >&5
13285 ac_lib_var=`echo acl'_'acl_get_file | sed 'y%./+-%__p_%'`
13286 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13287 echo $ac_n "(cached) $ac_c" 1>&6
13288 else
13289 ac_save_LIBS="$LIBS"
13290 LIBS="-lacl $LIBS"
13291 cat > conftest.$ac_ext <<EOF
13292 #line 13293 "configure"
13293 #include "confdefs.h"
13294 /* Override any gcc2 internal prototype to avoid an error. */
13295 /* We use char because int might match the return type of a gcc2
13296 builtin and then its argument prototype would still apply. */
13297 char acl_get_file();
13299 int main() {
13300 acl_get_file()
13301 ; return 0; }
13303 if { (eval echo configure:13304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13304 rm -rf conftest*
13305 eval "ac_cv_lib_$ac_lib_var=yes"
13306 else
13307 echo "configure: failed program was:" >&5
13308 cat conftest.$ac_ext >&5
13309 rm -rf conftest*
13310 eval "ac_cv_lib_$ac_lib_var=no"
13312 rm -f conftest*
13313 LIBS="$ac_save_LIBS"
13316 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13317 echo "$ac_t""yes" 1>&6
13318 ac_tr_lib=HAVE_LIB`echo acl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
13319 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
13320 cat >> confdefs.h <<EOF
13321 #define $ac_tr_lib 1
13324 LIBS="-lacl $LIBS"
13326 else
13327 echo "$ac_t""no" 1>&6
13330 echo $ac_n "checking for ACL support""... $ac_c" 1>&6
13331 echo "configure:13332: checking for ACL support" >&5
13332 if eval "test \"`echo '$''{'samba_cv_HAVE_POSIX_ACLS'+set}'`\" = set"; then
13333 echo $ac_n "(cached) $ac_c" 1>&6
13334 else
13336 cat > conftest.$ac_ext <<EOF
13337 #line 13338 "configure"
13338 #include "confdefs.h"
13339 #include <sys/types.h>
13340 #include <sys/acl.h>
13341 int main() {
13342 acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
13343 ; return 0; }
13345 if { (eval echo configure:13346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13346 rm -rf conftest*
13347 samba_cv_HAVE_POSIX_ACLS=yes
13348 else
13349 echo "configure: failed program was:" >&5
13350 cat conftest.$ac_ext >&5
13351 rm -rf conftest*
13352 samba_cv_HAVE_POSIX_ACLS=no
13354 rm -f conftest*
13357 echo "$ac_t""$samba_cv_HAVE_POSIX_ACLS" 1>&6
13358 if test x"$samba_cv_HAVE_POSIX_ACLS" = x"yes"; then
13359 echo "$ac_t""Using posix ACLs" 1>&6
13360 cat >> confdefs.h <<\EOF
13361 #define HAVE_POSIX_ACLS 1
13364 echo $ac_n "checking for acl_get_perm_np""... $ac_c" 1>&6
13365 echo "configure:13366: checking for acl_get_perm_np" >&5
13366 if eval "test \"`echo '$''{'samba_cv_HAVE_ACL_GET_PERM_NP'+set}'`\" = set"; then
13367 echo $ac_n "(cached) $ac_c" 1>&6
13368 else
13370 cat > conftest.$ac_ext <<EOF
13371 #line 13372 "configure"
13372 #include "confdefs.h"
13373 #include <sys/types.h>
13374 #include <sys/acl.h>
13375 int main() {
13376 acl_permset_t permset_d; acl_perm_t perm; return acl_get_perm_np( permset_d, perm);
13377 ; return 0; }
13379 if { (eval echo configure:13380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13380 rm -rf conftest*
13381 samba_cv_HAVE_ACL_GET_PERM_NP=yes
13382 else
13383 echo "configure: failed program was:" >&5
13384 cat conftest.$ac_ext >&5
13385 rm -rf conftest*
13386 samba_cv_HAVE_ACL_GET_PERM_NP=no
13388 rm -f conftest*
13391 echo "$ac_t""$samba_cv_HAVE_ACL_GET_PERM_NP" 1>&6
13392 if test x"$samba_cv_HAVE_ACL_GET_PERM_NP" = x"yes"; then
13393 cat >> confdefs.h <<\EOF
13394 #define HAVE_ACL_GET_PERM_NP 1
13400 esac
13403 echo "$ac_t""no" 1>&6
13404 cat >> confdefs.h <<\EOF
13405 #define HAVE_NO_ACLS 1
13409 esac
13410 else
13411 cat >> confdefs.h <<\EOF
13412 #define HAVE_NO_ACLS 1
13415 echo "$ac_t""no" 1>&6
13420 #################################################
13421 # check for the historical SAMBA installation
13423 if test "x$prefix" = xNONE -a "$sbindir" = "\${exec_prefix}/sbin"; then
13424 # Put all binaries under the /usr/local/samba/bin directory.
13425 sbindir="$bindir"
13428 #################################################
13429 # check for sendfile support
13431 echo $ac_n "checking whether to check for support sendfile""... $ac_c" 1>&6
13432 echo "configure:13433: checking whether to check for support sendfile" >&5
13433 # Check whether --with-sendfile-support or --without-sendfile-support was given.
13434 if test "${with_sendfile_support+set}" = set; then
13435 withval="$with_sendfile_support"
13436 case "$withval" in
13437 yes)
13439 echo "$ac_t""yes" 1>&6;
13441 case "$host_os" in
13442 *linux*)
13443 echo $ac_n "checking for linux sendfile64 support""... $ac_c" 1>&6
13444 echo "configure:13445: checking for linux sendfile64 support" >&5
13445 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILE64'+set}'`\" = set"; then
13446 echo $ac_n "(cached) $ac_c" 1>&6
13447 else
13449 cat > conftest.$ac_ext <<EOF
13450 #line 13451 "configure"
13451 #include "confdefs.h"
13452 #include <sys/sendfile.h>
13453 int main() {
13455 int tofd, fromfd;
13456 off64_t offset;
13457 size_t total;
13458 ssize_t nwritten = sendfile64(tofd, fromfd, &offset, total);
13460 ; return 0; }
13462 if { (eval echo configure:13463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13463 rm -rf conftest*
13464 samba_cv_HAVE_SENDFILE64=yes
13465 else
13466 echo "configure: failed program was:" >&5
13467 cat conftest.$ac_ext >&5
13468 rm -rf conftest*
13469 samba_cv_HAVE_SENDFILE64=no
13471 rm -f conftest*
13474 echo "$ac_t""$samba_cv_HAVE_SENDFILE64" 1>&6
13476 echo $ac_n "checking for linux sendfile support""... $ac_c" 1>&6
13477 echo "configure:13478: checking for linux sendfile support" >&5
13478 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILE'+set}'`\" = set"; then
13479 echo $ac_n "(cached) $ac_c" 1>&6
13480 else
13482 cat > conftest.$ac_ext <<EOF
13483 #line 13484 "configure"
13484 #include "confdefs.h"
13485 #include <sys/sendfile.h>
13486 int main() {
13488 int tofd, fromfd;
13489 off_t offset;
13490 size_t total;
13491 ssize_t nwritten = sendfile(tofd, fromfd, &offset, total);
13493 ; return 0; }
13495 if { (eval echo configure:13496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13496 rm -rf conftest*
13497 samba_cv_HAVE_SENDFILE=yes
13498 else
13499 echo "configure: failed program was:" >&5
13500 cat conftest.$ac_ext >&5
13501 rm -rf conftest*
13502 samba_cv_HAVE_SENDFILE=no
13504 rm -f conftest*
13507 echo "$ac_t""$samba_cv_HAVE_SENDFILE" 1>&6
13509 # Try and cope with broken Linux sendfile....
13510 echo $ac_n "checking for broken linux sendfile support""... $ac_c" 1>&6
13511 echo "configure:13512: checking for broken linux sendfile support" >&5
13512 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_LINUX_SENDFILE'+set}'`\" = set"; then
13513 echo $ac_n "(cached) $ac_c" 1>&6
13514 else
13516 cat > conftest.$ac_ext <<EOF
13517 #line 13518 "configure"
13518 #include "confdefs.h"
13520 #if defined(_FILE_OFFSET_BITS) && (_FILE_OFFSET_BITS == 64)
13521 #undef _FILE_OFFSET_BITS
13522 #endif
13523 #include <sys/sendfile.h>
13524 int main() {
13526 int tofd, fromfd;
13527 off_t offset;
13528 size_t total;
13529 ssize_t nwritten = sendfile(tofd, fromfd, &offset, total);
13531 ; return 0; }
13533 if { (eval echo configure:13534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13534 rm -rf conftest*
13535 samba_cv_HAVE_BROKEN_LINUX_SENDFILE=yes
13536 else
13537 echo "configure: failed program was:" >&5
13538 cat conftest.$ac_ext >&5
13539 rm -rf conftest*
13540 samba_cv_HAVE_BROKEN_LINUX_SENDFILE=no
13542 rm -f conftest*
13545 echo "$ac_t""$samba_cv_HAVE_BROKEN_LINUX_SENDFILE" 1>&6
13547 if test x"$samba_cv_HAVE_SENDFILE64" = x"yes"; then
13548 cat >> confdefs.h <<\EOF
13549 #define HAVE_SENDFILE64 1
13552 cat >> confdefs.h <<\EOF
13553 #define LINUX_SENDFILE_API 1
13556 cat >> confdefs.h <<\EOF
13557 #define WITH_SENDFILE 1
13560 elif test x"$samba_cv_HAVE_SENDFILE" = x"yes"; then
13561 cat >> confdefs.h <<\EOF
13562 #define HAVE_SENDFILE 1
13565 cat >> confdefs.h <<\EOF
13566 #define LINUX_SENDFILE_API 1
13569 cat >> confdefs.h <<\EOF
13570 #define WITH_SENDFILE 1
13573 elif test x"$samba_cv_HAVE_BROKEN_LINUX_SENDFILE" = x"yes"; then
13574 cat >> confdefs.h <<\EOF
13575 #define LINUX_BROKEN_SENDFILE_API 1
13578 cat >> confdefs.h <<\EOF
13579 #define WITH_SENDFILE 1
13582 else
13583 echo "$ac_t""no" 1>&6;
13587 *freebsd*)
13588 echo $ac_n "checking for freebsd sendfile support""... $ac_c" 1>&6
13589 echo "configure:13590: checking for freebsd sendfile support" >&5
13590 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILE'+set}'`\" = set"; then
13591 echo $ac_n "(cached) $ac_c" 1>&6
13592 else
13594 cat > conftest.$ac_ext <<EOF
13595 #line 13596 "configure"
13596 #include "confdefs.h"
13598 #include <sys/types.h>
13599 #include <sys/socket.h>
13600 #include <sys/uio.h>
13601 int main() {
13603 #define NULL (void *)0
13604 int fromfd, tofd, ret, total;
13605 off_t offset, nwritten;
13606 struct sf_hdtr {
13607 struct iovec *headers;
13608 int hdr_cnt;
13609 struct iovec *trailers;
13610 int trl_cnt;
13611 } hdr;
13612 struct iovec hdtrl;
13613 hdr.headers = &hdtrl;
13614 hdr.hdr_cnt = 1;
13615 hdr.trailers = NULL;
13616 hdr.trl_cnt = 0;
13617 hdtrl.iov_base = NULL;
13618 hdtrl.iov_len = 0;
13619 ret = sendfile(fromfd, tofd, offset, total, &hdr, &nwritten, 0);
13621 ; return 0; }
13623 if { (eval echo configure:13624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13624 rm -rf conftest*
13625 samba_cv_HAVE_SENDFILE=yes
13626 else
13627 echo "configure: failed program was:" >&5
13628 cat conftest.$ac_ext >&5
13629 rm -rf conftest*
13630 samba_cv_HAVE_SENDFILE=no
13632 rm -f conftest*
13635 echo "$ac_t""$samba_cv_HAVE_SENDFILE" 1>&6
13637 if test x"$samba_cv_HAVE_SENDFILE" = x"yes"; then
13638 cat >> confdefs.h <<\EOF
13639 #define HAVE_SENDFILE 1
13642 cat >> confdefs.h <<\EOF
13643 #define FREEBSD_SENDFILE_API 1
13646 cat >> confdefs.h <<\EOF
13647 #define WITH_SENDFILE 1
13650 else
13651 echo "$ac_t""no" 1>&6;
13655 *hpux*)
13656 echo $ac_n "checking for hpux sendfile64 support""... $ac_c" 1>&6
13657 echo "configure:13658: checking for hpux sendfile64 support" >&5
13658 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILE64'+set}'`\" = set"; then
13659 echo $ac_n "(cached) $ac_c" 1>&6
13660 else
13662 cat > conftest.$ac_ext <<EOF
13663 #line 13664 "configure"
13664 #include "confdefs.h"
13666 #include <sys/socket.h>
13667 #include <sys/uio.h>
13668 int main() {
13670 int fromfd, tofd;
13671 size_t total=0;
13672 struct iovec hdtrl[2];
13673 ssize_t nwritten;
13674 off64_t offset;
13676 hdtrl[0].iov_base = 0;
13677 hdtrl[0].iov_len = 0;
13679 nwritten = sendfile64(tofd, fromfd, offset, total, &hdtrl[0], 0);
13681 ; return 0; }
13683 if { (eval echo configure:13684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13684 rm -rf conftest*
13685 samba_cv_HAVE_SENDFILE64=yes
13686 else
13687 echo "configure: failed program was:" >&5
13688 cat conftest.$ac_ext >&5
13689 rm -rf conftest*
13690 samba_cv_HAVE_SENDFILE64=no
13692 rm -f conftest*
13695 echo "$ac_t""$samba_cv_HAVE_SENDFILE64" 1>&6
13696 if test x"$samba_cv_HAVE_SENDFILE64" = x"yes"; then
13697 cat >> confdefs.h <<\EOF
13698 #define HAVE_SENDFILE64 1
13701 cat >> confdefs.h <<\EOF
13702 #define HPUX_SENDFILE_API 1
13705 cat >> confdefs.h <<\EOF
13706 #define WITH_SENDFILE 1
13709 else
13710 echo "$ac_t""no" 1>&6;
13713 echo $ac_n "checking for hpux sendfile support""... $ac_c" 1>&6
13714 echo "configure:13715: checking for hpux sendfile support" >&5
13715 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILE'+set}'`\" = set"; then
13716 echo $ac_n "(cached) $ac_c" 1>&6
13717 else
13719 cat > conftest.$ac_ext <<EOF
13720 #line 13721 "configure"
13721 #include "confdefs.h"
13723 #include <sys/socket.h>
13724 #include <sys/uio.h>
13725 int main() {
13727 int fromfd, tofd;
13728 size_t total=0;
13729 struct iovec hdtrl[2];
13730 ssize_t nwritten;
13731 off_t offset;
13733 hdtrl[0].iov_base = 0;
13734 hdtrl[0].iov_len = 0;
13736 nwritten = sendfile(tofd, fromfd, offset, total, &hdtrl[0], 0);
13738 ; return 0; }
13740 if { (eval echo configure:13741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13741 rm -rf conftest*
13742 samba_cv_HAVE_SENDFILE=yes
13743 else
13744 echo "configure: failed program was:" >&5
13745 cat conftest.$ac_ext >&5
13746 rm -rf conftest*
13747 samba_cv_HAVE_SENDFILE=no
13749 rm -f conftest*
13752 echo "$ac_t""$samba_cv_HAVE_SENDFILE" 1>&6
13753 if test x"$samba_cv_HAVE_SENDFILE" = x"yes"; then
13754 cat >> confdefs.h <<\EOF
13755 #define HAVE_SENDFILE 1
13758 cat >> confdefs.h <<\EOF
13759 #define HPUX_SENDFILE_API 1
13762 cat >> confdefs.h <<\EOF
13763 #define WITH_SENDFILE 1
13766 else
13767 echo "$ac_t""no" 1>&6;
13771 *solaris*)
13772 LIBS="$LIBS -lsendfile"
13773 echo $ac_n "checking for solaris sendfilev64 support""... $ac_c" 1>&6
13774 echo "configure:13775: checking for solaris sendfilev64 support" >&5
13775 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILEV64'+set}'`\" = set"; then
13776 echo $ac_n "(cached) $ac_c" 1>&6
13777 else
13779 cat > conftest.$ac_ext <<EOF
13780 #line 13781 "configure"
13781 #include "confdefs.h"
13783 #include <sys/sendfile.h>
13784 int main() {
13786 int sfvcnt;
13787 size_t xferred;
13788 struct sendfilevec vec[2];
13789 ssize_t nwritten;
13790 int tofd;
13792 sfvcnt = 2;
13794 vec[0].sfv_fd = SFV_FD_SELF;
13795 vec[0].sfv_flag = 0;
13796 vec[0].sfv_off = 0;
13797 vec[0].sfv_len = 0;
13799 vec[1].sfv_fd = 0;
13800 vec[1].sfv_flag = 0;
13801 vec[1].sfv_off = 0;
13802 vec[1].sfv_len = 0;
13803 nwritten = sendfilev64(tofd, vec, sfvcnt, &xferred);
13805 ; return 0; }
13807 if { (eval echo configure:13808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13808 rm -rf conftest*
13809 samba_cv_HAVE_SENDFILEV64=yes
13810 else
13811 echo "configure: failed program was:" >&5
13812 cat conftest.$ac_ext >&5
13813 rm -rf conftest*
13814 samba_cv_HAVE_SENDFILEV64=no
13816 rm -f conftest*
13819 echo "$ac_t""$samba_cv_HAVE_SENDFILEV64" 1>&6
13821 if test x"$samba_cv_HAVE_SENDFILEV64" = x"yes"; then
13822 cat >> confdefs.h <<\EOF
13823 #define HAVE_SENDFILEV64 1
13826 cat >> confdefs.h <<\EOF
13827 #define SOLARIS_SENDFILE_API 1
13830 cat >> confdefs.h <<\EOF
13831 #define WITH_SENDFILE 1
13834 else
13835 echo "$ac_t""no" 1>&6;
13838 echo $ac_n "checking for solaris sendfilev support""... $ac_c" 1>&6
13839 echo "configure:13840: checking for solaris sendfilev support" >&5
13840 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILEV'+set}'`\" = set"; then
13841 echo $ac_n "(cached) $ac_c" 1>&6
13842 else
13844 cat > conftest.$ac_ext <<EOF
13845 #line 13846 "configure"
13846 #include "confdefs.h"
13848 #include <sys/sendfile.h>
13849 int main() {
13851 int sfvcnt;
13852 size_t xferred;
13853 struct sendfilevec vec[2];
13854 ssize_t nwritten;
13855 int tofd;
13857 sfvcnt = 2;
13859 vec[0].sfv_fd = SFV_FD_SELF;
13860 vec[0].sfv_flag = 0;
13861 vec[0].sfv_off = 0;
13862 vec[0].sfv_len = 0;
13864 vec[1].sfv_fd = 0;
13865 vec[1].sfv_flag = 0;
13866 vec[1].sfv_off = 0;
13867 vec[1].sfv_len = 0;
13868 nwritten = sendfilev(tofd, vec, sfvcnt, &xferred);
13870 ; return 0; }
13872 if { (eval echo configure:13873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13873 rm -rf conftest*
13874 samba_cv_HAVE_SENDFILEV=yes
13875 else
13876 echo "configure: failed program was:" >&5
13877 cat conftest.$ac_ext >&5
13878 rm -rf conftest*
13879 samba_cv_HAVE_SENDFILEV=no
13881 rm -f conftest*
13884 echo "$ac_t""$samba_cv_HAVE_SENDFILEV" 1>&6
13886 if test x"$samba_cv_HAVE_SENDFILEV" = x"yes"; then
13887 cat >> confdefs.h <<\EOF
13888 #define HAVE_SENDFILEV 1
13891 cat >> confdefs.h <<\EOF
13892 #define SOLARIS_SENDFILE_API 1
13895 cat >> confdefs.h <<\EOF
13896 #define WITH_SENDFILE 1
13899 else
13900 echo "$ac_t""no" 1>&6;
13906 esac
13909 echo "$ac_t""no" 1>&6
13911 esac
13912 else
13913 echo "$ac_t""no" 1>&6
13918 #################################################
13919 # Check whether winbind is supported on this platform. If so we need to
13920 # build and install client programs (WINBIND_TARGETS), sbin programs
13921 # (WINBIND_STARGETS) and shared libraries (WINBIND_LTARGETS).
13923 echo $ac_n "checking whether to build winbind""... $ac_c" 1>&6
13924 echo "configure:13925: checking whether to build winbind" >&5
13926 # Initially, the value of $host_os decides whether winbind is supported
13928 case "$host_os" in
13929 *linux*|*irix*)
13930 HAVE_WINBIND=yes
13932 *solaris*)
13933 HAVE_WINBIND=yes
13934 WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_solaris.o"
13935 WINBIND_NSS_EXTRA_LIBS="-lsocket"
13937 *hpux11*)
13938 HAVE_WINBIND=yes
13939 WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_solaris.o"
13941 *aix4*)
13942 HAVE_WINBIND=yes
13945 HAVE_WINBIND=no
13946 winbind_no_reason=", unsupported on $host_os"
13948 esac
13950 # Check the setting of --with-winbindd
13952 # Check whether --with-winbind or --without-winbind was given.
13953 if test "${with_winbind+set}" = set; then
13954 withval="$with_winbind"
13956 case "$withval" in
13957 yes)
13958 HAVE_WINBIND=yes
13961 HAVE_WINBIND=no
13962 winbind_reason=""
13964 esac
13968 # We need unix domain sockets for winbind
13970 if test x"$HAVE_WINBIND" = x"yes"; then
13971 if test x"$samba_cv_unixsocket" = x"no"; then
13972 winbind_no_reason=", no unix domain socket support on $host_os"
13973 HAVE_WINBIND=no
13977 # Display test results
13979 if test x"$HAVE_WINBIND" = x"yes"; then
13981 echo "$ac_t""yes" 1>&6
13983 echo $ac_n "checking whether to enable winbind auth challenge/response code""... $ac_c" 1>&6
13984 echo "configure:13985: checking whether to enable winbind auth challenge/response code" >&5
13985 # Check whether --with-winbind-auth-challenge or --without-winbind-auth-challenge was given.
13986 if test "${with_winbind_auth_challenge+set}" = set; then
13987 withval="$with_winbind_auth_challenge"
13989 case "$withval" in
13990 yes)
13991 cat >> confdefs.h <<\EOF
13992 #define WITH_WINBIND_AUTH_CRAP 1
13995 echo "$ac_t""yes" 1>&6
13998 echo "$ac_t""no" 1>&6
14000 esac
14001 else
14002 echo "$ac_t""no" 1>&6
14007 # Check for FreeBSD problem with getgroups
14009 WINBIND_TARGETS="bin/wbinfo"
14010 WINBIND_STARGETS="bin/winbindd"
14011 case "$host_os" in
14012 *irix*)
14013 WINBIND_LTARGETS="nsswitch/libns_winbind.so"
14016 WINBIND_LTARGETS="nsswitch/libnss_winbind.so"
14018 esac
14021 case "$with_pam" in
14022 yes)
14023 WINBIND_PAM_TARGETS="nsswitch/pam_winbind.so"
14025 esac
14027 # Check for Horrible winbindd ldap hack.
14029 echo $ac_n "checking whether to enable winbind ldap hack""... $ac_c" 1>&6
14030 echo "configure:14031: checking whether to enable winbind ldap hack" >&5
14031 # Check whether --with-winbind-ldap-hack or --without-winbind-ldap-hack was given.
14032 if test "${with_winbind_ldap_hack+set}" = set; then
14033 withval="$with_winbind_ldap_hack"
14035 case "$withval" in
14036 yes)
14037 cat >> confdefs.h <<\EOF
14038 #define WITH_HORRIBLE_LDAP_NATIVE_MODE_HACK 1
14041 LIBS="$LIBS -lldap";
14042 echo "$ac_t""yes" 1>&6
14045 echo "$ac_t""no" 1>&6
14047 esac
14048 else
14049 echo "$ac_t""no" 1>&6
14054 else
14055 echo "$ac_t""no$winbind_no_reason" 1>&6
14057 WINBIND_TARGETS=""
14058 WINBIND_STARGETS=""
14059 WINBIND_LTARGETS=""
14060 WINBIND_PAM_TARGETS=""
14064 # Check for FreeBSD problem with getgroups
14065 # It returns EGID too many times in the list of groups
14066 # and causes a security problem
14067 echo $ac_n "checking whether or not getgroups returns EGID too many times""... $ac_c" 1>&6
14068 echo "configure:14069: checking whether or not getgroups returns EGID too many times" >&5
14069 if eval "test \"`echo '$''{'samba_cv_have_getgroups_too_many_egids'+set}'`\" = set"; then
14070 echo $ac_n "(cached) $ac_c" 1>&6
14071 else
14072 if test "$cross_compiling" = yes; then
14073 samba_cv_have_getgroups_too_many_egids=cross
14074 else
14075 cat > conftest.$ac_ext <<EOF
14076 #line 14077 "configure"
14077 #include "confdefs.h"
14079 #include <sys/types.h>
14080 #include <stdio.h>
14082 int main(int argc, char *argv[])
14084 gid_t groups[10];
14085 int n = 10;
14087 n = getgroups(n, &groups);
14088 /* Could actually pass back the number of EGIDs there ... */
14089 exit((n > 1 && groups[0] == getegid() && groups[1] == getegid()) ? 1 : 0);
14092 if { (eval echo configure:14093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14093 then
14094 samba_cv_have_getgroups_too_many_egids=no
14095 else
14096 echo "configure: failed program was:" >&5
14097 cat conftest.$ac_ext >&5
14098 rm -fr conftest*
14099 samba_cv_have_getgroups_too_many_egids=yes
14101 rm -fr conftest*
14106 echo "$ac_t""$samba_cv_have_getgroups_too_many_egids" 1>&6
14107 if test x"$samba_cv_have_getgroups_too_many_egids" = x"yes"; then
14108 cat >> confdefs.h <<\EOF
14109 #define HAVE_GETGROUPS_TOO_MANY_EGIDS 1
14114 # Substitution time!
14123 # Solaris has some extra fields in struct passwd that need to be
14124 # initialised otherwise nscd crashes. Unfortunately autoconf < 2.50
14125 # doesn't have the AC_CHECK_MEMBER macro which would be handy for checking
14126 # this.
14128 #AC_CHECK_MEMBER(struct passwd.pw_comment,
14129 # AC_DEFINE(HAVE_PASSWD_PW_COMMENT, 1, [Defined if struct passwd has pw_comment field]),
14130 # [#include <pwd.h>])
14132 echo $ac_n "checking whether struct passwd has pw_comment""... $ac_c" 1>&6
14133 echo "configure:14134: checking whether struct passwd has pw_comment" >&5
14134 if eval "test \"`echo '$''{'samba_cv_passwd_pw_comment'+set}'`\" = set"; then
14135 echo $ac_n "(cached) $ac_c" 1>&6
14136 else
14138 cat > conftest.$ac_ext <<EOF
14139 #line 14140 "configure"
14140 #include "confdefs.h"
14141 #include <pwd.h>
14142 int main() {
14143 struct passwd p; p.pw_comment;
14144 ; return 0; }
14146 if { (eval echo configure:14147: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14147 rm -rf conftest*
14148 samba_cv_passwd_pw_comment=yes
14149 else
14150 echo "configure: failed program was:" >&5
14151 cat conftest.$ac_ext >&5
14152 rm -rf conftest*
14153 samba_cv_passwd_pw_comment=no
14155 rm -f conftest*
14158 echo "$ac_t""$samba_cv_passwd_pw_comment" 1>&6
14159 if test x"$samba_cv_passwd_pw_comment" = x"yes"; then
14160 cat >> confdefs.h <<\EOF
14161 #define HAVE_PASSWD_PW_COMMENT 1
14166 #AC_CHECK_MEMBER(struct passwd.pw_age,
14167 # AC_DEFINE(HAVE_PASSWD_PW_AGE, 1, [Defined if struct passwd has pw_age field]),
14168 # [#include <pwd.h>])
14170 echo $ac_n "checking whether struct passwd has pw_age""... $ac_c" 1>&6
14171 echo "configure:14172: checking whether struct passwd has pw_age" >&5
14172 if eval "test \"`echo '$''{'samba_cv_passwd_pw_age'+set}'`\" = set"; then
14173 echo $ac_n "(cached) $ac_c" 1>&6
14174 else
14176 cat > conftest.$ac_ext <<EOF
14177 #line 14178 "configure"
14178 #include "confdefs.h"
14179 #include <pwd.h>
14180 int main() {
14181 struct passwd p; p.pw_age;
14182 ; return 0; }
14184 if { (eval echo configure:14185: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14185 rm -rf conftest*
14186 samba_cv_passwd_pw_age=yes
14187 else
14188 echo "configure: failed program was:" >&5
14189 cat conftest.$ac_ext >&5
14190 rm -rf conftest*
14191 samba_cv_passwd_pw_age=no
14193 rm -f conftest*
14196 echo "$ac_t""$samba_cv_passwd_pw_age" 1>&6
14197 if test x"$samba_cv_passwd_pw_age" = x"yes"; then
14198 cat >> confdefs.h <<\EOF
14199 #define HAVE_PASSWD_PW_AGE 1
14204 #################################################
14205 # Check to see if we should use the included popt
14207 # Check whether --with-included-popt or --without-included-popt was given.
14208 if test "${with_included_popt+set}" = set; then
14209 withval="$with_included_popt"
14211 case "$withval" in
14212 yes)
14213 INCLUDED_POPT=yes
14216 INCLUDED_POPT=no
14218 esac
14221 if test x"$INCLUDED_POPT" != x"yes"; then
14222 echo $ac_n "checking for poptGetContext in -lpopt""... $ac_c" 1>&6
14223 echo "configure:14224: checking for poptGetContext in -lpopt" >&5
14224 ac_lib_var=`echo popt'_'poptGetContext | sed 'y%./+-%__p_%'`
14225 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14226 echo $ac_n "(cached) $ac_c" 1>&6
14227 else
14228 ac_save_LIBS="$LIBS"
14229 LIBS="-lpopt $LIBS"
14230 cat > conftest.$ac_ext <<EOF
14231 #line 14232 "configure"
14232 #include "confdefs.h"
14233 /* Override any gcc2 internal prototype to avoid an error. */
14234 /* We use char because int might match the return type of a gcc2
14235 builtin and then its argument prototype would still apply. */
14236 char poptGetContext();
14238 int main() {
14239 poptGetContext()
14240 ; return 0; }
14242 if { (eval echo configure:14243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14243 rm -rf conftest*
14244 eval "ac_cv_lib_$ac_lib_var=yes"
14245 else
14246 echo "configure: failed program was:" >&5
14247 cat conftest.$ac_ext >&5
14248 rm -rf conftest*
14249 eval "ac_cv_lib_$ac_lib_var=no"
14251 rm -f conftest*
14252 LIBS="$ac_save_LIBS"
14255 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14256 echo "$ac_t""yes" 1>&6
14257 INCLUDED_POPT=no
14258 else
14259 echo "$ac_t""no" 1>&6
14260 INCLUDED_POPT=yes
14265 echo $ac_n "checking whether to use included popt""... $ac_c" 1>&6
14266 echo "configure:14267: checking whether to use included popt" >&5
14267 if test x"$INCLUDED_POPT" = x"yes"; then
14268 echo "$ac_t""$srcdir/popt" 1>&6
14269 BUILD_POPT='$(POPT_OBJS)'
14270 FLAGS1="-I$srcdir/popt"
14271 else
14272 echo "$ac_t""no" 1>&6
14273 LIBS="$LIBS -lpopt"
14278 #################################################
14279 # final configure stuff
14280 echo $ac_n "checking configure summary""... $ac_c" 1>&6
14281 echo "configure:14282: checking configure summary" >&5
14282 if test "$cross_compiling" = yes; then
14283 echo "configure: warning: cannot run when cross-compiling" 1>&2
14284 else
14285 cat > conftest.$ac_ext <<EOF
14286 #line 14287 "configure"
14287 #include "confdefs.h"
14288 #include "${srcdir-.}/tests/summary.c"
14290 if { (eval echo configure:14291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14291 then
14292 echo "$ac_t""yes" 1>&6
14293 else
14294 echo "configure: failed program was:" >&5
14295 cat conftest.$ac_ext >&5
14296 rm -fr conftest*
14297 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }; exit 1;
14299 rm -fr conftest*
14303 builddir=`pwd`
14306 trap '' 1 2 15
14307 cat > confcache <<\EOF
14308 # This file is a shell script that caches the results of configure
14309 # tests run on this system so they can be shared between configure
14310 # scripts and configure runs. It is not useful on other systems.
14311 # If it contains results you don't want to keep, you may remove or edit it.
14313 # By default, configure uses ./config.cache as the cache file,
14314 # creating it if it does not exist already. You can give configure
14315 # the --cache-file=FILE option to use a different cache file; that is
14316 # what configure does when it calls configure scripts in
14317 # subdirectories, so they share the cache.
14318 # Giving --cache-file=/dev/null disables caching, for debugging configure.
14319 # config.status only pays attention to the cache file if you give it the
14320 # --recheck option to rerun configure.
14323 # The following way of writing the cache mishandles newlines in values,
14324 # but we know of no workaround that is simple, portable, and efficient.
14325 # So, don't put newlines in cache variables' values.
14326 # Ultrix sh set writes to stderr and can't be redirected directly,
14327 # and sets the high bit in the cache file unless we assign to the vars.
14328 (set) 2>&1 |
14329 case `(ac_space=' '; set | grep ac_space) 2>&1` in
14330 *ac_space=\ *)
14331 # `set' does not quote correctly, so add quotes (double-quote substitution
14332 # turns \\\\ into \\, and sed turns \\ into \).
14333 sed -n \
14334 -e "s/'/'\\\\''/g" \
14335 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
14338 # `set' quotes correctly as required by POSIX, so do not add quotes.
14339 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
14341 esac >> confcache
14342 if cmp -s $cache_file confcache; then
14344 else
14345 if test -w $cache_file; then
14346 echo "updating cache $cache_file"
14347 cat confcache > $cache_file
14348 else
14349 echo "not updating unwritable cache $cache_file"
14352 rm -f confcache
14354 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
14356 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14357 # Let make expand exec_prefix.
14358 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14360 # Any assignment to VPATH causes Sun make to only execute
14361 # the first set of double-colon rules, so remove it if not needed.
14362 # If there is a colon in the path, we need to keep it.
14363 if test "x$srcdir" = x.; then
14364 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
14367 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
14369 DEFS=-DHAVE_CONFIG_H
14371 # Without the "./", some shells look in PATH for config.status.
14372 : ${CONFIG_STATUS=./config.status}
14374 echo creating $CONFIG_STATUS
14375 rm -f $CONFIG_STATUS
14376 cat > $CONFIG_STATUS <<EOF
14377 #! /bin/sh
14378 # Generated automatically by configure.
14379 # Run this file to recreate the current configuration.
14380 # This directory was configured as follows,
14381 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14383 # $0 $ac_configure_args
14385 # Compiler output produced by configure, useful for debugging
14386 # configure, is in ./config.log if it exists.
14388 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
14389 for ac_option
14391 case "\$ac_option" in
14392 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14393 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
14394 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
14395 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
14396 echo "$CONFIG_STATUS generated by autoconf version 2.13"
14397 exit 0 ;;
14398 -help | --help | --hel | --he | --h)
14399 echo "\$ac_cs_usage"; exit 0 ;;
14400 *) echo "\$ac_cs_usage"; exit 1 ;;
14401 esac
14402 done
14404 ac_given_srcdir=$srcdir
14405 ac_given_INSTALL="$INSTALL"
14407 trap 'rm -fr `echo "include/stamp-h Makefile script/findsmb include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
14409 cat >> $CONFIG_STATUS <<EOF
14411 # Protect against being on the right side of a sed subst in config.status.
14412 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
14413 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
14414 $ac_vpsub
14415 $extrasub
14416 s%@SHELL@%$SHELL%g
14417 s%@CFLAGS@%$CFLAGS%g
14418 s%@CPPFLAGS@%$CPPFLAGS%g
14419 s%@CXXFLAGS@%$CXXFLAGS%g
14420 s%@FFLAGS@%$FFLAGS%g
14421 s%@DEFS@%$DEFS%g
14422 s%@LDFLAGS@%$LDFLAGS%g
14423 s%@LIBS@%$LIBS%g
14424 s%@exec_prefix@%$exec_prefix%g
14425 s%@prefix@%$prefix%g
14426 s%@program_transform_name@%$program_transform_name%g
14427 s%@bindir@%$bindir%g
14428 s%@sbindir@%$sbindir%g
14429 s%@libexecdir@%$libexecdir%g
14430 s%@datadir@%$datadir%g
14431 s%@sysconfdir@%$sysconfdir%g
14432 s%@sharedstatedir@%$sharedstatedir%g
14433 s%@localstatedir@%$localstatedir%g
14434 s%@libdir@%$libdir%g
14435 s%@includedir@%$includedir%g
14436 s%@oldincludedir@%$oldincludedir%g
14437 s%@infodir@%$infodir%g
14438 s%@mandir@%$mandir%g
14439 s%@codepagedir@%$codepagedir%g
14440 s%@configdir@%$configdir%g
14441 s%@lockdir@%$lockdir%g
14442 s%@piddir@%$piddir%g
14443 s%@logfilebase@%$logfilebase%g
14444 s%@privatedir@%$privatedir%g
14445 s%@swatdir@%$swatdir%g
14446 s%@RUNPROG@%$RUNPROG%g
14447 s%@MPROGS@%$MPROGS%g
14448 s%@LDSHFLAGS@%$LDSHFLAGS%g
14449 s%@SONAMEFLAG@%$SONAMEFLAG%g
14450 s%@SHLD@%$SHLD%g
14451 s%@HOST_OS@%$HOST_OS%g
14452 s%@PAM_MOD@%$PAM_MOD%g
14453 s%@PDBEDIT@%$PDBEDIT%g
14454 s%@WRAP@%$WRAP%g
14455 s%@WRAP32@%$WRAP32%g
14456 s%@WRAPPROG@%$WRAPPROG%g
14457 s%@PICFLAG@%$PICFLAG%g
14458 s%@PICSUFFIX@%$PICSUFFIX%g
14459 s%@SHLIBEXT@%$SHLIBEXT%g
14460 s%@BLDSHARED@%$BLDSHARED%g
14461 s%@INSTALLCLIENTCMD_SH@%$INSTALLCLIENTCMD_SH%g
14462 s%@INSTALLCLIENTCMD_A@%$INSTALLCLIENTCMD_A%g
14463 s%@LIBSMBCLIENT_SHARED@%$LIBSMBCLIENT_SHARED%g
14464 s%@LIBSMBCLIENT@%$LIBSMBCLIENT%g
14465 s%@CC@%$CC%g
14466 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
14467 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
14468 s%@INSTALL_DATA@%$INSTALL_DATA%g
14469 s%@AWK@%$AWK%g
14470 s%@passwd_program@%$passwd_program%g
14471 s%@BROKEN_CC@%$BROKEN_CC%g
14472 s%@host@%$host%g
14473 s%@host_alias@%$host_alias%g
14474 s%@host_cpu@%$host_cpu%g
14475 s%@host_vendor@%$host_vendor%g
14476 s%@host_os@%$host_os%g
14477 s%@target@%$target%g
14478 s%@target_alias@%$target_alias%g
14479 s%@target_cpu@%$target_cpu%g
14480 s%@target_vendor@%$target_vendor%g
14481 s%@target_os@%$target_os%g
14482 s%@build@%$build%g
14483 s%@build_alias@%$build_alias%g
14484 s%@build_cpu@%$build_cpu%g
14485 s%@build_vendor@%$build_vendor%g
14486 s%@build_os@%$build_os%g
14487 s%@CPP@%$CPP%g
14488 s%@CUPS_CONFIG@%$CUPS_CONFIG%g
14489 s%@LIBOBJS@%$LIBOBJS%g
14490 s%@TERMLIBS@%$TERMLIBS%g
14491 s%@TERMLDFLAGS@%$TERMLDFLAGS%g
14492 s%@ROFF@%$ROFF%g
14493 s%@DYNEXP@%$DYNEXP%g
14494 s%@LDAPLIBS@%$LDAPLIBS%g
14495 s%@QUOTAOBJS@%$QUOTAOBJS%g
14496 s%@WINBIND_TARGETS@%$WINBIND_TARGETS%g
14497 s%@WINBIND_STARGETS@%$WINBIND_STARGETS%g
14498 s%@WINBIND_LTARGETS@%$WINBIND_LTARGETS%g
14499 s%@WINBIND_PAM_TARGETS@%$WINBIND_PAM_TARGETS%g
14500 s%@WINBIND_NSS_EXTRA_OBJS@%$WINBIND_NSS_EXTRA_OBJS%g
14501 s%@WINBIND_NSS_EXTRA_LIBS@%$WINBIND_NSS_EXTRA_LIBS%g
14502 s%@BUILD_POPT@%$BUILD_POPT%g
14503 s%@FLAGS1@%$FLAGS1%g
14504 s%@builddir@%$builddir%g
14506 CEOF
14509 cat >> $CONFIG_STATUS <<\EOF
14511 # Split the substitutions into bite-sized pieces for seds with
14512 # small command number limits, like on Digital OSF/1 and HP-UX.
14513 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
14514 ac_file=1 # Number of current file.
14515 ac_beg=1 # First line for current file.
14516 ac_end=$ac_max_sed_cmds # Line after last line for current file.
14517 ac_more_lines=:
14518 ac_sed_cmds=""
14519 while $ac_more_lines; do
14520 if test $ac_beg -gt 1; then
14521 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
14522 else
14523 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
14525 if test ! -s conftest.s$ac_file; then
14526 ac_more_lines=false
14527 rm -f conftest.s$ac_file
14528 else
14529 if test -z "$ac_sed_cmds"; then
14530 ac_sed_cmds="sed -f conftest.s$ac_file"
14531 else
14532 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
14534 ac_file=`expr $ac_file + 1`
14535 ac_beg=$ac_end
14536 ac_end=`expr $ac_end + $ac_max_sed_cmds`
14538 done
14539 if test -z "$ac_sed_cmds"; then
14540 ac_sed_cmds=cat
14544 cat >> $CONFIG_STATUS <<EOF
14546 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile script/findsmb"}
14548 cat >> $CONFIG_STATUS <<\EOF
14549 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
14550 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14551 case "$ac_file" in
14552 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
14553 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14554 *) ac_file_in="${ac_file}.in" ;;
14555 esac
14557 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
14559 # Remove last slash and all that follows it. Not all systems have dirname.
14560 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
14561 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
14562 # The file is in a subdirectory.
14563 test ! -d "$ac_dir" && mkdir "$ac_dir"
14564 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
14565 # A "../" for each directory in $ac_dir_suffix.
14566 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
14567 else
14568 ac_dir_suffix= ac_dots=
14571 case "$ac_given_srcdir" in
14572 .) srcdir=.
14573 if test -z "$ac_dots"; then top_srcdir=.
14574 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
14575 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
14576 *) # Relative path.
14577 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
14578 top_srcdir="$ac_dots$ac_given_srcdir" ;;
14579 esac
14581 case "$ac_given_INSTALL" in
14582 [/$]*) INSTALL="$ac_given_INSTALL" ;;
14583 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
14584 esac
14586 echo creating "$ac_file"
14587 rm -f "$ac_file"
14588 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
14589 case "$ac_file" in
14590 *Makefile*) ac_comsub="1i\\
14591 # $configure_input" ;;
14592 *) ac_comsub= ;;
14593 esac
14595 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
14596 sed -e "$ac_comsub
14597 s%@configure_input@%$configure_input%g
14598 s%@srcdir@%$srcdir%g
14599 s%@top_srcdir@%$top_srcdir%g
14600 s%@INSTALL@%$INSTALL%g
14601 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
14602 fi; done
14603 rm -f conftest.s*
14605 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14606 # NAME is the cpp macro being defined and VALUE is the value it is being given.
14608 # ac_d sets the value in "#define NAME VALUE" lines.
14609 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14610 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
14611 ac_dC='\3'
14612 ac_dD='%g'
14613 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
14614 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14615 ac_uB='\([ ]\)%\1#\2define\3'
14616 ac_uC=' '
14617 ac_uD='\4%g'
14618 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14619 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14620 ac_eB='$%\1#\2define\3'
14621 ac_eC=' '
14622 ac_eD='%g'
14624 if test "${CONFIG_HEADERS+set}" != set; then
14626 cat >> $CONFIG_STATUS <<EOF
14627 CONFIG_HEADERS="include/config.h"
14629 cat >> $CONFIG_STATUS <<\EOF
14631 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
14632 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14633 case "$ac_file" in
14634 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
14635 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14636 *) ac_file_in="${ac_file}.in" ;;
14637 esac
14639 echo creating $ac_file
14641 rm -f conftest.frag conftest.in conftest.out
14642 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
14643 cat $ac_file_inputs > conftest.in
14647 # Transform confdefs.h into a sed script conftest.vals that substitutes
14648 # the proper values into config.h.in to produce config.h. And first:
14649 # Protect against being on the right side of a sed subst in config.status.
14650 # Protect against being in an unquoted here document in config.status.
14651 rm -f conftest.vals
14652 cat > conftest.hdr <<\EOF
14653 s/[\\&%]/\\&/g
14654 s%[\\$`]%\\&%g
14655 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
14656 s%ac_d%ac_u%gp
14657 s%ac_u%ac_e%gp
14659 sed -n -f conftest.hdr confdefs.h > conftest.vals
14660 rm -f conftest.hdr
14662 # This sed command replaces #undef with comments. This is necessary, for
14663 # example, in the case of _POSIX_SOURCE, which is predefined and required
14664 # on some systems where configure will not decide to define it.
14665 cat >> conftest.vals <<\EOF
14666 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
14669 # Break up conftest.vals because some shells have a limit on
14670 # the size of here documents, and old seds have small limits too.
14672 rm -f conftest.tail
14673 while :
14675 ac_lines=`grep -c . conftest.vals`
14676 # grep -c gives empty output for an empty file on some AIX systems.
14677 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
14678 # Write a limited-size here document to conftest.frag.
14679 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
14680 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
14681 echo 'CEOF
14682 sed -f conftest.frag conftest.in > conftest.out
14683 rm -f conftest.in
14684 mv conftest.out conftest.in
14685 ' >> $CONFIG_STATUS
14686 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
14687 rm -f conftest.vals
14688 mv conftest.tail conftest.vals
14689 done
14690 rm -f conftest.vals
14692 cat >> $CONFIG_STATUS <<\EOF
14693 rm -f conftest.frag conftest.h
14694 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
14695 cat conftest.in >> conftest.h
14696 rm -f conftest.in
14697 if cmp -s $ac_file conftest.h 2>/dev/null; then
14698 echo "$ac_file is unchanged"
14699 rm -f conftest.h
14700 else
14701 # Remove last slash and all that follows it. Not all systems have dirname.
14702 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
14703 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
14704 # The file is in a subdirectory.
14705 test ! -d "$ac_dir" && mkdir "$ac_dir"
14707 rm -f $ac_file
14708 mv conftest.h $ac_file
14710 fi; done
14713 cat >> $CONFIG_STATUS <<EOF
14716 cat >> $CONFIG_STATUS <<\EOF
14718 exit 0
14720 chmod +x $CONFIG_STATUS
14721 rm -fr confdefs* $ac_clean_files
14722 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1