removed -lresolv for --enable-ldapsam is present; should be included by -lsasl (neede...
[Samba.git] / source / configure
blobc5076a62cc11372b8afb539a5d4d4ec34e24b419
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-winbind Build winbind (default, if supported by OS)"
85 ac_help="$ac_help
86 --with-winbind-auth-challenge Enable winbindd_pam_auth_crap() functionality (default no)"
87 ac_help="$ac_help
88 --with-winbind-ldap-hack Enable winbindd_ldap_hack() functionality (default no)"
89 ac_help="$ac_help
90 --with-included-popt use bundled popt library, not from system"
92 # Initialize some variables set by options.
93 # The variables have the same names as the options, with
94 # dashes changed to underlines.
95 build=NONE
96 cache_file=./config.cache
97 exec_prefix=NONE
98 host=NONE
99 no_create=
100 nonopt=NONE
101 no_recursion=
102 prefix=NONE
103 program_prefix=NONE
104 program_suffix=NONE
105 program_transform_name=s,x,x,
106 silent=
107 site=
108 srcdir=
109 target=NONE
110 verbose=
111 x_includes=NONE
112 x_libraries=NONE
113 bindir='${exec_prefix}/bin'
114 sbindir='${exec_prefix}/sbin'
115 libexecdir='${exec_prefix}/libexec'
116 datadir='${prefix}/share'
117 sysconfdir='${prefix}/etc'
118 sharedstatedir='${prefix}/com'
119 localstatedir='${prefix}/var'
120 libdir='${exec_prefix}/lib'
121 includedir='${prefix}/include'
122 oldincludedir='/usr/include'
123 infodir='${prefix}/info'
124 mandir='${prefix}/man'
126 # Initialize some other variables.
127 subdirs=
128 MFLAGS= MAKEFLAGS=
129 SHELL=${CONFIG_SHELL-/bin/sh}
130 # Maximum number of lines to put in a shell here document.
131 ac_max_here_lines=12
133 ac_prev=
134 for ac_option
137 # If the previous option needs an argument, assign it.
138 if test -n "$ac_prev"; then
139 eval "$ac_prev=\$ac_option"
140 ac_prev=
141 continue
144 case "$ac_option" in
145 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
146 *) ac_optarg= ;;
147 esac
149 # Accept the important Cygnus configure options, so we can diagnose typos.
151 case "$ac_option" in
153 -bindir | --bindir | --bindi | --bind | --bin | --bi)
154 ac_prev=bindir ;;
155 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
156 bindir="$ac_optarg" ;;
158 -build | --build | --buil | --bui | --bu)
159 ac_prev=build ;;
160 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
161 build="$ac_optarg" ;;
163 -cache-file | --cache-file | --cache-fil | --cache-fi \
164 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
165 ac_prev=cache_file ;;
166 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
167 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
168 cache_file="$ac_optarg" ;;
170 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
171 ac_prev=datadir ;;
172 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
173 | --da=*)
174 datadir="$ac_optarg" ;;
176 -disable-* | --disable-*)
177 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
178 # Reject names that are not valid shell variable names.
179 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
180 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
182 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
183 eval "enable_${ac_feature}=no" ;;
185 -enable-* | --enable-*)
186 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
187 # Reject names that are not valid shell variable names.
188 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
189 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
191 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
192 case "$ac_option" in
193 *=*) ;;
194 *) ac_optarg=yes ;;
195 esac
196 eval "enable_${ac_feature}='$ac_optarg'" ;;
198 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
199 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
200 | --exec | --exe | --ex)
201 ac_prev=exec_prefix ;;
202 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
203 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
204 | --exec=* | --exe=* | --ex=*)
205 exec_prefix="$ac_optarg" ;;
207 -gas | --gas | --ga | --g)
208 # Obsolete; use --with-gas.
209 with_gas=yes ;;
211 -help | --help | --hel | --he)
212 # Omit some internal or obsolete options to make the list less imposing.
213 # This message is too long to be a string in the A/UX 3.1 sh.
214 cat << EOF
215 Usage: configure [options] [host]
216 Options: [defaults in brackets after descriptions]
217 Configuration:
218 --cache-file=FILE cache test results in FILE
219 --help print this message
220 --no-create do not create output files
221 --quiet, --silent do not print \`checking...' messages
222 --version print the version of autoconf that created configure
223 Directory and file names:
224 --prefix=PREFIX install architecture-independent files in PREFIX
225 [$ac_default_prefix]
226 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
227 [same as prefix]
228 --bindir=DIR user executables in DIR [EPREFIX/bin]
229 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
230 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
231 --datadir=DIR read-only architecture-independent data in DIR
232 [PREFIX/share]
233 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
234 --sharedstatedir=DIR modifiable architecture-independent data in DIR
235 [PREFIX/com]
236 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
237 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
238 --includedir=DIR C header files in DIR [PREFIX/include]
239 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
240 --infodir=DIR info documentation in DIR [PREFIX/info]
241 --mandir=DIR man documentation in DIR [PREFIX/man]
242 --srcdir=DIR find the sources in DIR [configure dir or ..]
243 --program-prefix=PREFIX prepend PREFIX to installed program names
244 --program-suffix=SUFFIX append SUFFIX to installed program names
245 --program-transform-name=PROGRAM
246 run sed PROGRAM on installed program names
248 cat << EOF
249 Host type:
250 --build=BUILD configure for building on BUILD [BUILD=HOST]
251 --host=HOST configure for HOST [guessed]
252 --target=TARGET configure for TARGET [TARGET=HOST]
253 Features and packages:
254 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
255 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
256 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
257 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
258 --x-includes=DIR X include files are in DIR
259 --x-libraries=DIR X library files are in DIR
261 if test -n "$ac_help"; then
262 echo "--enable and --with options recognized:$ac_help"
264 exit 0 ;;
266 -host | --host | --hos | --ho)
267 ac_prev=host ;;
268 -host=* | --host=* | --hos=* | --ho=*)
269 host="$ac_optarg" ;;
271 -includedir | --includedir | --includedi | --included | --include \
272 | --includ | --inclu | --incl | --inc)
273 ac_prev=includedir ;;
274 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
275 | --includ=* | --inclu=* | --incl=* | --inc=*)
276 includedir="$ac_optarg" ;;
278 -infodir | --infodir | --infodi | --infod | --info | --inf)
279 ac_prev=infodir ;;
280 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
281 infodir="$ac_optarg" ;;
283 -libdir | --libdir | --libdi | --libd)
284 ac_prev=libdir ;;
285 -libdir=* | --libdir=* | --libdi=* | --libd=*)
286 libdir="$ac_optarg" ;;
288 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
289 | --libexe | --libex | --libe)
290 ac_prev=libexecdir ;;
291 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
292 | --libexe=* | --libex=* | --libe=*)
293 libexecdir="$ac_optarg" ;;
295 -localstatedir | --localstatedir | --localstatedi | --localstated \
296 | --localstate | --localstat | --localsta | --localst \
297 | --locals | --local | --loca | --loc | --lo)
298 ac_prev=localstatedir ;;
299 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
300 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
301 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
302 localstatedir="$ac_optarg" ;;
304 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
305 ac_prev=mandir ;;
306 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
307 mandir="$ac_optarg" ;;
309 -nfp | --nfp | --nf)
310 # Obsolete; use --without-fp.
311 with_fp=no ;;
313 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
314 | --no-cr | --no-c)
315 no_create=yes ;;
317 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
318 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
319 no_recursion=yes ;;
321 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
322 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
323 | --oldin | --oldi | --old | --ol | --o)
324 ac_prev=oldincludedir ;;
325 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
326 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
327 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
328 oldincludedir="$ac_optarg" ;;
330 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
331 ac_prev=prefix ;;
332 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
333 prefix="$ac_optarg" ;;
335 -program-prefix | --program-prefix | --program-prefi | --program-pref \
336 | --program-pre | --program-pr | --program-p)
337 ac_prev=program_prefix ;;
338 -program-prefix=* | --program-prefix=* | --program-prefi=* \
339 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
340 program_prefix="$ac_optarg" ;;
342 -program-suffix | --program-suffix | --program-suffi | --program-suff \
343 | --program-suf | --program-su | --program-s)
344 ac_prev=program_suffix ;;
345 -program-suffix=* | --program-suffix=* | --program-suffi=* \
346 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
347 program_suffix="$ac_optarg" ;;
349 -program-transform-name | --program-transform-name \
350 | --program-transform-nam | --program-transform-na \
351 | --program-transform-n | --program-transform- \
352 | --program-transform | --program-transfor \
353 | --program-transfo | --program-transf \
354 | --program-trans | --program-tran \
355 | --progr-tra | --program-tr | --program-t)
356 ac_prev=program_transform_name ;;
357 -program-transform-name=* | --program-transform-name=* \
358 | --program-transform-nam=* | --program-transform-na=* \
359 | --program-transform-n=* | --program-transform-=* \
360 | --program-transform=* | --program-transfor=* \
361 | --program-transfo=* | --program-transf=* \
362 | --program-trans=* | --program-tran=* \
363 | --progr-tra=* | --program-tr=* | --program-t=*)
364 program_transform_name="$ac_optarg" ;;
366 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
367 | -silent | --silent | --silen | --sile | --sil)
368 silent=yes ;;
370 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
371 ac_prev=sbindir ;;
372 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
373 | --sbi=* | --sb=*)
374 sbindir="$ac_optarg" ;;
376 -sharedstatedir | --sharedstatedir | --sharedstatedi \
377 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
378 | --sharedst | --shareds | --shared | --share | --shar \
379 | --sha | --sh)
380 ac_prev=sharedstatedir ;;
381 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
382 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
383 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
384 | --sha=* | --sh=*)
385 sharedstatedir="$ac_optarg" ;;
387 -site | --site | --sit)
388 ac_prev=site ;;
389 -site=* | --site=* | --sit=*)
390 site="$ac_optarg" ;;
392 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
393 ac_prev=srcdir ;;
394 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
395 srcdir="$ac_optarg" ;;
397 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
398 | --syscon | --sysco | --sysc | --sys | --sy)
399 ac_prev=sysconfdir ;;
400 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
401 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
402 sysconfdir="$ac_optarg" ;;
404 -target | --target | --targe | --targ | --tar | --ta | --t)
405 ac_prev=target ;;
406 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
407 target="$ac_optarg" ;;
409 -v | -verbose | --verbose | --verbos | --verbo | --verb)
410 verbose=yes ;;
412 -version | --version | --versio | --versi | --vers)
413 echo "configure generated by autoconf version 2.13"
414 exit 0 ;;
416 -with-* | --with-*)
417 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
418 # Reject names that are not valid shell variable names.
419 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
420 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
422 ac_package=`echo $ac_package| sed 's/-/_/g'`
423 case "$ac_option" in
424 *=*) ;;
425 *) ac_optarg=yes ;;
426 esac
427 eval "with_${ac_package}='$ac_optarg'" ;;
429 -without-* | --without-*)
430 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
431 # Reject names that are not valid shell variable names.
432 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
433 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
435 ac_package=`echo $ac_package| sed 's/-/_/g'`
436 eval "with_${ac_package}=no" ;;
438 --x)
439 # Obsolete; use --with-x.
440 with_x=yes ;;
442 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
443 | --x-incl | --x-inc | --x-in | --x-i)
444 ac_prev=x_includes ;;
445 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
446 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
447 x_includes="$ac_optarg" ;;
449 -x-libraries | --x-libraries | --x-librarie | --x-librari \
450 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
451 ac_prev=x_libraries ;;
452 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
453 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
454 x_libraries="$ac_optarg" ;;
456 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
460 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
461 echo "configure: warning: $ac_option: invalid host type" 1>&2
463 if test "x$nonopt" != xNONE; then
464 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
466 nonopt="$ac_option"
469 esac
470 done
472 if test -n "$ac_prev"; then
473 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
476 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
478 # File descriptor usage:
479 # 0 standard input
480 # 1 file creation
481 # 2 errors and warnings
482 # 3 some systems may open it to /dev/tty
483 # 4 used on the Kubota Titan
484 # 6 checking for... messages and results
485 # 5 compiler messages saved in config.log
486 if test "$silent" = yes; then
487 exec 6>/dev/null
488 else
489 exec 6>&1
491 exec 5>./config.log
493 echo "\
494 This file contains any messages produced by compilers while
495 running configure, to aid debugging if configure makes a mistake.
496 " 1>&5
498 # Strip out --no-create and --no-recursion so they do not pile up.
499 # Also quote any args containing shell metacharacters.
500 ac_configure_args=
501 for ac_arg
503 case "$ac_arg" in
504 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
505 | --no-cr | --no-c) ;;
506 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
507 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
508 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
509 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
510 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
511 esac
512 done
514 # NLS nuisances.
515 # Only set these to C if already set. These must not be set unconditionally
516 # because not all systems understand e.g. LANG=C (notably SCO).
517 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
518 # Non-C LC_CTYPE values break the ctype check.
519 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
520 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
521 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
522 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
524 # confdefs.h avoids OS command line length limits that DEFS can exceed.
525 rm -rf conftest* confdefs.h
526 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
527 echo > confdefs.h
529 # A filename unique to this package, relative to the directory that
530 # configure is in, which we can look for to find out if srcdir is correct.
531 ac_unique_file=include/includes.h
533 # Find the source files, if location was not specified.
534 if test -z "$srcdir"; then
535 ac_srcdir_defaulted=yes
536 # Try the directory containing this script, then its parent.
537 ac_prog=$0
538 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
539 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
540 srcdir=$ac_confdir
541 if test ! -r $srcdir/$ac_unique_file; then
542 srcdir=..
544 else
545 ac_srcdir_defaulted=no
547 if test ! -r $srcdir/$ac_unique_file; then
548 if test "$ac_srcdir_defaulted" = yes; then
549 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
550 else
551 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
554 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
556 # Prefer explicitly selected file to automatically selected ones.
557 if test -z "$CONFIG_SITE"; then
558 if test "x$prefix" != xNONE; then
559 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
560 else
561 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
564 for ac_site_file in $CONFIG_SITE; do
565 if test -r "$ac_site_file"; then
566 echo "loading site script $ac_site_file"
567 . "$ac_site_file"
569 done
571 if test -r "$cache_file"; then
572 echo "loading cache $cache_file"
573 . $cache_file
574 else
575 echo "creating cache $cache_file"
576 > $cache_file
579 ac_ext=c
580 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
581 ac_cpp='$CPP $CPPFLAGS'
582 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
583 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
584 cross_compiling=$ac_cv_prog_cc_cross
586 ac_exeext=
587 ac_objext=o
588 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
589 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
590 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
591 ac_n= ac_c='
592 ' ac_t=' '
593 else
594 ac_n=-n ac_c= ac_t=
596 else
597 ac_n= ac_c='\c' ac_t=
603 #################################################
604 # Directory handling stuff to support both the
605 # legacy SAMBA directories and FHS compliant
606 # ones...
609 # Check whether --with-fhs or --without-fhs was given.
610 if test "${with_fhs+set}" = set; then
611 withval="$with_fhs"
612 codepagedir="\$(DATADIR)/samba/codepages"
613 configdir="${sysconfdir}/samba"
614 lockdir="\${VARDIR}/cache/samba"
615 piddir="\$(VARDIR)/run/samba"
616 logfilebase="\${VARDIR}/log/samba"
617 privatedir="\${CONFIGDIR}/private"
618 swatdir="\${DATADIR}/samba/swat"
619 else
620 codepagedir="\$(LIBDIR)/codepages"
621 configdir="\$(LIBDIR)"
622 logfilebase="\$(VARDIR)"
623 lockdir="\${VARDIR}/locks"
624 piddir="\$(VARDIR)/locks"
625 privatedir="\${prefix}/private"
626 swatdir="\${prefix}/swat"
630 #################################################
631 # set private directory location
632 # Check whether --with-privatedir or --without-privatedir was given.
633 if test "${with_privatedir+set}" = set; then
634 withval="$with_privatedir"
635 case "$withval" in
636 yes|no)
638 # Just in case anybody calls it without argument
640 echo "configure: warning: --with-privatedir called without argument - will use default" 1>&2
643 privatedir="$withval"
645 esac
649 #################################################
650 # set lock directory location
651 # Check whether --with-lockdir or --without-lockdir was given.
652 if test "${with_lockdir+set}" = set; then
653 withval="$with_lockdir"
654 case "$withval" in
655 yes|no)
657 # Just in case anybody calls it without argument
659 echo "configure: warning: --with-lockdir called without argument - will use default" 1>&2
662 lockdir="$withval"
664 esac
668 #################################################
669 # set pid directory location
670 # Check whether --with-piddir or --without-piddir was given.
671 if test "${with_piddir+set}" = set; then
672 withval="$with_piddir"
673 case "$withval" in
674 yes|no)
676 # Just in case anybody calls it without argument
678 echo "configure: warning: --with-piddir called without argument - will use default" 1>&2
681 piddir="$withval"
683 esac
687 #################################################
688 # set SWAT directory location
689 # Check whether --with-swatdir or --without-swatdir was given.
690 if test "${with_swatdir+set}" = set; then
691 withval="$with_swatdir"
692 case "$withval" in
693 yes|no)
695 # Just in case anybody does it
697 echo "configure: warning: --with-swatdir called without argument - will use default" 1>&2
700 swatdir="$withval"
702 esac
706 #################################################
707 # set configuration directory location
708 # Check whether --with-configdir or --without-configdir was given.
709 if test "${with_configdir+set}" = set; then
710 withval="$with_configdir"
711 case "$withval" in
712 yes|no)
714 # Just in case anybody does it
716 echo "configure: warning: --with-configdir called without argument - will use default" 1>&2
719 configdir="$withval"
721 esac
725 #################################################
726 # set codepage directory location
727 # Check whether --with-codepagedir or --without-codepagedir was given.
728 if test "${with_codepagedir+set}" = set; then
729 withval="$with_codepagedir"
730 case "$withval" in
731 yes|no)
733 # Just in case anybody does it
735 echo "configure: warning: --with-codepagedir called without argument - will use default" 1>&2
738 codepagedir="$withval"
740 esac
744 #################################################
745 # set log directory location
746 # Check whether --with-logfilebase or --without-logfilebase was given.
747 if test "${with_logfilebase+set}" = set; then
748 withval="$with_logfilebase"
749 case "$withval" in
750 yes|no)
752 # Just in case anybody does it
754 echo "configure: warning: --with-logfilebase called without argument - will use default" 1>&2
757 logfilebase="$withval"
759 esac
792 # compile with optimization and without debugging by default
793 CFLAGS="-O ${CFLAGS}"
795 # Check whether --enable-debug or --disable-debug was given.
796 if test "${enable_debug+set}" = set; then
797 enableval="$enable_debug"
798 if eval "test x$enable_debug = xyes"; then
799 CFLAGS="${CFLAGS} -g"
806 # Extract the first word of "gcc", so it can be a program name with args.
807 set dummy gcc; ac_word=$2
808 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
809 echo "configure:810: checking for $ac_word" >&5
810 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
811 echo $ac_n "(cached) $ac_c" 1>&6
812 else
813 if test -n "$CC"; then
814 ac_cv_prog_CC="$CC" # Let the user override the test.
815 else
816 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
817 ac_dummy="$PATH"
818 for ac_dir in $ac_dummy; do
819 test -z "$ac_dir" && ac_dir=.
820 if test -f $ac_dir/$ac_word; then
821 ac_cv_prog_CC="gcc"
822 break
824 done
825 IFS="$ac_save_ifs"
828 CC="$ac_cv_prog_CC"
829 if test -n "$CC"; then
830 echo "$ac_t""$CC" 1>&6
831 else
832 echo "$ac_t""no" 1>&6
835 if test -z "$CC"; then
836 # Extract the first word of "cc", so it can be a program name with args.
837 set dummy cc; ac_word=$2
838 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
839 echo "configure:840: checking for $ac_word" >&5
840 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
841 echo $ac_n "(cached) $ac_c" 1>&6
842 else
843 if test -n "$CC"; then
844 ac_cv_prog_CC="$CC" # Let the user override the test.
845 else
846 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
847 ac_prog_rejected=no
848 ac_dummy="$PATH"
849 for ac_dir in $ac_dummy; do
850 test -z "$ac_dir" && ac_dir=.
851 if test -f $ac_dir/$ac_word; then
852 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
853 ac_prog_rejected=yes
854 continue
856 ac_cv_prog_CC="cc"
857 break
859 done
860 IFS="$ac_save_ifs"
861 if test $ac_prog_rejected = yes; then
862 # We found a bogon in the path, so make sure we never use it.
863 set dummy $ac_cv_prog_CC
864 shift
865 if test $# -gt 0; then
866 # We chose a different compiler from the bogus one.
867 # However, it has the same basename, so the bogon will be chosen
868 # first if we set CC to just the basename; use the full file name.
869 shift
870 set dummy "$ac_dir/$ac_word" "$@"
871 shift
872 ac_cv_prog_CC="$@"
877 CC="$ac_cv_prog_CC"
878 if test -n "$CC"; then
879 echo "$ac_t""$CC" 1>&6
880 else
881 echo "$ac_t""no" 1>&6
884 if test -z "$CC"; then
885 case "`uname -s`" in
886 *win32* | *WIN32*)
887 # Extract the first word of "cl", so it can be a program name with args.
888 set dummy cl; ac_word=$2
889 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
890 echo "configure:891: checking for $ac_word" >&5
891 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
892 echo $ac_n "(cached) $ac_c" 1>&6
893 else
894 if test -n "$CC"; then
895 ac_cv_prog_CC="$CC" # Let the user override the test.
896 else
897 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
898 ac_dummy="$PATH"
899 for ac_dir in $ac_dummy; do
900 test -z "$ac_dir" && ac_dir=.
901 if test -f $ac_dir/$ac_word; then
902 ac_cv_prog_CC="cl"
903 break
905 done
906 IFS="$ac_save_ifs"
909 CC="$ac_cv_prog_CC"
910 if test -n "$CC"; then
911 echo "$ac_t""$CC" 1>&6
912 else
913 echo "$ac_t""no" 1>&6
916 esac
918 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
921 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
922 echo "configure:923: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
924 ac_ext=c
925 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
926 ac_cpp='$CPP $CPPFLAGS'
927 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
928 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
929 cross_compiling=$ac_cv_prog_cc_cross
931 cat > conftest.$ac_ext << EOF
933 #line 934 "configure"
934 #include "confdefs.h"
936 main(){return(0);}
938 if { (eval echo configure:939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
939 ac_cv_prog_cc_works=yes
940 # If we can't run a trivial program, we are probably using a cross compiler.
941 if (./conftest; exit) 2>/dev/null; then
942 ac_cv_prog_cc_cross=no
943 else
944 ac_cv_prog_cc_cross=yes
946 else
947 echo "configure: failed program was:" >&5
948 cat conftest.$ac_ext >&5
949 ac_cv_prog_cc_works=no
951 rm -fr conftest*
952 ac_ext=c
953 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
954 ac_cpp='$CPP $CPPFLAGS'
955 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
956 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
957 cross_compiling=$ac_cv_prog_cc_cross
959 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
960 if test $ac_cv_prog_cc_works = no; then
961 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
963 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
964 echo "configure:965: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
965 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
966 cross_compiling=$ac_cv_prog_cc_cross
968 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
969 echo "configure:970: checking whether we are using GNU C" >&5
970 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
971 echo $ac_n "(cached) $ac_c" 1>&6
972 else
973 cat > conftest.c <<EOF
974 #ifdef __GNUC__
975 yes;
976 #endif
978 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:979: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
979 ac_cv_prog_gcc=yes
980 else
981 ac_cv_prog_gcc=no
985 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
987 if test $ac_cv_prog_gcc = yes; then
988 GCC=yes
989 else
990 GCC=
993 ac_test_CFLAGS="${CFLAGS+set}"
994 ac_save_CFLAGS="$CFLAGS"
995 CFLAGS=
996 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
997 echo "configure:998: checking whether ${CC-cc} accepts -g" >&5
998 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
999 echo $ac_n "(cached) $ac_c" 1>&6
1000 else
1001 echo 'void f(){}' > conftest.c
1002 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1003 ac_cv_prog_cc_g=yes
1004 else
1005 ac_cv_prog_cc_g=no
1007 rm -f conftest*
1011 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1012 if test "$ac_test_CFLAGS" = set; then
1013 CFLAGS="$ac_save_CFLAGS"
1014 elif test $ac_cv_prog_cc_g = yes; then
1015 if test "$GCC" = yes; then
1016 CFLAGS="-g -O2"
1017 else
1018 CFLAGS="-g"
1020 else
1021 if test "$GCC" = yes; then
1022 CFLAGS="-O2"
1023 else
1024 CFLAGS=
1028 ac_aux_dir=
1029 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1030 if test -f $ac_dir/install-sh; then
1031 ac_aux_dir=$ac_dir
1032 ac_install_sh="$ac_aux_dir/install-sh -c"
1033 break
1034 elif 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
1039 done
1040 if test -z "$ac_aux_dir"; then
1041 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1043 ac_config_guess=$ac_aux_dir/config.guess
1044 ac_config_sub=$ac_aux_dir/config.sub
1045 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1047 # Find a good install program. We prefer a C program (faster),
1048 # so one script is as good as another. But avoid the broken or
1049 # incompatible versions:
1050 # SysV /etc/install, /usr/sbin/install
1051 # SunOS /usr/etc/install
1052 # IRIX /sbin/install
1053 # AIX /bin/install
1054 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1055 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1056 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1057 # ./install, which can be erroneously created by make from ./install.sh.
1058 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1059 echo "configure:1060: checking for a BSD compatible install" >&5
1060 if test -z "$INSTALL"; then
1061 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1062 echo $ac_n "(cached) $ac_c" 1>&6
1063 else
1064 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1065 for ac_dir in $PATH; do
1066 # Account for people who put trailing slashes in PATH elements.
1067 case "$ac_dir/" in
1068 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1070 # OSF1 and SCO ODT 3.0 have their own names for install.
1071 # Don't use installbsd from OSF since it installs stuff as root
1072 # by default.
1073 for ac_prog in ginstall scoinst install; do
1074 if test -f $ac_dir/$ac_prog; then
1075 if test $ac_prog = install &&
1076 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1077 # AIX install. It has an incompatible calling convention.
1079 else
1080 ac_cv_path_install="$ac_dir/$ac_prog -c"
1081 break 2
1084 done
1086 esac
1087 done
1088 IFS="$ac_save_IFS"
1091 if test "${ac_cv_path_install+set}" = set; then
1092 INSTALL="$ac_cv_path_install"
1093 else
1094 # As a last resort, use the slow shell script. We don't cache a
1095 # path for INSTALL within a source directory, because that will
1096 # break other packages using the cache if that directory is
1097 # removed, or if the path is relative.
1098 INSTALL="$ac_install_sh"
1101 echo "$ac_t""$INSTALL" 1>&6
1103 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1104 # It thinks the first close brace ends the variable substitution.
1105 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1107 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1109 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1111 for ac_prog in gawk mawk nawk awk
1113 # Extract the first word of "$ac_prog", so it can be a program name with args.
1114 set dummy $ac_prog; ac_word=$2
1115 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1116 echo "configure:1117: checking for $ac_word" >&5
1117 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1118 echo $ac_n "(cached) $ac_c" 1>&6
1119 else
1120 if test -n "$AWK"; then
1121 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1122 else
1123 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1124 ac_dummy="$PATH"
1125 for ac_dir in $ac_dummy; do
1126 test -z "$ac_dir" && ac_dir=.
1127 if test -f $ac_dir/$ac_word; then
1128 ac_cv_prog_AWK="$ac_prog"
1129 break
1131 done
1132 IFS="$ac_save_ifs"
1135 AWK="$ac_cv_prog_AWK"
1136 if test -n "$AWK"; then
1137 echo "$ac_t""$AWK" 1>&6
1138 else
1139 echo "$ac_t""no" 1>&6
1142 test -n "$AWK" && break
1143 done
1145 LD=ld
1146 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1147 echo "configure:1148: checking if the linker ($LD) is GNU ld" >&5
1148 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1149 echo $ac_n "(cached) $ac_c" 1>&6
1150 else
1151 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1152 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1153 ac_cv_prog_gnu_ld=yes
1154 else
1155 ac_cv_prog_gnu_ld=no
1159 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1161 # Extract the first word of "passwd", so it can be a program name with args.
1162 set dummy passwd; ac_word=$2
1163 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1164 echo "configure:1165: checking for $ac_word" >&5
1165 if eval "test \"`echo '$''{'ac_cv_path_passwd_program'+set}'`\" = set"; then
1166 echo $ac_n "(cached) $ac_c" 1>&6
1167 else
1168 case "$passwd_program" in
1170 ac_cv_path_passwd_program="$passwd_program" # Let the user override the test with a path.
1172 ?:/*)
1173 ac_cv_path_passwd_program="$passwd_program" # Let the user override the test with a dos path.
1176 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1177 ac_dummy="$PATH"
1178 for ac_dir in $ac_dummy; do
1179 test -z "$ac_dir" && ac_dir=.
1180 if test -f $ac_dir/$ac_word; then
1181 ac_cv_path_passwd_program="$ac_dir/$ac_word"
1182 break
1184 done
1185 IFS="$ac_save_ifs"
1186 test -z "$ac_cv_path_passwd_program" && ac_cv_path_passwd_program="/bin/passwd"
1188 esac
1190 passwd_program="$ac_cv_path_passwd_program"
1191 if test -n "$passwd_program"; then
1192 echo "$ac_t""$passwd_program" 1>&6
1193 else
1194 echo "$ac_t""no" 1>&6
1199 if test "x$CC" != xcc; then
1200 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1201 echo "configure:1202: checking whether $CC and cc understand -c and -o together" >&5
1202 else
1203 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1204 echo "configure:1205: checking whether cc understands -c and -o together" >&5
1206 set dummy $CC; ac_cc="`echo $2 |
1207 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1208 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1209 echo $ac_n "(cached) $ac_c" 1>&6
1210 else
1211 echo 'foo(){}' > conftest.c
1212 # Make sure it works both with $CC and with simple cc.
1213 # We do the test twice because some compilers refuse to overwrite an
1214 # existing .o file with -o, though they will create one.
1215 ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1216 if { (eval echo configure:1217: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1217 test -f conftest.o && { (eval echo configure:1218: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1218 then
1219 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
1220 if test "x$CC" != xcc; then
1221 # Test first that cc exists at all.
1222 if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:1223: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1223 ac_try='cc -c conftest.c -o conftest.o 1>&5'
1224 if { (eval echo configure:1225: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1225 test -f conftest.o && { (eval echo configure:1226: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1226 then
1227 # cc works too.
1229 else
1230 # cc exists but doesn't like -o.
1231 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1235 else
1236 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1238 rm -f conftest*
1241 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1242 echo "$ac_t""yes" 1>&6
1243 else
1244 echo "$ac_t""no" 1>&6
1245 cat >> confdefs.h <<\EOF
1246 #define NO_MINUS_C_MINUS_O 1
1251 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1252 BROKEN_CC=
1253 else
1254 BROKEN_CC=#
1258 echo $ac_n "checking that the C compiler understands volatile""... $ac_c" 1>&6
1259 echo "configure:1260: checking that the C compiler understands volatile" >&5
1260 if eval "test \"`echo '$''{'samba_cv_volatile'+set}'`\" = set"; then
1261 echo $ac_n "(cached) $ac_c" 1>&6
1262 else
1264 cat > conftest.$ac_ext <<EOF
1265 #line 1266 "configure"
1266 #include "confdefs.h"
1267 #include <sys/types.h>
1268 int main() {
1269 volatile int i = 0
1270 ; return 0; }
1272 if { (eval echo configure:1273: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1273 rm -rf conftest*
1274 samba_cv_volatile=yes
1275 else
1276 echo "configure: failed program was:" >&5
1277 cat conftest.$ac_ext >&5
1278 rm -rf conftest*
1279 samba_cv_volatile=no
1281 rm -f conftest*
1284 echo "$ac_t""$samba_cv_volatile" 1>&6
1285 if test x"$samba_cv_volatile" = x"yes"; then
1286 cat >> confdefs.h <<\EOF
1287 #define HAVE_VOLATILE 1
1295 # Do some error checking and defaulting for the host and target type.
1296 # The inputs are:
1297 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1299 # The rules are:
1300 # 1. You are not allowed to specify --host, --target, and nonopt at the
1301 # same time.
1302 # 2. Host defaults to nonopt.
1303 # 3. If nonopt is not specified, then host defaults to the current host,
1304 # as determined by config.guess.
1305 # 4. Target and build default to nonopt.
1306 # 5. If nonopt is not specified, then target and build default to host.
1308 # The aliases save the names the user supplied, while $host etc.
1309 # will get canonicalized.
1310 case $host---$target---$nonopt in
1311 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1312 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1313 esac
1316 # Make sure we can run config.sub.
1317 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1318 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1321 echo $ac_n "checking host system type""... $ac_c" 1>&6
1322 echo "configure:1323: checking host system type" >&5
1324 host_alias=$host
1325 case "$host_alias" in
1326 NONE)
1327 case $nonopt in
1328 NONE)
1329 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1330 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1331 fi ;;
1332 *) host_alias=$nonopt ;;
1333 esac ;;
1334 esac
1336 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1337 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1338 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1339 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1340 echo "$ac_t""$host" 1>&6
1342 echo $ac_n "checking target system type""... $ac_c" 1>&6
1343 echo "configure:1344: checking target system type" >&5
1345 target_alias=$target
1346 case "$target_alias" in
1347 NONE)
1348 case $nonopt in
1349 NONE) target_alias=$host_alias ;;
1350 *) target_alias=$nonopt ;;
1351 esac ;;
1352 esac
1354 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1355 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1356 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1357 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1358 echo "$ac_t""$target" 1>&6
1360 echo $ac_n "checking build system type""... $ac_c" 1>&6
1361 echo "configure:1362: checking build system type" >&5
1363 build_alias=$build
1364 case "$build_alias" in
1365 NONE)
1366 case $nonopt in
1367 NONE) build_alias=$host_alias ;;
1368 *) build_alias=$nonopt ;;
1369 esac ;;
1370 esac
1372 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1373 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1374 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1375 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1376 echo "$ac_t""$build" 1>&6
1378 test "$host_alias" != "$target_alias" &&
1379 test "$program_prefix$program_suffix$program_transform_name" = \
1380 NONENONEs,x,x, &&
1381 program_prefix=${target_alias}-
1384 case "$host_os" in
1385 *irix6*) cat >> confdefs.h <<\EOF
1386 #include <standards.h>
1390 esac
1394 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
1395 echo "configure:1396: checking config.cache system type" >&5
1396 if { test x"${ac_cv_host_system_type+set}" = x"set" &&
1397 test x"$ac_cv_host_system_type" != x"$host"; } ||
1398 { test x"${ac_cv_build_system_type+set}" = x"set" &&
1399 test x"$ac_cv_build_system_type" != x"$build"; } ||
1400 { test x"${ac_cv_target_system_type+set}" = x"set" &&
1401 test x"$ac_cv_target_system_type" != x"$target"; }; then
1402 echo "$ac_t""different" 1>&6
1403 { echo "configure: error: "you must remove config.cache and restart configure"" 1>&2; exit 1; }
1404 else
1405 echo "$ac_t""same" 1>&6
1407 ac_cv_host_system_type="$host"
1408 ac_cv_build_system_type="$build"
1409 ac_cv_target_system_type="$target"
1412 DYNEXP=
1415 # Config CPPFLAG settings for strange OS's that must be set
1416 # before other tests.
1418 case "$host_os" in
1419 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1420 *hpux*)
1421 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1422 echo "configure:1423: checking whether ${CC-cc} accepts -Ae" >&5
1423 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1424 echo $ac_n "(cached) $ac_c" 1>&6
1425 else
1426 echo 'void f(){}' > conftest.c
1427 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1428 ac_cv_prog_cc_Ae=yes
1429 else
1430 ac_cv_prog_cc_Ae=no
1432 rm -f conftest*
1436 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1437 # mmap on HPUX is completely broken...
1438 cat >> confdefs.h <<\EOF
1439 #define MMAP_BLACKLIST 1
1442 if test $ac_cv_prog_cc_Ae = yes; then
1443 CPPFLAGS="$CPPFLAGS -Ae"
1446 # Defines needed for HPUX support.
1447 # HPUX has bigcrypt but (sometimes?) doesn't use it for
1448 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
1450 case `uname -r` in
1451 *9*|*10*)
1452 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4"
1453 cat >> confdefs.h <<\EOF
1454 #define USE_BOTH_CRYPT_CALLS 1
1457 cat >> confdefs.h <<\EOF
1458 #define _HPUX_SOURCE 1
1461 cat >> confdefs.h <<\EOF
1462 #define _POSIX_SOURCE 1
1465 cat >> confdefs.h <<\EOF
1466 #define _ALIGNMENT_REQUIRED 1
1469 cat >> confdefs.h <<\EOF
1470 #define _MAX_ALIGNMENT 4
1474 *11*)
1475 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4"
1476 cat >> confdefs.h <<\EOF
1477 #define _HPUX_SOURCE 1
1480 cat >> confdefs.h <<\EOF
1481 #define _POSIX_SOURCE 1
1484 cat >> confdefs.h <<\EOF
1485 #define _LARGEFILE64_SOURCE 1
1488 cat >> confdefs.h <<\EOF
1489 #define _ALIGNMENT_REQUIRED 1
1492 cat >> confdefs.h <<\EOF
1493 #define _MAX_ALIGNMENT 4
1496 cat >> confdefs.h <<\EOF
1497 #define USE_BOTH_CRYPT_CALLS 1
1501 esac
1502 DYNEXP="-Wl,-E"
1507 # CRAY Unicos has broken const handling
1508 *unicos*)
1509 echo "$ac_t""disabling const" 1>&6
1510 CPPFLAGS="$CPPFLAGS -Dconst="
1514 # AIX4.x doesn't even admit to having large
1515 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1517 *aix4*)
1518 echo "$ac_t""enabling large file support" 1>&6
1519 CPPFLAGS="$CPPFLAGS -D_LARGE_FILES"
1520 cat >> confdefs.h <<\EOF
1521 #define _LARGE_FILES 1
1526 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
1527 # to the existance of large files..
1528 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
1529 # recommendations on large file support, however it makes the
1530 # compile work using gcc 2.7 and 2.8, whereas using the Sun
1531 # recommendation makes the compile fail on gcc2.7. JRA.
1533 *solaris*)
1534 case `uname -r` in
1535 5.0*|5.1*|5.2*|5.3*|5.5*)
1536 echo "$ac_t""no large file support" 1>&6
1538 5.*)
1539 echo "$ac_t""enabling large file support" 1>&6
1540 if test "$ac_cv_prog_gcc" = yes; then
1541 ${CC-cc} -v >conftest.c 2>&1
1542 ac_cv_gcc_compiler_version_number=`grep 'gcc version' conftest.c`
1543 rm -fr conftest.c
1544 case "$ac_cv_gcc_compiler_version_number" in
1545 *"gcc version 2.6"*|*"gcc version 2.7"*)
1546 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
1547 cat >> confdefs.h <<\EOF
1548 #define _LARGEFILE64_SOURCE 1
1553 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1554 cat >> confdefs.h <<\EOF
1555 #define _LARGEFILE64_SOURCE 1
1558 cat >> confdefs.h <<\EOF
1559 #define _FILE_OFFSET_BITS 64
1563 esac
1564 else
1565 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1566 cat >> confdefs.h <<\EOF
1567 #define _LARGEFILE64_SOURCE 1
1570 cat >> confdefs.h <<\EOF
1571 #define _FILE_OFFSET_BITS 64
1576 esac
1579 # Tests needed for SINIX large file support.
1581 *sysv4*)
1582 if test $host = mips-sni-sysv4 ; then
1583 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1584 echo "configure:1585: checking for LFS support" >&5
1585 old_CPPFLAGS="$CPPFLAGS"
1586 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1587 if test "$cross_compiling" = yes; then
1588 SINIX_LFS_SUPPORT=cross
1589 else
1590 cat > conftest.$ac_ext <<EOF
1591 #line 1592 "configure"
1592 #include "confdefs.h"
1594 #include <unistd.h>
1595 main () {
1596 #if _LFS64_LARGEFILE == 1
1597 exit(0);
1598 #else
1599 exit(1);
1600 #endif
1603 if { (eval echo configure:1604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1604 then
1605 SINIX_LFS_SUPPORT=yes
1606 else
1607 echo "configure: failed program was:" >&5
1608 cat conftest.$ac_ext >&5
1609 rm -fr conftest*
1610 SINIX_LFS_SUPPORT=no
1612 rm -fr conftest*
1615 CPPFLAGS="$old_CPPFLAGS"
1616 if test x$SINIX_LFS_SUPPORT = xyes ; then
1617 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1618 cat >> confdefs.h <<\EOF
1619 #define _LARGEFILE64_SOURCE 1
1622 CFLAGS="`getconf LFS64_CFLAGS` $CFLAGS"
1623 LDFLAGS="`getconf LFS64_LDFLAGS` $LDFLAGS"
1624 LIBS="`getconf LFS64_LIBS` $LIBS"
1626 echo "$ac_t""$SINIX_LFS_SUPPORT" 1>&6
1630 # Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
1632 *linux*)
1633 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1634 echo "configure:1635: checking for LFS support" >&5
1635 old_CPPFLAGS="$CPPFLAGS"
1636 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1637 if test "$cross_compiling" = yes; then
1638 LINUX_LFS_SUPPORT=cross
1639 else
1640 cat > conftest.$ac_ext <<EOF
1641 #line 1642 "configure"
1642 #include "confdefs.h"
1644 #include <unistd.h>
1645 #include <sys/utsname.h>
1646 main() {
1647 #if _LFS64_LARGEFILE == 1
1648 struct utsname uts;
1649 char *release;
1650 int major, minor;
1652 /* Ensure this is glibc 2.2 or higher */
1653 #if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
1654 int libc_major = __GLIBC__;
1655 int libc_minor = __GLIBC_MINOR__;
1657 if (libc_major < 2)
1658 exit(1);
1659 if (libc_minor < 2)
1660 exit(1);
1661 #endif
1663 /* Ensure this is kernel 2.4 or higher */
1665 uname(&uts);
1666 release = uts.release;
1667 major = atoi(strsep(&release, "."));
1668 minor = atoi(strsep(&release, "."));
1670 if (major > 2 || (major == 2 && minor > 3))
1671 exit(0);
1672 exit(1);
1673 #else
1674 exit(1);
1675 #endif
1679 if { (eval echo configure:1680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1680 then
1681 LINUX_LFS_SUPPORT=yes
1682 else
1683 echo "configure: failed program was:" >&5
1684 cat conftest.$ac_ext >&5
1685 rm -fr conftest*
1686 LINUX_LFS_SUPPORT=no
1688 rm -fr conftest*
1691 CPPFLAGS="$old_CPPFLAGS"
1692 if test x$LINUX_LFS_SUPPORT = xyes ; then
1693 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1694 cat >> confdefs.h <<\EOF
1695 #define _LARGEFILE64_SOURCE 1
1698 cat >> confdefs.h <<\EOF
1699 #define _FILE_OFFSET_BITS 64
1702 cat >> confdefs.h <<\EOF
1703 #define _GNU_SOURCE 1
1707 echo "$ac_t""$LINUX_LFS_SUPPORT" 1>&6
1710 *hurd*)
1711 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1712 echo "configure:1713: checking for LFS support" >&5
1713 old_CPPFLAGS="$CPPFLAGS"
1714 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1715 if test "$cross_compiling" = yes; then
1716 GLIBC_LFS_SUPPORT=cross
1717 else
1718 cat > conftest.$ac_ext <<EOF
1719 #line 1720 "configure"
1720 #include "confdefs.h"
1722 #include <unistd.h>
1723 main () {
1724 #if _LFS64_LARGEFILE == 1
1725 exit(0);
1726 #else
1727 exit(1);
1728 #endif
1731 if { (eval echo configure:1732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1732 then
1733 GLIBC_LFS_SUPPORT=yes
1734 else
1735 echo "configure: failed program was:" >&5
1736 cat conftest.$ac_ext >&5
1737 rm -fr conftest*
1738 GLIBC_LFS_SUPPORT=no
1740 rm -fr conftest*
1743 CPPFLAGS="$old_CPPFLAGS"
1744 if test x$GLIBC_LFS_SUPPORT = xyes ; then
1745 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1746 cat >> confdefs.h <<\EOF
1747 #define _LARGEFILE64_SOURCE 1
1750 cat >> confdefs.h <<\EOF
1751 #define _GNU_SOURCE 1
1755 echo "$ac_t""$GLIBC_LFS_SUPPORT" 1>&6
1758 esac
1760 echo $ac_n "checking for inline""... $ac_c" 1>&6
1761 echo "configure:1762: checking for inline" >&5
1762 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1763 echo $ac_n "(cached) $ac_c" 1>&6
1764 else
1765 ac_cv_c_inline=no
1766 for ac_kw in inline __inline__ __inline; do
1767 cat > conftest.$ac_ext <<EOF
1768 #line 1769 "configure"
1769 #include "confdefs.h"
1771 int main() {
1772 } $ac_kw foo() {
1773 ; return 0; }
1775 if { (eval echo configure:1776: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1776 rm -rf conftest*
1777 ac_cv_c_inline=$ac_kw; break
1778 else
1779 echo "configure: failed program was:" >&5
1780 cat conftest.$ac_ext >&5
1782 rm -f conftest*
1783 done
1787 echo "$ac_t""$ac_cv_c_inline" 1>&6
1788 case "$ac_cv_c_inline" in
1789 inline | yes) ;;
1790 no) cat >> confdefs.h <<\EOF
1791 #define inline
1794 *) cat >> confdefs.h <<EOF
1795 #define inline $ac_cv_c_inline
1798 esac
1800 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1801 echo "configure:1802: checking how to run the C preprocessor" >&5
1802 # On Suns, sometimes $CPP names a directory.
1803 if test -n "$CPP" && test -d "$CPP"; then
1804 CPP=
1806 if test -z "$CPP"; then
1807 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1808 echo $ac_n "(cached) $ac_c" 1>&6
1809 else
1810 # This must be in double quotes, not single quotes, because CPP may get
1811 # substituted into the Makefile and "${CC-cc}" will confuse make.
1812 CPP="${CC-cc} -E"
1813 # On the NeXT, cc -E runs the code through the compiler's parser,
1814 # not just through cpp.
1815 cat > conftest.$ac_ext <<EOF
1816 #line 1817 "configure"
1817 #include "confdefs.h"
1818 #include <assert.h>
1819 Syntax Error
1821 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1822 { (eval echo configure:1823: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1823 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1824 if test -z "$ac_err"; then
1826 else
1827 echo "$ac_err" >&5
1828 echo "configure: failed program was:" >&5
1829 cat conftest.$ac_ext >&5
1830 rm -rf conftest*
1831 CPP="${CC-cc} -E -traditional-cpp"
1832 cat > conftest.$ac_ext <<EOF
1833 #line 1834 "configure"
1834 #include "confdefs.h"
1835 #include <assert.h>
1836 Syntax Error
1838 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1839 { (eval echo configure:1840: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1840 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1841 if test -z "$ac_err"; then
1843 else
1844 echo "$ac_err" >&5
1845 echo "configure: failed program was:" >&5
1846 cat conftest.$ac_ext >&5
1847 rm -rf conftest*
1848 CPP="${CC-cc} -nologo -E"
1849 cat > conftest.$ac_ext <<EOF
1850 #line 1851 "configure"
1851 #include "confdefs.h"
1852 #include <assert.h>
1853 Syntax Error
1855 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1856 { (eval echo configure:1857: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1857 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1858 if test -z "$ac_err"; then
1860 else
1861 echo "$ac_err" >&5
1862 echo "configure: failed program was:" >&5
1863 cat conftest.$ac_ext >&5
1864 rm -rf conftest*
1865 CPP=/lib/cpp
1867 rm -f conftest*
1869 rm -f conftest*
1871 rm -f conftest*
1872 ac_cv_prog_CPP="$CPP"
1874 CPP="$ac_cv_prog_CPP"
1875 else
1876 ac_cv_prog_CPP="$CPP"
1878 echo "$ac_t""$CPP" 1>&6
1880 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1881 echo "configure:1882: checking for ANSI C header files" >&5
1882 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1883 echo $ac_n "(cached) $ac_c" 1>&6
1884 else
1885 cat > conftest.$ac_ext <<EOF
1886 #line 1887 "configure"
1887 #include "confdefs.h"
1888 #include <stdlib.h>
1889 #include <stdarg.h>
1890 #include <string.h>
1891 #include <float.h>
1893 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1894 { (eval echo configure:1895: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1895 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1896 if test -z "$ac_err"; then
1897 rm -rf conftest*
1898 ac_cv_header_stdc=yes
1899 else
1900 echo "$ac_err" >&5
1901 echo "configure: failed program was:" >&5
1902 cat conftest.$ac_ext >&5
1903 rm -rf conftest*
1904 ac_cv_header_stdc=no
1906 rm -f conftest*
1908 if test $ac_cv_header_stdc = yes; then
1909 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1910 cat > conftest.$ac_ext <<EOF
1911 #line 1912 "configure"
1912 #include "confdefs.h"
1913 #include <string.h>
1915 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1916 egrep "memchr" >/dev/null 2>&1; then
1918 else
1919 rm -rf conftest*
1920 ac_cv_header_stdc=no
1922 rm -f conftest*
1926 if test $ac_cv_header_stdc = yes; then
1927 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1928 cat > conftest.$ac_ext <<EOF
1929 #line 1930 "configure"
1930 #include "confdefs.h"
1931 #include <stdlib.h>
1933 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1934 egrep "free" >/dev/null 2>&1; then
1936 else
1937 rm -rf conftest*
1938 ac_cv_header_stdc=no
1940 rm -f conftest*
1944 if test $ac_cv_header_stdc = yes; then
1945 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1946 if test "$cross_compiling" = yes; then
1948 else
1949 cat > conftest.$ac_ext <<EOF
1950 #line 1951 "configure"
1951 #include "confdefs.h"
1952 #include <ctype.h>
1953 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1954 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1955 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1956 int main () { int i; for (i = 0; i < 256; i++)
1957 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1958 exit (0); }
1961 if { (eval echo configure:1962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1962 then
1964 else
1965 echo "configure: failed program was:" >&5
1966 cat conftest.$ac_ext >&5
1967 rm -fr conftest*
1968 ac_cv_header_stdc=no
1970 rm -fr conftest*
1976 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1977 if test $ac_cv_header_stdc = yes; then
1978 cat >> confdefs.h <<\EOF
1979 #define STDC_HEADERS 1
1984 ac_header_dirent=no
1985 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1987 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1988 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1989 echo "configure:1990: checking for $ac_hdr that defines DIR" >&5
1990 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1991 echo $ac_n "(cached) $ac_c" 1>&6
1992 else
1993 cat > conftest.$ac_ext <<EOF
1994 #line 1995 "configure"
1995 #include "confdefs.h"
1996 #include <sys/types.h>
1997 #include <$ac_hdr>
1998 int main() {
1999 DIR *dirp = 0;
2000 ; return 0; }
2002 if { (eval echo configure:2003: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2003 rm -rf conftest*
2004 eval "ac_cv_header_dirent_$ac_safe=yes"
2005 else
2006 echo "configure: failed program was:" >&5
2007 cat conftest.$ac_ext >&5
2008 rm -rf conftest*
2009 eval "ac_cv_header_dirent_$ac_safe=no"
2011 rm -f conftest*
2013 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2014 echo "$ac_t""yes" 1>&6
2015 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2016 cat >> confdefs.h <<EOF
2017 #define $ac_tr_hdr 1
2019 ac_header_dirent=$ac_hdr; break
2020 else
2021 echo "$ac_t""no" 1>&6
2023 done
2024 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2025 if test $ac_header_dirent = dirent.h; then
2026 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2027 echo "configure:2028: checking for opendir in -ldir" >&5
2028 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2029 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2030 echo $ac_n "(cached) $ac_c" 1>&6
2031 else
2032 ac_save_LIBS="$LIBS"
2033 LIBS="-ldir $LIBS"
2034 cat > conftest.$ac_ext <<EOF
2035 #line 2036 "configure"
2036 #include "confdefs.h"
2037 /* Override any gcc2 internal prototype to avoid an error. */
2038 /* We use char because int might match the return type of a gcc2
2039 builtin and then its argument prototype would still apply. */
2040 char opendir();
2042 int main() {
2043 opendir()
2044 ; return 0; }
2046 if { (eval echo configure:2047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2047 rm -rf conftest*
2048 eval "ac_cv_lib_$ac_lib_var=yes"
2049 else
2050 echo "configure: failed program was:" >&5
2051 cat conftest.$ac_ext >&5
2052 rm -rf conftest*
2053 eval "ac_cv_lib_$ac_lib_var=no"
2055 rm -f conftest*
2056 LIBS="$ac_save_LIBS"
2059 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2060 echo "$ac_t""yes" 1>&6
2061 LIBS="$LIBS -ldir"
2062 else
2063 echo "$ac_t""no" 1>&6
2066 else
2067 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2068 echo "configure:2069: checking for opendir in -lx" >&5
2069 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2070 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2071 echo $ac_n "(cached) $ac_c" 1>&6
2072 else
2073 ac_save_LIBS="$LIBS"
2074 LIBS="-lx $LIBS"
2075 cat > conftest.$ac_ext <<EOF
2076 #line 2077 "configure"
2077 #include "confdefs.h"
2078 /* Override any gcc2 internal prototype to avoid an error. */
2079 /* We use char because int might match the return type of a gcc2
2080 builtin and then its argument prototype would still apply. */
2081 char opendir();
2083 int main() {
2084 opendir()
2085 ; return 0; }
2087 if { (eval echo configure:2088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2088 rm -rf conftest*
2089 eval "ac_cv_lib_$ac_lib_var=yes"
2090 else
2091 echo "configure: failed program was:" >&5
2092 cat conftest.$ac_ext >&5
2093 rm -rf conftest*
2094 eval "ac_cv_lib_$ac_lib_var=no"
2096 rm -f conftest*
2097 LIBS="$ac_save_LIBS"
2100 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2101 echo "$ac_t""yes" 1>&6
2102 LIBS="$LIBS -lx"
2103 else
2104 echo "$ac_t""no" 1>&6
2109 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2110 echo "configure:2111: checking whether time.h and sys/time.h may both be included" >&5
2111 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2112 echo $ac_n "(cached) $ac_c" 1>&6
2113 else
2114 cat > conftest.$ac_ext <<EOF
2115 #line 2116 "configure"
2116 #include "confdefs.h"
2117 #include <sys/types.h>
2118 #include <sys/time.h>
2119 #include <time.h>
2120 int main() {
2121 struct tm *tp;
2122 ; return 0; }
2124 if { (eval echo configure:2125: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2125 rm -rf conftest*
2126 ac_cv_header_time=yes
2127 else
2128 echo "configure: failed program was:" >&5
2129 cat conftest.$ac_ext >&5
2130 rm -rf conftest*
2131 ac_cv_header_time=no
2133 rm -f conftest*
2136 echo "$ac_t""$ac_cv_header_time" 1>&6
2137 if test $ac_cv_header_time = yes; then
2138 cat >> confdefs.h <<\EOF
2139 #define TIME_WITH_SYS_TIME 1
2144 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2145 echo "configure:2146: checking for sys/wait.h that is POSIX.1 compatible" >&5
2146 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2147 echo $ac_n "(cached) $ac_c" 1>&6
2148 else
2149 cat > conftest.$ac_ext <<EOF
2150 #line 2151 "configure"
2151 #include "confdefs.h"
2152 #include <sys/types.h>
2153 #include <sys/wait.h>
2154 #ifndef WEXITSTATUS
2155 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2156 #endif
2157 #ifndef WIFEXITED
2158 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2159 #endif
2160 int main() {
2161 int s;
2162 wait (&s);
2163 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2164 ; return 0; }
2166 if { (eval echo configure:2167: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2167 rm -rf conftest*
2168 ac_cv_header_sys_wait_h=yes
2169 else
2170 echo "configure: failed program was:" >&5
2171 cat conftest.$ac_ext >&5
2172 rm -rf conftest*
2173 ac_cv_header_sys_wait_h=no
2175 rm -f conftest*
2178 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2179 if test $ac_cv_header_sys_wait_h = yes; then
2180 cat >> confdefs.h <<\EOF
2181 #define HAVE_SYS_WAIT_H 1
2186 for ac_hdr in arpa/inet.h sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h
2188 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2189 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2190 echo "configure:2191: checking for $ac_hdr" >&5
2191 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2192 echo $ac_n "(cached) $ac_c" 1>&6
2193 else
2194 cat > conftest.$ac_ext <<EOF
2195 #line 2196 "configure"
2196 #include "confdefs.h"
2197 #include <$ac_hdr>
2199 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2200 { (eval echo configure:2201: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2201 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2202 if test -z "$ac_err"; then
2203 rm -rf conftest*
2204 eval "ac_cv_header_$ac_safe=yes"
2205 else
2206 echo "$ac_err" >&5
2207 echo "configure: failed program was:" >&5
2208 cat conftest.$ac_ext >&5
2209 rm -rf conftest*
2210 eval "ac_cv_header_$ac_safe=no"
2212 rm -f conftest*
2214 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2215 echo "$ac_t""yes" 1>&6
2216 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2217 cat >> confdefs.h <<EOF
2218 #define $ac_tr_hdr 1
2221 else
2222 echo "$ac_t""no" 1>&6
2224 done
2226 for ac_hdr in unistd.h utime.h grp.h sys/id.h limits.h memory.h net/if.h
2228 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2229 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2230 echo "configure:2231: checking for $ac_hdr" >&5
2231 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2232 echo $ac_n "(cached) $ac_c" 1>&6
2233 else
2234 cat > conftest.$ac_ext <<EOF
2235 #line 2236 "configure"
2236 #include "confdefs.h"
2237 #include <$ac_hdr>
2239 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2240 { (eval echo configure:2241: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2241 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2242 if test -z "$ac_err"; then
2243 rm -rf conftest*
2244 eval "ac_cv_header_$ac_safe=yes"
2245 else
2246 echo "$ac_err" >&5
2247 echo "configure: failed program was:" >&5
2248 cat conftest.$ac_ext >&5
2249 rm -rf conftest*
2250 eval "ac_cv_header_$ac_safe=no"
2252 rm -f conftest*
2254 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2255 echo "$ac_t""yes" 1>&6
2256 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2257 cat >> confdefs.h <<EOF
2258 #define $ac_tr_hdr 1
2261 else
2262 echo "$ac_t""no" 1>&6
2264 done
2266 for ac_hdr in compat.h rpc/rpc.h rpcsvc/nis.h rpcsvc/yp_prot.h rpcsvc/ypclnt.h
2268 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2269 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2270 echo "configure:2271: checking for $ac_hdr" >&5
2271 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2272 echo $ac_n "(cached) $ac_c" 1>&6
2273 else
2274 cat > conftest.$ac_ext <<EOF
2275 #line 2276 "configure"
2276 #include "confdefs.h"
2277 #include <$ac_hdr>
2279 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2280 { (eval echo configure:2281: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2281 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2282 if test -z "$ac_err"; then
2283 rm -rf conftest*
2284 eval "ac_cv_header_$ac_safe=yes"
2285 else
2286 echo "$ac_err" >&5
2287 echo "configure: failed program was:" >&5
2288 cat conftest.$ac_ext >&5
2289 rm -rf conftest*
2290 eval "ac_cv_header_$ac_safe=no"
2292 rm -f conftest*
2294 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2295 echo "$ac_t""yes" 1>&6
2296 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2297 cat >> confdefs.h <<EOF
2298 #define $ac_tr_hdr 1
2301 else
2302 echo "$ac_t""no" 1>&6
2304 done
2306 for ac_hdr in stdlib.h string.h strings.h syslog.h sys/file.h
2308 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2309 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2310 echo "configure:2311: checking for $ac_hdr" >&5
2311 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2312 echo $ac_n "(cached) $ac_c" 1>&6
2313 else
2314 cat > conftest.$ac_ext <<EOF
2315 #line 2316 "configure"
2316 #include "confdefs.h"
2317 #include <$ac_hdr>
2319 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2320 { (eval echo configure:2321: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2321 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2322 if test -z "$ac_err"; then
2323 rm -rf conftest*
2324 eval "ac_cv_header_$ac_safe=yes"
2325 else
2326 echo "$ac_err" >&5
2327 echo "configure: failed program was:" >&5
2328 cat conftest.$ac_ext >&5
2329 rm -rf conftest*
2330 eval "ac_cv_header_$ac_safe=no"
2332 rm -f conftest*
2334 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2335 echo "$ac_t""yes" 1>&6
2336 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2337 cat >> confdefs.h <<EOF
2338 #define $ac_tr_hdr 1
2341 else
2342 echo "$ac_t""no" 1>&6
2344 done
2346 for ac_hdr in sys/param.h ctype.h sys/wait.h sys/resource.h sys/ioctl.h sys/ipc.h sys/mode.h
2348 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2349 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2350 echo "configure:2351: checking for $ac_hdr" >&5
2351 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2352 echo $ac_n "(cached) $ac_c" 1>&6
2353 else
2354 cat > conftest.$ac_ext <<EOF
2355 #line 2356 "configure"
2356 #include "confdefs.h"
2357 #include <$ac_hdr>
2359 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2360 { (eval echo configure:2361: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2361 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2362 if test -z "$ac_err"; then
2363 rm -rf conftest*
2364 eval "ac_cv_header_$ac_safe=yes"
2365 else
2366 echo "$ac_err" >&5
2367 echo "configure: failed program was:" >&5
2368 cat conftest.$ac_ext >&5
2369 rm -rf conftest*
2370 eval "ac_cv_header_$ac_safe=no"
2372 rm -f conftest*
2374 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2375 echo "$ac_t""yes" 1>&6
2376 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2377 cat >> confdefs.h <<EOF
2378 #define $ac_tr_hdr 1
2381 else
2382 echo "$ac_t""no" 1>&6
2384 done
2386 for ac_hdr in sys/mman.h sys/filio.h sys/priv.h sys/shm.h sys/socket.h
2388 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2389 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2390 echo "configure:2391: checking for $ac_hdr" >&5
2391 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2392 echo $ac_n "(cached) $ac_c" 1>&6
2393 else
2394 cat > conftest.$ac_ext <<EOF
2395 #line 2396 "configure"
2396 #include "confdefs.h"
2397 #include <$ac_hdr>
2399 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2400 { (eval echo configure:2401: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2401 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2402 if test -z "$ac_err"; then
2403 rm -rf conftest*
2404 eval "ac_cv_header_$ac_safe=yes"
2405 else
2406 echo "$ac_err" >&5
2407 echo "configure: failed program was:" >&5
2408 cat conftest.$ac_ext >&5
2409 rm -rf conftest*
2410 eval "ac_cv_header_$ac_safe=no"
2412 rm -f conftest*
2414 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2415 echo "$ac_t""yes" 1>&6
2416 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2417 cat >> confdefs.h <<EOF
2418 #define $ac_tr_hdr 1
2421 else
2422 echo "$ac_t""no" 1>&6
2424 done
2426 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
2428 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2429 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2430 echo "configure:2431: checking for $ac_hdr" >&5
2431 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2432 echo $ac_n "(cached) $ac_c" 1>&6
2433 else
2434 cat > conftest.$ac_ext <<EOF
2435 #line 2436 "configure"
2436 #include "confdefs.h"
2437 #include <$ac_hdr>
2439 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2440 { (eval echo configure:2441: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2441 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2442 if test -z "$ac_err"; then
2443 rm -rf conftest*
2444 eval "ac_cv_header_$ac_safe=yes"
2445 else
2446 echo "$ac_err" >&5
2447 echo "configure: failed program was:" >&5
2448 cat conftest.$ac_ext >&5
2449 rm -rf conftest*
2450 eval "ac_cv_header_$ac_safe=no"
2452 rm -f conftest*
2454 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2455 echo "$ac_t""yes" 1>&6
2456 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2457 cat >> confdefs.h <<EOF
2458 #define $ac_tr_hdr 1
2461 else
2462 echo "$ac_t""no" 1>&6
2464 done
2466 for ac_hdr in sys/termio.h sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h
2468 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2469 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2470 echo "configure:2471: checking for $ac_hdr" >&5
2471 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2472 echo $ac_n "(cached) $ac_c" 1>&6
2473 else
2474 cat > conftest.$ac_ext <<EOF
2475 #line 2476 "configure"
2476 #include "confdefs.h"
2477 #include <$ac_hdr>
2479 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2480 { (eval echo configure:2481: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2481 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2482 if test -z "$ac_err"; then
2483 rm -rf conftest*
2484 eval "ac_cv_header_$ac_safe=yes"
2485 else
2486 echo "$ac_err" >&5
2487 echo "configure: failed program was:" >&5
2488 cat conftest.$ac_ext >&5
2489 rm -rf conftest*
2490 eval "ac_cv_header_$ac_safe=no"
2492 rm -f conftest*
2494 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2495 echo "$ac_t""yes" 1>&6
2496 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2497 cat >> confdefs.h <<EOF
2498 #define $ac_tr_hdr 1
2501 else
2502 echo "$ac_t""no" 1>&6
2504 done
2506 for ac_hdr in security/pam_modules.h security/_pam_macros.h dlfcn.h synch.h pthread.h nsswitch.h
2508 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2509 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2510 echo "configure:2511: checking for $ac_hdr" >&5
2511 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2512 echo $ac_n "(cached) $ac_c" 1>&6
2513 else
2514 cat > conftest.$ac_ext <<EOF
2515 #line 2516 "configure"
2516 #include "confdefs.h"
2517 #include <$ac_hdr>
2519 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2520 { (eval echo configure:2521: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2521 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2522 if test -z "$ac_err"; then
2523 rm -rf conftest*
2524 eval "ac_cv_header_$ac_safe=yes"
2525 else
2526 echo "$ac_err" >&5
2527 echo "configure: failed program was:" >&5
2528 cat conftest.$ac_ext >&5
2529 rm -rf conftest*
2530 eval "ac_cv_header_$ac_safe=no"
2532 rm -f conftest*
2534 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2535 echo "$ac_t""yes" 1>&6
2536 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2537 cat >> confdefs.h <<EOF
2538 #define $ac_tr_hdr 1
2541 else
2542 echo "$ac_t""no" 1>&6
2544 done
2548 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
2549 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
2551 case "$host_os" in
2552 *hpux*)
2553 cat > conftest.$ac_ext <<EOF
2554 #line 2555 "configure"
2555 #include "confdefs.h"
2556 #include <shadow.h>
2557 int main() {
2558 struct spwd testme
2559 ; return 0; }
2561 if { (eval echo configure:2562: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2562 rm -rf conftest*
2563 ac_cv_header_shadow_h=yes
2564 else
2565 echo "configure: failed program was:" >&5
2566 cat conftest.$ac_ext >&5
2567 rm -rf conftest*
2568 ac_cv_header_shadow_h=no
2570 rm -f conftest*
2571 if test x"$ac_cv_header_shadow_h" = x"yes"; then
2572 cat >> confdefs.h <<\EOF
2573 #define HAVE_SHADOW_H 1
2578 esac
2579 for ac_hdr in shadow.h netinet/ip.h netinet/tcp.h netinet/in_systm.h netinet/in_ip.h
2581 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2582 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2583 echo "configure:2584: checking for $ac_hdr" >&5
2584 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2585 echo $ac_n "(cached) $ac_c" 1>&6
2586 else
2587 cat > conftest.$ac_ext <<EOF
2588 #line 2589 "configure"
2589 #include "confdefs.h"
2590 #include <$ac_hdr>
2592 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2593 { (eval echo configure:2594: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2594 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2595 if test -z "$ac_err"; then
2596 rm -rf conftest*
2597 eval "ac_cv_header_$ac_safe=yes"
2598 else
2599 echo "$ac_err" >&5
2600 echo "configure: failed program was:" >&5
2601 cat conftest.$ac_ext >&5
2602 rm -rf conftest*
2603 eval "ac_cv_header_$ac_safe=no"
2605 rm -f conftest*
2607 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2608 echo "$ac_t""yes" 1>&6
2609 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2610 cat >> confdefs.h <<EOF
2611 #define $ac_tr_hdr 1
2614 else
2615 echo "$ac_t""no" 1>&6
2617 done
2619 for ac_hdr in nss.h nss_common.h ns_api.h sys/security.h security/pam_appl.h security/pam_modules.h
2621 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2622 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2623 echo "configure:2624: checking for $ac_hdr" >&5
2624 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2625 echo $ac_n "(cached) $ac_c" 1>&6
2626 else
2627 cat > conftest.$ac_ext <<EOF
2628 #line 2629 "configure"
2629 #include "confdefs.h"
2630 #include <$ac_hdr>
2632 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2633 { (eval echo configure:2634: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2634 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2635 if test -z "$ac_err"; then
2636 rm -rf conftest*
2637 eval "ac_cv_header_$ac_safe=yes"
2638 else
2639 echo "$ac_err" >&5
2640 echo "configure: failed program was:" >&5
2641 cat conftest.$ac_ext >&5
2642 rm -rf conftest*
2643 eval "ac_cv_header_$ac_safe=no"
2645 rm -f conftest*
2647 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2648 echo "$ac_t""yes" 1>&6
2649 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2650 cat >> confdefs.h <<EOF
2651 #define $ac_tr_hdr 1
2654 else
2655 echo "$ac_t""no" 1>&6
2657 done
2659 for ac_hdr in stropts.h poll.h
2661 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2662 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2663 echo "configure:2664: checking for $ac_hdr" >&5
2664 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2665 echo $ac_n "(cached) $ac_c" 1>&6
2666 else
2667 cat > conftest.$ac_ext <<EOF
2668 #line 2669 "configure"
2669 #include "confdefs.h"
2670 #include <$ac_hdr>
2672 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2673 { (eval echo configure:2674: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2674 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2675 if test -z "$ac_err"; then
2676 rm -rf conftest*
2677 eval "ac_cv_header_$ac_safe=yes"
2678 else
2679 echo "$ac_err" >&5
2680 echo "configure: failed program was:" >&5
2681 cat conftest.$ac_ext >&5
2682 rm -rf conftest*
2683 eval "ac_cv_header_$ac_safe=no"
2685 rm -f conftest*
2687 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2688 echo "$ac_t""yes" 1>&6
2689 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2690 cat >> confdefs.h <<EOF
2691 #define $ac_tr_hdr 1
2694 else
2695 echo "$ac_t""no" 1>&6
2697 done
2699 for ac_hdr in sys/capability.h syscall.h sys/syscall.h
2701 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2702 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2703 echo "configure:2704: checking for $ac_hdr" >&5
2704 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2705 echo $ac_n "(cached) $ac_c" 1>&6
2706 else
2707 cat > conftest.$ac_ext <<EOF
2708 #line 2709 "configure"
2709 #include "confdefs.h"
2710 #include <$ac_hdr>
2712 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2713 { (eval echo configure:2714: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2714 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2715 if test -z "$ac_err"; then
2716 rm -rf conftest*
2717 eval "ac_cv_header_$ac_safe=yes"
2718 else
2719 echo "$ac_err" >&5
2720 echo "configure: failed program was:" >&5
2721 cat conftest.$ac_ext >&5
2722 rm -rf conftest*
2723 eval "ac_cv_header_$ac_safe=no"
2725 rm -f conftest*
2727 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2728 echo "$ac_t""yes" 1>&6
2729 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2730 cat >> confdefs.h <<EOF
2731 #define $ac_tr_hdr 1
2734 else
2735 echo "$ac_t""no" 1>&6
2737 done
2739 for ac_hdr in sys/acl.h sys/cdefs.h glob.h
2741 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2742 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2743 echo "configure:2744: checking for $ac_hdr" >&5
2744 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2745 echo $ac_n "(cached) $ac_c" 1>&6
2746 else
2747 cat > conftest.$ac_ext <<EOF
2748 #line 2749 "configure"
2749 #include "confdefs.h"
2750 #include <$ac_hdr>
2752 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2753 { (eval echo configure:2754: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2754 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2755 if test -z "$ac_err"; then
2756 rm -rf conftest*
2757 eval "ac_cv_header_$ac_safe=yes"
2758 else
2759 echo "$ac_err" >&5
2760 echo "configure: failed program was:" >&5
2761 cat conftest.$ac_ext >&5
2762 rm -rf conftest*
2763 eval "ac_cv_header_$ac_safe=no"
2765 rm -f conftest*
2767 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2768 echo "$ac_t""yes" 1>&6
2769 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2770 cat >> confdefs.h <<EOF
2771 #define $ac_tr_hdr 1
2774 else
2775 echo "$ac_t""no" 1>&6
2777 done
2780 # For experimental utmp support (lastlog on some BSD-like systems)
2781 for ac_hdr in utmp.h utmpx.h lastlog.h
2783 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2784 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2785 echo "configure:2786: checking for $ac_hdr" >&5
2786 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2787 echo $ac_n "(cached) $ac_c" 1>&6
2788 else
2789 cat > conftest.$ac_ext <<EOF
2790 #line 2791 "configure"
2791 #include "confdefs.h"
2792 #include <$ac_hdr>
2794 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2795 { (eval echo configure:2796: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2796 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2797 if test -z "$ac_err"; then
2798 rm -rf conftest*
2799 eval "ac_cv_header_$ac_safe=yes"
2800 else
2801 echo "$ac_err" >&5
2802 echo "configure: failed program was:" >&5
2803 cat conftest.$ac_ext >&5
2804 rm -rf conftest*
2805 eval "ac_cv_header_$ac_safe=no"
2807 rm -f conftest*
2809 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2810 echo "$ac_t""yes" 1>&6
2811 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2812 cat >> confdefs.h <<EOF
2813 #define $ac_tr_hdr 1
2816 else
2817 echo "$ac_t""no" 1>&6
2819 done
2822 # For quotas on Veritas VxFS filesystems
2823 for ac_hdr in sys/fs/vx_quota.h
2825 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2826 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2827 echo "configure:2828: checking for $ac_hdr" >&5
2828 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2829 echo $ac_n "(cached) $ac_c" 1>&6
2830 else
2831 cat > conftest.$ac_ext <<EOF
2832 #line 2833 "configure"
2833 #include "confdefs.h"
2834 #include <$ac_hdr>
2836 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2837 { (eval echo configure:2838: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2838 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2839 if test -z "$ac_err"; then
2840 rm -rf conftest*
2841 eval "ac_cv_header_$ac_safe=yes"
2842 else
2843 echo "$ac_err" >&5
2844 echo "configure: failed program was:" >&5
2845 cat conftest.$ac_ext >&5
2846 rm -rf conftest*
2847 eval "ac_cv_header_$ac_safe=no"
2849 rm -f conftest*
2851 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2852 echo "$ac_t""yes" 1>&6
2853 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2854 cat >> confdefs.h <<EOF
2855 #define $ac_tr_hdr 1
2858 else
2859 echo "$ac_t""no" 1>&6
2861 done
2864 # For quotas on Linux XFS filesystems
2865 for ac_hdr in linux/xqm.h
2867 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2868 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2869 echo "configure:2870: checking for $ac_hdr" >&5
2870 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2871 echo $ac_n "(cached) $ac_c" 1>&6
2872 else
2873 cat > conftest.$ac_ext <<EOF
2874 #line 2875 "configure"
2875 #include "confdefs.h"
2876 #include <$ac_hdr>
2878 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2879 { (eval echo configure:2880: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2880 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2881 if test -z "$ac_err"; then
2882 rm -rf conftest*
2883 eval "ac_cv_header_$ac_safe=yes"
2884 else
2885 echo "$ac_err" >&5
2886 echo "configure: failed program was:" >&5
2887 cat conftest.$ac_ext >&5
2888 rm -rf conftest*
2889 eval "ac_cv_header_$ac_safe=no"
2891 rm -f conftest*
2893 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2894 echo "$ac_t""yes" 1>&6
2895 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2896 cat >> confdefs.h <<EOF
2897 #define $ac_tr_hdr 1
2900 else
2901 echo "$ac_t""no" 1>&6
2903 done
2906 echo $ac_n "checking size of int""... $ac_c" 1>&6
2907 echo "configure:2908: checking size of int" >&5
2908 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2909 echo $ac_n "(cached) $ac_c" 1>&6
2910 else
2911 if test "$cross_compiling" = yes; then
2912 ac_cv_sizeof_int=cross
2913 else
2914 cat > conftest.$ac_ext <<EOF
2915 #line 2916 "configure"
2916 #include "confdefs.h"
2917 #include <stdio.h>
2918 main()
2920 FILE *f=fopen("conftestval", "w");
2921 if (!f) exit(1);
2922 fprintf(f, "%d\n", sizeof(int));
2923 exit(0);
2926 if { (eval echo configure:2927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2927 then
2928 ac_cv_sizeof_int=`cat conftestval`
2929 else
2930 echo "configure: failed program was:" >&5
2931 cat conftest.$ac_ext >&5
2932 rm -fr conftest*
2933 ac_cv_sizeof_int=0
2935 rm -fr conftest*
2939 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2940 cat >> confdefs.h <<EOF
2941 #define SIZEOF_INT $ac_cv_sizeof_int
2945 echo $ac_n "checking size of long""... $ac_c" 1>&6
2946 echo "configure:2947: checking size of long" >&5
2947 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2948 echo $ac_n "(cached) $ac_c" 1>&6
2949 else
2950 if test "$cross_compiling" = yes; then
2951 ac_cv_sizeof_long=cross
2952 else
2953 cat > conftest.$ac_ext <<EOF
2954 #line 2955 "configure"
2955 #include "confdefs.h"
2956 #include <stdio.h>
2957 main()
2959 FILE *f=fopen("conftestval", "w");
2960 if (!f) exit(1);
2961 fprintf(f, "%d\n", sizeof(long));
2962 exit(0);
2965 if { (eval echo configure:2966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2966 then
2967 ac_cv_sizeof_long=`cat conftestval`
2968 else
2969 echo "configure: failed program was:" >&5
2970 cat conftest.$ac_ext >&5
2971 rm -fr conftest*
2972 ac_cv_sizeof_long=0
2974 rm -fr conftest*
2978 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2979 cat >> confdefs.h <<EOF
2980 #define SIZEOF_LONG $ac_cv_sizeof_long
2984 echo $ac_n "checking size of short""... $ac_c" 1>&6
2985 echo "configure:2986: checking size of short" >&5
2986 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2987 echo $ac_n "(cached) $ac_c" 1>&6
2988 else
2989 if test "$cross_compiling" = yes; then
2990 ac_cv_sizeof_short=cross
2991 else
2992 cat > conftest.$ac_ext <<EOF
2993 #line 2994 "configure"
2994 #include "confdefs.h"
2995 #include <stdio.h>
2996 main()
2998 FILE *f=fopen("conftestval", "w");
2999 if (!f) exit(1);
3000 fprintf(f, "%d\n", sizeof(short));
3001 exit(0);
3004 if { (eval echo configure:3005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3005 then
3006 ac_cv_sizeof_short=`cat conftestval`
3007 else
3008 echo "configure: failed program was:" >&5
3009 cat conftest.$ac_ext >&5
3010 rm -fr conftest*
3011 ac_cv_sizeof_short=0
3013 rm -fr conftest*
3017 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
3018 cat >> confdefs.h <<EOF
3019 #define SIZEOF_SHORT $ac_cv_sizeof_short
3024 echo $ac_n "checking for working const""... $ac_c" 1>&6
3025 echo "configure:3026: checking for working const" >&5
3026 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3027 echo $ac_n "(cached) $ac_c" 1>&6
3028 else
3029 cat > conftest.$ac_ext <<EOF
3030 #line 3031 "configure"
3031 #include "confdefs.h"
3033 int main() {
3035 /* Ultrix mips cc rejects this. */
3036 typedef int charset[2]; const charset x;
3037 /* SunOS 4.1.1 cc rejects this. */
3038 char const *const *ccp;
3039 char **p;
3040 /* NEC SVR4.0.2 mips cc rejects this. */
3041 struct point {int x, y;};
3042 static struct point const zero = {0,0};
3043 /* AIX XL C 1.02.0.0 rejects this.
3044 It does not let you subtract one const X* pointer from another in an arm
3045 of an if-expression whose if-part is not a constant expression */
3046 const char *g = "string";
3047 ccp = &g + (g ? g-g : 0);
3048 /* HPUX 7.0 cc rejects these. */
3049 ++ccp;
3050 p = (char**) ccp;
3051 ccp = (char const *const *) p;
3052 { /* SCO 3.2v4 cc rejects this. */
3053 char *t;
3054 char const *s = 0 ? (char *) 0 : (char const *) 0;
3056 *t++ = 0;
3058 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3059 int x[] = {25, 17};
3060 const int *foo = &x[0];
3061 ++foo;
3063 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3064 typedef const int *iptr;
3065 iptr p = 0;
3066 ++p;
3068 { /* AIX XL C 1.02.0.0 rejects this saying
3069 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3070 struct s { int j; const int *ap[3]; };
3071 struct s *b; b->j = 5;
3073 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3074 const int foo = 10;
3077 ; return 0; }
3079 if { (eval echo configure:3080: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3080 rm -rf conftest*
3081 ac_cv_c_const=yes
3082 else
3083 echo "configure: failed program was:" >&5
3084 cat conftest.$ac_ext >&5
3085 rm -rf conftest*
3086 ac_cv_c_const=no
3088 rm -f conftest*
3091 echo "$ac_t""$ac_cv_c_const" 1>&6
3092 if test $ac_cv_c_const = no; then
3093 cat >> confdefs.h <<\EOF
3094 #define const
3099 echo $ac_n "checking for inline""... $ac_c" 1>&6
3100 echo "configure:3101: checking for inline" >&5
3101 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3102 echo $ac_n "(cached) $ac_c" 1>&6
3103 else
3104 ac_cv_c_inline=no
3105 for ac_kw in inline __inline__ __inline; do
3106 cat > conftest.$ac_ext <<EOF
3107 #line 3108 "configure"
3108 #include "confdefs.h"
3110 int main() {
3111 } $ac_kw foo() {
3112 ; return 0; }
3114 if { (eval echo configure:3115: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3115 rm -rf conftest*
3116 ac_cv_c_inline=$ac_kw; break
3117 else
3118 echo "configure: failed program was:" >&5
3119 cat conftest.$ac_ext >&5
3121 rm -f conftest*
3122 done
3126 echo "$ac_t""$ac_cv_c_inline" 1>&6
3127 case "$ac_cv_c_inline" in
3128 inline | yes) ;;
3129 no) cat >> confdefs.h <<\EOF
3130 #define inline
3133 *) cat >> confdefs.h <<EOF
3134 #define inline $ac_cv_c_inline
3137 esac
3139 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3140 echo "configure:3141: checking whether byte ordering is bigendian" >&5
3141 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3142 echo $ac_n "(cached) $ac_c" 1>&6
3143 else
3144 ac_cv_c_bigendian=unknown
3145 # See if sys/param.h defines the BYTE_ORDER macro.
3146 cat > conftest.$ac_ext <<EOF
3147 #line 3148 "configure"
3148 #include "confdefs.h"
3149 #include <sys/types.h>
3150 #include <sys/param.h>
3151 int main() {
3153 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3154 bogus endian macros
3155 #endif
3156 ; return 0; }
3158 if { (eval echo configure:3159: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3159 rm -rf conftest*
3160 # It does; now see whether it defined to BIG_ENDIAN or not.
3161 cat > conftest.$ac_ext <<EOF
3162 #line 3163 "configure"
3163 #include "confdefs.h"
3164 #include <sys/types.h>
3165 #include <sys/param.h>
3166 int main() {
3168 #if BYTE_ORDER != BIG_ENDIAN
3169 not big endian
3170 #endif
3171 ; return 0; }
3173 if { (eval echo configure:3174: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3174 rm -rf conftest*
3175 ac_cv_c_bigendian=yes
3176 else
3177 echo "configure: failed program was:" >&5
3178 cat conftest.$ac_ext >&5
3179 rm -rf conftest*
3180 ac_cv_c_bigendian=no
3182 rm -f conftest*
3183 else
3184 echo "configure: failed program was:" >&5
3185 cat conftest.$ac_ext >&5
3187 rm -f conftest*
3188 if test $ac_cv_c_bigendian = unknown; then
3189 if test "$cross_compiling" = yes; then
3190 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3191 else
3192 cat > conftest.$ac_ext <<EOF
3193 #line 3194 "configure"
3194 #include "confdefs.h"
3195 main () {
3196 /* Are we little or big endian? From Harbison&Steele. */
3197 union
3199 long l;
3200 char c[sizeof (long)];
3201 } u;
3202 u.l = 1;
3203 exit (u.c[sizeof (long) - 1] == 1);
3206 if { (eval echo configure:3207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3207 then
3208 ac_cv_c_bigendian=no
3209 else
3210 echo "configure: failed program was:" >&5
3211 cat conftest.$ac_ext >&5
3212 rm -fr conftest*
3213 ac_cv_c_bigendian=yes
3215 rm -fr conftest*
3221 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3222 if test $ac_cv_c_bigendian = yes; then
3223 cat >> confdefs.h <<\EOF
3224 #define WORDS_BIGENDIAN 1
3229 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
3230 echo "configure:3231: checking whether char is unsigned" >&5
3231 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
3232 echo $ac_n "(cached) $ac_c" 1>&6
3233 else
3234 if test "$GCC" = yes; then
3235 # GCC predefines this symbol on systems where it applies.
3236 cat > conftest.$ac_ext <<EOF
3237 #line 3238 "configure"
3238 #include "confdefs.h"
3239 #ifdef __CHAR_UNSIGNED__
3241 #endif
3244 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3245 egrep "yes" >/dev/null 2>&1; then
3246 rm -rf conftest*
3247 ac_cv_c_char_unsigned=yes
3248 else
3249 rm -rf conftest*
3250 ac_cv_c_char_unsigned=no
3252 rm -f conftest*
3254 else
3255 if test "$cross_compiling" = yes; then
3256 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3257 else
3258 cat > conftest.$ac_ext <<EOF
3259 #line 3260 "configure"
3260 #include "confdefs.h"
3261 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
3262 #if !defined(__STDC__) || __STDC__ != 1
3263 #define volatile
3264 #endif
3265 main() {
3266 volatile char c = 255; exit(c < 0);
3269 if { (eval echo configure:3270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3270 then
3271 ac_cv_c_char_unsigned=yes
3272 else
3273 echo "configure: failed program was:" >&5
3274 cat conftest.$ac_ext >&5
3275 rm -fr conftest*
3276 ac_cv_c_char_unsigned=no
3278 rm -fr conftest*
3284 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
3285 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
3286 cat >> confdefs.h <<\EOF
3287 #define __CHAR_UNSIGNED__ 1
3293 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3294 echo "configure:3295: checking return type of signal handlers" >&5
3295 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3296 echo $ac_n "(cached) $ac_c" 1>&6
3297 else
3298 cat > conftest.$ac_ext <<EOF
3299 #line 3300 "configure"
3300 #include "confdefs.h"
3301 #include <sys/types.h>
3302 #include <signal.h>
3303 #ifdef signal
3304 #undef signal
3305 #endif
3306 #ifdef __cplusplus
3307 extern "C" void (*signal (int, void (*)(int)))(int);
3308 #else
3309 void (*signal ()) ();
3310 #endif
3312 int main() {
3313 int i;
3314 ; return 0; }
3316 if { (eval echo configure:3317: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3317 rm -rf conftest*
3318 ac_cv_type_signal=void
3319 else
3320 echo "configure: failed program was:" >&5
3321 cat conftest.$ac_ext >&5
3322 rm -rf conftest*
3323 ac_cv_type_signal=int
3325 rm -f conftest*
3328 echo "$ac_t""$ac_cv_type_signal" 1>&6
3329 cat >> confdefs.h <<EOF
3330 #define RETSIGTYPE $ac_cv_type_signal
3334 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3335 echo "configure:3336: checking for uid_t in sys/types.h" >&5
3336 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3337 echo $ac_n "(cached) $ac_c" 1>&6
3338 else
3339 cat > conftest.$ac_ext <<EOF
3340 #line 3341 "configure"
3341 #include "confdefs.h"
3342 #include <sys/types.h>
3344 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3345 egrep "uid_t" >/dev/null 2>&1; then
3346 rm -rf conftest*
3347 ac_cv_type_uid_t=yes
3348 else
3349 rm -rf conftest*
3350 ac_cv_type_uid_t=no
3352 rm -f conftest*
3356 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3357 if test $ac_cv_type_uid_t = no; then
3358 cat >> confdefs.h <<\EOF
3359 #define uid_t int
3362 cat >> confdefs.h <<\EOF
3363 #define gid_t int
3368 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3369 echo "configure:3370: checking for mode_t" >&5
3370 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3371 echo $ac_n "(cached) $ac_c" 1>&6
3372 else
3373 cat > conftest.$ac_ext <<EOF
3374 #line 3375 "configure"
3375 #include "confdefs.h"
3376 #include <sys/types.h>
3377 #if STDC_HEADERS
3378 #include <stdlib.h>
3379 #include <stddef.h>
3380 #endif
3382 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3383 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3384 rm -rf conftest*
3385 ac_cv_type_mode_t=yes
3386 else
3387 rm -rf conftest*
3388 ac_cv_type_mode_t=no
3390 rm -f conftest*
3393 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3394 if test $ac_cv_type_mode_t = no; then
3395 cat >> confdefs.h <<\EOF
3396 #define mode_t int
3401 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3402 echo "configure:3403: checking for off_t" >&5
3403 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3404 echo $ac_n "(cached) $ac_c" 1>&6
3405 else
3406 cat > conftest.$ac_ext <<EOF
3407 #line 3408 "configure"
3408 #include "confdefs.h"
3409 #include <sys/types.h>
3410 #if STDC_HEADERS
3411 #include <stdlib.h>
3412 #include <stddef.h>
3413 #endif
3415 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3416 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3417 rm -rf conftest*
3418 ac_cv_type_off_t=yes
3419 else
3420 rm -rf conftest*
3421 ac_cv_type_off_t=no
3423 rm -f conftest*
3426 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3427 if test $ac_cv_type_off_t = no; then
3428 cat >> confdefs.h <<\EOF
3429 #define off_t long
3434 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3435 echo "configure:3436: checking for size_t" >&5
3436 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3437 echo $ac_n "(cached) $ac_c" 1>&6
3438 else
3439 cat > conftest.$ac_ext <<EOF
3440 #line 3441 "configure"
3441 #include "confdefs.h"
3442 #include <sys/types.h>
3443 #if STDC_HEADERS
3444 #include <stdlib.h>
3445 #include <stddef.h>
3446 #endif
3448 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3449 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3450 rm -rf conftest*
3451 ac_cv_type_size_t=yes
3452 else
3453 rm -rf conftest*
3454 ac_cv_type_size_t=no
3456 rm -f conftest*
3459 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3460 if test $ac_cv_type_size_t = no; then
3461 cat >> confdefs.h <<\EOF
3462 #define size_t unsigned
3467 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3468 echo "configure:3469: checking for pid_t" >&5
3469 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3470 echo $ac_n "(cached) $ac_c" 1>&6
3471 else
3472 cat > conftest.$ac_ext <<EOF
3473 #line 3474 "configure"
3474 #include "confdefs.h"
3475 #include <sys/types.h>
3476 #if STDC_HEADERS
3477 #include <stdlib.h>
3478 #include <stddef.h>
3479 #endif
3481 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3482 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3483 rm -rf conftest*
3484 ac_cv_type_pid_t=yes
3485 else
3486 rm -rf conftest*
3487 ac_cv_type_pid_t=no
3489 rm -f conftest*
3492 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3493 if test $ac_cv_type_pid_t = no; then
3494 cat >> confdefs.h <<\EOF
3495 #define pid_t int
3500 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3501 echo "configure:3502: checking for st_rdev in struct stat" >&5
3502 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3503 echo $ac_n "(cached) $ac_c" 1>&6
3504 else
3505 cat > conftest.$ac_ext <<EOF
3506 #line 3507 "configure"
3507 #include "confdefs.h"
3508 #include <sys/types.h>
3509 #include <sys/stat.h>
3510 int main() {
3511 struct stat s; s.st_rdev;
3512 ; return 0; }
3514 if { (eval echo configure:3515: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3515 rm -rf conftest*
3516 ac_cv_struct_st_rdev=yes
3517 else
3518 echo "configure: failed program was:" >&5
3519 cat conftest.$ac_ext >&5
3520 rm -rf conftest*
3521 ac_cv_struct_st_rdev=no
3523 rm -f conftest*
3526 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3527 if test $ac_cv_struct_st_rdev = yes; then
3528 cat >> confdefs.h <<\EOF
3529 #define HAVE_ST_RDEV 1
3534 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
3535 echo "configure:3536: checking for d_off in dirent" >&5
3536 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
3537 echo $ac_n "(cached) $ac_c" 1>&6
3538 else
3539 cat > conftest.$ac_ext <<EOF
3540 #line 3541 "configure"
3541 #include "confdefs.h"
3543 #include <unistd.h>
3544 #include <sys/types.h>
3545 #include <dirent.h>
3546 int main() {
3547 struct dirent d; d.d_off;
3548 ; return 0; }
3550 if { (eval echo configure:3551: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3551 rm -rf conftest*
3552 ac_cv_dirent_d_off=yes
3553 else
3554 echo "configure: failed program was:" >&5
3555 cat conftest.$ac_ext >&5
3556 rm -rf conftest*
3557 ac_cv_dirent_d_off=no
3559 rm -f conftest*
3562 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
3563 if test $ac_cv_dirent_d_off = yes; then
3564 cat >> confdefs.h <<\EOF
3565 #define HAVE_DIRENT_D_OFF 1
3570 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
3571 echo "configure:3572: checking for ino_t" >&5
3572 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
3573 echo $ac_n "(cached) $ac_c" 1>&6
3574 else
3575 cat > conftest.$ac_ext <<EOF
3576 #line 3577 "configure"
3577 #include "confdefs.h"
3578 #include <sys/types.h>
3579 #if STDC_HEADERS
3580 #include <stdlib.h>
3581 #include <stddef.h>
3582 #endif
3584 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3585 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3586 rm -rf conftest*
3587 ac_cv_type_ino_t=yes
3588 else
3589 rm -rf conftest*
3590 ac_cv_type_ino_t=no
3592 rm -f conftest*
3595 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
3596 if test $ac_cv_type_ino_t = no; then
3597 cat >> confdefs.h <<\EOF
3598 #define ino_t unsigned
3603 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3604 echo "configure:3605: checking for loff_t" >&5
3605 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
3606 echo $ac_n "(cached) $ac_c" 1>&6
3607 else
3608 cat > conftest.$ac_ext <<EOF
3609 #line 3610 "configure"
3610 #include "confdefs.h"
3611 #include <sys/types.h>
3612 #if STDC_HEADERS
3613 #include <stdlib.h>
3614 #include <stddef.h>
3615 #endif
3617 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3618 egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3619 rm -rf conftest*
3620 ac_cv_type_loff_t=yes
3621 else
3622 rm -rf conftest*
3623 ac_cv_type_loff_t=no
3625 rm -f conftest*
3628 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
3629 if test $ac_cv_type_loff_t = no; then
3630 cat >> confdefs.h <<\EOF
3631 #define loff_t off_t
3636 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
3637 echo "configure:3638: checking for offset_t" >&5
3638 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
3639 echo $ac_n "(cached) $ac_c" 1>&6
3640 else
3641 cat > conftest.$ac_ext <<EOF
3642 #line 3643 "configure"
3643 #include "confdefs.h"
3644 #include <sys/types.h>
3645 #if STDC_HEADERS
3646 #include <stdlib.h>
3647 #include <stddef.h>
3648 #endif
3650 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3651 egrep "(^|[^a-zA-Z_0-9])offset_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3652 rm -rf conftest*
3653 ac_cv_type_offset_t=yes
3654 else
3655 rm -rf conftest*
3656 ac_cv_type_offset_t=no
3658 rm -f conftest*
3661 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
3662 if test $ac_cv_type_offset_t = no; then
3663 cat >> confdefs.h <<\EOF
3664 #define offset_t loff_t
3669 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3670 echo "configure:3671: checking for ssize_t" >&5
3671 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3672 echo $ac_n "(cached) $ac_c" 1>&6
3673 else
3674 cat > conftest.$ac_ext <<EOF
3675 #line 3676 "configure"
3676 #include "confdefs.h"
3677 #include <sys/types.h>
3678 #if STDC_HEADERS
3679 #include <stdlib.h>
3680 #include <stddef.h>
3681 #endif
3683 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3684 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3685 rm -rf conftest*
3686 ac_cv_type_ssize_t=yes
3687 else
3688 rm -rf conftest*
3689 ac_cv_type_ssize_t=no
3691 rm -f conftest*
3694 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3695 if test $ac_cv_type_ssize_t = no; then
3696 cat >> confdefs.h <<\EOF
3697 #define ssize_t int
3702 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
3703 echo "configure:3704: checking for wchar_t" >&5
3704 if eval "test \"`echo '$''{'ac_cv_type_wchar_t'+set}'`\" = set"; then
3705 echo $ac_n "(cached) $ac_c" 1>&6
3706 else
3707 cat > conftest.$ac_ext <<EOF
3708 #line 3709 "configure"
3709 #include "confdefs.h"
3710 #include <sys/types.h>
3711 #if STDC_HEADERS
3712 #include <stdlib.h>
3713 #include <stddef.h>
3714 #endif
3716 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3717 egrep "(^|[^a-zA-Z_0-9])wchar_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3718 rm -rf conftest*
3719 ac_cv_type_wchar_t=yes
3720 else
3721 rm -rf conftest*
3722 ac_cv_type_wchar_t=no
3724 rm -f conftest*
3727 echo "$ac_t""$ac_cv_type_wchar_t" 1>&6
3728 if test $ac_cv_type_wchar_t = no; then
3729 cat >> confdefs.h <<\EOF
3730 #define wchar_t unsigned short
3736 ############################################
3737 # for cups support we need libcups, and a handful of header files
3739 # Check whether --enable-cups or --disable-cups was given.
3740 if test "${enable_cups+set}" = set; then
3741 enableval="$enable_cups"
3746 if test x$enable_cups != xno; then
3747 # Extract the first word of "cups-config", so it can be a program name with args.
3748 set dummy cups-config; ac_word=$2
3749 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3750 echo "configure:3751: checking for $ac_word" >&5
3751 if eval "test \"`echo '$''{'ac_cv_path_CUPS_CONFIG'+set}'`\" = set"; then
3752 echo $ac_n "(cached) $ac_c" 1>&6
3753 else
3754 case "$CUPS_CONFIG" in
3756 ac_cv_path_CUPS_CONFIG="$CUPS_CONFIG" # Let the user override the test with a path.
3758 ?:/*)
3759 ac_cv_path_CUPS_CONFIG="$CUPS_CONFIG" # Let the user override the test with a dos path.
3762 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3763 ac_dummy="$PATH"
3764 for ac_dir in $ac_dummy; do
3765 test -z "$ac_dir" && ac_dir=.
3766 if test -f $ac_dir/$ac_word; then
3767 ac_cv_path_CUPS_CONFIG="$ac_dir/$ac_word"
3768 break
3770 done
3771 IFS="$ac_save_ifs"
3773 esac
3775 CUPS_CONFIG="$ac_cv_path_CUPS_CONFIG"
3776 if test -n "$CUPS_CONFIG"; then
3777 echo "$ac_t""$CUPS_CONFIG" 1>&6
3778 else
3779 echo "$ac_t""no" 1>&6
3783 if test "x$CUPS_CONFIG" != x; then
3784 cat >> confdefs.h <<\EOF
3785 #define HAVE_CUPS 1
3788 CFLAGS="$CFLAGS `$CUPS_CONFIG --cflags`"
3789 LDFLAGS="$LDFLAGS `$CUPS_CONFIG --ldflags`"
3790 LIBS="$LIBS `$CUPS_CONFIG --libs`"
3794 ############################################
3795 # we need dlopen/dlclose/dlsym/dlerror for PAM, the password database plugins and the new VFS code
3796 for ac_func in dlopen
3798 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3799 echo "configure:3800: checking for $ac_func" >&5
3800 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3801 echo $ac_n "(cached) $ac_c" 1>&6
3802 else
3803 cat > conftest.$ac_ext <<EOF
3804 #line 3805 "configure"
3805 #include "confdefs.h"
3806 /* System header to define __stub macros and hopefully few prototypes,
3807 which can conflict with char $ac_func(); below. */
3808 #include <assert.h>
3809 /* Override any gcc2 internal prototype to avoid an error. */
3810 /* We use char because int might match the return type of a gcc2
3811 builtin and then its argument prototype would still apply. */
3812 char $ac_func();
3814 int main() {
3816 /* The GNU C library defines this for functions which it implements
3817 to always fail with ENOSYS. Some functions are actually named
3818 something starting with __ and the normal name is an alias. */
3819 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3820 choke me
3821 #else
3822 $ac_func();
3823 #endif
3825 ; return 0; }
3827 if { (eval echo configure:3828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3828 rm -rf conftest*
3829 eval "ac_cv_func_$ac_func=yes"
3830 else
3831 echo "configure: failed program was:" >&5
3832 cat conftest.$ac_ext >&5
3833 rm -rf conftest*
3834 eval "ac_cv_func_$ac_func=no"
3836 rm -f conftest*
3839 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3840 echo "$ac_t""yes" 1>&6
3841 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3842 cat >> confdefs.h <<EOF
3843 #define $ac_tr_func 1
3846 else
3847 echo "$ac_t""no" 1>&6
3849 done
3851 if test x"$ac_cv_func_dlopen" = x"no"; then
3852 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3853 echo "configure:3854: checking for dlopen in -ldl" >&5
3854 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3855 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3856 echo $ac_n "(cached) $ac_c" 1>&6
3857 else
3858 ac_save_LIBS="$LIBS"
3859 LIBS="-ldl $LIBS"
3860 cat > conftest.$ac_ext <<EOF
3861 #line 3862 "configure"
3862 #include "confdefs.h"
3863 /* Override any gcc2 internal prototype to avoid an error. */
3864 /* We use char because int might match the return type of a gcc2
3865 builtin and then its argument prototype would still apply. */
3866 char dlopen();
3868 int main() {
3869 dlopen()
3870 ; return 0; }
3872 if { (eval echo configure:3873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3873 rm -rf conftest*
3874 eval "ac_cv_lib_$ac_lib_var=yes"
3875 else
3876 echo "configure: failed program was:" >&5
3877 cat conftest.$ac_ext >&5
3878 rm -rf conftest*
3879 eval "ac_cv_lib_$ac_lib_var=no"
3881 rm -f conftest*
3882 LIBS="$ac_save_LIBS"
3885 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3886 echo "$ac_t""yes" 1>&6
3887 LIBS="$LIBS -ldl";
3888 cat >> confdefs.h <<\EOF
3889 #define HAVE_DLOPEN 1
3892 else
3893 echo "$ac_t""no" 1>&6
3897 # dlopen/dlclose/dlsym/dlerror will be checked again later and defines will be set then
3899 ############################################
3900 # check if the compiler can do immediate structures
3901 echo $ac_n "checking for immediate structures""... $ac_c" 1>&6
3902 echo "configure:3903: checking for immediate structures" >&5
3903 if eval "test \"`echo '$''{'samba_cv_immediate_structures'+set}'`\" = set"; then
3904 echo $ac_n "(cached) $ac_c" 1>&6
3905 else
3907 cat > conftest.$ac_ext <<EOF
3908 #line 3909 "configure"
3909 #include "confdefs.h"
3911 #include <stdio.h>
3912 int main() {
3914 typedef struct {unsigned x;} FOOBAR;
3915 #define X_FOOBAR(x) ((FOOBAR) { x })
3916 #define FOO_ONE X_FOOBAR(1)
3917 FOOBAR f = FOO_ONE;
3918 static struct {
3919 FOOBAR y;
3920 } f2[] = {
3921 {FOO_ONE}
3924 ; return 0; }
3926 if { (eval echo configure:3927: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3927 rm -rf conftest*
3928 samba_cv_immediate_structures=yes
3929 else
3930 echo "configure: failed program was:" >&5
3931 cat conftest.$ac_ext >&5
3932 rm -rf conftest*
3933 samba_cv_immediate_structures=no
3935 rm -f conftest*
3938 echo "$ac_t""$samba_cv_immediate_structures" 1>&6
3939 if test x"$samba_cv_immediate_structures" = x"yes"; then
3940 cat >> confdefs.h <<\EOF
3941 #define HAVE_IMMEDIATE_STRUCTURES 1
3946 ############################################
3947 # check for unix domain sockets
3948 echo $ac_n "checking for unix domain sockets""... $ac_c" 1>&6
3949 echo "configure:3950: checking for unix domain sockets" >&5
3950 if eval "test \"`echo '$''{'samba_cv_unixsocket'+set}'`\" = set"; then
3951 echo $ac_n "(cached) $ac_c" 1>&6
3952 else
3954 cat > conftest.$ac_ext <<EOF
3955 #line 3956 "configure"
3956 #include "confdefs.h"
3958 #include <sys/types.h>
3959 #include <stdlib.h>
3960 #include <stddef.h>
3961 #include <sys/socket.h>
3962 #include <sys/un.h>
3963 int main() {
3965 struct sockaddr_un sunaddr;
3966 sunaddr.sun_family = AF_UNIX;
3968 ; return 0; }
3970 if { (eval echo configure:3971: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3971 rm -rf conftest*
3972 samba_cv_unixsocket=yes
3973 else
3974 echo "configure: failed program was:" >&5
3975 cat conftest.$ac_ext >&5
3976 rm -rf conftest*
3977 samba_cv_unixsocket=no
3979 rm -f conftest*
3982 echo "$ac_t""$samba_cv_unixsocket" 1>&6
3983 if test x"$samba_cv_unixsocket" = x"yes"; then
3984 cat >> confdefs.h <<\EOF
3985 #define HAVE_UNIXSOCKET 1
3990 echo $ac_n "checking for socklen_t type""... $ac_c" 1>&6
3991 echo "configure:3992: checking for socklen_t type" >&5
3992 if eval "test \"`echo '$''{'samba_cv_socklen_t'+set}'`\" = set"; then
3993 echo $ac_n "(cached) $ac_c" 1>&6
3994 else
3996 cat > conftest.$ac_ext <<EOF
3997 #line 3998 "configure"
3998 #include "confdefs.h"
4000 #include <sys/types.h>
4001 #if STDC_HEADERS
4002 #include <stdlib.h>
4003 #include <stddef.h>
4004 #endif
4005 #include <sys/socket.h>
4006 int main() {
4007 socklen_t i = 0
4008 ; return 0; }
4010 if { (eval echo configure:4011: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4011 rm -rf conftest*
4012 samba_cv_socklen_t=yes
4013 else
4014 echo "configure: failed program was:" >&5
4015 cat conftest.$ac_ext >&5
4016 rm -rf conftest*
4017 samba_cv_socklen_t=no
4019 rm -f conftest*
4022 echo "$ac_t""$samba_cv_socklen_t" 1>&6
4023 if test x"$samba_cv_socklen_t" = x"yes"; then
4024 cat >> confdefs.h <<\EOF
4025 #define HAVE_SOCKLEN_T_TYPE 1
4030 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
4031 echo "configure:4032: checking for sig_atomic_t type" >&5
4032 if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+set}'`\" = set"; then
4033 echo $ac_n "(cached) $ac_c" 1>&6
4034 else
4036 cat > conftest.$ac_ext <<EOF
4037 #line 4038 "configure"
4038 #include "confdefs.h"
4040 #include <sys/types.h>
4041 #if STDC_HEADERS
4042 #include <stdlib.h>
4043 #include <stddef.h>
4044 #endif
4045 #include <signal.h>
4046 int main() {
4047 sig_atomic_t i = 0
4048 ; return 0; }
4050 if { (eval echo configure:4051: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4051 rm -rf conftest*
4052 samba_cv_sig_atomic_t=yes
4053 else
4054 echo "configure: failed program was:" >&5
4055 cat conftest.$ac_ext >&5
4056 rm -rf conftest*
4057 samba_cv_sig_atomic_t=no
4059 rm -f conftest*
4062 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
4063 if test x"$samba_cv_sig_atomic_t" = x"yes"; then
4064 cat >> confdefs.h <<\EOF
4065 #define HAVE_SIG_ATOMIC_T_TYPE 1
4070 # stupid headers have the functions but no declaration. grrrr.
4072 echo $ac_n "checking for errno declaration""... $ac_c" 1>&6
4073 echo "configure:4074: checking for errno declaration" >&5
4074 if eval "test \"`echo '$''{'ac_cv_have_errno_decl'+set}'`\" = set"; then
4075 echo $ac_n "(cached) $ac_c" 1>&6
4076 else
4078 cat > conftest.$ac_ext <<EOF
4079 #line 4080 "configure"
4080 #include "confdefs.h"
4081 #include <errno.h>
4082 int main() {
4083 int i = (int)errno
4084 ; return 0; }
4086 if { (eval echo configure:4087: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4087 rm -rf conftest*
4088 ac_cv_have_errno_decl=yes
4089 else
4090 echo "configure: failed program was:" >&5
4091 cat conftest.$ac_ext >&5
4092 rm -rf conftest*
4093 ac_cv_have_errno_decl=no
4095 rm -f conftest*
4098 echo "$ac_t""$ac_cv_have_errno_decl" 1>&6
4099 if test x"$ac_cv_have_errno_decl" = x"yes"; then
4100 cat >> confdefs.h <<\EOF
4101 #define HAVE_ERRNO_DECL 1
4107 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
4108 echo "configure:4109: checking for setresuid declaration" >&5
4109 if eval "test \"`echo '$''{'ac_cv_have_setresuid_decl'+set}'`\" = set"; then
4110 echo $ac_n "(cached) $ac_c" 1>&6
4111 else
4113 cat > conftest.$ac_ext <<EOF
4114 #line 4115 "configure"
4115 #include "confdefs.h"
4116 #include <unistd.h>
4117 int main() {
4118 int i = (int)setresuid
4119 ; return 0; }
4121 if { (eval echo configure:4122: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4122 rm -rf conftest*
4123 ac_cv_have_setresuid_decl=yes
4124 else
4125 echo "configure: failed program was:" >&5
4126 cat conftest.$ac_ext >&5
4127 rm -rf conftest*
4128 ac_cv_have_setresuid_decl=no
4130 rm -f conftest*
4133 echo "$ac_t""$ac_cv_have_setresuid_decl" 1>&6
4134 if test x"$ac_cv_have_setresuid_decl" = x"yes"; then
4135 cat >> confdefs.h <<\EOF
4136 #define HAVE_SETRESUID_DECL 1
4142 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
4143 echo "configure:4144: checking for setresgid declaration" >&5
4144 if eval "test \"`echo '$''{'ac_cv_have_setresgid_decl'+set}'`\" = set"; then
4145 echo $ac_n "(cached) $ac_c" 1>&6
4146 else
4148 cat > conftest.$ac_ext <<EOF
4149 #line 4150 "configure"
4150 #include "confdefs.h"
4151 #include <unistd.h>
4152 int main() {
4153 int i = (int)setresgid
4154 ; return 0; }
4156 if { (eval echo configure:4157: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4157 rm -rf conftest*
4158 ac_cv_have_setresgid_decl=yes
4159 else
4160 echo "configure: failed program was:" >&5
4161 cat conftest.$ac_ext >&5
4162 rm -rf conftest*
4163 ac_cv_have_setresgid_decl=no
4165 rm -f conftest*
4168 echo "$ac_t""$ac_cv_have_setresgid_decl" 1>&6
4169 if test x"$ac_cv_have_setresgid_decl" = x"yes"; then
4170 cat >> confdefs.h <<\EOF
4171 #define HAVE_SETRESGID_DECL 1
4177 echo $ac_n "checking for asprintf declaration""... $ac_c" 1>&6
4178 echo "configure:4179: checking for asprintf declaration" >&5
4179 if eval "test \"`echo '$''{'ac_cv_have_asprintf_decl'+set}'`\" = set"; then
4180 echo $ac_n "(cached) $ac_c" 1>&6
4181 else
4183 cat > conftest.$ac_ext <<EOF
4184 #line 4185 "configure"
4185 #include "confdefs.h"
4186 #include <stdio.h>
4187 int main() {
4188 int i = (int)asprintf
4189 ; return 0; }
4191 if { (eval echo configure:4192: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4192 rm -rf conftest*
4193 ac_cv_have_asprintf_decl=yes
4194 else
4195 echo "configure: failed program was:" >&5
4196 cat conftest.$ac_ext >&5
4197 rm -rf conftest*
4198 ac_cv_have_asprintf_decl=no
4200 rm -f conftest*
4203 echo "$ac_t""$ac_cv_have_asprintf_decl" 1>&6
4204 if test x"$ac_cv_have_asprintf_decl" = x"yes"; then
4205 cat >> confdefs.h <<\EOF
4206 #define HAVE_ASPRINTF_DECL 1
4212 echo $ac_n "checking for vasprintf declaration""... $ac_c" 1>&6
4213 echo "configure:4214: checking for vasprintf declaration" >&5
4214 if eval "test \"`echo '$''{'ac_cv_have_vasprintf_decl'+set}'`\" = set"; then
4215 echo $ac_n "(cached) $ac_c" 1>&6
4216 else
4218 cat > conftest.$ac_ext <<EOF
4219 #line 4220 "configure"
4220 #include "confdefs.h"
4221 #include <stdio.h>
4222 int main() {
4223 int i = (int)vasprintf
4224 ; return 0; }
4226 if { (eval echo configure:4227: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4227 rm -rf conftest*
4228 ac_cv_have_vasprintf_decl=yes
4229 else
4230 echo "configure: failed program was:" >&5
4231 cat conftest.$ac_ext >&5
4232 rm -rf conftest*
4233 ac_cv_have_vasprintf_decl=no
4235 rm -f conftest*
4238 echo "$ac_t""$ac_cv_have_vasprintf_decl" 1>&6
4239 if test x"$ac_cv_have_vasprintf_decl" = x"yes"; then
4240 cat >> confdefs.h <<\EOF
4241 #define HAVE_VASPRINTF_DECL 1
4247 echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6
4248 echo "configure:4249: checking for vsnprintf declaration" >&5
4249 if eval "test \"`echo '$''{'ac_cv_have_vsnprintf_decl'+set}'`\" = set"; then
4250 echo $ac_n "(cached) $ac_c" 1>&6
4251 else
4253 cat > conftest.$ac_ext <<EOF
4254 #line 4255 "configure"
4255 #include "confdefs.h"
4256 #include <stdio.h>
4257 int main() {
4258 int i = (int)vsnprintf
4259 ; return 0; }
4261 if { (eval echo configure:4262: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4262 rm -rf conftest*
4263 ac_cv_have_vsnprintf_decl=yes
4264 else
4265 echo "configure: failed program was:" >&5
4266 cat conftest.$ac_ext >&5
4267 rm -rf conftest*
4268 ac_cv_have_vsnprintf_decl=no
4270 rm -f conftest*
4273 echo "$ac_t""$ac_cv_have_vsnprintf_decl" 1>&6
4274 if test x"$ac_cv_have_vsnprintf_decl" = x"yes"; then
4275 cat >> confdefs.h <<\EOF
4276 #define HAVE_VSNPRINTF_DECL 1
4282 echo $ac_n "checking for snprintf declaration""... $ac_c" 1>&6
4283 echo "configure:4284: checking for snprintf declaration" >&5
4284 if eval "test \"`echo '$''{'ac_cv_have_snprintf_decl'+set}'`\" = set"; then
4285 echo $ac_n "(cached) $ac_c" 1>&6
4286 else
4288 cat > conftest.$ac_ext <<EOF
4289 #line 4290 "configure"
4290 #include "confdefs.h"
4291 #include <stdio.h>
4292 int main() {
4293 int i = (int)snprintf
4294 ; return 0; }
4296 if { (eval echo configure:4297: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4297 rm -rf conftest*
4298 ac_cv_have_snprintf_decl=yes
4299 else
4300 echo "configure: failed program was:" >&5
4301 cat conftest.$ac_ext >&5
4302 rm -rf conftest*
4303 ac_cv_have_snprintf_decl=no
4305 rm -f conftest*
4308 echo "$ac_t""$ac_cv_have_snprintf_decl" 1>&6
4309 if test x"$ac_cv_have_snprintf_decl" = x"yes"; then
4310 cat >> confdefs.h <<\EOF
4311 #define HAVE_SNPRINTF_DECL 1
4317 # and glibc has setresuid under linux but the function does
4318 # nothing until kernel 2.1.44! very dumb.
4319 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
4320 echo "configure:4321: checking for real setresuid" >&5
4321 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
4322 echo $ac_n "(cached) $ac_c" 1>&6
4323 else
4325 if test "$cross_compiling" = yes; then
4326 samba_cv_have_setresuid=cross
4327 else
4328 cat > conftest.$ac_ext <<EOF
4329 #line 4330 "configure"
4330 #include "confdefs.h"
4331 #include <errno.h>
4332 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
4334 if { (eval echo configure:4335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4335 then
4336 samba_cv_have_setresuid=yes
4337 else
4338 echo "configure: failed program was:" >&5
4339 cat conftest.$ac_ext >&5
4340 rm -fr conftest*
4341 samba_cv_have_setresuid=no
4343 rm -fr conftest*
4348 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
4349 if test x"$samba_cv_have_setresuid" = x"yes"; then
4350 cat >> confdefs.h <<\EOF
4351 #define HAVE_SETRESUID 1
4356 # Do the same check for setresguid...
4358 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
4359 echo "configure:4360: checking for real setresgid" >&5
4360 if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then
4361 echo $ac_n "(cached) $ac_c" 1>&6
4362 else
4364 if test "$cross_compiling" = yes; then
4365 samba_cv_have_setresgid=cross
4366 else
4367 cat > conftest.$ac_ext <<EOF
4368 #line 4369 "configure"
4369 #include "confdefs.h"
4370 #include <unistd.h>
4371 #include <errno.h>
4372 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
4374 if { (eval echo configure:4375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4375 then
4376 samba_cv_have_setresgid=yes
4377 else
4378 echo "configure: failed program was:" >&5
4379 cat conftest.$ac_ext >&5
4380 rm -fr conftest*
4381 samba_cv_have_setresgid=no
4383 rm -fr conftest*
4388 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
4389 if test x"$samba_cv_have_setresgid" = x"yes"; then
4390 cat >> confdefs.h <<\EOF
4391 #define HAVE_SETRESGID 1
4396 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
4397 echo "configure:4398: checking for 8-bit clean memcmp" >&5
4398 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
4399 echo $ac_n "(cached) $ac_c" 1>&6
4400 else
4401 if test "$cross_compiling" = yes; then
4402 ac_cv_func_memcmp_clean=no
4403 else
4404 cat > conftest.$ac_ext <<EOF
4405 #line 4406 "configure"
4406 #include "confdefs.h"
4408 main()
4410 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4411 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
4415 if { (eval echo configure:4416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4416 then
4417 ac_cv_func_memcmp_clean=yes
4418 else
4419 echo "configure: failed program was:" >&5
4420 cat conftest.$ac_ext >&5
4421 rm -fr conftest*
4422 ac_cv_func_memcmp_clean=no
4424 rm -fr conftest*
4429 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
4430 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
4433 ###############################################
4434 # Readline included by default unless explicitly asked not to
4435 test "${with_readline+set}" != "set" && with_readline=yes
4437 # test for where we get readline() from
4438 echo $ac_n "checking whether to use readline""... $ac_c" 1>&6
4439 echo "configure:4440: checking whether to use readline" >&5
4440 # Check whether --with-readline or --without-readline was given.
4441 if test "${with_readline+set}" = set; then
4442 withval="$with_readline"
4443 case "$with_readline" in
4444 yes)
4445 echo "$ac_t""yes" 1>&6
4447 for ac_hdr in readline.h history.h readline/readline.h
4449 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4450 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4451 echo "configure:4452: checking for $ac_hdr" >&5
4452 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4453 echo $ac_n "(cached) $ac_c" 1>&6
4454 else
4455 cat > conftest.$ac_ext <<EOF
4456 #line 4457 "configure"
4457 #include "confdefs.h"
4458 #include <$ac_hdr>
4460 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4461 { (eval echo configure:4462: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4462 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4463 if test -z "$ac_err"; then
4464 rm -rf conftest*
4465 eval "ac_cv_header_$ac_safe=yes"
4466 else
4467 echo "$ac_err" >&5
4468 echo "configure: failed program was:" >&5
4469 cat conftest.$ac_ext >&5
4470 rm -rf conftest*
4471 eval "ac_cv_header_$ac_safe=no"
4473 rm -f conftest*
4475 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4476 echo "$ac_t""yes" 1>&6
4477 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4478 cat >> confdefs.h <<EOF
4479 #define $ac_tr_hdr 1
4482 else
4483 echo "$ac_t""no" 1>&6
4485 done
4487 for ac_hdr in readline/history.h
4489 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4490 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4491 echo "configure:4492: checking for $ac_hdr" >&5
4492 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4493 echo $ac_n "(cached) $ac_c" 1>&6
4494 else
4495 cat > conftest.$ac_ext <<EOF
4496 #line 4497 "configure"
4497 #include "confdefs.h"
4498 #include <$ac_hdr>
4500 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4501 { (eval echo configure:4502: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4502 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4503 if test -z "$ac_err"; then
4504 rm -rf conftest*
4505 eval "ac_cv_header_$ac_safe=yes"
4506 else
4507 echo "$ac_err" >&5
4508 echo "configure: failed program was:" >&5
4509 cat conftest.$ac_ext >&5
4510 rm -rf conftest*
4511 eval "ac_cv_header_$ac_safe=no"
4513 rm -f conftest*
4515 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4516 echo "$ac_t""yes" 1>&6
4517 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4518 cat >> confdefs.h <<EOF
4519 #define $ac_tr_hdr 1
4522 else
4523 echo "$ac_t""no" 1>&6
4525 done
4528 for ac_hdr in readline.h readline/readline.h
4530 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4531 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4532 echo "configure:4533: checking for $ac_hdr" >&5
4533 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4534 echo $ac_n "(cached) $ac_c" 1>&6
4535 else
4536 cat > conftest.$ac_ext <<EOF
4537 #line 4538 "configure"
4538 #include "confdefs.h"
4539 #include <$ac_hdr>
4541 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4542 { (eval echo configure:4543: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4543 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4544 if test -z "$ac_err"; then
4545 rm -rf conftest*
4546 eval "ac_cv_header_$ac_safe=yes"
4547 else
4548 echo "$ac_err" >&5
4549 echo "configure: failed program was:" >&5
4550 cat conftest.$ac_ext >&5
4551 rm -rf conftest*
4552 eval "ac_cv_header_$ac_safe=no"
4554 rm -f conftest*
4556 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4557 echo "$ac_t""yes" 1>&6
4558 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4559 cat >> confdefs.h <<EOF
4560 #define $ac_tr_hdr 1
4563 for termlib in ncurses curses termcap terminfo termlib; do
4564 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4565 echo "configure:4566: checking for tgetent in -l${termlib}" >&5
4566 ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4567 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4568 echo $ac_n "(cached) $ac_c" 1>&6
4569 else
4570 ac_save_LIBS="$LIBS"
4571 LIBS="-l${termlib} $LIBS"
4572 cat > conftest.$ac_ext <<EOF
4573 #line 4574 "configure"
4574 #include "confdefs.h"
4575 /* Override any gcc2 internal prototype to avoid an error. */
4576 /* We use char because int might match the return type of a gcc2
4577 builtin and then its argument prototype would still apply. */
4578 char tgetent();
4580 int main() {
4581 tgetent()
4582 ; return 0; }
4584 if { (eval echo configure:4585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4585 rm -rf conftest*
4586 eval "ac_cv_lib_$ac_lib_var=yes"
4587 else
4588 echo "configure: failed program was:" >&5
4589 cat conftest.$ac_ext >&5
4590 rm -rf conftest*
4591 eval "ac_cv_lib_$ac_lib_var=no"
4593 rm -f conftest*
4594 LIBS="$ac_save_LIBS"
4597 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4598 echo "$ac_t""yes" 1>&6
4599 TERMLIBS="-l${termlib}"; break
4600 else
4601 echo "$ac_t""no" 1>&6
4604 done
4605 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4606 echo "configure:4607: checking for rl_callback_handler_install in -lreadline" >&5
4607 ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4608 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4609 echo $ac_n "(cached) $ac_c" 1>&6
4610 else
4611 ac_save_LIBS="$LIBS"
4612 LIBS="-lreadline $TERMLIBS $LIBS"
4613 cat > conftest.$ac_ext <<EOF
4614 #line 4615 "configure"
4615 #include "confdefs.h"
4616 /* Override any gcc2 internal prototype to avoid an error. */
4617 /* We use char because int might match the return type of a gcc2
4618 builtin and then its argument prototype would still apply. */
4619 char rl_callback_handler_install();
4621 int main() {
4622 rl_callback_handler_install()
4623 ; return 0; }
4625 if { (eval echo configure:4626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4626 rm -rf conftest*
4627 eval "ac_cv_lib_$ac_lib_var=yes"
4628 else
4629 echo "configure: failed program was:" >&5
4630 cat conftest.$ac_ext >&5
4631 rm -rf conftest*
4632 eval "ac_cv_lib_$ac_lib_var=no"
4634 rm -f conftest*
4635 LIBS="$ac_save_LIBS"
4638 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4639 echo "$ac_t""yes" 1>&6
4640 TERMLIBS="-lreadline $TERMLIBS"
4641 cat >> confdefs.h <<\EOF
4642 #define HAVE_LIBREADLINE 1
4645 break
4646 else
4647 echo "$ac_t""no" 1>&6
4648 TERMLIBS=
4651 else
4652 echo "$ac_t""no" 1>&6
4654 done
4658 echo "$ac_t""no" 1>&6
4661 echo "$ac_t""yes" 1>&6
4663 # Needed for AC_CHECK_HEADERS and AC_CHECK_LIB to look at
4664 # alternate readline path
4665 _ldflags=${LDFLAGS}
4666 _cppflags=${CPPFLAGS}
4668 # Add additional search path
4669 LDFLAGS="-L$with_readline/lib $LDFLAGS"
4670 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
4672 for ac_hdr in readline.h history.h readline/readline.h
4674 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4675 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4676 echo "configure:4677: checking for $ac_hdr" >&5
4677 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4678 echo $ac_n "(cached) $ac_c" 1>&6
4679 else
4680 cat > conftest.$ac_ext <<EOF
4681 #line 4682 "configure"
4682 #include "confdefs.h"
4683 #include <$ac_hdr>
4685 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4686 { (eval echo configure:4687: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4687 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4688 if test -z "$ac_err"; then
4689 rm -rf conftest*
4690 eval "ac_cv_header_$ac_safe=yes"
4691 else
4692 echo "$ac_err" >&5
4693 echo "configure: failed program was:" >&5
4694 cat conftest.$ac_ext >&5
4695 rm -rf conftest*
4696 eval "ac_cv_header_$ac_safe=no"
4698 rm -f conftest*
4700 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4701 echo "$ac_t""yes" 1>&6
4702 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4703 cat >> confdefs.h <<EOF
4704 #define $ac_tr_hdr 1
4707 else
4708 echo "$ac_t""no" 1>&6
4710 done
4712 for ac_hdr in readline/history.h
4714 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4715 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4716 echo "configure:4717: checking for $ac_hdr" >&5
4717 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4718 echo $ac_n "(cached) $ac_c" 1>&6
4719 else
4720 cat > conftest.$ac_ext <<EOF
4721 #line 4722 "configure"
4722 #include "confdefs.h"
4723 #include <$ac_hdr>
4725 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4726 { (eval echo configure:4727: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4727 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4728 if test -z "$ac_err"; then
4729 rm -rf conftest*
4730 eval "ac_cv_header_$ac_safe=yes"
4731 else
4732 echo "$ac_err" >&5
4733 echo "configure: failed program was:" >&5
4734 cat conftest.$ac_ext >&5
4735 rm -rf conftest*
4736 eval "ac_cv_header_$ac_safe=no"
4738 rm -f conftest*
4740 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4741 echo "$ac_t""yes" 1>&6
4742 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4743 cat >> confdefs.h <<EOF
4744 #define $ac_tr_hdr 1
4747 else
4748 echo "$ac_t""no" 1>&6
4750 done
4753 for ac_hdr in readline.h readline/readline.h
4755 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4756 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4757 echo "configure:4758: checking for $ac_hdr" >&5
4758 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4759 echo $ac_n "(cached) $ac_c" 1>&6
4760 else
4761 cat > conftest.$ac_ext <<EOF
4762 #line 4763 "configure"
4763 #include "confdefs.h"
4764 #include <$ac_hdr>
4766 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4767 { (eval echo configure:4768: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4768 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4769 if test -z "$ac_err"; then
4770 rm -rf conftest*
4771 eval "ac_cv_header_$ac_safe=yes"
4772 else
4773 echo "$ac_err" >&5
4774 echo "configure: failed program was:" >&5
4775 cat conftest.$ac_ext >&5
4776 rm -rf conftest*
4777 eval "ac_cv_header_$ac_safe=no"
4779 rm -f conftest*
4781 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4782 echo "$ac_t""yes" 1>&6
4783 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4784 cat >> confdefs.h <<EOF
4785 #define $ac_tr_hdr 1
4788 for termlib in ncurses curses termcap terminfo termlib; do
4789 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4790 echo "configure:4791: checking for tgetent in -l${termlib}" >&5
4791 ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4792 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4793 echo $ac_n "(cached) $ac_c" 1>&6
4794 else
4795 ac_save_LIBS="$LIBS"
4796 LIBS="-l${termlib} $LIBS"
4797 cat > conftest.$ac_ext <<EOF
4798 #line 4799 "configure"
4799 #include "confdefs.h"
4800 /* Override any gcc2 internal prototype to avoid an error. */
4801 /* We use char because int might match the return type of a gcc2
4802 builtin and then its argument prototype would still apply. */
4803 char tgetent();
4805 int main() {
4806 tgetent()
4807 ; return 0; }
4809 if { (eval echo configure:4810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4810 rm -rf conftest*
4811 eval "ac_cv_lib_$ac_lib_var=yes"
4812 else
4813 echo "configure: failed program was:" >&5
4814 cat conftest.$ac_ext >&5
4815 rm -rf conftest*
4816 eval "ac_cv_lib_$ac_lib_var=no"
4818 rm -f conftest*
4819 LIBS="$ac_save_LIBS"
4822 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4823 echo "$ac_t""yes" 1>&6
4824 TERMLIBS="-l${termlib}"; break
4825 else
4826 echo "$ac_t""no" 1>&6
4829 done
4830 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4831 echo "configure:4832: checking for rl_callback_handler_install in -lreadline" >&5
4832 ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4833 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4834 echo $ac_n "(cached) $ac_c" 1>&6
4835 else
4836 ac_save_LIBS="$LIBS"
4837 LIBS="-lreadline $TERMLIBS $LIBS"
4838 cat > conftest.$ac_ext <<EOF
4839 #line 4840 "configure"
4840 #include "confdefs.h"
4841 /* Override any gcc2 internal prototype to avoid an error. */
4842 /* We use char because int might match the return type of a gcc2
4843 builtin and then its argument prototype would still apply. */
4844 char rl_callback_handler_install();
4846 int main() {
4847 rl_callback_handler_install()
4848 ; return 0; }
4850 if { (eval echo configure:4851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4851 rm -rf conftest*
4852 eval "ac_cv_lib_$ac_lib_var=yes"
4853 else
4854 echo "configure: failed program was:" >&5
4855 cat conftest.$ac_ext >&5
4856 rm -rf conftest*
4857 eval "ac_cv_lib_$ac_lib_var=no"
4859 rm -f conftest*
4860 LIBS="$ac_save_LIBS"
4863 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4864 echo "$ac_t""yes" 1>&6
4865 TERMLDFLAGS="-L$with_readline/lib"
4866 TERMCPPFLAGS="-I$with_readline/include"
4867 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
4868 TERMLIBS="-lreadline $TERMLIBS"
4869 cat >> confdefs.h <<\EOF
4870 #define HAVE_LIBREADLINE 1
4873 break
4874 else
4875 echo "$ac_t""no" 1>&6
4876 TERMLIBS= CPPFLAGS=$_cppflags
4879 else
4880 echo "$ac_t""no" 1>&6
4882 done
4885 LDFLAGS=$_ldflags
4887 esac
4888 else
4889 echo "$ac_t""no" 1>&6
4896 # The following test taken from the cvs sources
4897 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
4898 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
4899 # libsocket.so which has a bad implementation of gethostbyname (it
4900 # only looks in /etc/hosts), so we only look for -lsocket if we need
4901 # it.
4902 for ac_func in connect
4904 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4905 echo "configure:4906: checking for $ac_func" >&5
4906 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4907 echo $ac_n "(cached) $ac_c" 1>&6
4908 else
4909 cat > conftest.$ac_ext <<EOF
4910 #line 4911 "configure"
4911 #include "confdefs.h"
4912 /* System header to define __stub macros and hopefully few prototypes,
4913 which can conflict with char $ac_func(); below. */
4914 #include <assert.h>
4915 /* Override any gcc2 internal prototype to avoid an error. */
4916 /* We use char because int might match the return type of a gcc2
4917 builtin and then its argument prototype would still apply. */
4918 char $ac_func();
4920 int main() {
4922 /* The GNU C library defines this for functions which it implements
4923 to always fail with ENOSYS. Some functions are actually named
4924 something starting with __ and the normal name is an alias. */
4925 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4926 choke me
4927 #else
4928 $ac_func();
4929 #endif
4931 ; return 0; }
4933 if { (eval echo configure:4934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4934 rm -rf conftest*
4935 eval "ac_cv_func_$ac_func=yes"
4936 else
4937 echo "configure: failed program was:" >&5
4938 cat conftest.$ac_ext >&5
4939 rm -rf conftest*
4940 eval "ac_cv_func_$ac_func=no"
4942 rm -f conftest*
4945 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4946 echo "$ac_t""yes" 1>&6
4947 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4948 cat >> confdefs.h <<EOF
4949 #define $ac_tr_func 1
4952 else
4953 echo "$ac_t""no" 1>&6
4955 done
4957 if test x"$ac_cv_func_connect" = x"no"; then
4958 case "$LIBS" in
4959 *-lnsl*) ;;
4960 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
4961 echo "configure:4962: checking for printf in -lnsl_s" >&5
4962 ac_lib_var=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
4963 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4964 echo $ac_n "(cached) $ac_c" 1>&6
4965 else
4966 ac_save_LIBS="$LIBS"
4967 LIBS="-lnsl_s $LIBS"
4968 cat > conftest.$ac_ext <<EOF
4969 #line 4970 "configure"
4970 #include "confdefs.h"
4971 /* Override any gcc2 internal prototype to avoid an error. */
4972 /* We use char because int might match the return type of a gcc2
4973 builtin and then its argument prototype would still apply. */
4974 char printf();
4976 int main() {
4977 printf()
4978 ; return 0; }
4980 if { (eval echo configure:4981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4981 rm -rf conftest*
4982 eval "ac_cv_lib_$ac_lib_var=yes"
4983 else
4984 echo "configure: failed program was:" >&5
4985 cat conftest.$ac_ext >&5
4986 rm -rf conftest*
4987 eval "ac_cv_lib_$ac_lib_var=no"
4989 rm -f conftest*
4990 LIBS="$ac_save_LIBS"
4993 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4994 echo "$ac_t""yes" 1>&6
4995 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4996 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4997 cat >> confdefs.h <<EOF
4998 #define $ac_tr_lib 1
5001 LIBS="-lnsl_s $LIBS"
5003 else
5004 echo "$ac_t""no" 1>&6
5007 esac
5008 case "$LIBS" in
5009 *-lnsl*) ;;
5010 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
5011 echo "configure:5012: checking for printf in -lnsl" >&5
5012 ac_lib_var=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
5013 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5014 echo $ac_n "(cached) $ac_c" 1>&6
5015 else
5016 ac_save_LIBS="$LIBS"
5017 LIBS="-lnsl $LIBS"
5018 cat > conftest.$ac_ext <<EOF
5019 #line 5020 "configure"
5020 #include "confdefs.h"
5021 /* Override any gcc2 internal prototype to avoid an error. */
5022 /* We use char because int might match the return type of a gcc2
5023 builtin and then its argument prototype would still apply. */
5024 char printf();
5026 int main() {
5027 printf()
5028 ; return 0; }
5030 if { (eval echo configure:5031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5031 rm -rf conftest*
5032 eval "ac_cv_lib_$ac_lib_var=yes"
5033 else
5034 echo "configure: failed program was:" >&5
5035 cat conftest.$ac_ext >&5
5036 rm -rf conftest*
5037 eval "ac_cv_lib_$ac_lib_var=no"
5039 rm -f conftest*
5040 LIBS="$ac_save_LIBS"
5043 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5044 echo "$ac_t""yes" 1>&6
5045 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5046 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5047 cat >> confdefs.h <<EOF
5048 #define $ac_tr_lib 1
5051 LIBS="-lnsl $LIBS"
5053 else
5054 echo "$ac_t""no" 1>&6
5057 esac
5058 case "$LIBS" in
5059 *-lsocket*) ;;
5060 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
5061 echo "configure:5062: checking for connect in -lsocket" >&5
5062 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
5063 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5064 echo $ac_n "(cached) $ac_c" 1>&6
5065 else
5066 ac_save_LIBS="$LIBS"
5067 LIBS="-lsocket $LIBS"
5068 cat > conftest.$ac_ext <<EOF
5069 #line 5070 "configure"
5070 #include "confdefs.h"
5071 /* Override any gcc2 internal prototype to avoid an error. */
5072 /* We use char because int might match the return type of a gcc2
5073 builtin and then its argument prototype would still apply. */
5074 char connect();
5076 int main() {
5077 connect()
5078 ; return 0; }
5080 if { (eval echo configure:5081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5081 rm -rf conftest*
5082 eval "ac_cv_lib_$ac_lib_var=yes"
5083 else
5084 echo "configure: failed program was:" >&5
5085 cat conftest.$ac_ext >&5
5086 rm -rf conftest*
5087 eval "ac_cv_lib_$ac_lib_var=no"
5089 rm -f conftest*
5090 LIBS="$ac_save_LIBS"
5093 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5094 echo "$ac_t""yes" 1>&6
5095 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5096 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5097 cat >> confdefs.h <<EOF
5098 #define $ac_tr_lib 1
5101 LIBS="-lsocket $LIBS"
5103 else
5104 echo "$ac_t""no" 1>&6
5107 esac
5108 case "$LIBS" in
5109 *-linet*) ;;
5110 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
5111 echo "configure:5112: checking for connect in -linet" >&5
5112 ac_lib_var=`echo inet'_'connect | sed 'y%./+-%__p_%'`
5113 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5114 echo $ac_n "(cached) $ac_c" 1>&6
5115 else
5116 ac_save_LIBS="$LIBS"
5117 LIBS="-linet $LIBS"
5118 cat > conftest.$ac_ext <<EOF
5119 #line 5120 "configure"
5120 #include "confdefs.h"
5121 /* Override any gcc2 internal prototype to avoid an error. */
5122 /* We use char because int might match the return type of a gcc2
5123 builtin and then its argument prototype would still apply. */
5124 char connect();
5126 int main() {
5127 connect()
5128 ; return 0; }
5130 if { (eval echo configure:5131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5131 rm -rf conftest*
5132 eval "ac_cv_lib_$ac_lib_var=yes"
5133 else
5134 echo "configure: failed program was:" >&5
5135 cat conftest.$ac_ext >&5
5136 rm -rf conftest*
5137 eval "ac_cv_lib_$ac_lib_var=no"
5139 rm -f conftest*
5140 LIBS="$ac_save_LIBS"
5143 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5144 echo "$ac_t""yes" 1>&6
5145 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5146 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5147 cat >> confdefs.h <<EOF
5148 #define $ac_tr_lib 1
5151 LIBS="-linet $LIBS"
5153 else
5154 echo "$ac_t""no" 1>&6
5157 esac
5158 if test x"$ac_cv_lib_socket_connect" = x"yes" ||
5159 test x"$ac_cv_lib_inet_connect" = x"yes"; then
5160 # ac_cv_func_connect=yes
5161 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
5162 cat >> confdefs.h <<\EOF
5163 #define HAVE_CONNECT 1
5169 ###############################################
5170 # test for where we get get_yp_default_domain() from
5171 for ac_func in yp_get_default_domain
5173 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5174 echo "configure:5175: checking for $ac_func" >&5
5175 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5176 echo $ac_n "(cached) $ac_c" 1>&6
5177 else
5178 cat > conftest.$ac_ext <<EOF
5179 #line 5180 "configure"
5180 #include "confdefs.h"
5181 /* System header to define __stub macros and hopefully few prototypes,
5182 which can conflict with char $ac_func(); below. */
5183 #include <assert.h>
5184 /* Override any gcc2 internal prototype to avoid an error. */
5185 /* We use char because int might match the return type of a gcc2
5186 builtin and then its argument prototype would still apply. */
5187 char $ac_func();
5189 int main() {
5191 /* The GNU C library defines this for functions which it implements
5192 to always fail with ENOSYS. Some functions are actually named
5193 something starting with __ and the normal name is an alias. */
5194 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5195 choke me
5196 #else
5197 $ac_func();
5198 #endif
5200 ; return 0; }
5202 if { (eval echo configure:5203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5203 rm -rf conftest*
5204 eval "ac_cv_func_$ac_func=yes"
5205 else
5206 echo "configure: failed program was:" >&5
5207 cat conftest.$ac_ext >&5
5208 rm -rf conftest*
5209 eval "ac_cv_func_$ac_func=no"
5211 rm -f conftest*
5214 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5215 echo "$ac_t""yes" 1>&6
5216 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5217 cat >> confdefs.h <<EOF
5218 #define $ac_tr_func 1
5221 else
5222 echo "$ac_t""no" 1>&6
5224 done
5226 if test x"$ac_cv_func_yp_get_default_domain" = x"no"; then
5227 echo $ac_n "checking for yp_get_default_domain in -lnsl""... $ac_c" 1>&6
5228 echo "configure:5229: checking for yp_get_default_domain in -lnsl" >&5
5229 ac_lib_var=`echo nsl'_'yp_get_default_domain | sed 'y%./+-%__p_%'`
5230 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5231 echo $ac_n "(cached) $ac_c" 1>&6
5232 else
5233 ac_save_LIBS="$LIBS"
5234 LIBS="-lnsl $LIBS"
5235 cat > conftest.$ac_ext <<EOF
5236 #line 5237 "configure"
5237 #include "confdefs.h"
5238 /* Override any gcc2 internal prototype to avoid an error. */
5239 /* We use char because int might match the return type of a gcc2
5240 builtin and then its argument prototype would still apply. */
5241 char yp_get_default_domain();
5243 int main() {
5244 yp_get_default_domain()
5245 ; return 0; }
5247 if { (eval echo configure:5248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5248 rm -rf conftest*
5249 eval "ac_cv_lib_$ac_lib_var=yes"
5250 else
5251 echo "configure: failed program was:" >&5
5252 cat conftest.$ac_ext >&5
5253 rm -rf conftest*
5254 eval "ac_cv_lib_$ac_lib_var=no"
5256 rm -f conftest*
5257 LIBS="$ac_save_LIBS"
5260 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5261 echo "$ac_t""yes" 1>&6
5262 LIBS="$LIBS -lnsl";
5263 cat >> confdefs.h <<\EOF
5264 #define HAVE_YP_GET_DEFAULT_DOMAIN 1
5267 else
5268 echo "$ac_t""no" 1>&6
5273 # Check if we have execl, if not we need to compile smbrun.
5274 for ac_func in execl
5276 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5277 echo "configure:5278: checking for $ac_func" >&5
5278 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5279 echo $ac_n "(cached) $ac_c" 1>&6
5280 else
5281 cat > conftest.$ac_ext <<EOF
5282 #line 5283 "configure"
5283 #include "confdefs.h"
5284 /* System header to define __stub macros and hopefully few prototypes,
5285 which can conflict with char $ac_func(); below. */
5286 #include <assert.h>
5287 /* Override any gcc2 internal prototype to avoid an error. */
5288 /* We use char because int might match the return type of a gcc2
5289 builtin and then its argument prototype would still apply. */
5290 char $ac_func();
5292 int main() {
5294 /* The GNU C library defines this for functions which it implements
5295 to always fail with ENOSYS. Some functions are actually named
5296 something starting with __ and the normal name is an alias. */
5297 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5298 choke me
5299 #else
5300 $ac_func();
5301 #endif
5303 ; return 0; }
5305 if { (eval echo configure:5306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5306 rm -rf conftest*
5307 eval "ac_cv_func_$ac_func=yes"
5308 else
5309 echo "configure: failed program was:" >&5
5310 cat conftest.$ac_ext >&5
5311 rm -rf conftest*
5312 eval "ac_cv_func_$ac_func=no"
5314 rm -f conftest*
5317 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5318 echo "$ac_t""yes" 1>&6
5319 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5320 cat >> confdefs.h <<EOF
5321 #define $ac_tr_func 1
5324 else
5325 echo "$ac_t""no" 1>&6
5327 done
5329 if test x"$ac_cv_func_execl" = x"no"; then
5330 RUNPROG="bin/smbrun"
5331 else
5332 RUNPROG=""
5335 for ac_func in dlopen dlclose dlsym dlerror waitpid getcwd strdup strndup strnlen strtoul strerror chown fchown chmod fchmod chroot link
5337 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5338 echo "configure:5339: checking for $ac_func" >&5
5339 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5340 echo $ac_n "(cached) $ac_c" 1>&6
5341 else
5342 cat > conftest.$ac_ext <<EOF
5343 #line 5344 "configure"
5344 #include "confdefs.h"
5345 /* System header to define __stub macros and hopefully few prototypes,
5346 which can conflict with char $ac_func(); below. */
5347 #include <assert.h>
5348 /* Override any gcc2 internal prototype to avoid an error. */
5349 /* We use char because int might match the return type of a gcc2
5350 builtin and then its argument prototype would still apply. */
5351 char $ac_func();
5353 int main() {
5355 /* The GNU C library defines this for functions which it implements
5356 to always fail with ENOSYS. Some functions are actually named
5357 something starting with __ and the normal name is an alias. */
5358 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5359 choke me
5360 #else
5361 $ac_func();
5362 #endif
5364 ; return 0; }
5366 if { (eval echo configure:5367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5367 rm -rf conftest*
5368 eval "ac_cv_func_$ac_func=yes"
5369 else
5370 echo "configure: failed program was:" >&5
5371 cat conftest.$ac_ext >&5
5372 rm -rf conftest*
5373 eval "ac_cv_func_$ac_func=no"
5375 rm -f conftest*
5378 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5379 echo "$ac_t""yes" 1>&6
5380 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5381 cat >> confdefs.h <<EOF
5382 #define $ac_tr_func 1
5385 else
5386 echo "$ac_t""no" 1>&6
5388 done
5390 for ac_func in fstat strchr utime utimes getrlimit fsync bzero memset strlcpy strlcat setpgid mknod mknod64
5392 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5393 echo "configure:5394: checking for $ac_func" >&5
5394 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5395 echo $ac_n "(cached) $ac_c" 1>&6
5396 else
5397 cat > conftest.$ac_ext <<EOF
5398 #line 5399 "configure"
5399 #include "confdefs.h"
5400 /* System header to define __stub macros and hopefully few prototypes,
5401 which can conflict with char $ac_func(); below. */
5402 #include <assert.h>
5403 /* Override any gcc2 internal prototype to avoid an error. */
5404 /* We use char because int might match the return type of a gcc2
5405 builtin and then its argument prototype would still apply. */
5406 char $ac_func();
5408 int main() {
5410 /* The GNU C library defines this for functions which it implements
5411 to always fail with ENOSYS. Some functions are actually named
5412 something starting with __ and the normal name is an alias. */
5413 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5414 choke me
5415 #else
5416 $ac_func();
5417 #endif
5419 ; return 0; }
5421 if { (eval echo configure:5422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5422 rm -rf conftest*
5423 eval "ac_cv_func_$ac_func=yes"
5424 else
5425 echo "configure: failed program was:" >&5
5426 cat conftest.$ac_ext >&5
5427 rm -rf conftest*
5428 eval "ac_cv_func_$ac_func=no"
5430 rm -f conftest*
5433 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5434 echo "$ac_t""yes" 1>&6
5435 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5436 cat >> confdefs.h <<EOF
5437 #define $ac_tr_func 1
5440 else
5441 echo "$ac_t""no" 1>&6
5443 done
5445 for ac_func in memmove vsnprintf snprintf asprintf vasprintf setsid glob strpbrk pipe crypt16 getauthuid
5447 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5448 echo "configure:5449: checking for $ac_func" >&5
5449 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5450 echo $ac_n "(cached) $ac_c" 1>&6
5451 else
5452 cat > conftest.$ac_ext <<EOF
5453 #line 5454 "configure"
5454 #include "confdefs.h"
5455 /* System header to define __stub macros and hopefully few prototypes,
5456 which can conflict with char $ac_func(); below. */
5457 #include <assert.h>
5458 /* Override any gcc2 internal prototype to avoid an error. */
5459 /* We use char because int might match the return type of a gcc2
5460 builtin and then its argument prototype would still apply. */
5461 char $ac_func();
5463 int main() {
5465 /* The GNU C library defines this for functions which it implements
5466 to always fail with ENOSYS. Some functions are actually named
5467 something starting with __ and the normal name is an alias. */
5468 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5469 choke me
5470 #else
5471 $ac_func();
5472 #endif
5474 ; return 0; }
5476 if { (eval echo configure:5477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5477 rm -rf conftest*
5478 eval "ac_cv_func_$ac_func=yes"
5479 else
5480 echo "configure: failed program was:" >&5
5481 cat conftest.$ac_ext >&5
5482 rm -rf conftest*
5483 eval "ac_cv_func_$ac_func=no"
5485 rm -f conftest*
5488 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5489 echo "$ac_t""yes" 1>&6
5490 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5491 cat >> confdefs.h <<EOF
5492 #define $ac_tr_func 1
5495 else
5496 echo "$ac_t""no" 1>&6
5498 done
5500 for ac_func in strftime sigprocmask sigblock sigaction sigset innetgr setnetgrent getnetgrent endnetgrent
5502 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5503 echo "configure:5504: checking for $ac_func" >&5
5504 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5505 echo $ac_n "(cached) $ac_c" 1>&6
5506 else
5507 cat > conftest.$ac_ext <<EOF
5508 #line 5509 "configure"
5509 #include "confdefs.h"
5510 /* System header to define __stub macros and hopefully few prototypes,
5511 which can conflict with char $ac_func(); below. */
5512 #include <assert.h>
5513 /* Override any gcc2 internal prototype to avoid an error. */
5514 /* We use char because int might match the return type of a gcc2
5515 builtin and then its argument prototype would still apply. */
5516 char $ac_func();
5518 int main() {
5520 /* The GNU C library defines this for functions which it implements
5521 to always fail with ENOSYS. Some functions are actually named
5522 something starting with __ and the normal name is an alias. */
5523 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5524 choke me
5525 #else
5526 $ac_func();
5527 #endif
5529 ; return 0; }
5531 if { (eval echo configure:5532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5532 rm -rf conftest*
5533 eval "ac_cv_func_$ac_func=yes"
5534 else
5535 echo "configure: failed program was:" >&5
5536 cat conftest.$ac_ext >&5
5537 rm -rf conftest*
5538 eval "ac_cv_func_$ac_func=no"
5540 rm -f conftest*
5543 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5544 echo "$ac_t""yes" 1>&6
5545 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5546 cat >> confdefs.h <<EOF
5547 #define $ac_tr_func 1
5550 else
5551 echo "$ac_t""no" 1>&6
5553 done
5555 for ac_func in initgroups select poll rdchk getgrnam getgrent pathconf realpath
5557 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5558 echo "configure:5559: checking for $ac_func" >&5
5559 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5560 echo $ac_n "(cached) $ac_c" 1>&6
5561 else
5562 cat > conftest.$ac_ext <<EOF
5563 #line 5564 "configure"
5564 #include "confdefs.h"
5565 /* System header to define __stub macros and hopefully few prototypes,
5566 which can conflict with char $ac_func(); below. */
5567 #include <assert.h>
5568 /* Override any gcc2 internal prototype to avoid an error. */
5569 /* We use char because int might match the return type of a gcc2
5570 builtin and then its argument prototype would still apply. */
5571 char $ac_func();
5573 int main() {
5575 /* The GNU C library defines this for functions which it implements
5576 to always fail with ENOSYS. Some functions are actually named
5577 something starting with __ and the normal name is an alias. */
5578 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5579 choke me
5580 #else
5581 $ac_func();
5582 #endif
5584 ; return 0; }
5586 if { (eval echo configure:5587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5587 rm -rf conftest*
5588 eval "ac_cv_func_$ac_func=yes"
5589 else
5590 echo "configure: failed program was:" >&5
5591 cat conftest.$ac_ext >&5
5592 rm -rf conftest*
5593 eval "ac_cv_func_$ac_func=no"
5595 rm -f conftest*
5598 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5599 echo "$ac_t""yes" 1>&6
5600 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5601 cat >> confdefs.h <<EOF
5602 #define $ac_tr_func 1
5605 else
5606 echo "$ac_t""no" 1>&6
5608 done
5610 for ac_func in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
5612 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5613 echo "configure:5614: checking for $ac_func" >&5
5614 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5615 echo $ac_n "(cached) $ac_c" 1>&6
5616 else
5617 cat > conftest.$ac_ext <<EOF
5618 #line 5619 "configure"
5619 #include "confdefs.h"
5620 /* System header to define __stub macros and hopefully few prototypes,
5621 which can conflict with char $ac_func(); below. */
5622 #include <assert.h>
5623 /* Override any gcc2 internal prototype to avoid an error. */
5624 /* We use char because int might match the return type of a gcc2
5625 builtin and then its argument prototype would still apply. */
5626 char $ac_func();
5628 int main() {
5630 /* The GNU C library defines this for functions which it implements
5631 to always fail with ENOSYS. Some functions are actually named
5632 something starting with __ and the normal name is an alias. */
5633 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5634 choke me
5635 #else
5636 $ac_func();
5637 #endif
5639 ; return 0; }
5641 if { (eval echo configure:5642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5642 rm -rf conftest*
5643 eval "ac_cv_func_$ac_func=yes"
5644 else
5645 echo "configure: failed program was:" >&5
5646 cat conftest.$ac_ext >&5
5647 rm -rf conftest*
5648 eval "ac_cv_func_$ac_func=no"
5650 rm -f conftest*
5653 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5654 echo "$ac_t""yes" 1>&6
5655 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5656 cat >> confdefs.h <<EOF
5657 #define $ac_tr_func 1
5660 else
5661 echo "$ac_t""no" 1>&6
5663 done
5665 for ac_func in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
5667 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5668 echo "configure:5669: checking for $ac_func" >&5
5669 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5670 echo $ac_n "(cached) $ac_c" 1>&6
5671 else
5672 cat > conftest.$ac_ext <<EOF
5673 #line 5674 "configure"
5674 #include "confdefs.h"
5675 /* System header to define __stub macros and hopefully few prototypes,
5676 which can conflict with char $ac_func(); below. */
5677 #include <assert.h>
5678 /* Override any gcc2 internal prototype to avoid an error. */
5679 /* We use char because int might match the return type of a gcc2
5680 builtin and then its argument prototype would still apply. */
5681 char $ac_func();
5683 int main() {
5685 /* The GNU C library defines this for functions which it implements
5686 to always fail with ENOSYS. Some functions are actually named
5687 something starting with __ and the normal name is an alias. */
5688 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5689 choke me
5690 #else
5691 $ac_func();
5692 #endif
5694 ; return 0; }
5696 if { (eval echo configure:5697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5697 rm -rf conftest*
5698 eval "ac_cv_func_$ac_func=yes"
5699 else
5700 echo "configure: failed program was:" >&5
5701 cat conftest.$ac_ext >&5
5702 rm -rf conftest*
5703 eval "ac_cv_func_$ac_func=no"
5705 rm -f conftest*
5708 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5709 echo "$ac_t""yes" 1>&6
5710 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5711 cat >> confdefs.h <<EOF
5712 #define $ac_tr_func 1
5715 else
5716 echo "$ac_t""no" 1>&6
5718 done
5720 for ac_func in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam setlinebuf
5722 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5723 echo "configure:5724: checking for $ac_func" >&5
5724 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5725 echo $ac_n "(cached) $ac_c" 1>&6
5726 else
5727 cat > conftest.$ac_ext <<EOF
5728 #line 5729 "configure"
5729 #include "confdefs.h"
5730 /* System header to define __stub macros and hopefully few prototypes,
5731 which can conflict with char $ac_func(); below. */
5732 #include <assert.h>
5733 /* Override any gcc2 internal prototype to avoid an error. */
5734 /* We use char because int might match the return type of a gcc2
5735 builtin and then its argument prototype would still apply. */
5736 char $ac_func();
5738 int main() {
5740 /* The GNU C library defines this for functions which it implements
5741 to always fail with ENOSYS. Some functions are actually named
5742 something starting with __ and the normal name is an alias. */
5743 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5744 choke me
5745 #else
5746 $ac_func();
5747 #endif
5749 ; return 0; }
5751 if { (eval echo configure:5752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5752 rm -rf conftest*
5753 eval "ac_cv_func_$ac_func=yes"
5754 else
5755 echo "configure: failed program was:" >&5
5756 cat conftest.$ac_ext >&5
5757 rm -rf conftest*
5758 eval "ac_cv_func_$ac_func=no"
5760 rm -f conftest*
5763 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5764 echo "$ac_t""yes" 1>&6
5765 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5766 cat >> confdefs.h <<EOF
5767 #define $ac_tr_func 1
5770 else
5771 echo "$ac_t""no" 1>&6
5773 done
5775 for ac_func in srandom random srand rand setenv usleep strcasecmp fcvt fcvtl symlink readlink
5777 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5778 echo "configure:5779: checking for $ac_func" >&5
5779 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5780 echo $ac_n "(cached) $ac_c" 1>&6
5781 else
5782 cat > conftest.$ac_ext <<EOF
5783 #line 5784 "configure"
5784 #include "confdefs.h"
5785 /* System header to define __stub macros and hopefully few prototypes,
5786 which can conflict with char $ac_func(); below. */
5787 #include <assert.h>
5788 /* Override any gcc2 internal prototype to avoid an error. */
5789 /* We use char because int might match the return type of a gcc2
5790 builtin and then its argument prototype would still apply. */
5791 char $ac_func();
5793 int main() {
5795 /* The GNU C library defines this for functions which it implements
5796 to always fail with ENOSYS. Some functions are actually named
5797 something starting with __ and the normal name is an alias. */
5798 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5799 choke me
5800 #else
5801 $ac_func();
5802 #endif
5804 ; return 0; }
5806 if { (eval echo configure:5807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5807 rm -rf conftest*
5808 eval "ac_cv_func_$ac_func=yes"
5809 else
5810 echo "configure: failed program was:" >&5
5811 cat conftest.$ac_ext >&5
5812 rm -rf conftest*
5813 eval "ac_cv_func_$ac_func=no"
5815 rm -f conftest*
5818 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5819 echo "$ac_t""yes" 1>&6
5820 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5821 cat >> confdefs.h <<EOF
5822 #define $ac_tr_func 1
5825 else
5826 echo "$ac_t""no" 1>&6
5828 done
5830 for ac_func in syslog vsyslog
5832 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5833 echo "configure:5834: checking for $ac_func" >&5
5834 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5835 echo $ac_n "(cached) $ac_c" 1>&6
5836 else
5837 cat > conftest.$ac_ext <<EOF
5838 #line 5839 "configure"
5839 #include "confdefs.h"
5840 /* System header to define __stub macros and hopefully few prototypes,
5841 which can conflict with char $ac_func(); below. */
5842 #include <assert.h>
5843 /* Override any gcc2 internal prototype to avoid an error. */
5844 /* We use char because int might match the return type of a gcc2
5845 builtin and then its argument prototype would still apply. */
5846 char $ac_func();
5848 int main() {
5850 /* The GNU C library defines this for functions which it implements
5851 to always fail with ENOSYS. Some functions are actually named
5852 something starting with __ and the normal name is an alias. */
5853 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5854 choke me
5855 #else
5856 $ac_func();
5857 #endif
5859 ; return 0; }
5861 if { (eval echo configure:5862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5862 rm -rf conftest*
5863 eval "ac_cv_func_$ac_func=yes"
5864 else
5865 echo "configure: failed program was:" >&5
5866 cat conftest.$ac_ext >&5
5867 rm -rf conftest*
5868 eval "ac_cv_func_$ac_func=no"
5870 rm -f conftest*
5873 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5874 echo "$ac_t""yes" 1>&6
5875 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5876 cat >> confdefs.h <<EOF
5877 #define $ac_tr_func 1
5880 else
5881 echo "$ac_t""no" 1>&6
5883 done
5886 # syscall() is needed for smbwrapper.
5887 for ac_func in syscall
5889 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5890 echo "configure:5891: checking for $ac_func" >&5
5891 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5892 echo $ac_n "(cached) $ac_c" 1>&6
5893 else
5894 cat > conftest.$ac_ext <<EOF
5895 #line 5896 "configure"
5896 #include "confdefs.h"
5897 /* System header to define __stub macros and hopefully few prototypes,
5898 which can conflict with char $ac_func(); below. */
5899 #include <assert.h>
5900 /* Override any gcc2 internal prototype to avoid an error. */
5901 /* We use char because int might match the return type of a gcc2
5902 builtin and then its argument prototype would still apply. */
5903 char $ac_func();
5905 int main() {
5907 /* The GNU C library defines this for functions which it implements
5908 to always fail with ENOSYS. Some functions are actually named
5909 something starting with __ and the normal name is an alias. */
5910 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5911 choke me
5912 #else
5913 $ac_func();
5914 #endif
5916 ; return 0; }
5918 if { (eval echo configure:5919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5919 rm -rf conftest*
5920 eval "ac_cv_func_$ac_func=yes"
5921 else
5922 echo "configure: failed program was:" >&5
5923 cat conftest.$ac_ext >&5
5924 rm -rf conftest*
5925 eval "ac_cv_func_$ac_func=no"
5927 rm -f conftest*
5930 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5931 echo "$ac_t""yes" 1>&6
5932 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5933 cat >> confdefs.h <<EOF
5934 #define $ac_tr_func 1
5937 else
5938 echo "$ac_t""no" 1>&6
5940 done
5943 for ac_func in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
5945 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5946 echo "configure:5947: checking for $ac_func" >&5
5947 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5948 echo $ac_n "(cached) $ac_c" 1>&6
5949 else
5950 cat > conftest.$ac_ext <<EOF
5951 #line 5952 "configure"
5952 #include "confdefs.h"
5953 /* System header to define __stub macros and hopefully few prototypes,
5954 which can conflict with char $ac_func(); below. */
5955 #include <assert.h>
5956 /* Override any gcc2 internal prototype to avoid an error. */
5957 /* We use char because int might match the return type of a gcc2
5958 builtin and then its argument prototype would still apply. */
5959 char $ac_func();
5961 int main() {
5963 /* The GNU C library defines this for functions which it implements
5964 to always fail with ENOSYS. Some functions are actually named
5965 something starting with __ and the normal name is an alias. */
5966 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5967 choke me
5968 #else
5969 $ac_func();
5970 #endif
5972 ; return 0; }
5974 if { (eval echo configure:5975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5975 rm -rf conftest*
5976 eval "ac_cv_func_$ac_func=yes"
5977 else
5978 echo "configure: failed program was:" >&5
5979 cat conftest.$ac_ext >&5
5980 rm -rf conftest*
5981 eval "ac_cv_func_$ac_func=no"
5983 rm -f conftest*
5986 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5987 echo "$ac_t""yes" 1>&6
5988 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5989 cat >> confdefs.h <<EOF
5990 #define $ac_tr_func 1
5993 else
5994 echo "$ac_t""no" 1>&6
5996 done
5998 for ac_func in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
6000 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6001 echo "configure:6002: checking for $ac_func" >&5
6002 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6003 echo $ac_n "(cached) $ac_c" 1>&6
6004 else
6005 cat > conftest.$ac_ext <<EOF
6006 #line 6007 "configure"
6007 #include "confdefs.h"
6008 /* System header to define __stub macros and hopefully few prototypes,
6009 which can conflict with char $ac_func(); below. */
6010 #include <assert.h>
6011 /* Override any gcc2 internal prototype to avoid an error. */
6012 /* We use char because int might match the return type of a gcc2
6013 builtin and then its argument prototype would still apply. */
6014 char $ac_func();
6016 int main() {
6018 /* The GNU C library defines this for functions which it implements
6019 to always fail with ENOSYS. Some functions are actually named
6020 something starting with __ and the normal name is an alias. */
6021 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6022 choke me
6023 #else
6024 $ac_func();
6025 #endif
6027 ; return 0; }
6029 if { (eval echo configure:6030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6030 rm -rf conftest*
6031 eval "ac_cv_func_$ac_func=yes"
6032 else
6033 echo "configure: failed program was:" >&5
6034 cat conftest.$ac_ext >&5
6035 rm -rf conftest*
6036 eval "ac_cv_func_$ac_func=no"
6038 rm -f conftest*
6041 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6042 echo "$ac_t""yes" 1>&6
6043 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6044 cat >> confdefs.h <<EOF
6045 #define $ac_tr_func 1
6048 else
6049 echo "$ac_t""no" 1>&6
6051 done
6053 for ac_func in __getcwd _getcwd
6055 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6056 echo "configure:6057: checking for $ac_func" >&5
6057 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6058 echo $ac_n "(cached) $ac_c" 1>&6
6059 else
6060 cat > conftest.$ac_ext <<EOF
6061 #line 6062 "configure"
6062 #include "confdefs.h"
6063 /* System header to define __stub macros and hopefully few prototypes,
6064 which can conflict with char $ac_func(); below. */
6065 #include <assert.h>
6066 /* Override any gcc2 internal prototype to avoid an error. */
6067 /* We use char because int might match the return type of a gcc2
6068 builtin and then its argument prototype would still apply. */
6069 char $ac_func();
6071 int main() {
6073 /* The GNU C library defines this for functions which it implements
6074 to always fail with ENOSYS. Some functions are actually named
6075 something starting with __ and the normal name is an alias. */
6076 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6077 choke me
6078 #else
6079 $ac_func();
6080 #endif
6082 ; return 0; }
6084 if { (eval echo configure:6085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6085 rm -rf conftest*
6086 eval "ac_cv_func_$ac_func=yes"
6087 else
6088 echo "configure: failed program was:" >&5
6089 cat conftest.$ac_ext >&5
6090 rm -rf conftest*
6091 eval "ac_cv_func_$ac_func=no"
6093 rm -f conftest*
6096 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6097 echo "$ac_t""yes" 1>&6
6098 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6099 cat >> confdefs.h <<EOF
6100 #define $ac_tr_func 1
6103 else
6104 echo "$ac_t""no" 1>&6
6106 done
6108 for ac_func in __xstat __fxstat __lxstat
6110 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6111 echo "configure:6112: checking for $ac_func" >&5
6112 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6113 echo $ac_n "(cached) $ac_c" 1>&6
6114 else
6115 cat > conftest.$ac_ext <<EOF
6116 #line 6117 "configure"
6117 #include "confdefs.h"
6118 /* System header to define __stub macros and hopefully few prototypes,
6119 which can conflict with char $ac_func(); below. */
6120 #include <assert.h>
6121 /* Override any gcc2 internal prototype to avoid an error. */
6122 /* We use char because int might match the return type of a gcc2
6123 builtin and then its argument prototype would still apply. */
6124 char $ac_func();
6126 int main() {
6128 /* The GNU C library defines this for functions which it implements
6129 to always fail with ENOSYS. Some functions are actually named
6130 something starting with __ and the normal name is an alias. */
6131 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6132 choke me
6133 #else
6134 $ac_func();
6135 #endif
6137 ; return 0; }
6139 if { (eval echo configure:6140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6140 rm -rf conftest*
6141 eval "ac_cv_func_$ac_func=yes"
6142 else
6143 echo "configure: failed program was:" >&5
6144 cat conftest.$ac_ext >&5
6145 rm -rf conftest*
6146 eval "ac_cv_func_$ac_func=no"
6148 rm -f conftest*
6151 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6152 echo "$ac_t""yes" 1>&6
6153 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6154 cat >> confdefs.h <<EOF
6155 #define $ac_tr_func 1
6158 else
6159 echo "$ac_t""no" 1>&6
6161 done
6163 for ac_func in _stat _lstat _fstat __stat __lstat __fstat
6165 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6166 echo "configure:6167: checking for $ac_func" >&5
6167 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6168 echo $ac_n "(cached) $ac_c" 1>&6
6169 else
6170 cat > conftest.$ac_ext <<EOF
6171 #line 6172 "configure"
6172 #include "confdefs.h"
6173 /* System header to define __stub macros and hopefully few prototypes,
6174 which can conflict with char $ac_func(); below. */
6175 #include <assert.h>
6176 /* Override any gcc2 internal prototype to avoid an error. */
6177 /* We use char because int might match the return type of a gcc2
6178 builtin and then its argument prototype would still apply. */
6179 char $ac_func();
6181 int main() {
6183 /* The GNU C library defines this for functions which it implements
6184 to always fail with ENOSYS. Some functions are actually named
6185 something starting with __ and the normal name is an alias. */
6186 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6187 choke me
6188 #else
6189 $ac_func();
6190 #endif
6192 ; return 0; }
6194 if { (eval echo configure:6195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6195 rm -rf conftest*
6196 eval "ac_cv_func_$ac_func=yes"
6197 else
6198 echo "configure: failed program was:" >&5
6199 cat conftest.$ac_ext >&5
6200 rm -rf conftest*
6201 eval "ac_cv_func_$ac_func=no"
6203 rm -f conftest*
6206 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6207 echo "$ac_t""yes" 1>&6
6208 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6209 cat >> confdefs.h <<EOF
6210 #define $ac_tr_func 1
6213 else
6214 echo "$ac_t""no" 1>&6
6216 done
6218 for ac_func in _acl __acl _facl __facl _open __open _chdir __chdir
6220 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6221 echo "configure:6222: checking for $ac_func" >&5
6222 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6223 echo $ac_n "(cached) $ac_c" 1>&6
6224 else
6225 cat > conftest.$ac_ext <<EOF
6226 #line 6227 "configure"
6227 #include "confdefs.h"
6228 /* System header to define __stub macros and hopefully few prototypes,
6229 which can conflict with char $ac_func(); below. */
6230 #include <assert.h>
6231 /* Override any gcc2 internal prototype to avoid an error. */
6232 /* We use char because int might match the return type of a gcc2
6233 builtin and then its argument prototype would still apply. */
6234 char $ac_func();
6236 int main() {
6238 /* The GNU C library defines this for functions which it implements
6239 to always fail with ENOSYS. Some functions are actually named
6240 something starting with __ and the normal name is an alias. */
6241 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6242 choke me
6243 #else
6244 $ac_func();
6245 #endif
6247 ; return 0; }
6249 if { (eval echo configure:6250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6250 rm -rf conftest*
6251 eval "ac_cv_func_$ac_func=yes"
6252 else
6253 echo "configure: failed program was:" >&5
6254 cat conftest.$ac_ext >&5
6255 rm -rf conftest*
6256 eval "ac_cv_func_$ac_func=no"
6258 rm -f conftest*
6261 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6262 echo "$ac_t""yes" 1>&6
6263 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6264 cat >> confdefs.h <<EOF
6265 #define $ac_tr_func 1
6268 else
6269 echo "$ac_t""no" 1>&6
6271 done
6273 for ac_func in _close __close _fchdir __fchdir _fcntl __fcntl
6275 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6276 echo "configure:6277: checking for $ac_func" >&5
6277 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6278 echo $ac_n "(cached) $ac_c" 1>&6
6279 else
6280 cat > conftest.$ac_ext <<EOF
6281 #line 6282 "configure"
6282 #include "confdefs.h"
6283 /* System header to define __stub macros and hopefully few prototypes,
6284 which can conflict with char $ac_func(); below. */
6285 #include <assert.h>
6286 /* Override any gcc2 internal prototype to avoid an error. */
6287 /* We use char because int might match the return type of a gcc2
6288 builtin and then its argument prototype would still apply. */
6289 char $ac_func();
6291 int main() {
6293 /* The GNU C library defines this for functions which it implements
6294 to always fail with ENOSYS. Some functions are actually named
6295 something starting with __ and the normal name is an alias. */
6296 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6297 choke me
6298 #else
6299 $ac_func();
6300 #endif
6302 ; return 0; }
6304 if { (eval echo configure:6305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6305 rm -rf conftest*
6306 eval "ac_cv_func_$ac_func=yes"
6307 else
6308 echo "configure: failed program was:" >&5
6309 cat conftest.$ac_ext >&5
6310 rm -rf conftest*
6311 eval "ac_cv_func_$ac_func=no"
6313 rm -f conftest*
6316 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6317 echo "$ac_t""yes" 1>&6
6318 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6319 cat >> confdefs.h <<EOF
6320 #define $ac_tr_func 1
6323 else
6324 echo "$ac_t""no" 1>&6
6326 done
6328 for ac_func in getdents _getdents __getdents _lseek __lseek _read __read
6330 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6331 echo "configure:6332: checking for $ac_func" >&5
6332 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6333 echo $ac_n "(cached) $ac_c" 1>&6
6334 else
6335 cat > conftest.$ac_ext <<EOF
6336 #line 6337 "configure"
6337 #include "confdefs.h"
6338 /* System header to define __stub macros and hopefully few prototypes,
6339 which can conflict with char $ac_func(); below. */
6340 #include <assert.h>
6341 /* Override any gcc2 internal prototype to avoid an error. */
6342 /* We use char because int might match the return type of a gcc2
6343 builtin and then its argument prototype would still apply. */
6344 char $ac_func();
6346 int main() {
6348 /* The GNU C library defines this for functions which it implements
6349 to always fail with ENOSYS. Some functions are actually named
6350 something starting with __ and the normal name is an alias. */
6351 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6352 choke me
6353 #else
6354 $ac_func();
6355 #endif
6357 ; return 0; }
6359 if { (eval echo configure:6360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6360 rm -rf conftest*
6361 eval "ac_cv_func_$ac_func=yes"
6362 else
6363 echo "configure: failed program was:" >&5
6364 cat conftest.$ac_ext >&5
6365 rm -rf conftest*
6366 eval "ac_cv_func_$ac_func=no"
6368 rm -f conftest*
6371 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6372 echo "$ac_t""yes" 1>&6
6373 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6374 cat >> confdefs.h <<EOF
6375 #define $ac_tr_func 1
6378 else
6379 echo "$ac_t""no" 1>&6
6381 done
6383 for ac_func in _write __write _fork __fork
6385 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6386 echo "configure:6387: checking for $ac_func" >&5
6387 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6388 echo $ac_n "(cached) $ac_c" 1>&6
6389 else
6390 cat > conftest.$ac_ext <<EOF
6391 #line 6392 "configure"
6392 #include "confdefs.h"
6393 /* System header to define __stub macros and hopefully few prototypes,
6394 which can conflict with char $ac_func(); below. */
6395 #include <assert.h>
6396 /* Override any gcc2 internal prototype to avoid an error. */
6397 /* We use char because int might match the return type of a gcc2
6398 builtin and then its argument prototype would still apply. */
6399 char $ac_func();
6401 int main() {
6403 /* The GNU C library defines this for functions which it implements
6404 to always fail with ENOSYS. Some functions are actually named
6405 something starting with __ and the normal name is an alias. */
6406 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6407 choke me
6408 #else
6409 $ac_func();
6410 #endif
6412 ; return 0; }
6414 if { (eval echo configure:6415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6415 rm -rf conftest*
6416 eval "ac_cv_func_$ac_func=yes"
6417 else
6418 echo "configure: failed program was:" >&5
6419 cat conftest.$ac_ext >&5
6420 rm -rf conftest*
6421 eval "ac_cv_func_$ac_func=no"
6423 rm -f conftest*
6426 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6427 echo "$ac_t""yes" 1>&6
6428 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6429 cat >> confdefs.h <<EOF
6430 #define $ac_tr_func 1
6433 else
6434 echo "$ac_t""no" 1>&6
6436 done
6438 for ac_func in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
6440 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6441 echo "configure:6442: checking for $ac_func" >&5
6442 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6443 echo $ac_n "(cached) $ac_c" 1>&6
6444 else
6445 cat > conftest.$ac_ext <<EOF
6446 #line 6447 "configure"
6447 #include "confdefs.h"
6448 /* System header to define __stub macros and hopefully few prototypes,
6449 which can conflict with char $ac_func(); below. */
6450 #include <assert.h>
6451 /* Override any gcc2 internal prototype to avoid an error. */
6452 /* We use char because int might match the return type of a gcc2
6453 builtin and then its argument prototype would still apply. */
6454 char $ac_func();
6456 int main() {
6458 /* The GNU C library defines this for functions which it implements
6459 to always fail with ENOSYS. Some functions are actually named
6460 something starting with __ and the normal name is an alias. */
6461 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6462 choke me
6463 #else
6464 $ac_func();
6465 #endif
6467 ; return 0; }
6469 if { (eval echo configure:6470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6470 rm -rf conftest*
6471 eval "ac_cv_func_$ac_func=yes"
6472 else
6473 echo "configure: failed program was:" >&5
6474 cat conftest.$ac_ext >&5
6475 rm -rf conftest*
6476 eval "ac_cv_func_$ac_func=no"
6478 rm -f conftest*
6481 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6482 echo "$ac_t""yes" 1>&6
6483 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6484 cat >> confdefs.h <<EOF
6485 #define $ac_tr_func 1
6488 else
6489 echo "$ac_t""no" 1>&6
6491 done
6493 for ac_func in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
6495 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6496 echo "configure:6497: checking for $ac_func" >&5
6497 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6498 echo $ac_n "(cached) $ac_c" 1>&6
6499 else
6500 cat > conftest.$ac_ext <<EOF
6501 #line 6502 "configure"
6502 #include "confdefs.h"
6503 /* System header to define __stub macros and hopefully few prototypes,
6504 which can conflict with char $ac_func(); below. */
6505 #include <assert.h>
6506 /* Override any gcc2 internal prototype to avoid an error. */
6507 /* We use char because int might match the return type of a gcc2
6508 builtin and then its argument prototype would still apply. */
6509 char $ac_func();
6511 int main() {
6513 /* The GNU C library defines this for functions which it implements
6514 to always fail with ENOSYS. Some functions are actually named
6515 something starting with __ and the normal name is an alias. */
6516 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6517 choke me
6518 #else
6519 $ac_func();
6520 #endif
6522 ; return 0; }
6524 if { (eval echo configure:6525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6525 rm -rf conftest*
6526 eval "ac_cv_func_$ac_func=yes"
6527 else
6528 echo "configure: failed program was:" >&5
6529 cat conftest.$ac_ext >&5
6530 rm -rf conftest*
6531 eval "ac_cv_func_$ac_func=no"
6533 rm -f conftest*
6536 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6537 echo "$ac_t""yes" 1>&6
6538 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6539 cat >> confdefs.h <<EOF
6540 #define $ac_tr_func 1
6543 else
6544 echo "$ac_t""no" 1>&6
6546 done
6548 for ac_func in pread _pread __pread pread64 _pread64 __pread64
6550 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6551 echo "configure:6552: checking for $ac_func" >&5
6552 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6553 echo $ac_n "(cached) $ac_c" 1>&6
6554 else
6555 cat > conftest.$ac_ext <<EOF
6556 #line 6557 "configure"
6557 #include "confdefs.h"
6558 /* System header to define __stub macros and hopefully few prototypes,
6559 which can conflict with char $ac_func(); below. */
6560 #include <assert.h>
6561 /* Override any gcc2 internal prototype to avoid an error. */
6562 /* We use char because int might match the return type of a gcc2
6563 builtin and then its argument prototype would still apply. */
6564 char $ac_func();
6566 int main() {
6568 /* The GNU C library defines this for functions which it implements
6569 to always fail with ENOSYS. Some functions are actually named
6570 something starting with __ and the normal name is an alias. */
6571 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6572 choke me
6573 #else
6574 $ac_func();
6575 #endif
6577 ; return 0; }
6579 if { (eval echo configure:6580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6580 rm -rf conftest*
6581 eval "ac_cv_func_$ac_func=yes"
6582 else
6583 echo "configure: failed program was:" >&5
6584 cat conftest.$ac_ext >&5
6585 rm -rf conftest*
6586 eval "ac_cv_func_$ac_func=no"
6588 rm -f conftest*
6591 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6592 echo "$ac_t""yes" 1>&6
6593 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6594 cat >> confdefs.h <<EOF
6595 #define $ac_tr_func 1
6598 else
6599 echo "$ac_t""no" 1>&6
6601 done
6603 for ac_func in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
6605 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6606 echo "configure:6607: checking for $ac_func" >&5
6607 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6608 echo $ac_n "(cached) $ac_c" 1>&6
6609 else
6610 cat > conftest.$ac_ext <<EOF
6611 #line 6612 "configure"
6612 #include "confdefs.h"
6613 /* System header to define __stub macros and hopefully few prototypes,
6614 which can conflict with char $ac_func(); below. */
6615 #include <assert.h>
6616 /* Override any gcc2 internal prototype to avoid an error. */
6617 /* We use char because int might match the return type of a gcc2
6618 builtin and then its argument prototype would still apply. */
6619 char $ac_func();
6621 int main() {
6623 /* The GNU C library defines this for functions which it implements
6624 to always fail with ENOSYS. Some functions are actually named
6625 something starting with __ and the normal name is an alias. */
6626 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6627 choke me
6628 #else
6629 $ac_func();
6630 #endif
6632 ; return 0; }
6634 if { (eval echo configure:6635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6635 rm -rf conftest*
6636 eval "ac_cv_func_$ac_func=yes"
6637 else
6638 echo "configure: failed program was:" >&5
6639 cat conftest.$ac_ext >&5
6640 rm -rf conftest*
6641 eval "ac_cv_func_$ac_func=no"
6643 rm -f conftest*
6646 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6647 echo "$ac_t""yes" 1>&6
6648 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6649 cat >> confdefs.h <<EOF
6650 #define $ac_tr_func 1
6653 else
6654 echo "$ac_t""no" 1>&6
6656 done
6658 for ac_func in open64 _open64 __open64 creat64
6660 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6661 echo "configure:6662: checking for $ac_func" >&5
6662 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6663 echo $ac_n "(cached) $ac_c" 1>&6
6664 else
6665 cat > conftest.$ac_ext <<EOF
6666 #line 6667 "configure"
6667 #include "confdefs.h"
6668 /* System header to define __stub macros and hopefully few prototypes,
6669 which can conflict with char $ac_func(); below. */
6670 #include <assert.h>
6671 /* Override any gcc2 internal prototype to avoid an error. */
6672 /* We use char because int might match the return type of a gcc2
6673 builtin and then its argument prototype would still apply. */
6674 char $ac_func();
6676 int main() {
6678 /* The GNU C library defines this for functions which it implements
6679 to always fail with ENOSYS. Some functions are actually named
6680 something starting with __ and the normal name is an alias. */
6681 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6682 choke me
6683 #else
6684 $ac_func();
6685 #endif
6687 ; return 0; }
6689 if { (eval echo configure:6690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6690 rm -rf conftest*
6691 eval "ac_cv_func_$ac_func=yes"
6692 else
6693 echo "configure: failed program was:" >&5
6694 cat conftest.$ac_ext >&5
6695 rm -rf conftest*
6696 eval "ac_cv_func_$ac_func=no"
6698 rm -f conftest*
6701 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6702 echo "$ac_t""yes" 1>&6
6703 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6704 cat >> confdefs.h <<EOF
6705 #define $ac_tr_func 1
6708 else
6709 echo "$ac_t""no" 1>&6
6711 done
6715 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
6718 if test x$ac_cv_func_stat64 = xno ; then
6719 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
6720 echo "configure:6721: checking for stat64 in <sys/stat.h>" >&5
6721 cat > conftest.$ac_ext <<EOF
6722 #line 6723 "configure"
6723 #include "confdefs.h"
6725 #if defined(HAVE_UNISTD_H)
6726 #include <unistd.h>
6727 #endif
6728 #include <sys/stat.h>
6730 int main() {
6731 struct stat64 st64; exit(stat64(".",&st64));
6732 ; return 0; }
6734 if { (eval echo configure:6735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6735 rm -rf conftest*
6736 ac_cv_func_stat64=yes
6737 else
6738 echo "configure: failed program was:" >&5
6739 cat conftest.$ac_ext >&5
6741 rm -f conftest*
6742 echo "$ac_t""$ac_cv_func_stat64" 1>&6
6743 if test x$ac_cv_func_stat64 = xyes ; then
6744 cat >> confdefs.h <<\EOF
6745 #define HAVE_STAT64 1
6751 if test x$ac_cv_func_lstat64 = xno ; then
6752 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
6753 echo "configure:6754: checking for lstat64 in <sys/stat.h>" >&5
6754 cat > conftest.$ac_ext <<EOF
6755 #line 6756 "configure"
6756 #include "confdefs.h"
6758 #if defined(HAVE_UNISTD_H)
6759 #include <unistd.h>
6760 #endif
6761 #include <sys/stat.h>
6763 int main() {
6764 struct stat64 st64; exit(lstat64(".",&st64));
6765 ; return 0; }
6767 if { (eval echo configure:6768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6768 rm -rf conftest*
6769 ac_cv_func_lstat64=yes
6770 else
6771 echo "configure: failed program was:" >&5
6772 cat conftest.$ac_ext >&5
6774 rm -f conftest*
6775 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
6776 if test x$ac_cv_func_lstat64 = xyes ; then
6777 cat >> confdefs.h <<\EOF
6778 #define HAVE_LSTAT64 1
6784 if test x$ac_cv_func_fstat64 = xno ; then
6785 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
6786 echo "configure:6787: checking for fstat64 in <sys/stat.h>" >&5
6787 cat > conftest.$ac_ext <<EOF
6788 #line 6789 "configure"
6789 #include "confdefs.h"
6791 #if defined(HAVE_UNISTD_H)
6792 #include <unistd.h>
6793 #endif
6794 #include <sys/stat.h>
6796 int main() {
6797 struct stat64 st64; exit(fstat64(0,&st64));
6798 ; return 0; }
6800 if { (eval echo configure:6801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6801 rm -rf conftest*
6802 ac_cv_func_fstat64=yes
6803 else
6804 echo "configure: failed program was:" >&5
6805 cat conftest.$ac_ext >&5
6807 rm -f conftest*
6808 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
6809 if test x$ac_cv_func_fstat64 = xyes ; then
6810 cat >> confdefs.h <<\EOF
6811 #define HAVE_FSTAT64 1
6818 # If no strcasecmp, check for it in some known places
6819 # It is in -lresolv on ReliantUNIX and UnixWare
6820 # -lresolve *must* follow -lnsl for name resolution to work properly
6823 if test x$ac_cv_func_strcasecmp = xno ; then
6824 echo $ac_n "checking for strcasecmp in -lresolv""... $ac_c" 1>&6
6825 echo "configure:6826: checking for strcasecmp in -lresolv" >&5
6826 ac_lib_var=`echo resolv'_'strcasecmp | sed 'y%./+-%__p_%'`
6827 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6828 echo $ac_n "(cached) $ac_c" 1>&6
6829 else
6830 ac_save_LIBS="$LIBS"
6831 LIBS="-lresolv $LIBS"
6832 cat > conftest.$ac_ext <<EOF
6833 #line 6834 "configure"
6834 #include "confdefs.h"
6835 /* Override any gcc2 internal prototype to avoid an error. */
6836 /* We use char because int might match the return type of a gcc2
6837 builtin and then its argument prototype would still apply. */
6838 char strcasecmp();
6840 int main() {
6841 strcasecmp()
6842 ; return 0; }
6844 if { (eval echo configure:6845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6845 rm -rf conftest*
6846 eval "ac_cv_lib_$ac_lib_var=yes"
6847 else
6848 echo "configure: failed program was:" >&5
6849 cat conftest.$ac_ext >&5
6850 rm -rf conftest*
6851 eval "ac_cv_lib_$ac_lib_var=no"
6853 rm -f conftest*
6854 LIBS="$ac_save_LIBS"
6857 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6858 echo "$ac_t""yes" 1>&6
6859 LIBS="$LIBS -lresolv"
6860 cat >> confdefs.h <<\EOF
6861 #define HAVE_STRCASECMP 1
6864 else
6865 echo "$ac_t""no" 1>&6
6871 # Check for the functions putprpwnam, set_auth_parameters,
6872 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
6873 # Needed for OSF1 and HPUX.
6876 case "$LIBS" in
6877 *-lsecurity*) for ac_func in putprpwnam
6879 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6880 echo "configure:6881: checking for $ac_func" >&5
6881 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6882 echo $ac_n "(cached) $ac_c" 1>&6
6883 else
6884 cat > conftest.$ac_ext <<EOF
6885 #line 6886 "configure"
6886 #include "confdefs.h"
6887 /* System header to define __stub macros and hopefully few prototypes,
6888 which can conflict with char $ac_func(); below. */
6889 #include <assert.h>
6890 /* Override any gcc2 internal prototype to avoid an error. */
6891 /* We use char because int might match the return type of a gcc2
6892 builtin and then its argument prototype would still apply. */
6893 char $ac_func();
6895 int main() {
6897 /* The GNU C library defines this for functions which it implements
6898 to always fail with ENOSYS. Some functions are actually named
6899 something starting with __ and the normal name is an alias. */
6900 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6901 choke me
6902 #else
6903 $ac_func();
6904 #endif
6906 ; return 0; }
6908 if { (eval echo configure:6909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6909 rm -rf conftest*
6910 eval "ac_cv_func_$ac_func=yes"
6911 else
6912 echo "configure: failed program was:" >&5
6913 cat conftest.$ac_ext >&5
6914 rm -rf conftest*
6915 eval "ac_cv_func_$ac_func=no"
6917 rm -f conftest*
6920 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6921 echo "$ac_t""yes" 1>&6
6922 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6923 cat >> confdefs.h <<EOF
6924 #define $ac_tr_func 1
6927 else
6928 echo "$ac_t""no" 1>&6
6930 done
6932 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
6933 echo "configure:6934: checking for putprpwnam in -lsecurity" >&5
6934 ac_lib_var=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
6935 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6936 echo $ac_n "(cached) $ac_c" 1>&6
6937 else
6938 ac_save_LIBS="$LIBS"
6939 LIBS="-lsecurity $LIBS"
6940 cat > conftest.$ac_ext <<EOF
6941 #line 6942 "configure"
6942 #include "confdefs.h"
6943 /* Override any gcc2 internal prototype to avoid an error. */
6944 /* We use char because int might match the return type of a gcc2
6945 builtin and then its argument prototype would still apply. */
6946 char putprpwnam();
6948 int main() {
6949 putprpwnam()
6950 ; return 0; }
6952 if { (eval echo configure:6953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6953 rm -rf conftest*
6954 eval "ac_cv_lib_$ac_lib_var=yes"
6955 else
6956 echo "configure: failed program was:" >&5
6957 cat conftest.$ac_ext >&5
6958 rm -rf conftest*
6959 eval "ac_cv_lib_$ac_lib_var=no"
6961 rm -f conftest*
6962 LIBS="$ac_save_LIBS"
6965 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6966 echo "$ac_t""yes" 1>&6
6967 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6968 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6969 cat >> confdefs.h <<EOF
6970 #define $ac_tr_lib 1
6973 LIBS="-lsecurity $LIBS"
6975 else
6976 echo "$ac_t""no" 1>&6
6979 for ac_func in putprpwnam
6981 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6982 echo "configure:6983: checking for $ac_func" >&5
6983 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6984 echo $ac_n "(cached) $ac_c" 1>&6
6985 else
6986 cat > conftest.$ac_ext <<EOF
6987 #line 6988 "configure"
6988 #include "confdefs.h"
6989 /* System header to define __stub macros and hopefully few prototypes,
6990 which can conflict with char $ac_func(); below. */
6991 #include <assert.h>
6992 /* Override any gcc2 internal prototype to avoid an error. */
6993 /* We use char because int might match the return type of a gcc2
6994 builtin and then its argument prototype would still apply. */
6995 char $ac_func();
6997 int main() {
6999 /* The GNU C library defines this for functions which it implements
7000 to always fail with ENOSYS. Some functions are actually named
7001 something starting with __ and the normal name is an alias. */
7002 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7003 choke me
7004 #else
7005 $ac_func();
7006 #endif
7008 ; return 0; }
7010 if { (eval echo configure:7011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7011 rm -rf conftest*
7012 eval "ac_cv_func_$ac_func=yes"
7013 else
7014 echo "configure: failed program was:" >&5
7015 cat conftest.$ac_ext >&5
7016 rm -rf conftest*
7017 eval "ac_cv_func_$ac_func=no"
7019 rm -f conftest*
7022 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7023 echo "$ac_t""yes" 1>&6
7024 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7025 cat >> confdefs.h <<EOF
7026 #define $ac_tr_func 1
7029 else
7030 echo "$ac_t""no" 1>&6
7032 done
7035 esac
7037 case "$LIBS" in
7038 *-lsec*) for ac_func in putprpwnam
7040 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7041 echo "configure:7042: checking for $ac_func" >&5
7042 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7043 echo $ac_n "(cached) $ac_c" 1>&6
7044 else
7045 cat > conftest.$ac_ext <<EOF
7046 #line 7047 "configure"
7047 #include "confdefs.h"
7048 /* System header to define __stub macros and hopefully few prototypes,
7049 which can conflict with char $ac_func(); below. */
7050 #include <assert.h>
7051 /* Override any gcc2 internal prototype to avoid an error. */
7052 /* We use char because int might match the return type of a gcc2
7053 builtin and then its argument prototype would still apply. */
7054 char $ac_func();
7056 int main() {
7058 /* The GNU C library defines this for functions which it implements
7059 to always fail with ENOSYS. Some functions are actually named
7060 something starting with __ and the normal name is an alias. */
7061 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7062 choke me
7063 #else
7064 $ac_func();
7065 #endif
7067 ; return 0; }
7069 if { (eval echo configure:7070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7070 rm -rf conftest*
7071 eval "ac_cv_func_$ac_func=yes"
7072 else
7073 echo "configure: failed program was:" >&5
7074 cat conftest.$ac_ext >&5
7075 rm -rf conftest*
7076 eval "ac_cv_func_$ac_func=no"
7078 rm -f conftest*
7081 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7082 echo "$ac_t""yes" 1>&6
7083 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7084 cat >> confdefs.h <<EOF
7085 #define $ac_tr_func 1
7088 else
7089 echo "$ac_t""no" 1>&6
7091 done
7093 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
7094 echo "configure:7095: checking for putprpwnam in -lsec" >&5
7095 ac_lib_var=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
7096 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7097 echo $ac_n "(cached) $ac_c" 1>&6
7098 else
7099 ac_save_LIBS="$LIBS"
7100 LIBS="-lsec $LIBS"
7101 cat > conftest.$ac_ext <<EOF
7102 #line 7103 "configure"
7103 #include "confdefs.h"
7104 /* Override any gcc2 internal prototype to avoid an error. */
7105 /* We use char because int might match the return type of a gcc2
7106 builtin and then its argument prototype would still apply. */
7107 char putprpwnam();
7109 int main() {
7110 putprpwnam()
7111 ; return 0; }
7113 if { (eval echo configure:7114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7114 rm -rf conftest*
7115 eval "ac_cv_lib_$ac_lib_var=yes"
7116 else
7117 echo "configure: failed program was:" >&5
7118 cat conftest.$ac_ext >&5
7119 rm -rf conftest*
7120 eval "ac_cv_lib_$ac_lib_var=no"
7122 rm -f conftest*
7123 LIBS="$ac_save_LIBS"
7126 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7127 echo "$ac_t""yes" 1>&6
7128 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7129 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7130 cat >> confdefs.h <<EOF
7131 #define $ac_tr_lib 1
7134 LIBS="-lsec $LIBS"
7136 else
7137 echo "$ac_t""no" 1>&6
7140 for ac_func in putprpwnam
7142 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7143 echo "configure:7144: checking for $ac_func" >&5
7144 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7145 echo $ac_n "(cached) $ac_c" 1>&6
7146 else
7147 cat > conftest.$ac_ext <<EOF
7148 #line 7149 "configure"
7149 #include "confdefs.h"
7150 /* System header to define __stub macros and hopefully few prototypes,
7151 which can conflict with char $ac_func(); below. */
7152 #include <assert.h>
7153 /* Override any gcc2 internal prototype to avoid an error. */
7154 /* We use char because int might match the return type of a gcc2
7155 builtin and then its argument prototype would still apply. */
7156 char $ac_func();
7158 int main() {
7160 /* The GNU C library defines this for functions which it implements
7161 to always fail with ENOSYS. Some functions are actually named
7162 something starting with __ and the normal name is an alias. */
7163 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7164 choke me
7165 #else
7166 $ac_func();
7167 #endif
7169 ; return 0; }
7171 if { (eval echo configure:7172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7172 rm -rf conftest*
7173 eval "ac_cv_func_$ac_func=yes"
7174 else
7175 echo "configure: failed program was:" >&5
7176 cat conftest.$ac_ext >&5
7177 rm -rf conftest*
7178 eval "ac_cv_func_$ac_func=no"
7180 rm -f conftest*
7183 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7184 echo "$ac_t""yes" 1>&6
7185 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7186 cat >> confdefs.h <<EOF
7187 #define $ac_tr_func 1
7190 else
7191 echo "$ac_t""no" 1>&6
7193 done
7196 esac
7199 case "$LIBS" in
7200 *-lsecurity*) for ac_func in set_auth_parameters
7202 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7203 echo "configure:7204: checking for $ac_func" >&5
7204 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7205 echo $ac_n "(cached) $ac_c" 1>&6
7206 else
7207 cat > conftest.$ac_ext <<EOF
7208 #line 7209 "configure"
7209 #include "confdefs.h"
7210 /* System header to define __stub macros and hopefully few prototypes,
7211 which can conflict with char $ac_func(); below. */
7212 #include <assert.h>
7213 /* Override any gcc2 internal prototype to avoid an error. */
7214 /* We use char because int might match the return type of a gcc2
7215 builtin and then its argument prototype would still apply. */
7216 char $ac_func();
7218 int main() {
7220 /* The GNU C library defines this for functions which it implements
7221 to always fail with ENOSYS. Some functions are actually named
7222 something starting with __ and the normal name is an alias. */
7223 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7224 choke me
7225 #else
7226 $ac_func();
7227 #endif
7229 ; return 0; }
7231 if { (eval echo configure:7232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7232 rm -rf conftest*
7233 eval "ac_cv_func_$ac_func=yes"
7234 else
7235 echo "configure: failed program was:" >&5
7236 cat conftest.$ac_ext >&5
7237 rm -rf conftest*
7238 eval "ac_cv_func_$ac_func=no"
7240 rm -f conftest*
7243 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7244 echo "$ac_t""yes" 1>&6
7245 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7246 cat >> confdefs.h <<EOF
7247 #define $ac_tr_func 1
7250 else
7251 echo "$ac_t""no" 1>&6
7253 done
7255 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
7256 echo "configure:7257: checking for set_auth_parameters in -lsecurity" >&5
7257 ac_lib_var=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7258 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7259 echo $ac_n "(cached) $ac_c" 1>&6
7260 else
7261 ac_save_LIBS="$LIBS"
7262 LIBS="-lsecurity $LIBS"
7263 cat > conftest.$ac_ext <<EOF
7264 #line 7265 "configure"
7265 #include "confdefs.h"
7266 /* Override any gcc2 internal prototype to avoid an error. */
7267 /* We use char because int might match the return type of a gcc2
7268 builtin and then its argument prototype would still apply. */
7269 char set_auth_parameters();
7271 int main() {
7272 set_auth_parameters()
7273 ; return 0; }
7275 if { (eval echo configure:7276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7276 rm -rf conftest*
7277 eval "ac_cv_lib_$ac_lib_var=yes"
7278 else
7279 echo "configure: failed program was:" >&5
7280 cat conftest.$ac_ext >&5
7281 rm -rf conftest*
7282 eval "ac_cv_lib_$ac_lib_var=no"
7284 rm -f conftest*
7285 LIBS="$ac_save_LIBS"
7288 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7289 echo "$ac_t""yes" 1>&6
7290 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7291 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7292 cat >> confdefs.h <<EOF
7293 #define $ac_tr_lib 1
7296 LIBS="-lsecurity $LIBS"
7298 else
7299 echo "$ac_t""no" 1>&6
7302 for ac_func in set_auth_parameters
7304 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7305 echo "configure:7306: checking for $ac_func" >&5
7306 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7307 echo $ac_n "(cached) $ac_c" 1>&6
7308 else
7309 cat > conftest.$ac_ext <<EOF
7310 #line 7311 "configure"
7311 #include "confdefs.h"
7312 /* System header to define __stub macros and hopefully few prototypes,
7313 which can conflict with char $ac_func(); below. */
7314 #include <assert.h>
7315 /* Override any gcc2 internal prototype to avoid an error. */
7316 /* We use char because int might match the return type of a gcc2
7317 builtin and then its argument prototype would still apply. */
7318 char $ac_func();
7320 int main() {
7322 /* The GNU C library defines this for functions which it implements
7323 to always fail with ENOSYS. Some functions are actually named
7324 something starting with __ and the normal name is an alias. */
7325 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7326 choke me
7327 #else
7328 $ac_func();
7329 #endif
7331 ; return 0; }
7333 if { (eval echo configure:7334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7334 rm -rf conftest*
7335 eval "ac_cv_func_$ac_func=yes"
7336 else
7337 echo "configure: failed program was:" >&5
7338 cat conftest.$ac_ext >&5
7339 rm -rf conftest*
7340 eval "ac_cv_func_$ac_func=no"
7342 rm -f conftest*
7345 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7346 echo "$ac_t""yes" 1>&6
7347 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7348 cat >> confdefs.h <<EOF
7349 #define $ac_tr_func 1
7352 else
7353 echo "$ac_t""no" 1>&6
7355 done
7358 esac
7360 case "$LIBS" in
7361 *-lsec*) for ac_func in set_auth_parameters
7363 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7364 echo "configure:7365: checking for $ac_func" >&5
7365 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7366 echo $ac_n "(cached) $ac_c" 1>&6
7367 else
7368 cat > conftest.$ac_ext <<EOF
7369 #line 7370 "configure"
7370 #include "confdefs.h"
7371 /* System header to define __stub macros and hopefully few prototypes,
7372 which can conflict with char $ac_func(); below. */
7373 #include <assert.h>
7374 /* Override any gcc2 internal prototype to avoid an error. */
7375 /* We use char because int might match the return type of a gcc2
7376 builtin and then its argument prototype would still apply. */
7377 char $ac_func();
7379 int main() {
7381 /* The GNU C library defines this for functions which it implements
7382 to always fail with ENOSYS. Some functions are actually named
7383 something starting with __ and the normal name is an alias. */
7384 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7385 choke me
7386 #else
7387 $ac_func();
7388 #endif
7390 ; return 0; }
7392 if { (eval echo configure:7393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7393 rm -rf conftest*
7394 eval "ac_cv_func_$ac_func=yes"
7395 else
7396 echo "configure: failed program was:" >&5
7397 cat conftest.$ac_ext >&5
7398 rm -rf conftest*
7399 eval "ac_cv_func_$ac_func=no"
7401 rm -f conftest*
7404 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7405 echo "$ac_t""yes" 1>&6
7406 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7407 cat >> confdefs.h <<EOF
7408 #define $ac_tr_func 1
7411 else
7412 echo "$ac_t""no" 1>&6
7414 done
7416 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
7417 echo "configure:7418: checking for set_auth_parameters in -lsec" >&5
7418 ac_lib_var=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7419 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7420 echo $ac_n "(cached) $ac_c" 1>&6
7421 else
7422 ac_save_LIBS="$LIBS"
7423 LIBS="-lsec $LIBS"
7424 cat > conftest.$ac_ext <<EOF
7425 #line 7426 "configure"
7426 #include "confdefs.h"
7427 /* Override any gcc2 internal prototype to avoid an error. */
7428 /* We use char because int might match the return type of a gcc2
7429 builtin and then its argument prototype would still apply. */
7430 char set_auth_parameters();
7432 int main() {
7433 set_auth_parameters()
7434 ; return 0; }
7436 if { (eval echo configure:7437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7437 rm -rf conftest*
7438 eval "ac_cv_lib_$ac_lib_var=yes"
7439 else
7440 echo "configure: failed program was:" >&5
7441 cat conftest.$ac_ext >&5
7442 rm -rf conftest*
7443 eval "ac_cv_lib_$ac_lib_var=no"
7445 rm -f conftest*
7446 LIBS="$ac_save_LIBS"
7449 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7450 echo "$ac_t""yes" 1>&6
7451 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7452 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7453 cat >> confdefs.h <<EOF
7454 #define $ac_tr_lib 1
7457 LIBS="-lsec $LIBS"
7459 else
7460 echo "$ac_t""no" 1>&6
7463 for ac_func in set_auth_parameters
7465 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7466 echo "configure:7467: checking for $ac_func" >&5
7467 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7468 echo $ac_n "(cached) $ac_c" 1>&6
7469 else
7470 cat > conftest.$ac_ext <<EOF
7471 #line 7472 "configure"
7472 #include "confdefs.h"
7473 /* System header to define __stub macros and hopefully few prototypes,
7474 which can conflict with char $ac_func(); below. */
7475 #include <assert.h>
7476 /* Override any gcc2 internal prototype to avoid an error. */
7477 /* We use char because int might match the return type of a gcc2
7478 builtin and then its argument prototype would still apply. */
7479 char $ac_func();
7481 int main() {
7483 /* The GNU C library defines this for functions which it implements
7484 to always fail with ENOSYS. Some functions are actually named
7485 something starting with __ and the normal name is an alias. */
7486 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7487 choke me
7488 #else
7489 $ac_func();
7490 #endif
7492 ; return 0; }
7494 if { (eval echo configure:7495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7495 rm -rf conftest*
7496 eval "ac_cv_func_$ac_func=yes"
7497 else
7498 echo "configure: failed program was:" >&5
7499 cat conftest.$ac_ext >&5
7500 rm -rf conftest*
7501 eval "ac_cv_func_$ac_func=no"
7503 rm -f conftest*
7506 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7507 echo "$ac_t""yes" 1>&6
7508 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7509 cat >> confdefs.h <<EOF
7510 #define $ac_tr_func 1
7513 else
7514 echo "$ac_t""no" 1>&6
7516 done
7519 esac
7522 # UnixWare 7.x has its getspnam in -lgen
7523 case "$LIBS" in
7524 *-lgen*) for ac_func in getspnam
7526 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7527 echo "configure:7528: checking for $ac_func" >&5
7528 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7529 echo $ac_n "(cached) $ac_c" 1>&6
7530 else
7531 cat > conftest.$ac_ext <<EOF
7532 #line 7533 "configure"
7533 #include "confdefs.h"
7534 /* System header to define __stub macros and hopefully few prototypes,
7535 which can conflict with char $ac_func(); below. */
7536 #include <assert.h>
7537 /* Override any gcc2 internal prototype to avoid an error. */
7538 /* We use char because int might match the return type of a gcc2
7539 builtin and then its argument prototype would still apply. */
7540 char $ac_func();
7542 int main() {
7544 /* The GNU C library defines this for functions which it implements
7545 to always fail with ENOSYS. Some functions are actually named
7546 something starting with __ and the normal name is an alias. */
7547 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7548 choke me
7549 #else
7550 $ac_func();
7551 #endif
7553 ; return 0; }
7555 if { (eval echo configure:7556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7556 rm -rf conftest*
7557 eval "ac_cv_func_$ac_func=yes"
7558 else
7559 echo "configure: failed program was:" >&5
7560 cat conftest.$ac_ext >&5
7561 rm -rf conftest*
7562 eval "ac_cv_func_$ac_func=no"
7564 rm -f conftest*
7567 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7568 echo "$ac_t""yes" 1>&6
7569 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7570 cat >> confdefs.h <<EOF
7571 #define $ac_tr_func 1
7574 else
7575 echo "$ac_t""no" 1>&6
7577 done
7579 *) echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
7580 echo "configure:7581: checking for getspnam in -lgen" >&5
7581 ac_lib_var=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
7582 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7583 echo $ac_n "(cached) $ac_c" 1>&6
7584 else
7585 ac_save_LIBS="$LIBS"
7586 LIBS="-lgen $LIBS"
7587 cat > conftest.$ac_ext <<EOF
7588 #line 7589 "configure"
7589 #include "confdefs.h"
7590 /* Override any gcc2 internal prototype to avoid an error. */
7591 /* We use char because int might match the return type of a gcc2
7592 builtin and then its argument prototype would still apply. */
7593 char getspnam();
7595 int main() {
7596 getspnam()
7597 ; return 0; }
7599 if { (eval echo configure:7600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7600 rm -rf conftest*
7601 eval "ac_cv_lib_$ac_lib_var=yes"
7602 else
7603 echo "configure: failed program was:" >&5
7604 cat conftest.$ac_ext >&5
7605 rm -rf conftest*
7606 eval "ac_cv_lib_$ac_lib_var=no"
7608 rm -f conftest*
7609 LIBS="$ac_save_LIBS"
7612 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7613 echo "$ac_t""yes" 1>&6
7614 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7615 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7616 cat >> confdefs.h <<EOF
7617 #define $ac_tr_lib 1
7620 LIBS="-lgen $LIBS"
7622 else
7623 echo "$ac_t""no" 1>&6
7626 for ac_func in getspnam
7628 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7629 echo "configure:7630: checking for $ac_func" >&5
7630 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7631 echo $ac_n "(cached) $ac_c" 1>&6
7632 else
7633 cat > conftest.$ac_ext <<EOF
7634 #line 7635 "configure"
7635 #include "confdefs.h"
7636 /* System header to define __stub macros and hopefully few prototypes,
7637 which can conflict with char $ac_func(); below. */
7638 #include <assert.h>
7639 /* Override any gcc2 internal prototype to avoid an error. */
7640 /* We use char because int might match the return type of a gcc2
7641 builtin and then its argument prototype would still apply. */
7642 char $ac_func();
7644 int main() {
7646 /* The GNU C library defines this for functions which it implements
7647 to always fail with ENOSYS. Some functions are actually named
7648 something starting with __ and the normal name is an alias. */
7649 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7650 choke me
7651 #else
7652 $ac_func();
7653 #endif
7655 ; return 0; }
7657 if { (eval echo configure:7658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7658 rm -rf conftest*
7659 eval "ac_cv_func_$ac_func=yes"
7660 else
7661 echo "configure: failed program was:" >&5
7662 cat conftest.$ac_ext >&5
7663 rm -rf conftest*
7664 eval "ac_cv_func_$ac_func=no"
7666 rm -f conftest*
7669 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7670 echo "$ac_t""yes" 1>&6
7671 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7672 cat >> confdefs.h <<EOF
7673 #define $ac_tr_func 1
7676 else
7677 echo "$ac_t""no" 1>&6
7679 done
7682 esac
7685 case "$LIBS" in
7686 *-lsecurity*) for ac_func in getspnam
7688 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7689 echo "configure:7690: checking for $ac_func" >&5
7690 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7691 echo $ac_n "(cached) $ac_c" 1>&6
7692 else
7693 cat > conftest.$ac_ext <<EOF
7694 #line 7695 "configure"
7695 #include "confdefs.h"
7696 /* System header to define __stub macros and hopefully few prototypes,
7697 which can conflict with char $ac_func(); below. */
7698 #include <assert.h>
7699 /* Override any gcc2 internal prototype to avoid an error. */
7700 /* We use char because int might match the return type of a gcc2
7701 builtin and then its argument prototype would still apply. */
7702 char $ac_func();
7704 int main() {
7706 /* The GNU C library defines this for functions which it implements
7707 to always fail with ENOSYS. Some functions are actually named
7708 something starting with __ and the normal name is an alias. */
7709 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7710 choke me
7711 #else
7712 $ac_func();
7713 #endif
7715 ; return 0; }
7717 if { (eval echo configure:7718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7718 rm -rf conftest*
7719 eval "ac_cv_func_$ac_func=yes"
7720 else
7721 echo "configure: failed program was:" >&5
7722 cat conftest.$ac_ext >&5
7723 rm -rf conftest*
7724 eval "ac_cv_func_$ac_func=no"
7726 rm -f conftest*
7729 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7730 echo "$ac_t""yes" 1>&6
7731 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7732 cat >> confdefs.h <<EOF
7733 #define $ac_tr_func 1
7736 else
7737 echo "$ac_t""no" 1>&6
7739 done
7741 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
7742 echo "configure:7743: checking for getspnam in -lsecurity" >&5
7743 ac_lib_var=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
7744 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7745 echo $ac_n "(cached) $ac_c" 1>&6
7746 else
7747 ac_save_LIBS="$LIBS"
7748 LIBS="-lsecurity $LIBS"
7749 cat > conftest.$ac_ext <<EOF
7750 #line 7751 "configure"
7751 #include "confdefs.h"
7752 /* Override any gcc2 internal prototype to avoid an error. */
7753 /* We use char because int might match the return type of a gcc2
7754 builtin and then its argument prototype would still apply. */
7755 char getspnam();
7757 int main() {
7758 getspnam()
7759 ; return 0; }
7761 if { (eval echo configure:7762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7762 rm -rf conftest*
7763 eval "ac_cv_lib_$ac_lib_var=yes"
7764 else
7765 echo "configure: failed program was:" >&5
7766 cat conftest.$ac_ext >&5
7767 rm -rf conftest*
7768 eval "ac_cv_lib_$ac_lib_var=no"
7770 rm -f conftest*
7771 LIBS="$ac_save_LIBS"
7774 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7775 echo "$ac_t""yes" 1>&6
7776 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7777 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7778 cat >> confdefs.h <<EOF
7779 #define $ac_tr_lib 1
7782 LIBS="-lsecurity $LIBS"
7784 else
7785 echo "$ac_t""no" 1>&6
7788 for ac_func in getspnam
7790 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7791 echo "configure:7792: checking for $ac_func" >&5
7792 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7793 echo $ac_n "(cached) $ac_c" 1>&6
7794 else
7795 cat > conftest.$ac_ext <<EOF
7796 #line 7797 "configure"
7797 #include "confdefs.h"
7798 /* System header to define __stub macros and hopefully few prototypes,
7799 which can conflict with char $ac_func(); below. */
7800 #include <assert.h>
7801 /* Override any gcc2 internal prototype to avoid an error. */
7802 /* We use char because int might match the return type of a gcc2
7803 builtin and then its argument prototype would still apply. */
7804 char $ac_func();
7806 int main() {
7808 /* The GNU C library defines this for functions which it implements
7809 to always fail with ENOSYS. Some functions are actually named
7810 something starting with __ and the normal name is an alias. */
7811 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7812 choke me
7813 #else
7814 $ac_func();
7815 #endif
7817 ; return 0; }
7819 if { (eval echo configure:7820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7820 rm -rf conftest*
7821 eval "ac_cv_func_$ac_func=yes"
7822 else
7823 echo "configure: failed program was:" >&5
7824 cat conftest.$ac_ext >&5
7825 rm -rf conftest*
7826 eval "ac_cv_func_$ac_func=no"
7828 rm -f conftest*
7831 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7832 echo "$ac_t""yes" 1>&6
7833 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7834 cat >> confdefs.h <<EOF
7835 #define $ac_tr_func 1
7838 else
7839 echo "$ac_t""no" 1>&6
7841 done
7844 esac
7846 case "$LIBS" in
7847 *-lsec*) for ac_func in getspnam
7849 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7850 echo "configure:7851: checking for $ac_func" >&5
7851 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7852 echo $ac_n "(cached) $ac_c" 1>&6
7853 else
7854 cat > conftest.$ac_ext <<EOF
7855 #line 7856 "configure"
7856 #include "confdefs.h"
7857 /* System header to define __stub macros and hopefully few prototypes,
7858 which can conflict with char $ac_func(); below. */
7859 #include <assert.h>
7860 /* Override any gcc2 internal prototype to avoid an error. */
7861 /* We use char because int might match the return type of a gcc2
7862 builtin and then its argument prototype would still apply. */
7863 char $ac_func();
7865 int main() {
7867 /* The GNU C library defines this for functions which it implements
7868 to always fail with ENOSYS. Some functions are actually named
7869 something starting with __ and the normal name is an alias. */
7870 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7871 choke me
7872 #else
7873 $ac_func();
7874 #endif
7876 ; return 0; }
7878 if { (eval echo configure:7879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7879 rm -rf conftest*
7880 eval "ac_cv_func_$ac_func=yes"
7881 else
7882 echo "configure: failed program was:" >&5
7883 cat conftest.$ac_ext >&5
7884 rm -rf conftest*
7885 eval "ac_cv_func_$ac_func=no"
7887 rm -f conftest*
7890 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7891 echo "$ac_t""yes" 1>&6
7892 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7893 cat >> confdefs.h <<EOF
7894 #define $ac_tr_func 1
7897 else
7898 echo "$ac_t""no" 1>&6
7900 done
7902 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
7903 echo "configure:7904: checking for getspnam in -lsec" >&5
7904 ac_lib_var=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
7905 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7906 echo $ac_n "(cached) $ac_c" 1>&6
7907 else
7908 ac_save_LIBS="$LIBS"
7909 LIBS="-lsec $LIBS"
7910 cat > conftest.$ac_ext <<EOF
7911 #line 7912 "configure"
7912 #include "confdefs.h"
7913 /* Override any gcc2 internal prototype to avoid an error. */
7914 /* We use char because int might match the return type of a gcc2
7915 builtin and then its argument prototype would still apply. */
7916 char getspnam();
7918 int main() {
7919 getspnam()
7920 ; return 0; }
7922 if { (eval echo configure:7923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7923 rm -rf conftest*
7924 eval "ac_cv_lib_$ac_lib_var=yes"
7925 else
7926 echo "configure: failed program was:" >&5
7927 cat conftest.$ac_ext >&5
7928 rm -rf conftest*
7929 eval "ac_cv_lib_$ac_lib_var=no"
7931 rm -f conftest*
7932 LIBS="$ac_save_LIBS"
7935 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7936 echo "$ac_t""yes" 1>&6
7937 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7938 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7939 cat >> confdefs.h <<EOF
7940 #define $ac_tr_lib 1
7943 LIBS="-lsec $LIBS"
7945 else
7946 echo "$ac_t""no" 1>&6
7949 for ac_func in getspnam
7951 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7952 echo "configure:7953: checking for $ac_func" >&5
7953 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7954 echo $ac_n "(cached) $ac_c" 1>&6
7955 else
7956 cat > conftest.$ac_ext <<EOF
7957 #line 7958 "configure"
7958 #include "confdefs.h"
7959 /* System header to define __stub macros and hopefully few prototypes,
7960 which can conflict with char $ac_func(); below. */
7961 #include <assert.h>
7962 /* Override any gcc2 internal prototype to avoid an error. */
7963 /* We use char because int might match the return type of a gcc2
7964 builtin and then its argument prototype would still apply. */
7965 char $ac_func();
7967 int main() {
7969 /* The GNU C library defines this for functions which it implements
7970 to always fail with ENOSYS. Some functions are actually named
7971 something starting with __ and the normal name is an alias. */
7972 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7973 choke me
7974 #else
7975 $ac_func();
7976 #endif
7978 ; return 0; }
7980 if { (eval echo configure:7981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7981 rm -rf conftest*
7982 eval "ac_cv_func_$ac_func=yes"
7983 else
7984 echo "configure: failed program was:" >&5
7985 cat conftest.$ac_ext >&5
7986 rm -rf conftest*
7987 eval "ac_cv_func_$ac_func=no"
7989 rm -f conftest*
7992 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7993 echo "$ac_t""yes" 1>&6
7994 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7995 cat >> confdefs.h <<EOF
7996 #define $ac_tr_func 1
7999 else
8000 echo "$ac_t""no" 1>&6
8002 done
8005 esac
8008 case "$LIBS" in
8009 *-lsecurity*) for ac_func in bigcrypt
8011 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8012 echo "configure:8013: checking for $ac_func" >&5
8013 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8014 echo $ac_n "(cached) $ac_c" 1>&6
8015 else
8016 cat > conftest.$ac_ext <<EOF
8017 #line 8018 "configure"
8018 #include "confdefs.h"
8019 /* System header to define __stub macros and hopefully few prototypes,
8020 which can conflict with char $ac_func(); below. */
8021 #include <assert.h>
8022 /* Override any gcc2 internal prototype to avoid an error. */
8023 /* We use char because int might match the return type of a gcc2
8024 builtin and then its argument prototype would still apply. */
8025 char $ac_func();
8027 int main() {
8029 /* The GNU C library defines this for functions which it implements
8030 to always fail with ENOSYS. Some functions are actually named
8031 something starting with __ and the normal name is an alias. */
8032 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8033 choke me
8034 #else
8035 $ac_func();
8036 #endif
8038 ; return 0; }
8040 if { (eval echo configure:8041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8041 rm -rf conftest*
8042 eval "ac_cv_func_$ac_func=yes"
8043 else
8044 echo "configure: failed program was:" >&5
8045 cat conftest.$ac_ext >&5
8046 rm -rf conftest*
8047 eval "ac_cv_func_$ac_func=no"
8049 rm -f conftest*
8052 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8053 echo "$ac_t""yes" 1>&6
8054 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8055 cat >> confdefs.h <<EOF
8056 #define $ac_tr_func 1
8059 else
8060 echo "$ac_t""no" 1>&6
8062 done
8064 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
8065 echo "configure:8066: checking for bigcrypt in -lsecurity" >&5
8066 ac_lib_var=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
8067 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8068 echo $ac_n "(cached) $ac_c" 1>&6
8069 else
8070 ac_save_LIBS="$LIBS"
8071 LIBS="-lsecurity $LIBS"
8072 cat > conftest.$ac_ext <<EOF
8073 #line 8074 "configure"
8074 #include "confdefs.h"
8075 /* Override any gcc2 internal prototype to avoid an error. */
8076 /* We use char because int might match the return type of a gcc2
8077 builtin and then its argument prototype would still apply. */
8078 char bigcrypt();
8080 int main() {
8081 bigcrypt()
8082 ; return 0; }
8084 if { (eval echo configure:8085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8085 rm -rf conftest*
8086 eval "ac_cv_lib_$ac_lib_var=yes"
8087 else
8088 echo "configure: failed program was:" >&5
8089 cat conftest.$ac_ext >&5
8090 rm -rf conftest*
8091 eval "ac_cv_lib_$ac_lib_var=no"
8093 rm -f conftest*
8094 LIBS="$ac_save_LIBS"
8097 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8098 echo "$ac_t""yes" 1>&6
8099 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8100 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8101 cat >> confdefs.h <<EOF
8102 #define $ac_tr_lib 1
8105 LIBS="-lsecurity $LIBS"
8107 else
8108 echo "$ac_t""no" 1>&6
8111 for ac_func in bigcrypt
8113 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8114 echo "configure:8115: checking for $ac_func" >&5
8115 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8116 echo $ac_n "(cached) $ac_c" 1>&6
8117 else
8118 cat > conftest.$ac_ext <<EOF
8119 #line 8120 "configure"
8120 #include "confdefs.h"
8121 /* System header to define __stub macros and hopefully few prototypes,
8122 which can conflict with char $ac_func(); below. */
8123 #include <assert.h>
8124 /* Override any gcc2 internal prototype to avoid an error. */
8125 /* We use char because int might match the return type of a gcc2
8126 builtin and then its argument prototype would still apply. */
8127 char $ac_func();
8129 int main() {
8131 /* The GNU C library defines this for functions which it implements
8132 to always fail with ENOSYS. Some functions are actually named
8133 something starting with __ and the normal name is an alias. */
8134 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8135 choke me
8136 #else
8137 $ac_func();
8138 #endif
8140 ; return 0; }
8142 if { (eval echo configure:8143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8143 rm -rf conftest*
8144 eval "ac_cv_func_$ac_func=yes"
8145 else
8146 echo "configure: failed program was:" >&5
8147 cat conftest.$ac_ext >&5
8148 rm -rf conftest*
8149 eval "ac_cv_func_$ac_func=no"
8151 rm -f conftest*
8154 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8155 echo "$ac_t""yes" 1>&6
8156 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8157 cat >> confdefs.h <<EOF
8158 #define $ac_tr_func 1
8161 else
8162 echo "$ac_t""no" 1>&6
8164 done
8167 esac
8169 case "$LIBS" in
8170 *-lsec*) for ac_func in bigcrypt
8172 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8173 echo "configure:8174: checking for $ac_func" >&5
8174 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8175 echo $ac_n "(cached) $ac_c" 1>&6
8176 else
8177 cat > conftest.$ac_ext <<EOF
8178 #line 8179 "configure"
8179 #include "confdefs.h"
8180 /* System header to define __stub macros and hopefully few prototypes,
8181 which can conflict with char $ac_func(); below. */
8182 #include <assert.h>
8183 /* Override any gcc2 internal prototype to avoid an error. */
8184 /* We use char because int might match the return type of a gcc2
8185 builtin and then its argument prototype would still apply. */
8186 char $ac_func();
8188 int main() {
8190 /* The GNU C library defines this for functions which it implements
8191 to always fail with ENOSYS. Some functions are actually named
8192 something starting with __ and the normal name is an alias. */
8193 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8194 choke me
8195 #else
8196 $ac_func();
8197 #endif
8199 ; return 0; }
8201 if { (eval echo configure:8202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8202 rm -rf conftest*
8203 eval "ac_cv_func_$ac_func=yes"
8204 else
8205 echo "configure: failed program was:" >&5
8206 cat conftest.$ac_ext >&5
8207 rm -rf conftest*
8208 eval "ac_cv_func_$ac_func=no"
8210 rm -f conftest*
8213 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8214 echo "$ac_t""yes" 1>&6
8215 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8216 cat >> confdefs.h <<EOF
8217 #define $ac_tr_func 1
8220 else
8221 echo "$ac_t""no" 1>&6
8223 done
8225 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
8226 echo "configure:8227: checking for bigcrypt in -lsec" >&5
8227 ac_lib_var=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
8228 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8229 echo $ac_n "(cached) $ac_c" 1>&6
8230 else
8231 ac_save_LIBS="$LIBS"
8232 LIBS="-lsec $LIBS"
8233 cat > conftest.$ac_ext <<EOF
8234 #line 8235 "configure"
8235 #include "confdefs.h"
8236 /* Override any gcc2 internal prototype to avoid an error. */
8237 /* We use char because int might match the return type of a gcc2
8238 builtin and then its argument prototype would still apply. */
8239 char bigcrypt();
8241 int main() {
8242 bigcrypt()
8243 ; return 0; }
8245 if { (eval echo configure:8246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8246 rm -rf conftest*
8247 eval "ac_cv_lib_$ac_lib_var=yes"
8248 else
8249 echo "configure: failed program was:" >&5
8250 cat conftest.$ac_ext >&5
8251 rm -rf conftest*
8252 eval "ac_cv_lib_$ac_lib_var=no"
8254 rm -f conftest*
8255 LIBS="$ac_save_LIBS"
8258 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8259 echo "$ac_t""yes" 1>&6
8260 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8261 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8262 cat >> confdefs.h <<EOF
8263 #define $ac_tr_lib 1
8266 LIBS="-lsec $LIBS"
8268 else
8269 echo "$ac_t""no" 1>&6
8272 for ac_func in bigcrypt
8274 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8275 echo "configure:8276: checking for $ac_func" >&5
8276 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8277 echo $ac_n "(cached) $ac_c" 1>&6
8278 else
8279 cat > conftest.$ac_ext <<EOF
8280 #line 8281 "configure"
8281 #include "confdefs.h"
8282 /* System header to define __stub macros and hopefully few prototypes,
8283 which can conflict with char $ac_func(); below. */
8284 #include <assert.h>
8285 /* Override any gcc2 internal prototype to avoid an error. */
8286 /* We use char because int might match the return type of a gcc2
8287 builtin and then its argument prototype would still apply. */
8288 char $ac_func();
8290 int main() {
8292 /* The GNU C library defines this for functions which it implements
8293 to always fail with ENOSYS. Some functions are actually named
8294 something starting with __ and the normal name is an alias. */
8295 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8296 choke me
8297 #else
8298 $ac_func();
8299 #endif
8301 ; return 0; }
8303 if { (eval echo configure:8304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8304 rm -rf conftest*
8305 eval "ac_cv_func_$ac_func=yes"
8306 else
8307 echo "configure: failed program was:" >&5
8308 cat conftest.$ac_ext >&5
8309 rm -rf conftest*
8310 eval "ac_cv_func_$ac_func=no"
8312 rm -f conftest*
8315 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8316 echo "$ac_t""yes" 1>&6
8317 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8318 cat >> confdefs.h <<EOF
8319 #define $ac_tr_func 1
8322 else
8323 echo "$ac_t""no" 1>&6
8325 done
8328 esac
8331 case "$LIBS" in
8332 *-lsecurity*) for ac_func in getprpwnam
8334 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8335 echo "configure:8336: checking for $ac_func" >&5
8336 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8337 echo $ac_n "(cached) $ac_c" 1>&6
8338 else
8339 cat > conftest.$ac_ext <<EOF
8340 #line 8341 "configure"
8341 #include "confdefs.h"
8342 /* System header to define __stub macros and hopefully few prototypes,
8343 which can conflict with char $ac_func(); below. */
8344 #include <assert.h>
8345 /* Override any gcc2 internal prototype to avoid an error. */
8346 /* We use char because int might match the return type of a gcc2
8347 builtin and then its argument prototype would still apply. */
8348 char $ac_func();
8350 int main() {
8352 /* The GNU C library defines this for functions which it implements
8353 to always fail with ENOSYS. Some functions are actually named
8354 something starting with __ and the normal name is an alias. */
8355 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8356 choke me
8357 #else
8358 $ac_func();
8359 #endif
8361 ; return 0; }
8363 if { (eval echo configure:8364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8364 rm -rf conftest*
8365 eval "ac_cv_func_$ac_func=yes"
8366 else
8367 echo "configure: failed program was:" >&5
8368 cat conftest.$ac_ext >&5
8369 rm -rf conftest*
8370 eval "ac_cv_func_$ac_func=no"
8372 rm -f conftest*
8375 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8376 echo "$ac_t""yes" 1>&6
8377 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8378 cat >> confdefs.h <<EOF
8379 #define $ac_tr_func 1
8382 else
8383 echo "$ac_t""no" 1>&6
8385 done
8387 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
8388 echo "configure:8389: checking for getprpwnam in -lsecurity" >&5
8389 ac_lib_var=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
8390 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8391 echo $ac_n "(cached) $ac_c" 1>&6
8392 else
8393 ac_save_LIBS="$LIBS"
8394 LIBS="-lsecurity $LIBS"
8395 cat > conftest.$ac_ext <<EOF
8396 #line 8397 "configure"
8397 #include "confdefs.h"
8398 /* Override any gcc2 internal prototype to avoid an error. */
8399 /* We use char because int might match the return type of a gcc2
8400 builtin and then its argument prototype would still apply. */
8401 char getprpwnam();
8403 int main() {
8404 getprpwnam()
8405 ; return 0; }
8407 if { (eval echo configure:8408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8408 rm -rf conftest*
8409 eval "ac_cv_lib_$ac_lib_var=yes"
8410 else
8411 echo "configure: failed program was:" >&5
8412 cat conftest.$ac_ext >&5
8413 rm -rf conftest*
8414 eval "ac_cv_lib_$ac_lib_var=no"
8416 rm -f conftest*
8417 LIBS="$ac_save_LIBS"
8420 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8421 echo "$ac_t""yes" 1>&6
8422 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8423 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8424 cat >> confdefs.h <<EOF
8425 #define $ac_tr_lib 1
8428 LIBS="-lsecurity $LIBS"
8430 else
8431 echo "$ac_t""no" 1>&6
8434 for ac_func in getprpwnam
8436 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8437 echo "configure:8438: checking for $ac_func" >&5
8438 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8439 echo $ac_n "(cached) $ac_c" 1>&6
8440 else
8441 cat > conftest.$ac_ext <<EOF
8442 #line 8443 "configure"
8443 #include "confdefs.h"
8444 /* System header to define __stub macros and hopefully few prototypes,
8445 which can conflict with char $ac_func(); below. */
8446 #include <assert.h>
8447 /* Override any gcc2 internal prototype to avoid an error. */
8448 /* We use char because int might match the return type of a gcc2
8449 builtin and then its argument prototype would still apply. */
8450 char $ac_func();
8452 int main() {
8454 /* The GNU C library defines this for functions which it implements
8455 to always fail with ENOSYS. Some functions are actually named
8456 something starting with __ and the normal name is an alias. */
8457 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8458 choke me
8459 #else
8460 $ac_func();
8461 #endif
8463 ; return 0; }
8465 if { (eval echo configure:8466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8466 rm -rf conftest*
8467 eval "ac_cv_func_$ac_func=yes"
8468 else
8469 echo "configure: failed program was:" >&5
8470 cat conftest.$ac_ext >&5
8471 rm -rf conftest*
8472 eval "ac_cv_func_$ac_func=no"
8474 rm -f conftest*
8477 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8478 echo "$ac_t""yes" 1>&6
8479 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8480 cat >> confdefs.h <<EOF
8481 #define $ac_tr_func 1
8484 else
8485 echo "$ac_t""no" 1>&6
8487 done
8490 esac
8492 case "$LIBS" in
8493 *-lsec*) for ac_func in getprpwnam
8495 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8496 echo "configure:8497: checking for $ac_func" >&5
8497 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8498 echo $ac_n "(cached) $ac_c" 1>&6
8499 else
8500 cat > conftest.$ac_ext <<EOF
8501 #line 8502 "configure"
8502 #include "confdefs.h"
8503 /* System header to define __stub macros and hopefully few prototypes,
8504 which can conflict with char $ac_func(); below. */
8505 #include <assert.h>
8506 /* Override any gcc2 internal prototype to avoid an error. */
8507 /* We use char because int might match the return type of a gcc2
8508 builtin and then its argument prototype would still apply. */
8509 char $ac_func();
8511 int main() {
8513 /* The GNU C library defines this for functions which it implements
8514 to always fail with ENOSYS. Some functions are actually named
8515 something starting with __ and the normal name is an alias. */
8516 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8517 choke me
8518 #else
8519 $ac_func();
8520 #endif
8522 ; return 0; }
8524 if { (eval echo configure:8525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8525 rm -rf conftest*
8526 eval "ac_cv_func_$ac_func=yes"
8527 else
8528 echo "configure: failed program was:" >&5
8529 cat conftest.$ac_ext >&5
8530 rm -rf conftest*
8531 eval "ac_cv_func_$ac_func=no"
8533 rm -f conftest*
8536 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8537 echo "$ac_t""yes" 1>&6
8538 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8539 cat >> confdefs.h <<EOF
8540 #define $ac_tr_func 1
8543 else
8544 echo "$ac_t""no" 1>&6
8546 done
8548 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
8549 echo "configure:8550: checking for getprpwnam in -lsec" >&5
8550 ac_lib_var=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
8551 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8552 echo $ac_n "(cached) $ac_c" 1>&6
8553 else
8554 ac_save_LIBS="$LIBS"
8555 LIBS="-lsec $LIBS"
8556 cat > conftest.$ac_ext <<EOF
8557 #line 8558 "configure"
8558 #include "confdefs.h"
8559 /* Override any gcc2 internal prototype to avoid an error. */
8560 /* We use char because int might match the return type of a gcc2
8561 builtin and then its argument prototype would still apply. */
8562 char getprpwnam();
8564 int main() {
8565 getprpwnam()
8566 ; return 0; }
8568 if { (eval echo configure:8569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8569 rm -rf conftest*
8570 eval "ac_cv_lib_$ac_lib_var=yes"
8571 else
8572 echo "configure: failed program was:" >&5
8573 cat conftest.$ac_ext >&5
8574 rm -rf conftest*
8575 eval "ac_cv_lib_$ac_lib_var=no"
8577 rm -f conftest*
8578 LIBS="$ac_save_LIBS"
8581 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8582 echo "$ac_t""yes" 1>&6
8583 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8584 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8585 cat >> confdefs.h <<EOF
8586 #define $ac_tr_lib 1
8589 LIBS="-lsec $LIBS"
8591 else
8592 echo "$ac_t""no" 1>&6
8595 for ac_func in getprpwnam
8597 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8598 echo "configure:8599: checking for $ac_func" >&5
8599 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8600 echo $ac_n "(cached) $ac_c" 1>&6
8601 else
8602 cat > conftest.$ac_ext <<EOF
8603 #line 8604 "configure"
8604 #include "confdefs.h"
8605 /* System header to define __stub macros and hopefully few prototypes,
8606 which can conflict with char $ac_func(); below. */
8607 #include <assert.h>
8608 /* Override any gcc2 internal prototype to avoid an error. */
8609 /* We use char because int might match the return type of a gcc2
8610 builtin and then its argument prototype would still apply. */
8611 char $ac_func();
8613 int main() {
8615 /* The GNU C library defines this for functions which it implements
8616 to always fail with ENOSYS. Some functions are actually named
8617 something starting with __ and the normal name is an alias. */
8618 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8619 choke me
8620 #else
8621 $ac_func();
8622 #endif
8624 ; return 0; }
8626 if { (eval echo configure:8627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8627 rm -rf conftest*
8628 eval "ac_cv_func_$ac_func=yes"
8629 else
8630 echo "configure: failed program was:" >&5
8631 cat conftest.$ac_ext >&5
8632 rm -rf conftest*
8633 eval "ac_cv_func_$ac_func=no"
8635 rm -f conftest*
8638 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8639 echo "$ac_t""yes" 1>&6
8640 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8641 cat >> confdefs.h <<EOF
8642 #define $ac_tr_func 1
8645 else
8646 echo "$ac_t""no" 1>&6
8648 done
8651 esac
8654 # this bit needs to be modified for each OS that is suported by
8655 # smbwrapper. You need to specify how to created a shared library and
8656 # how to compile C code to produce PIC object files
8658 # these are the defaults, good for lots of systems
8659 HOST_OS="$host_os"
8660 LDSHFLAGS="-shared"
8661 SONAMEFLAG="#"
8662 SHLD="\${CC}"
8663 PICFLAG=""
8664 PICSUFFIX="po.o"
8665 SHLIBEXT="so"
8666 # Assume non-shared by default and override below
8667 BLDSHARED="false"
8668 echo $ac_n "checking ability to build shared libraries""... $ac_c" 1>&6
8669 echo "configure:8670: checking ability to build shared libraries" >&5
8671 # and these are for particular systems
8672 case "$host_os" in
8673 *linux*) cat >> confdefs.h <<\EOF
8674 #define LINUX 1
8677 BLDSHARED="true"
8678 LDSHFLAGS="-shared"
8679 DYNEXP="-Wl,--export-dynamic"
8680 PICFLAG="-fPIC"
8681 SONAMEFLAG="-Wl,-soname="
8682 cat >> confdefs.h <<\EOF
8683 #define STAT_ST_BLOCKSIZE 512
8687 *solaris*) cat >> confdefs.h <<\EOF
8688 #define SUNOS5 1
8691 BLDSHARED="true"
8692 LDSHFLAGS="-G"
8693 SONAMEFLAG="-h "
8694 if test "${GCC}" = "yes"; then
8695 PICFLAG="-fPIC"
8696 if test "${ac_cv_prog_gnu_ld}" = "yes"; then
8697 DYNEXP="-Wl,-E"
8699 else
8700 PICFLAG="-KPIC"
8701 ## ${CFLAGS} added for building 64-bit shared
8702 ## libs using Sun's Compiler
8703 LDSHFLAGS="-G \${CFLAGS}"
8704 POBAD_CC=""
8705 PICSUFFIX="po.o"
8707 cat >> confdefs.h <<\EOF
8708 #define STAT_ST_BLOCKSIZE 512
8712 *sunos*) cat >> confdefs.h <<\EOF
8713 #define SUNOS4 1
8716 BLDSHARED="true"
8717 LDSHFLAGS="-G"
8718 SONAMEFLAG="-Wl,-h,"
8719 PICFLAG="-KPIC" # Is this correct for SunOS
8721 *freebsd*) BLDSHARED="true"
8722 LDSHFLAGS="-shared"
8723 DYNEXP="-Wl,--export-dynamic"
8724 SONAMEFLAG="-Wl,-soname,"
8725 PICFLAG="-fPIC -DPIC"
8726 cat >> confdefs.h <<\EOF
8727 #define STAT_ST_BLOCKSIZE 512
8731 *openbsd*) BLDSHARED="true"
8732 LDSHFLAGS="-shared"
8733 DYNEXP="-Wl,-Bdynamic"
8734 SONAMEFLAG="-Wl,-soname,"
8735 PICFLAG="-fPIC"
8736 cat >> confdefs.h <<\EOF
8737 #define STAT_ST_BLOCKSIZE 512
8741 *irix*) cat >> confdefs.h <<\EOF
8742 #define IRIX 1
8745 case "$host_os" in
8746 *irix6*) cat >> confdefs.h <<\EOF
8747 #define IRIX6 1
8751 esac
8752 ATTEMPT_WRAP32_BUILD=yes
8753 BLDSHARED="true"
8754 LDSHFLAGS="-set_version sgi1.0 -shared"
8755 SONAMEFLAG="-soname "
8756 SHLD="\${LD}"
8757 if test "${GCC}" = "yes"; then
8758 PICFLAG="-fPIC"
8759 else
8760 PICFLAG="-KPIC"
8762 cat >> confdefs.h <<\EOF
8763 #define STAT_ST_BLOCKSIZE 512
8767 *aix*) cat >> confdefs.h <<\EOF
8768 #define AIX 1
8771 BLDSHARED="true"
8772 LDSHFLAGS="-Wl,-bexpall,-bM:SRE,-bnoentry"
8773 DYNEXP="-Wl,-brtl,-bexpall"
8774 PICFLAG="-O2"
8775 if test "${GCC}" = "no"; then
8776 ## for funky AIX compiler using strncpy()
8777 CFLAGS="$CFLAGS -D_LINUX_SOURCE_COMPAT -qmaxmem=32000"
8780 cat >> confdefs.h <<\EOF
8781 #define STAT_ST_BLOCKSIZE DEV_BSIZE
8785 *hpux*) cat >> confdefs.h <<\EOF
8786 #define HPUX 1
8789 SHLIBEXT="sl"
8790 # Use special PIC flags for the native HP-UX compiler.
8791 if test $ac_cv_prog_cc_Ae = yes; then
8792 BLDSHARED="true"
8793 SHLD="/usr/bin/ld"
8794 LDSHFLAGS="-B symbolic -b -z"
8795 SONAMEFLAG="+h "
8796 PICFLAG="+z"
8798 DYNEXP="-Wl,-E"
8799 cat >> confdefs.h <<\EOF
8800 #define STAT_ST_BLOCKSIZE 8192
8804 *qnx*) cat >> confdefs.h <<\EOF
8805 #define QNX 1
8808 *osf*) cat >> confdefs.h <<\EOF
8809 #define OSF1 1
8812 BLDSHARED="true"
8813 LDSHFLAGS="-shared"
8814 SONAMEFLAG="-Wl,-soname,"
8815 PICFLAG="-fPIC"
8817 *sco*) cat >> confdefs.h <<\EOF
8818 #define SCO 1
8821 *unixware*) cat >> confdefs.h <<\EOF
8822 #define UNIXWARE 1
8825 BLDSHARED="true"
8826 LDSHFLAGS="-shared"
8827 SONAMEFLAG="-Wl,-soname,"
8828 PICFLAG="-KPIC"
8830 *next2*) cat >> confdefs.h <<\EOF
8831 #define NEXT2 1
8834 *dgux*) # Extract the first word of "groff", so it can be a program name with args.
8835 set dummy groff; ac_word=$2
8836 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8837 echo "configure:8838: checking for $ac_word" >&5
8838 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
8839 echo $ac_n "(cached) $ac_c" 1>&6
8840 else
8841 if test -n "$ROFF"; then
8842 ac_cv_prog_ROFF="$ROFF" # Let the user override the test.
8843 else
8844 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8845 ac_dummy="$PATH"
8846 for ac_dir in $ac_dummy; do
8847 test -z "$ac_dir" && ac_dir=.
8848 if test -f $ac_dir/$ac_word; then
8849 ac_cv_prog_ROFF="groff -etpsR -Tascii -man"
8850 break
8852 done
8853 IFS="$ac_save_ifs"
8856 ROFF="$ac_cv_prog_ROFF"
8857 if test -n "$ROFF"; then
8858 echo "$ac_t""$ROFF" 1>&6
8859 else
8860 echo "$ac_t""no" 1>&6
8863 *sysv4*)
8864 case "$host" in
8865 *-univel-*) if test "$GCC" != yes ; then
8866 cat >> confdefs.h <<\EOF
8867 #define HAVE_MEMSET 1
8871 LDSHFLAGS="-G"
8872 DYNEXP="-Bexport"
8874 *mips-sni-sysv4*) cat >> confdefs.h <<\EOF
8875 #define RELIANTUNIX 1
8878 esac
8880 *sysv5*)
8881 if test "$GCC" != yes ; then
8882 cat >> confdefs.h <<\EOF
8883 #define HAVE_MEMSET 1
8887 LDSHFLAGS="-G"
8889 esac
8891 echo "$ac_t""$BLDSHARED" 1>&6
8892 echo $ac_n "checking linker flags for shared libraries""... $ac_c" 1>&6
8893 echo "configure:8894: checking linker flags for shared libraries" >&5
8894 echo "$ac_t""$LDSHFLAGS" 1>&6
8895 echo $ac_n "checking compiler flags for position-independent code""... $ac_c" 1>&6
8896 echo "configure:8897: checking compiler flags for position-independent code" >&5
8897 echo "$ac_t""$PICFLAGS" 1>&6
8899 # try to work out how to produce pic code with this compiler
8900 if test x$PICFLAG = x; then
8901 echo $ac_n "checking whether ${CC-cc} accepts -fpic""... $ac_c" 1>&6
8902 echo "configure:8903: checking whether ${CC-cc} accepts -fpic" >&5
8903 if eval "test \"`echo '$''{'ac_cv_prog_cc_fpic'+set}'`\" = set"; then
8904 echo $ac_n "(cached) $ac_c" 1>&6
8905 else
8906 echo 'void f(){}' > conftest.c
8907 if test -z "`${CC-cc} -fpic -c conftest.c 2>&1`"; then
8908 ac_cv_prog_cc_fpic=yes
8909 else
8910 ac_cv_prog_cc_fpic=no
8912 rm -f conftest*
8916 echo "$ac_t""$ac_cv_prog_cc_fpic" 1>&6
8917 if test $ac_cv_prog_cc_fpic = yes; then
8918 PICFLAG="-fpic";
8921 if test x$PICFLAG = x; then
8922 echo $ac_n "checking whether ${CC-cc} accepts -KPIC""... $ac_c" 1>&6
8923 echo "configure:8924: checking whether ${CC-cc} accepts -KPIC" >&5
8924 if eval "test \"`echo '$''{'ac_cv_prog_cc_KPIC'+set}'`\" = set"; then
8925 echo $ac_n "(cached) $ac_c" 1>&6
8926 else
8927 echo 'void f(){}' > conftest.c
8928 if test -z "`${CC-cc} -KPIC -c conftest.c 2>&1`"; then
8929 ac_cv_prog_cc_KPIC=yes
8930 else
8931 ac_cv_prog_cc_KPIC=no
8933 rm -f conftest*
8937 echo "$ac_t""$ac_cv_prog_cc_KPIC" 1>&6
8938 if test $ac_cv_prog_cc_KPIC = yes; then
8939 PICFLAG="-KPIC";
8942 if test x$PICFLAG = x; then
8943 echo $ac_n "checking whether ${CC-cc} accepts -Kpic""... $ac_c" 1>&6
8944 echo "configure:8945: checking whether ${CC-cc} accepts -Kpic" >&5
8945 if eval "test \"`echo '$''{'ac_cv_prog_cc_Kpic'+set}'`\" = set"; then
8946 echo $ac_n "(cached) $ac_c" 1>&6
8947 else
8948 echo 'void f(){}' > conftest.c
8949 if test -z "`${CC-cc} -Kpic -c conftest.c 2>&1`"; then
8950 ac_cv_prog_cc_Kpic=yes
8951 else
8952 ac_cv_prog_cc_Kpic=no
8954 rm -f conftest*
8958 echo "$ac_t""$ac_cv_prog_cc_Kpic" 1>&6
8959 if test $ac_cv_prog_cc_Kpic = yes; then
8960 PICFLAG="-Kpic";
8964 ################
8966 echo $ac_n "checking for long long""... $ac_c" 1>&6
8967 echo "configure:8968: checking for long long" >&5
8968 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
8969 echo $ac_n "(cached) $ac_c" 1>&6
8970 else
8972 if test "$cross_compiling" = yes; then
8973 samba_cv_have_longlong=cross
8974 else
8975 cat > conftest.$ac_ext <<EOF
8976 #line 8977 "configure"
8977 #include "confdefs.h"
8978 #include <stdio.h>
8979 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
8981 if { (eval echo configure:8982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8982 then
8983 samba_cv_have_longlong=yes
8984 else
8985 echo "configure: failed program was:" >&5
8986 cat conftest.$ac_ext >&5
8987 rm -fr conftest*
8988 samba_cv_have_longlong=no
8990 rm -fr conftest*
8995 echo "$ac_t""$samba_cv_have_longlong" 1>&6
8996 if test x"$samba_cv_have_longlong" = x"yes"; then
8997 cat >> confdefs.h <<\EOF
8998 #define HAVE_LONGLONG 1
9004 # Check if the compiler supports the LL prefix on long long integers.
9005 # AIX needs this.
9007 echo $ac_n "checking for LL suffix on long long integers""... $ac_c" 1>&6
9008 echo "configure:9009: checking for LL suffix on long long integers" >&5
9009 if eval "test \"`echo '$''{'samba_cv_compiler_supports_ll'+set}'`\" = set"; then
9010 echo $ac_n "(cached) $ac_c" 1>&6
9011 else
9013 cat > conftest.$ac_ext <<EOF
9014 #line 9015 "configure"
9015 #include "confdefs.h"
9016 #include <stdio.h>
9017 int main() {
9018 long long i = 0x8000000000LL
9019 ; return 0; }
9021 if { (eval echo configure:9022: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9022 rm -rf conftest*
9023 samba_cv_compiler_supports_ll=yes
9024 else
9025 echo "configure: failed program was:" >&5
9026 cat conftest.$ac_ext >&5
9027 rm -rf conftest*
9028 samba_cv_compiler_supports_ll=no
9030 rm -f conftest*
9033 echo "$ac_t""$samba_cv_compiler_supports_ll" 1>&6
9034 if test x"$samba_cv_compiler_supports_ll" = x"yes"; then
9035 cat >> confdefs.h <<\EOF
9036 #define COMPILER_SUPPORTS_LL 1
9042 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
9043 echo "configure:9044: checking for 64 bit off_t" >&5
9044 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
9045 echo $ac_n "(cached) $ac_c" 1>&6
9046 else
9048 if test "$cross_compiling" = yes; then
9049 samba_cv_SIZEOF_OFF_T=cross
9050 else
9051 cat > conftest.$ac_ext <<EOF
9052 #line 9053 "configure"
9053 #include "confdefs.h"
9054 #include <stdio.h>
9055 #include <sys/stat.h>
9056 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
9058 if { (eval echo configure:9059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9059 then
9060 samba_cv_SIZEOF_OFF_T=yes
9061 else
9062 echo "configure: failed program was:" >&5
9063 cat conftest.$ac_ext >&5
9064 rm -fr conftest*
9065 samba_cv_SIZEOF_OFF_T=no
9067 rm -fr conftest*
9072 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
9073 if test x"$samba_cv_SIZEOF_OFF_T" = x"yes"; then
9074 cat >> confdefs.h <<\EOF
9075 #define SIZEOF_OFF_T 8
9080 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
9081 echo "configure:9082: checking for off64_t" >&5
9082 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
9083 echo $ac_n "(cached) $ac_c" 1>&6
9084 else
9086 if test "$cross_compiling" = yes; then
9087 samba_cv_HAVE_OFF64_T=cross
9088 else
9089 cat > conftest.$ac_ext <<EOF
9090 #line 9091 "configure"
9091 #include "confdefs.h"
9093 #if defined(HAVE_UNISTD_H)
9094 #include <unistd.h>
9095 #endif
9096 #include <stdio.h>
9097 #include <sys/stat.h>
9098 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9100 if { (eval echo configure:9101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9101 then
9102 samba_cv_HAVE_OFF64_T=yes
9103 else
9104 echo "configure: failed program was:" >&5
9105 cat conftest.$ac_ext >&5
9106 rm -fr conftest*
9107 samba_cv_HAVE_OFF64_T=no
9109 rm -fr conftest*
9114 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
9115 if test x"$samba_cv_HAVE_OFF64_T" = x"yes"; then
9116 cat >> confdefs.h <<\EOF
9117 #define HAVE_OFF64_T 1
9122 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
9123 echo "configure:9124: checking for 64 bit ino_t" >&5
9124 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
9125 echo $ac_n "(cached) $ac_c" 1>&6
9126 else
9128 if test "$cross_compiling" = yes; then
9129 samba_cv_SIZEOF_INO_T=cross
9130 else
9131 cat > conftest.$ac_ext <<EOF
9132 #line 9133 "configure"
9133 #include "confdefs.h"
9134 #include <stdio.h>
9135 #include <sys/stat.h>
9136 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
9138 if { (eval echo configure:9139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9139 then
9140 samba_cv_SIZEOF_INO_T=yes
9141 else
9142 echo "configure: failed program was:" >&5
9143 cat conftest.$ac_ext >&5
9144 rm -fr conftest*
9145 samba_cv_SIZEOF_INO_T=no
9147 rm -fr conftest*
9152 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
9153 if test x"$samba_cv_SIZEOF_INO_T" = x"yes"; then
9154 cat >> confdefs.h <<\EOF
9155 #define SIZEOF_INO_T 8
9160 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
9161 echo "configure:9162: checking for ino64_t" >&5
9162 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
9163 echo $ac_n "(cached) $ac_c" 1>&6
9164 else
9166 if test "$cross_compiling" = yes; then
9167 samba_cv_HAVE_INO64_T=cross
9168 else
9169 cat > conftest.$ac_ext <<EOF
9170 #line 9171 "configure"
9171 #include "confdefs.h"
9173 #if defined(HAVE_UNISTD_H)
9174 #include <unistd.h>
9175 #endif
9176 #include <stdio.h>
9177 #include <sys/stat.h>
9178 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9180 if { (eval echo configure:9181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9181 then
9182 samba_cv_HAVE_INO64_T=yes
9183 else
9184 echo "configure: failed program was:" >&5
9185 cat conftest.$ac_ext >&5
9186 rm -fr conftest*
9187 samba_cv_HAVE_INO64_T=no
9189 rm -fr conftest*
9194 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
9195 if test x"$samba_cv_HAVE_INO64_T" = x"yes"; then
9196 cat >> confdefs.h <<\EOF
9197 #define HAVE_INO64_T 1
9202 echo $ac_n "checking for dev64_t""... $ac_c" 1>&6
9203 echo "configure:9204: checking for dev64_t" >&5
9204 if eval "test \"`echo '$''{'samba_cv_HAVE_DEV64_T'+set}'`\" = set"; then
9205 echo $ac_n "(cached) $ac_c" 1>&6
9206 else
9208 if test "$cross_compiling" = yes; then
9209 samba_cv_HAVE_DEV64_T=cross
9210 else
9211 cat > conftest.$ac_ext <<EOF
9212 #line 9213 "configure"
9213 #include "confdefs.h"
9215 #if defined(HAVE_UNISTD_H)
9216 #include <unistd.h>
9217 #endif
9218 #include <stdio.h>
9219 #include <sys/stat.h>
9220 main() { struct stat64 st; dev64_t s; if (sizeof(dev_t) == sizeof(dev64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9222 if { (eval echo configure:9223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9223 then
9224 samba_cv_HAVE_DEV64_T=yes
9225 else
9226 echo "configure: failed program was:" >&5
9227 cat conftest.$ac_ext >&5
9228 rm -fr conftest*
9229 samba_cv_HAVE_DEV64_T=no
9231 rm -fr conftest*
9236 echo "$ac_t""$samba_cv_HAVE_DEV64_T" 1>&6
9237 if test x"$samba_cv_HAVE_DEV64_T" = x"yes"; then
9238 cat >> confdefs.h <<\EOF
9239 #define HAVE_DEV64_T 1
9244 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
9245 echo "configure:9246: checking for struct dirent64" >&5
9246 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
9247 echo $ac_n "(cached) $ac_c" 1>&6
9248 else
9250 cat > conftest.$ac_ext <<EOF
9251 #line 9252 "configure"
9252 #include "confdefs.h"
9254 #if defined(HAVE_UNISTD_H)
9255 #include <unistd.h>
9256 #endif
9257 #include <sys/types.h>
9258 #include <dirent.h>
9259 int main() {
9260 struct dirent64 de;
9261 ; return 0; }
9263 if { (eval echo configure:9264: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9264 rm -rf conftest*
9265 samba_cv_HAVE_STRUCT_DIRENT64=yes
9266 else
9267 echo "configure: failed program was:" >&5
9268 cat conftest.$ac_ext >&5
9269 rm -rf conftest*
9270 samba_cv_HAVE_STRUCT_DIRENT64=no
9272 rm -f conftest*
9275 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
9276 if test x"$samba_cv_HAVE_STRUCT_DIRENT64" = x"yes" && test x"$ac_cv_func_readdir64" = x"yes"; then
9277 cat >> confdefs.h <<\EOF
9278 #define HAVE_STRUCT_DIRENT64 1
9283 echo $ac_n "checking for major macro""... $ac_c" 1>&6
9284 echo "configure:9285: checking for major macro" >&5
9285 if eval "test \"`echo '$''{'samba_cv_HAVE_DEVICE_MAJOR_FN'+set}'`\" = set"; then
9286 echo $ac_n "(cached) $ac_c" 1>&6
9287 else
9289 if test "$cross_compiling" = yes; then
9290 samba_cv_HAVE_DEVICE_MAJOR_FN=cross
9291 else
9292 cat > conftest.$ac_ext <<EOF
9293 #line 9294 "configure"
9294 #include "confdefs.h"
9296 #if defined(HAVE_UNISTD_H)
9297 #include <unistd.h>
9298 #endif
9299 #include <sys/types.h>
9300 main() { dev_t dev; int i = major(dev); return 0; }
9302 if { (eval echo configure:9303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9303 then
9304 samba_cv_HAVE_DEVICE_MAJOR_FN=yes
9305 else
9306 echo "configure: failed program was:" >&5
9307 cat conftest.$ac_ext >&5
9308 rm -fr conftest*
9309 samba_cv_HAVE_DEVICE_MAJOR_FN=no
9311 rm -fr conftest*
9316 echo "$ac_t""$samba_cv_HAVE_DEVICE_MAJOR_FN" 1>&6
9317 if test x"$samba_cv_HAVE_DEVICE_MAJOR_FN" = x"yes"; then
9318 cat >> confdefs.h <<\EOF
9319 #define HAVE_DEVICE_MAJOR_FN 1
9324 echo $ac_n "checking for minor macro""... $ac_c" 1>&6
9325 echo "configure:9326: checking for minor macro" >&5
9326 if eval "test \"`echo '$''{'samba_cv_HAVE_DEVICE_MINOR_FN'+set}'`\" = set"; then
9327 echo $ac_n "(cached) $ac_c" 1>&6
9328 else
9330 if test "$cross_compiling" = yes; then
9331 samba_cv_HAVE_DEVICE_MINOR_FN=cross
9332 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 main() { dev_t dev; int i = minor(dev); return 0; }
9343 if { (eval echo configure:9344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9344 then
9345 samba_cv_HAVE_DEVICE_MINOR_FN=yes
9346 else
9347 echo "configure: failed program was:" >&5
9348 cat conftest.$ac_ext >&5
9349 rm -fr conftest*
9350 samba_cv_HAVE_DEVICE_MINOR_FN=no
9352 rm -fr conftest*
9357 echo "$ac_t""$samba_cv_HAVE_DEVICE_MINOR_FN" 1>&6
9358 if test x"$samba_cv_HAVE_DEVICE_MINOR_FN" = x"yes"; then
9359 cat >> confdefs.h <<\EOF
9360 #define HAVE_DEVICE_MINOR_FN 1
9365 echo $ac_n "checking for makedev macro""... $ac_c" 1>&6
9366 echo "configure:9367: checking for makedev macro" >&5
9367 if eval "test \"`echo '$''{'samba_cv_HAVE_MAKEDEV_FN'+set}'`\" = set"; then
9368 echo $ac_n "(cached) $ac_c" 1>&6
9369 else
9371 if test "$cross_compiling" = yes; then
9372 samba_cv_HAVE_MAKEDEV_FN=cross
9373 else
9374 cat > conftest.$ac_ext <<EOF
9375 #line 9376 "configure"
9376 #include "confdefs.h"
9378 #if defined(HAVE_UNISTD_H)
9379 #include <unistd.h>
9380 #endif
9381 #include <sys/types.h>
9382 main() { dev_t dev = makedev(1,2); return 0; }
9384 if { (eval echo configure:9385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9385 then
9386 samba_cv_HAVE_MAKEDEV_FN=yes
9387 else
9388 echo "configure: failed program was:" >&5
9389 cat conftest.$ac_ext >&5
9390 rm -fr conftest*
9391 samba_cv_HAVE_MAKEDEV_FN=no
9393 rm -fr conftest*
9398 echo "$ac_t""$samba_cv_HAVE_MAKEDEV_FN" 1>&6
9399 if test x"$samba_cv_HAVE_MAKEDEV_FN" = x"yes"; then
9400 cat >> confdefs.h <<\EOF
9401 #define MAKEDEV_FN 1
9406 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
9407 echo "configure:9408: checking for unsigned char" >&5
9408 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
9409 echo $ac_n "(cached) $ac_c" 1>&6
9410 else
9412 if test "$cross_compiling" = yes; then
9413 samba_cv_HAVE_UNSIGNED_CHAR=cross
9414 else
9415 cat > conftest.$ac_ext <<EOF
9416 #line 9417 "configure"
9417 #include "confdefs.h"
9418 #include <stdio.h>
9419 main() { char c; c=250; exit((c > 0)?0:1); }
9421 if { (eval echo configure:9422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9422 then
9423 samba_cv_HAVE_UNSIGNED_CHAR=yes
9424 else
9425 echo "configure: failed program was:" >&5
9426 cat conftest.$ac_ext >&5
9427 rm -fr conftest*
9428 samba_cv_HAVE_UNSIGNED_CHAR=no
9430 rm -fr conftest*
9435 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
9436 if test x"$samba_cv_HAVE_UNSIGNED_CHAR" = x"yes"; then
9437 cat >> confdefs.h <<\EOF
9438 #define HAVE_UNSIGNED_CHAR 1
9443 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
9444 echo "configure:9445: checking for sin_len in sock" >&5
9445 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
9446 echo $ac_n "(cached) $ac_c" 1>&6
9447 else
9449 cat > conftest.$ac_ext <<EOF
9450 #line 9451 "configure"
9451 #include "confdefs.h"
9452 #include <sys/types.h>
9453 #include <sys/socket.h>
9454 #include <netinet/in.h>
9455 int main() {
9456 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
9457 ; return 0; }
9459 if { (eval echo configure:9460: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9460 rm -rf conftest*
9461 samba_cv_HAVE_SOCK_SIN_LEN=yes
9462 else
9463 echo "configure: failed program was:" >&5
9464 cat conftest.$ac_ext >&5
9465 rm -rf conftest*
9466 samba_cv_HAVE_SOCK_SIN_LEN=no
9468 rm -f conftest*
9471 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
9472 if test x"$samba_cv_HAVE_SOCK_SIN_LEN" = x"yes"; then
9473 cat >> confdefs.h <<\EOF
9474 #define HAVE_SOCK_SIN_LEN 1
9479 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
9480 echo "configure:9481: checking whether seekdir returns void" >&5
9481 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
9482 echo $ac_n "(cached) $ac_c" 1>&6
9483 else
9485 cat > conftest.$ac_ext <<EOF
9486 #line 9487 "configure"
9487 #include "confdefs.h"
9488 #include <sys/types.h>
9489 #include <dirent.h>
9490 void seekdir(DIR *d, long loc) { return; }
9491 int main() {
9492 return 0;
9493 ; return 0; }
9495 if { (eval echo configure:9496: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9496 rm -rf conftest*
9497 samba_cv_SEEKDIR_RETURNS_VOID=yes
9498 else
9499 echo "configure: failed program was:" >&5
9500 cat conftest.$ac_ext >&5
9501 rm -rf conftest*
9502 samba_cv_SEEKDIR_RETURNS_VOID=no
9504 rm -f conftest*
9507 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
9508 if test x"$samba_cv_SEEKDIR_RETURNS_VOID" = x"yes"; then
9509 cat >> confdefs.h <<\EOF
9510 #define SEEKDIR_RETURNS_VOID 1
9515 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
9516 echo "configure:9517: checking for __FILE__ macro" >&5
9517 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
9518 echo $ac_n "(cached) $ac_c" 1>&6
9519 else
9521 cat > conftest.$ac_ext <<EOF
9522 #line 9523 "configure"
9523 #include "confdefs.h"
9524 #include <stdio.h>
9525 int main() {
9526 printf("%s\n", __FILE__);
9527 ; return 0; }
9529 if { (eval echo configure:9530: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9530 rm -rf conftest*
9531 samba_cv_HAVE_FILE_MACRO=yes
9532 else
9533 echo "configure: failed program was:" >&5
9534 cat conftest.$ac_ext >&5
9535 rm -rf conftest*
9536 samba_cv_HAVE_FILE_MACRO=no
9538 rm -f conftest*
9541 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
9542 if test x"$samba_cv_HAVE_FILE_MACRO" = x"yes"; then
9543 cat >> confdefs.h <<\EOF
9544 #define HAVE_FILE_MACRO 1
9549 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
9550 echo "configure:9551: checking for __FUNCTION__ macro" >&5
9551 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
9552 echo $ac_n "(cached) $ac_c" 1>&6
9553 else
9555 cat > conftest.$ac_ext <<EOF
9556 #line 9557 "configure"
9557 #include "confdefs.h"
9558 #include <stdio.h>
9559 int main() {
9560 printf("%s\n", __FUNCTION__);
9561 ; return 0; }
9563 if { (eval echo configure:9564: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9564 rm -rf conftest*
9565 samba_cv_HAVE_FUNCTION_MACRO=yes
9566 else
9567 echo "configure: failed program was:" >&5
9568 cat conftest.$ac_ext >&5
9569 rm -rf conftest*
9570 samba_cv_HAVE_FUNCTION_MACRO=no
9572 rm -f conftest*
9575 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
9576 if test x"$samba_cv_HAVE_FUNCTION_MACRO" = x"yes"; then
9577 cat >> confdefs.h <<\EOF
9578 #define HAVE_FUNCTION_MACRO 1
9583 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
9584 echo "configure:9585: checking if gettimeofday takes tz argument" >&5
9585 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
9586 echo $ac_n "(cached) $ac_c" 1>&6
9587 else
9589 if test "$cross_compiling" = yes; then
9590 samba_cv_HAVE_GETTIMEOFDAY_TZ=cross
9591 else
9592 cat > conftest.$ac_ext <<EOF
9593 #line 9594 "configure"
9594 #include "confdefs.h"
9596 #include <sys/time.h>
9597 #include <unistd.h>
9598 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
9600 if { (eval echo configure:9601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9601 then
9602 samba_cv_HAVE_GETTIMEOFDAY_TZ=yes
9603 else
9604 echo "configure: failed program was:" >&5
9605 cat conftest.$ac_ext >&5
9606 rm -fr conftest*
9607 samba_cv_HAVE_GETTIMEOFDAY_TZ=no
9609 rm -fr conftest*
9614 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
9615 if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
9616 cat >> confdefs.h <<\EOF
9617 #define HAVE_GETTIMEOFDAY_TZ 1
9622 echo $ac_n "checking for __va_copy""... $ac_c" 1>&6
9623 echo "configure:9624: checking for __va_copy" >&5
9624 if eval "test \"`echo '$''{'samba_cv_HAVE_VA_COPY'+set}'`\" = set"; then
9625 echo $ac_n "(cached) $ac_c" 1>&6
9626 else
9628 cat > conftest.$ac_ext <<EOF
9629 #line 9630 "configure"
9630 #include "confdefs.h"
9631 #include <stdarg.h>
9632 va_list ap1,ap2;
9633 int main() {
9634 __va_copy(ap1,ap2);
9635 ; return 0; }
9637 if { (eval echo configure:9638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9638 rm -rf conftest*
9639 samba_cv_HAVE_VA_COPY=yes
9640 else
9641 echo "configure: failed program was:" >&5
9642 cat conftest.$ac_ext >&5
9643 rm -rf conftest*
9644 samba_cv_HAVE_VA_COPY=no
9646 rm -f conftest*
9649 echo "$ac_t""$samba_cv_HAVE_VA_COPY" 1>&6
9650 if test x"$samba_cv_HAVE_VA_COPY" = x"yes"; then
9651 cat >> confdefs.h <<\EOF
9652 #define HAVE_VA_COPY 1
9657 echo $ac_n "checking for C99 vsnprintf""... $ac_c" 1>&6
9658 echo "configure:9659: checking for C99 vsnprintf" >&5
9659 if eval "test \"`echo '$''{'samba_cv_HAVE_C99_VSNPRINTF'+set}'`\" = set"; then
9660 echo $ac_n "(cached) $ac_c" 1>&6
9661 else
9663 if test "$cross_compiling" = yes; then
9664 samba_cv_HAVE_C99_VSNPRINTF=cross
9665 else
9666 cat > conftest.$ac_ext <<EOF
9667 #line 9668 "configure"
9668 #include "confdefs.h"
9670 #include <sys/types.h>
9671 #include <stdarg.h>
9672 void foo(const char *format, ...) {
9673 va_list ap;
9674 int len;
9675 char buf[5];
9677 va_start(ap, format);
9678 len = vsnprintf(buf, 0, format, ap);
9679 va_end(ap);
9680 if (len != 5) exit(1);
9682 va_start(ap, format);
9683 len = vsnprintf(0, 0, format, ap);
9684 va_end(ap);
9685 if (len != 5) exit(1);
9687 if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
9689 exit(0);
9691 main() { foo("hello"); }
9694 if { (eval echo configure:9695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9695 then
9696 samba_cv_HAVE_C99_VSNPRINTF=yes
9697 else
9698 echo "configure: failed program was:" >&5
9699 cat conftest.$ac_ext >&5
9700 rm -fr conftest*
9701 samba_cv_HAVE_C99_VSNPRINTF=no
9703 rm -fr conftest*
9708 echo "$ac_t""$samba_cv_HAVE_C99_VSNPRINTF" 1>&6
9709 if test x"$samba_cv_HAVE_C99_VSNPRINTF" = x"yes"; then
9710 cat >> confdefs.h <<\EOF
9711 #define HAVE_C99_VSNPRINTF 1
9716 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
9717 echo "configure:9718: checking for broken readdir" >&5
9718 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
9719 echo $ac_n "(cached) $ac_c" 1>&6
9720 else
9722 if test "$cross_compiling" = yes; then
9723 samba_cv_HAVE_BROKEN_READDIR=cross
9724 else
9725 cat > conftest.$ac_ext <<EOF
9726 #line 9727 "configure"
9727 #include "confdefs.h"
9728 #include <sys/types.h>
9729 #include <dirent.h>
9730 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
9731 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
9732 di->d_name[0] == 0) exit(0); exit(1);}
9734 if { (eval echo configure:9735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9735 then
9736 samba_cv_HAVE_BROKEN_READDIR=yes
9737 else
9738 echo "configure: failed program was:" >&5
9739 cat conftest.$ac_ext >&5
9740 rm -fr conftest*
9741 samba_cv_HAVE_BROKEN_READDIR=no
9743 rm -fr conftest*
9748 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
9749 if test x"$samba_cv_HAVE_BROKEN_READDIR" = x"yes"; then
9750 cat >> confdefs.h <<\EOF
9751 #define HAVE_BROKEN_READDIR 1
9756 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
9757 echo "configure:9758: checking for utimbuf" >&5
9758 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
9759 echo $ac_n "(cached) $ac_c" 1>&6
9760 else
9762 cat > conftest.$ac_ext <<EOF
9763 #line 9764 "configure"
9764 #include "confdefs.h"
9765 #include <sys/types.h>
9766 #include <utime.h>
9767 int main() {
9768 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
9769 ; return 0; }
9771 if { (eval echo configure:9772: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9772 rm -rf conftest*
9773 samba_cv_HAVE_UTIMBUF=yes
9774 else
9775 echo "configure: failed program was:" >&5
9776 cat conftest.$ac_ext >&5
9777 rm -rf conftest*
9778 samba_cv_HAVE_UTIMBUF=no
9780 rm -f conftest*
9783 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
9784 if test x"$samba_cv_HAVE_UTIMBUF" = x"yes"; then
9785 cat >> confdefs.h <<\EOF
9786 #define HAVE_UTIMBUF 1
9792 for ac_func in pututline pututxline updwtmp updwtmpx getutmpx
9794 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9795 echo "configure:9796: checking for $ac_func" >&5
9796 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9797 echo $ac_n "(cached) $ac_c" 1>&6
9798 else
9799 cat > conftest.$ac_ext <<EOF
9800 #line 9801 "configure"
9801 #include "confdefs.h"
9802 /* System header to define __stub macros and hopefully few prototypes,
9803 which can conflict with char $ac_func(); below. */
9804 #include <assert.h>
9805 /* Override any gcc2 internal prototype to avoid an error. */
9806 /* We use char because int might match the return type of a gcc2
9807 builtin and then its argument prototype would still apply. */
9808 char $ac_func();
9810 int main() {
9812 /* The GNU C library defines this for functions which it implements
9813 to always fail with ENOSYS. Some functions are actually named
9814 something starting with __ and the normal name is an alias. */
9815 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9816 choke me
9817 #else
9818 $ac_func();
9819 #endif
9821 ; return 0; }
9823 if { (eval echo configure:9824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9824 rm -rf conftest*
9825 eval "ac_cv_func_$ac_func=yes"
9826 else
9827 echo "configure: failed program was:" >&5
9828 cat conftest.$ac_ext >&5
9829 rm -rf conftest*
9830 eval "ac_cv_func_$ac_func=no"
9832 rm -f conftest*
9835 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9836 echo "$ac_t""yes" 1>&6
9837 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9838 cat >> confdefs.h <<EOF
9839 #define $ac_tr_func 1
9842 else
9843 echo "$ac_t""no" 1>&6
9845 done
9848 echo $ac_n "checking for ut_name in utmp""... $ac_c" 1>&6
9849 echo "configure:9850: checking for ut_name in utmp" >&5
9850 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_NAME'+set}'`\" = set"; then
9851 echo $ac_n "(cached) $ac_c" 1>&6
9852 else
9854 cat > conftest.$ac_ext <<EOF
9855 #line 9856 "configure"
9856 #include "confdefs.h"
9857 #include <sys/types.h>
9858 #include <utmp.h>
9859 int main() {
9860 struct utmp ut; ut.ut_name[0] = 'a';
9861 ; return 0; }
9863 if { (eval echo configure:9864: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9864 rm -rf conftest*
9865 samba_cv_HAVE_UT_UT_NAME=yes
9866 else
9867 echo "configure: failed program was:" >&5
9868 cat conftest.$ac_ext >&5
9869 rm -rf conftest*
9870 samba_cv_HAVE_UT_UT_NAME=no
9872 rm -f conftest*
9875 echo "$ac_t""$samba_cv_HAVE_UT_UT_NAME" 1>&6
9876 if test x"$samba_cv_HAVE_UT_UT_NAME" = x"yes"; then
9877 cat >> confdefs.h <<\EOF
9878 #define HAVE_UT_UT_NAME 1
9883 echo $ac_n "checking for ut_user in utmp""... $ac_c" 1>&6
9884 echo "configure:9885: checking for ut_user in utmp" >&5
9885 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_USER'+set}'`\" = set"; then
9886 echo $ac_n "(cached) $ac_c" 1>&6
9887 else
9889 cat > conftest.$ac_ext <<EOF
9890 #line 9891 "configure"
9891 #include "confdefs.h"
9892 #include <sys/types.h>
9893 #include <utmp.h>
9894 int main() {
9895 struct utmp ut; ut.ut_user[0] = 'a';
9896 ; return 0; }
9898 if { (eval echo configure:9899: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9899 rm -rf conftest*
9900 samba_cv_HAVE_UT_UT_USER=yes
9901 else
9902 echo "configure: failed program was:" >&5
9903 cat conftest.$ac_ext >&5
9904 rm -rf conftest*
9905 samba_cv_HAVE_UT_UT_USER=no
9907 rm -f conftest*
9910 echo "$ac_t""$samba_cv_HAVE_UT_UT_USER" 1>&6
9911 if test x"$samba_cv_HAVE_UT_UT_USER" = x"yes"; then
9912 cat >> confdefs.h <<\EOF
9913 #define HAVE_UT_UT_USER 1
9918 echo $ac_n "checking for ut_id in utmp""... $ac_c" 1>&6
9919 echo "configure:9920: checking for ut_id in utmp" >&5
9920 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ID'+set}'`\" = set"; then
9921 echo $ac_n "(cached) $ac_c" 1>&6
9922 else
9924 cat > conftest.$ac_ext <<EOF
9925 #line 9926 "configure"
9926 #include "confdefs.h"
9927 #include <sys/types.h>
9928 #include <utmp.h>
9929 int main() {
9930 struct utmp ut; ut.ut_id[0] = 'a';
9931 ; return 0; }
9933 if { (eval echo configure:9934: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9934 rm -rf conftest*
9935 samba_cv_HAVE_UT_UT_ID=yes
9936 else
9937 echo "configure: failed program was:" >&5
9938 cat conftest.$ac_ext >&5
9939 rm -rf conftest*
9940 samba_cv_HAVE_UT_UT_ID=no
9942 rm -f conftest*
9945 echo "$ac_t""$samba_cv_HAVE_UT_UT_ID" 1>&6
9946 if test x"$samba_cv_HAVE_UT_UT_ID" = x"yes"; then
9947 cat >> confdefs.h <<\EOF
9948 #define HAVE_UT_UT_ID 1
9953 echo $ac_n "checking for ut_host in utmp""... $ac_c" 1>&6
9954 echo "configure:9955: checking for ut_host in utmp" >&5
9955 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_HOST'+set}'`\" = set"; then
9956 echo $ac_n "(cached) $ac_c" 1>&6
9957 else
9959 cat > conftest.$ac_ext <<EOF
9960 #line 9961 "configure"
9961 #include "confdefs.h"
9962 #include <sys/types.h>
9963 #include <utmp.h>
9964 int main() {
9965 struct utmp ut; ut.ut_host[0] = 'a';
9966 ; return 0; }
9968 if { (eval echo configure:9969: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9969 rm -rf conftest*
9970 samba_cv_HAVE_UT_UT_HOST=yes
9971 else
9972 echo "configure: failed program was:" >&5
9973 cat conftest.$ac_ext >&5
9974 rm -rf conftest*
9975 samba_cv_HAVE_UT_UT_HOST=no
9977 rm -f conftest*
9980 echo "$ac_t""$samba_cv_HAVE_UT_UT_HOST" 1>&6
9981 if test x"$samba_cv_HAVE_UT_UT_HOST" = x"yes"; then
9982 cat >> confdefs.h <<\EOF
9983 #define HAVE_UT_UT_HOST 1
9988 echo $ac_n "checking for ut_time in utmp""... $ac_c" 1>&6
9989 echo "configure:9990: checking for ut_time in utmp" >&5
9990 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TIME'+set}'`\" = set"; then
9991 echo $ac_n "(cached) $ac_c" 1>&6
9992 else
9994 cat > conftest.$ac_ext <<EOF
9995 #line 9996 "configure"
9996 #include "confdefs.h"
9997 #include <sys/types.h>
9998 #include <utmp.h>
9999 int main() {
10000 struct utmp ut; time_t t; ut.ut_time = t;
10001 ; return 0; }
10003 if { (eval echo configure:10004: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10004 rm -rf conftest*
10005 samba_cv_HAVE_UT_UT_TIME=yes
10006 else
10007 echo "configure: failed program was:" >&5
10008 cat conftest.$ac_ext >&5
10009 rm -rf conftest*
10010 samba_cv_HAVE_UT_UT_TIME=no
10012 rm -f conftest*
10015 echo "$ac_t""$samba_cv_HAVE_UT_UT_TIME" 1>&6
10016 if test x"$samba_cv_HAVE_UT_UT_TIME" = x"yes"; then
10017 cat >> confdefs.h <<\EOF
10018 #define HAVE_UT_UT_TIME 1
10023 echo $ac_n "checking for ut_tv in utmp""... $ac_c" 1>&6
10024 echo "configure:10025: checking for ut_tv in utmp" >&5
10025 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TV'+set}'`\" = set"; then
10026 echo $ac_n "(cached) $ac_c" 1>&6
10027 else
10029 cat > conftest.$ac_ext <<EOF
10030 #line 10031 "configure"
10031 #include "confdefs.h"
10032 #include <sys/types.h>
10033 #include <utmp.h>
10034 int main() {
10035 struct utmp ut; struct timeval tv; ut.ut_tv = tv;
10036 ; return 0; }
10038 if { (eval echo configure:10039: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10039 rm -rf conftest*
10040 samba_cv_HAVE_UT_UT_TV=yes
10041 else
10042 echo "configure: failed program was:" >&5
10043 cat conftest.$ac_ext >&5
10044 rm -rf conftest*
10045 samba_cv_HAVE_UT_UT_TV=no
10047 rm -f conftest*
10050 echo "$ac_t""$samba_cv_HAVE_UT_UT_TV" 1>&6
10051 if test x"$samba_cv_HAVE_UT_UT_TV" = x"yes"; then
10052 cat >> confdefs.h <<\EOF
10053 #define HAVE_UT_UT_TV 1
10058 echo $ac_n "checking for ut_type in utmp""... $ac_c" 1>&6
10059 echo "configure:10060: checking for ut_type in utmp" >&5
10060 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TYPE'+set}'`\" = set"; then
10061 echo $ac_n "(cached) $ac_c" 1>&6
10062 else
10064 cat > conftest.$ac_ext <<EOF
10065 #line 10066 "configure"
10066 #include "confdefs.h"
10067 #include <sys/types.h>
10068 #include <utmp.h>
10069 int main() {
10070 struct utmp ut; ut.ut_type = 0;
10071 ; return 0; }
10073 if { (eval echo configure:10074: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10074 rm -rf conftest*
10075 samba_cv_HAVE_UT_UT_TYPE=yes
10076 else
10077 echo "configure: failed program was:" >&5
10078 cat conftest.$ac_ext >&5
10079 rm -rf conftest*
10080 samba_cv_HAVE_UT_UT_TYPE=no
10082 rm -f conftest*
10085 echo "$ac_t""$samba_cv_HAVE_UT_UT_TYPE" 1>&6
10086 if test x"$samba_cv_HAVE_UT_UT_TYPE" = x"yes"; then
10087 cat >> confdefs.h <<\EOF
10088 #define HAVE_UT_UT_TYPE 1
10093 echo $ac_n "checking for ut_pid in utmp""... $ac_c" 1>&6
10094 echo "configure:10095: checking for ut_pid in utmp" >&5
10095 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_PID'+set}'`\" = set"; then
10096 echo $ac_n "(cached) $ac_c" 1>&6
10097 else
10099 cat > conftest.$ac_ext <<EOF
10100 #line 10101 "configure"
10101 #include "confdefs.h"
10102 #include <sys/types.h>
10103 #include <utmp.h>
10104 int main() {
10105 struct utmp ut; ut.ut_pid = 0;
10106 ; return 0; }
10108 if { (eval echo configure:10109: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10109 rm -rf conftest*
10110 samba_cv_HAVE_UT_UT_PID=yes
10111 else
10112 echo "configure: failed program was:" >&5
10113 cat conftest.$ac_ext >&5
10114 rm -rf conftest*
10115 samba_cv_HAVE_UT_UT_PID=no
10117 rm -f conftest*
10120 echo "$ac_t""$samba_cv_HAVE_UT_UT_PID" 1>&6
10121 if test x"$samba_cv_HAVE_UT_UT_PID" = x"yes"; then
10122 cat >> confdefs.h <<\EOF
10123 #define HAVE_UT_UT_PID 1
10128 echo $ac_n "checking for ut_exit in utmp""... $ac_c" 1>&6
10129 echo "configure:10130: checking for ut_exit in utmp" >&5
10130 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_EXIT'+set}'`\" = set"; then
10131 echo $ac_n "(cached) $ac_c" 1>&6
10132 else
10134 cat > conftest.$ac_ext <<EOF
10135 #line 10136 "configure"
10136 #include "confdefs.h"
10137 #include <sys/types.h>
10138 #include <utmp.h>
10139 int main() {
10140 struct utmp ut; ut.ut_exit.e_exit = 0;
10141 ; return 0; }
10143 if { (eval echo configure:10144: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10144 rm -rf conftest*
10145 samba_cv_HAVE_UT_UT_EXIT=yes
10146 else
10147 echo "configure: failed program was:" >&5
10148 cat conftest.$ac_ext >&5
10149 rm -rf conftest*
10150 samba_cv_HAVE_UT_UT_EXIT=no
10152 rm -f conftest*
10155 echo "$ac_t""$samba_cv_HAVE_UT_UT_EXIT" 1>&6
10156 if test x"$samba_cv_HAVE_UT_UT_EXIT" = x"yes"; then
10157 cat >> confdefs.h <<\EOF
10158 #define HAVE_UT_UT_EXIT 1
10163 echo $ac_n "checking for ut_addr in utmp""... $ac_c" 1>&6
10164 echo "configure:10165: checking for ut_addr in utmp" >&5
10165 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ADDR'+set}'`\" = set"; then
10166 echo $ac_n "(cached) $ac_c" 1>&6
10167 else
10169 cat > conftest.$ac_ext <<EOF
10170 #line 10171 "configure"
10171 #include "confdefs.h"
10172 #include <sys/types.h>
10173 #include <utmp.h>
10174 int main() {
10175 struct utmp ut; ut.ut_addr = 0;
10176 ; return 0; }
10178 if { (eval echo configure:10179: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10179 rm -rf conftest*
10180 samba_cv_HAVE_UT_UT_ADDR=yes
10181 else
10182 echo "configure: failed program was:" >&5
10183 cat conftest.$ac_ext >&5
10184 rm -rf conftest*
10185 samba_cv_HAVE_UT_UT_ADDR=no
10187 rm -f conftest*
10190 echo "$ac_t""$samba_cv_HAVE_UT_UT_ADDR" 1>&6
10191 if test x"$samba_cv_HAVE_UT_UT_ADDR" = x"yes"; then
10192 cat >> confdefs.h <<\EOF
10193 #define HAVE_UT_UT_ADDR 1
10198 if test x$ac_cv_func_pututline = xyes ; then
10199 echo $ac_n "checking whether pututline returns pointer""... $ac_c" 1>&6
10200 echo "configure:10201: checking whether pututline returns pointer" >&5
10201 if eval "test \"`echo '$''{'samba_cv_PUTUTLINE_RETURNS_UTMP'+set}'`\" = set"; then
10202 echo $ac_n "(cached) $ac_c" 1>&6
10203 else
10205 cat > conftest.$ac_ext <<EOF
10206 #line 10207 "configure"
10207 #include "confdefs.h"
10208 #include <sys/types.h>
10209 #include <utmp.h>
10210 int main() {
10211 struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
10212 ; return 0; }
10214 if { (eval echo configure:10215: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10215 rm -rf conftest*
10216 samba_cv_PUTUTLINE_RETURNS_UTMP=yes
10217 else
10218 echo "configure: failed program was:" >&5
10219 cat conftest.$ac_ext >&5
10220 rm -rf conftest*
10221 samba_cv_PUTUTLINE_RETURNS_UTMP=no
10223 rm -f conftest*
10226 echo "$ac_t""$samba_cv_PUTUTLINE_RETURNS_UTMP" 1>&6
10227 if test x"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x"yes"; then
10228 cat >> confdefs.h <<\EOF
10229 #define PUTUTLINE_RETURNS_UTMP 1
10235 echo $ac_n "checking for ut_syslen in utmpx""... $ac_c" 1>&6
10236 echo "configure:10237: checking for ut_syslen in utmpx" >&5
10237 if eval "test \"`echo '$''{'samba_cv_HAVE_UX_UT_SYSLEN'+set}'`\" = set"; then
10238 echo $ac_n "(cached) $ac_c" 1>&6
10239 else
10241 cat > conftest.$ac_ext <<EOF
10242 #line 10243 "configure"
10243 #include "confdefs.h"
10244 #include <sys/types.h>
10245 #include <utmpx.h>
10246 int main() {
10247 struct utmpx ux; ux.ut_syslen = 0;
10248 ; return 0; }
10250 if { (eval echo configure:10251: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10251 rm -rf conftest*
10252 samba_cv_HAVE_UX_UT_SYSLEN=yes
10253 else
10254 echo "configure: failed program was:" >&5
10255 cat conftest.$ac_ext >&5
10256 rm -rf conftest*
10257 samba_cv_HAVE_UX_UT_SYSLEN=no
10259 rm -f conftest*
10262 echo "$ac_t""$samba_cv_HAVE_UX_UT_SYSLEN" 1>&6
10263 if test x"$samba_cv_HAVE_UX_UT_SYSLEN" = x"yes"; then
10264 cat >> confdefs.h <<\EOF
10265 #define HAVE_UX_UT_SYSLEN 1
10270 echo $ac_n "checking for Linux kernel oplocks""... $ac_c" 1>&6
10271 echo "configure:10272: checking for Linux kernel oplocks" >&5
10272 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_LINUX'+set}'`\" = set"; then
10273 echo $ac_n "(cached) $ac_c" 1>&6
10274 else
10276 if test "$cross_compiling" = yes; then
10277 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=cross
10278 else
10279 cat > conftest.$ac_ext <<EOF
10280 #line 10281 "configure"
10281 #include "confdefs.h"
10283 #include <sys/types.h>
10284 #include <fcntl.h>
10285 #ifndef F_GETLEASE
10286 #define F_GETLEASE 1025
10287 #endif
10288 main() {
10289 int fd = open("/dev/null", O_RDONLY);
10290 return fcntl(fd, F_GETLEASE, 0) == -1;
10294 if { (eval echo configure:10295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10295 then
10296 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=yes
10297 else
10298 echo "configure: failed program was:" >&5
10299 cat conftest.$ac_ext >&5
10300 rm -fr conftest*
10301 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=no
10303 rm -fr conftest*
10308 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" 1>&6
10309 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x"yes"; then
10310 cat >> confdefs.h <<\EOF
10311 #define HAVE_KERNEL_OPLOCKS_LINUX 1
10316 echo $ac_n "checking for kernel change notify support""... $ac_c" 1>&6
10317 echo "configure:10318: checking for kernel change notify support" >&5
10318 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_CHANGE_NOTIFY'+set}'`\" = set"; then
10319 echo $ac_n "(cached) $ac_c" 1>&6
10320 else
10322 if test "$cross_compiling" = yes; then
10323 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=cross
10324 else
10325 cat > conftest.$ac_ext <<EOF
10326 #line 10327 "configure"
10327 #include "confdefs.h"
10329 #include <sys/types.h>
10330 #include <fcntl.h>
10331 #include <signal.h>
10332 #ifndef F_NOTIFY
10333 #define F_NOTIFY 1026
10334 #endif
10335 main() {
10336 exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0);
10340 if { (eval echo configure:10341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10341 then
10342 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=yes
10343 else
10344 echo "configure: failed program was:" >&5
10345 cat conftest.$ac_ext >&5
10346 rm -fr conftest*
10347 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=no
10349 rm -fr conftest*
10354 echo "$ac_t""$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" 1>&6
10355 if test x"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x"yes" && test x"$target_cpu" != x"s390"; then
10356 cat >> confdefs.h <<\EOF
10357 #define HAVE_KERNEL_CHANGE_NOTIFY 1
10362 echo $ac_n "checking for kernel share modes""... $ac_c" 1>&6
10363 echo "configure:10364: checking for kernel share modes" >&5
10364 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_SHARE_MODES'+set}'`\" = set"; then
10365 echo $ac_n "(cached) $ac_c" 1>&6
10366 else
10368 if test "$cross_compiling" = yes; then
10369 samba_cv_HAVE_KERNEL_SHARE_MODES=cross
10370 else
10371 cat > conftest.$ac_ext <<EOF
10372 #line 10373 "configure"
10373 #include "confdefs.h"
10375 #include <sys/types.h>
10376 #include <fcntl.h>
10377 #include <signal.h>
10378 #include <sys/file.h>
10379 #ifndef LOCK_MAND
10380 #define LOCK_MAND 32
10381 #define LOCK_READ 64
10382 #endif
10383 main() {
10384 exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
10388 if { (eval echo configure:10389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10389 then
10390 samba_cv_HAVE_KERNEL_SHARE_MODES=yes
10391 else
10392 echo "configure: failed program was:" >&5
10393 cat conftest.$ac_ext >&5
10394 rm -fr conftest*
10395 samba_cv_HAVE_KERNEL_SHARE_MODES=no
10397 rm -fr conftest*
10402 echo "$ac_t""$samba_cv_HAVE_KERNEL_SHARE_MODES" 1>&6
10403 if test x"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x"yes"; then
10404 cat >> confdefs.h <<\EOF
10405 #define HAVE_KERNEL_SHARE_MODES 1
10413 echo $ac_n "checking for IRIX kernel oplock type definitions""... $ac_c" 1>&6
10414 echo "configure:10415: checking for IRIX kernel oplock type definitions" >&5
10415 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_IRIX'+set}'`\" = set"; then
10416 echo $ac_n "(cached) $ac_c" 1>&6
10417 else
10419 cat > conftest.$ac_ext <<EOF
10420 #line 10421 "configure"
10421 #include "confdefs.h"
10422 #include <sys/types.h>
10423 #include <fcntl.h>
10424 int main() {
10425 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
10426 ; return 0; }
10428 if { (eval echo configure:10429: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10429 rm -rf conftest*
10430 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=yes
10431 else
10432 echo "configure: failed program was:" >&5
10433 cat conftest.$ac_ext >&5
10434 rm -rf conftest*
10435 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=no
10437 rm -f conftest*
10440 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" 1>&6
10441 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x"yes"; then
10442 cat >> confdefs.h <<\EOF
10443 #define HAVE_KERNEL_OPLOCKS_IRIX 1
10448 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
10449 echo "configure:10450: checking for irix specific capabilities" >&5
10450 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
10451 echo $ac_n "(cached) $ac_c" 1>&6
10452 else
10454 if test "$cross_compiling" = yes; then
10455 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=cross
10456 else
10457 cat > conftest.$ac_ext <<EOF
10458 #line 10459 "configure"
10459 #include "confdefs.h"
10460 #include <sys/types.h>
10461 #include <sys/capability.h>
10462 main() {
10463 cap_t cap;
10464 if ((cap = cap_get_proc()) == NULL)
10465 exit(1);
10466 cap->cap_effective |= CAP_NETWORK_MGT;
10467 cap->cap_inheritable |= CAP_NETWORK_MGT;
10468 cap_set_proc(cap);
10469 exit(0);
10473 if { (eval echo configure:10474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10474 then
10475 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=yes
10476 else
10477 echo "configure: failed program was:" >&5
10478 cat conftest.$ac_ext >&5
10479 rm -fr conftest*
10480 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=no
10482 rm -fr conftest*
10487 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
10488 if test x"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x"yes"; then
10489 cat >> confdefs.h <<\EOF
10490 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
10496 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
10497 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
10500 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10501 echo "configure:10502: checking for int16 typedef included by rpc/rpc.h" >&5
10502 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10503 echo $ac_n "(cached) $ac_c" 1>&6
10504 else
10506 cat > conftest.$ac_ext <<EOF
10507 #line 10508 "configure"
10508 #include "confdefs.h"
10509 #include <sys/types.h>
10510 #if defined(HAVE_RPC_RPC_H)
10511 #include <rpc/rpc.h>
10512 #endif
10513 int main() {
10514 int16 testvar;
10515 ; return 0; }
10517 if { (eval echo configure:10518: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10518 rm -rf conftest*
10519 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=yes
10520 else
10521 echo "configure: failed program was:" >&5
10522 cat conftest.$ac_ext >&5
10523 rm -rf conftest*
10524 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=no
10526 rm -f conftest*
10529 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
10530 if test x"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x"yes"; then
10531 cat >> confdefs.h <<\EOF
10532 #define HAVE_INT16_FROM_RPC_RPC_H 1
10537 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10538 echo "configure:10539: checking for uint16 typedef included by rpc/rpc.h" >&5
10539 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10540 echo $ac_n "(cached) $ac_c" 1>&6
10541 else
10543 cat > conftest.$ac_ext <<EOF
10544 #line 10545 "configure"
10545 #include "confdefs.h"
10546 #include <sys/types.h>
10547 #if defined(HAVE_RPC_RPC_H)
10548 #include <rpc/rpc.h>
10549 #endif
10550 int main() {
10551 uint16 testvar;
10552 ; return 0; }
10554 if { (eval echo configure:10555: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10555 rm -rf conftest*
10556 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=yes
10557 else
10558 echo "configure: failed program was:" >&5
10559 cat conftest.$ac_ext >&5
10560 rm -rf conftest*
10561 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=no
10563 rm -f conftest*
10566 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
10567 if test x"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x"yes"; then
10568 cat >> confdefs.h <<\EOF
10569 #define HAVE_UINT16_FROM_RPC_RPC_H 1
10574 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10575 echo "configure:10576: checking for int32 typedef included by rpc/rpc.h" >&5
10576 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10577 echo $ac_n "(cached) $ac_c" 1>&6
10578 else
10580 cat > conftest.$ac_ext <<EOF
10581 #line 10582 "configure"
10582 #include "confdefs.h"
10583 #include <sys/types.h>
10584 #if defined(HAVE_RPC_RPC_H)
10585 #include <rpc/rpc.h>
10586 #endif
10587 int main() {
10588 int32 testvar;
10589 ; return 0; }
10591 if { (eval echo configure:10592: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10592 rm -rf conftest*
10593 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=yes
10594 else
10595 echo "configure: failed program was:" >&5
10596 cat conftest.$ac_ext >&5
10597 rm -rf conftest*
10598 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=no
10600 rm -f conftest*
10603 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
10604 if test x"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x"yes"; then
10605 cat >> confdefs.h <<\EOF
10606 #define HAVE_INT32_FROM_RPC_RPC_H 1
10611 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10612 echo "configure:10613: checking for uint32 typedef included by rpc/rpc.h" >&5
10613 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10614 echo $ac_n "(cached) $ac_c" 1>&6
10615 else
10617 cat > conftest.$ac_ext <<EOF
10618 #line 10619 "configure"
10619 #include "confdefs.h"
10620 #include <sys/types.h>
10621 #if defined(HAVE_RPC_RPC_H)
10622 #include <rpc/rpc.h>
10623 #endif
10624 int main() {
10625 uint32 testvar;
10626 ; return 0; }
10628 if { (eval echo configure:10629: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10629 rm -rf conftest*
10630 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=yes
10631 else
10632 echo "configure: failed program was:" >&5
10633 cat conftest.$ac_ext >&5
10634 rm -rf conftest*
10635 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=no
10637 rm -f conftest*
10640 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
10641 if test x"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x"yes"; then
10642 cat >> confdefs.h <<\EOF
10643 #define HAVE_UINT32_FROM_RPC_RPC_H 1
10649 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
10650 echo "configure:10651: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
10651 if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
10652 echo $ac_n "(cached) $ac_c" 1>&6
10653 else
10655 cat > conftest.$ac_ext <<EOF
10656 #line 10657 "configure"
10657 #include "confdefs.h"
10658 #include <sys/types.h>
10659 #ifdef HAVE_SYS_SECURITY_H
10660 #include <sys/security.h>
10661 #include <prot.h>
10662 #endif /* HAVE_SYS_SECURITY_H */
10663 #if defined(HAVE_RPC_RPC_H)
10664 #include <rpc/rpc.h>
10665 #endif
10666 int main() {
10667 int testvar;
10668 ; return 0; }
10670 if { (eval echo configure:10671: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10671 rm -rf conftest*
10672 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=no
10673 else
10674 echo "configure: failed program was:" >&5
10675 cat conftest.$ac_ext >&5
10676 rm -rf conftest*
10677 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=yes
10679 rm -f conftest*
10682 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
10683 if test x"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x"yes"; then
10684 cat >> confdefs.h <<\EOF
10685 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
10690 echo $ac_n "checking for test routines""... $ac_c" 1>&6
10691 echo "configure:10692: checking for test routines" >&5
10692 if test "$cross_compiling" = yes; then
10693 echo "configure: warning: cannot run when cross-compiling" 1>&2
10694 else
10695 cat > conftest.$ac_ext <<EOF
10696 #line 10697 "configure"
10697 #include "confdefs.h"
10698 #include "${srcdir-.}/tests/trivial.c"
10700 if { (eval echo configure:10701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10701 then
10702 echo "$ac_t""yes" 1>&6
10703 else
10704 echo "configure: failed program was:" >&5
10705 cat conftest.$ac_ext >&5
10706 rm -fr conftest*
10707 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
10709 rm -fr conftest*
10713 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
10714 echo "configure:10715: checking for ftruncate extend" >&5
10715 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
10716 echo $ac_n "(cached) $ac_c" 1>&6
10717 else
10719 if test "$cross_compiling" = yes; then
10720 samba_cv_HAVE_FTRUNCATE_EXTEND=cross
10721 else
10722 cat > conftest.$ac_ext <<EOF
10723 #line 10724 "configure"
10724 #include "confdefs.h"
10725 #include "${srcdir-.}/tests/ftruncate.c"
10727 if { (eval echo configure:10728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10728 then
10729 samba_cv_HAVE_FTRUNCATE_EXTEND=yes
10730 else
10731 echo "configure: failed program was:" >&5
10732 cat conftest.$ac_ext >&5
10733 rm -fr conftest*
10734 samba_cv_HAVE_FTRUNCATE_EXTEND=no
10736 rm -fr conftest*
10741 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
10742 if test x"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x"yes"; then
10743 cat >> confdefs.h <<\EOF
10744 #define HAVE_FTRUNCATE_EXTEND 1
10749 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
10750 echo "configure:10751: checking for broken getgroups" >&5
10751 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
10752 echo $ac_n "(cached) $ac_c" 1>&6
10753 else
10755 if test "$cross_compiling" = yes; then
10756 samba_cv_HAVE_BROKEN_GETGROUPS=cross
10757 else
10758 cat > conftest.$ac_ext <<EOF
10759 #line 10760 "configure"
10760 #include "confdefs.h"
10761 #include "${srcdir-.}/tests/getgroups.c"
10763 if { (eval echo configure:10764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10764 then
10765 samba_cv_HAVE_BROKEN_GETGROUPS=yes
10766 else
10767 echo "configure: failed program was:" >&5
10768 cat conftest.$ac_ext >&5
10769 rm -fr conftest*
10770 samba_cv_HAVE_BROKEN_GETGROUPS=no
10772 rm -fr conftest*
10777 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
10778 if test x"$samba_cv_HAVE_BROKEN_GETGROUPS" = x"yes"; then
10779 cat >> confdefs.h <<\EOF
10780 #define HAVE_BROKEN_GETGROUPS 1
10785 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
10786 echo "configure:10787: checking whether getpass should be replaced" >&5
10787 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
10788 echo $ac_n "(cached) $ac_c" 1>&6
10789 else
10791 SAVE_CPPFLAGS="$CPPFLAGS"
10792 CPPFLAGS="$CPPFLAGS -I${srcdir-.}/ -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/popt -I${srcdir-.}/smbwrapper"
10793 cat > conftest.$ac_ext <<EOF
10794 #line 10795 "configure"
10795 #include "confdefs.h"
10797 #define REPLACE_GETPASS 1
10798 #define NO_CONFIG_H 1
10799 #define main dont_declare_main
10800 #include "${srcdir-.}/lib/getsmbpass.c"
10801 #undef main
10803 int main() {
10805 ; return 0; }
10807 if { (eval echo configure:10808: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10808 rm -rf conftest*
10809 samba_cv_REPLACE_GETPASS=yes
10810 else
10811 echo "configure: failed program was:" >&5
10812 cat conftest.$ac_ext >&5
10813 rm -rf conftest*
10814 samba_cv_REPLACE_GETPASS=no
10816 rm -f conftest*
10817 CPPFLAGS="$SAVE_CPPFLAGS"
10821 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
10822 if test x"$samba_cv_REPLACE_GETPASS" = x"yes"; then
10823 cat >> confdefs.h <<\EOF
10824 #define REPLACE_GETPASS 1
10829 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
10830 echo "configure:10831: checking for broken inet_ntoa" >&5
10831 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
10832 echo $ac_n "(cached) $ac_c" 1>&6
10833 else
10835 if test "$cross_compiling" = yes; then
10836 samba_cv_REPLACE_INET_NTOA=cross
10837 else
10838 cat > conftest.$ac_ext <<EOF
10839 #line 10840 "configure"
10840 #include "confdefs.h"
10842 #include <stdio.h>
10843 #include <sys/types.h>
10844 #include <netinet/in.h>
10845 #ifdef HAVE_ARPA_INET_H
10846 #include <arpa/inet.h>
10847 #endif
10848 main() { struct in_addr ip; ip.s_addr = 0x12345678;
10849 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
10850 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
10851 exit(1);}
10853 if { (eval echo configure:10854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10854 then
10855 samba_cv_REPLACE_INET_NTOA=yes
10856 else
10857 echo "configure: failed program was:" >&5
10858 cat conftest.$ac_ext >&5
10859 rm -fr conftest*
10860 samba_cv_REPLACE_INET_NTOA=no
10862 rm -fr conftest*
10867 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
10868 if test x"$samba_cv_REPLACE_INET_NTOA" = x"yes"; then
10869 cat >> confdefs.h <<\EOF
10870 #define REPLACE_INET_NTOA 1
10875 echo $ac_n "checking for secure mkstemp""... $ac_c" 1>&6
10876 echo "configure:10877: checking for secure mkstemp" >&5
10877 if eval "test \"`echo '$''{'samba_cv_HAVE_SECURE_MKSTEMP'+set}'`\" = set"; then
10878 echo $ac_n "(cached) $ac_c" 1>&6
10879 else
10881 if test "$cross_compiling" = yes; then
10882 samba_cv_HAVE_SECURE_MKSTEMP=cross
10883 else
10884 cat > conftest.$ac_ext <<EOF
10885 #line 10886 "configure"
10886 #include "confdefs.h"
10887 #include <stdlib.h>
10888 #include <sys/types.h>
10889 #include <sys/stat.h>
10890 #include <unistd.h>
10891 main() {
10892 struct stat st;
10893 char tpl[20]="/tmp/test.XXXXXX";
10894 int fd = mkstemp(tpl);
10895 if (fd == -1) exit(1);
10896 unlink(tpl);
10897 if (fstat(fd, &st) != 0) exit(1);
10898 if ((st.st_mode & 0777) != 0600) exit(1);
10899 exit(0);
10902 if { (eval echo configure:10903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10903 then
10904 samba_cv_HAVE_SECURE_MKSTEMP=yes
10905 else
10906 echo "configure: failed program was:" >&5
10907 cat conftest.$ac_ext >&5
10908 rm -fr conftest*
10909 samba_cv_HAVE_SECURE_MKSTEMP=no
10911 rm -fr conftest*
10916 echo "$ac_t""$samba_cv_HAVE_SECURE_MKSTEMP" 1>&6
10917 if test x"$samba_cv_HAVE_SECURE_MKSTEMP" = x"yes"; then
10918 cat >> confdefs.h <<\EOF
10919 #define HAVE_SECURE_MKSTEMP 1
10924 echo $ac_n "checking for sysconf(_SC_NGROUPS_MAX)""... $ac_c" 1>&6
10925 echo "configure:10926: checking for sysconf(_SC_NGROUPS_MAX)" >&5
10926 if eval "test \"`echo '$''{'samba_cv_SYSCONF_SC_NGROUPS_MAX'+set}'`\" = set"; then
10927 echo $ac_n "(cached) $ac_c" 1>&6
10928 else
10930 if test "$cross_compiling" = yes; then
10931 samba_cv_SYSCONF_SC_NGROUPS_MAX=cross
10932 else
10933 cat > conftest.$ac_ext <<EOF
10934 #line 10935 "configure"
10935 #include "confdefs.h"
10936 #include <unistd.h>
10937 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
10939 if { (eval echo configure:10940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10940 then
10941 samba_cv_SYSCONF_SC_NGROUPS_MAX=yes
10942 else
10943 echo "configure: failed program was:" >&5
10944 cat conftest.$ac_ext >&5
10945 rm -fr conftest*
10946 samba_cv_SYSCONF_SC_NGROUPS_MAX=no
10948 rm -fr conftest*
10953 echo "$ac_t""$samba_cv_SYSCONF_SC_NGROUPS_MAX" 1>&6
10954 if test x"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x"yes"; then
10955 cat >> confdefs.h <<\EOF
10956 #define SYSCONF_SC_NGROUPS_MAX 1
10961 echo $ac_n "checking for root""... $ac_c" 1>&6
10962 echo "configure:10963: checking for root" >&5
10963 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
10964 echo $ac_n "(cached) $ac_c" 1>&6
10965 else
10967 if test "$cross_compiling" = yes; then
10968 samba_cv_HAVE_ROOT=cross
10969 else
10970 cat > conftest.$ac_ext <<EOF
10971 #line 10972 "configure"
10972 #include "confdefs.h"
10973 main() { exit(getuid() != 0); }
10975 if { (eval echo configure:10976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10976 then
10977 samba_cv_HAVE_ROOT=yes
10978 else
10979 echo "configure: failed program was:" >&5
10980 cat conftest.$ac_ext >&5
10981 rm -fr conftest*
10982 samba_cv_HAVE_ROOT=no
10984 rm -fr conftest*
10989 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
10990 if test x"$samba_cv_HAVE_ROOT" = x"yes"; then
10991 cat >> confdefs.h <<\EOF
10992 #define HAVE_ROOT 1
10995 else
10996 echo "configure: warning: running as non-root will disable some tests" 1>&2
10999 ##################
11000 # look for a method of finding the list of network interfaces
11001 iface=no;
11002 echo $ac_n "checking for iface AIX""... $ac_c" 1>&6
11003 echo "configure:11004: checking for iface AIX" >&5
11004 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_AIX'+set}'`\" = set"; then
11005 echo $ac_n "(cached) $ac_c" 1>&6
11006 else
11008 if test "$cross_compiling" = yes; then
11009 samba_cv_HAVE_IFACE_AIX=cross
11010 else
11011 cat > conftest.$ac_ext <<EOF
11012 #line 11013 "configure"
11013 #include "confdefs.h"
11015 #define HAVE_IFACE_AIX 1
11016 #define AUTOCONF_TEST 1
11017 #include "confdefs.h"
11018 #include "${srcdir-.}/lib/interfaces.c"
11020 if { (eval echo configure:11021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11021 then
11022 samba_cv_HAVE_IFACE_AIX=yes
11023 else
11024 echo "configure: failed program was:" >&5
11025 cat conftest.$ac_ext >&5
11026 rm -fr conftest*
11027 samba_cv_HAVE_IFACE_AIX=no
11029 rm -fr conftest*
11034 echo "$ac_t""$samba_cv_HAVE_IFACE_AIX" 1>&6
11035 if test x"$samba_cv_HAVE_IFACE_AIX" = x"yes"; then
11036 iface=yes;cat >> confdefs.h <<\EOF
11037 #define HAVE_IFACE_AIX 1
11042 if test $iface = no; then
11043 echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6
11044 echo "configure:11045: checking for iface ifconf" >&5
11045 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFCONF'+set}'`\" = set"; then
11046 echo $ac_n "(cached) $ac_c" 1>&6
11047 else
11049 if test "$cross_compiling" = yes; then
11050 samba_cv_HAVE_IFACE_IFCONF=cross
11051 else
11052 cat > conftest.$ac_ext <<EOF
11053 #line 11054 "configure"
11054 #include "confdefs.h"
11056 #define HAVE_IFACE_IFCONF 1
11057 #define AUTOCONF_TEST 1
11058 #include "confdefs.h"
11059 #include "${srcdir-.}/lib/interfaces.c"
11061 if { (eval echo configure:11062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11062 then
11063 samba_cv_HAVE_IFACE_IFCONF=yes
11064 else
11065 echo "configure: failed program was:" >&5
11066 cat conftest.$ac_ext >&5
11067 rm -fr conftest*
11068 samba_cv_HAVE_IFACE_IFCONF=no
11070 rm -fr conftest*
11075 echo "$ac_t""$samba_cv_HAVE_IFACE_IFCONF" 1>&6
11076 if test x"$samba_cv_HAVE_IFACE_IFCONF" = x"yes"; then
11077 iface=yes;cat >> confdefs.h <<\EOF
11078 #define HAVE_IFACE_IFCONF 1
11084 if test $iface = no; then
11085 echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6
11086 echo "configure:11087: checking for iface ifreq" >&5
11087 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFREQ'+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_IFREQ=cross
11093 else
11094 cat > conftest.$ac_ext <<EOF
11095 #line 11096 "configure"
11096 #include "confdefs.h"
11098 #define HAVE_IFACE_IFREQ 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_IFREQ=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_IFREQ=no
11112 rm -fr conftest*
11117 echo "$ac_t""$samba_cv_HAVE_IFACE_IFREQ" 1>&6
11118 if test x"$samba_cv_HAVE_IFACE_IFREQ" = x"yes"; then
11119 iface=yes;cat >> confdefs.h <<\EOF
11120 #define HAVE_IFACE_IFREQ 1
11127 ################################################
11128 # look for a method of setting the effective uid
11129 seteuid=no;
11130 if test $seteuid = no; then
11131 echo $ac_n "checking for setresuid""... $ac_c" 1>&6
11132 echo "configure:11133: checking for setresuid" >&5
11133 if eval "test \"`echo '$''{'samba_cv_USE_SETRESUID'+set}'`\" = set"; then
11134 echo $ac_n "(cached) $ac_c" 1>&6
11135 else
11137 if test "$cross_compiling" = yes; then
11138 samba_cv_USE_SETRESUID=cross
11139 else
11140 cat > conftest.$ac_ext <<EOF
11141 #line 11142 "configure"
11142 #include "confdefs.h"
11144 #define AUTOCONF_TEST 1
11145 #define USE_SETRESUID 1
11146 #include "confdefs.h"
11147 #include "${srcdir-.}/lib/util_sec.c"
11149 if { (eval echo configure:11150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11150 then
11151 samba_cv_USE_SETRESUID=yes
11152 else
11153 echo "configure: failed program was:" >&5
11154 cat conftest.$ac_ext >&5
11155 rm -fr conftest*
11156 samba_cv_USE_SETRESUID=no
11158 rm -fr conftest*
11163 echo "$ac_t""$samba_cv_USE_SETRESUID" 1>&6
11164 if test x"$samba_cv_USE_SETRESUID" = x"yes"; then
11165 seteuid=yes;cat >> confdefs.h <<\EOF
11166 #define USE_SETRESUID 1
11173 if test $seteuid = no; then
11174 echo $ac_n "checking for setreuid""... $ac_c" 1>&6
11175 echo "configure:11176: checking for setreuid" >&5
11176 if eval "test \"`echo '$''{'samba_cv_USE_SETREUID'+set}'`\" = set"; then
11177 echo $ac_n "(cached) $ac_c" 1>&6
11178 else
11180 if test "$cross_compiling" = yes; then
11181 samba_cv_USE_SETREUID=cross
11182 else
11183 cat > conftest.$ac_ext <<EOF
11184 #line 11185 "configure"
11185 #include "confdefs.h"
11187 #define AUTOCONF_TEST 1
11188 #define USE_SETREUID 1
11189 #include "confdefs.h"
11190 #include "${srcdir-.}/lib/util_sec.c"
11192 if { (eval echo configure:11193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11193 then
11194 samba_cv_USE_SETREUID=yes
11195 else
11196 echo "configure: failed program was:" >&5
11197 cat conftest.$ac_ext >&5
11198 rm -fr conftest*
11199 samba_cv_USE_SETREUID=no
11201 rm -fr conftest*
11206 echo "$ac_t""$samba_cv_USE_SETREUID" 1>&6
11207 if test x"$samba_cv_USE_SETREUID" = x"yes"; then
11208 seteuid=yes;cat >> confdefs.h <<\EOF
11209 #define USE_SETREUID 1
11215 if test $seteuid = no; then
11216 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
11217 echo "configure:11218: checking for seteuid" >&5
11218 if eval "test \"`echo '$''{'samba_cv_USE_SETEUID'+set}'`\" = set"; then
11219 echo $ac_n "(cached) $ac_c" 1>&6
11220 else
11222 if test "$cross_compiling" = yes; then
11223 samba_cv_USE_SETEUID=cross
11224 else
11225 cat > conftest.$ac_ext <<EOF
11226 #line 11227 "configure"
11227 #include "confdefs.h"
11229 #define AUTOCONF_TEST 1
11230 #define USE_SETEUID 1
11231 #include "confdefs.h"
11232 #include "${srcdir-.}/lib/util_sec.c"
11234 if { (eval echo configure:11235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11235 then
11236 samba_cv_USE_SETEUID=yes
11237 else
11238 echo "configure: failed program was:" >&5
11239 cat conftest.$ac_ext >&5
11240 rm -fr conftest*
11241 samba_cv_USE_SETEUID=no
11243 rm -fr conftest*
11248 echo "$ac_t""$samba_cv_USE_SETEUID" 1>&6
11249 if test x"$samba_cv_USE_SETEUID" = x"yes"; then
11250 seteuid=yes;cat >> confdefs.h <<\EOF
11251 #define USE_SETEUID 1
11257 if test $seteuid = no; then
11258 echo $ac_n "checking for setuidx""... $ac_c" 1>&6
11259 echo "configure:11260: checking for setuidx" >&5
11260 if eval "test \"`echo '$''{'samba_cv_USE_SETUIDX'+set}'`\" = set"; then
11261 echo $ac_n "(cached) $ac_c" 1>&6
11262 else
11264 if test "$cross_compiling" = yes; then
11265 samba_cv_USE_SETUIDX=cross
11266 else
11267 cat > conftest.$ac_ext <<EOF
11268 #line 11269 "configure"
11269 #include "confdefs.h"
11271 #define AUTOCONF_TEST 1
11272 #define USE_SETUIDX 1
11273 #include "confdefs.h"
11274 #include "${srcdir-.}/lib/util_sec.c"
11276 if { (eval echo configure:11277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11277 then
11278 samba_cv_USE_SETUIDX=yes
11279 else
11280 echo "configure: failed program was:" >&5
11281 cat conftest.$ac_ext >&5
11282 rm -fr conftest*
11283 samba_cv_USE_SETUIDX=no
11285 rm -fr conftest*
11290 echo "$ac_t""$samba_cv_USE_SETUIDX" 1>&6
11291 if test x"$samba_cv_USE_SETUIDX" = x"yes"; then
11292 seteuid=yes;cat >> confdefs.h <<\EOF
11293 #define USE_SETUIDX 1
11300 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
11301 echo "configure:11302: checking for working mmap" >&5
11302 if eval "test \"`echo '$''{'samba_cv_HAVE_MMAP'+set}'`\" = set"; then
11303 echo $ac_n "(cached) $ac_c" 1>&6
11304 else
11306 if test "$cross_compiling" = yes; then
11307 samba_cv_HAVE_MMAP=cross
11308 else
11309 cat > conftest.$ac_ext <<EOF
11310 #line 11311 "configure"
11311 #include "confdefs.h"
11312 #include "${srcdir-.}/tests/shared_mmap.c"
11314 if { (eval echo configure:11315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11315 then
11316 samba_cv_HAVE_MMAP=yes
11317 else
11318 echo "configure: failed program was:" >&5
11319 cat conftest.$ac_ext >&5
11320 rm -fr conftest*
11321 samba_cv_HAVE_MMAP=no
11323 rm -fr conftest*
11328 echo "$ac_t""$samba_cv_HAVE_MMAP" 1>&6
11329 if test x"$samba_cv_HAVE_MMAP" = x"yes"; then
11330 cat >> confdefs.h <<\EOF
11331 #define HAVE_MMAP 1
11336 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
11337 echo "configure:11338: checking for ftruncate needs root" >&5
11338 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
11339 echo $ac_n "(cached) $ac_c" 1>&6
11340 else
11342 if test "$cross_compiling" = yes; then
11343 samba_cv_FTRUNCATE_NEEDS_ROOT=cross
11344 else
11345 cat > conftest.$ac_ext <<EOF
11346 #line 11347 "configure"
11347 #include "confdefs.h"
11348 #include "${srcdir-.}/tests/ftruncroot.c"
11350 if { (eval echo configure:11351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11351 then
11352 samba_cv_FTRUNCATE_NEEDS_ROOT=yes
11353 else
11354 echo "configure: failed program was:" >&5
11355 cat conftest.$ac_ext >&5
11356 rm -fr conftest*
11357 samba_cv_FTRUNCATE_NEEDS_ROOT=no
11359 rm -fr conftest*
11364 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
11365 if test x"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x"yes"; then
11366 cat >> confdefs.h <<\EOF
11367 #define FTRUNCATE_NEEDS_ROOT 1
11372 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
11373 echo "configure:11374: checking for fcntl locking" >&5
11374 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
11375 echo $ac_n "(cached) $ac_c" 1>&6
11376 else
11378 if test "$cross_compiling" = yes; then
11379 samba_cv_HAVE_FCNTL_LOCK=cross
11380 else
11381 cat > conftest.$ac_ext <<EOF
11382 #line 11383 "configure"
11383 #include "confdefs.h"
11384 #include "${srcdir-.}/tests/fcntl_lock.c"
11386 if { (eval echo configure:11387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11387 then
11388 samba_cv_HAVE_FCNTL_LOCK=yes
11389 else
11390 echo "configure: failed program was:" >&5
11391 cat conftest.$ac_ext >&5
11392 rm -fr conftest*
11393 samba_cv_HAVE_FCNTL_LOCK=no
11395 rm -fr conftest*
11400 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
11401 if test x"$samba_cv_HAVE_FCNTL_LOCK" = x"yes"; then
11402 cat >> confdefs.h <<\EOF
11403 #define HAVE_FCNTL_LOCK 1
11408 echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6
11409 echo "configure:11410: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
11410 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_FCNTL64_LOCKS'+set}'`\" = set"; then
11411 echo $ac_n "(cached) $ac_c" 1>&6
11412 else
11414 if test "$cross_compiling" = yes; then
11415 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=cross
11416 else
11417 cat > conftest.$ac_ext <<EOF
11418 #line 11419 "configure"
11419 #include "confdefs.h"
11420 #include "${srcdir-.}/tests/fcntl_lock64.c"
11422 if { (eval echo configure:11423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11423 then
11424 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=yes
11425 else
11426 echo "configure: failed program was:" >&5
11427 cat conftest.$ac_ext >&5
11428 rm -fr conftest*
11429 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=no
11431 rm -fr conftest*
11436 echo "$ac_t""$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" 1>&6
11437 if test x"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x"yes"; then
11438 cat >> confdefs.h <<\EOF
11439 #define HAVE_BROKEN_FCNTL64_LOCKS 1
11443 else
11446 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
11447 echo "configure:11448: checking for 64 bit fcntl locking" >&5
11448 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
11449 echo $ac_n "(cached) $ac_c" 1>&6
11450 else
11452 if test "$cross_compiling" = yes; then
11453 samba_cv_HAVE_STRUCT_FLOCK64=cross
11454 else
11455 cat > conftest.$ac_ext <<EOF
11456 #line 11457 "configure"
11457 #include "confdefs.h"
11459 #if defined(HAVE_UNISTD_H)
11460 #include <unistd.h>
11461 #endif
11462 #include <stdio.h>
11463 #include <stdlib.h>
11465 #ifdef HAVE_FCNTL_H
11466 #include <fcntl.h>
11467 #endif
11469 #ifdef HAVE_SYS_FCNTL_H
11470 #include <sys/fcntl.h>
11471 #endif
11472 main() { struct flock64 fl64;
11473 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
11474 exit(0);
11475 #else
11476 exit(1);
11477 #endif
11480 if { (eval echo configure:11481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11481 then
11482 samba_cv_HAVE_STRUCT_FLOCK64=yes
11483 else
11484 echo "configure: failed program was:" >&5
11485 cat conftest.$ac_ext >&5
11486 rm -fr conftest*
11487 samba_cv_HAVE_STRUCT_FLOCK64=no
11489 rm -fr conftest*
11494 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
11496 if test x"$samba_cv_HAVE_STRUCT_FLOCK64" = x"yes"; then
11497 cat >> confdefs.h <<\EOF
11498 #define HAVE_STRUCT_FLOCK64 1
11504 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
11505 echo "configure:11506: checking for st_blocks in struct stat" >&5
11506 if eval "test \"`echo '$''{'samba_cv_HAVE_STAT_ST_BLOCKS'+set}'`\" = set"; then
11507 echo $ac_n "(cached) $ac_c" 1>&6
11508 else
11510 cat > conftest.$ac_ext <<EOF
11511 #line 11512 "configure"
11512 #include "confdefs.h"
11513 #include <sys/types.h>
11514 #include <sys/stat.h>
11515 #include <unistd.h>
11516 int main() {
11517 struct stat st; st.st_blocks = 0;
11518 ; return 0; }
11520 if { (eval echo configure:11521: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11521 rm -rf conftest*
11522 samba_cv_HAVE_STAT_ST_BLOCKS=yes
11523 else
11524 echo "configure: failed program was:" >&5
11525 cat conftest.$ac_ext >&5
11526 rm -rf conftest*
11527 samba_cv_HAVE_STAT_ST_BLOCKS=no
11529 rm -f conftest*
11532 echo "$ac_t""$samba_cv_HAVE_STAT_ST_BLOCKS" 1>&6
11533 if test x"$samba_cv_HAVE_STAT_ST_BLOCKS" = x"yes"; then
11534 cat >> confdefs.h <<\EOF
11535 #define HAVE_STAT_ST_BLOCKS 1
11540 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
11541 echo "configure:11542: checking for st_blksize in struct stat" >&5
11542 if eval "test \"`echo '$''{'samba_cv_HAVE_STAT_ST_BLKSIZE'+set}'`\" = set"; then
11543 echo $ac_n "(cached) $ac_c" 1>&6
11544 else
11546 cat > conftest.$ac_ext <<EOF
11547 #line 11548 "configure"
11548 #include "confdefs.h"
11549 #include <sys/types.h>
11550 #include <sys/stat.h>
11551 #include <unistd.h>
11552 int main() {
11553 struct stat st; st.st_blksize = 0;
11554 ; return 0; }
11556 if { (eval echo configure:11557: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11557 rm -rf conftest*
11558 samba_cv_HAVE_STAT_ST_BLKSIZE=yes
11559 else
11560 echo "configure: failed program was:" >&5
11561 cat conftest.$ac_ext >&5
11562 rm -rf conftest*
11563 samba_cv_HAVE_STAT_ST_BLKSIZE=no
11565 rm -f conftest*
11568 echo "$ac_t""$samba_cv_HAVE_STAT_ST_BLKSIZE" 1>&6
11569 if test x"$samba_cv_HAVE_STAT_ST_BLKSIZE" = x"yes"; then
11570 cat >> confdefs.h <<\EOF
11571 #define HAVE_STAT_ST_BLKSIZE 1
11576 case "$host_os" in
11577 *linux*)
11578 echo $ac_n "checking for broken RedHat 7.2 system header files""... $ac_c" 1>&6
11579 echo "configure:11580: checking for broken RedHat 7.2 system header files" >&5
11580 if eval "test \"`echo '$''{'samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS'+set}'`\" = set"; then
11581 echo $ac_n "(cached) $ac_c" 1>&6
11582 else
11584 cat > conftest.$ac_ext <<EOF
11585 #line 11586 "configure"
11586 #include "confdefs.h"
11588 #ifdef HAVE_SYS_VFS_H
11589 #include <sys/vfs.h>
11590 #endif
11591 #ifdef HAVE_SYS_CAPABILITY_H
11592 #include <sys/capability.h>
11593 #endif
11595 int main() {
11596 int i;
11597 ; return 0; }
11599 if { (eval echo configure:11600: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11600 rm -rf conftest*
11601 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=no
11602 else
11603 echo "configure: failed program was:" >&5
11604 cat conftest.$ac_ext >&5
11605 rm -rf conftest*
11606 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=yes
11608 rm -f conftest*
11611 echo "$ac_t""$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" 1>&6
11612 if test x"$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" = x"yes"; then
11613 cat >> confdefs.h <<\EOF
11614 #define BROKEN_REDHAT_7_SYSTEM_HEADERS 1
11619 esac
11621 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
11622 echo "configure:11623: checking for broken nisplus include files" >&5
11623 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
11624 echo $ac_n "(cached) $ac_c" 1>&6
11625 else
11627 cat > conftest.$ac_ext <<EOF
11628 #line 11629 "configure"
11629 #include "confdefs.h"
11630 #include <sys/acl.h>
11631 #if defined(HAVE_RPCSVC_NIS_H)
11632 #include <rpcsvc/nis.h>
11633 #endif
11634 int main() {
11635 int i;
11636 ; return 0; }
11638 if { (eval echo configure:11639: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11639 rm -rf conftest*
11640 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=no
11641 else
11642 echo "configure: failed program was:" >&5
11643 cat conftest.$ac_ext >&5
11644 rm -rf conftest*
11645 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=yes
11647 rm -f conftest*
11650 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
11651 if test x"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x"yes"; then
11652 cat >> confdefs.h <<\EOF
11653 #define BROKEN_NISPLUS_INCLUDE_FILES 1
11659 #################################################
11660 # check for smbwrapper support
11661 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
11662 echo "configure:11663: checking whether to use smbwrapper" >&5
11663 # Check whether --with-smbwrapper or --without-smbwrapper was given.
11664 if test "${with_smbwrapper+set}" = set; then
11665 withval="$with_smbwrapper"
11666 case "$withval" in
11667 yes)
11668 echo "$ac_t""yes" 1>&6
11669 cat >> confdefs.h <<\EOF
11670 #define WITH_SMBWRAPPER 1
11673 WRAPPROG="bin/smbsh"
11674 WRAP="bin/smbwrapper.$SHLIBEXT"
11676 if test x$ATTEMPT_WRAP32_BUILD = x; then
11677 WRAP32=""
11678 else
11679 WRAP32=bin/smbwrapper.32.$SHLIBEXT
11682 # Conditions under which smbwrapper should not be built.
11684 if test x$PICFLAG = x; then
11685 echo No support for PIC code - disabling smbwrapper and smbsh
11686 WRAPPROG=""
11687 WRAP=""
11688 WRAP32=""
11689 elif test x$ac_cv_func_syscall = xno; then
11690 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
11691 WRAPPROG=""
11692 WRAP=""
11693 WRAP32=""
11697 echo "$ac_t""no" 1>&6
11699 esac
11700 else
11701 echo "$ac_t""no" 1>&6
11706 #################################################
11707 # check for the AFS filesystem
11708 echo $ac_n "checking whether to use AFS""... $ac_c" 1>&6
11709 echo "configure:11710: checking whether to use AFS" >&5
11710 # Check whether --with-afs or --without-afs was given.
11711 if test "${with_afs+set}" = set; then
11712 withval="$with_afs"
11713 case "$withval" in
11714 yes)
11715 echo "$ac_t""yes" 1>&6
11716 cat >> confdefs.h <<\EOF
11717 #define WITH_AFS 1
11722 echo "$ac_t""no" 1>&6
11724 esac
11725 else
11726 echo "$ac_t""no" 1>&6
11732 #################################################
11733 # check for the DFS auth system
11734 echo $ac_n "checking whether to use DCE/DFS auth""... $ac_c" 1>&6
11735 echo "configure:11736: checking whether to use DCE/DFS auth" >&5
11736 # Check whether --with-dfs or --without-dfs was given.
11737 if test "${with_dfs+set}" = set; then
11738 withval="$with_dfs"
11739 case "$withval" in
11740 yes)
11741 echo "$ac_t""yes" 1>&6
11742 cat >> confdefs.h <<\EOF
11743 #define WITH_DFS 1
11748 echo "$ac_t""no" 1>&6
11750 esac
11751 else
11752 echo "$ac_t""no" 1>&6
11757 #################################################
11758 # check for Kerberos IV auth system
11759 echo $ac_n "checking whether to use Kerberos IV""... $ac_c" 1>&6
11760 echo "configure:11761: checking whether to use Kerberos IV" >&5
11761 # Check whether --with-krb4 or --without-krb4 was given.
11762 if test "${with_krb4+set}" = set; then
11763 withval="$with_krb4"
11764 case "$withval" in
11765 yes)
11766 echo "$ac_t""yes" 1>&6
11767 cat >> confdefs.h <<\EOF
11768 #define KRB4_AUTH 1
11771 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
11772 echo "configure:11773: checking for dn_expand in -lresolv" >&5
11773 ac_lib_var=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
11774 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11775 echo $ac_n "(cached) $ac_c" 1>&6
11776 else
11777 ac_save_LIBS="$LIBS"
11778 LIBS="-lresolv $LIBS"
11779 cat > conftest.$ac_ext <<EOF
11780 #line 11781 "configure"
11781 #include "confdefs.h"
11782 /* Override any gcc2 internal prototype to avoid an error. */
11783 /* We use char because int might match the return type of a gcc2
11784 builtin and then its argument prototype would still apply. */
11785 char dn_expand();
11787 int main() {
11788 dn_expand()
11789 ; return 0; }
11791 if { (eval echo configure:11792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11792 rm -rf conftest*
11793 eval "ac_cv_lib_$ac_lib_var=yes"
11794 else
11795 echo "configure: failed program was:" >&5
11796 cat conftest.$ac_ext >&5
11797 rm -rf conftest*
11798 eval "ac_cv_lib_$ac_lib_var=no"
11800 rm -f conftest*
11801 LIBS="$ac_save_LIBS"
11804 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11805 echo "$ac_t""yes" 1>&6
11806 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11807 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11808 cat >> confdefs.h <<EOF
11809 #define $ac_tr_lib 1
11812 LIBS="-lresolv $LIBS"
11814 else
11815 echo "$ac_t""no" 1>&6
11818 LIBS="$LIBS -lkrb -ldes"
11819 CFLAGS="$CFLAGS -I$withval/include"
11820 LDFLAGS="$LDFLAGS -L$withval/lib"
11823 echo "$ac_t""no" 1>&6
11825 esac
11826 else
11827 echo "$ac_t""no" 1>&6
11832 #################################################
11833 # check for Kerberos 5 auth system
11834 echo $ac_n "checking whether to use Kerberos 5""... $ac_c" 1>&6
11835 echo "configure:11836: checking whether to use Kerberos 5" >&5
11836 # Check whether --with-krb5 or --without-krb5 was given.
11837 if test "${with_krb5+set}" = set; then
11838 withval="$with_krb5"
11839 case "$withval" in
11840 yes)
11841 echo "$ac_t""yes" 1>&6
11842 cat >> confdefs.h <<\EOF
11843 #define KRB5_AUTH 1
11846 LIBS="$LIBS -ldes425 -lkrb5 -lcrypto -lcom_err"
11847 CFLAGS="$CFLAGS -I$withval/include"
11848 LDFLAGS="$LDFLAGS -L$withval/lib"
11851 echo "$ac_t""no" 1>&6
11853 esac
11854 else
11855 echo "$ac_t""no" 1>&6
11860 #################################################
11861 # check for automount support
11862 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
11863 echo "configure:11864: checking whether to use AUTOMOUNT" >&5
11864 # Check whether --with-automount or --without-automount was given.
11865 if test "${with_automount+set}" = set; then
11866 withval="$with_automount"
11867 case "$withval" in
11868 yes)
11869 echo "$ac_t""yes" 1>&6
11870 cat >> confdefs.h <<\EOF
11871 #define WITH_AUTOMOUNT 1
11876 echo "$ac_t""no" 1>&6
11878 esac
11879 else
11880 echo "$ac_t""no" 1>&6
11885 #################################################
11886 # check for smbmount support
11887 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
11888 echo "configure:11889: checking whether to use SMBMOUNT" >&5
11889 # Check whether --with-smbmount or --without-smbmount was given.
11890 if test "${with_smbmount+set}" = set; then
11891 withval="$with_smbmount"
11892 case "$withval" in
11893 yes)
11894 case "$host_os" in
11895 *linux*)
11896 echo "$ac_t""yes" 1>&6
11897 cat >> confdefs.h <<\EOF
11898 #define WITH_SMBMOUNT 1
11901 MPROGS="bin/smbmount bin/smbmnt bin/smbumount"
11904 { echo "configure: error: not on a linux system!" 1>&2; exit 1; }
11906 esac
11909 echo "$ac_t""no" 1>&6
11910 MPROGS=
11912 esac
11913 else
11914 echo "$ac_t""no" 1>&6
11915 MPROGS=
11921 #################################################
11922 # check for a PAM password database
11923 with_pam_for_crypt=no
11924 echo $ac_n "checking whether to use PAM password database""... $ac_c" 1>&6
11925 echo "configure:11926: checking whether to use PAM password database" >&5
11926 # Check whether --with-pam or --without-pam was given.
11927 if test "${with_pam+set}" = set; then
11928 withval="$with_pam"
11929 case "$withval" in
11930 yes)
11931 echo "$ac_t""yes" 1>&6
11932 cat >> confdefs.h <<\EOF
11933 #define WITH_PAM 1
11936 LIBS="$LIBS -lpam"
11937 with_pam_for_crypt=yes
11940 echo "$ac_t""no" 1>&6
11942 esac
11943 else
11944 echo "$ac_t""no" 1>&6
11949 # we can't build a pam module if we don't have pam.
11950 echo $ac_n "checking for pam_get_data in -lpam""... $ac_c" 1>&6
11951 echo "configure:11952: checking for pam_get_data in -lpam" >&5
11952 ac_lib_var=`echo pam'_'pam_get_data | sed 'y%./+-%__p_%'`
11953 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11954 echo $ac_n "(cached) $ac_c" 1>&6
11955 else
11956 ac_save_LIBS="$LIBS"
11957 LIBS="-lpam $LIBS"
11958 cat > conftest.$ac_ext <<EOF
11959 #line 11960 "configure"
11960 #include "confdefs.h"
11961 /* Override any gcc2 internal prototype to avoid an error. */
11962 /* We use char because int might match the return type of a gcc2
11963 builtin and then its argument prototype would still apply. */
11964 char pam_get_data();
11966 int main() {
11967 pam_get_data()
11968 ; return 0; }
11970 if { (eval echo configure:11971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11971 rm -rf conftest*
11972 eval "ac_cv_lib_$ac_lib_var=yes"
11973 else
11974 echo "configure: failed program was:" >&5
11975 cat conftest.$ac_ext >&5
11976 rm -rf conftest*
11977 eval "ac_cv_lib_$ac_lib_var=no"
11979 rm -f conftest*
11980 LIBS="$ac_save_LIBS"
11983 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11984 echo "$ac_t""yes" 1>&6
11985 cat >> confdefs.h <<\EOF
11986 #define HAVE_LIBPAM 1
11989 else
11990 echo "$ac_t""no" 1>&6
11994 #################################################
11995 # check for pam_smbpass support
11996 echo $ac_n "checking whether to use pam_smbpass""... $ac_c" 1>&6
11997 echo "configure:11998: checking whether to use pam_smbpass" >&5
11998 # Check whether --with-pam_smbpass or --without-pam_smbpass was given.
11999 if test "${with_pam_smbpass+set}" = set; then
12000 withval="$with_pam_smbpass"
12001 case "$withval" in
12002 yes)
12003 echo "$ac_t""yes" 1>&6
12005 # Conditions under which pam_smbpass should not be built.
12007 if test x$PICFLAG = x; then
12008 echo "$ac_t""No support for PIC code - disabling pam_smbpass" 1>&6
12009 PAM_MOD=""
12010 elif test x$ac_cv_lib_pam_pam_get_data = xno; then
12011 echo "$ac_t""No libpam found -- disabling pam_smbpass" 1>&6
12012 PAM_MOD=""
12013 else
12014 cat >> confdefs.h <<\EOF
12015 #define WITH_PAM_SMBPASS 1
12018 PAM_MOD="bin/pam_smbpass.so"
12022 echo "$ac_t""no" 1>&6
12024 esac
12025 else
12026 echo "$ac_t""no" 1>&6
12032 ###############################################
12033 # test for where we get crypt() from, but only
12034 # if not using PAM
12035 if test $with_pam_for_crypt = no; then
12036 for ac_func in crypt
12038 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12039 echo "configure:12040: checking for $ac_func" >&5
12040 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12041 echo $ac_n "(cached) $ac_c" 1>&6
12042 else
12043 cat > conftest.$ac_ext <<EOF
12044 #line 12045 "configure"
12045 #include "confdefs.h"
12046 /* System header to define __stub macros and hopefully few prototypes,
12047 which can conflict with char $ac_func(); below. */
12048 #include <assert.h>
12049 /* Override any gcc2 internal prototype to avoid an error. */
12050 /* We use char because int might match the return type of a gcc2
12051 builtin and then its argument prototype would still apply. */
12052 char $ac_func();
12054 int main() {
12056 /* The GNU C library defines this for functions which it implements
12057 to always fail with ENOSYS. Some functions are actually named
12058 something starting with __ and the normal name is an alias. */
12059 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12060 choke me
12061 #else
12062 $ac_func();
12063 #endif
12065 ; return 0; }
12067 if { (eval echo configure:12068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12068 rm -rf conftest*
12069 eval "ac_cv_func_$ac_func=yes"
12070 else
12071 echo "configure: failed program was:" >&5
12072 cat conftest.$ac_ext >&5
12073 rm -rf conftest*
12074 eval "ac_cv_func_$ac_func=no"
12076 rm -f conftest*
12079 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12080 echo "$ac_t""yes" 1>&6
12081 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12082 cat >> confdefs.h <<EOF
12083 #define $ac_tr_func 1
12086 else
12087 echo "$ac_t""no" 1>&6
12089 done
12091 if test x"$ac_cv_func_crypt" = x"no"; then
12092 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
12093 echo "configure:12094: checking for crypt in -lcrypt" >&5
12094 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
12095 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12096 echo $ac_n "(cached) $ac_c" 1>&6
12097 else
12098 ac_save_LIBS="$LIBS"
12099 LIBS="-lcrypt $LIBS"
12100 cat > conftest.$ac_ext <<EOF
12101 #line 12102 "configure"
12102 #include "confdefs.h"
12103 /* Override any gcc2 internal prototype to avoid an error. */
12104 /* We use char because int might match the return type of a gcc2
12105 builtin and then its argument prototype would still apply. */
12106 char crypt();
12108 int main() {
12109 crypt()
12110 ; return 0; }
12112 if { (eval echo configure:12113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12113 rm -rf conftest*
12114 eval "ac_cv_lib_$ac_lib_var=yes"
12115 else
12116 echo "configure: failed program was:" >&5
12117 cat conftest.$ac_ext >&5
12118 rm -rf conftest*
12119 eval "ac_cv_lib_$ac_lib_var=no"
12121 rm -f conftest*
12122 LIBS="$ac_save_LIBS"
12125 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12126 echo "$ac_t""yes" 1>&6
12127 LIBS="$LIBS -lcrypt";
12128 cat >> confdefs.h <<\EOF
12129 #define HAVE_CRYPT 1
12132 else
12133 echo "$ac_t""no" 1>&6
12140 ## moved after the check for -lcrypt in order to
12141 ## ensure that the necessary libraries are included
12142 ## check checking for truncated salt. Wrapped by the
12143 ## $with_pam_for_crypt variable as above --jerry
12145 if test $with_pam_for_crypt = no; then
12146 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
12147 echo "configure:12148: checking for a crypt that needs truncated salt" >&5
12148 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
12149 echo $ac_n "(cached) $ac_c" 1>&6
12150 else
12152 if test "$cross_compiling" = yes; then
12153 samba_cv_HAVE_TRUNCATED_SALT=cross
12154 else
12155 cat > conftest.$ac_ext <<EOF
12156 #line 12157 "configure"
12157 #include "confdefs.h"
12158 #include "${srcdir-.}/tests/crypttest.c"
12160 if { (eval echo configure:12161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12161 then
12162 samba_cv_HAVE_TRUNCATED_SALT=no
12163 else
12164 echo "configure: failed program was:" >&5
12165 cat conftest.$ac_ext >&5
12166 rm -fr conftest*
12167 samba_cv_HAVE_TRUNCATED_SALT=yes
12169 rm -fr conftest*
12174 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
12175 if test x"$samba_cv_HAVE_TRUNCATED_SALT" = x"yes"; then
12176 cat >> confdefs.h <<\EOF
12177 #define HAVE_TRUNCATED_SALT 1
12184 ########################################################################################
12186 ## TESTS FOR SAM BACKENDS. KEEP THESE GROUPED TOGETHER
12188 ########################################################################################
12190 ## set the with_smbpasswd_sam as the default
12191 with_smbpasswd_sam=yes
12195 #################################################
12196 # check for a TDB password database
12197 echo $ac_n "checking whether to use TDB SAM database""... $ac_c" 1>&6
12198 echo "configure:12199: checking whether to use TDB SAM database" >&5
12199 # Check whether --with-tdbsam or --without-tdbsam was given.
12200 if test "${with_tdbsam+set}" = set; then
12201 withval="$with_tdbsam"
12202 case "$withval" in
12203 yes)
12204 echo "$ac_t""yes" 1>&6
12205 cat >> confdefs.h <<\EOF
12206 #define WITH_TDB_SAM 1
12209 with_smbpasswd_sam=no
12212 echo "$ac_t""no" 1>&6
12214 esac
12215 else
12216 echo "$ac_t""no" 1>&6
12221 #################################################
12222 # check for a LDAP password database
12223 echo $ac_n "checking whether to use LDAP SAM database""... $ac_c" 1>&6
12224 echo "configure:12225: checking whether to use LDAP SAM database" >&5
12225 # Check whether --with-ldapsam or --without-ldapsam was given.
12226 if test "${with_ldapsam+set}" = set; then
12227 withval="$with_ldapsam"
12228 case "$withval" in
12229 yes)
12230 echo "$ac_t""yes" 1>&6
12231 cat >> confdefs.h <<\EOF
12232 #define WITH_LDAP_SAM 1
12235 LDAPLIBS="-lldap"
12236 echo $ac_n "checking for ber_bvfree in -llber""... $ac_c" 1>&6
12237 echo "configure:12238: checking for ber_bvfree in -llber" >&5
12238 ac_lib_var=`echo lber'_'ber_bvfree | sed 'y%./+-%__p_%'`
12239 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12240 echo $ac_n "(cached) $ac_c" 1>&6
12241 else
12242 ac_save_LIBS="$LIBS"
12243 LIBS="-llber $LIBS"
12244 cat > conftest.$ac_ext <<EOF
12245 #line 12246 "configure"
12246 #include "confdefs.h"
12247 /* Override any gcc2 internal prototype to avoid an error. */
12248 /* We use char because int might match the return type of a gcc2
12249 builtin and then its argument prototype would still apply. */
12250 char ber_bvfree();
12252 int main() {
12253 ber_bvfree()
12254 ; return 0; }
12256 if { (eval echo configure:12257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12257 rm -rf conftest*
12258 eval "ac_cv_lib_$ac_lib_var=yes"
12259 else
12260 echo "configure: failed program was:" >&5
12261 cat conftest.$ac_ext >&5
12262 rm -rf conftest*
12263 eval "ac_cv_lib_$ac_lib_var=no"
12265 rm -f conftest*
12266 LIBS="$ac_save_LIBS"
12269 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12270 echo "$ac_t""yes" 1>&6
12271 LDAPLIBS="$LDAPLIBS -llber"
12272 else
12273 echo "$ac_t""no" 1>&6
12276 ## remove -lresolv as this should be included by the -lsasl dependency
12277 ## in the OpenLDAP clients. By not requiring it specifically, we avoid
12278 ## issues on platforms that don't have it
12279 LDAPLIBS="$LDAPLIBS"
12280 old_LDFLAGS="$LDFLAGS"
12281 LDFLAGS="$LDFLAGS $LDAPLIBS"
12282 for ac_func in ldap_start_tls_s
12284 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12285 echo "configure:12286: checking for $ac_func" >&5
12286 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12287 echo $ac_n "(cached) $ac_c" 1>&6
12288 else
12289 cat > conftest.$ac_ext <<EOF
12290 #line 12291 "configure"
12291 #include "confdefs.h"
12292 /* System header to define __stub macros and hopefully few prototypes,
12293 which can conflict with char $ac_func(); below. */
12294 #include <assert.h>
12295 /* Override any gcc2 internal prototype to avoid an error. */
12296 /* We use char because int might match the return type of a gcc2
12297 builtin and then its argument prototype would still apply. */
12298 char $ac_func();
12300 int main() {
12302 /* The GNU C library defines this for functions which it implements
12303 to always fail with ENOSYS. Some functions are actually named
12304 something starting with __ and the normal name is an alias. */
12305 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12306 choke me
12307 #else
12308 $ac_func();
12309 #endif
12311 ; return 0; }
12313 if { (eval echo configure:12314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12314 rm -rf conftest*
12315 eval "ac_cv_func_$ac_func=yes"
12316 else
12317 echo "configure: failed program was:" >&5
12318 cat conftest.$ac_ext >&5
12319 rm -rf conftest*
12320 eval "ac_cv_func_$ac_func=no"
12322 rm -f conftest*
12325 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12326 echo "$ac_t""yes" 1>&6
12327 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12328 cat >> confdefs.h <<EOF
12329 #define $ac_tr_func 1
12332 else
12333 echo "$ac_t""no" 1>&6
12335 done
12337 LDFLAGS="$old_LDFLAGS"
12338 with_smbpasswd_sam=no
12342 echo "$ac_t""no" 1>&6
12344 esac
12345 else
12346 echo "$ac_t""no" 1>&6
12351 #################################################
12352 # check for a NISPLUS password database
12353 echo $ac_n "checking whether to use NISPLUS SAM database""... $ac_c" 1>&6
12354 echo "configure:12355: checking whether to use NISPLUS SAM database" >&5
12355 # Check whether --with-nisplussam or --without-nisplussam was given.
12356 if test "${with_nisplussam+set}" = set; then
12357 withval="$with_nisplussam"
12358 case "$withval" in
12359 yes)
12360 echo "$ac_t""yes" 1>&6
12361 cat >> confdefs.h <<\EOF
12362 #define WITH_NISPLUS_SAM 1
12365 with_smbpasswd_sam=no
12368 echo "$ac_t""no" 1>&6
12370 esac
12371 else
12372 echo "$ac_t""no" 1>&6
12377 ################################################
12378 # This test should come last because the
12379 # smbpasswd SAM is only used if another format
12380 # has not been defined
12381 echo $ac_n "checking whether to use traditional smbpasswd file""... $ac_c" 1>&6
12382 echo "configure:12383: checking whether to use traditional smbpasswd file" >&5
12383 if test $with_smbpasswd_sam = yes; then
12384 echo "$ac_t""yes" 1>&6
12385 cat >> confdefs.h <<\EOF
12386 #define WITH_SMBPASSWD_SAM 1
12389 PDBEDIT=""
12390 else
12391 echo "$ac_t""no" 1>&6
12392 PDBEDIT=bin/pdbedit
12395 ########################################################################################
12397 ## END OF TESTS FOR SAM BACKENDS.
12399 ########################################################################################
12401 #################################################
12402 # check for a NISPLUS_HOME support
12403 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
12404 echo "configure:12405: checking whether to use NISPLUS_HOME" >&5
12405 # Check whether --with-nisplus-home or --without-nisplus-home was given.
12406 if test "${with_nisplus_home+set}" = set; then
12407 withval="$with_nisplus_home"
12408 case "$withval" in
12409 yes)
12410 echo "$ac_t""yes" 1>&6
12411 cat >> confdefs.h <<\EOF
12412 #define WITH_NISPLUS_HOME 1
12417 echo "$ac_t""no" 1>&6
12419 esac
12420 else
12421 echo "$ac_t""no" 1>&6
12426 #################################################
12427 # check for the secure socket layer
12428 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
12429 echo "configure:12430: checking whether to use SSL" >&5
12430 # Check whether --with-ssl or --without-ssl was given.
12431 if test "${with_ssl+set}" = set; then
12432 withval="$with_ssl"
12433 case "$withval" in
12434 yes)
12435 echo "$ac_t""yes" 1>&6
12436 cat >> confdefs.h <<\EOF
12437 #define WITH_SSL 1
12440 withval="/usr/local/ssl" # default
12442 if test "${with_sslinc+set}" = set; then
12444 withval="$with_sslinc"
12445 case "$withval" in
12446 yes|no)
12447 echo "configure: warning: --with-sslinc called without argument - will use default" 1>&w
12448 CFLAGS="-I/usr/local/ssl/include $CFLAGS"
12451 CFLAGS="-I${withval} $CFLAGS"
12453 esac
12455 else
12457 CFLAGS="-I/usr/local/ssl/include $CFLAGS"
12461 if test "${with_ssllib+set}" = set; then
12463 withval="$with_ssllib"
12464 case "$withval" in
12465 yes|no)
12466 echo "configure: warning: --with-ssllib called without argument - will use default" 1>&w
12467 LDFLAGS="-L/usr/local/ssl/lib $LDFLAGS"
12470 LDFLAGS="-L${withval}/lib $LDFLAGS"
12472 esac
12474 else
12476 LDFLAGS="-L/usr/local/ssl/lib $LDFLAGS"
12480 LIBS="-lssl -lcrypto $LIBS"
12482 # if test ! -d ${withval}; then
12483 # echo "configure: error: called with --with-ssl, but ssl base directory ${withval} does not exist or is not a directory. Aborting config" 1>&2
12484 # exit 1
12485 # fi
12487 CFLAGS="-DHAVE_CRYPT_DECL $CFLAGS" # Damn, SSLeay defines its own
12491 echo "$ac_t""no" 1>&6
12493 esac
12494 else
12495 echo "$ac_t""no" 1>&6
12500 #################################################
12501 # check for syslog logging
12502 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
12503 echo "configure:12504: checking whether to use syslog logging" >&5
12504 # Check whether --with-syslog or --without-syslog was given.
12505 if test "${with_syslog+set}" = set; then
12506 withval="$with_syslog"
12507 case "$withval" in
12508 yes)
12509 echo "$ac_t""yes" 1>&6
12510 cat >> confdefs.h <<\EOF
12511 #define WITH_SYSLOG 1
12516 echo "$ac_t""no" 1>&6
12518 esac
12519 else
12520 echo "$ac_t""no" 1>&6
12525 #################################################
12526 # check for a shared memory profiling support
12527 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
12528 echo "configure:12529: checking whether to use profiling" >&5
12529 # Check whether --with-profiling-data or --without-profiling-data was given.
12530 if test "${with_profiling_data+set}" = set; then
12531 withval="$with_profiling_data"
12532 case "$withval" in
12533 yes)
12534 echo "$ac_t""yes" 1>&6
12535 cat >> confdefs.h <<\EOF
12536 #define WITH_PROFILE 1
12541 echo "$ac_t""no" 1>&6
12543 esac
12544 else
12545 echo "$ac_t""no" 1>&6
12551 #################################################
12552 # check for experimental disk-quotas support
12553 QUOTAOBJS=smbd/noquotas.o
12555 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
12556 echo "configure:12557: checking whether to support disk-quotas" >&5
12557 # Check whether --with-quotas or --without-quotas was given.
12558 if test "${with_quotas+set}" = set; then
12559 withval="$with_quotas"
12560 case "$withval" in
12561 yes)
12562 echo "$ac_t""yes" 1>&6
12563 QUOTAOBJS=smbd/quotas.o
12566 echo "$ac_t""no" 1>&6
12568 esac
12569 else
12570 echo "$ac_t""no" 1>&6
12576 #################################################
12577 # check for experimental utmp accounting
12579 echo $ac_n "checking whether to support utmp accounting""... $ac_c" 1>&6
12580 echo "configure:12581: checking whether to support utmp accounting" >&5
12581 # Check whether --with-utmp or --without-utmp was given.
12582 if test "${with_utmp+set}" = set; then
12583 withval="$with_utmp"
12584 case "$withval" in
12585 yes)
12586 echo "$ac_t""yes" 1>&6
12587 cat >> confdefs.h <<\EOF
12588 #define WITH_UTMP 1
12593 echo "$ac_t""no" 1>&6
12595 esac
12596 else
12597 echo "$ac_t""no" 1>&6
12602 #################################################
12603 # check for MS Dfs support
12605 echo $ac_n "checking whether to support Microsoft Dfs""... $ac_c" 1>&6
12606 echo "configure:12607: checking whether to support Microsoft Dfs" >&5
12607 # Check whether --with-msdfs or --without-msdfs was given.
12608 if test "${with_msdfs+set}" = set; then
12609 withval="$with_msdfs"
12610 case "$withval" in
12611 yes)
12612 echo "$ac_t""yes" 1>&6
12613 cat >> confdefs.h <<\EOF
12614 #define WITH_MSDFS 1
12619 echo "$ac_t""no" 1>&6
12621 esac
12622 else
12623 echo "$ac_t""no" 1>&6
12628 #################################################
12629 # should we build libsmbclient?
12631 LIBSMBCLIENT_SHARED=
12632 LIBSMBCLIENT=
12633 echo $ac_n "checking whether to build the libsmbclient shared library""... $ac_c" 1>&6
12634 echo "configure:12635: checking whether to build the libsmbclient shared library" >&5
12635 # Check whether --with-libsmbclient or --without-libsmbclient was given.
12636 if test "${with_libsmbclient+set}" = set; then
12637 withval="$with_libsmbclient"
12638 case "$withval" in
12639 yes)
12640 if test $BLDSHARED = true; then
12641 LIBSMBCLIENT_SHARED=bin/libsmbclient.$SHLIBEXT
12642 LIBSMBCLIENT=libsmbclient
12643 echo "$ac_t""yes" 1>&6
12644 else
12645 echo "$ac_t""no shared library support" 1>&6
12649 echo "$ac_t""no" 1>&6
12651 esac
12652 else
12653 echo "$ac_t""no" 1>&6
12658 #################################################
12659 # these tests are taken from the GNU fileutils package
12660 echo "checking how to get filesystem space usage" 1>&6
12661 echo "configure:12662: checking how to get filesystem space usage" >&5
12662 space=no
12664 # Test for statvfs64.
12665 if test $space = no; then
12666 # SVR4
12667 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
12668 echo "configure:12669: checking statvfs64 function (SVR4)" >&5
12669 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
12670 echo $ac_n "(cached) $ac_c" 1>&6
12671 else
12672 if test "$cross_compiling" = yes; then
12673 fu_cv_sys_stat_statvfs64=cross
12674 else
12675 cat > conftest.$ac_ext <<EOF
12676 #line 12677 "configure"
12677 #include "confdefs.h"
12679 #if defined(HAVE_UNISTD_H)
12680 #include <unistd.h>
12681 #endif
12682 #include <sys/types.h>
12683 #include <sys/statvfs.h>
12684 main ()
12686 struct statvfs64 fsd;
12687 exit (statvfs64 (".", &fsd));
12690 if { (eval echo configure:12691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12691 then
12692 fu_cv_sys_stat_statvfs64=yes
12693 else
12694 echo "configure: failed program was:" >&5
12695 cat conftest.$ac_ext >&5
12696 rm -fr conftest*
12697 fu_cv_sys_stat_statvfs64=no
12699 rm -fr conftest*
12704 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
12705 if test $fu_cv_sys_stat_statvfs64 = yes; then
12706 space=yes
12707 cat >> confdefs.h <<\EOF
12708 #define STAT_STATVFS64 1
12714 # Perform only the link test since it seems there are no variants of the
12715 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
12716 # because that got a false positive on SCO OSR5. Adding the declaration
12717 # of a `struct statvfs' causes this test to fail (as it should) on such
12718 # systems. That system is reported to work fine with STAT_STATFS4 which
12719 # is what it gets when this test fails.
12720 if test $space = no; then
12721 # SVR4
12722 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
12723 echo "configure:12724: checking statvfs function (SVR4)" >&5
12724 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
12725 echo $ac_n "(cached) $ac_c" 1>&6
12726 else
12727 cat > conftest.$ac_ext <<EOF
12728 #line 12729 "configure"
12729 #include "confdefs.h"
12730 #include <sys/types.h>
12731 #include <sys/statvfs.h>
12732 int main() {
12733 struct statvfs fsd; statvfs (0, &fsd);
12734 ; return 0; }
12736 if { (eval echo configure:12737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12737 rm -rf conftest*
12738 fu_cv_sys_stat_statvfs=yes
12739 else
12740 echo "configure: failed program was:" >&5
12741 cat conftest.$ac_ext >&5
12742 rm -rf conftest*
12743 fu_cv_sys_stat_statvfs=no
12745 rm -f conftest*
12748 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
12749 if test $fu_cv_sys_stat_statvfs = yes; then
12750 space=yes
12751 cat >> confdefs.h <<\EOF
12752 #define STAT_STATVFS 1
12758 if test $space = no; then
12759 # DEC Alpha running OSF/1
12760 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
12761 echo "configure:12762: checking for 3-argument statfs function (DEC OSF/1)" >&5
12762 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
12763 echo $ac_n "(cached) $ac_c" 1>&6
12764 else
12765 if test "$cross_compiling" = yes; then
12766 fu_cv_sys_stat_statfs3_osf1=no
12767 else
12768 cat > conftest.$ac_ext <<EOF
12769 #line 12770 "configure"
12770 #include "confdefs.h"
12772 #include <sys/param.h>
12773 #include <sys/types.h>
12774 #include <sys/mount.h>
12775 main ()
12777 struct statfs fsd;
12778 fsd.f_fsize = 0;
12779 exit (statfs (".", &fsd, sizeof (struct statfs)));
12782 if { (eval echo configure:12783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12783 then
12784 fu_cv_sys_stat_statfs3_osf1=yes
12785 else
12786 echo "configure: failed program was:" >&5
12787 cat conftest.$ac_ext >&5
12788 rm -fr conftest*
12789 fu_cv_sys_stat_statfs3_osf1=no
12791 rm -fr conftest*
12796 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
12797 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
12798 space=yes
12799 cat >> confdefs.h <<\EOF
12800 #define STAT_STATFS3_OSF1 1
12806 if test $space = no; then
12807 # AIX
12808 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
12809 echo "configure:12810: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
12810 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
12811 echo $ac_n "(cached) $ac_c" 1>&6
12812 else
12813 if test "$cross_compiling" = yes; then
12814 fu_cv_sys_stat_statfs2_bsize=no
12815 else
12816 cat > conftest.$ac_ext <<EOF
12817 #line 12818 "configure"
12818 #include "confdefs.h"
12820 #ifdef HAVE_SYS_PARAM_H
12821 #include <sys/param.h>
12822 #endif
12823 #ifdef HAVE_SYS_MOUNT_H
12824 #include <sys/mount.h>
12825 #endif
12826 #ifdef HAVE_SYS_VFS_H
12827 #include <sys/vfs.h>
12828 #endif
12829 main ()
12831 struct statfs fsd;
12832 fsd.f_bsize = 0;
12833 exit (statfs (".", &fsd));
12836 if { (eval echo configure:12837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12837 then
12838 fu_cv_sys_stat_statfs2_bsize=yes
12839 else
12840 echo "configure: failed program was:" >&5
12841 cat conftest.$ac_ext >&5
12842 rm -fr conftest*
12843 fu_cv_sys_stat_statfs2_bsize=no
12845 rm -fr conftest*
12850 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
12851 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
12852 space=yes
12853 cat >> confdefs.h <<\EOF
12854 #define STAT_STATFS2_BSIZE 1
12860 if test $space = no; then
12861 # SVR3
12862 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
12863 echo "configure:12864: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
12864 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
12865 echo $ac_n "(cached) $ac_c" 1>&6
12866 else
12867 if test "$cross_compiling" = yes; then
12868 fu_cv_sys_stat_statfs4=no
12869 else
12870 cat > conftest.$ac_ext <<EOF
12871 #line 12872 "configure"
12872 #include "confdefs.h"
12873 #include <sys/types.h>
12874 #include <sys/statfs.h>
12875 main ()
12877 struct statfs fsd;
12878 exit (statfs (".", &fsd, sizeof fsd, 0));
12881 if { (eval echo configure:12882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12882 then
12883 fu_cv_sys_stat_statfs4=yes
12884 else
12885 echo "configure: failed program was:" >&5
12886 cat conftest.$ac_ext >&5
12887 rm -fr conftest*
12888 fu_cv_sys_stat_statfs4=no
12890 rm -fr conftest*
12895 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
12896 if test $fu_cv_sys_stat_statfs4 = yes; then
12897 space=yes
12898 cat >> confdefs.h <<\EOF
12899 #define STAT_STATFS4 1
12905 if test $space = no; then
12906 # 4.4BSD and NetBSD
12907 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
12908 echo "configure:12909: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
12909 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
12910 echo $ac_n "(cached) $ac_c" 1>&6
12911 else
12912 if test "$cross_compiling" = yes; then
12913 fu_cv_sys_stat_statfs2_fsize=no
12914 else
12915 cat > conftest.$ac_ext <<EOF
12916 #line 12917 "configure"
12917 #include "confdefs.h"
12918 #include <sys/types.h>
12919 #ifdef HAVE_SYS_PARAM_H
12920 #include <sys/param.h>
12921 #endif
12922 #ifdef HAVE_SYS_MOUNT_H
12923 #include <sys/mount.h>
12924 #endif
12925 main ()
12927 struct statfs fsd;
12928 fsd.f_fsize = 0;
12929 exit (statfs (".", &fsd));
12932 if { (eval echo configure:12933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12933 then
12934 fu_cv_sys_stat_statfs2_fsize=yes
12935 else
12936 echo "configure: failed program was:" >&5
12937 cat conftest.$ac_ext >&5
12938 rm -fr conftest*
12939 fu_cv_sys_stat_statfs2_fsize=no
12941 rm -fr conftest*
12946 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
12947 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
12948 space=yes
12949 cat >> confdefs.h <<\EOF
12950 #define STAT_STATFS2_FSIZE 1
12956 if test $space = no; then
12957 # Ultrix
12958 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
12959 echo "configure:12960: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
12960 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
12961 echo $ac_n "(cached) $ac_c" 1>&6
12962 else
12963 if test "$cross_compiling" = yes; then
12964 fu_cv_sys_stat_fs_data=no
12965 else
12966 cat > conftest.$ac_ext <<EOF
12967 #line 12968 "configure"
12968 #include "confdefs.h"
12969 #include <sys/types.h>
12970 #ifdef HAVE_SYS_PARAM_H
12971 #include <sys/param.h>
12972 #endif
12973 #ifdef HAVE_SYS_MOUNT_H
12974 #include <sys/mount.h>
12975 #endif
12976 #ifdef HAVE_SYS_FS_TYPES_H
12977 #include <sys/fs_types.h>
12978 #endif
12979 main ()
12981 struct fs_data fsd;
12982 /* Ultrix's statfs returns 1 for success,
12983 0 for not mounted, -1 for failure. */
12984 exit (statfs (".", &fsd) != 1);
12987 if { (eval echo configure:12988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12988 then
12989 fu_cv_sys_stat_fs_data=yes
12990 else
12991 echo "configure: failed program was:" >&5
12992 cat conftest.$ac_ext >&5
12993 rm -fr conftest*
12994 fu_cv_sys_stat_fs_data=no
12996 rm -fr conftest*
13001 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
13002 if test $fu_cv_sys_stat_fs_data = yes; then
13003 space=yes
13004 cat >> confdefs.h <<\EOF
13005 #define STAT_STATFS2_FS_DATA 1
13012 # As a gating factor for large file support, in order to
13013 # use <4GB files we must have the following minimal support
13014 # available.
13015 # long long, and a 64 bit off_t or off64_t.
13016 # If we don't have all of these then disable large
13017 # file support.
13019 echo $ac_n "checking if large file support can be enabled""... $ac_c" 1>&6
13020 echo "configure:13021: checking if large file support can be enabled" >&5
13021 cat > conftest.$ac_ext <<EOF
13022 #line 13023 "configure"
13023 #include "confdefs.h"
13025 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
13026 #include <sys/types.h>
13027 #else
13028 __COMPILE_ERROR_
13029 #endif
13031 int main() {
13032 int i
13033 ; return 0; }
13035 if { (eval echo configure:13036: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13036 rm -rf conftest*
13037 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=yes
13038 else
13039 echo "configure: failed program was:" >&5
13040 cat conftest.$ac_ext >&5
13041 rm -rf conftest*
13042 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=no
13044 rm -f conftest*
13045 if test x"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x"yes"; then
13046 echo "$ac_t""yes" 1>&6
13047 cat >> confdefs.h <<\EOF
13048 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
13051 else
13052 echo "$ac_t""no" 1>&6
13055 # Check whether --with-spinlocks or --without-spinlocks was given.
13056 if test "${with_spinlocks+set}" = set; then
13057 withval="$with_spinlocks"
13061 if test "x$with_spinlocks" = "xyes"; then
13062 cat >> confdefs.h <<\EOF
13063 #define USE_SPINLOCKS 1
13067 case "$host_cpu" in
13068 sparc)
13069 cat >> confdefs.h <<\EOF
13070 #define SPARC_SPINLOCKS 1
13075 i386|i486|i586|i686)
13076 cat >> confdefs.h <<\EOF
13077 #define INTEL_SPINLOCKS 1
13082 mips)
13083 cat >> confdefs.h <<\EOF
13084 #define MIPS_SPINLOCKS 1
13089 powerpc)
13090 cat >> confdefs.h <<\EOF
13091 #define POWERPC_SPINLOCKS 1
13095 esac
13098 #################################################
13099 # check for ACL support
13101 echo $ac_n "checking whether to support ACLs""... $ac_c" 1>&6
13102 echo "configure:13103: checking whether to support ACLs" >&5
13103 # Check whether --with-acl-support or --without-acl-support was given.
13104 if test "${with_acl_support+set}" = set; then
13105 withval="$with_acl_support"
13106 case "$withval" in
13107 yes)
13109 case "$host_os" in
13110 *sysv5*)
13111 echo "$ac_t""Using UnixWare ACLs" 1>&6
13112 cat >> confdefs.h <<\EOF
13113 #define HAVE_UNIXWARE_ACLS 1
13117 *solaris*)
13118 echo "$ac_t""Using solaris ACLs" 1>&6
13119 cat >> confdefs.h <<\EOF
13120 #define HAVE_SOLARIS_ACLS 1
13124 *hpux*)
13125 echo "$ac_t""Using HPUX ACLs" 1>&6
13126 cat >> confdefs.h <<\EOF
13127 #define HAVE_HPUX_ACLS 1
13131 *irix*)
13132 echo "$ac_t""Using IRIX ACLs" 1>&6
13133 cat >> confdefs.h <<\EOF
13134 #define HAVE_IRIX_ACLS 1
13138 *aix*)
13139 echo "$ac_t""Using AIX ACLs" 1>&6
13140 cat >> confdefs.h <<\EOF
13141 #define HAVE_AIX_ACLS 1
13145 *osf*)
13146 echo "$ac_t""Using Tru64 ACLs" 1>&6
13147 cat >> confdefs.h <<\EOF
13148 #define HAVE_TRU64_ACLS 1
13151 LIBS="$LIBS -lpacl"
13154 echo $ac_n "checking for acl_get_file in -lacl""... $ac_c" 1>&6
13155 echo "configure:13156: checking for acl_get_file in -lacl" >&5
13156 ac_lib_var=`echo acl'_'acl_get_file | sed 'y%./+-%__p_%'`
13157 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13158 echo $ac_n "(cached) $ac_c" 1>&6
13159 else
13160 ac_save_LIBS="$LIBS"
13161 LIBS="-lacl $LIBS"
13162 cat > conftest.$ac_ext <<EOF
13163 #line 13164 "configure"
13164 #include "confdefs.h"
13165 /* Override any gcc2 internal prototype to avoid an error. */
13166 /* We use char because int might match the return type of a gcc2
13167 builtin and then its argument prototype would still apply. */
13168 char acl_get_file();
13170 int main() {
13171 acl_get_file()
13172 ; return 0; }
13174 if { (eval echo configure:13175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13175 rm -rf conftest*
13176 eval "ac_cv_lib_$ac_lib_var=yes"
13177 else
13178 echo "configure: failed program was:" >&5
13179 cat conftest.$ac_ext >&5
13180 rm -rf conftest*
13181 eval "ac_cv_lib_$ac_lib_var=no"
13183 rm -f conftest*
13184 LIBS="$ac_save_LIBS"
13187 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13188 echo "$ac_t""yes" 1>&6
13189 ac_tr_lib=HAVE_LIB`echo acl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
13190 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
13191 cat >> confdefs.h <<EOF
13192 #define $ac_tr_lib 1
13195 LIBS="-lacl $LIBS"
13197 else
13198 echo "$ac_t""no" 1>&6
13201 echo $ac_n "checking for ACL support""... $ac_c" 1>&6
13202 echo "configure:13203: checking for ACL support" >&5
13203 if eval "test \"`echo '$''{'samba_cv_HAVE_POSIX_ACLS'+set}'`\" = set"; then
13204 echo $ac_n "(cached) $ac_c" 1>&6
13205 else
13207 cat > conftest.$ac_ext <<EOF
13208 #line 13209 "configure"
13209 #include "confdefs.h"
13210 #include <sys/types.h>
13211 #include <sys/acl.h>
13212 int main() {
13213 acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
13214 ; return 0; }
13216 if { (eval echo configure:13217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13217 rm -rf conftest*
13218 samba_cv_HAVE_POSIX_ACLS=yes
13219 else
13220 echo "configure: failed program was:" >&5
13221 cat conftest.$ac_ext >&5
13222 rm -rf conftest*
13223 samba_cv_HAVE_POSIX_ACLS=no
13225 rm -f conftest*
13228 echo "$ac_t""$samba_cv_HAVE_POSIX_ACLS" 1>&6
13229 if test x"$samba_cv_HAVE_POSIX_ACLS" = x"yes"; then
13230 echo "$ac_t""Using posix ACLs" 1>&6
13231 cat >> confdefs.h <<\EOF
13232 #define HAVE_POSIX_ACLS 1
13235 echo $ac_n "checking for acl_get_perm_np""... $ac_c" 1>&6
13236 echo "configure:13237: checking for acl_get_perm_np" >&5
13237 if eval "test \"`echo '$''{'samba_cv_HAVE_ACL_GET_PERM_NP'+set}'`\" = set"; then
13238 echo $ac_n "(cached) $ac_c" 1>&6
13239 else
13241 cat > conftest.$ac_ext <<EOF
13242 #line 13243 "configure"
13243 #include "confdefs.h"
13244 #include <sys/types.h>
13245 #include <sys/acl.h>
13246 int main() {
13247 acl_permset_t permset_d; acl_perm_t perm; return acl_get_perm_np( permset_d, perm);
13248 ; return 0; }
13250 if { (eval echo configure:13251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13251 rm -rf conftest*
13252 samba_cv_HAVE_ACL_GET_PERM_NP=yes
13253 else
13254 echo "configure: failed program was:" >&5
13255 cat conftest.$ac_ext >&5
13256 rm -rf conftest*
13257 samba_cv_HAVE_ACL_GET_PERM_NP=no
13259 rm -f conftest*
13262 echo "$ac_t""$samba_cv_HAVE_ACL_GET_PERM_NP" 1>&6
13263 if test x"$samba_cv_HAVE_ACL_GET_PERM_NP" = x"yes"; then
13264 cat >> confdefs.h <<\EOF
13265 #define HAVE_ACL_GET_PERM_NP 1
13271 esac
13274 echo "$ac_t""no" 1>&6
13275 cat >> confdefs.h <<\EOF
13276 #define HAVE_NO_ACLS 1
13280 esac
13281 else
13282 cat >> confdefs.h <<\EOF
13283 #define HAVE_NO_ACLS 1
13286 echo "$ac_t""no" 1>&6
13291 #################################################
13292 # check for the historical SAMBA installation
13294 if test "x$prefix" = xNONE -a "$sbindir" = "\${exec_prefix}/sbin"; then
13295 # Put all binaries under the /usr/local/samba/bin directory.
13296 sbindir="$bindir"
13299 #################################################
13300 # Check whether winbind is supported on this platform. If so we need to
13301 # build and install client programs (WINBIND_TARGETS), sbin programs
13302 # (WINBIND_STARGETS) and shared libraries (WINBIND_LTARGETS).
13304 echo $ac_n "checking whether to build winbind""... $ac_c" 1>&6
13305 echo "configure:13306: checking whether to build winbind" >&5
13307 # Initially, the value of $host_os decides whether winbind is supported
13309 case "$host_os" in
13310 *linux*|*irix*)
13311 HAVE_WINBIND=yes
13313 *solaris*)
13314 HAVE_WINBIND=yes
13315 WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_solaris.o"
13316 WINBIND_NSS_EXTRA_LIBS="-lsocket"
13318 *hpux11*)
13319 HAVE_WINBIND=yes
13320 WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_solaris.o"
13322 *aix4*)
13323 HAVE_WINBIND=yes
13326 HAVE_WINBIND=no
13327 winbind_no_reason=", unsupported on $host_os"
13329 esac
13331 # Check the setting of --with-winbindd
13333 # Check whether --with-winbind or --without-winbind was given.
13334 if test "${with_winbind+set}" = set; then
13335 withval="$with_winbind"
13337 case "$withval" in
13338 yes)
13339 HAVE_WINBIND=yes
13342 HAVE_WINBIND=no
13343 winbind_reason=""
13345 esac
13349 # We need unix domain sockets for winbind
13351 if test x"$HAVE_WINBIND" = x"yes"; then
13352 if test x"$samba_cv_unixsocket" = x"no"; then
13353 winbind_no_reason=", no unix domain socket support on $host_os"
13354 HAVE_WINBIND=no
13358 # Display test results
13360 if test x"$HAVE_WINBIND" = x"yes"; then
13362 echo "$ac_t""yes" 1>&6
13364 echo $ac_n "checking whether to enable winbind auth challenge/response code""... $ac_c" 1>&6
13365 echo "configure:13366: checking whether to enable winbind auth challenge/response code" >&5
13366 # Check whether --with-winbind-auth-challenge or --without-winbind-auth-challenge was given.
13367 if test "${with_winbind_auth_challenge+set}" = set; then
13368 withval="$with_winbind_auth_challenge"
13370 case "$withval" in
13371 yes)
13372 cat >> confdefs.h <<\EOF
13373 #define WITH_WINBIND_AUTH_CRAP 1
13376 echo "$ac_t""yes" 1>&6
13379 echo "$ac_t""no" 1>&6
13381 esac
13382 else
13383 echo "$ac_t""no" 1>&6
13388 # Check for FreeBSD problem with getgroups
13390 WINBIND_TARGETS="bin/wbinfo"
13391 WINBIND_STARGETS="bin/winbindd"
13392 case "$host_os" in
13393 *irix*)
13394 WINBIND_LTARGETS="nsswitch/libns_winbind.so"
13397 WINBIND_LTARGETS="nsswitch/libnss_winbind.so"
13399 esac
13402 case "$with_pam" in
13403 yes)
13404 WINBIND_PAM_TARGETS="nsswitch/pam_winbind.so"
13406 esac
13408 # Check for Horrible winbindd ldap hack.
13410 echo $ac_n "checking whether to enable winbind ldap hack""... $ac_c" 1>&6
13411 echo "configure:13412: checking whether to enable winbind ldap hack" >&5
13412 # Check whether --with-winbind-ldap-hack or --without-winbind-ldap-hack was given.
13413 if test "${with_winbind_ldap_hack+set}" = set; then
13414 withval="$with_winbind_ldap_hack"
13416 case "$withval" in
13417 yes)
13418 cat >> confdefs.h <<\EOF
13419 #define WITH_HORRIBLE_LDAP_NATIVE_MODE_HACK 1
13422 LIBS="$LIBS -lldap";
13423 echo "$ac_t""yes" 1>&6
13426 echo "$ac_t""no" 1>&6
13428 esac
13429 else
13430 echo "$ac_t""no" 1>&6
13435 else
13436 echo "$ac_t""no$winbind_no_reason" 1>&6
13438 WINBIND_TARGETS=""
13439 WINBIND_STARGETS=""
13440 WINBIND_LTARGETS=""
13441 WINBIND_PAM_TARGETS=""
13445 # Check for FreeBSD problem with getgroups
13446 # It returns EGID too many times in the list of groups
13447 # and causes a security problem
13448 echo $ac_n "checking whether or not getgroups returns EGID too many times""... $ac_c" 1>&6
13449 echo "configure:13450: checking whether or not getgroups returns EGID too many times" >&5
13450 if eval "test \"`echo '$''{'samba_cv_have_getgroups_too_many_egids'+set}'`\" = set"; then
13451 echo $ac_n "(cached) $ac_c" 1>&6
13452 else
13453 if test "$cross_compiling" = yes; then
13454 samba_cv_have_getgroups_too_many_egids=cross
13455 else
13456 cat > conftest.$ac_ext <<EOF
13457 #line 13458 "configure"
13458 #include "confdefs.h"
13460 #include <sys/types.h>
13461 #include <stdio.h>
13463 int main(int argc, char *argv[])
13465 gid_t groups[10];
13466 int n = 10;
13468 n = getgroups(n, &groups);
13469 /* Could actually pass back the number of EGIDs there ... */
13470 exit((n > 1 && groups[0] == getegid() && groups[1] == getegid()) ? 1 : 0);
13473 if { (eval echo configure:13474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13474 then
13475 samba_cv_have_getgroups_too_many_egids=no
13476 else
13477 echo "configure: failed program was:" >&5
13478 cat conftest.$ac_ext >&5
13479 rm -fr conftest*
13480 samba_cv_have_getgroups_too_many_egids=yes
13482 rm -fr conftest*
13487 echo "$ac_t""$samba_cv_have_getgroups_too_many_egids" 1>&6
13488 if test x"$samba_cv_have_getgroups_too_many_egids" = x"yes"; then
13489 cat >> confdefs.h <<\EOF
13490 #define HAVE_GETGROUPS_TOO_MANY_EGIDS 1
13495 # Substitution time!
13504 # Solaris has some extra fields in struct passwd that need to be
13505 # initialised otherwise nscd crashes. Unfortunately autoconf < 2.50
13506 # doesn't have the AC_CHECK_MEMBER macro which would be handy for checking
13507 # this.
13509 #AC_CHECK_MEMBER(struct passwd.pw_comment,
13510 # AC_DEFINE(HAVE_PASSWD_PW_COMMENT, 1, [Defined if struct passwd has pw_comment field]),
13511 # [#include <pwd.h>])
13513 echo $ac_n "checking whether struct passwd has pw_comment""... $ac_c" 1>&6
13514 echo "configure:13515: checking whether struct passwd has pw_comment" >&5
13515 if eval "test \"`echo '$''{'samba_cv_passwd_pw_comment'+set}'`\" = set"; then
13516 echo $ac_n "(cached) $ac_c" 1>&6
13517 else
13519 cat > conftest.$ac_ext <<EOF
13520 #line 13521 "configure"
13521 #include "confdefs.h"
13522 #include <pwd.h>
13523 int main() {
13524 struct passwd p; p.pw_comment;
13525 ; return 0; }
13527 if { (eval echo configure:13528: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13528 rm -rf conftest*
13529 samba_cv_passwd_pw_comment=yes
13530 else
13531 echo "configure: failed program was:" >&5
13532 cat conftest.$ac_ext >&5
13533 rm -rf conftest*
13534 samba_cv_passwd_pw_comment=no
13536 rm -f conftest*
13539 echo "$ac_t""$samba_cv_passwd_pw_comment" 1>&6
13540 if test x"$samba_cv_passwd_pw_comment" = x"yes"; then
13541 cat >> confdefs.h <<\EOF
13542 #define HAVE_PASSWD_PW_COMMENT 1
13547 #AC_CHECK_MEMBER(struct passwd.pw_age,
13548 # AC_DEFINE(HAVE_PASSWD_PW_AGE, 1, [Defined if struct passwd has pw_age field]),
13549 # [#include <pwd.h>])
13551 echo $ac_n "checking whether struct passwd has pw_age""... $ac_c" 1>&6
13552 echo "configure:13553: checking whether struct passwd has pw_age" >&5
13553 if eval "test \"`echo '$''{'samba_cv_passwd_pw_age'+set}'`\" = set"; then
13554 echo $ac_n "(cached) $ac_c" 1>&6
13555 else
13557 cat > conftest.$ac_ext <<EOF
13558 #line 13559 "configure"
13559 #include "confdefs.h"
13560 #include <pwd.h>
13561 int main() {
13562 struct passwd p; p.pw_age;
13563 ; return 0; }
13565 if { (eval echo configure:13566: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13566 rm -rf conftest*
13567 samba_cv_passwd_pw_age=yes
13568 else
13569 echo "configure: failed program was:" >&5
13570 cat conftest.$ac_ext >&5
13571 rm -rf conftest*
13572 samba_cv_passwd_pw_age=no
13574 rm -f conftest*
13577 echo "$ac_t""$samba_cv_passwd_pw_age" 1>&6
13578 if test x"$samba_cv_passwd_pw_age" = x"yes"; then
13579 cat >> confdefs.h <<\EOF
13580 #define HAVE_PASSWD_PW_AGE 1
13585 #################################################
13586 # Check to see if we should use the included popt
13588 # Check whether --with-included-popt or --without-included-popt was given.
13589 if test "${with_included_popt+set}" = set; then
13590 withval="$with_included_popt"
13592 case "$withval" in
13593 yes)
13594 INCLUDED_POPT=yes
13597 INCLUDED_POPT=no
13599 esac
13602 if test x"$INCLUDED_POPT" != x"yes"; then
13603 echo $ac_n "checking for poptGetContext in -lpopt""... $ac_c" 1>&6
13604 echo "configure:13605: checking for poptGetContext in -lpopt" >&5
13605 ac_lib_var=`echo popt'_'poptGetContext | sed 'y%./+-%__p_%'`
13606 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13607 echo $ac_n "(cached) $ac_c" 1>&6
13608 else
13609 ac_save_LIBS="$LIBS"
13610 LIBS="-lpopt $LIBS"
13611 cat > conftest.$ac_ext <<EOF
13612 #line 13613 "configure"
13613 #include "confdefs.h"
13614 /* Override any gcc2 internal prototype to avoid an error. */
13615 /* We use char because int might match the return type of a gcc2
13616 builtin and then its argument prototype would still apply. */
13617 char poptGetContext();
13619 int main() {
13620 poptGetContext()
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 eval "ac_cv_lib_$ac_lib_var=yes"
13626 else
13627 echo "configure: failed program was:" >&5
13628 cat conftest.$ac_ext >&5
13629 rm -rf conftest*
13630 eval "ac_cv_lib_$ac_lib_var=no"
13632 rm -f conftest*
13633 LIBS="$ac_save_LIBS"
13636 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13637 echo "$ac_t""yes" 1>&6
13638 INCLUDED_POPT=no
13639 else
13640 echo "$ac_t""no" 1>&6
13641 INCLUDED_POPT=yes
13646 echo $ac_n "checking whether to use included popt""... $ac_c" 1>&6
13647 echo "configure:13648: checking whether to use included popt" >&5
13648 if test x"$INCLUDED_POPT" = x"yes"; then
13649 echo "$ac_t""$srcdir/popt" 1>&6
13650 BUILD_POPT='$(POPT_OBJS)'
13651 FLAGS1="-I$srcdir/popt"
13652 else
13653 echo "$ac_t""no" 1>&6
13654 LIBS="$LIBS -lpopt"
13659 #################################################
13660 # final configure stuff
13661 echo $ac_n "checking configure summary""... $ac_c" 1>&6
13662 echo "configure:13663: checking configure summary" >&5
13663 if test "$cross_compiling" = yes; then
13664 echo "configure: warning: cannot run when cross-compiling" 1>&2
13665 else
13666 cat > conftest.$ac_ext <<EOF
13667 #line 13668 "configure"
13668 #include "confdefs.h"
13669 #include "${srcdir-.}/tests/summary.c"
13671 if { (eval echo configure:13672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13672 then
13673 echo "$ac_t""yes" 1>&6
13674 else
13675 echo "configure: failed program was:" >&5
13676 cat conftest.$ac_ext >&5
13677 rm -fr conftest*
13678 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }; exit 1;
13680 rm -fr conftest*
13684 builddir=`pwd`
13687 trap '' 1 2 15
13688 cat > confcache <<\EOF
13689 # This file is a shell script that caches the results of configure
13690 # tests run on this system so they can be shared between configure
13691 # scripts and configure runs. It is not useful on other systems.
13692 # If it contains results you don't want to keep, you may remove or edit it.
13694 # By default, configure uses ./config.cache as the cache file,
13695 # creating it if it does not exist already. You can give configure
13696 # the --cache-file=FILE option to use a different cache file; that is
13697 # what configure does when it calls configure scripts in
13698 # subdirectories, so they share the cache.
13699 # Giving --cache-file=/dev/null disables caching, for debugging configure.
13700 # config.status only pays attention to the cache file if you give it the
13701 # --recheck option to rerun configure.
13704 # The following way of writing the cache mishandles newlines in values,
13705 # but we know of no workaround that is simple, portable, and efficient.
13706 # So, don't put newlines in cache variables' values.
13707 # Ultrix sh set writes to stderr and can't be redirected directly,
13708 # and sets the high bit in the cache file unless we assign to the vars.
13709 (set) 2>&1 |
13710 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13711 *ac_space=\ *)
13712 # `set' does not quote correctly, so add quotes (double-quote substitution
13713 # turns \\\\ into \\, and sed turns \\ into \).
13714 sed -n \
13715 -e "s/'/'\\\\''/g" \
13716 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
13719 # `set' quotes correctly as required by POSIX, so do not add quotes.
13720 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
13722 esac >> confcache
13723 if cmp -s $cache_file confcache; then
13725 else
13726 if test -w $cache_file; then
13727 echo "updating cache $cache_file"
13728 cat confcache > $cache_file
13729 else
13730 echo "not updating unwritable cache $cache_file"
13733 rm -f confcache
13735 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
13737 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13738 # Let make expand exec_prefix.
13739 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13741 # Any assignment to VPATH causes Sun make to only execute
13742 # the first set of double-colon rules, so remove it if not needed.
13743 # If there is a colon in the path, we need to keep it.
13744 if test "x$srcdir" = x.; then
13745 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
13748 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
13750 DEFS=-DHAVE_CONFIG_H
13752 # Without the "./", some shells look in PATH for config.status.
13753 : ${CONFIG_STATUS=./config.status}
13755 echo creating $CONFIG_STATUS
13756 rm -f $CONFIG_STATUS
13757 cat > $CONFIG_STATUS <<EOF
13758 #! /bin/sh
13759 # Generated automatically by configure.
13760 # Run this file to recreate the current configuration.
13761 # This directory was configured as follows,
13762 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13764 # $0 $ac_configure_args
13766 # Compiler output produced by configure, useful for debugging
13767 # configure, is in ./config.log if it exists.
13769 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
13770 for ac_option
13772 case "\$ac_option" in
13773 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13774 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
13775 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
13776 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
13777 echo "$CONFIG_STATUS generated by autoconf version 2.13"
13778 exit 0 ;;
13779 -help | --help | --hel | --he | --h)
13780 echo "\$ac_cs_usage"; exit 0 ;;
13781 *) echo "\$ac_cs_usage"; exit 1 ;;
13782 esac
13783 done
13785 ac_given_srcdir=$srcdir
13786 ac_given_INSTALL="$INSTALL"
13788 trap 'rm -fr `echo "include/stamp-h Makefile script/findsmb include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
13790 cat >> $CONFIG_STATUS <<EOF
13792 # Protect against being on the right side of a sed subst in config.status.
13793 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
13794 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
13795 $ac_vpsub
13796 $extrasub
13797 s%@SHELL@%$SHELL%g
13798 s%@CFLAGS@%$CFLAGS%g
13799 s%@CPPFLAGS@%$CPPFLAGS%g
13800 s%@CXXFLAGS@%$CXXFLAGS%g
13801 s%@FFLAGS@%$FFLAGS%g
13802 s%@DEFS@%$DEFS%g
13803 s%@LDFLAGS@%$LDFLAGS%g
13804 s%@LIBS@%$LIBS%g
13805 s%@exec_prefix@%$exec_prefix%g
13806 s%@prefix@%$prefix%g
13807 s%@program_transform_name@%$program_transform_name%g
13808 s%@bindir@%$bindir%g
13809 s%@sbindir@%$sbindir%g
13810 s%@libexecdir@%$libexecdir%g
13811 s%@datadir@%$datadir%g
13812 s%@sysconfdir@%$sysconfdir%g
13813 s%@sharedstatedir@%$sharedstatedir%g
13814 s%@localstatedir@%$localstatedir%g
13815 s%@libdir@%$libdir%g
13816 s%@includedir@%$includedir%g
13817 s%@oldincludedir@%$oldincludedir%g
13818 s%@infodir@%$infodir%g
13819 s%@mandir@%$mandir%g
13820 s%@codepagedir@%$codepagedir%g
13821 s%@configdir@%$configdir%g
13822 s%@lockdir@%$lockdir%g
13823 s%@piddir@%$piddir%g
13824 s%@logfilebase@%$logfilebase%g
13825 s%@privatedir@%$privatedir%g
13826 s%@swatdir@%$swatdir%g
13827 s%@RUNPROG@%$RUNPROG%g
13828 s%@MPROGS@%$MPROGS%g
13829 s%@LDSHFLAGS@%$LDSHFLAGS%g
13830 s%@SONAMEFLAG@%$SONAMEFLAG%g
13831 s%@SHLD@%$SHLD%g
13832 s%@HOST_OS@%$HOST_OS%g
13833 s%@PAM_MOD@%$PAM_MOD%g
13834 s%@PDBEDIT@%$PDBEDIT%g
13835 s%@WRAP@%$WRAP%g
13836 s%@WRAP32@%$WRAP32%g
13837 s%@WRAPPROG@%$WRAPPROG%g
13838 s%@PICFLAG@%$PICFLAG%g
13839 s%@PICSUFFIX@%$PICSUFFIX%g
13840 s%@SHLIBEXT@%$SHLIBEXT%g
13841 s%@BLDSHARED@%$BLDSHARED%g
13842 s%@LIBSMBCLIENT_SHARED@%$LIBSMBCLIENT_SHARED%g
13843 s%@LIBSMBCLIENT@%$LIBSMBCLIENT%g
13844 s%@CC@%$CC%g
13845 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
13846 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
13847 s%@INSTALL_DATA@%$INSTALL_DATA%g
13848 s%@AWK@%$AWK%g
13849 s%@passwd_program@%$passwd_program%g
13850 s%@BROKEN_CC@%$BROKEN_CC%g
13851 s%@host@%$host%g
13852 s%@host_alias@%$host_alias%g
13853 s%@host_cpu@%$host_cpu%g
13854 s%@host_vendor@%$host_vendor%g
13855 s%@host_os@%$host_os%g
13856 s%@target@%$target%g
13857 s%@target_alias@%$target_alias%g
13858 s%@target_cpu@%$target_cpu%g
13859 s%@target_vendor@%$target_vendor%g
13860 s%@target_os@%$target_os%g
13861 s%@build@%$build%g
13862 s%@build_alias@%$build_alias%g
13863 s%@build_cpu@%$build_cpu%g
13864 s%@build_vendor@%$build_vendor%g
13865 s%@build_os@%$build_os%g
13866 s%@CPP@%$CPP%g
13867 s%@CUPS_CONFIG@%$CUPS_CONFIG%g
13868 s%@LIBOBJS@%$LIBOBJS%g
13869 s%@TERMLIBS@%$TERMLIBS%g
13870 s%@TERMLDFLAGS@%$TERMLDFLAGS%g
13871 s%@ROFF@%$ROFF%g
13872 s%@DYNEXP@%$DYNEXP%g
13873 s%@LDAPLIBS@%$LDAPLIBS%g
13874 s%@QUOTAOBJS@%$QUOTAOBJS%g
13875 s%@WINBIND_TARGETS@%$WINBIND_TARGETS%g
13876 s%@WINBIND_STARGETS@%$WINBIND_STARGETS%g
13877 s%@WINBIND_LTARGETS@%$WINBIND_LTARGETS%g
13878 s%@WINBIND_PAM_TARGETS@%$WINBIND_PAM_TARGETS%g
13879 s%@WINBIND_NSS_EXTRA_OBJS@%$WINBIND_NSS_EXTRA_OBJS%g
13880 s%@WINBIND_NSS_EXTRA_LIBS@%$WINBIND_NSS_EXTRA_LIBS%g
13881 s%@BUILD_POPT@%$BUILD_POPT%g
13882 s%@FLAGS1@%$FLAGS1%g
13883 s%@builddir@%$builddir%g
13885 CEOF
13888 cat >> $CONFIG_STATUS <<\EOF
13890 # Split the substitutions into bite-sized pieces for seds with
13891 # small command number limits, like on Digital OSF/1 and HP-UX.
13892 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
13893 ac_file=1 # Number of current file.
13894 ac_beg=1 # First line for current file.
13895 ac_end=$ac_max_sed_cmds # Line after last line for current file.
13896 ac_more_lines=:
13897 ac_sed_cmds=""
13898 while $ac_more_lines; do
13899 if test $ac_beg -gt 1; then
13900 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
13901 else
13902 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
13904 if test ! -s conftest.s$ac_file; then
13905 ac_more_lines=false
13906 rm -f conftest.s$ac_file
13907 else
13908 if test -z "$ac_sed_cmds"; then
13909 ac_sed_cmds="sed -f conftest.s$ac_file"
13910 else
13911 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
13913 ac_file=`expr $ac_file + 1`
13914 ac_beg=$ac_end
13915 ac_end=`expr $ac_end + $ac_max_sed_cmds`
13917 done
13918 if test -z "$ac_sed_cmds"; then
13919 ac_sed_cmds=cat
13923 cat >> $CONFIG_STATUS <<EOF
13925 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile script/findsmb"}
13927 cat >> $CONFIG_STATUS <<\EOF
13928 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
13929 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13930 case "$ac_file" in
13931 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13932 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13933 *) ac_file_in="${ac_file}.in" ;;
13934 esac
13936 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
13938 # Remove last slash and all that follows it. Not all systems have dirname.
13939 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13940 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13941 # The file is in a subdirectory.
13942 test ! -d "$ac_dir" && mkdir "$ac_dir"
13943 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
13944 # A "../" for each directory in $ac_dir_suffix.
13945 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
13946 else
13947 ac_dir_suffix= ac_dots=
13950 case "$ac_given_srcdir" in
13951 .) srcdir=.
13952 if test -z "$ac_dots"; then top_srcdir=.
13953 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
13954 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
13955 *) # Relative path.
13956 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
13957 top_srcdir="$ac_dots$ac_given_srcdir" ;;
13958 esac
13960 case "$ac_given_INSTALL" in
13961 [/$]*) INSTALL="$ac_given_INSTALL" ;;
13962 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
13963 esac
13965 echo creating "$ac_file"
13966 rm -f "$ac_file"
13967 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
13968 case "$ac_file" in
13969 *Makefile*) ac_comsub="1i\\
13970 # $configure_input" ;;
13971 *) ac_comsub= ;;
13972 esac
13974 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13975 sed -e "$ac_comsub
13976 s%@configure_input@%$configure_input%g
13977 s%@srcdir@%$srcdir%g
13978 s%@top_srcdir@%$top_srcdir%g
13979 s%@INSTALL@%$INSTALL%g
13980 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
13981 fi; done
13982 rm -f conftest.s*
13984 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13985 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13987 # ac_d sets the value in "#define NAME VALUE" lines.
13988 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13989 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
13990 ac_dC='\3'
13991 ac_dD='%g'
13992 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
13993 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13994 ac_uB='\([ ]\)%\1#\2define\3'
13995 ac_uC=' '
13996 ac_uD='\4%g'
13997 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13998 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13999 ac_eB='$%\1#\2define\3'
14000 ac_eC=' '
14001 ac_eD='%g'
14003 if test "${CONFIG_HEADERS+set}" != set; then
14005 cat >> $CONFIG_STATUS <<EOF
14006 CONFIG_HEADERS="include/config.h"
14008 cat >> $CONFIG_STATUS <<\EOF
14010 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
14011 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14012 case "$ac_file" in
14013 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
14014 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14015 *) ac_file_in="${ac_file}.in" ;;
14016 esac
14018 echo creating $ac_file
14020 rm -f conftest.frag conftest.in conftest.out
14021 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
14022 cat $ac_file_inputs > conftest.in
14026 # Transform confdefs.h into a sed script conftest.vals that substitutes
14027 # the proper values into config.h.in to produce config.h. And first:
14028 # Protect against being on the right side of a sed subst in config.status.
14029 # Protect against being in an unquoted here document in config.status.
14030 rm -f conftest.vals
14031 cat > conftest.hdr <<\EOF
14032 s/[\\&%]/\\&/g
14033 s%[\\$`]%\\&%g
14034 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
14035 s%ac_d%ac_u%gp
14036 s%ac_u%ac_e%gp
14038 sed -n -f conftest.hdr confdefs.h > conftest.vals
14039 rm -f conftest.hdr
14041 # This sed command replaces #undef with comments. This is necessary, for
14042 # example, in the case of _POSIX_SOURCE, which is predefined and required
14043 # on some systems where configure will not decide to define it.
14044 cat >> conftest.vals <<\EOF
14045 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
14048 # Break up conftest.vals because some shells have a limit on
14049 # the size of here documents, and old seds have small limits too.
14051 rm -f conftest.tail
14052 while :
14054 ac_lines=`grep -c . conftest.vals`
14055 # grep -c gives empty output for an empty file on some AIX systems.
14056 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
14057 # Write a limited-size here document to conftest.frag.
14058 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
14059 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
14060 echo 'CEOF
14061 sed -f conftest.frag conftest.in > conftest.out
14062 rm -f conftest.in
14063 mv conftest.out conftest.in
14064 ' >> $CONFIG_STATUS
14065 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
14066 rm -f conftest.vals
14067 mv conftest.tail conftest.vals
14068 done
14069 rm -f conftest.vals
14071 cat >> $CONFIG_STATUS <<\EOF
14072 rm -f conftest.frag conftest.h
14073 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
14074 cat conftest.in >> conftest.h
14075 rm -f conftest.in
14076 if cmp -s $ac_file conftest.h 2>/dev/null; then
14077 echo "$ac_file is unchanged"
14078 rm -f conftest.h
14079 else
14080 # Remove last slash and all that follows it. Not all systems have dirname.
14081 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
14082 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
14083 # The file is in a subdirectory.
14084 test ! -d "$ac_dir" && mkdir "$ac_dir"
14086 rm -f $ac_file
14087 mv conftest.h $ac_file
14089 fi; done
14092 cat >> $CONFIG_STATUS <<EOF
14095 cat >> $CONFIG_STATUS <<\EOF
14097 exit 0
14099 chmod +x $CONFIG_STATUS
14100 rm -fr confdefs* $ac_clean_files
14101 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1