compile fix for AIX compiler. Patch from Juergen H.
[Samba.git] / source / configure
blob0c9c205063732bb09e1a549e8c896a1a70be074f
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-included-popt use bundled popt library, not from system"
88 # Initialize some variables set by options.
89 # The variables have the same names as the options, with
90 # dashes changed to underlines.
91 build=NONE
92 cache_file=./config.cache
93 exec_prefix=NONE
94 host=NONE
95 no_create=
96 nonopt=NONE
97 no_recursion=
98 prefix=NONE
99 program_prefix=NONE
100 program_suffix=NONE
101 program_transform_name=s,x,x,
102 silent=
103 site=
104 srcdir=
105 target=NONE
106 verbose=
107 x_includes=NONE
108 x_libraries=NONE
109 bindir='${exec_prefix}/bin'
110 sbindir='${exec_prefix}/sbin'
111 libexecdir='${exec_prefix}/libexec'
112 datadir='${prefix}/share'
113 sysconfdir='${prefix}/etc'
114 sharedstatedir='${prefix}/com'
115 localstatedir='${prefix}/var'
116 libdir='${exec_prefix}/lib'
117 includedir='${prefix}/include'
118 oldincludedir='/usr/include'
119 infodir='${prefix}/info'
120 mandir='${prefix}/man'
122 # Initialize some other variables.
123 subdirs=
124 MFLAGS= MAKEFLAGS=
125 SHELL=${CONFIG_SHELL-/bin/sh}
126 # Maximum number of lines to put in a shell here document.
127 ac_max_here_lines=12
129 ac_prev=
130 for ac_option
133 # If the previous option needs an argument, assign it.
134 if test -n "$ac_prev"; then
135 eval "$ac_prev=\$ac_option"
136 ac_prev=
137 continue
140 case "$ac_option" in
141 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
142 *) ac_optarg= ;;
143 esac
145 # Accept the important Cygnus configure options, so we can diagnose typos.
147 case "$ac_option" in
149 -bindir | --bindir | --bindi | --bind | --bin | --bi)
150 ac_prev=bindir ;;
151 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
152 bindir="$ac_optarg" ;;
154 -build | --build | --buil | --bui | --bu)
155 ac_prev=build ;;
156 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
157 build="$ac_optarg" ;;
159 -cache-file | --cache-file | --cache-fil | --cache-fi \
160 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
161 ac_prev=cache_file ;;
162 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
163 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
164 cache_file="$ac_optarg" ;;
166 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
167 ac_prev=datadir ;;
168 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
169 | --da=*)
170 datadir="$ac_optarg" ;;
172 -disable-* | --disable-*)
173 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
174 # Reject names that are not valid shell variable names.
175 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
176 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
178 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
179 eval "enable_${ac_feature}=no" ;;
181 -enable-* | --enable-*)
182 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
183 # Reject names that are not valid shell variable names.
184 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
185 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
187 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
188 case "$ac_option" in
189 *=*) ;;
190 *) ac_optarg=yes ;;
191 esac
192 eval "enable_${ac_feature}='$ac_optarg'" ;;
194 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
195 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
196 | --exec | --exe | --ex)
197 ac_prev=exec_prefix ;;
198 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
199 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
200 | --exec=* | --exe=* | --ex=*)
201 exec_prefix="$ac_optarg" ;;
203 -gas | --gas | --ga | --g)
204 # Obsolete; use --with-gas.
205 with_gas=yes ;;
207 -help | --help | --hel | --he)
208 # Omit some internal or obsolete options to make the list less imposing.
209 # This message is too long to be a string in the A/UX 3.1 sh.
210 cat << EOF
211 Usage: configure [options] [host]
212 Options: [defaults in brackets after descriptions]
213 Configuration:
214 --cache-file=FILE cache test results in FILE
215 --help print this message
216 --no-create do not create output files
217 --quiet, --silent do not print \`checking...' messages
218 --version print the version of autoconf that created configure
219 Directory and file names:
220 --prefix=PREFIX install architecture-independent files in PREFIX
221 [$ac_default_prefix]
222 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
223 [same as prefix]
224 --bindir=DIR user executables in DIR [EPREFIX/bin]
225 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
226 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
227 --datadir=DIR read-only architecture-independent data in DIR
228 [PREFIX/share]
229 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
230 --sharedstatedir=DIR modifiable architecture-independent data in DIR
231 [PREFIX/com]
232 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
233 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
234 --includedir=DIR C header files in DIR [PREFIX/include]
235 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
236 --infodir=DIR info documentation in DIR [PREFIX/info]
237 --mandir=DIR man documentation in DIR [PREFIX/man]
238 --srcdir=DIR find the sources in DIR [configure dir or ..]
239 --program-prefix=PREFIX prepend PREFIX to installed program names
240 --program-suffix=SUFFIX append SUFFIX to installed program names
241 --program-transform-name=PROGRAM
242 run sed PROGRAM on installed program names
244 cat << EOF
245 Host type:
246 --build=BUILD configure for building on BUILD [BUILD=HOST]
247 --host=HOST configure for HOST [guessed]
248 --target=TARGET configure for TARGET [TARGET=HOST]
249 Features and packages:
250 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
251 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
252 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
253 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
254 --x-includes=DIR X include files are in DIR
255 --x-libraries=DIR X library files are in DIR
257 if test -n "$ac_help"; then
258 echo "--enable and --with options recognized:$ac_help"
260 exit 0 ;;
262 -host | --host | --hos | --ho)
263 ac_prev=host ;;
264 -host=* | --host=* | --hos=* | --ho=*)
265 host="$ac_optarg" ;;
267 -includedir | --includedir | --includedi | --included | --include \
268 | --includ | --inclu | --incl | --inc)
269 ac_prev=includedir ;;
270 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
271 | --includ=* | --inclu=* | --incl=* | --inc=*)
272 includedir="$ac_optarg" ;;
274 -infodir | --infodir | --infodi | --infod | --info | --inf)
275 ac_prev=infodir ;;
276 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
277 infodir="$ac_optarg" ;;
279 -libdir | --libdir | --libdi | --libd)
280 ac_prev=libdir ;;
281 -libdir=* | --libdir=* | --libdi=* | --libd=*)
282 libdir="$ac_optarg" ;;
284 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
285 | --libexe | --libex | --libe)
286 ac_prev=libexecdir ;;
287 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
288 | --libexe=* | --libex=* | --libe=*)
289 libexecdir="$ac_optarg" ;;
291 -localstatedir | --localstatedir | --localstatedi | --localstated \
292 | --localstate | --localstat | --localsta | --localst \
293 | --locals | --local | --loca | --loc | --lo)
294 ac_prev=localstatedir ;;
295 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
296 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
297 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
298 localstatedir="$ac_optarg" ;;
300 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
301 ac_prev=mandir ;;
302 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
303 mandir="$ac_optarg" ;;
305 -nfp | --nfp | --nf)
306 # Obsolete; use --without-fp.
307 with_fp=no ;;
309 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
310 | --no-cr | --no-c)
311 no_create=yes ;;
313 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
314 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
315 no_recursion=yes ;;
317 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
318 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
319 | --oldin | --oldi | --old | --ol | --o)
320 ac_prev=oldincludedir ;;
321 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
322 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
323 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
324 oldincludedir="$ac_optarg" ;;
326 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
327 ac_prev=prefix ;;
328 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
329 prefix="$ac_optarg" ;;
331 -program-prefix | --program-prefix | --program-prefi | --program-pref \
332 | --program-pre | --program-pr | --program-p)
333 ac_prev=program_prefix ;;
334 -program-prefix=* | --program-prefix=* | --program-prefi=* \
335 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
336 program_prefix="$ac_optarg" ;;
338 -program-suffix | --program-suffix | --program-suffi | --program-suff \
339 | --program-suf | --program-su | --program-s)
340 ac_prev=program_suffix ;;
341 -program-suffix=* | --program-suffix=* | --program-suffi=* \
342 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
343 program_suffix="$ac_optarg" ;;
345 -program-transform-name | --program-transform-name \
346 | --program-transform-nam | --program-transform-na \
347 | --program-transform-n | --program-transform- \
348 | --program-transform | --program-transfor \
349 | --program-transfo | --program-transf \
350 | --program-trans | --program-tran \
351 | --progr-tra | --program-tr | --program-t)
352 ac_prev=program_transform_name ;;
353 -program-transform-name=* | --program-transform-name=* \
354 | --program-transform-nam=* | --program-transform-na=* \
355 | --program-transform-n=* | --program-transform-=* \
356 | --program-transform=* | --program-transfor=* \
357 | --program-transfo=* | --program-transf=* \
358 | --program-trans=* | --program-tran=* \
359 | --progr-tra=* | --program-tr=* | --program-t=*)
360 program_transform_name="$ac_optarg" ;;
362 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
363 | -silent | --silent | --silen | --sile | --sil)
364 silent=yes ;;
366 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
367 ac_prev=sbindir ;;
368 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
369 | --sbi=* | --sb=*)
370 sbindir="$ac_optarg" ;;
372 -sharedstatedir | --sharedstatedir | --sharedstatedi \
373 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
374 | --sharedst | --shareds | --shared | --share | --shar \
375 | --sha | --sh)
376 ac_prev=sharedstatedir ;;
377 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
378 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
379 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
380 | --sha=* | --sh=*)
381 sharedstatedir="$ac_optarg" ;;
383 -site | --site | --sit)
384 ac_prev=site ;;
385 -site=* | --site=* | --sit=*)
386 site="$ac_optarg" ;;
388 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
389 ac_prev=srcdir ;;
390 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
391 srcdir="$ac_optarg" ;;
393 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
394 | --syscon | --sysco | --sysc | --sys | --sy)
395 ac_prev=sysconfdir ;;
396 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
397 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
398 sysconfdir="$ac_optarg" ;;
400 -target | --target | --targe | --targ | --tar | --ta | --t)
401 ac_prev=target ;;
402 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
403 target="$ac_optarg" ;;
405 -v | -verbose | --verbose | --verbos | --verbo | --verb)
406 verbose=yes ;;
408 -version | --version | --versio | --versi | --vers)
409 echo "configure generated by autoconf version 2.13"
410 exit 0 ;;
412 -with-* | --with-*)
413 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
414 # Reject names that are not valid shell variable names.
415 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
416 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
418 ac_package=`echo $ac_package| sed 's/-/_/g'`
419 case "$ac_option" in
420 *=*) ;;
421 *) ac_optarg=yes ;;
422 esac
423 eval "with_${ac_package}='$ac_optarg'" ;;
425 -without-* | --without-*)
426 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
427 # Reject names that are not valid shell variable names.
428 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
429 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
431 ac_package=`echo $ac_package| sed 's/-/_/g'`
432 eval "with_${ac_package}=no" ;;
434 --x)
435 # Obsolete; use --with-x.
436 with_x=yes ;;
438 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
439 | --x-incl | --x-inc | --x-in | --x-i)
440 ac_prev=x_includes ;;
441 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
442 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
443 x_includes="$ac_optarg" ;;
445 -x-libraries | --x-libraries | --x-librarie | --x-librari \
446 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
447 ac_prev=x_libraries ;;
448 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
449 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
450 x_libraries="$ac_optarg" ;;
452 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
456 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
457 echo "configure: warning: $ac_option: invalid host type" 1>&2
459 if test "x$nonopt" != xNONE; then
460 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
462 nonopt="$ac_option"
465 esac
466 done
468 if test -n "$ac_prev"; then
469 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
472 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
474 # File descriptor usage:
475 # 0 standard input
476 # 1 file creation
477 # 2 errors and warnings
478 # 3 some systems may open it to /dev/tty
479 # 4 used on the Kubota Titan
480 # 6 checking for... messages and results
481 # 5 compiler messages saved in config.log
482 if test "$silent" = yes; then
483 exec 6>/dev/null
484 else
485 exec 6>&1
487 exec 5>./config.log
489 echo "\
490 This file contains any messages produced by compilers while
491 running configure, to aid debugging if configure makes a mistake.
492 " 1>&5
494 # Strip out --no-create and --no-recursion so they do not pile up.
495 # Also quote any args containing shell metacharacters.
496 ac_configure_args=
497 for ac_arg
499 case "$ac_arg" in
500 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
501 | --no-cr | --no-c) ;;
502 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
503 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
504 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
505 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
506 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
507 esac
508 done
510 # NLS nuisances.
511 # Only set these to C if already set. These must not be set unconditionally
512 # because not all systems understand e.g. LANG=C (notably SCO).
513 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
514 # Non-C LC_CTYPE values break the ctype check.
515 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
516 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
517 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
518 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
520 # confdefs.h avoids OS command line length limits that DEFS can exceed.
521 rm -rf conftest* confdefs.h
522 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
523 echo > confdefs.h
525 # A filename unique to this package, relative to the directory that
526 # configure is in, which we can look for to find out if srcdir is correct.
527 ac_unique_file=include/includes.h
529 # Find the source files, if location was not specified.
530 if test -z "$srcdir"; then
531 ac_srcdir_defaulted=yes
532 # Try the directory containing this script, then its parent.
533 ac_prog=$0
534 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
535 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
536 srcdir=$ac_confdir
537 if test ! -r $srcdir/$ac_unique_file; then
538 srcdir=..
540 else
541 ac_srcdir_defaulted=no
543 if test ! -r $srcdir/$ac_unique_file; then
544 if test "$ac_srcdir_defaulted" = yes; then
545 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
546 else
547 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
550 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
552 # Prefer explicitly selected file to automatically selected ones.
553 if test -z "$CONFIG_SITE"; then
554 if test "x$prefix" != xNONE; then
555 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
556 else
557 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
560 for ac_site_file in $CONFIG_SITE; do
561 if test -r "$ac_site_file"; then
562 echo "loading site script $ac_site_file"
563 . "$ac_site_file"
565 done
567 if test -r "$cache_file"; then
568 echo "loading cache $cache_file"
569 . $cache_file
570 else
571 echo "creating cache $cache_file"
572 > $cache_file
575 ac_ext=c
576 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
577 ac_cpp='$CPP $CPPFLAGS'
578 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
579 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
580 cross_compiling=$ac_cv_prog_cc_cross
582 ac_exeext=
583 ac_objext=o
584 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
585 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
586 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
587 ac_n= ac_c='
588 ' ac_t=' '
589 else
590 ac_n=-n ac_c= ac_t=
592 else
593 ac_n= ac_c='\c' ac_t=
599 #################################################
600 # Directory handling stuff to support both the
601 # legacy SAMBA directories and FHS compliant
602 # ones...
605 # Check whether --with-fhs or --without-fhs was given.
606 if test "${with_fhs+set}" = set; then
607 withval="$with_fhs"
608 codepagedir="\$(DATADIR)/samba/codepages"
609 configdir="${sysconfdir}/samba"
610 lockdir="\${VARDIR}/cache/samba"
611 piddir="\$(VARDIR)/run/samba"
612 logfilebase="\${VARDIR}/log/samba"
613 privatedir="\${CONFIGDIR}/private"
614 swatdir="\${DATADIR}/samba/swat"
615 else
616 codepagedir="\$(LIBDIR)/codepages"
617 configdir="\$(LIBDIR)"
618 logfilebase="\$(VARDIR)"
619 lockdir="\${VARDIR}/locks"
620 piddir="\$(VARDIR)/locks"
621 privatedir="\${prefix}/private"
622 swatdir="\${prefix}/swat"
626 #################################################
627 # set private directory location
628 # Check whether --with-privatedir or --without-privatedir was given.
629 if test "${with_privatedir+set}" = set; then
630 withval="$with_privatedir"
631 case "$withval" in
632 yes|no)
634 # Just in case anybody calls it without argument
636 echo "configure: warning: --with-privatedir called without argument - will use default" 1>&2
639 privatedir="$withval"
641 esac
645 #################################################
646 # set lock directory location
647 # Check whether --with-lockdir or --without-lockdir was given.
648 if test "${with_lockdir+set}" = set; then
649 withval="$with_lockdir"
650 case "$withval" in
651 yes|no)
653 # Just in case anybody calls it without argument
655 echo "configure: warning: --with-lockdir called without argument - will use default" 1>&2
658 lockdir="$withval"
660 esac
664 #################################################
665 # set pid directory location
666 # Check whether --with-piddir or --without-piddir was given.
667 if test "${with_piddir+set}" = set; then
668 withval="$with_piddir"
669 case "$withval" in
670 yes|no)
672 # Just in case anybody calls it without argument
674 echo "configure: warning: --with-piddir called without argument - will use default" 1>&2
677 piddir="$withval"
679 esac
683 #################################################
684 # set SWAT directory location
685 # Check whether --with-swatdir or --without-swatdir was given.
686 if test "${with_swatdir+set}" = set; then
687 withval="$with_swatdir"
688 case "$withval" in
689 yes|no)
691 # Just in case anybody does it
693 echo "configure: warning: --with-swatdir called without argument - will use default" 1>&2
696 swatdir="$withval"
698 esac
702 #################################################
703 # set configuration directory location
704 # Check whether --with-configdir or --without-configdir was given.
705 if test "${with_configdir+set}" = set; then
706 withval="$with_configdir"
707 case "$withval" in
708 yes|no)
710 # Just in case anybody does it
712 echo "configure: warning: --with-configdir called without argument - will use default" 1>&2
715 configdir="$withval"
717 esac
721 #################################################
722 # set codepage directory location
723 # Check whether --with-codepagedir or --without-codepagedir was given.
724 if test "${with_codepagedir+set}" = set; then
725 withval="$with_codepagedir"
726 case "$withval" in
727 yes|no)
729 # Just in case anybody does it
731 echo "configure: warning: --with-codepagedir called without argument - will use default" 1>&2
734 codepagedir="$withval"
736 esac
740 #################################################
741 # set log directory location
742 # Check whether --with-logfilebase or --without-logfilebase was given.
743 if test "${with_logfilebase+set}" = set; then
744 withval="$with_logfilebase"
745 case "$withval" in
746 yes|no)
748 # Just in case anybody does it
750 echo "configure: warning: --with-logfilebase called without argument - will use default" 1>&2
753 logfilebase="$withval"
755 esac
788 # compile with optimization and without debugging by default
789 CFLAGS="-O ${CFLAGS}"
791 # Check whether --enable-debug or --disable-debug was given.
792 if test "${enable_debug+set}" = set; then
793 enableval="$enable_debug"
794 if eval "test x$enable_debug = xyes"; then
795 CFLAGS="${CFLAGS} -g"
802 # Extract the first word of "gcc", so it can be a program name with args.
803 set dummy gcc; ac_word=$2
804 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
805 echo "configure:806: checking for $ac_word" >&5
806 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
807 echo $ac_n "(cached) $ac_c" 1>&6
808 else
809 if test -n "$CC"; then
810 ac_cv_prog_CC="$CC" # Let the user override the test.
811 else
812 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
813 ac_dummy="$PATH"
814 for ac_dir in $ac_dummy; do
815 test -z "$ac_dir" && ac_dir=.
816 if test -f $ac_dir/$ac_word; then
817 ac_cv_prog_CC="gcc"
818 break
820 done
821 IFS="$ac_save_ifs"
824 CC="$ac_cv_prog_CC"
825 if test -n "$CC"; then
826 echo "$ac_t""$CC" 1>&6
827 else
828 echo "$ac_t""no" 1>&6
831 if test -z "$CC"; then
832 # Extract the first word of "cc", so it can be a program name with args.
833 set dummy cc; ac_word=$2
834 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
835 echo "configure:836: checking for $ac_word" >&5
836 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
837 echo $ac_n "(cached) $ac_c" 1>&6
838 else
839 if test -n "$CC"; then
840 ac_cv_prog_CC="$CC" # Let the user override the test.
841 else
842 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
843 ac_prog_rejected=no
844 ac_dummy="$PATH"
845 for ac_dir in $ac_dummy; do
846 test -z "$ac_dir" && ac_dir=.
847 if test -f $ac_dir/$ac_word; then
848 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
849 ac_prog_rejected=yes
850 continue
852 ac_cv_prog_CC="cc"
853 break
855 done
856 IFS="$ac_save_ifs"
857 if test $ac_prog_rejected = yes; then
858 # We found a bogon in the path, so make sure we never use it.
859 set dummy $ac_cv_prog_CC
860 shift
861 if test $# -gt 0; then
862 # We chose a different compiler from the bogus one.
863 # However, it has the same basename, so the bogon will be chosen
864 # first if we set CC to just the basename; use the full file name.
865 shift
866 set dummy "$ac_dir/$ac_word" "$@"
867 shift
868 ac_cv_prog_CC="$@"
873 CC="$ac_cv_prog_CC"
874 if test -n "$CC"; then
875 echo "$ac_t""$CC" 1>&6
876 else
877 echo "$ac_t""no" 1>&6
880 if test -z "$CC"; then
881 case "`uname -s`" in
882 *win32* | *WIN32*)
883 # Extract the first word of "cl", so it can be a program name with args.
884 set dummy cl; ac_word=$2
885 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
886 echo "configure:887: checking for $ac_word" >&5
887 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
888 echo $ac_n "(cached) $ac_c" 1>&6
889 else
890 if test -n "$CC"; then
891 ac_cv_prog_CC="$CC" # Let the user override the test.
892 else
893 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
894 ac_dummy="$PATH"
895 for ac_dir in $ac_dummy; do
896 test -z "$ac_dir" && ac_dir=.
897 if test -f $ac_dir/$ac_word; then
898 ac_cv_prog_CC="cl"
899 break
901 done
902 IFS="$ac_save_ifs"
905 CC="$ac_cv_prog_CC"
906 if test -n "$CC"; then
907 echo "$ac_t""$CC" 1>&6
908 else
909 echo "$ac_t""no" 1>&6
912 esac
914 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
917 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
918 echo "configure:919: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
920 ac_ext=c
921 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
922 ac_cpp='$CPP $CPPFLAGS'
923 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
924 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
925 cross_compiling=$ac_cv_prog_cc_cross
927 cat > conftest.$ac_ext << EOF
929 #line 930 "configure"
930 #include "confdefs.h"
932 main(){return(0);}
934 if { (eval echo configure:935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
935 ac_cv_prog_cc_works=yes
936 # If we can't run a trivial program, we are probably using a cross compiler.
937 if (./conftest; exit) 2>/dev/null; then
938 ac_cv_prog_cc_cross=no
939 else
940 ac_cv_prog_cc_cross=yes
942 else
943 echo "configure: failed program was:" >&5
944 cat conftest.$ac_ext >&5
945 ac_cv_prog_cc_works=no
947 rm -fr conftest*
948 ac_ext=c
949 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
950 ac_cpp='$CPP $CPPFLAGS'
951 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
952 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
953 cross_compiling=$ac_cv_prog_cc_cross
955 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
956 if test $ac_cv_prog_cc_works = no; then
957 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
959 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
960 echo "configure:961: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
961 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
962 cross_compiling=$ac_cv_prog_cc_cross
964 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
965 echo "configure:966: checking whether we are using GNU C" >&5
966 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
967 echo $ac_n "(cached) $ac_c" 1>&6
968 else
969 cat > conftest.c <<EOF
970 #ifdef __GNUC__
971 yes;
972 #endif
974 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:975: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
975 ac_cv_prog_gcc=yes
976 else
977 ac_cv_prog_gcc=no
981 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
983 if test $ac_cv_prog_gcc = yes; then
984 GCC=yes
985 else
986 GCC=
989 ac_test_CFLAGS="${CFLAGS+set}"
990 ac_save_CFLAGS="$CFLAGS"
991 CFLAGS=
992 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
993 echo "configure:994: checking whether ${CC-cc} accepts -g" >&5
994 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
995 echo $ac_n "(cached) $ac_c" 1>&6
996 else
997 echo 'void f(){}' > conftest.c
998 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
999 ac_cv_prog_cc_g=yes
1000 else
1001 ac_cv_prog_cc_g=no
1003 rm -f conftest*
1007 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1008 if test "$ac_test_CFLAGS" = set; then
1009 CFLAGS="$ac_save_CFLAGS"
1010 elif test $ac_cv_prog_cc_g = yes; then
1011 if test "$GCC" = yes; then
1012 CFLAGS="-g -O2"
1013 else
1014 CFLAGS="-g"
1016 else
1017 if test "$GCC" = yes; then
1018 CFLAGS="-O2"
1019 else
1020 CFLAGS=
1024 ac_aux_dir=
1025 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1026 if test -f $ac_dir/install-sh; then
1027 ac_aux_dir=$ac_dir
1028 ac_install_sh="$ac_aux_dir/install-sh -c"
1029 break
1030 elif 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
1035 done
1036 if test -z "$ac_aux_dir"; then
1037 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1039 ac_config_guess=$ac_aux_dir/config.guess
1040 ac_config_sub=$ac_aux_dir/config.sub
1041 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1043 # Find a good install program. We prefer a C program (faster),
1044 # so one script is as good as another. But avoid the broken or
1045 # incompatible versions:
1046 # SysV /etc/install, /usr/sbin/install
1047 # SunOS /usr/etc/install
1048 # IRIX /sbin/install
1049 # AIX /bin/install
1050 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1051 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1052 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1053 # ./install, which can be erroneously created by make from ./install.sh.
1054 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1055 echo "configure:1056: checking for a BSD compatible install" >&5
1056 if test -z "$INSTALL"; then
1057 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1058 echo $ac_n "(cached) $ac_c" 1>&6
1059 else
1060 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1061 for ac_dir in $PATH; do
1062 # Account for people who put trailing slashes in PATH elements.
1063 case "$ac_dir/" in
1064 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1066 # OSF1 and SCO ODT 3.0 have their own names for install.
1067 # Don't use installbsd from OSF since it installs stuff as root
1068 # by default.
1069 for ac_prog in ginstall scoinst install; do
1070 if test -f $ac_dir/$ac_prog; then
1071 if test $ac_prog = install &&
1072 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1073 # AIX install. It has an incompatible calling convention.
1075 else
1076 ac_cv_path_install="$ac_dir/$ac_prog -c"
1077 break 2
1080 done
1082 esac
1083 done
1084 IFS="$ac_save_IFS"
1087 if test "${ac_cv_path_install+set}" = set; then
1088 INSTALL="$ac_cv_path_install"
1089 else
1090 # As a last resort, use the slow shell script. We don't cache a
1091 # path for INSTALL within a source directory, because that will
1092 # break other packages using the cache if that directory is
1093 # removed, or if the path is relative.
1094 INSTALL="$ac_install_sh"
1097 echo "$ac_t""$INSTALL" 1>&6
1099 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1100 # It thinks the first close brace ends the variable substitution.
1101 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1103 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1105 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1107 for ac_prog in gawk mawk nawk awk
1109 # Extract the first word of "$ac_prog", so it can be a program name with args.
1110 set dummy $ac_prog; ac_word=$2
1111 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1112 echo "configure:1113: checking for $ac_word" >&5
1113 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1114 echo $ac_n "(cached) $ac_c" 1>&6
1115 else
1116 if test -n "$AWK"; then
1117 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1118 else
1119 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1120 ac_dummy="$PATH"
1121 for ac_dir in $ac_dummy; do
1122 test -z "$ac_dir" && ac_dir=.
1123 if test -f $ac_dir/$ac_word; then
1124 ac_cv_prog_AWK="$ac_prog"
1125 break
1127 done
1128 IFS="$ac_save_ifs"
1131 AWK="$ac_cv_prog_AWK"
1132 if test -n "$AWK"; then
1133 echo "$ac_t""$AWK" 1>&6
1134 else
1135 echo "$ac_t""no" 1>&6
1138 test -n "$AWK" && break
1139 done
1141 # Extract the first word of "passwd", so it can be a program name with args.
1142 set dummy passwd; ac_word=$2
1143 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1144 echo "configure:1145: checking for $ac_word" >&5
1145 if eval "test \"`echo '$''{'ac_cv_path_passwd_program'+set}'`\" = set"; then
1146 echo $ac_n "(cached) $ac_c" 1>&6
1147 else
1148 case "$passwd_program" in
1150 ac_cv_path_passwd_program="$passwd_program" # Let the user override the test with a path.
1152 ?:/*)
1153 ac_cv_path_passwd_program="$passwd_program" # Let the user override the test with a dos path.
1156 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1157 ac_dummy="$PATH"
1158 for ac_dir in $ac_dummy; do
1159 test -z "$ac_dir" && ac_dir=.
1160 if test -f $ac_dir/$ac_word; then
1161 ac_cv_path_passwd_program="$ac_dir/$ac_word"
1162 break
1164 done
1165 IFS="$ac_save_ifs"
1166 test -z "$ac_cv_path_passwd_program" && ac_cv_path_passwd_program="/bin/passwd"
1168 esac
1170 passwd_program="$ac_cv_path_passwd_program"
1171 if test -n "$passwd_program"; then
1172 echo "$ac_t""$passwd_program" 1>&6
1173 else
1174 echo "$ac_t""no" 1>&6
1179 if test "x$CC" != xcc; then
1180 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1181 echo "configure:1182: checking whether $CC and cc understand -c and -o together" >&5
1182 else
1183 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1184 echo "configure:1185: checking whether cc understands -c and -o together" >&5
1186 set dummy $CC; ac_cc="`echo $2 |
1187 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1188 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1189 echo $ac_n "(cached) $ac_c" 1>&6
1190 else
1191 echo 'foo(){}' > conftest.c
1192 # Make sure it works both with $CC and with simple cc.
1193 # We do the test twice because some compilers refuse to overwrite an
1194 # existing .o file with -o, though they will create one.
1195 ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1196 if { (eval echo configure:1197: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1197 test -f conftest.o && { (eval echo configure:1198: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1198 then
1199 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
1200 if test "x$CC" != xcc; then
1201 # Test first that cc exists at all.
1202 if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:1203: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1203 ac_try='cc -c conftest.c -o conftest.o 1>&5'
1204 if { (eval echo configure:1205: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1205 test -f conftest.o && { (eval echo configure:1206: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1206 then
1207 # cc works too.
1209 else
1210 # cc exists but doesn't like -o.
1211 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1215 else
1216 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1218 rm -f conftest*
1221 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1222 echo "$ac_t""yes" 1>&6
1223 else
1224 echo "$ac_t""no" 1>&6
1225 cat >> confdefs.h <<\EOF
1226 #define NO_MINUS_C_MINUS_O 1
1231 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1232 BROKEN_CC=
1233 else
1234 BROKEN_CC=#
1238 echo $ac_n "checking that the C compiler understands volatile""... $ac_c" 1>&6
1239 echo "configure:1240: checking that the C compiler understands volatile" >&5
1240 if eval "test \"`echo '$''{'samba_cv_volatile'+set}'`\" = set"; then
1241 echo $ac_n "(cached) $ac_c" 1>&6
1242 else
1244 cat > conftest.$ac_ext <<EOF
1245 #line 1246 "configure"
1246 #include "confdefs.h"
1247 #include <sys/types.h>
1248 int main() {
1249 volatile int i = 0
1250 ; return 0; }
1252 if { (eval echo configure:1253: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1253 rm -rf conftest*
1254 samba_cv_volatile=yes
1255 else
1256 echo "configure: failed program was:" >&5
1257 cat conftest.$ac_ext >&5
1258 rm -rf conftest*
1259 samba_cv_volatile=no
1261 rm -f conftest*
1264 echo "$ac_t""$samba_cv_volatile" 1>&6
1265 if test x"$samba_cv_volatile" = x"yes"; then
1266 cat >> confdefs.h <<\EOF
1267 #define HAVE_VOLATILE 1
1275 # Do some error checking and defaulting for the host and target type.
1276 # The inputs are:
1277 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1279 # The rules are:
1280 # 1. You are not allowed to specify --host, --target, and nonopt at the
1281 # same time.
1282 # 2. Host defaults to nonopt.
1283 # 3. If nonopt is not specified, then host defaults to the current host,
1284 # as determined by config.guess.
1285 # 4. Target and build default to nonopt.
1286 # 5. If nonopt is not specified, then target and build default to host.
1288 # The aliases save the names the user supplied, while $host etc.
1289 # will get canonicalized.
1290 case $host---$target---$nonopt in
1291 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1292 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1293 esac
1296 # Make sure we can run config.sub.
1297 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1298 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1301 echo $ac_n "checking host system type""... $ac_c" 1>&6
1302 echo "configure:1303: checking host system type" >&5
1304 host_alias=$host
1305 case "$host_alias" in
1306 NONE)
1307 case $nonopt in
1308 NONE)
1309 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1310 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1311 fi ;;
1312 *) host_alias=$nonopt ;;
1313 esac ;;
1314 esac
1316 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1317 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1318 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1319 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1320 echo "$ac_t""$host" 1>&6
1322 echo $ac_n "checking target system type""... $ac_c" 1>&6
1323 echo "configure:1324: checking target system type" >&5
1325 target_alias=$target
1326 case "$target_alias" in
1327 NONE)
1328 case $nonopt in
1329 NONE) target_alias=$host_alias ;;
1330 *) target_alias=$nonopt ;;
1331 esac ;;
1332 esac
1334 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1335 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1336 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1337 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1338 echo "$ac_t""$target" 1>&6
1340 echo $ac_n "checking build system type""... $ac_c" 1>&6
1341 echo "configure:1342: checking build system type" >&5
1343 build_alias=$build
1344 case "$build_alias" in
1345 NONE)
1346 case $nonopt in
1347 NONE) build_alias=$host_alias ;;
1348 *) build_alias=$nonopt ;;
1349 esac ;;
1350 esac
1352 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1353 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1354 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1355 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1356 echo "$ac_t""$build" 1>&6
1358 test "$host_alias" != "$target_alias" &&
1359 test "$program_prefix$program_suffix$program_transform_name" = \
1360 NONENONEs,x,x, &&
1361 program_prefix=${target_alias}-
1364 case "$host_os" in
1365 *irix6*) cat >> confdefs.h <<\EOF
1366 #include <standards.h>
1370 esac
1374 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
1375 echo "configure:1376: checking config.cache system type" >&5
1376 if { test x"${ac_cv_host_system_type+set}" = x"set" &&
1377 test x"$ac_cv_host_system_type" != x"$host"; } ||
1378 { test x"${ac_cv_build_system_type+set}" = x"set" &&
1379 test x"$ac_cv_build_system_type" != x"$build"; } ||
1380 { test x"${ac_cv_target_system_type+set}" = x"set" &&
1381 test x"$ac_cv_target_system_type" != x"$target"; }; then
1382 echo "$ac_t""different" 1>&6
1383 { echo "configure: error: "you must remove config.cache and restart configure"" 1>&2; exit 1; }
1384 else
1385 echo "$ac_t""same" 1>&6
1387 ac_cv_host_system_type="$host"
1388 ac_cv_build_system_type="$build"
1389 ac_cv_target_system_type="$target"
1392 DYNEXP=
1395 # Config CPPFLAG settings for strange OS's that must be set
1396 # before other tests.
1398 case "$host_os" in
1399 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1400 *hpux*)
1401 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1402 echo "configure:1403: checking whether ${CC-cc} accepts -Ae" >&5
1403 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1404 echo $ac_n "(cached) $ac_c" 1>&6
1405 else
1406 echo 'void f(){}' > conftest.c
1407 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1408 ac_cv_prog_cc_Ae=yes
1409 else
1410 ac_cv_prog_cc_Ae=no
1412 rm -f conftest*
1416 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1417 # mmap on HPUX is completely broken...
1418 cat >> confdefs.h <<\EOF
1419 #define MMAP_BLACKLIST 1
1422 if test $ac_cv_prog_cc_Ae = yes; then
1423 CPPFLAGS="$CPPFLAGS -Ae"
1426 # Defines needed for HPUX support.
1427 # HPUX has bigcrypt but (sometimes?) doesn't use it for
1428 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
1430 case `uname -r` in
1431 *9*|*10*)
1432 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4"
1433 cat >> confdefs.h <<\EOF
1434 #define USE_BOTH_CRYPT_CALLS 1
1437 cat >> confdefs.h <<\EOF
1438 #define _HPUX_SOURCE 1
1441 cat >> confdefs.h <<\EOF
1442 #define _POSIX_SOURCE 1
1445 cat >> confdefs.h <<\EOF
1446 #define _ALIGNMENT_REQUIRED 1
1449 cat >> confdefs.h <<\EOF
1450 #define _MAX_ALIGNMENT 4
1454 *11*)
1455 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4"
1456 cat >> confdefs.h <<\EOF
1457 #define _HPUX_SOURCE 1
1460 cat >> confdefs.h <<\EOF
1461 #define _POSIX_SOURCE 1
1464 cat >> confdefs.h <<\EOF
1465 #define _LARGEFILE64_SOURCE 1
1468 cat >> confdefs.h <<\EOF
1469 #define _ALIGNMENT_REQUIRED 1
1472 cat >> confdefs.h <<\EOF
1473 #define _MAX_ALIGNMENT 4
1476 cat >> confdefs.h <<\EOF
1477 #define USE_BOTH_CRYPT_CALLS 1
1481 esac
1482 DYNEXP="-Wl,-E"
1487 # CRAY Unicos has broken const handling
1488 *unicos*)
1489 echo "$ac_t""disabling const" 1>&6
1490 CPPFLAGS="$CPPFLAGS -Dconst="
1494 # AIX4.x doesn't even admit to having large
1495 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1497 *aix4*)
1498 echo "$ac_t""enabling large file support" 1>&6
1499 CPPFLAGS="$CPPFLAGS -D_LARGE_FILES"
1500 cat >> confdefs.h <<\EOF
1501 #define _LARGE_FILES 1
1506 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
1507 # to the existance of large files..
1508 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
1509 # recommendations on large file support, however it makes the
1510 # compile work using gcc 2.7 and 2.8, whereas using the Sun
1511 # recommendation makes the compile fail on gcc2.7. JRA.
1513 *solaris*)
1514 case `uname -r` in
1515 5.0*|5.1*|5.2*|5.3*|5.5*)
1516 echo "$ac_t""no large file support" 1>&6
1518 5.*)
1519 echo "$ac_t""enabling large file support" 1>&6
1520 if test "$ac_cv_prog_gcc" = yes; then
1521 ${CC-cc} -v >conftest.c 2>&1
1522 ac_cv_gcc_compiler_version_number=`grep 'gcc version' conftest.c`
1523 rm -fr conftest.c
1524 case "$ac_cv_gcc_compiler_version_number" in
1525 *"gcc version 2.6"*|*"gcc version 2.7"*)
1526 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
1527 cat >> confdefs.h <<\EOF
1528 #define _LARGEFILE64_SOURCE 1
1533 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1534 cat >> confdefs.h <<\EOF
1535 #define _LARGEFILE64_SOURCE 1
1538 cat >> confdefs.h <<\EOF
1539 #define _FILE_OFFSET_BITS 64
1543 esac
1544 else
1545 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1546 cat >> confdefs.h <<\EOF
1547 #define _LARGEFILE64_SOURCE 1
1550 cat >> confdefs.h <<\EOF
1551 #define _FILE_OFFSET_BITS 64
1556 esac
1559 # Tests needed for SINIX large file support.
1561 *sysv4*)
1562 if test $host = mips-sni-sysv4 ; then
1563 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1564 echo "configure:1565: checking for LFS support" >&5
1565 old_CPPFLAGS="$CPPFLAGS"
1566 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1567 if test "$cross_compiling" = yes; then
1568 SINIX_LFS_SUPPORT=cross
1569 else
1570 cat > conftest.$ac_ext <<EOF
1571 #line 1572 "configure"
1572 #include "confdefs.h"
1574 #include <unistd.h>
1575 main () {
1576 #if _LFS64_LARGEFILE == 1
1577 exit(0);
1578 #else
1579 exit(1);
1580 #endif
1583 if { (eval echo configure:1584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1584 then
1585 SINIX_LFS_SUPPORT=yes
1586 else
1587 echo "configure: failed program was:" >&5
1588 cat conftest.$ac_ext >&5
1589 rm -fr conftest*
1590 SINIX_LFS_SUPPORT=no
1592 rm -fr conftest*
1595 CPPFLAGS="$old_CPPFLAGS"
1596 if test x$SINIX_LFS_SUPPORT = xyes ; then
1597 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1598 cat >> confdefs.h <<\EOF
1599 #define _LARGEFILE64_SOURCE 1
1602 CFLAGS="`getconf LFS64_CFLAGS` $CFLAGS"
1603 LDFLAGS="`getconf LFS64_LDFLAGS` $LDFLAGS"
1604 LIBS="`getconf LFS64_LIBS` $LIBS"
1606 echo "$ac_t""$SINIX_LFS_SUPPORT" 1>&6
1610 # Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
1612 *linux*)
1613 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1614 echo "configure:1615: checking for LFS support" >&5
1615 old_CPPFLAGS="$CPPFLAGS"
1616 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1617 if test "$cross_compiling" = yes; then
1618 LINUX_LFS_SUPPORT=cross
1619 else
1620 cat > conftest.$ac_ext <<EOF
1621 #line 1622 "configure"
1622 #include "confdefs.h"
1624 #include <unistd.h>
1625 #include <sys/utsname.h>
1626 main() {
1627 #if _LFS64_LARGEFILE == 1
1628 struct utsname uts;
1629 char *release;
1630 int major, minor;
1632 /* Ensure this is glibc 2.2 or higher */
1633 #if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
1634 int libc_major = __GLIBC__;
1635 int libc_minor = __GLIBC_MINOR__;
1637 if (libc_major < 2)
1638 exit(1);
1639 if (libc_minor < 2)
1640 exit(1);
1641 #endif
1643 /* Ensure this is kernel 2.4 or higher */
1645 uname(&uts);
1646 release = uts.release;
1647 major = atoi(strsep(&release, "."));
1648 minor = atoi(strsep(&release, "."));
1650 if (major > 2 || (major == 2 && minor > 3))
1651 exit(0);
1652 exit(1);
1653 #else
1654 exit(1);
1655 #endif
1659 if { (eval echo configure:1660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1660 then
1661 LINUX_LFS_SUPPORT=yes
1662 else
1663 echo "configure: failed program was:" >&5
1664 cat conftest.$ac_ext >&5
1665 rm -fr conftest*
1666 LINUX_LFS_SUPPORT=no
1668 rm -fr conftest*
1671 CPPFLAGS="$old_CPPFLAGS"
1672 if test x$LINUX_LFS_SUPPORT = xyes ; then
1673 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1674 cat >> confdefs.h <<\EOF
1675 #define _LARGEFILE64_SOURCE 1
1678 cat >> confdefs.h <<\EOF
1679 #define _FILE_OFFSET_BITS 64
1682 cat >> confdefs.h <<\EOF
1683 #define _GNU_SOURCE 1
1687 echo "$ac_t""$LINUX_LFS_SUPPORT" 1>&6
1690 *hurd*)
1691 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1692 echo "configure:1693: checking for LFS support" >&5
1693 old_CPPFLAGS="$CPPFLAGS"
1694 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1695 if test "$cross_compiling" = yes; then
1696 GLIBC_LFS_SUPPORT=cross
1697 else
1698 cat > conftest.$ac_ext <<EOF
1699 #line 1700 "configure"
1700 #include "confdefs.h"
1702 #include <unistd.h>
1703 main () {
1704 #if _LFS64_LARGEFILE == 1
1705 exit(0);
1706 #else
1707 exit(1);
1708 #endif
1711 if { (eval echo configure:1712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1712 then
1713 GLIBC_LFS_SUPPORT=yes
1714 else
1715 echo "configure: failed program was:" >&5
1716 cat conftest.$ac_ext >&5
1717 rm -fr conftest*
1718 GLIBC_LFS_SUPPORT=no
1720 rm -fr conftest*
1723 CPPFLAGS="$old_CPPFLAGS"
1724 if test x$GLIBC_LFS_SUPPORT = xyes ; then
1725 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1726 cat >> confdefs.h <<\EOF
1727 #define _LARGEFILE64_SOURCE 1
1730 cat >> confdefs.h <<\EOF
1731 #define _GNU_SOURCE 1
1735 echo "$ac_t""$GLIBC_LFS_SUPPORT" 1>&6
1738 esac
1740 echo $ac_n "checking for inline""... $ac_c" 1>&6
1741 echo "configure:1742: checking for inline" >&5
1742 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1743 echo $ac_n "(cached) $ac_c" 1>&6
1744 else
1745 ac_cv_c_inline=no
1746 for ac_kw in inline __inline__ __inline; do
1747 cat > conftest.$ac_ext <<EOF
1748 #line 1749 "configure"
1749 #include "confdefs.h"
1751 int main() {
1752 } $ac_kw foo() {
1753 ; return 0; }
1755 if { (eval echo configure:1756: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1756 rm -rf conftest*
1757 ac_cv_c_inline=$ac_kw; break
1758 else
1759 echo "configure: failed program was:" >&5
1760 cat conftest.$ac_ext >&5
1762 rm -f conftest*
1763 done
1767 echo "$ac_t""$ac_cv_c_inline" 1>&6
1768 case "$ac_cv_c_inline" in
1769 inline | yes) ;;
1770 no) cat >> confdefs.h <<\EOF
1771 #define inline
1774 *) cat >> confdefs.h <<EOF
1775 #define inline $ac_cv_c_inline
1778 esac
1780 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1781 echo "configure:1782: checking how to run the C preprocessor" >&5
1782 # On Suns, sometimes $CPP names a directory.
1783 if test -n "$CPP" && test -d "$CPP"; then
1784 CPP=
1786 if test -z "$CPP"; then
1787 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1788 echo $ac_n "(cached) $ac_c" 1>&6
1789 else
1790 # This must be in double quotes, not single quotes, because CPP may get
1791 # substituted into the Makefile and "${CC-cc}" will confuse make.
1792 CPP="${CC-cc} -E"
1793 # On the NeXT, cc -E runs the code through the compiler's parser,
1794 # not just through cpp.
1795 cat > conftest.$ac_ext <<EOF
1796 #line 1797 "configure"
1797 #include "confdefs.h"
1798 #include <assert.h>
1799 Syntax Error
1801 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1802 { (eval echo configure:1803: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1803 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1804 if test -z "$ac_err"; then
1806 else
1807 echo "$ac_err" >&5
1808 echo "configure: failed program was:" >&5
1809 cat conftest.$ac_ext >&5
1810 rm -rf conftest*
1811 CPP="${CC-cc} -E -traditional-cpp"
1812 cat > conftest.$ac_ext <<EOF
1813 #line 1814 "configure"
1814 #include "confdefs.h"
1815 #include <assert.h>
1816 Syntax Error
1818 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1819 { (eval echo configure:1820: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1820 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1821 if test -z "$ac_err"; then
1823 else
1824 echo "$ac_err" >&5
1825 echo "configure: failed program was:" >&5
1826 cat conftest.$ac_ext >&5
1827 rm -rf conftest*
1828 CPP="${CC-cc} -nologo -E"
1829 cat > conftest.$ac_ext <<EOF
1830 #line 1831 "configure"
1831 #include "confdefs.h"
1832 #include <assert.h>
1833 Syntax Error
1835 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1836 { (eval echo configure:1837: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1837 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1838 if test -z "$ac_err"; then
1840 else
1841 echo "$ac_err" >&5
1842 echo "configure: failed program was:" >&5
1843 cat conftest.$ac_ext >&5
1844 rm -rf conftest*
1845 CPP=/lib/cpp
1847 rm -f conftest*
1849 rm -f conftest*
1851 rm -f conftest*
1852 ac_cv_prog_CPP="$CPP"
1854 CPP="$ac_cv_prog_CPP"
1855 else
1856 ac_cv_prog_CPP="$CPP"
1858 echo "$ac_t""$CPP" 1>&6
1860 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1861 echo "configure:1862: checking for ANSI C header files" >&5
1862 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1863 echo $ac_n "(cached) $ac_c" 1>&6
1864 else
1865 cat > conftest.$ac_ext <<EOF
1866 #line 1867 "configure"
1867 #include "confdefs.h"
1868 #include <stdlib.h>
1869 #include <stdarg.h>
1870 #include <string.h>
1871 #include <float.h>
1873 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1874 { (eval echo configure:1875: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1875 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1876 if test -z "$ac_err"; then
1877 rm -rf conftest*
1878 ac_cv_header_stdc=yes
1879 else
1880 echo "$ac_err" >&5
1881 echo "configure: failed program was:" >&5
1882 cat conftest.$ac_ext >&5
1883 rm -rf conftest*
1884 ac_cv_header_stdc=no
1886 rm -f conftest*
1888 if test $ac_cv_header_stdc = yes; then
1889 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1890 cat > conftest.$ac_ext <<EOF
1891 #line 1892 "configure"
1892 #include "confdefs.h"
1893 #include <string.h>
1895 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1896 egrep "memchr" >/dev/null 2>&1; then
1898 else
1899 rm -rf conftest*
1900 ac_cv_header_stdc=no
1902 rm -f conftest*
1906 if test $ac_cv_header_stdc = yes; then
1907 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1908 cat > conftest.$ac_ext <<EOF
1909 #line 1910 "configure"
1910 #include "confdefs.h"
1911 #include <stdlib.h>
1913 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1914 egrep "free" >/dev/null 2>&1; then
1916 else
1917 rm -rf conftest*
1918 ac_cv_header_stdc=no
1920 rm -f conftest*
1924 if test $ac_cv_header_stdc = yes; then
1925 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1926 if test "$cross_compiling" = yes; then
1928 else
1929 cat > conftest.$ac_ext <<EOF
1930 #line 1931 "configure"
1931 #include "confdefs.h"
1932 #include <ctype.h>
1933 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1934 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1935 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1936 int main () { int i; for (i = 0; i < 256; i++)
1937 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1938 exit (0); }
1941 if { (eval echo configure:1942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1942 then
1944 else
1945 echo "configure: failed program was:" >&5
1946 cat conftest.$ac_ext >&5
1947 rm -fr conftest*
1948 ac_cv_header_stdc=no
1950 rm -fr conftest*
1956 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1957 if test $ac_cv_header_stdc = yes; then
1958 cat >> confdefs.h <<\EOF
1959 #define STDC_HEADERS 1
1964 ac_header_dirent=no
1965 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1967 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1968 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1969 echo "configure:1970: checking for $ac_hdr that defines DIR" >&5
1970 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1971 echo $ac_n "(cached) $ac_c" 1>&6
1972 else
1973 cat > conftest.$ac_ext <<EOF
1974 #line 1975 "configure"
1975 #include "confdefs.h"
1976 #include <sys/types.h>
1977 #include <$ac_hdr>
1978 int main() {
1979 DIR *dirp = 0;
1980 ; return 0; }
1982 if { (eval echo configure:1983: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1983 rm -rf conftest*
1984 eval "ac_cv_header_dirent_$ac_safe=yes"
1985 else
1986 echo "configure: failed program was:" >&5
1987 cat conftest.$ac_ext >&5
1988 rm -rf conftest*
1989 eval "ac_cv_header_dirent_$ac_safe=no"
1991 rm -f conftest*
1993 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1994 echo "$ac_t""yes" 1>&6
1995 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1996 cat >> confdefs.h <<EOF
1997 #define $ac_tr_hdr 1
1999 ac_header_dirent=$ac_hdr; break
2000 else
2001 echo "$ac_t""no" 1>&6
2003 done
2004 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2005 if test $ac_header_dirent = dirent.h; then
2006 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2007 echo "configure:2008: checking for opendir in -ldir" >&5
2008 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2009 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2010 echo $ac_n "(cached) $ac_c" 1>&6
2011 else
2012 ac_save_LIBS="$LIBS"
2013 LIBS="-ldir $LIBS"
2014 cat > conftest.$ac_ext <<EOF
2015 #line 2016 "configure"
2016 #include "confdefs.h"
2017 /* Override any gcc2 internal prototype to avoid an error. */
2018 /* We use char because int might match the return type of a gcc2
2019 builtin and then its argument prototype would still apply. */
2020 char opendir();
2022 int main() {
2023 opendir()
2024 ; return 0; }
2026 if { (eval echo configure:2027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2027 rm -rf conftest*
2028 eval "ac_cv_lib_$ac_lib_var=yes"
2029 else
2030 echo "configure: failed program was:" >&5
2031 cat conftest.$ac_ext >&5
2032 rm -rf conftest*
2033 eval "ac_cv_lib_$ac_lib_var=no"
2035 rm -f conftest*
2036 LIBS="$ac_save_LIBS"
2039 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2040 echo "$ac_t""yes" 1>&6
2041 LIBS="$LIBS -ldir"
2042 else
2043 echo "$ac_t""no" 1>&6
2046 else
2047 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2048 echo "configure:2049: checking for opendir in -lx" >&5
2049 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2050 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2051 echo $ac_n "(cached) $ac_c" 1>&6
2052 else
2053 ac_save_LIBS="$LIBS"
2054 LIBS="-lx $LIBS"
2055 cat > conftest.$ac_ext <<EOF
2056 #line 2057 "configure"
2057 #include "confdefs.h"
2058 /* Override any gcc2 internal prototype to avoid an error. */
2059 /* We use char because int might match the return type of a gcc2
2060 builtin and then its argument prototype would still apply. */
2061 char opendir();
2063 int main() {
2064 opendir()
2065 ; return 0; }
2067 if { (eval echo configure:2068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2068 rm -rf conftest*
2069 eval "ac_cv_lib_$ac_lib_var=yes"
2070 else
2071 echo "configure: failed program was:" >&5
2072 cat conftest.$ac_ext >&5
2073 rm -rf conftest*
2074 eval "ac_cv_lib_$ac_lib_var=no"
2076 rm -f conftest*
2077 LIBS="$ac_save_LIBS"
2080 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2081 echo "$ac_t""yes" 1>&6
2082 LIBS="$LIBS -lx"
2083 else
2084 echo "$ac_t""no" 1>&6
2089 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2090 echo "configure:2091: checking whether time.h and sys/time.h may both be included" >&5
2091 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2092 echo $ac_n "(cached) $ac_c" 1>&6
2093 else
2094 cat > conftest.$ac_ext <<EOF
2095 #line 2096 "configure"
2096 #include "confdefs.h"
2097 #include <sys/types.h>
2098 #include <sys/time.h>
2099 #include <time.h>
2100 int main() {
2101 struct tm *tp;
2102 ; return 0; }
2104 if { (eval echo configure:2105: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2105 rm -rf conftest*
2106 ac_cv_header_time=yes
2107 else
2108 echo "configure: failed program was:" >&5
2109 cat conftest.$ac_ext >&5
2110 rm -rf conftest*
2111 ac_cv_header_time=no
2113 rm -f conftest*
2116 echo "$ac_t""$ac_cv_header_time" 1>&6
2117 if test $ac_cv_header_time = yes; then
2118 cat >> confdefs.h <<\EOF
2119 #define TIME_WITH_SYS_TIME 1
2124 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2125 echo "configure:2126: checking for sys/wait.h that is POSIX.1 compatible" >&5
2126 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2127 echo $ac_n "(cached) $ac_c" 1>&6
2128 else
2129 cat > conftest.$ac_ext <<EOF
2130 #line 2131 "configure"
2131 #include "confdefs.h"
2132 #include <sys/types.h>
2133 #include <sys/wait.h>
2134 #ifndef WEXITSTATUS
2135 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2136 #endif
2137 #ifndef WIFEXITED
2138 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2139 #endif
2140 int main() {
2141 int s;
2142 wait (&s);
2143 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2144 ; return 0; }
2146 if { (eval echo configure:2147: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2147 rm -rf conftest*
2148 ac_cv_header_sys_wait_h=yes
2149 else
2150 echo "configure: failed program was:" >&5
2151 cat conftest.$ac_ext >&5
2152 rm -rf conftest*
2153 ac_cv_header_sys_wait_h=no
2155 rm -f conftest*
2158 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2159 if test $ac_cv_header_sys_wait_h = yes; then
2160 cat >> confdefs.h <<\EOF
2161 #define HAVE_SYS_WAIT_H 1
2166 for ac_hdr in arpa/inet.h sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h
2168 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2169 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2170 echo "configure:2171: checking for $ac_hdr" >&5
2171 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2172 echo $ac_n "(cached) $ac_c" 1>&6
2173 else
2174 cat > conftest.$ac_ext <<EOF
2175 #line 2176 "configure"
2176 #include "confdefs.h"
2177 #include <$ac_hdr>
2179 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2180 { (eval echo configure:2181: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2181 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2182 if test -z "$ac_err"; then
2183 rm -rf conftest*
2184 eval "ac_cv_header_$ac_safe=yes"
2185 else
2186 echo "$ac_err" >&5
2187 echo "configure: failed program was:" >&5
2188 cat conftest.$ac_ext >&5
2189 rm -rf conftest*
2190 eval "ac_cv_header_$ac_safe=no"
2192 rm -f conftest*
2194 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2195 echo "$ac_t""yes" 1>&6
2196 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2197 cat >> confdefs.h <<EOF
2198 #define $ac_tr_hdr 1
2201 else
2202 echo "$ac_t""no" 1>&6
2204 done
2206 for ac_hdr in unistd.h utime.h grp.h sys/id.h limits.h memory.h net/if.h
2208 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2209 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2210 echo "configure:2211: checking for $ac_hdr" >&5
2211 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2212 echo $ac_n "(cached) $ac_c" 1>&6
2213 else
2214 cat > conftest.$ac_ext <<EOF
2215 #line 2216 "configure"
2216 #include "confdefs.h"
2217 #include <$ac_hdr>
2219 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2220 { (eval echo configure:2221: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2221 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2222 if test -z "$ac_err"; then
2223 rm -rf conftest*
2224 eval "ac_cv_header_$ac_safe=yes"
2225 else
2226 echo "$ac_err" >&5
2227 echo "configure: failed program was:" >&5
2228 cat conftest.$ac_ext >&5
2229 rm -rf conftest*
2230 eval "ac_cv_header_$ac_safe=no"
2232 rm -f conftest*
2234 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2235 echo "$ac_t""yes" 1>&6
2236 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2237 cat >> confdefs.h <<EOF
2238 #define $ac_tr_hdr 1
2241 else
2242 echo "$ac_t""no" 1>&6
2244 done
2246 for ac_hdr in compat.h rpc/rpc.h rpcsvc/nis.h rpcsvc/yp_prot.h rpcsvc/ypclnt.h
2248 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2249 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2250 echo "configure:2251: checking for $ac_hdr" >&5
2251 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2252 echo $ac_n "(cached) $ac_c" 1>&6
2253 else
2254 cat > conftest.$ac_ext <<EOF
2255 #line 2256 "configure"
2256 #include "confdefs.h"
2257 #include <$ac_hdr>
2259 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2260 { (eval echo configure:2261: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2261 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2262 if test -z "$ac_err"; then
2263 rm -rf conftest*
2264 eval "ac_cv_header_$ac_safe=yes"
2265 else
2266 echo "$ac_err" >&5
2267 echo "configure: failed program was:" >&5
2268 cat conftest.$ac_ext >&5
2269 rm -rf conftest*
2270 eval "ac_cv_header_$ac_safe=no"
2272 rm -f conftest*
2274 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2275 echo "$ac_t""yes" 1>&6
2276 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2277 cat >> confdefs.h <<EOF
2278 #define $ac_tr_hdr 1
2281 else
2282 echo "$ac_t""no" 1>&6
2284 done
2286 for ac_hdr in stdlib.h string.h strings.h syslog.h sys/file.h
2288 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2289 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2290 echo "configure:2291: checking for $ac_hdr" >&5
2291 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2292 echo $ac_n "(cached) $ac_c" 1>&6
2293 else
2294 cat > conftest.$ac_ext <<EOF
2295 #line 2296 "configure"
2296 #include "confdefs.h"
2297 #include <$ac_hdr>
2299 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2300 { (eval echo configure:2301: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2301 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2302 if test -z "$ac_err"; then
2303 rm -rf conftest*
2304 eval "ac_cv_header_$ac_safe=yes"
2305 else
2306 echo "$ac_err" >&5
2307 echo "configure: failed program was:" >&5
2308 cat conftest.$ac_ext >&5
2309 rm -rf conftest*
2310 eval "ac_cv_header_$ac_safe=no"
2312 rm -f conftest*
2314 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2315 echo "$ac_t""yes" 1>&6
2316 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2317 cat >> confdefs.h <<EOF
2318 #define $ac_tr_hdr 1
2321 else
2322 echo "$ac_t""no" 1>&6
2324 done
2326 for ac_hdr in sys/param.h ctype.h sys/wait.h sys/resource.h sys/ioctl.h sys/ipc.h sys/mode.h
2328 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2329 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2330 echo "configure:2331: checking for $ac_hdr" >&5
2331 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2332 echo $ac_n "(cached) $ac_c" 1>&6
2333 else
2334 cat > conftest.$ac_ext <<EOF
2335 #line 2336 "configure"
2336 #include "confdefs.h"
2337 #include <$ac_hdr>
2339 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2340 { (eval echo configure:2341: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2341 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2342 if test -z "$ac_err"; then
2343 rm -rf conftest*
2344 eval "ac_cv_header_$ac_safe=yes"
2345 else
2346 echo "$ac_err" >&5
2347 echo "configure: failed program was:" >&5
2348 cat conftest.$ac_ext >&5
2349 rm -rf conftest*
2350 eval "ac_cv_header_$ac_safe=no"
2352 rm -f conftest*
2354 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2355 echo "$ac_t""yes" 1>&6
2356 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2357 cat >> confdefs.h <<EOF
2358 #define $ac_tr_hdr 1
2361 else
2362 echo "$ac_t""no" 1>&6
2364 done
2366 for ac_hdr in sys/mman.h sys/filio.h sys/priv.h sys/shm.h sys/socket.h
2368 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2369 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2370 echo "configure:2371: checking for $ac_hdr" >&5
2371 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2372 echo $ac_n "(cached) $ac_c" 1>&6
2373 else
2374 cat > conftest.$ac_ext <<EOF
2375 #line 2376 "configure"
2376 #include "confdefs.h"
2377 #include <$ac_hdr>
2379 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2380 { (eval echo configure:2381: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2381 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2382 if test -z "$ac_err"; then
2383 rm -rf conftest*
2384 eval "ac_cv_header_$ac_safe=yes"
2385 else
2386 echo "$ac_err" >&5
2387 echo "configure: failed program was:" >&5
2388 cat conftest.$ac_ext >&5
2389 rm -rf conftest*
2390 eval "ac_cv_header_$ac_safe=no"
2392 rm -f conftest*
2394 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2395 echo "$ac_t""yes" 1>&6
2396 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2397 cat >> confdefs.h <<EOF
2398 #define $ac_tr_hdr 1
2401 else
2402 echo "$ac_t""no" 1>&6
2404 done
2406 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
2408 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2409 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2410 echo "configure:2411: checking for $ac_hdr" >&5
2411 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2412 echo $ac_n "(cached) $ac_c" 1>&6
2413 else
2414 cat > conftest.$ac_ext <<EOF
2415 #line 2416 "configure"
2416 #include "confdefs.h"
2417 #include <$ac_hdr>
2419 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2420 { (eval echo configure:2421: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2421 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2422 if test -z "$ac_err"; then
2423 rm -rf conftest*
2424 eval "ac_cv_header_$ac_safe=yes"
2425 else
2426 echo "$ac_err" >&5
2427 echo "configure: failed program was:" >&5
2428 cat conftest.$ac_ext >&5
2429 rm -rf conftest*
2430 eval "ac_cv_header_$ac_safe=no"
2432 rm -f conftest*
2434 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2435 echo "$ac_t""yes" 1>&6
2436 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2437 cat >> confdefs.h <<EOF
2438 #define $ac_tr_hdr 1
2441 else
2442 echo "$ac_t""no" 1>&6
2444 done
2446 for ac_hdr in sys/termio.h sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h
2448 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2449 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2450 echo "configure:2451: checking for $ac_hdr" >&5
2451 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2452 echo $ac_n "(cached) $ac_c" 1>&6
2453 else
2454 cat > conftest.$ac_ext <<EOF
2455 #line 2456 "configure"
2456 #include "confdefs.h"
2457 #include <$ac_hdr>
2459 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2460 { (eval echo configure:2461: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2461 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2462 if test -z "$ac_err"; then
2463 rm -rf conftest*
2464 eval "ac_cv_header_$ac_safe=yes"
2465 else
2466 echo "$ac_err" >&5
2467 echo "configure: failed program was:" >&5
2468 cat conftest.$ac_ext >&5
2469 rm -rf conftest*
2470 eval "ac_cv_header_$ac_safe=no"
2472 rm -f conftest*
2474 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2475 echo "$ac_t""yes" 1>&6
2476 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2477 cat >> confdefs.h <<EOF
2478 #define $ac_tr_hdr 1
2481 else
2482 echo "$ac_t""no" 1>&6
2484 done
2486 for ac_hdr in security/pam_modules.h security/_pam_macros.h dlfcn.h synch.h pthread.h nsswitch.h
2488 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2489 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2490 echo "configure:2491: checking for $ac_hdr" >&5
2491 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2492 echo $ac_n "(cached) $ac_c" 1>&6
2493 else
2494 cat > conftest.$ac_ext <<EOF
2495 #line 2496 "configure"
2496 #include "confdefs.h"
2497 #include <$ac_hdr>
2499 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2500 { (eval echo configure:2501: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2501 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2502 if test -z "$ac_err"; then
2503 rm -rf conftest*
2504 eval "ac_cv_header_$ac_safe=yes"
2505 else
2506 echo "$ac_err" >&5
2507 echo "configure: failed program was:" >&5
2508 cat conftest.$ac_ext >&5
2509 rm -rf conftest*
2510 eval "ac_cv_header_$ac_safe=no"
2512 rm -f conftest*
2514 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2515 echo "$ac_t""yes" 1>&6
2516 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2517 cat >> confdefs.h <<EOF
2518 #define $ac_tr_hdr 1
2521 else
2522 echo "$ac_t""no" 1>&6
2524 done
2528 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
2529 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
2531 case "$host_os" in
2532 *hpux*)
2533 cat > conftest.$ac_ext <<EOF
2534 #line 2535 "configure"
2535 #include "confdefs.h"
2536 #include <shadow.h>
2537 int main() {
2538 struct spwd testme
2539 ; return 0; }
2541 if { (eval echo configure:2542: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2542 rm -rf conftest*
2543 ac_cv_header_shadow_h=yes
2544 else
2545 echo "configure: failed program was:" >&5
2546 cat conftest.$ac_ext >&5
2547 rm -rf conftest*
2548 ac_cv_header_shadow_h=no
2550 rm -f conftest*
2551 if test x"$ac_cv_header_shadow_h" = x"yes"; then
2552 cat >> confdefs.h <<\EOF
2553 #define HAVE_SHADOW_H 1
2558 esac
2559 for ac_hdr in shadow.h netinet/ip.h netinet/tcp.h netinet/in_systm.h netinet/in_ip.h
2561 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2562 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2563 echo "configure:2564: checking for $ac_hdr" >&5
2564 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2565 echo $ac_n "(cached) $ac_c" 1>&6
2566 else
2567 cat > conftest.$ac_ext <<EOF
2568 #line 2569 "configure"
2569 #include "confdefs.h"
2570 #include <$ac_hdr>
2572 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2573 { (eval echo configure:2574: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2574 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2575 if test -z "$ac_err"; then
2576 rm -rf conftest*
2577 eval "ac_cv_header_$ac_safe=yes"
2578 else
2579 echo "$ac_err" >&5
2580 echo "configure: failed program was:" >&5
2581 cat conftest.$ac_ext >&5
2582 rm -rf conftest*
2583 eval "ac_cv_header_$ac_safe=no"
2585 rm -f conftest*
2587 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2588 echo "$ac_t""yes" 1>&6
2589 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2590 cat >> confdefs.h <<EOF
2591 #define $ac_tr_hdr 1
2594 else
2595 echo "$ac_t""no" 1>&6
2597 done
2599 for ac_hdr in nss.h nss_common.h ns_api.h sys/security.h security/pam_appl.h security/pam_modules.h
2601 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2602 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2603 echo "configure:2604: checking for $ac_hdr" >&5
2604 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2605 echo $ac_n "(cached) $ac_c" 1>&6
2606 else
2607 cat > conftest.$ac_ext <<EOF
2608 #line 2609 "configure"
2609 #include "confdefs.h"
2610 #include <$ac_hdr>
2612 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2613 { (eval echo configure:2614: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2614 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2615 if test -z "$ac_err"; then
2616 rm -rf conftest*
2617 eval "ac_cv_header_$ac_safe=yes"
2618 else
2619 echo "$ac_err" >&5
2620 echo "configure: failed program was:" >&5
2621 cat conftest.$ac_ext >&5
2622 rm -rf conftest*
2623 eval "ac_cv_header_$ac_safe=no"
2625 rm -f conftest*
2627 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2628 echo "$ac_t""yes" 1>&6
2629 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2630 cat >> confdefs.h <<EOF
2631 #define $ac_tr_hdr 1
2634 else
2635 echo "$ac_t""no" 1>&6
2637 done
2639 for ac_hdr in stropts.h poll.h
2641 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2642 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2643 echo "configure:2644: checking for $ac_hdr" >&5
2644 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2645 echo $ac_n "(cached) $ac_c" 1>&6
2646 else
2647 cat > conftest.$ac_ext <<EOF
2648 #line 2649 "configure"
2649 #include "confdefs.h"
2650 #include <$ac_hdr>
2652 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2653 { (eval echo configure:2654: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2654 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2655 if test -z "$ac_err"; then
2656 rm -rf conftest*
2657 eval "ac_cv_header_$ac_safe=yes"
2658 else
2659 echo "$ac_err" >&5
2660 echo "configure: failed program was:" >&5
2661 cat conftest.$ac_ext >&5
2662 rm -rf conftest*
2663 eval "ac_cv_header_$ac_safe=no"
2665 rm -f conftest*
2667 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2668 echo "$ac_t""yes" 1>&6
2669 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2670 cat >> confdefs.h <<EOF
2671 #define $ac_tr_hdr 1
2674 else
2675 echo "$ac_t""no" 1>&6
2677 done
2679 for ac_hdr in sys/capability.h syscall.h sys/syscall.h
2681 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2682 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2683 echo "configure:2684: checking for $ac_hdr" >&5
2684 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2685 echo $ac_n "(cached) $ac_c" 1>&6
2686 else
2687 cat > conftest.$ac_ext <<EOF
2688 #line 2689 "configure"
2689 #include "confdefs.h"
2690 #include <$ac_hdr>
2692 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2693 { (eval echo configure:2694: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2694 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2695 if test -z "$ac_err"; then
2696 rm -rf conftest*
2697 eval "ac_cv_header_$ac_safe=yes"
2698 else
2699 echo "$ac_err" >&5
2700 echo "configure: failed program was:" >&5
2701 cat conftest.$ac_ext >&5
2702 rm -rf conftest*
2703 eval "ac_cv_header_$ac_safe=no"
2705 rm -f conftest*
2707 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2708 echo "$ac_t""yes" 1>&6
2709 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2710 cat >> confdefs.h <<EOF
2711 #define $ac_tr_hdr 1
2714 else
2715 echo "$ac_t""no" 1>&6
2717 done
2719 for ac_hdr in sys/acl.h sys/cdefs.h glob.h
2721 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2722 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2723 echo "configure:2724: checking for $ac_hdr" >&5
2724 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2725 echo $ac_n "(cached) $ac_c" 1>&6
2726 else
2727 cat > conftest.$ac_ext <<EOF
2728 #line 2729 "configure"
2729 #include "confdefs.h"
2730 #include <$ac_hdr>
2732 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2733 { (eval echo configure:2734: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2734 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2735 if test -z "$ac_err"; then
2736 rm -rf conftest*
2737 eval "ac_cv_header_$ac_safe=yes"
2738 else
2739 echo "$ac_err" >&5
2740 echo "configure: failed program was:" >&5
2741 cat conftest.$ac_ext >&5
2742 rm -rf conftest*
2743 eval "ac_cv_header_$ac_safe=no"
2745 rm -f conftest*
2747 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2748 echo "$ac_t""yes" 1>&6
2749 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2750 cat >> confdefs.h <<EOF
2751 #define $ac_tr_hdr 1
2754 else
2755 echo "$ac_t""no" 1>&6
2757 done
2760 # For experimental utmp support (lastlog on some BSD-like systems)
2761 for ac_hdr in utmp.h utmpx.h lastlog.h
2763 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2764 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2765 echo "configure:2766: checking for $ac_hdr" >&5
2766 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2767 echo $ac_n "(cached) $ac_c" 1>&6
2768 else
2769 cat > conftest.$ac_ext <<EOF
2770 #line 2771 "configure"
2771 #include "confdefs.h"
2772 #include <$ac_hdr>
2774 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2775 { (eval echo configure:2776: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2776 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2777 if test -z "$ac_err"; then
2778 rm -rf conftest*
2779 eval "ac_cv_header_$ac_safe=yes"
2780 else
2781 echo "$ac_err" >&5
2782 echo "configure: failed program was:" >&5
2783 cat conftest.$ac_ext >&5
2784 rm -rf conftest*
2785 eval "ac_cv_header_$ac_safe=no"
2787 rm -f conftest*
2789 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2790 echo "$ac_t""yes" 1>&6
2791 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2792 cat >> confdefs.h <<EOF
2793 #define $ac_tr_hdr 1
2796 else
2797 echo "$ac_t""no" 1>&6
2799 done
2802 # For quotas on Veritas VxFS filesystems
2803 for ac_hdr in sys/fs/vx_quota.h
2805 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2806 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2807 echo "configure:2808: checking for $ac_hdr" >&5
2808 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2809 echo $ac_n "(cached) $ac_c" 1>&6
2810 else
2811 cat > conftest.$ac_ext <<EOF
2812 #line 2813 "configure"
2813 #include "confdefs.h"
2814 #include <$ac_hdr>
2816 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2817 { (eval echo configure:2818: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2818 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2819 if test -z "$ac_err"; then
2820 rm -rf conftest*
2821 eval "ac_cv_header_$ac_safe=yes"
2822 else
2823 echo "$ac_err" >&5
2824 echo "configure: failed program was:" >&5
2825 cat conftest.$ac_ext >&5
2826 rm -rf conftest*
2827 eval "ac_cv_header_$ac_safe=no"
2829 rm -f conftest*
2831 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2832 echo "$ac_t""yes" 1>&6
2833 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2834 cat >> confdefs.h <<EOF
2835 #define $ac_tr_hdr 1
2838 else
2839 echo "$ac_t""no" 1>&6
2841 done
2844 # For quotas on Linux XFS filesystems
2845 for ac_hdr in linux/xqm.h
2847 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2848 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2849 echo "configure:2850: checking for $ac_hdr" >&5
2850 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2851 echo $ac_n "(cached) $ac_c" 1>&6
2852 else
2853 cat > conftest.$ac_ext <<EOF
2854 #line 2855 "configure"
2855 #include "confdefs.h"
2856 #include <$ac_hdr>
2858 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2859 { (eval echo configure:2860: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2860 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2861 if test -z "$ac_err"; then
2862 rm -rf conftest*
2863 eval "ac_cv_header_$ac_safe=yes"
2864 else
2865 echo "$ac_err" >&5
2866 echo "configure: failed program was:" >&5
2867 cat conftest.$ac_ext >&5
2868 rm -rf conftest*
2869 eval "ac_cv_header_$ac_safe=no"
2871 rm -f conftest*
2873 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2874 echo "$ac_t""yes" 1>&6
2875 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2876 cat >> confdefs.h <<EOF
2877 #define $ac_tr_hdr 1
2880 else
2881 echo "$ac_t""no" 1>&6
2883 done
2886 echo $ac_n "checking size of int""... $ac_c" 1>&6
2887 echo "configure:2888: checking size of int" >&5
2888 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2889 echo $ac_n "(cached) $ac_c" 1>&6
2890 else
2891 if test "$cross_compiling" = yes; then
2892 ac_cv_sizeof_int=cross
2893 else
2894 cat > conftest.$ac_ext <<EOF
2895 #line 2896 "configure"
2896 #include "confdefs.h"
2897 #include <stdio.h>
2898 main()
2900 FILE *f=fopen("conftestval", "w");
2901 if (!f) exit(1);
2902 fprintf(f, "%d\n", sizeof(int));
2903 exit(0);
2906 if { (eval echo configure:2907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2907 then
2908 ac_cv_sizeof_int=`cat conftestval`
2909 else
2910 echo "configure: failed program was:" >&5
2911 cat conftest.$ac_ext >&5
2912 rm -fr conftest*
2913 ac_cv_sizeof_int=0
2915 rm -fr conftest*
2919 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2920 cat >> confdefs.h <<EOF
2921 #define SIZEOF_INT $ac_cv_sizeof_int
2925 echo $ac_n "checking size of long""... $ac_c" 1>&6
2926 echo "configure:2927: checking size of long" >&5
2927 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2928 echo $ac_n "(cached) $ac_c" 1>&6
2929 else
2930 if test "$cross_compiling" = yes; then
2931 ac_cv_sizeof_long=cross
2932 else
2933 cat > conftest.$ac_ext <<EOF
2934 #line 2935 "configure"
2935 #include "confdefs.h"
2936 #include <stdio.h>
2937 main()
2939 FILE *f=fopen("conftestval", "w");
2940 if (!f) exit(1);
2941 fprintf(f, "%d\n", sizeof(long));
2942 exit(0);
2945 if { (eval echo configure:2946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2946 then
2947 ac_cv_sizeof_long=`cat conftestval`
2948 else
2949 echo "configure: failed program was:" >&5
2950 cat conftest.$ac_ext >&5
2951 rm -fr conftest*
2952 ac_cv_sizeof_long=0
2954 rm -fr conftest*
2958 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2959 cat >> confdefs.h <<EOF
2960 #define SIZEOF_LONG $ac_cv_sizeof_long
2964 echo $ac_n "checking size of short""... $ac_c" 1>&6
2965 echo "configure:2966: checking size of short" >&5
2966 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2967 echo $ac_n "(cached) $ac_c" 1>&6
2968 else
2969 if test "$cross_compiling" = yes; then
2970 ac_cv_sizeof_short=cross
2971 else
2972 cat > conftest.$ac_ext <<EOF
2973 #line 2974 "configure"
2974 #include "confdefs.h"
2975 #include <stdio.h>
2976 main()
2978 FILE *f=fopen("conftestval", "w");
2979 if (!f) exit(1);
2980 fprintf(f, "%d\n", sizeof(short));
2981 exit(0);
2984 if { (eval echo configure:2985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2985 then
2986 ac_cv_sizeof_short=`cat conftestval`
2987 else
2988 echo "configure: failed program was:" >&5
2989 cat conftest.$ac_ext >&5
2990 rm -fr conftest*
2991 ac_cv_sizeof_short=0
2993 rm -fr conftest*
2997 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2998 cat >> confdefs.h <<EOF
2999 #define SIZEOF_SHORT $ac_cv_sizeof_short
3004 echo $ac_n "checking for working const""... $ac_c" 1>&6
3005 echo "configure:3006: checking for working const" >&5
3006 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3007 echo $ac_n "(cached) $ac_c" 1>&6
3008 else
3009 cat > conftest.$ac_ext <<EOF
3010 #line 3011 "configure"
3011 #include "confdefs.h"
3013 int main() {
3015 /* Ultrix mips cc rejects this. */
3016 typedef int charset[2]; const charset x;
3017 /* SunOS 4.1.1 cc rejects this. */
3018 char const *const *ccp;
3019 char **p;
3020 /* NEC SVR4.0.2 mips cc rejects this. */
3021 struct point {int x, y;};
3022 static struct point const zero = {0,0};
3023 /* AIX XL C 1.02.0.0 rejects this.
3024 It does not let you subtract one const X* pointer from another in an arm
3025 of an if-expression whose if-part is not a constant expression */
3026 const char *g = "string";
3027 ccp = &g + (g ? g-g : 0);
3028 /* HPUX 7.0 cc rejects these. */
3029 ++ccp;
3030 p = (char**) ccp;
3031 ccp = (char const *const *) p;
3032 { /* SCO 3.2v4 cc rejects this. */
3033 char *t;
3034 char const *s = 0 ? (char *) 0 : (char const *) 0;
3036 *t++ = 0;
3038 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3039 int x[] = {25, 17};
3040 const int *foo = &x[0];
3041 ++foo;
3043 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3044 typedef const int *iptr;
3045 iptr p = 0;
3046 ++p;
3048 { /* AIX XL C 1.02.0.0 rejects this saying
3049 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3050 struct s { int j; const int *ap[3]; };
3051 struct s *b; b->j = 5;
3053 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3054 const int foo = 10;
3057 ; return 0; }
3059 if { (eval echo configure:3060: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3060 rm -rf conftest*
3061 ac_cv_c_const=yes
3062 else
3063 echo "configure: failed program was:" >&5
3064 cat conftest.$ac_ext >&5
3065 rm -rf conftest*
3066 ac_cv_c_const=no
3068 rm -f conftest*
3071 echo "$ac_t""$ac_cv_c_const" 1>&6
3072 if test $ac_cv_c_const = no; then
3073 cat >> confdefs.h <<\EOF
3074 #define const
3079 echo $ac_n "checking for inline""... $ac_c" 1>&6
3080 echo "configure:3081: checking for inline" >&5
3081 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3082 echo $ac_n "(cached) $ac_c" 1>&6
3083 else
3084 ac_cv_c_inline=no
3085 for ac_kw in inline __inline__ __inline; do
3086 cat > conftest.$ac_ext <<EOF
3087 #line 3088 "configure"
3088 #include "confdefs.h"
3090 int main() {
3091 } $ac_kw foo() {
3092 ; return 0; }
3094 if { (eval echo configure:3095: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3095 rm -rf conftest*
3096 ac_cv_c_inline=$ac_kw; break
3097 else
3098 echo "configure: failed program was:" >&5
3099 cat conftest.$ac_ext >&5
3101 rm -f conftest*
3102 done
3106 echo "$ac_t""$ac_cv_c_inline" 1>&6
3107 case "$ac_cv_c_inline" in
3108 inline | yes) ;;
3109 no) cat >> confdefs.h <<\EOF
3110 #define inline
3113 *) cat >> confdefs.h <<EOF
3114 #define inline $ac_cv_c_inline
3117 esac
3119 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3120 echo "configure:3121: checking whether byte ordering is bigendian" >&5
3121 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3122 echo $ac_n "(cached) $ac_c" 1>&6
3123 else
3124 ac_cv_c_bigendian=unknown
3125 # See if sys/param.h defines the BYTE_ORDER macro.
3126 cat > conftest.$ac_ext <<EOF
3127 #line 3128 "configure"
3128 #include "confdefs.h"
3129 #include <sys/types.h>
3130 #include <sys/param.h>
3131 int main() {
3133 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3134 bogus endian macros
3135 #endif
3136 ; return 0; }
3138 if { (eval echo configure:3139: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3139 rm -rf conftest*
3140 # It does; now see whether it defined to BIG_ENDIAN or not.
3141 cat > conftest.$ac_ext <<EOF
3142 #line 3143 "configure"
3143 #include "confdefs.h"
3144 #include <sys/types.h>
3145 #include <sys/param.h>
3146 int main() {
3148 #if BYTE_ORDER != BIG_ENDIAN
3149 not big endian
3150 #endif
3151 ; return 0; }
3153 if { (eval echo configure:3154: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3154 rm -rf conftest*
3155 ac_cv_c_bigendian=yes
3156 else
3157 echo "configure: failed program was:" >&5
3158 cat conftest.$ac_ext >&5
3159 rm -rf conftest*
3160 ac_cv_c_bigendian=no
3162 rm -f conftest*
3163 else
3164 echo "configure: failed program was:" >&5
3165 cat conftest.$ac_ext >&5
3167 rm -f conftest*
3168 if test $ac_cv_c_bigendian = unknown; then
3169 if test "$cross_compiling" = yes; then
3170 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3171 else
3172 cat > conftest.$ac_ext <<EOF
3173 #line 3174 "configure"
3174 #include "confdefs.h"
3175 main () {
3176 /* Are we little or big endian? From Harbison&Steele. */
3177 union
3179 long l;
3180 char c[sizeof (long)];
3181 } u;
3182 u.l = 1;
3183 exit (u.c[sizeof (long) - 1] == 1);
3186 if { (eval echo configure:3187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3187 then
3188 ac_cv_c_bigendian=no
3189 else
3190 echo "configure: failed program was:" >&5
3191 cat conftest.$ac_ext >&5
3192 rm -fr conftest*
3193 ac_cv_c_bigendian=yes
3195 rm -fr conftest*
3201 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3202 if test $ac_cv_c_bigendian = yes; then
3203 cat >> confdefs.h <<\EOF
3204 #define WORDS_BIGENDIAN 1
3209 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
3210 echo "configure:3211: checking whether char is unsigned" >&5
3211 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
3212 echo $ac_n "(cached) $ac_c" 1>&6
3213 else
3214 if test "$GCC" = yes; then
3215 # GCC predefines this symbol on systems where it applies.
3216 cat > conftest.$ac_ext <<EOF
3217 #line 3218 "configure"
3218 #include "confdefs.h"
3219 #ifdef __CHAR_UNSIGNED__
3221 #endif
3224 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3225 egrep "yes" >/dev/null 2>&1; then
3226 rm -rf conftest*
3227 ac_cv_c_char_unsigned=yes
3228 else
3229 rm -rf conftest*
3230 ac_cv_c_char_unsigned=no
3232 rm -f conftest*
3234 else
3235 if test "$cross_compiling" = yes; then
3236 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3237 else
3238 cat > conftest.$ac_ext <<EOF
3239 #line 3240 "configure"
3240 #include "confdefs.h"
3241 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
3242 #if !defined(__STDC__) || __STDC__ != 1
3243 #define volatile
3244 #endif
3245 main() {
3246 volatile char c = 255; exit(c < 0);
3249 if { (eval echo configure:3250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3250 then
3251 ac_cv_c_char_unsigned=yes
3252 else
3253 echo "configure: failed program was:" >&5
3254 cat conftest.$ac_ext >&5
3255 rm -fr conftest*
3256 ac_cv_c_char_unsigned=no
3258 rm -fr conftest*
3264 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
3265 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
3266 cat >> confdefs.h <<\EOF
3267 #define __CHAR_UNSIGNED__ 1
3273 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3274 echo "configure:3275: checking return type of signal handlers" >&5
3275 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3276 echo $ac_n "(cached) $ac_c" 1>&6
3277 else
3278 cat > conftest.$ac_ext <<EOF
3279 #line 3280 "configure"
3280 #include "confdefs.h"
3281 #include <sys/types.h>
3282 #include <signal.h>
3283 #ifdef signal
3284 #undef signal
3285 #endif
3286 #ifdef __cplusplus
3287 extern "C" void (*signal (int, void (*)(int)))(int);
3288 #else
3289 void (*signal ()) ();
3290 #endif
3292 int main() {
3293 int i;
3294 ; return 0; }
3296 if { (eval echo configure:3297: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3297 rm -rf conftest*
3298 ac_cv_type_signal=void
3299 else
3300 echo "configure: failed program was:" >&5
3301 cat conftest.$ac_ext >&5
3302 rm -rf conftest*
3303 ac_cv_type_signal=int
3305 rm -f conftest*
3308 echo "$ac_t""$ac_cv_type_signal" 1>&6
3309 cat >> confdefs.h <<EOF
3310 #define RETSIGTYPE $ac_cv_type_signal
3314 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3315 echo "configure:3316: checking for uid_t in sys/types.h" >&5
3316 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3317 echo $ac_n "(cached) $ac_c" 1>&6
3318 else
3319 cat > conftest.$ac_ext <<EOF
3320 #line 3321 "configure"
3321 #include "confdefs.h"
3322 #include <sys/types.h>
3324 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3325 egrep "uid_t" >/dev/null 2>&1; then
3326 rm -rf conftest*
3327 ac_cv_type_uid_t=yes
3328 else
3329 rm -rf conftest*
3330 ac_cv_type_uid_t=no
3332 rm -f conftest*
3336 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3337 if test $ac_cv_type_uid_t = no; then
3338 cat >> confdefs.h <<\EOF
3339 #define uid_t int
3342 cat >> confdefs.h <<\EOF
3343 #define gid_t int
3348 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3349 echo "configure:3350: checking for mode_t" >&5
3350 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3351 echo $ac_n "(cached) $ac_c" 1>&6
3352 else
3353 cat > conftest.$ac_ext <<EOF
3354 #line 3355 "configure"
3355 #include "confdefs.h"
3356 #include <sys/types.h>
3357 #if STDC_HEADERS
3358 #include <stdlib.h>
3359 #include <stddef.h>
3360 #endif
3362 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3363 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3364 rm -rf conftest*
3365 ac_cv_type_mode_t=yes
3366 else
3367 rm -rf conftest*
3368 ac_cv_type_mode_t=no
3370 rm -f conftest*
3373 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3374 if test $ac_cv_type_mode_t = no; then
3375 cat >> confdefs.h <<\EOF
3376 #define mode_t int
3381 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3382 echo "configure:3383: checking for off_t" >&5
3383 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3384 echo $ac_n "(cached) $ac_c" 1>&6
3385 else
3386 cat > conftest.$ac_ext <<EOF
3387 #line 3388 "configure"
3388 #include "confdefs.h"
3389 #include <sys/types.h>
3390 #if STDC_HEADERS
3391 #include <stdlib.h>
3392 #include <stddef.h>
3393 #endif
3395 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3396 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3397 rm -rf conftest*
3398 ac_cv_type_off_t=yes
3399 else
3400 rm -rf conftest*
3401 ac_cv_type_off_t=no
3403 rm -f conftest*
3406 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3407 if test $ac_cv_type_off_t = no; then
3408 cat >> confdefs.h <<\EOF
3409 #define off_t long
3414 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3415 echo "configure:3416: checking for size_t" >&5
3416 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3417 echo $ac_n "(cached) $ac_c" 1>&6
3418 else
3419 cat > conftest.$ac_ext <<EOF
3420 #line 3421 "configure"
3421 #include "confdefs.h"
3422 #include <sys/types.h>
3423 #if STDC_HEADERS
3424 #include <stdlib.h>
3425 #include <stddef.h>
3426 #endif
3428 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3429 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3430 rm -rf conftest*
3431 ac_cv_type_size_t=yes
3432 else
3433 rm -rf conftest*
3434 ac_cv_type_size_t=no
3436 rm -f conftest*
3439 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3440 if test $ac_cv_type_size_t = no; then
3441 cat >> confdefs.h <<\EOF
3442 #define size_t unsigned
3447 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3448 echo "configure:3449: checking for pid_t" >&5
3449 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3450 echo $ac_n "(cached) $ac_c" 1>&6
3451 else
3452 cat > conftest.$ac_ext <<EOF
3453 #line 3454 "configure"
3454 #include "confdefs.h"
3455 #include <sys/types.h>
3456 #if STDC_HEADERS
3457 #include <stdlib.h>
3458 #include <stddef.h>
3459 #endif
3461 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3462 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3463 rm -rf conftest*
3464 ac_cv_type_pid_t=yes
3465 else
3466 rm -rf conftest*
3467 ac_cv_type_pid_t=no
3469 rm -f conftest*
3472 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3473 if test $ac_cv_type_pid_t = no; then
3474 cat >> confdefs.h <<\EOF
3475 #define pid_t int
3480 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3481 echo "configure:3482: checking for st_rdev in struct stat" >&5
3482 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3483 echo $ac_n "(cached) $ac_c" 1>&6
3484 else
3485 cat > conftest.$ac_ext <<EOF
3486 #line 3487 "configure"
3487 #include "confdefs.h"
3488 #include <sys/types.h>
3489 #include <sys/stat.h>
3490 int main() {
3491 struct stat s; s.st_rdev;
3492 ; return 0; }
3494 if { (eval echo configure:3495: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3495 rm -rf conftest*
3496 ac_cv_struct_st_rdev=yes
3497 else
3498 echo "configure: failed program was:" >&5
3499 cat conftest.$ac_ext >&5
3500 rm -rf conftest*
3501 ac_cv_struct_st_rdev=no
3503 rm -f conftest*
3506 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3507 if test $ac_cv_struct_st_rdev = yes; then
3508 cat >> confdefs.h <<\EOF
3509 #define HAVE_ST_RDEV 1
3514 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
3515 echo "configure:3516: checking for d_off in dirent" >&5
3516 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
3517 echo $ac_n "(cached) $ac_c" 1>&6
3518 else
3519 cat > conftest.$ac_ext <<EOF
3520 #line 3521 "configure"
3521 #include "confdefs.h"
3523 #include <unistd.h>
3524 #include <sys/types.h>
3525 #include <dirent.h>
3526 int main() {
3527 struct dirent d; d.d_off;
3528 ; return 0; }
3530 if { (eval echo configure:3531: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3531 rm -rf conftest*
3532 ac_cv_dirent_d_off=yes
3533 else
3534 echo "configure: failed program was:" >&5
3535 cat conftest.$ac_ext >&5
3536 rm -rf conftest*
3537 ac_cv_dirent_d_off=no
3539 rm -f conftest*
3542 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
3543 if test $ac_cv_dirent_d_off = yes; then
3544 cat >> confdefs.h <<\EOF
3545 #define HAVE_DIRENT_D_OFF 1
3550 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
3551 echo "configure:3552: checking for ino_t" >&5
3552 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
3553 echo $ac_n "(cached) $ac_c" 1>&6
3554 else
3555 cat > conftest.$ac_ext <<EOF
3556 #line 3557 "configure"
3557 #include "confdefs.h"
3558 #include <sys/types.h>
3559 #if STDC_HEADERS
3560 #include <stdlib.h>
3561 #include <stddef.h>
3562 #endif
3564 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3565 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3566 rm -rf conftest*
3567 ac_cv_type_ino_t=yes
3568 else
3569 rm -rf conftest*
3570 ac_cv_type_ino_t=no
3572 rm -f conftest*
3575 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
3576 if test $ac_cv_type_ino_t = no; then
3577 cat >> confdefs.h <<\EOF
3578 #define ino_t unsigned
3583 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3584 echo "configure:3585: checking for loff_t" >&5
3585 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
3586 echo $ac_n "(cached) $ac_c" 1>&6
3587 else
3588 cat > conftest.$ac_ext <<EOF
3589 #line 3590 "configure"
3590 #include "confdefs.h"
3591 #include <sys/types.h>
3592 #if STDC_HEADERS
3593 #include <stdlib.h>
3594 #include <stddef.h>
3595 #endif
3597 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3598 egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3599 rm -rf conftest*
3600 ac_cv_type_loff_t=yes
3601 else
3602 rm -rf conftest*
3603 ac_cv_type_loff_t=no
3605 rm -f conftest*
3608 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
3609 if test $ac_cv_type_loff_t = no; then
3610 cat >> confdefs.h <<\EOF
3611 #define loff_t off_t
3616 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
3617 echo "configure:3618: checking for offset_t" >&5
3618 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
3619 echo $ac_n "(cached) $ac_c" 1>&6
3620 else
3621 cat > conftest.$ac_ext <<EOF
3622 #line 3623 "configure"
3623 #include "confdefs.h"
3624 #include <sys/types.h>
3625 #if STDC_HEADERS
3626 #include <stdlib.h>
3627 #include <stddef.h>
3628 #endif
3630 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3631 egrep "(^|[^a-zA-Z_0-9])offset_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3632 rm -rf conftest*
3633 ac_cv_type_offset_t=yes
3634 else
3635 rm -rf conftest*
3636 ac_cv_type_offset_t=no
3638 rm -f conftest*
3641 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
3642 if test $ac_cv_type_offset_t = no; then
3643 cat >> confdefs.h <<\EOF
3644 #define offset_t loff_t
3649 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3650 echo "configure:3651: checking for ssize_t" >&5
3651 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3652 echo $ac_n "(cached) $ac_c" 1>&6
3653 else
3654 cat > conftest.$ac_ext <<EOF
3655 #line 3656 "configure"
3656 #include "confdefs.h"
3657 #include <sys/types.h>
3658 #if STDC_HEADERS
3659 #include <stdlib.h>
3660 #include <stddef.h>
3661 #endif
3663 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3664 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3665 rm -rf conftest*
3666 ac_cv_type_ssize_t=yes
3667 else
3668 rm -rf conftest*
3669 ac_cv_type_ssize_t=no
3671 rm -f conftest*
3674 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3675 if test $ac_cv_type_ssize_t = no; then
3676 cat >> confdefs.h <<\EOF
3677 #define ssize_t int
3682 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
3683 echo "configure:3684: checking for wchar_t" >&5
3684 if eval "test \"`echo '$''{'ac_cv_type_wchar_t'+set}'`\" = set"; then
3685 echo $ac_n "(cached) $ac_c" 1>&6
3686 else
3687 cat > conftest.$ac_ext <<EOF
3688 #line 3689 "configure"
3689 #include "confdefs.h"
3690 #include <sys/types.h>
3691 #if STDC_HEADERS
3692 #include <stdlib.h>
3693 #include <stddef.h>
3694 #endif
3696 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3697 egrep "(^|[^a-zA-Z_0-9])wchar_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3698 rm -rf conftest*
3699 ac_cv_type_wchar_t=yes
3700 else
3701 rm -rf conftest*
3702 ac_cv_type_wchar_t=no
3704 rm -f conftest*
3707 echo "$ac_t""$ac_cv_type_wchar_t" 1>&6
3708 if test $ac_cv_type_wchar_t = no; then
3709 cat >> confdefs.h <<\EOF
3710 #define wchar_t unsigned short
3716 ############################################
3717 # for cups support we need libcups, and a handful of header files
3719 # Check whether --enable-cups or --disable-cups was given.
3720 if test "${enable_cups+set}" = set; then
3721 enableval="$enable_cups"
3726 if test x$enable_cups != xno; then
3727 # Extract the first word of "cups-config", so it can be a program name with args.
3728 set dummy cups-config; ac_word=$2
3729 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3730 echo "configure:3731: checking for $ac_word" >&5
3731 if eval "test \"`echo '$''{'ac_cv_path_CUPS_CONFIG'+set}'`\" = set"; then
3732 echo $ac_n "(cached) $ac_c" 1>&6
3733 else
3734 case "$CUPS_CONFIG" in
3736 ac_cv_path_CUPS_CONFIG="$CUPS_CONFIG" # Let the user override the test with a path.
3738 ?:/*)
3739 ac_cv_path_CUPS_CONFIG="$CUPS_CONFIG" # Let the user override the test with a dos path.
3742 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3743 ac_dummy="$PATH"
3744 for ac_dir in $ac_dummy; do
3745 test -z "$ac_dir" && ac_dir=.
3746 if test -f $ac_dir/$ac_word; then
3747 ac_cv_path_CUPS_CONFIG="$ac_dir/$ac_word"
3748 break
3750 done
3751 IFS="$ac_save_ifs"
3753 esac
3755 CUPS_CONFIG="$ac_cv_path_CUPS_CONFIG"
3756 if test -n "$CUPS_CONFIG"; then
3757 echo "$ac_t""$CUPS_CONFIG" 1>&6
3758 else
3759 echo "$ac_t""no" 1>&6
3763 if test "x$CUPS_CONFIG" != x; then
3764 cat >> confdefs.h <<\EOF
3765 #define HAVE_CUPS 1
3768 CFLAGS="$CFLAGS `$CUPS_CONFIG --cflags`"
3769 LDFLAGS="$LDFLAGS `$CUPS_CONFIG --ldflags`"
3770 LIBS="$LIBS `$CUPS_CONFIG --libs`"
3774 ############################################
3775 # we need dlopen/dlclose/dlsym/dlerror for PAM, the password database plugins and the new VFS code
3776 for ac_func in dlopen
3778 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3779 echo "configure:3780: checking for $ac_func" >&5
3780 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3781 echo $ac_n "(cached) $ac_c" 1>&6
3782 else
3783 cat > conftest.$ac_ext <<EOF
3784 #line 3785 "configure"
3785 #include "confdefs.h"
3786 /* System header to define __stub macros and hopefully few prototypes,
3787 which can conflict with char $ac_func(); below. */
3788 #include <assert.h>
3789 /* Override any gcc2 internal prototype to avoid an error. */
3790 /* We use char because int might match the return type of a gcc2
3791 builtin and then its argument prototype would still apply. */
3792 char $ac_func();
3794 int main() {
3796 /* The GNU C library defines this for functions which it implements
3797 to always fail with ENOSYS. Some functions are actually named
3798 something starting with __ and the normal name is an alias. */
3799 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3800 choke me
3801 #else
3802 $ac_func();
3803 #endif
3805 ; return 0; }
3807 if { (eval echo configure:3808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3808 rm -rf conftest*
3809 eval "ac_cv_func_$ac_func=yes"
3810 else
3811 echo "configure: failed program was:" >&5
3812 cat conftest.$ac_ext >&5
3813 rm -rf conftest*
3814 eval "ac_cv_func_$ac_func=no"
3816 rm -f conftest*
3819 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3820 echo "$ac_t""yes" 1>&6
3821 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3822 cat >> confdefs.h <<EOF
3823 #define $ac_tr_func 1
3826 else
3827 echo "$ac_t""no" 1>&6
3829 done
3831 if test x"$ac_cv_func_dlopen" = x"no"; then
3832 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3833 echo "configure:3834: checking for dlopen in -ldl" >&5
3834 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3835 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3836 echo $ac_n "(cached) $ac_c" 1>&6
3837 else
3838 ac_save_LIBS="$LIBS"
3839 LIBS="-ldl $LIBS"
3840 cat > conftest.$ac_ext <<EOF
3841 #line 3842 "configure"
3842 #include "confdefs.h"
3843 /* Override any gcc2 internal prototype to avoid an error. */
3844 /* We use char because int might match the return type of a gcc2
3845 builtin and then its argument prototype would still apply. */
3846 char dlopen();
3848 int main() {
3849 dlopen()
3850 ; return 0; }
3852 if { (eval echo configure:3853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3853 rm -rf conftest*
3854 eval "ac_cv_lib_$ac_lib_var=yes"
3855 else
3856 echo "configure: failed program was:" >&5
3857 cat conftest.$ac_ext >&5
3858 rm -rf conftest*
3859 eval "ac_cv_lib_$ac_lib_var=no"
3861 rm -f conftest*
3862 LIBS="$ac_save_LIBS"
3865 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3866 echo "$ac_t""yes" 1>&6
3867 LIBS="$LIBS -ldl";
3868 cat >> confdefs.h <<\EOF
3869 #define HAVE_DLOPEN 1
3872 else
3873 echo "$ac_t""no" 1>&6
3877 # dlopen/dlclose/dlsym/dlerror will be checked again later and defines will be set then
3879 ############################################
3880 # check if the compiler can do immediate structures
3881 echo $ac_n "checking for immediate structures""... $ac_c" 1>&6
3882 echo "configure:3883: checking for immediate structures" >&5
3883 if eval "test \"`echo '$''{'samba_cv_immediate_structures'+set}'`\" = set"; then
3884 echo $ac_n "(cached) $ac_c" 1>&6
3885 else
3887 cat > conftest.$ac_ext <<EOF
3888 #line 3889 "configure"
3889 #include "confdefs.h"
3891 #include <stdio.h>
3892 int main() {
3894 typedef struct {unsigned x;} FOOBAR;
3895 #define X_FOOBAR(x) ((FOOBAR) { x })
3896 #define FOO_ONE X_FOOBAR(1)
3897 FOOBAR f = FOO_ONE;
3898 static struct {
3899 FOOBAR y;
3900 } f2[] = {
3901 {FOO_ONE}
3904 ; return 0; }
3906 if { (eval echo configure:3907: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3907 rm -rf conftest*
3908 samba_cv_immediate_structures=yes
3909 else
3910 echo "configure: failed program was:" >&5
3911 cat conftest.$ac_ext >&5
3912 rm -rf conftest*
3913 samba_cv_immediate_structures=no
3915 rm -f conftest*
3918 echo "$ac_t""$samba_cv_immediate_structures" 1>&6
3919 if test x"$samba_cv_immediate_structures" = x"yes"; then
3920 cat >> confdefs.h <<\EOF
3921 #define HAVE_IMMEDIATE_STRUCTURES 1
3926 ############################################
3927 # check for unix domain sockets
3928 echo $ac_n "checking for unix domain sockets""... $ac_c" 1>&6
3929 echo "configure:3930: checking for unix domain sockets" >&5
3930 if eval "test \"`echo '$''{'samba_cv_unixsocket'+set}'`\" = set"; then
3931 echo $ac_n "(cached) $ac_c" 1>&6
3932 else
3934 cat > conftest.$ac_ext <<EOF
3935 #line 3936 "configure"
3936 #include "confdefs.h"
3938 #include <sys/types.h>
3939 #include <stdlib.h>
3940 #include <stddef.h>
3941 #include <sys/socket.h>
3942 #include <sys/un.h>
3943 int main() {
3945 struct sockaddr_un sunaddr;
3946 sunaddr.sun_family = AF_UNIX;
3948 ; return 0; }
3950 if { (eval echo configure:3951: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3951 rm -rf conftest*
3952 samba_cv_unixsocket=yes
3953 else
3954 echo "configure: failed program was:" >&5
3955 cat conftest.$ac_ext >&5
3956 rm -rf conftest*
3957 samba_cv_unixsocket=no
3959 rm -f conftest*
3962 echo "$ac_t""$samba_cv_unixsocket" 1>&6
3963 if test x"$samba_cv_unixsocket" = x"yes"; then
3964 cat >> confdefs.h <<\EOF
3965 #define HAVE_UNIXSOCKET 1
3970 echo $ac_n "checking for socklen_t type""... $ac_c" 1>&6
3971 echo "configure:3972: checking for socklen_t type" >&5
3972 if eval "test \"`echo '$''{'samba_cv_socklen_t'+set}'`\" = set"; then
3973 echo $ac_n "(cached) $ac_c" 1>&6
3974 else
3976 cat > conftest.$ac_ext <<EOF
3977 #line 3978 "configure"
3978 #include "confdefs.h"
3980 #include <sys/types.h>
3981 #if STDC_HEADERS
3982 #include <stdlib.h>
3983 #include <stddef.h>
3984 #endif
3985 #include <sys/socket.h>
3986 int main() {
3987 socklen_t i = 0
3988 ; return 0; }
3990 if { (eval echo configure:3991: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3991 rm -rf conftest*
3992 samba_cv_socklen_t=yes
3993 else
3994 echo "configure: failed program was:" >&5
3995 cat conftest.$ac_ext >&5
3996 rm -rf conftest*
3997 samba_cv_socklen_t=no
3999 rm -f conftest*
4002 echo "$ac_t""$samba_cv_socklen_t" 1>&6
4003 if test x"$samba_cv_socklen_t" = x"yes"; then
4004 cat >> confdefs.h <<\EOF
4005 #define HAVE_SOCKLEN_T_TYPE 1
4010 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
4011 echo "configure:4012: checking for sig_atomic_t type" >&5
4012 if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+set}'`\" = set"; then
4013 echo $ac_n "(cached) $ac_c" 1>&6
4014 else
4016 cat > conftest.$ac_ext <<EOF
4017 #line 4018 "configure"
4018 #include "confdefs.h"
4020 #include <sys/types.h>
4021 #if STDC_HEADERS
4022 #include <stdlib.h>
4023 #include <stddef.h>
4024 #endif
4025 #include <signal.h>
4026 int main() {
4027 sig_atomic_t i = 0
4028 ; return 0; }
4030 if { (eval echo configure:4031: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4031 rm -rf conftest*
4032 samba_cv_sig_atomic_t=yes
4033 else
4034 echo "configure: failed program was:" >&5
4035 cat conftest.$ac_ext >&5
4036 rm -rf conftest*
4037 samba_cv_sig_atomic_t=no
4039 rm -f conftest*
4042 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
4043 if test x"$samba_cv_sig_atomic_t" = x"yes"; then
4044 cat >> confdefs.h <<\EOF
4045 #define HAVE_SIG_ATOMIC_T_TYPE 1
4050 # stupid headers have the functions but no declaration. grrrr.
4052 echo $ac_n "checking for errno declaration""... $ac_c" 1>&6
4053 echo "configure:4054: checking for errno declaration" >&5
4054 if eval "test \"`echo '$''{'ac_cv_have_errno_decl'+set}'`\" = set"; then
4055 echo $ac_n "(cached) $ac_c" 1>&6
4056 else
4058 cat > conftest.$ac_ext <<EOF
4059 #line 4060 "configure"
4060 #include "confdefs.h"
4061 #include <errno.h>
4062 int main() {
4063 int i = (int)errno
4064 ; return 0; }
4066 if { (eval echo configure:4067: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4067 rm -rf conftest*
4068 ac_cv_have_errno_decl=yes
4069 else
4070 echo "configure: failed program was:" >&5
4071 cat conftest.$ac_ext >&5
4072 rm -rf conftest*
4073 ac_cv_have_errno_decl=no
4075 rm -f conftest*
4078 echo "$ac_t""$ac_cv_have_errno_decl" 1>&6
4079 if test x"$ac_cv_have_errno_decl" = x"yes"; then
4080 cat >> confdefs.h <<\EOF
4081 #define HAVE_ERRNO_DECL 1
4087 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
4088 echo "configure:4089: checking for setresuid declaration" >&5
4089 if eval "test \"`echo '$''{'ac_cv_have_setresuid_decl'+set}'`\" = set"; then
4090 echo $ac_n "(cached) $ac_c" 1>&6
4091 else
4093 cat > conftest.$ac_ext <<EOF
4094 #line 4095 "configure"
4095 #include "confdefs.h"
4096 #include <unistd.h>
4097 int main() {
4098 int i = (int)setresuid
4099 ; return 0; }
4101 if { (eval echo configure:4102: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4102 rm -rf conftest*
4103 ac_cv_have_setresuid_decl=yes
4104 else
4105 echo "configure: failed program was:" >&5
4106 cat conftest.$ac_ext >&5
4107 rm -rf conftest*
4108 ac_cv_have_setresuid_decl=no
4110 rm -f conftest*
4113 echo "$ac_t""$ac_cv_have_setresuid_decl" 1>&6
4114 if test x"$ac_cv_have_setresuid_decl" = x"yes"; then
4115 cat >> confdefs.h <<\EOF
4116 #define HAVE_SETRESUID_DECL 1
4122 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
4123 echo "configure:4124: checking for setresgid declaration" >&5
4124 if eval "test \"`echo '$''{'ac_cv_have_setresgid_decl'+set}'`\" = set"; then
4125 echo $ac_n "(cached) $ac_c" 1>&6
4126 else
4128 cat > conftest.$ac_ext <<EOF
4129 #line 4130 "configure"
4130 #include "confdefs.h"
4131 #include <unistd.h>
4132 int main() {
4133 int i = (int)setresgid
4134 ; return 0; }
4136 if { (eval echo configure:4137: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4137 rm -rf conftest*
4138 ac_cv_have_setresgid_decl=yes
4139 else
4140 echo "configure: failed program was:" >&5
4141 cat conftest.$ac_ext >&5
4142 rm -rf conftest*
4143 ac_cv_have_setresgid_decl=no
4145 rm -f conftest*
4148 echo "$ac_t""$ac_cv_have_setresgid_decl" 1>&6
4149 if test x"$ac_cv_have_setresgid_decl" = x"yes"; then
4150 cat >> confdefs.h <<\EOF
4151 #define HAVE_SETRESGID_DECL 1
4157 echo $ac_n "checking for asprintf declaration""... $ac_c" 1>&6
4158 echo "configure:4159: checking for asprintf declaration" >&5
4159 if eval "test \"`echo '$''{'ac_cv_have_asprintf_decl'+set}'`\" = set"; then
4160 echo $ac_n "(cached) $ac_c" 1>&6
4161 else
4163 cat > conftest.$ac_ext <<EOF
4164 #line 4165 "configure"
4165 #include "confdefs.h"
4166 #include <stdio.h>
4167 int main() {
4168 int i = (int)asprintf
4169 ; return 0; }
4171 if { (eval echo configure:4172: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4172 rm -rf conftest*
4173 ac_cv_have_asprintf_decl=yes
4174 else
4175 echo "configure: failed program was:" >&5
4176 cat conftest.$ac_ext >&5
4177 rm -rf conftest*
4178 ac_cv_have_asprintf_decl=no
4180 rm -f conftest*
4183 echo "$ac_t""$ac_cv_have_asprintf_decl" 1>&6
4184 if test x"$ac_cv_have_asprintf_decl" = x"yes"; then
4185 cat >> confdefs.h <<\EOF
4186 #define HAVE_ASPRINTF_DECL 1
4192 echo $ac_n "checking for vasprintf declaration""... $ac_c" 1>&6
4193 echo "configure:4194: checking for vasprintf declaration" >&5
4194 if eval "test \"`echo '$''{'ac_cv_have_vasprintf_decl'+set}'`\" = set"; then
4195 echo $ac_n "(cached) $ac_c" 1>&6
4196 else
4198 cat > conftest.$ac_ext <<EOF
4199 #line 4200 "configure"
4200 #include "confdefs.h"
4201 #include <stdio.h>
4202 int main() {
4203 int i = (int)vasprintf
4204 ; return 0; }
4206 if { (eval echo configure:4207: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4207 rm -rf conftest*
4208 ac_cv_have_vasprintf_decl=yes
4209 else
4210 echo "configure: failed program was:" >&5
4211 cat conftest.$ac_ext >&5
4212 rm -rf conftest*
4213 ac_cv_have_vasprintf_decl=no
4215 rm -f conftest*
4218 echo "$ac_t""$ac_cv_have_vasprintf_decl" 1>&6
4219 if test x"$ac_cv_have_vasprintf_decl" = x"yes"; then
4220 cat >> confdefs.h <<\EOF
4221 #define HAVE_VASPRINTF_DECL 1
4227 echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6
4228 echo "configure:4229: checking for vsnprintf declaration" >&5
4229 if eval "test \"`echo '$''{'ac_cv_have_vsnprintf_decl'+set}'`\" = set"; then
4230 echo $ac_n "(cached) $ac_c" 1>&6
4231 else
4233 cat > conftest.$ac_ext <<EOF
4234 #line 4235 "configure"
4235 #include "confdefs.h"
4236 #include <stdio.h>
4237 int main() {
4238 int i = (int)vsnprintf
4239 ; return 0; }
4241 if { (eval echo configure:4242: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4242 rm -rf conftest*
4243 ac_cv_have_vsnprintf_decl=yes
4244 else
4245 echo "configure: failed program was:" >&5
4246 cat conftest.$ac_ext >&5
4247 rm -rf conftest*
4248 ac_cv_have_vsnprintf_decl=no
4250 rm -f conftest*
4253 echo "$ac_t""$ac_cv_have_vsnprintf_decl" 1>&6
4254 if test x"$ac_cv_have_vsnprintf_decl" = x"yes"; then
4255 cat >> confdefs.h <<\EOF
4256 #define HAVE_VSNPRINTF_DECL 1
4262 echo $ac_n "checking for snprintf declaration""... $ac_c" 1>&6
4263 echo "configure:4264: checking for snprintf declaration" >&5
4264 if eval "test \"`echo '$''{'ac_cv_have_snprintf_decl'+set}'`\" = set"; then
4265 echo $ac_n "(cached) $ac_c" 1>&6
4266 else
4268 cat > conftest.$ac_ext <<EOF
4269 #line 4270 "configure"
4270 #include "confdefs.h"
4271 #include <stdio.h>
4272 int main() {
4273 int i = (int)snprintf
4274 ; return 0; }
4276 if { (eval echo configure:4277: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4277 rm -rf conftest*
4278 ac_cv_have_snprintf_decl=yes
4279 else
4280 echo "configure: failed program was:" >&5
4281 cat conftest.$ac_ext >&5
4282 rm -rf conftest*
4283 ac_cv_have_snprintf_decl=no
4285 rm -f conftest*
4288 echo "$ac_t""$ac_cv_have_snprintf_decl" 1>&6
4289 if test x"$ac_cv_have_snprintf_decl" = x"yes"; then
4290 cat >> confdefs.h <<\EOF
4291 #define HAVE_SNPRINTF_DECL 1
4297 # and glibc has setresuid under linux but the function does
4298 # nothing until kernel 2.1.44! very dumb.
4299 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
4300 echo "configure:4301: checking for real setresuid" >&5
4301 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
4302 echo $ac_n "(cached) $ac_c" 1>&6
4303 else
4305 if test "$cross_compiling" = yes; then
4306 samba_cv_have_setresuid=cross
4307 else
4308 cat > conftest.$ac_ext <<EOF
4309 #line 4310 "configure"
4310 #include "confdefs.h"
4311 #include <errno.h>
4312 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
4314 if { (eval echo configure:4315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4315 then
4316 samba_cv_have_setresuid=yes
4317 else
4318 echo "configure: failed program was:" >&5
4319 cat conftest.$ac_ext >&5
4320 rm -fr conftest*
4321 samba_cv_have_setresuid=no
4323 rm -fr conftest*
4328 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
4329 if test x"$samba_cv_have_setresuid" = x"yes"; then
4330 cat >> confdefs.h <<\EOF
4331 #define HAVE_SETRESUID 1
4336 # Do the same check for setresguid...
4338 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
4339 echo "configure:4340: checking for real setresgid" >&5
4340 if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then
4341 echo $ac_n "(cached) $ac_c" 1>&6
4342 else
4344 if test "$cross_compiling" = yes; then
4345 samba_cv_have_setresgid=cross
4346 else
4347 cat > conftest.$ac_ext <<EOF
4348 #line 4349 "configure"
4349 #include "confdefs.h"
4350 #include <unistd.h>
4351 #include <errno.h>
4352 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
4354 if { (eval echo configure:4355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4355 then
4356 samba_cv_have_setresgid=yes
4357 else
4358 echo "configure: failed program was:" >&5
4359 cat conftest.$ac_ext >&5
4360 rm -fr conftest*
4361 samba_cv_have_setresgid=no
4363 rm -fr conftest*
4368 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
4369 if test x"$samba_cv_have_setresgid" = x"yes"; then
4370 cat >> confdefs.h <<\EOF
4371 #define HAVE_SETRESGID 1
4376 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
4377 echo "configure:4378: checking for 8-bit clean memcmp" >&5
4378 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
4379 echo $ac_n "(cached) $ac_c" 1>&6
4380 else
4381 if test "$cross_compiling" = yes; then
4382 ac_cv_func_memcmp_clean=no
4383 else
4384 cat > conftest.$ac_ext <<EOF
4385 #line 4386 "configure"
4386 #include "confdefs.h"
4388 main()
4390 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4391 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
4395 if { (eval echo configure:4396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4396 then
4397 ac_cv_func_memcmp_clean=yes
4398 else
4399 echo "configure: failed program was:" >&5
4400 cat conftest.$ac_ext >&5
4401 rm -fr conftest*
4402 ac_cv_func_memcmp_clean=no
4404 rm -fr conftest*
4409 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
4410 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
4413 ###############################################
4414 # Readline included by default unless explicitly asked not to
4415 test "${with_readline+set}" != "set" && with_readline=yes
4417 # test for where we get readline() from
4418 echo $ac_n "checking whether to use readline""... $ac_c" 1>&6
4419 echo "configure:4420: checking whether to use readline" >&5
4420 # Check whether --with-readline or --without-readline was given.
4421 if test "${with_readline+set}" = set; then
4422 withval="$with_readline"
4423 case "$with_readline" in
4424 yes)
4425 echo "$ac_t""yes" 1>&6
4427 for ac_hdr in readline.h history.h readline/readline.h
4429 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4430 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4431 echo "configure:4432: checking for $ac_hdr" >&5
4432 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4433 echo $ac_n "(cached) $ac_c" 1>&6
4434 else
4435 cat > conftest.$ac_ext <<EOF
4436 #line 4437 "configure"
4437 #include "confdefs.h"
4438 #include <$ac_hdr>
4440 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4441 { (eval echo configure:4442: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4442 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4443 if test -z "$ac_err"; then
4444 rm -rf conftest*
4445 eval "ac_cv_header_$ac_safe=yes"
4446 else
4447 echo "$ac_err" >&5
4448 echo "configure: failed program was:" >&5
4449 cat conftest.$ac_ext >&5
4450 rm -rf conftest*
4451 eval "ac_cv_header_$ac_safe=no"
4453 rm -f conftest*
4455 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4456 echo "$ac_t""yes" 1>&6
4457 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4458 cat >> confdefs.h <<EOF
4459 #define $ac_tr_hdr 1
4462 else
4463 echo "$ac_t""no" 1>&6
4465 done
4467 for ac_hdr in readline/history.h
4469 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4470 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4471 echo "configure:4472: checking for $ac_hdr" >&5
4472 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4473 echo $ac_n "(cached) $ac_c" 1>&6
4474 else
4475 cat > conftest.$ac_ext <<EOF
4476 #line 4477 "configure"
4477 #include "confdefs.h"
4478 #include <$ac_hdr>
4480 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4481 { (eval echo configure:4482: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4482 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4483 if test -z "$ac_err"; then
4484 rm -rf conftest*
4485 eval "ac_cv_header_$ac_safe=yes"
4486 else
4487 echo "$ac_err" >&5
4488 echo "configure: failed program was:" >&5
4489 cat conftest.$ac_ext >&5
4490 rm -rf conftest*
4491 eval "ac_cv_header_$ac_safe=no"
4493 rm -f conftest*
4495 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4496 echo "$ac_t""yes" 1>&6
4497 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4498 cat >> confdefs.h <<EOF
4499 #define $ac_tr_hdr 1
4502 else
4503 echo "$ac_t""no" 1>&6
4505 done
4508 for ac_hdr in readline.h readline/readline.h
4510 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4511 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4512 echo "configure:4513: checking for $ac_hdr" >&5
4513 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4514 echo $ac_n "(cached) $ac_c" 1>&6
4515 else
4516 cat > conftest.$ac_ext <<EOF
4517 #line 4518 "configure"
4518 #include "confdefs.h"
4519 #include <$ac_hdr>
4521 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4522 { (eval echo configure:4523: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4523 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4524 if test -z "$ac_err"; then
4525 rm -rf conftest*
4526 eval "ac_cv_header_$ac_safe=yes"
4527 else
4528 echo "$ac_err" >&5
4529 echo "configure: failed program was:" >&5
4530 cat conftest.$ac_ext >&5
4531 rm -rf conftest*
4532 eval "ac_cv_header_$ac_safe=no"
4534 rm -f conftest*
4536 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4537 echo "$ac_t""yes" 1>&6
4538 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4539 cat >> confdefs.h <<EOF
4540 #define $ac_tr_hdr 1
4543 for termlib in ncurses curses termcap terminfo termlib; do
4544 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4545 echo "configure:4546: checking for tgetent in -l${termlib}" >&5
4546 ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4547 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4548 echo $ac_n "(cached) $ac_c" 1>&6
4549 else
4550 ac_save_LIBS="$LIBS"
4551 LIBS="-l${termlib} $LIBS"
4552 cat > conftest.$ac_ext <<EOF
4553 #line 4554 "configure"
4554 #include "confdefs.h"
4555 /* Override any gcc2 internal prototype to avoid an error. */
4556 /* We use char because int might match the return type of a gcc2
4557 builtin and then its argument prototype would still apply. */
4558 char tgetent();
4560 int main() {
4561 tgetent()
4562 ; return 0; }
4564 if { (eval echo configure:4565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4565 rm -rf conftest*
4566 eval "ac_cv_lib_$ac_lib_var=yes"
4567 else
4568 echo "configure: failed program was:" >&5
4569 cat conftest.$ac_ext >&5
4570 rm -rf conftest*
4571 eval "ac_cv_lib_$ac_lib_var=no"
4573 rm -f conftest*
4574 LIBS="$ac_save_LIBS"
4577 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4578 echo "$ac_t""yes" 1>&6
4579 TERMLIBS="-l${termlib}"; break
4580 else
4581 echo "$ac_t""no" 1>&6
4584 done
4585 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4586 echo "configure:4587: checking for rl_callback_handler_install in -lreadline" >&5
4587 ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4588 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4589 echo $ac_n "(cached) $ac_c" 1>&6
4590 else
4591 ac_save_LIBS="$LIBS"
4592 LIBS="-lreadline $TERMLIBS $LIBS"
4593 cat > conftest.$ac_ext <<EOF
4594 #line 4595 "configure"
4595 #include "confdefs.h"
4596 /* Override any gcc2 internal prototype to avoid an error. */
4597 /* We use char because int might match the return type of a gcc2
4598 builtin and then its argument prototype would still apply. */
4599 char rl_callback_handler_install();
4601 int main() {
4602 rl_callback_handler_install()
4603 ; return 0; }
4605 if { (eval echo configure:4606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4606 rm -rf conftest*
4607 eval "ac_cv_lib_$ac_lib_var=yes"
4608 else
4609 echo "configure: failed program was:" >&5
4610 cat conftest.$ac_ext >&5
4611 rm -rf conftest*
4612 eval "ac_cv_lib_$ac_lib_var=no"
4614 rm -f conftest*
4615 LIBS="$ac_save_LIBS"
4618 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4619 echo "$ac_t""yes" 1>&6
4620 TERMLIBS="-lreadline $TERMLIBS"
4621 cat >> confdefs.h <<\EOF
4622 #define HAVE_LIBREADLINE 1
4625 break
4626 else
4627 echo "$ac_t""no" 1>&6
4628 TERMLIBS=
4631 else
4632 echo "$ac_t""no" 1>&6
4634 done
4638 echo "$ac_t""no" 1>&6
4641 echo "$ac_t""yes" 1>&6
4643 # Needed for AC_CHECK_HEADERS and AC_CHECK_LIB to look at
4644 # alternate readline path
4645 _ldflags=${LDFLAGS}
4646 _cppflags=${CPPFLAGS}
4648 # Add additional search path
4649 LDFLAGS="-L$with_readline/lib $LDFLAGS"
4650 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
4652 for ac_hdr in readline.h history.h readline/readline.h
4654 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4655 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4656 echo "configure:4657: checking for $ac_hdr" >&5
4657 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4658 echo $ac_n "(cached) $ac_c" 1>&6
4659 else
4660 cat > conftest.$ac_ext <<EOF
4661 #line 4662 "configure"
4662 #include "confdefs.h"
4663 #include <$ac_hdr>
4665 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4666 { (eval echo configure:4667: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4667 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4668 if test -z "$ac_err"; then
4669 rm -rf conftest*
4670 eval "ac_cv_header_$ac_safe=yes"
4671 else
4672 echo "$ac_err" >&5
4673 echo "configure: failed program was:" >&5
4674 cat conftest.$ac_ext >&5
4675 rm -rf conftest*
4676 eval "ac_cv_header_$ac_safe=no"
4678 rm -f conftest*
4680 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4681 echo "$ac_t""yes" 1>&6
4682 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4683 cat >> confdefs.h <<EOF
4684 #define $ac_tr_hdr 1
4687 else
4688 echo "$ac_t""no" 1>&6
4690 done
4692 for ac_hdr in readline/history.h
4694 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4695 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4696 echo "configure:4697: checking for $ac_hdr" >&5
4697 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4698 echo $ac_n "(cached) $ac_c" 1>&6
4699 else
4700 cat > conftest.$ac_ext <<EOF
4701 #line 4702 "configure"
4702 #include "confdefs.h"
4703 #include <$ac_hdr>
4705 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4706 { (eval echo configure:4707: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4707 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4708 if test -z "$ac_err"; then
4709 rm -rf conftest*
4710 eval "ac_cv_header_$ac_safe=yes"
4711 else
4712 echo "$ac_err" >&5
4713 echo "configure: failed program was:" >&5
4714 cat conftest.$ac_ext >&5
4715 rm -rf conftest*
4716 eval "ac_cv_header_$ac_safe=no"
4718 rm -f conftest*
4720 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4721 echo "$ac_t""yes" 1>&6
4722 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4723 cat >> confdefs.h <<EOF
4724 #define $ac_tr_hdr 1
4727 else
4728 echo "$ac_t""no" 1>&6
4730 done
4733 for ac_hdr in readline.h readline/readline.h
4735 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4736 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4737 echo "configure:4738: checking for $ac_hdr" >&5
4738 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4739 echo $ac_n "(cached) $ac_c" 1>&6
4740 else
4741 cat > conftest.$ac_ext <<EOF
4742 #line 4743 "configure"
4743 #include "confdefs.h"
4744 #include <$ac_hdr>
4746 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4747 { (eval echo configure:4748: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4748 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4749 if test -z "$ac_err"; then
4750 rm -rf conftest*
4751 eval "ac_cv_header_$ac_safe=yes"
4752 else
4753 echo "$ac_err" >&5
4754 echo "configure: failed program was:" >&5
4755 cat conftest.$ac_ext >&5
4756 rm -rf conftest*
4757 eval "ac_cv_header_$ac_safe=no"
4759 rm -f conftest*
4761 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4762 echo "$ac_t""yes" 1>&6
4763 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4764 cat >> confdefs.h <<EOF
4765 #define $ac_tr_hdr 1
4768 for termlib in ncurses curses termcap terminfo termlib; do
4769 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4770 echo "configure:4771: checking for tgetent in -l${termlib}" >&5
4771 ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4772 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4773 echo $ac_n "(cached) $ac_c" 1>&6
4774 else
4775 ac_save_LIBS="$LIBS"
4776 LIBS="-l${termlib} $LIBS"
4777 cat > conftest.$ac_ext <<EOF
4778 #line 4779 "configure"
4779 #include "confdefs.h"
4780 /* Override any gcc2 internal prototype to avoid an error. */
4781 /* We use char because int might match the return type of a gcc2
4782 builtin and then its argument prototype would still apply. */
4783 char tgetent();
4785 int main() {
4786 tgetent()
4787 ; return 0; }
4789 if { (eval echo configure:4790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4790 rm -rf conftest*
4791 eval "ac_cv_lib_$ac_lib_var=yes"
4792 else
4793 echo "configure: failed program was:" >&5
4794 cat conftest.$ac_ext >&5
4795 rm -rf conftest*
4796 eval "ac_cv_lib_$ac_lib_var=no"
4798 rm -f conftest*
4799 LIBS="$ac_save_LIBS"
4802 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4803 echo "$ac_t""yes" 1>&6
4804 TERMLIBS="-l${termlib}"; break
4805 else
4806 echo "$ac_t""no" 1>&6
4809 done
4810 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4811 echo "configure:4812: checking for rl_callback_handler_install in -lreadline" >&5
4812 ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4813 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4814 echo $ac_n "(cached) $ac_c" 1>&6
4815 else
4816 ac_save_LIBS="$LIBS"
4817 LIBS="-lreadline $TERMLIBS $LIBS"
4818 cat > conftest.$ac_ext <<EOF
4819 #line 4820 "configure"
4820 #include "confdefs.h"
4821 /* Override any gcc2 internal prototype to avoid an error. */
4822 /* We use char because int might match the return type of a gcc2
4823 builtin and then its argument prototype would still apply. */
4824 char rl_callback_handler_install();
4826 int main() {
4827 rl_callback_handler_install()
4828 ; return 0; }
4830 if { (eval echo configure:4831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4831 rm -rf conftest*
4832 eval "ac_cv_lib_$ac_lib_var=yes"
4833 else
4834 echo "configure: failed program was:" >&5
4835 cat conftest.$ac_ext >&5
4836 rm -rf conftest*
4837 eval "ac_cv_lib_$ac_lib_var=no"
4839 rm -f conftest*
4840 LIBS="$ac_save_LIBS"
4843 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4844 echo "$ac_t""yes" 1>&6
4845 TERMLDFLAGS="-L$with_readline/lib"
4846 TERMCPPFLAGS="-I$with_readline/include"
4847 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
4848 TERMLIBS="-lreadline $TERMLIBS"
4849 cat >> confdefs.h <<\EOF
4850 #define HAVE_LIBREADLINE 1
4853 break
4854 else
4855 echo "$ac_t""no" 1>&6
4856 TERMLIBS= CPPFLAGS=$_cppflags
4859 else
4860 echo "$ac_t""no" 1>&6
4862 done
4865 LDFLAGS=$_ldflags
4867 esac
4868 else
4869 echo "$ac_t""no" 1>&6
4876 # The following test taken from the cvs sources
4877 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
4878 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
4879 # libsocket.so which has a bad implementation of gethostbyname (it
4880 # only looks in /etc/hosts), so we only look for -lsocket if we need
4881 # it.
4882 for ac_func in connect
4884 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4885 echo "configure:4886: checking for $ac_func" >&5
4886 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4887 echo $ac_n "(cached) $ac_c" 1>&6
4888 else
4889 cat > conftest.$ac_ext <<EOF
4890 #line 4891 "configure"
4891 #include "confdefs.h"
4892 /* System header to define __stub macros and hopefully few prototypes,
4893 which can conflict with char $ac_func(); below. */
4894 #include <assert.h>
4895 /* Override any gcc2 internal prototype to avoid an error. */
4896 /* We use char because int might match the return type of a gcc2
4897 builtin and then its argument prototype would still apply. */
4898 char $ac_func();
4900 int main() {
4902 /* The GNU C library defines this for functions which it implements
4903 to always fail with ENOSYS. Some functions are actually named
4904 something starting with __ and the normal name is an alias. */
4905 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4906 choke me
4907 #else
4908 $ac_func();
4909 #endif
4911 ; return 0; }
4913 if { (eval echo configure:4914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4914 rm -rf conftest*
4915 eval "ac_cv_func_$ac_func=yes"
4916 else
4917 echo "configure: failed program was:" >&5
4918 cat conftest.$ac_ext >&5
4919 rm -rf conftest*
4920 eval "ac_cv_func_$ac_func=no"
4922 rm -f conftest*
4925 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4926 echo "$ac_t""yes" 1>&6
4927 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4928 cat >> confdefs.h <<EOF
4929 #define $ac_tr_func 1
4932 else
4933 echo "$ac_t""no" 1>&6
4935 done
4937 if test x"$ac_cv_func_connect" = x"no"; then
4938 case "$LIBS" in
4939 *-lnsl*) ;;
4940 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
4941 echo "configure:4942: checking for printf in -lnsl_s" >&5
4942 ac_lib_var=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
4943 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4944 echo $ac_n "(cached) $ac_c" 1>&6
4945 else
4946 ac_save_LIBS="$LIBS"
4947 LIBS="-lnsl_s $LIBS"
4948 cat > conftest.$ac_ext <<EOF
4949 #line 4950 "configure"
4950 #include "confdefs.h"
4951 /* Override any gcc2 internal prototype to avoid an error. */
4952 /* We use char because int might match the return type of a gcc2
4953 builtin and then its argument prototype would still apply. */
4954 char printf();
4956 int main() {
4957 printf()
4958 ; return 0; }
4960 if { (eval echo configure:4961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4961 rm -rf conftest*
4962 eval "ac_cv_lib_$ac_lib_var=yes"
4963 else
4964 echo "configure: failed program was:" >&5
4965 cat conftest.$ac_ext >&5
4966 rm -rf conftest*
4967 eval "ac_cv_lib_$ac_lib_var=no"
4969 rm -f conftest*
4970 LIBS="$ac_save_LIBS"
4973 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4974 echo "$ac_t""yes" 1>&6
4975 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4976 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4977 cat >> confdefs.h <<EOF
4978 #define $ac_tr_lib 1
4981 LIBS="-lnsl_s $LIBS"
4983 else
4984 echo "$ac_t""no" 1>&6
4987 esac
4988 case "$LIBS" in
4989 *-lnsl*) ;;
4990 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
4991 echo "configure:4992: checking for printf in -lnsl" >&5
4992 ac_lib_var=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
4993 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4994 echo $ac_n "(cached) $ac_c" 1>&6
4995 else
4996 ac_save_LIBS="$LIBS"
4997 LIBS="-lnsl $LIBS"
4998 cat > conftest.$ac_ext <<EOF
4999 #line 5000 "configure"
5000 #include "confdefs.h"
5001 /* Override any gcc2 internal prototype to avoid an error. */
5002 /* We use char because int might match the return type of a gcc2
5003 builtin and then its argument prototype would still apply. */
5004 char printf();
5006 int main() {
5007 printf()
5008 ; return 0; }
5010 if { (eval echo configure:5011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5011 rm -rf conftest*
5012 eval "ac_cv_lib_$ac_lib_var=yes"
5013 else
5014 echo "configure: failed program was:" >&5
5015 cat conftest.$ac_ext >&5
5016 rm -rf conftest*
5017 eval "ac_cv_lib_$ac_lib_var=no"
5019 rm -f conftest*
5020 LIBS="$ac_save_LIBS"
5023 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5024 echo "$ac_t""yes" 1>&6
5025 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5026 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5027 cat >> confdefs.h <<EOF
5028 #define $ac_tr_lib 1
5031 LIBS="-lnsl $LIBS"
5033 else
5034 echo "$ac_t""no" 1>&6
5037 esac
5038 case "$LIBS" in
5039 *-lsocket*) ;;
5040 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
5041 echo "configure:5042: checking for connect in -lsocket" >&5
5042 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
5043 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5044 echo $ac_n "(cached) $ac_c" 1>&6
5045 else
5046 ac_save_LIBS="$LIBS"
5047 LIBS="-lsocket $LIBS"
5048 cat > conftest.$ac_ext <<EOF
5049 #line 5050 "configure"
5050 #include "confdefs.h"
5051 /* Override any gcc2 internal prototype to avoid an error. */
5052 /* We use char because int might match the return type of a gcc2
5053 builtin and then its argument prototype would still apply. */
5054 char connect();
5056 int main() {
5057 connect()
5058 ; return 0; }
5060 if { (eval echo configure:5061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5061 rm -rf conftest*
5062 eval "ac_cv_lib_$ac_lib_var=yes"
5063 else
5064 echo "configure: failed program was:" >&5
5065 cat conftest.$ac_ext >&5
5066 rm -rf conftest*
5067 eval "ac_cv_lib_$ac_lib_var=no"
5069 rm -f conftest*
5070 LIBS="$ac_save_LIBS"
5073 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5074 echo "$ac_t""yes" 1>&6
5075 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5076 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5077 cat >> confdefs.h <<EOF
5078 #define $ac_tr_lib 1
5081 LIBS="-lsocket $LIBS"
5083 else
5084 echo "$ac_t""no" 1>&6
5087 esac
5088 case "$LIBS" in
5089 *-linet*) ;;
5090 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
5091 echo "configure:5092: checking for connect in -linet" >&5
5092 ac_lib_var=`echo inet'_'connect | sed 'y%./+-%__p_%'`
5093 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5094 echo $ac_n "(cached) $ac_c" 1>&6
5095 else
5096 ac_save_LIBS="$LIBS"
5097 LIBS="-linet $LIBS"
5098 cat > conftest.$ac_ext <<EOF
5099 #line 5100 "configure"
5100 #include "confdefs.h"
5101 /* Override any gcc2 internal prototype to avoid an error. */
5102 /* We use char because int might match the return type of a gcc2
5103 builtin and then its argument prototype would still apply. */
5104 char connect();
5106 int main() {
5107 connect()
5108 ; return 0; }
5110 if { (eval echo configure:5111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5111 rm -rf conftest*
5112 eval "ac_cv_lib_$ac_lib_var=yes"
5113 else
5114 echo "configure: failed program was:" >&5
5115 cat conftest.$ac_ext >&5
5116 rm -rf conftest*
5117 eval "ac_cv_lib_$ac_lib_var=no"
5119 rm -f conftest*
5120 LIBS="$ac_save_LIBS"
5123 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5124 echo "$ac_t""yes" 1>&6
5125 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5126 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5127 cat >> confdefs.h <<EOF
5128 #define $ac_tr_lib 1
5131 LIBS="-linet $LIBS"
5133 else
5134 echo "$ac_t""no" 1>&6
5137 esac
5138 if test x"$ac_cv_lib_socket_connect" = x"yes" ||
5139 test x"$ac_cv_lib_inet_connect" = x"yes"; then
5140 # ac_cv_func_connect=yes
5141 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
5142 cat >> confdefs.h <<\EOF
5143 #define HAVE_CONNECT 1
5149 ###############################################
5150 # test for where we get get_yp_default_domain() from
5151 for ac_func in yp_get_default_domain
5153 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5154 echo "configure:5155: checking for $ac_func" >&5
5155 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5156 echo $ac_n "(cached) $ac_c" 1>&6
5157 else
5158 cat > conftest.$ac_ext <<EOF
5159 #line 5160 "configure"
5160 #include "confdefs.h"
5161 /* System header to define __stub macros and hopefully few prototypes,
5162 which can conflict with char $ac_func(); below. */
5163 #include <assert.h>
5164 /* Override any gcc2 internal prototype to avoid an error. */
5165 /* We use char because int might match the return type of a gcc2
5166 builtin and then its argument prototype would still apply. */
5167 char $ac_func();
5169 int main() {
5171 /* The GNU C library defines this for functions which it implements
5172 to always fail with ENOSYS. Some functions are actually named
5173 something starting with __ and the normal name is an alias. */
5174 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5175 choke me
5176 #else
5177 $ac_func();
5178 #endif
5180 ; return 0; }
5182 if { (eval echo configure:5183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5183 rm -rf conftest*
5184 eval "ac_cv_func_$ac_func=yes"
5185 else
5186 echo "configure: failed program was:" >&5
5187 cat conftest.$ac_ext >&5
5188 rm -rf conftest*
5189 eval "ac_cv_func_$ac_func=no"
5191 rm -f conftest*
5194 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5195 echo "$ac_t""yes" 1>&6
5196 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5197 cat >> confdefs.h <<EOF
5198 #define $ac_tr_func 1
5201 else
5202 echo "$ac_t""no" 1>&6
5204 done
5206 if test x"$ac_cv_func_yp_get_default_domain" = x"no"; then
5207 echo $ac_n "checking for yp_get_default_domain in -lnsl""... $ac_c" 1>&6
5208 echo "configure:5209: checking for yp_get_default_domain in -lnsl" >&5
5209 ac_lib_var=`echo nsl'_'yp_get_default_domain | sed 'y%./+-%__p_%'`
5210 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5211 echo $ac_n "(cached) $ac_c" 1>&6
5212 else
5213 ac_save_LIBS="$LIBS"
5214 LIBS="-lnsl $LIBS"
5215 cat > conftest.$ac_ext <<EOF
5216 #line 5217 "configure"
5217 #include "confdefs.h"
5218 /* Override any gcc2 internal prototype to avoid an error. */
5219 /* We use char because int might match the return type of a gcc2
5220 builtin and then its argument prototype would still apply. */
5221 char yp_get_default_domain();
5223 int main() {
5224 yp_get_default_domain()
5225 ; return 0; }
5227 if { (eval echo configure:5228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5228 rm -rf conftest*
5229 eval "ac_cv_lib_$ac_lib_var=yes"
5230 else
5231 echo "configure: failed program was:" >&5
5232 cat conftest.$ac_ext >&5
5233 rm -rf conftest*
5234 eval "ac_cv_lib_$ac_lib_var=no"
5236 rm -f conftest*
5237 LIBS="$ac_save_LIBS"
5240 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5241 echo "$ac_t""yes" 1>&6
5242 LIBS="$LIBS -lnsl";
5243 cat >> confdefs.h <<\EOF
5244 #define HAVE_YP_GET_DEFAULT_DOMAIN 1
5247 else
5248 echo "$ac_t""no" 1>&6
5253 # Check if we have execl, if not we need to compile smbrun.
5254 for ac_func in execl
5256 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5257 echo "configure:5258: checking for $ac_func" >&5
5258 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5259 echo $ac_n "(cached) $ac_c" 1>&6
5260 else
5261 cat > conftest.$ac_ext <<EOF
5262 #line 5263 "configure"
5263 #include "confdefs.h"
5264 /* System header to define __stub macros and hopefully few prototypes,
5265 which can conflict with char $ac_func(); below. */
5266 #include <assert.h>
5267 /* Override any gcc2 internal prototype to avoid an error. */
5268 /* We use char because int might match the return type of a gcc2
5269 builtin and then its argument prototype would still apply. */
5270 char $ac_func();
5272 int main() {
5274 /* The GNU C library defines this for functions which it implements
5275 to always fail with ENOSYS. Some functions are actually named
5276 something starting with __ and the normal name is an alias. */
5277 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5278 choke me
5279 #else
5280 $ac_func();
5281 #endif
5283 ; return 0; }
5285 if { (eval echo configure:5286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5286 rm -rf conftest*
5287 eval "ac_cv_func_$ac_func=yes"
5288 else
5289 echo "configure: failed program was:" >&5
5290 cat conftest.$ac_ext >&5
5291 rm -rf conftest*
5292 eval "ac_cv_func_$ac_func=no"
5294 rm -f conftest*
5297 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5298 echo "$ac_t""yes" 1>&6
5299 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5300 cat >> confdefs.h <<EOF
5301 #define $ac_tr_func 1
5304 else
5305 echo "$ac_t""no" 1>&6
5307 done
5309 if test x"$ac_cv_func_execl" = x"no"; then
5310 RUNPROG="bin/smbrun"
5311 else
5312 RUNPROG=""
5315 for ac_func in dlopen dlclose dlsym dlerror waitpid getcwd strdup strndup strnlen strtoul strerror chown fchown chmod fchmod chroot link
5317 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5318 echo "configure:5319: checking for $ac_func" >&5
5319 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5320 echo $ac_n "(cached) $ac_c" 1>&6
5321 else
5322 cat > conftest.$ac_ext <<EOF
5323 #line 5324 "configure"
5324 #include "confdefs.h"
5325 /* System header to define __stub macros and hopefully few prototypes,
5326 which can conflict with char $ac_func(); below. */
5327 #include <assert.h>
5328 /* Override any gcc2 internal prototype to avoid an error. */
5329 /* We use char because int might match the return type of a gcc2
5330 builtin and then its argument prototype would still apply. */
5331 char $ac_func();
5333 int main() {
5335 /* The GNU C library defines this for functions which it implements
5336 to always fail with ENOSYS. Some functions are actually named
5337 something starting with __ and the normal name is an alias. */
5338 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5339 choke me
5340 #else
5341 $ac_func();
5342 #endif
5344 ; return 0; }
5346 if { (eval echo configure:5347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5347 rm -rf conftest*
5348 eval "ac_cv_func_$ac_func=yes"
5349 else
5350 echo "configure: failed program was:" >&5
5351 cat conftest.$ac_ext >&5
5352 rm -rf conftest*
5353 eval "ac_cv_func_$ac_func=no"
5355 rm -f conftest*
5358 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5359 echo "$ac_t""yes" 1>&6
5360 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5361 cat >> confdefs.h <<EOF
5362 #define $ac_tr_func 1
5365 else
5366 echo "$ac_t""no" 1>&6
5368 done
5370 for ac_func in fstat strchr utime utimes getrlimit fsync bzero memset strlcpy strlcat setpgid mknod mknod64
5372 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5373 echo "configure:5374: checking for $ac_func" >&5
5374 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5375 echo $ac_n "(cached) $ac_c" 1>&6
5376 else
5377 cat > conftest.$ac_ext <<EOF
5378 #line 5379 "configure"
5379 #include "confdefs.h"
5380 /* System header to define __stub macros and hopefully few prototypes,
5381 which can conflict with char $ac_func(); below. */
5382 #include <assert.h>
5383 /* Override any gcc2 internal prototype to avoid an error. */
5384 /* We use char because int might match the return type of a gcc2
5385 builtin and then its argument prototype would still apply. */
5386 char $ac_func();
5388 int main() {
5390 /* The GNU C library defines this for functions which it implements
5391 to always fail with ENOSYS. Some functions are actually named
5392 something starting with __ and the normal name is an alias. */
5393 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5394 choke me
5395 #else
5396 $ac_func();
5397 #endif
5399 ; return 0; }
5401 if { (eval echo configure:5402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5402 rm -rf conftest*
5403 eval "ac_cv_func_$ac_func=yes"
5404 else
5405 echo "configure: failed program was:" >&5
5406 cat conftest.$ac_ext >&5
5407 rm -rf conftest*
5408 eval "ac_cv_func_$ac_func=no"
5410 rm -f conftest*
5413 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5414 echo "$ac_t""yes" 1>&6
5415 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5416 cat >> confdefs.h <<EOF
5417 #define $ac_tr_func 1
5420 else
5421 echo "$ac_t""no" 1>&6
5423 done
5425 for ac_func in memmove vsnprintf snprintf asprintf vasprintf setsid glob strpbrk pipe crypt16 getauthuid
5427 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5428 echo "configure:5429: checking for $ac_func" >&5
5429 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5430 echo $ac_n "(cached) $ac_c" 1>&6
5431 else
5432 cat > conftest.$ac_ext <<EOF
5433 #line 5434 "configure"
5434 #include "confdefs.h"
5435 /* System header to define __stub macros and hopefully few prototypes,
5436 which can conflict with char $ac_func(); below. */
5437 #include <assert.h>
5438 /* Override any gcc2 internal prototype to avoid an error. */
5439 /* We use char because int might match the return type of a gcc2
5440 builtin and then its argument prototype would still apply. */
5441 char $ac_func();
5443 int main() {
5445 /* The GNU C library defines this for functions which it implements
5446 to always fail with ENOSYS. Some functions are actually named
5447 something starting with __ and the normal name is an alias. */
5448 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5449 choke me
5450 #else
5451 $ac_func();
5452 #endif
5454 ; return 0; }
5456 if { (eval echo configure:5457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5457 rm -rf conftest*
5458 eval "ac_cv_func_$ac_func=yes"
5459 else
5460 echo "configure: failed program was:" >&5
5461 cat conftest.$ac_ext >&5
5462 rm -rf conftest*
5463 eval "ac_cv_func_$ac_func=no"
5465 rm -f conftest*
5468 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5469 echo "$ac_t""yes" 1>&6
5470 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5471 cat >> confdefs.h <<EOF
5472 #define $ac_tr_func 1
5475 else
5476 echo "$ac_t""no" 1>&6
5478 done
5480 for ac_func in strftime sigprocmask sigblock sigaction sigset innetgr setnetgrent getnetgrent endnetgrent
5482 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5483 echo "configure:5484: checking for $ac_func" >&5
5484 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5485 echo $ac_n "(cached) $ac_c" 1>&6
5486 else
5487 cat > conftest.$ac_ext <<EOF
5488 #line 5489 "configure"
5489 #include "confdefs.h"
5490 /* System header to define __stub macros and hopefully few prototypes,
5491 which can conflict with char $ac_func(); below. */
5492 #include <assert.h>
5493 /* Override any gcc2 internal prototype to avoid an error. */
5494 /* We use char because int might match the return type of a gcc2
5495 builtin and then its argument prototype would still apply. */
5496 char $ac_func();
5498 int main() {
5500 /* The GNU C library defines this for functions which it implements
5501 to always fail with ENOSYS. Some functions are actually named
5502 something starting with __ and the normal name is an alias. */
5503 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5504 choke me
5505 #else
5506 $ac_func();
5507 #endif
5509 ; return 0; }
5511 if { (eval echo configure:5512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5512 rm -rf conftest*
5513 eval "ac_cv_func_$ac_func=yes"
5514 else
5515 echo "configure: failed program was:" >&5
5516 cat conftest.$ac_ext >&5
5517 rm -rf conftest*
5518 eval "ac_cv_func_$ac_func=no"
5520 rm -f conftest*
5523 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5524 echo "$ac_t""yes" 1>&6
5525 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5526 cat >> confdefs.h <<EOF
5527 #define $ac_tr_func 1
5530 else
5531 echo "$ac_t""no" 1>&6
5533 done
5535 for ac_func in initgroups select poll rdchk getgrnam getgrent pathconf realpath
5537 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5538 echo "configure:5539: checking for $ac_func" >&5
5539 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5540 echo $ac_n "(cached) $ac_c" 1>&6
5541 else
5542 cat > conftest.$ac_ext <<EOF
5543 #line 5544 "configure"
5544 #include "confdefs.h"
5545 /* System header to define __stub macros and hopefully few prototypes,
5546 which can conflict with char $ac_func(); below. */
5547 #include <assert.h>
5548 /* Override any gcc2 internal prototype to avoid an error. */
5549 /* We use char because int might match the return type of a gcc2
5550 builtin and then its argument prototype would still apply. */
5551 char $ac_func();
5553 int main() {
5555 /* The GNU C library defines this for functions which it implements
5556 to always fail with ENOSYS. Some functions are actually named
5557 something starting with __ and the normal name is an alias. */
5558 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5559 choke me
5560 #else
5561 $ac_func();
5562 #endif
5564 ; return 0; }
5566 if { (eval echo configure:5567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5567 rm -rf conftest*
5568 eval "ac_cv_func_$ac_func=yes"
5569 else
5570 echo "configure: failed program was:" >&5
5571 cat conftest.$ac_ext >&5
5572 rm -rf conftest*
5573 eval "ac_cv_func_$ac_func=no"
5575 rm -f conftest*
5578 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5579 echo "$ac_t""yes" 1>&6
5580 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5581 cat >> confdefs.h <<EOF
5582 #define $ac_tr_func 1
5585 else
5586 echo "$ac_t""no" 1>&6
5588 done
5590 for ac_func in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
5592 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5593 echo "configure:5594: checking for $ac_func" >&5
5594 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5595 echo $ac_n "(cached) $ac_c" 1>&6
5596 else
5597 cat > conftest.$ac_ext <<EOF
5598 #line 5599 "configure"
5599 #include "confdefs.h"
5600 /* System header to define __stub macros and hopefully few prototypes,
5601 which can conflict with char $ac_func(); below. */
5602 #include <assert.h>
5603 /* Override any gcc2 internal prototype to avoid an error. */
5604 /* We use char because int might match the return type of a gcc2
5605 builtin and then its argument prototype would still apply. */
5606 char $ac_func();
5608 int main() {
5610 /* The GNU C library defines this for functions which it implements
5611 to always fail with ENOSYS. Some functions are actually named
5612 something starting with __ and the normal name is an alias. */
5613 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5614 choke me
5615 #else
5616 $ac_func();
5617 #endif
5619 ; return 0; }
5621 if { (eval echo configure:5622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5622 rm -rf conftest*
5623 eval "ac_cv_func_$ac_func=yes"
5624 else
5625 echo "configure: failed program was:" >&5
5626 cat conftest.$ac_ext >&5
5627 rm -rf conftest*
5628 eval "ac_cv_func_$ac_func=no"
5630 rm -f conftest*
5633 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5634 echo "$ac_t""yes" 1>&6
5635 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5636 cat >> confdefs.h <<EOF
5637 #define $ac_tr_func 1
5640 else
5641 echo "$ac_t""no" 1>&6
5643 done
5645 for ac_func in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
5647 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5648 echo "configure:5649: checking for $ac_func" >&5
5649 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5650 echo $ac_n "(cached) $ac_c" 1>&6
5651 else
5652 cat > conftest.$ac_ext <<EOF
5653 #line 5654 "configure"
5654 #include "confdefs.h"
5655 /* System header to define __stub macros and hopefully few prototypes,
5656 which can conflict with char $ac_func(); below. */
5657 #include <assert.h>
5658 /* Override any gcc2 internal prototype to avoid an error. */
5659 /* We use char because int might match the return type of a gcc2
5660 builtin and then its argument prototype would still apply. */
5661 char $ac_func();
5663 int main() {
5665 /* The GNU C library defines this for functions which it implements
5666 to always fail with ENOSYS. Some functions are actually named
5667 something starting with __ and the normal name is an alias. */
5668 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5669 choke me
5670 #else
5671 $ac_func();
5672 #endif
5674 ; return 0; }
5676 if { (eval echo configure:5677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5677 rm -rf conftest*
5678 eval "ac_cv_func_$ac_func=yes"
5679 else
5680 echo "configure: failed program was:" >&5
5681 cat conftest.$ac_ext >&5
5682 rm -rf conftest*
5683 eval "ac_cv_func_$ac_func=no"
5685 rm -f conftest*
5688 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5689 echo "$ac_t""yes" 1>&6
5690 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5691 cat >> confdefs.h <<EOF
5692 #define $ac_tr_func 1
5695 else
5696 echo "$ac_t""no" 1>&6
5698 done
5700 for ac_func in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam setlinebuf
5702 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5703 echo "configure:5704: checking for $ac_func" >&5
5704 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5705 echo $ac_n "(cached) $ac_c" 1>&6
5706 else
5707 cat > conftest.$ac_ext <<EOF
5708 #line 5709 "configure"
5709 #include "confdefs.h"
5710 /* System header to define __stub macros and hopefully few prototypes,
5711 which can conflict with char $ac_func(); below. */
5712 #include <assert.h>
5713 /* Override any gcc2 internal prototype to avoid an error. */
5714 /* We use char because int might match the return type of a gcc2
5715 builtin and then its argument prototype would still apply. */
5716 char $ac_func();
5718 int main() {
5720 /* The GNU C library defines this for functions which it implements
5721 to always fail with ENOSYS. Some functions are actually named
5722 something starting with __ and the normal name is an alias. */
5723 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5724 choke me
5725 #else
5726 $ac_func();
5727 #endif
5729 ; return 0; }
5731 if { (eval echo configure:5732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5732 rm -rf conftest*
5733 eval "ac_cv_func_$ac_func=yes"
5734 else
5735 echo "configure: failed program was:" >&5
5736 cat conftest.$ac_ext >&5
5737 rm -rf conftest*
5738 eval "ac_cv_func_$ac_func=no"
5740 rm -f conftest*
5743 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5744 echo "$ac_t""yes" 1>&6
5745 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5746 cat >> confdefs.h <<EOF
5747 #define $ac_tr_func 1
5750 else
5751 echo "$ac_t""no" 1>&6
5753 done
5755 for ac_func in srandom random srand rand setenv usleep strcasecmp fcvt fcvtl symlink readlink
5757 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5758 echo "configure:5759: checking for $ac_func" >&5
5759 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5760 echo $ac_n "(cached) $ac_c" 1>&6
5761 else
5762 cat > conftest.$ac_ext <<EOF
5763 #line 5764 "configure"
5764 #include "confdefs.h"
5765 /* System header to define __stub macros and hopefully few prototypes,
5766 which can conflict with char $ac_func(); below. */
5767 #include <assert.h>
5768 /* Override any gcc2 internal prototype to avoid an error. */
5769 /* We use char because int might match the return type of a gcc2
5770 builtin and then its argument prototype would still apply. */
5771 char $ac_func();
5773 int main() {
5775 /* The GNU C library defines this for functions which it implements
5776 to always fail with ENOSYS. Some functions are actually named
5777 something starting with __ and the normal name is an alias. */
5778 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5779 choke me
5780 #else
5781 $ac_func();
5782 #endif
5784 ; return 0; }
5786 if { (eval echo configure:5787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5787 rm -rf conftest*
5788 eval "ac_cv_func_$ac_func=yes"
5789 else
5790 echo "configure: failed program was:" >&5
5791 cat conftest.$ac_ext >&5
5792 rm -rf conftest*
5793 eval "ac_cv_func_$ac_func=no"
5795 rm -f conftest*
5798 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5799 echo "$ac_t""yes" 1>&6
5800 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5801 cat >> confdefs.h <<EOF
5802 #define $ac_tr_func 1
5805 else
5806 echo "$ac_t""no" 1>&6
5808 done
5810 for ac_func in syslog vsyslog
5812 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5813 echo "configure:5814: checking for $ac_func" >&5
5814 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5815 echo $ac_n "(cached) $ac_c" 1>&6
5816 else
5817 cat > conftest.$ac_ext <<EOF
5818 #line 5819 "configure"
5819 #include "confdefs.h"
5820 /* System header to define __stub macros and hopefully few prototypes,
5821 which can conflict with char $ac_func(); below. */
5822 #include <assert.h>
5823 /* Override any gcc2 internal prototype to avoid an error. */
5824 /* We use char because int might match the return type of a gcc2
5825 builtin and then its argument prototype would still apply. */
5826 char $ac_func();
5828 int main() {
5830 /* The GNU C library defines this for functions which it implements
5831 to always fail with ENOSYS. Some functions are actually named
5832 something starting with __ and the normal name is an alias. */
5833 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5834 choke me
5835 #else
5836 $ac_func();
5837 #endif
5839 ; return 0; }
5841 if { (eval echo configure:5842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5842 rm -rf conftest*
5843 eval "ac_cv_func_$ac_func=yes"
5844 else
5845 echo "configure: failed program was:" >&5
5846 cat conftest.$ac_ext >&5
5847 rm -rf conftest*
5848 eval "ac_cv_func_$ac_func=no"
5850 rm -f conftest*
5853 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5854 echo "$ac_t""yes" 1>&6
5855 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5856 cat >> confdefs.h <<EOF
5857 #define $ac_tr_func 1
5860 else
5861 echo "$ac_t""no" 1>&6
5863 done
5866 # syscall() is needed for smbwrapper.
5867 for ac_func in syscall
5869 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5870 echo "configure:5871: checking for $ac_func" >&5
5871 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5872 echo $ac_n "(cached) $ac_c" 1>&6
5873 else
5874 cat > conftest.$ac_ext <<EOF
5875 #line 5876 "configure"
5876 #include "confdefs.h"
5877 /* System header to define __stub macros and hopefully few prototypes,
5878 which can conflict with char $ac_func(); below. */
5879 #include <assert.h>
5880 /* Override any gcc2 internal prototype to avoid an error. */
5881 /* We use char because int might match the return type of a gcc2
5882 builtin and then its argument prototype would still apply. */
5883 char $ac_func();
5885 int main() {
5887 /* The GNU C library defines this for functions which it implements
5888 to always fail with ENOSYS. Some functions are actually named
5889 something starting with __ and the normal name is an alias. */
5890 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5891 choke me
5892 #else
5893 $ac_func();
5894 #endif
5896 ; return 0; }
5898 if { (eval echo configure:5899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5899 rm -rf conftest*
5900 eval "ac_cv_func_$ac_func=yes"
5901 else
5902 echo "configure: failed program was:" >&5
5903 cat conftest.$ac_ext >&5
5904 rm -rf conftest*
5905 eval "ac_cv_func_$ac_func=no"
5907 rm -f conftest*
5910 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5911 echo "$ac_t""yes" 1>&6
5912 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5913 cat >> confdefs.h <<EOF
5914 #define $ac_tr_func 1
5917 else
5918 echo "$ac_t""no" 1>&6
5920 done
5923 for ac_func in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
5925 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5926 echo "configure:5927: checking for $ac_func" >&5
5927 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5928 echo $ac_n "(cached) $ac_c" 1>&6
5929 else
5930 cat > conftest.$ac_ext <<EOF
5931 #line 5932 "configure"
5932 #include "confdefs.h"
5933 /* System header to define __stub macros and hopefully few prototypes,
5934 which can conflict with char $ac_func(); below. */
5935 #include <assert.h>
5936 /* Override any gcc2 internal prototype to avoid an error. */
5937 /* We use char because int might match the return type of a gcc2
5938 builtin and then its argument prototype would still apply. */
5939 char $ac_func();
5941 int main() {
5943 /* The GNU C library defines this for functions which it implements
5944 to always fail with ENOSYS. Some functions are actually named
5945 something starting with __ and the normal name is an alias. */
5946 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5947 choke me
5948 #else
5949 $ac_func();
5950 #endif
5952 ; return 0; }
5954 if { (eval echo configure:5955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5955 rm -rf conftest*
5956 eval "ac_cv_func_$ac_func=yes"
5957 else
5958 echo "configure: failed program was:" >&5
5959 cat conftest.$ac_ext >&5
5960 rm -rf conftest*
5961 eval "ac_cv_func_$ac_func=no"
5963 rm -f conftest*
5966 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5967 echo "$ac_t""yes" 1>&6
5968 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5969 cat >> confdefs.h <<EOF
5970 #define $ac_tr_func 1
5973 else
5974 echo "$ac_t""no" 1>&6
5976 done
5978 for ac_func in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
5980 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5981 echo "configure:5982: checking for $ac_func" >&5
5982 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5983 echo $ac_n "(cached) $ac_c" 1>&6
5984 else
5985 cat > conftest.$ac_ext <<EOF
5986 #line 5987 "configure"
5987 #include "confdefs.h"
5988 /* System header to define __stub macros and hopefully few prototypes,
5989 which can conflict with char $ac_func(); below. */
5990 #include <assert.h>
5991 /* Override any gcc2 internal prototype to avoid an error. */
5992 /* We use char because int might match the return type of a gcc2
5993 builtin and then its argument prototype would still apply. */
5994 char $ac_func();
5996 int main() {
5998 /* The GNU C library defines this for functions which it implements
5999 to always fail with ENOSYS. Some functions are actually named
6000 something starting with __ and the normal name is an alias. */
6001 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6002 choke me
6003 #else
6004 $ac_func();
6005 #endif
6007 ; return 0; }
6009 if { (eval echo configure:6010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6010 rm -rf conftest*
6011 eval "ac_cv_func_$ac_func=yes"
6012 else
6013 echo "configure: failed program was:" >&5
6014 cat conftest.$ac_ext >&5
6015 rm -rf conftest*
6016 eval "ac_cv_func_$ac_func=no"
6018 rm -f conftest*
6021 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6022 echo "$ac_t""yes" 1>&6
6023 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6024 cat >> confdefs.h <<EOF
6025 #define $ac_tr_func 1
6028 else
6029 echo "$ac_t""no" 1>&6
6031 done
6033 for ac_func in __getcwd _getcwd
6035 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6036 echo "configure:6037: checking for $ac_func" >&5
6037 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6038 echo $ac_n "(cached) $ac_c" 1>&6
6039 else
6040 cat > conftest.$ac_ext <<EOF
6041 #line 6042 "configure"
6042 #include "confdefs.h"
6043 /* System header to define __stub macros and hopefully few prototypes,
6044 which can conflict with char $ac_func(); below. */
6045 #include <assert.h>
6046 /* Override any gcc2 internal prototype to avoid an error. */
6047 /* We use char because int might match the return type of a gcc2
6048 builtin and then its argument prototype would still apply. */
6049 char $ac_func();
6051 int main() {
6053 /* The GNU C library defines this for functions which it implements
6054 to always fail with ENOSYS. Some functions are actually named
6055 something starting with __ and the normal name is an alias. */
6056 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6057 choke me
6058 #else
6059 $ac_func();
6060 #endif
6062 ; return 0; }
6064 if { (eval echo configure:6065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6065 rm -rf conftest*
6066 eval "ac_cv_func_$ac_func=yes"
6067 else
6068 echo "configure: failed program was:" >&5
6069 cat conftest.$ac_ext >&5
6070 rm -rf conftest*
6071 eval "ac_cv_func_$ac_func=no"
6073 rm -f conftest*
6076 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6077 echo "$ac_t""yes" 1>&6
6078 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6079 cat >> confdefs.h <<EOF
6080 #define $ac_tr_func 1
6083 else
6084 echo "$ac_t""no" 1>&6
6086 done
6088 for ac_func in __xstat __fxstat __lxstat
6090 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6091 echo "configure:6092: checking for $ac_func" >&5
6092 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6093 echo $ac_n "(cached) $ac_c" 1>&6
6094 else
6095 cat > conftest.$ac_ext <<EOF
6096 #line 6097 "configure"
6097 #include "confdefs.h"
6098 /* System header to define __stub macros and hopefully few prototypes,
6099 which can conflict with char $ac_func(); below. */
6100 #include <assert.h>
6101 /* Override any gcc2 internal prototype to avoid an error. */
6102 /* We use char because int might match the return type of a gcc2
6103 builtin and then its argument prototype would still apply. */
6104 char $ac_func();
6106 int main() {
6108 /* The GNU C library defines this for functions which it implements
6109 to always fail with ENOSYS. Some functions are actually named
6110 something starting with __ and the normal name is an alias. */
6111 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6112 choke me
6113 #else
6114 $ac_func();
6115 #endif
6117 ; return 0; }
6119 if { (eval echo configure:6120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6120 rm -rf conftest*
6121 eval "ac_cv_func_$ac_func=yes"
6122 else
6123 echo "configure: failed program was:" >&5
6124 cat conftest.$ac_ext >&5
6125 rm -rf conftest*
6126 eval "ac_cv_func_$ac_func=no"
6128 rm -f conftest*
6131 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6132 echo "$ac_t""yes" 1>&6
6133 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6134 cat >> confdefs.h <<EOF
6135 #define $ac_tr_func 1
6138 else
6139 echo "$ac_t""no" 1>&6
6141 done
6143 for ac_func in _stat _lstat _fstat __stat __lstat __fstat
6145 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6146 echo "configure:6147: checking for $ac_func" >&5
6147 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6148 echo $ac_n "(cached) $ac_c" 1>&6
6149 else
6150 cat > conftest.$ac_ext <<EOF
6151 #line 6152 "configure"
6152 #include "confdefs.h"
6153 /* System header to define __stub macros and hopefully few prototypes,
6154 which can conflict with char $ac_func(); below. */
6155 #include <assert.h>
6156 /* Override any gcc2 internal prototype to avoid an error. */
6157 /* We use char because int might match the return type of a gcc2
6158 builtin and then its argument prototype would still apply. */
6159 char $ac_func();
6161 int main() {
6163 /* The GNU C library defines this for functions which it implements
6164 to always fail with ENOSYS. Some functions are actually named
6165 something starting with __ and the normal name is an alias. */
6166 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6167 choke me
6168 #else
6169 $ac_func();
6170 #endif
6172 ; return 0; }
6174 if { (eval echo configure:6175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6175 rm -rf conftest*
6176 eval "ac_cv_func_$ac_func=yes"
6177 else
6178 echo "configure: failed program was:" >&5
6179 cat conftest.$ac_ext >&5
6180 rm -rf conftest*
6181 eval "ac_cv_func_$ac_func=no"
6183 rm -f conftest*
6186 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6187 echo "$ac_t""yes" 1>&6
6188 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6189 cat >> confdefs.h <<EOF
6190 #define $ac_tr_func 1
6193 else
6194 echo "$ac_t""no" 1>&6
6196 done
6198 for ac_func in _acl __acl _facl __facl _open __open _chdir __chdir
6200 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6201 echo "configure:6202: checking for $ac_func" >&5
6202 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6203 echo $ac_n "(cached) $ac_c" 1>&6
6204 else
6205 cat > conftest.$ac_ext <<EOF
6206 #line 6207 "configure"
6207 #include "confdefs.h"
6208 /* System header to define __stub macros and hopefully few prototypes,
6209 which can conflict with char $ac_func(); below. */
6210 #include <assert.h>
6211 /* Override any gcc2 internal prototype to avoid an error. */
6212 /* We use char because int might match the return type of a gcc2
6213 builtin and then its argument prototype would still apply. */
6214 char $ac_func();
6216 int main() {
6218 /* The GNU C library defines this for functions which it implements
6219 to always fail with ENOSYS. Some functions are actually named
6220 something starting with __ and the normal name is an alias. */
6221 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6222 choke me
6223 #else
6224 $ac_func();
6225 #endif
6227 ; return 0; }
6229 if { (eval echo configure:6230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6230 rm -rf conftest*
6231 eval "ac_cv_func_$ac_func=yes"
6232 else
6233 echo "configure: failed program was:" >&5
6234 cat conftest.$ac_ext >&5
6235 rm -rf conftest*
6236 eval "ac_cv_func_$ac_func=no"
6238 rm -f conftest*
6241 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6242 echo "$ac_t""yes" 1>&6
6243 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6244 cat >> confdefs.h <<EOF
6245 #define $ac_tr_func 1
6248 else
6249 echo "$ac_t""no" 1>&6
6251 done
6253 for ac_func in _close __close _fchdir __fchdir _fcntl __fcntl
6255 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6256 echo "configure:6257: checking for $ac_func" >&5
6257 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6258 echo $ac_n "(cached) $ac_c" 1>&6
6259 else
6260 cat > conftest.$ac_ext <<EOF
6261 #line 6262 "configure"
6262 #include "confdefs.h"
6263 /* System header to define __stub macros and hopefully few prototypes,
6264 which can conflict with char $ac_func(); below. */
6265 #include <assert.h>
6266 /* Override any gcc2 internal prototype to avoid an error. */
6267 /* We use char because int might match the return type of a gcc2
6268 builtin and then its argument prototype would still apply. */
6269 char $ac_func();
6271 int main() {
6273 /* The GNU C library defines this for functions which it implements
6274 to always fail with ENOSYS. Some functions are actually named
6275 something starting with __ and the normal name is an alias. */
6276 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6277 choke me
6278 #else
6279 $ac_func();
6280 #endif
6282 ; return 0; }
6284 if { (eval echo configure:6285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6285 rm -rf conftest*
6286 eval "ac_cv_func_$ac_func=yes"
6287 else
6288 echo "configure: failed program was:" >&5
6289 cat conftest.$ac_ext >&5
6290 rm -rf conftest*
6291 eval "ac_cv_func_$ac_func=no"
6293 rm -f conftest*
6296 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6297 echo "$ac_t""yes" 1>&6
6298 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6299 cat >> confdefs.h <<EOF
6300 #define $ac_tr_func 1
6303 else
6304 echo "$ac_t""no" 1>&6
6306 done
6308 for ac_func in getdents _getdents __getdents _lseek __lseek _read __read
6310 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6311 echo "configure:6312: checking for $ac_func" >&5
6312 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6313 echo $ac_n "(cached) $ac_c" 1>&6
6314 else
6315 cat > conftest.$ac_ext <<EOF
6316 #line 6317 "configure"
6317 #include "confdefs.h"
6318 /* System header to define __stub macros and hopefully few prototypes,
6319 which can conflict with char $ac_func(); below. */
6320 #include <assert.h>
6321 /* Override any gcc2 internal prototype to avoid an error. */
6322 /* We use char because int might match the return type of a gcc2
6323 builtin and then its argument prototype would still apply. */
6324 char $ac_func();
6326 int main() {
6328 /* The GNU C library defines this for functions which it implements
6329 to always fail with ENOSYS. Some functions are actually named
6330 something starting with __ and the normal name is an alias. */
6331 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6332 choke me
6333 #else
6334 $ac_func();
6335 #endif
6337 ; return 0; }
6339 if { (eval echo configure:6340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6340 rm -rf conftest*
6341 eval "ac_cv_func_$ac_func=yes"
6342 else
6343 echo "configure: failed program was:" >&5
6344 cat conftest.$ac_ext >&5
6345 rm -rf conftest*
6346 eval "ac_cv_func_$ac_func=no"
6348 rm -f conftest*
6351 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6352 echo "$ac_t""yes" 1>&6
6353 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6354 cat >> confdefs.h <<EOF
6355 #define $ac_tr_func 1
6358 else
6359 echo "$ac_t""no" 1>&6
6361 done
6363 for ac_func in _write __write _fork __fork
6365 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6366 echo "configure:6367: checking for $ac_func" >&5
6367 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6368 echo $ac_n "(cached) $ac_c" 1>&6
6369 else
6370 cat > conftest.$ac_ext <<EOF
6371 #line 6372 "configure"
6372 #include "confdefs.h"
6373 /* System header to define __stub macros and hopefully few prototypes,
6374 which can conflict with char $ac_func(); below. */
6375 #include <assert.h>
6376 /* Override any gcc2 internal prototype to avoid an error. */
6377 /* We use char because int might match the return type of a gcc2
6378 builtin and then its argument prototype would still apply. */
6379 char $ac_func();
6381 int main() {
6383 /* The GNU C library defines this for functions which it implements
6384 to always fail with ENOSYS. Some functions are actually named
6385 something starting with __ and the normal name is an alias. */
6386 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6387 choke me
6388 #else
6389 $ac_func();
6390 #endif
6392 ; return 0; }
6394 if { (eval echo configure:6395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6395 rm -rf conftest*
6396 eval "ac_cv_func_$ac_func=yes"
6397 else
6398 echo "configure: failed program was:" >&5
6399 cat conftest.$ac_ext >&5
6400 rm -rf conftest*
6401 eval "ac_cv_func_$ac_func=no"
6403 rm -f conftest*
6406 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6407 echo "$ac_t""yes" 1>&6
6408 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6409 cat >> confdefs.h <<EOF
6410 #define $ac_tr_func 1
6413 else
6414 echo "$ac_t""no" 1>&6
6416 done
6418 for ac_func in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
6420 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6421 echo "configure:6422: checking for $ac_func" >&5
6422 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6423 echo $ac_n "(cached) $ac_c" 1>&6
6424 else
6425 cat > conftest.$ac_ext <<EOF
6426 #line 6427 "configure"
6427 #include "confdefs.h"
6428 /* System header to define __stub macros and hopefully few prototypes,
6429 which can conflict with char $ac_func(); below. */
6430 #include <assert.h>
6431 /* Override any gcc2 internal prototype to avoid an error. */
6432 /* We use char because int might match the return type of a gcc2
6433 builtin and then its argument prototype would still apply. */
6434 char $ac_func();
6436 int main() {
6438 /* The GNU C library defines this for functions which it implements
6439 to always fail with ENOSYS. Some functions are actually named
6440 something starting with __ and the normal name is an alias. */
6441 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6442 choke me
6443 #else
6444 $ac_func();
6445 #endif
6447 ; return 0; }
6449 if { (eval echo configure:6450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6450 rm -rf conftest*
6451 eval "ac_cv_func_$ac_func=yes"
6452 else
6453 echo "configure: failed program was:" >&5
6454 cat conftest.$ac_ext >&5
6455 rm -rf conftest*
6456 eval "ac_cv_func_$ac_func=no"
6458 rm -f conftest*
6461 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6462 echo "$ac_t""yes" 1>&6
6463 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6464 cat >> confdefs.h <<EOF
6465 #define $ac_tr_func 1
6468 else
6469 echo "$ac_t""no" 1>&6
6471 done
6473 for ac_func in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
6475 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6476 echo "configure:6477: checking for $ac_func" >&5
6477 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6478 echo $ac_n "(cached) $ac_c" 1>&6
6479 else
6480 cat > conftest.$ac_ext <<EOF
6481 #line 6482 "configure"
6482 #include "confdefs.h"
6483 /* System header to define __stub macros and hopefully few prototypes,
6484 which can conflict with char $ac_func(); below. */
6485 #include <assert.h>
6486 /* Override any gcc2 internal prototype to avoid an error. */
6487 /* We use char because int might match the return type of a gcc2
6488 builtin and then its argument prototype would still apply. */
6489 char $ac_func();
6491 int main() {
6493 /* The GNU C library defines this for functions which it implements
6494 to always fail with ENOSYS. Some functions are actually named
6495 something starting with __ and the normal name is an alias. */
6496 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6497 choke me
6498 #else
6499 $ac_func();
6500 #endif
6502 ; return 0; }
6504 if { (eval echo configure:6505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6505 rm -rf conftest*
6506 eval "ac_cv_func_$ac_func=yes"
6507 else
6508 echo "configure: failed program was:" >&5
6509 cat conftest.$ac_ext >&5
6510 rm -rf conftest*
6511 eval "ac_cv_func_$ac_func=no"
6513 rm -f conftest*
6516 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6517 echo "$ac_t""yes" 1>&6
6518 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6519 cat >> confdefs.h <<EOF
6520 #define $ac_tr_func 1
6523 else
6524 echo "$ac_t""no" 1>&6
6526 done
6528 for ac_func in pread _pread __pread pread64 _pread64 __pread64
6530 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6531 echo "configure:6532: checking for $ac_func" >&5
6532 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6533 echo $ac_n "(cached) $ac_c" 1>&6
6534 else
6535 cat > conftest.$ac_ext <<EOF
6536 #line 6537 "configure"
6537 #include "confdefs.h"
6538 /* System header to define __stub macros and hopefully few prototypes,
6539 which can conflict with char $ac_func(); below. */
6540 #include <assert.h>
6541 /* Override any gcc2 internal prototype to avoid an error. */
6542 /* We use char because int might match the return type of a gcc2
6543 builtin and then its argument prototype would still apply. */
6544 char $ac_func();
6546 int main() {
6548 /* The GNU C library defines this for functions which it implements
6549 to always fail with ENOSYS. Some functions are actually named
6550 something starting with __ and the normal name is an alias. */
6551 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6552 choke me
6553 #else
6554 $ac_func();
6555 #endif
6557 ; return 0; }
6559 if { (eval echo configure:6560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6560 rm -rf conftest*
6561 eval "ac_cv_func_$ac_func=yes"
6562 else
6563 echo "configure: failed program was:" >&5
6564 cat conftest.$ac_ext >&5
6565 rm -rf conftest*
6566 eval "ac_cv_func_$ac_func=no"
6568 rm -f conftest*
6571 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6572 echo "$ac_t""yes" 1>&6
6573 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6574 cat >> confdefs.h <<EOF
6575 #define $ac_tr_func 1
6578 else
6579 echo "$ac_t""no" 1>&6
6581 done
6583 for ac_func in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
6585 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6586 echo "configure:6587: checking for $ac_func" >&5
6587 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6588 echo $ac_n "(cached) $ac_c" 1>&6
6589 else
6590 cat > conftest.$ac_ext <<EOF
6591 #line 6592 "configure"
6592 #include "confdefs.h"
6593 /* System header to define __stub macros and hopefully few prototypes,
6594 which can conflict with char $ac_func(); below. */
6595 #include <assert.h>
6596 /* Override any gcc2 internal prototype to avoid an error. */
6597 /* We use char because int might match the return type of a gcc2
6598 builtin and then its argument prototype would still apply. */
6599 char $ac_func();
6601 int main() {
6603 /* The GNU C library defines this for functions which it implements
6604 to always fail with ENOSYS. Some functions are actually named
6605 something starting with __ and the normal name is an alias. */
6606 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6607 choke me
6608 #else
6609 $ac_func();
6610 #endif
6612 ; return 0; }
6614 if { (eval echo configure:6615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6615 rm -rf conftest*
6616 eval "ac_cv_func_$ac_func=yes"
6617 else
6618 echo "configure: failed program was:" >&5
6619 cat conftest.$ac_ext >&5
6620 rm -rf conftest*
6621 eval "ac_cv_func_$ac_func=no"
6623 rm -f conftest*
6626 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6627 echo "$ac_t""yes" 1>&6
6628 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6629 cat >> confdefs.h <<EOF
6630 #define $ac_tr_func 1
6633 else
6634 echo "$ac_t""no" 1>&6
6636 done
6638 for ac_func in open64 _open64 __open64 creat64
6640 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6641 echo "configure:6642: checking for $ac_func" >&5
6642 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6643 echo $ac_n "(cached) $ac_c" 1>&6
6644 else
6645 cat > conftest.$ac_ext <<EOF
6646 #line 6647 "configure"
6647 #include "confdefs.h"
6648 /* System header to define __stub macros and hopefully few prototypes,
6649 which can conflict with char $ac_func(); below. */
6650 #include <assert.h>
6651 /* Override any gcc2 internal prototype to avoid an error. */
6652 /* We use char because int might match the return type of a gcc2
6653 builtin and then its argument prototype would still apply. */
6654 char $ac_func();
6656 int main() {
6658 /* The GNU C library defines this for functions which it implements
6659 to always fail with ENOSYS. Some functions are actually named
6660 something starting with __ and the normal name is an alias. */
6661 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6662 choke me
6663 #else
6664 $ac_func();
6665 #endif
6667 ; return 0; }
6669 if { (eval echo configure:6670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6670 rm -rf conftest*
6671 eval "ac_cv_func_$ac_func=yes"
6672 else
6673 echo "configure: failed program was:" >&5
6674 cat conftest.$ac_ext >&5
6675 rm -rf conftest*
6676 eval "ac_cv_func_$ac_func=no"
6678 rm -f conftest*
6681 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6682 echo "$ac_t""yes" 1>&6
6683 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6684 cat >> confdefs.h <<EOF
6685 #define $ac_tr_func 1
6688 else
6689 echo "$ac_t""no" 1>&6
6691 done
6695 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
6698 if test x$ac_cv_func_stat64 = xno ; then
6699 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
6700 echo "configure:6701: checking for stat64 in <sys/stat.h>" >&5
6701 cat > conftest.$ac_ext <<EOF
6702 #line 6703 "configure"
6703 #include "confdefs.h"
6705 #if defined(HAVE_UNISTD_H)
6706 #include <unistd.h>
6707 #endif
6708 #include <sys/stat.h>
6710 int main() {
6711 struct stat64 st64; exit(stat64(".",&st64));
6712 ; return 0; }
6714 if { (eval echo configure:6715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6715 rm -rf conftest*
6716 ac_cv_func_stat64=yes
6717 else
6718 echo "configure: failed program was:" >&5
6719 cat conftest.$ac_ext >&5
6721 rm -f conftest*
6722 echo "$ac_t""$ac_cv_func_stat64" 1>&6
6723 if test x$ac_cv_func_stat64 = xyes ; then
6724 cat >> confdefs.h <<\EOF
6725 #define HAVE_STAT64 1
6731 if test x$ac_cv_func_lstat64 = xno ; then
6732 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
6733 echo "configure:6734: checking for lstat64 in <sys/stat.h>" >&5
6734 cat > conftest.$ac_ext <<EOF
6735 #line 6736 "configure"
6736 #include "confdefs.h"
6738 #if defined(HAVE_UNISTD_H)
6739 #include <unistd.h>
6740 #endif
6741 #include <sys/stat.h>
6743 int main() {
6744 struct stat64 st64; exit(lstat64(".",&st64));
6745 ; return 0; }
6747 if { (eval echo configure:6748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6748 rm -rf conftest*
6749 ac_cv_func_lstat64=yes
6750 else
6751 echo "configure: failed program was:" >&5
6752 cat conftest.$ac_ext >&5
6754 rm -f conftest*
6755 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
6756 if test x$ac_cv_func_lstat64 = xyes ; then
6757 cat >> confdefs.h <<\EOF
6758 #define HAVE_LSTAT64 1
6764 if test x$ac_cv_func_fstat64 = xno ; then
6765 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
6766 echo "configure:6767: checking for fstat64 in <sys/stat.h>" >&5
6767 cat > conftest.$ac_ext <<EOF
6768 #line 6769 "configure"
6769 #include "confdefs.h"
6771 #if defined(HAVE_UNISTD_H)
6772 #include <unistd.h>
6773 #endif
6774 #include <sys/stat.h>
6776 int main() {
6777 struct stat64 st64; exit(fstat64(0,&st64));
6778 ; return 0; }
6780 if { (eval echo configure:6781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6781 rm -rf conftest*
6782 ac_cv_func_fstat64=yes
6783 else
6784 echo "configure: failed program was:" >&5
6785 cat conftest.$ac_ext >&5
6787 rm -f conftest*
6788 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
6789 if test x$ac_cv_func_fstat64 = xyes ; then
6790 cat >> confdefs.h <<\EOF
6791 #define HAVE_FSTAT64 1
6798 # If no strcasecmp, check for it in some known places
6799 # It is in -lresolv on ReliantUNIX and UnixWare
6800 # -lresolve *must* follow -lnsl for name resolution to work properly
6803 if test x$ac_cv_func_strcasecmp = xno ; then
6804 echo $ac_n "checking for strcasecmp in -lresolv""... $ac_c" 1>&6
6805 echo "configure:6806: checking for strcasecmp in -lresolv" >&5
6806 ac_lib_var=`echo resolv'_'strcasecmp | sed 'y%./+-%__p_%'`
6807 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6808 echo $ac_n "(cached) $ac_c" 1>&6
6809 else
6810 ac_save_LIBS="$LIBS"
6811 LIBS="-lresolv $LIBS"
6812 cat > conftest.$ac_ext <<EOF
6813 #line 6814 "configure"
6814 #include "confdefs.h"
6815 /* Override any gcc2 internal prototype to avoid an error. */
6816 /* We use char because int might match the return type of a gcc2
6817 builtin and then its argument prototype would still apply. */
6818 char strcasecmp();
6820 int main() {
6821 strcasecmp()
6822 ; return 0; }
6824 if { (eval echo configure:6825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6825 rm -rf conftest*
6826 eval "ac_cv_lib_$ac_lib_var=yes"
6827 else
6828 echo "configure: failed program was:" >&5
6829 cat conftest.$ac_ext >&5
6830 rm -rf conftest*
6831 eval "ac_cv_lib_$ac_lib_var=no"
6833 rm -f conftest*
6834 LIBS="$ac_save_LIBS"
6837 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6838 echo "$ac_t""yes" 1>&6
6839 LIBS="$LIBS -lresolv"
6840 cat >> confdefs.h <<\EOF
6841 #define HAVE_STRCASECMP 1
6844 else
6845 echo "$ac_t""no" 1>&6
6851 # Check for the functions putprpwnam, set_auth_parameters,
6852 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
6853 # Needed for OSF1 and HPUX.
6856 case "$LIBS" in
6857 *-lsecurity*) for ac_func in putprpwnam
6859 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6860 echo "configure:6861: checking for $ac_func" >&5
6861 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6862 echo $ac_n "(cached) $ac_c" 1>&6
6863 else
6864 cat > conftest.$ac_ext <<EOF
6865 #line 6866 "configure"
6866 #include "confdefs.h"
6867 /* System header to define __stub macros and hopefully few prototypes,
6868 which can conflict with char $ac_func(); below. */
6869 #include <assert.h>
6870 /* Override any gcc2 internal prototype to avoid an error. */
6871 /* We use char because int might match the return type of a gcc2
6872 builtin and then its argument prototype would still apply. */
6873 char $ac_func();
6875 int main() {
6877 /* The GNU C library defines this for functions which it implements
6878 to always fail with ENOSYS. Some functions are actually named
6879 something starting with __ and the normal name is an alias. */
6880 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6881 choke me
6882 #else
6883 $ac_func();
6884 #endif
6886 ; return 0; }
6888 if { (eval echo configure:6889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6889 rm -rf conftest*
6890 eval "ac_cv_func_$ac_func=yes"
6891 else
6892 echo "configure: failed program was:" >&5
6893 cat conftest.$ac_ext >&5
6894 rm -rf conftest*
6895 eval "ac_cv_func_$ac_func=no"
6897 rm -f conftest*
6900 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6901 echo "$ac_t""yes" 1>&6
6902 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6903 cat >> confdefs.h <<EOF
6904 #define $ac_tr_func 1
6907 else
6908 echo "$ac_t""no" 1>&6
6910 done
6912 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
6913 echo "configure:6914: checking for putprpwnam in -lsecurity" >&5
6914 ac_lib_var=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
6915 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6916 echo $ac_n "(cached) $ac_c" 1>&6
6917 else
6918 ac_save_LIBS="$LIBS"
6919 LIBS="-lsecurity $LIBS"
6920 cat > conftest.$ac_ext <<EOF
6921 #line 6922 "configure"
6922 #include "confdefs.h"
6923 /* Override any gcc2 internal prototype to avoid an error. */
6924 /* We use char because int might match the return type of a gcc2
6925 builtin and then its argument prototype would still apply. */
6926 char putprpwnam();
6928 int main() {
6929 putprpwnam()
6930 ; return 0; }
6932 if { (eval echo configure:6933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6933 rm -rf conftest*
6934 eval "ac_cv_lib_$ac_lib_var=yes"
6935 else
6936 echo "configure: failed program was:" >&5
6937 cat conftest.$ac_ext >&5
6938 rm -rf conftest*
6939 eval "ac_cv_lib_$ac_lib_var=no"
6941 rm -f conftest*
6942 LIBS="$ac_save_LIBS"
6945 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6946 echo "$ac_t""yes" 1>&6
6947 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6948 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6949 cat >> confdefs.h <<EOF
6950 #define $ac_tr_lib 1
6953 LIBS="-lsecurity $LIBS"
6955 else
6956 echo "$ac_t""no" 1>&6
6959 for ac_func in putprpwnam
6961 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6962 echo "configure:6963: checking for $ac_func" >&5
6963 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6964 echo $ac_n "(cached) $ac_c" 1>&6
6965 else
6966 cat > conftest.$ac_ext <<EOF
6967 #line 6968 "configure"
6968 #include "confdefs.h"
6969 /* System header to define __stub macros and hopefully few prototypes,
6970 which can conflict with char $ac_func(); below. */
6971 #include <assert.h>
6972 /* Override any gcc2 internal prototype to avoid an error. */
6973 /* We use char because int might match the return type of a gcc2
6974 builtin and then its argument prototype would still apply. */
6975 char $ac_func();
6977 int main() {
6979 /* The GNU C library defines this for functions which it implements
6980 to always fail with ENOSYS. Some functions are actually named
6981 something starting with __ and the normal name is an alias. */
6982 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6983 choke me
6984 #else
6985 $ac_func();
6986 #endif
6988 ; return 0; }
6990 if { (eval echo configure:6991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6991 rm -rf conftest*
6992 eval "ac_cv_func_$ac_func=yes"
6993 else
6994 echo "configure: failed program was:" >&5
6995 cat conftest.$ac_ext >&5
6996 rm -rf conftest*
6997 eval "ac_cv_func_$ac_func=no"
6999 rm -f conftest*
7002 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7003 echo "$ac_t""yes" 1>&6
7004 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7005 cat >> confdefs.h <<EOF
7006 #define $ac_tr_func 1
7009 else
7010 echo "$ac_t""no" 1>&6
7012 done
7015 esac
7017 case "$LIBS" in
7018 *-lsec*) for ac_func in putprpwnam
7020 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7021 echo "configure:7022: checking for $ac_func" >&5
7022 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7023 echo $ac_n "(cached) $ac_c" 1>&6
7024 else
7025 cat > conftest.$ac_ext <<EOF
7026 #line 7027 "configure"
7027 #include "confdefs.h"
7028 /* System header to define __stub macros and hopefully few prototypes,
7029 which can conflict with char $ac_func(); below. */
7030 #include <assert.h>
7031 /* Override any gcc2 internal prototype to avoid an error. */
7032 /* We use char because int might match the return type of a gcc2
7033 builtin and then its argument prototype would still apply. */
7034 char $ac_func();
7036 int main() {
7038 /* The GNU C library defines this for functions which it implements
7039 to always fail with ENOSYS. Some functions are actually named
7040 something starting with __ and the normal name is an alias. */
7041 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7042 choke me
7043 #else
7044 $ac_func();
7045 #endif
7047 ; return 0; }
7049 if { (eval echo configure:7050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7050 rm -rf conftest*
7051 eval "ac_cv_func_$ac_func=yes"
7052 else
7053 echo "configure: failed program was:" >&5
7054 cat conftest.$ac_ext >&5
7055 rm -rf conftest*
7056 eval "ac_cv_func_$ac_func=no"
7058 rm -f conftest*
7061 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7062 echo "$ac_t""yes" 1>&6
7063 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7064 cat >> confdefs.h <<EOF
7065 #define $ac_tr_func 1
7068 else
7069 echo "$ac_t""no" 1>&6
7071 done
7073 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
7074 echo "configure:7075: checking for putprpwnam in -lsec" >&5
7075 ac_lib_var=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
7076 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7077 echo $ac_n "(cached) $ac_c" 1>&6
7078 else
7079 ac_save_LIBS="$LIBS"
7080 LIBS="-lsec $LIBS"
7081 cat > conftest.$ac_ext <<EOF
7082 #line 7083 "configure"
7083 #include "confdefs.h"
7084 /* Override any gcc2 internal prototype to avoid an error. */
7085 /* We use char because int might match the return type of a gcc2
7086 builtin and then its argument prototype would still apply. */
7087 char putprpwnam();
7089 int main() {
7090 putprpwnam()
7091 ; return 0; }
7093 if { (eval echo configure:7094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7094 rm -rf conftest*
7095 eval "ac_cv_lib_$ac_lib_var=yes"
7096 else
7097 echo "configure: failed program was:" >&5
7098 cat conftest.$ac_ext >&5
7099 rm -rf conftest*
7100 eval "ac_cv_lib_$ac_lib_var=no"
7102 rm -f conftest*
7103 LIBS="$ac_save_LIBS"
7106 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7107 echo "$ac_t""yes" 1>&6
7108 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7109 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7110 cat >> confdefs.h <<EOF
7111 #define $ac_tr_lib 1
7114 LIBS="-lsec $LIBS"
7116 else
7117 echo "$ac_t""no" 1>&6
7120 for ac_func in putprpwnam
7122 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7123 echo "configure:7124: checking for $ac_func" >&5
7124 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7125 echo $ac_n "(cached) $ac_c" 1>&6
7126 else
7127 cat > conftest.$ac_ext <<EOF
7128 #line 7129 "configure"
7129 #include "confdefs.h"
7130 /* System header to define __stub macros and hopefully few prototypes,
7131 which can conflict with char $ac_func(); below. */
7132 #include <assert.h>
7133 /* Override any gcc2 internal prototype to avoid an error. */
7134 /* We use char because int might match the return type of a gcc2
7135 builtin and then its argument prototype would still apply. */
7136 char $ac_func();
7138 int main() {
7140 /* The GNU C library defines this for functions which it implements
7141 to always fail with ENOSYS. Some functions are actually named
7142 something starting with __ and the normal name is an alias. */
7143 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7144 choke me
7145 #else
7146 $ac_func();
7147 #endif
7149 ; return 0; }
7151 if { (eval echo configure:7152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7152 rm -rf conftest*
7153 eval "ac_cv_func_$ac_func=yes"
7154 else
7155 echo "configure: failed program was:" >&5
7156 cat conftest.$ac_ext >&5
7157 rm -rf conftest*
7158 eval "ac_cv_func_$ac_func=no"
7160 rm -f conftest*
7163 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7164 echo "$ac_t""yes" 1>&6
7165 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7166 cat >> confdefs.h <<EOF
7167 #define $ac_tr_func 1
7170 else
7171 echo "$ac_t""no" 1>&6
7173 done
7176 esac
7179 case "$LIBS" in
7180 *-lsecurity*) for ac_func in set_auth_parameters
7182 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7183 echo "configure:7184: checking for $ac_func" >&5
7184 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7185 echo $ac_n "(cached) $ac_c" 1>&6
7186 else
7187 cat > conftest.$ac_ext <<EOF
7188 #line 7189 "configure"
7189 #include "confdefs.h"
7190 /* System header to define __stub macros and hopefully few prototypes,
7191 which can conflict with char $ac_func(); below. */
7192 #include <assert.h>
7193 /* Override any gcc2 internal prototype to avoid an error. */
7194 /* We use char because int might match the return type of a gcc2
7195 builtin and then its argument prototype would still apply. */
7196 char $ac_func();
7198 int main() {
7200 /* The GNU C library defines this for functions which it implements
7201 to always fail with ENOSYS. Some functions are actually named
7202 something starting with __ and the normal name is an alias. */
7203 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7204 choke me
7205 #else
7206 $ac_func();
7207 #endif
7209 ; return 0; }
7211 if { (eval echo configure:7212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7212 rm -rf conftest*
7213 eval "ac_cv_func_$ac_func=yes"
7214 else
7215 echo "configure: failed program was:" >&5
7216 cat conftest.$ac_ext >&5
7217 rm -rf conftest*
7218 eval "ac_cv_func_$ac_func=no"
7220 rm -f conftest*
7223 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7224 echo "$ac_t""yes" 1>&6
7225 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7226 cat >> confdefs.h <<EOF
7227 #define $ac_tr_func 1
7230 else
7231 echo "$ac_t""no" 1>&6
7233 done
7235 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
7236 echo "configure:7237: checking for set_auth_parameters in -lsecurity" >&5
7237 ac_lib_var=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7238 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7239 echo $ac_n "(cached) $ac_c" 1>&6
7240 else
7241 ac_save_LIBS="$LIBS"
7242 LIBS="-lsecurity $LIBS"
7243 cat > conftest.$ac_ext <<EOF
7244 #line 7245 "configure"
7245 #include "confdefs.h"
7246 /* Override any gcc2 internal prototype to avoid an error. */
7247 /* We use char because int might match the return type of a gcc2
7248 builtin and then its argument prototype would still apply. */
7249 char set_auth_parameters();
7251 int main() {
7252 set_auth_parameters()
7253 ; return 0; }
7255 if { (eval echo configure:7256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7256 rm -rf conftest*
7257 eval "ac_cv_lib_$ac_lib_var=yes"
7258 else
7259 echo "configure: failed program was:" >&5
7260 cat conftest.$ac_ext >&5
7261 rm -rf conftest*
7262 eval "ac_cv_lib_$ac_lib_var=no"
7264 rm -f conftest*
7265 LIBS="$ac_save_LIBS"
7268 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7269 echo "$ac_t""yes" 1>&6
7270 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7271 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7272 cat >> confdefs.h <<EOF
7273 #define $ac_tr_lib 1
7276 LIBS="-lsecurity $LIBS"
7278 else
7279 echo "$ac_t""no" 1>&6
7282 for ac_func in set_auth_parameters
7284 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7285 echo "configure:7286: checking for $ac_func" >&5
7286 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7287 echo $ac_n "(cached) $ac_c" 1>&6
7288 else
7289 cat > conftest.$ac_ext <<EOF
7290 #line 7291 "configure"
7291 #include "confdefs.h"
7292 /* System header to define __stub macros and hopefully few prototypes,
7293 which can conflict with char $ac_func(); below. */
7294 #include <assert.h>
7295 /* Override any gcc2 internal prototype to avoid an error. */
7296 /* We use char because int might match the return type of a gcc2
7297 builtin and then its argument prototype would still apply. */
7298 char $ac_func();
7300 int main() {
7302 /* The GNU C library defines this for functions which it implements
7303 to always fail with ENOSYS. Some functions are actually named
7304 something starting with __ and the normal name is an alias. */
7305 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7306 choke me
7307 #else
7308 $ac_func();
7309 #endif
7311 ; return 0; }
7313 if { (eval echo configure:7314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7314 rm -rf conftest*
7315 eval "ac_cv_func_$ac_func=yes"
7316 else
7317 echo "configure: failed program was:" >&5
7318 cat conftest.$ac_ext >&5
7319 rm -rf conftest*
7320 eval "ac_cv_func_$ac_func=no"
7322 rm -f conftest*
7325 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7326 echo "$ac_t""yes" 1>&6
7327 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7328 cat >> confdefs.h <<EOF
7329 #define $ac_tr_func 1
7332 else
7333 echo "$ac_t""no" 1>&6
7335 done
7338 esac
7340 case "$LIBS" in
7341 *-lsec*) for ac_func in set_auth_parameters
7343 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7344 echo "configure:7345: checking for $ac_func" >&5
7345 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7346 echo $ac_n "(cached) $ac_c" 1>&6
7347 else
7348 cat > conftest.$ac_ext <<EOF
7349 #line 7350 "configure"
7350 #include "confdefs.h"
7351 /* System header to define __stub macros and hopefully few prototypes,
7352 which can conflict with char $ac_func(); below. */
7353 #include <assert.h>
7354 /* Override any gcc2 internal prototype to avoid an error. */
7355 /* We use char because int might match the return type of a gcc2
7356 builtin and then its argument prototype would still apply. */
7357 char $ac_func();
7359 int main() {
7361 /* The GNU C library defines this for functions which it implements
7362 to always fail with ENOSYS. Some functions are actually named
7363 something starting with __ and the normal name is an alias. */
7364 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7365 choke me
7366 #else
7367 $ac_func();
7368 #endif
7370 ; return 0; }
7372 if { (eval echo configure:7373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7373 rm -rf conftest*
7374 eval "ac_cv_func_$ac_func=yes"
7375 else
7376 echo "configure: failed program was:" >&5
7377 cat conftest.$ac_ext >&5
7378 rm -rf conftest*
7379 eval "ac_cv_func_$ac_func=no"
7381 rm -f conftest*
7384 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7385 echo "$ac_t""yes" 1>&6
7386 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7387 cat >> confdefs.h <<EOF
7388 #define $ac_tr_func 1
7391 else
7392 echo "$ac_t""no" 1>&6
7394 done
7396 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
7397 echo "configure:7398: checking for set_auth_parameters in -lsec" >&5
7398 ac_lib_var=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7399 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7400 echo $ac_n "(cached) $ac_c" 1>&6
7401 else
7402 ac_save_LIBS="$LIBS"
7403 LIBS="-lsec $LIBS"
7404 cat > conftest.$ac_ext <<EOF
7405 #line 7406 "configure"
7406 #include "confdefs.h"
7407 /* Override any gcc2 internal prototype to avoid an error. */
7408 /* We use char because int might match the return type of a gcc2
7409 builtin and then its argument prototype would still apply. */
7410 char set_auth_parameters();
7412 int main() {
7413 set_auth_parameters()
7414 ; return 0; }
7416 if { (eval echo configure:7417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7417 rm -rf conftest*
7418 eval "ac_cv_lib_$ac_lib_var=yes"
7419 else
7420 echo "configure: failed program was:" >&5
7421 cat conftest.$ac_ext >&5
7422 rm -rf conftest*
7423 eval "ac_cv_lib_$ac_lib_var=no"
7425 rm -f conftest*
7426 LIBS="$ac_save_LIBS"
7429 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7430 echo "$ac_t""yes" 1>&6
7431 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7432 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7433 cat >> confdefs.h <<EOF
7434 #define $ac_tr_lib 1
7437 LIBS="-lsec $LIBS"
7439 else
7440 echo "$ac_t""no" 1>&6
7443 for ac_func in set_auth_parameters
7445 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7446 echo "configure:7447: checking for $ac_func" >&5
7447 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7448 echo $ac_n "(cached) $ac_c" 1>&6
7449 else
7450 cat > conftest.$ac_ext <<EOF
7451 #line 7452 "configure"
7452 #include "confdefs.h"
7453 /* System header to define __stub macros and hopefully few prototypes,
7454 which can conflict with char $ac_func(); below. */
7455 #include <assert.h>
7456 /* Override any gcc2 internal prototype to avoid an error. */
7457 /* We use char because int might match the return type of a gcc2
7458 builtin and then its argument prototype would still apply. */
7459 char $ac_func();
7461 int main() {
7463 /* The GNU C library defines this for functions which it implements
7464 to always fail with ENOSYS. Some functions are actually named
7465 something starting with __ and the normal name is an alias. */
7466 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7467 choke me
7468 #else
7469 $ac_func();
7470 #endif
7472 ; return 0; }
7474 if { (eval echo configure:7475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7475 rm -rf conftest*
7476 eval "ac_cv_func_$ac_func=yes"
7477 else
7478 echo "configure: failed program was:" >&5
7479 cat conftest.$ac_ext >&5
7480 rm -rf conftest*
7481 eval "ac_cv_func_$ac_func=no"
7483 rm -f conftest*
7486 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7487 echo "$ac_t""yes" 1>&6
7488 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7489 cat >> confdefs.h <<EOF
7490 #define $ac_tr_func 1
7493 else
7494 echo "$ac_t""no" 1>&6
7496 done
7499 esac
7502 # UnixWare 7.x has its getspnam in -lgen
7503 case "$LIBS" in
7504 *-lgen*) for ac_func in getspnam
7506 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7507 echo "configure:7508: checking for $ac_func" >&5
7508 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7509 echo $ac_n "(cached) $ac_c" 1>&6
7510 else
7511 cat > conftest.$ac_ext <<EOF
7512 #line 7513 "configure"
7513 #include "confdefs.h"
7514 /* System header to define __stub macros and hopefully few prototypes,
7515 which can conflict with char $ac_func(); below. */
7516 #include <assert.h>
7517 /* Override any gcc2 internal prototype to avoid an error. */
7518 /* We use char because int might match the return type of a gcc2
7519 builtin and then its argument prototype would still apply. */
7520 char $ac_func();
7522 int main() {
7524 /* The GNU C library defines this for functions which it implements
7525 to always fail with ENOSYS. Some functions are actually named
7526 something starting with __ and the normal name is an alias. */
7527 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7528 choke me
7529 #else
7530 $ac_func();
7531 #endif
7533 ; return 0; }
7535 if { (eval echo configure:7536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7536 rm -rf conftest*
7537 eval "ac_cv_func_$ac_func=yes"
7538 else
7539 echo "configure: failed program was:" >&5
7540 cat conftest.$ac_ext >&5
7541 rm -rf conftest*
7542 eval "ac_cv_func_$ac_func=no"
7544 rm -f conftest*
7547 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7548 echo "$ac_t""yes" 1>&6
7549 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7550 cat >> confdefs.h <<EOF
7551 #define $ac_tr_func 1
7554 else
7555 echo "$ac_t""no" 1>&6
7557 done
7559 *) echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
7560 echo "configure:7561: checking for getspnam in -lgen" >&5
7561 ac_lib_var=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
7562 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7563 echo $ac_n "(cached) $ac_c" 1>&6
7564 else
7565 ac_save_LIBS="$LIBS"
7566 LIBS="-lgen $LIBS"
7567 cat > conftest.$ac_ext <<EOF
7568 #line 7569 "configure"
7569 #include "confdefs.h"
7570 /* Override any gcc2 internal prototype to avoid an error. */
7571 /* We use char because int might match the return type of a gcc2
7572 builtin and then its argument prototype would still apply. */
7573 char getspnam();
7575 int main() {
7576 getspnam()
7577 ; return 0; }
7579 if { (eval echo configure:7580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7580 rm -rf conftest*
7581 eval "ac_cv_lib_$ac_lib_var=yes"
7582 else
7583 echo "configure: failed program was:" >&5
7584 cat conftest.$ac_ext >&5
7585 rm -rf conftest*
7586 eval "ac_cv_lib_$ac_lib_var=no"
7588 rm -f conftest*
7589 LIBS="$ac_save_LIBS"
7592 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7593 echo "$ac_t""yes" 1>&6
7594 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7595 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7596 cat >> confdefs.h <<EOF
7597 #define $ac_tr_lib 1
7600 LIBS="-lgen $LIBS"
7602 else
7603 echo "$ac_t""no" 1>&6
7606 for ac_func in getspnam
7608 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7609 echo "configure:7610: checking for $ac_func" >&5
7610 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7611 echo $ac_n "(cached) $ac_c" 1>&6
7612 else
7613 cat > conftest.$ac_ext <<EOF
7614 #line 7615 "configure"
7615 #include "confdefs.h"
7616 /* System header to define __stub macros and hopefully few prototypes,
7617 which can conflict with char $ac_func(); below. */
7618 #include <assert.h>
7619 /* Override any gcc2 internal prototype to avoid an error. */
7620 /* We use char because int might match the return type of a gcc2
7621 builtin and then its argument prototype would still apply. */
7622 char $ac_func();
7624 int main() {
7626 /* The GNU C library defines this for functions which it implements
7627 to always fail with ENOSYS. Some functions are actually named
7628 something starting with __ and the normal name is an alias. */
7629 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7630 choke me
7631 #else
7632 $ac_func();
7633 #endif
7635 ; return 0; }
7637 if { (eval echo configure:7638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7638 rm -rf conftest*
7639 eval "ac_cv_func_$ac_func=yes"
7640 else
7641 echo "configure: failed program was:" >&5
7642 cat conftest.$ac_ext >&5
7643 rm -rf conftest*
7644 eval "ac_cv_func_$ac_func=no"
7646 rm -f conftest*
7649 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7650 echo "$ac_t""yes" 1>&6
7651 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7652 cat >> confdefs.h <<EOF
7653 #define $ac_tr_func 1
7656 else
7657 echo "$ac_t""no" 1>&6
7659 done
7662 esac
7665 case "$LIBS" in
7666 *-lsecurity*) for ac_func in getspnam
7668 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7669 echo "configure:7670: checking for $ac_func" >&5
7670 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7671 echo $ac_n "(cached) $ac_c" 1>&6
7672 else
7673 cat > conftest.$ac_ext <<EOF
7674 #line 7675 "configure"
7675 #include "confdefs.h"
7676 /* System header to define __stub macros and hopefully few prototypes,
7677 which can conflict with char $ac_func(); below. */
7678 #include <assert.h>
7679 /* Override any gcc2 internal prototype to avoid an error. */
7680 /* We use char because int might match the return type of a gcc2
7681 builtin and then its argument prototype would still apply. */
7682 char $ac_func();
7684 int main() {
7686 /* The GNU C library defines this for functions which it implements
7687 to always fail with ENOSYS. Some functions are actually named
7688 something starting with __ and the normal name is an alias. */
7689 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7690 choke me
7691 #else
7692 $ac_func();
7693 #endif
7695 ; return 0; }
7697 if { (eval echo configure:7698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7698 rm -rf conftest*
7699 eval "ac_cv_func_$ac_func=yes"
7700 else
7701 echo "configure: failed program was:" >&5
7702 cat conftest.$ac_ext >&5
7703 rm -rf conftest*
7704 eval "ac_cv_func_$ac_func=no"
7706 rm -f conftest*
7709 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7710 echo "$ac_t""yes" 1>&6
7711 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7712 cat >> confdefs.h <<EOF
7713 #define $ac_tr_func 1
7716 else
7717 echo "$ac_t""no" 1>&6
7719 done
7721 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
7722 echo "configure:7723: checking for getspnam in -lsecurity" >&5
7723 ac_lib_var=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
7724 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7725 echo $ac_n "(cached) $ac_c" 1>&6
7726 else
7727 ac_save_LIBS="$LIBS"
7728 LIBS="-lsecurity $LIBS"
7729 cat > conftest.$ac_ext <<EOF
7730 #line 7731 "configure"
7731 #include "confdefs.h"
7732 /* Override any gcc2 internal prototype to avoid an error. */
7733 /* We use char because int might match the return type of a gcc2
7734 builtin and then its argument prototype would still apply. */
7735 char getspnam();
7737 int main() {
7738 getspnam()
7739 ; return 0; }
7741 if { (eval echo configure:7742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7742 rm -rf conftest*
7743 eval "ac_cv_lib_$ac_lib_var=yes"
7744 else
7745 echo "configure: failed program was:" >&5
7746 cat conftest.$ac_ext >&5
7747 rm -rf conftest*
7748 eval "ac_cv_lib_$ac_lib_var=no"
7750 rm -f conftest*
7751 LIBS="$ac_save_LIBS"
7754 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7755 echo "$ac_t""yes" 1>&6
7756 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7757 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7758 cat >> confdefs.h <<EOF
7759 #define $ac_tr_lib 1
7762 LIBS="-lsecurity $LIBS"
7764 else
7765 echo "$ac_t""no" 1>&6
7768 for ac_func in getspnam
7770 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7771 echo "configure:7772: checking for $ac_func" >&5
7772 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7773 echo $ac_n "(cached) $ac_c" 1>&6
7774 else
7775 cat > conftest.$ac_ext <<EOF
7776 #line 7777 "configure"
7777 #include "confdefs.h"
7778 /* System header to define __stub macros and hopefully few prototypes,
7779 which can conflict with char $ac_func(); below. */
7780 #include <assert.h>
7781 /* Override any gcc2 internal prototype to avoid an error. */
7782 /* We use char because int might match the return type of a gcc2
7783 builtin and then its argument prototype would still apply. */
7784 char $ac_func();
7786 int main() {
7788 /* The GNU C library defines this for functions which it implements
7789 to always fail with ENOSYS. Some functions are actually named
7790 something starting with __ and the normal name is an alias. */
7791 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7792 choke me
7793 #else
7794 $ac_func();
7795 #endif
7797 ; return 0; }
7799 if { (eval echo configure:7800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7800 rm -rf conftest*
7801 eval "ac_cv_func_$ac_func=yes"
7802 else
7803 echo "configure: failed program was:" >&5
7804 cat conftest.$ac_ext >&5
7805 rm -rf conftest*
7806 eval "ac_cv_func_$ac_func=no"
7808 rm -f conftest*
7811 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7812 echo "$ac_t""yes" 1>&6
7813 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7814 cat >> confdefs.h <<EOF
7815 #define $ac_tr_func 1
7818 else
7819 echo "$ac_t""no" 1>&6
7821 done
7824 esac
7826 case "$LIBS" in
7827 *-lsec*) for ac_func in getspnam
7829 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7830 echo "configure:7831: checking for $ac_func" >&5
7831 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7832 echo $ac_n "(cached) $ac_c" 1>&6
7833 else
7834 cat > conftest.$ac_ext <<EOF
7835 #line 7836 "configure"
7836 #include "confdefs.h"
7837 /* System header to define __stub macros and hopefully few prototypes,
7838 which can conflict with char $ac_func(); below. */
7839 #include <assert.h>
7840 /* Override any gcc2 internal prototype to avoid an error. */
7841 /* We use char because int might match the return type of a gcc2
7842 builtin and then its argument prototype would still apply. */
7843 char $ac_func();
7845 int main() {
7847 /* The GNU C library defines this for functions which it implements
7848 to always fail with ENOSYS. Some functions are actually named
7849 something starting with __ and the normal name is an alias. */
7850 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7851 choke me
7852 #else
7853 $ac_func();
7854 #endif
7856 ; return 0; }
7858 if { (eval echo configure:7859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7859 rm -rf conftest*
7860 eval "ac_cv_func_$ac_func=yes"
7861 else
7862 echo "configure: failed program was:" >&5
7863 cat conftest.$ac_ext >&5
7864 rm -rf conftest*
7865 eval "ac_cv_func_$ac_func=no"
7867 rm -f conftest*
7870 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7871 echo "$ac_t""yes" 1>&6
7872 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7873 cat >> confdefs.h <<EOF
7874 #define $ac_tr_func 1
7877 else
7878 echo "$ac_t""no" 1>&6
7880 done
7882 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
7883 echo "configure:7884: checking for getspnam in -lsec" >&5
7884 ac_lib_var=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
7885 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7886 echo $ac_n "(cached) $ac_c" 1>&6
7887 else
7888 ac_save_LIBS="$LIBS"
7889 LIBS="-lsec $LIBS"
7890 cat > conftest.$ac_ext <<EOF
7891 #line 7892 "configure"
7892 #include "confdefs.h"
7893 /* Override any gcc2 internal prototype to avoid an error. */
7894 /* We use char because int might match the return type of a gcc2
7895 builtin and then its argument prototype would still apply. */
7896 char getspnam();
7898 int main() {
7899 getspnam()
7900 ; return 0; }
7902 if { (eval echo configure:7903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7903 rm -rf conftest*
7904 eval "ac_cv_lib_$ac_lib_var=yes"
7905 else
7906 echo "configure: failed program was:" >&5
7907 cat conftest.$ac_ext >&5
7908 rm -rf conftest*
7909 eval "ac_cv_lib_$ac_lib_var=no"
7911 rm -f conftest*
7912 LIBS="$ac_save_LIBS"
7915 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7916 echo "$ac_t""yes" 1>&6
7917 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7918 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7919 cat >> confdefs.h <<EOF
7920 #define $ac_tr_lib 1
7923 LIBS="-lsec $LIBS"
7925 else
7926 echo "$ac_t""no" 1>&6
7929 for ac_func in getspnam
7931 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7932 echo "configure:7933: checking for $ac_func" >&5
7933 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7934 echo $ac_n "(cached) $ac_c" 1>&6
7935 else
7936 cat > conftest.$ac_ext <<EOF
7937 #line 7938 "configure"
7938 #include "confdefs.h"
7939 /* System header to define __stub macros and hopefully few prototypes,
7940 which can conflict with char $ac_func(); below. */
7941 #include <assert.h>
7942 /* Override any gcc2 internal prototype to avoid an error. */
7943 /* We use char because int might match the return type of a gcc2
7944 builtin and then its argument prototype would still apply. */
7945 char $ac_func();
7947 int main() {
7949 /* The GNU C library defines this for functions which it implements
7950 to always fail with ENOSYS. Some functions are actually named
7951 something starting with __ and the normal name is an alias. */
7952 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7953 choke me
7954 #else
7955 $ac_func();
7956 #endif
7958 ; return 0; }
7960 if { (eval echo configure:7961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7961 rm -rf conftest*
7962 eval "ac_cv_func_$ac_func=yes"
7963 else
7964 echo "configure: failed program was:" >&5
7965 cat conftest.$ac_ext >&5
7966 rm -rf conftest*
7967 eval "ac_cv_func_$ac_func=no"
7969 rm -f conftest*
7972 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7973 echo "$ac_t""yes" 1>&6
7974 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7975 cat >> confdefs.h <<EOF
7976 #define $ac_tr_func 1
7979 else
7980 echo "$ac_t""no" 1>&6
7982 done
7985 esac
7988 case "$LIBS" in
7989 *-lsecurity*) for ac_func in bigcrypt
7991 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7992 echo "configure:7993: checking for $ac_func" >&5
7993 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7994 echo $ac_n "(cached) $ac_c" 1>&6
7995 else
7996 cat > conftest.$ac_ext <<EOF
7997 #line 7998 "configure"
7998 #include "confdefs.h"
7999 /* System header to define __stub macros and hopefully few prototypes,
8000 which can conflict with char $ac_func(); below. */
8001 #include <assert.h>
8002 /* Override any gcc2 internal prototype to avoid an error. */
8003 /* We use char because int might match the return type of a gcc2
8004 builtin and then its argument prototype would still apply. */
8005 char $ac_func();
8007 int main() {
8009 /* The GNU C library defines this for functions which it implements
8010 to always fail with ENOSYS. Some functions are actually named
8011 something starting with __ and the normal name is an alias. */
8012 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8013 choke me
8014 #else
8015 $ac_func();
8016 #endif
8018 ; return 0; }
8020 if { (eval echo configure:8021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8021 rm -rf conftest*
8022 eval "ac_cv_func_$ac_func=yes"
8023 else
8024 echo "configure: failed program was:" >&5
8025 cat conftest.$ac_ext >&5
8026 rm -rf conftest*
8027 eval "ac_cv_func_$ac_func=no"
8029 rm -f conftest*
8032 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8033 echo "$ac_t""yes" 1>&6
8034 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8035 cat >> confdefs.h <<EOF
8036 #define $ac_tr_func 1
8039 else
8040 echo "$ac_t""no" 1>&6
8042 done
8044 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
8045 echo "configure:8046: checking for bigcrypt in -lsecurity" >&5
8046 ac_lib_var=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
8047 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8048 echo $ac_n "(cached) $ac_c" 1>&6
8049 else
8050 ac_save_LIBS="$LIBS"
8051 LIBS="-lsecurity $LIBS"
8052 cat > conftest.$ac_ext <<EOF
8053 #line 8054 "configure"
8054 #include "confdefs.h"
8055 /* Override any gcc2 internal prototype to avoid an error. */
8056 /* We use char because int might match the return type of a gcc2
8057 builtin and then its argument prototype would still apply. */
8058 char bigcrypt();
8060 int main() {
8061 bigcrypt()
8062 ; return 0; }
8064 if { (eval echo configure:8065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8065 rm -rf conftest*
8066 eval "ac_cv_lib_$ac_lib_var=yes"
8067 else
8068 echo "configure: failed program was:" >&5
8069 cat conftest.$ac_ext >&5
8070 rm -rf conftest*
8071 eval "ac_cv_lib_$ac_lib_var=no"
8073 rm -f conftest*
8074 LIBS="$ac_save_LIBS"
8077 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8078 echo "$ac_t""yes" 1>&6
8079 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8080 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8081 cat >> confdefs.h <<EOF
8082 #define $ac_tr_lib 1
8085 LIBS="-lsecurity $LIBS"
8087 else
8088 echo "$ac_t""no" 1>&6
8091 for ac_func in bigcrypt
8093 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8094 echo "configure:8095: checking for $ac_func" >&5
8095 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8096 echo $ac_n "(cached) $ac_c" 1>&6
8097 else
8098 cat > conftest.$ac_ext <<EOF
8099 #line 8100 "configure"
8100 #include "confdefs.h"
8101 /* System header to define __stub macros and hopefully few prototypes,
8102 which can conflict with char $ac_func(); below. */
8103 #include <assert.h>
8104 /* Override any gcc2 internal prototype to avoid an error. */
8105 /* We use char because int might match the return type of a gcc2
8106 builtin and then its argument prototype would still apply. */
8107 char $ac_func();
8109 int main() {
8111 /* The GNU C library defines this for functions which it implements
8112 to always fail with ENOSYS. Some functions are actually named
8113 something starting with __ and the normal name is an alias. */
8114 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8115 choke me
8116 #else
8117 $ac_func();
8118 #endif
8120 ; return 0; }
8122 if { (eval echo configure:8123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8123 rm -rf conftest*
8124 eval "ac_cv_func_$ac_func=yes"
8125 else
8126 echo "configure: failed program was:" >&5
8127 cat conftest.$ac_ext >&5
8128 rm -rf conftest*
8129 eval "ac_cv_func_$ac_func=no"
8131 rm -f conftest*
8134 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8135 echo "$ac_t""yes" 1>&6
8136 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8137 cat >> confdefs.h <<EOF
8138 #define $ac_tr_func 1
8141 else
8142 echo "$ac_t""no" 1>&6
8144 done
8147 esac
8149 case "$LIBS" in
8150 *-lsec*) for ac_func in bigcrypt
8152 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8153 echo "configure:8154: checking for $ac_func" >&5
8154 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8155 echo $ac_n "(cached) $ac_c" 1>&6
8156 else
8157 cat > conftest.$ac_ext <<EOF
8158 #line 8159 "configure"
8159 #include "confdefs.h"
8160 /* System header to define __stub macros and hopefully few prototypes,
8161 which can conflict with char $ac_func(); below. */
8162 #include <assert.h>
8163 /* Override any gcc2 internal prototype to avoid an error. */
8164 /* We use char because int might match the return type of a gcc2
8165 builtin and then its argument prototype would still apply. */
8166 char $ac_func();
8168 int main() {
8170 /* The GNU C library defines this for functions which it implements
8171 to always fail with ENOSYS. Some functions are actually named
8172 something starting with __ and the normal name is an alias. */
8173 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8174 choke me
8175 #else
8176 $ac_func();
8177 #endif
8179 ; return 0; }
8181 if { (eval echo configure:8182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8182 rm -rf conftest*
8183 eval "ac_cv_func_$ac_func=yes"
8184 else
8185 echo "configure: failed program was:" >&5
8186 cat conftest.$ac_ext >&5
8187 rm -rf conftest*
8188 eval "ac_cv_func_$ac_func=no"
8190 rm -f conftest*
8193 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8194 echo "$ac_t""yes" 1>&6
8195 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8196 cat >> confdefs.h <<EOF
8197 #define $ac_tr_func 1
8200 else
8201 echo "$ac_t""no" 1>&6
8203 done
8205 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
8206 echo "configure:8207: checking for bigcrypt in -lsec" >&5
8207 ac_lib_var=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
8208 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8209 echo $ac_n "(cached) $ac_c" 1>&6
8210 else
8211 ac_save_LIBS="$LIBS"
8212 LIBS="-lsec $LIBS"
8213 cat > conftest.$ac_ext <<EOF
8214 #line 8215 "configure"
8215 #include "confdefs.h"
8216 /* Override any gcc2 internal prototype to avoid an error. */
8217 /* We use char because int might match the return type of a gcc2
8218 builtin and then its argument prototype would still apply. */
8219 char bigcrypt();
8221 int main() {
8222 bigcrypt()
8223 ; return 0; }
8225 if { (eval echo configure:8226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8226 rm -rf conftest*
8227 eval "ac_cv_lib_$ac_lib_var=yes"
8228 else
8229 echo "configure: failed program was:" >&5
8230 cat conftest.$ac_ext >&5
8231 rm -rf conftest*
8232 eval "ac_cv_lib_$ac_lib_var=no"
8234 rm -f conftest*
8235 LIBS="$ac_save_LIBS"
8238 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8239 echo "$ac_t""yes" 1>&6
8240 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8241 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8242 cat >> confdefs.h <<EOF
8243 #define $ac_tr_lib 1
8246 LIBS="-lsec $LIBS"
8248 else
8249 echo "$ac_t""no" 1>&6
8252 for ac_func in bigcrypt
8254 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8255 echo "configure:8256: checking for $ac_func" >&5
8256 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8257 echo $ac_n "(cached) $ac_c" 1>&6
8258 else
8259 cat > conftest.$ac_ext <<EOF
8260 #line 8261 "configure"
8261 #include "confdefs.h"
8262 /* System header to define __stub macros and hopefully few prototypes,
8263 which can conflict with char $ac_func(); below. */
8264 #include <assert.h>
8265 /* Override any gcc2 internal prototype to avoid an error. */
8266 /* We use char because int might match the return type of a gcc2
8267 builtin and then its argument prototype would still apply. */
8268 char $ac_func();
8270 int main() {
8272 /* The GNU C library defines this for functions which it implements
8273 to always fail with ENOSYS. Some functions are actually named
8274 something starting with __ and the normal name is an alias. */
8275 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8276 choke me
8277 #else
8278 $ac_func();
8279 #endif
8281 ; return 0; }
8283 if { (eval echo configure:8284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8284 rm -rf conftest*
8285 eval "ac_cv_func_$ac_func=yes"
8286 else
8287 echo "configure: failed program was:" >&5
8288 cat conftest.$ac_ext >&5
8289 rm -rf conftest*
8290 eval "ac_cv_func_$ac_func=no"
8292 rm -f conftest*
8295 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8296 echo "$ac_t""yes" 1>&6
8297 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8298 cat >> confdefs.h <<EOF
8299 #define $ac_tr_func 1
8302 else
8303 echo "$ac_t""no" 1>&6
8305 done
8308 esac
8311 case "$LIBS" in
8312 *-lsecurity*) for ac_func in getprpwnam
8314 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8315 echo "configure:8316: checking for $ac_func" >&5
8316 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8317 echo $ac_n "(cached) $ac_c" 1>&6
8318 else
8319 cat > conftest.$ac_ext <<EOF
8320 #line 8321 "configure"
8321 #include "confdefs.h"
8322 /* System header to define __stub macros and hopefully few prototypes,
8323 which can conflict with char $ac_func(); below. */
8324 #include <assert.h>
8325 /* Override any gcc2 internal prototype to avoid an error. */
8326 /* We use char because int might match the return type of a gcc2
8327 builtin and then its argument prototype would still apply. */
8328 char $ac_func();
8330 int main() {
8332 /* The GNU C library defines this for functions which it implements
8333 to always fail with ENOSYS. Some functions are actually named
8334 something starting with __ and the normal name is an alias. */
8335 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8336 choke me
8337 #else
8338 $ac_func();
8339 #endif
8341 ; return 0; }
8343 if { (eval echo configure:8344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8344 rm -rf conftest*
8345 eval "ac_cv_func_$ac_func=yes"
8346 else
8347 echo "configure: failed program was:" >&5
8348 cat conftest.$ac_ext >&5
8349 rm -rf conftest*
8350 eval "ac_cv_func_$ac_func=no"
8352 rm -f conftest*
8355 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8356 echo "$ac_t""yes" 1>&6
8357 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8358 cat >> confdefs.h <<EOF
8359 #define $ac_tr_func 1
8362 else
8363 echo "$ac_t""no" 1>&6
8365 done
8367 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
8368 echo "configure:8369: checking for getprpwnam in -lsecurity" >&5
8369 ac_lib_var=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
8370 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8371 echo $ac_n "(cached) $ac_c" 1>&6
8372 else
8373 ac_save_LIBS="$LIBS"
8374 LIBS="-lsecurity $LIBS"
8375 cat > conftest.$ac_ext <<EOF
8376 #line 8377 "configure"
8377 #include "confdefs.h"
8378 /* Override any gcc2 internal prototype to avoid an error. */
8379 /* We use char because int might match the return type of a gcc2
8380 builtin and then its argument prototype would still apply. */
8381 char getprpwnam();
8383 int main() {
8384 getprpwnam()
8385 ; return 0; }
8387 if { (eval echo configure:8388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8388 rm -rf conftest*
8389 eval "ac_cv_lib_$ac_lib_var=yes"
8390 else
8391 echo "configure: failed program was:" >&5
8392 cat conftest.$ac_ext >&5
8393 rm -rf conftest*
8394 eval "ac_cv_lib_$ac_lib_var=no"
8396 rm -f conftest*
8397 LIBS="$ac_save_LIBS"
8400 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8401 echo "$ac_t""yes" 1>&6
8402 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8403 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8404 cat >> confdefs.h <<EOF
8405 #define $ac_tr_lib 1
8408 LIBS="-lsecurity $LIBS"
8410 else
8411 echo "$ac_t""no" 1>&6
8414 for ac_func in getprpwnam
8416 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8417 echo "configure:8418: checking for $ac_func" >&5
8418 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8419 echo $ac_n "(cached) $ac_c" 1>&6
8420 else
8421 cat > conftest.$ac_ext <<EOF
8422 #line 8423 "configure"
8423 #include "confdefs.h"
8424 /* System header to define __stub macros and hopefully few prototypes,
8425 which can conflict with char $ac_func(); below. */
8426 #include <assert.h>
8427 /* Override any gcc2 internal prototype to avoid an error. */
8428 /* We use char because int might match the return type of a gcc2
8429 builtin and then its argument prototype would still apply. */
8430 char $ac_func();
8432 int main() {
8434 /* The GNU C library defines this for functions which it implements
8435 to always fail with ENOSYS. Some functions are actually named
8436 something starting with __ and the normal name is an alias. */
8437 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8438 choke me
8439 #else
8440 $ac_func();
8441 #endif
8443 ; return 0; }
8445 if { (eval echo configure:8446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8446 rm -rf conftest*
8447 eval "ac_cv_func_$ac_func=yes"
8448 else
8449 echo "configure: failed program was:" >&5
8450 cat conftest.$ac_ext >&5
8451 rm -rf conftest*
8452 eval "ac_cv_func_$ac_func=no"
8454 rm -f conftest*
8457 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8458 echo "$ac_t""yes" 1>&6
8459 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8460 cat >> confdefs.h <<EOF
8461 #define $ac_tr_func 1
8464 else
8465 echo "$ac_t""no" 1>&6
8467 done
8470 esac
8472 case "$LIBS" in
8473 *-lsec*) for ac_func in getprpwnam
8475 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8476 echo "configure:8477: checking for $ac_func" >&5
8477 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8478 echo $ac_n "(cached) $ac_c" 1>&6
8479 else
8480 cat > conftest.$ac_ext <<EOF
8481 #line 8482 "configure"
8482 #include "confdefs.h"
8483 /* System header to define __stub macros and hopefully few prototypes,
8484 which can conflict with char $ac_func(); below. */
8485 #include <assert.h>
8486 /* Override any gcc2 internal prototype to avoid an error. */
8487 /* We use char because int might match the return type of a gcc2
8488 builtin and then its argument prototype would still apply. */
8489 char $ac_func();
8491 int main() {
8493 /* The GNU C library defines this for functions which it implements
8494 to always fail with ENOSYS. Some functions are actually named
8495 something starting with __ and the normal name is an alias. */
8496 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8497 choke me
8498 #else
8499 $ac_func();
8500 #endif
8502 ; return 0; }
8504 if { (eval echo configure:8505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8505 rm -rf conftest*
8506 eval "ac_cv_func_$ac_func=yes"
8507 else
8508 echo "configure: failed program was:" >&5
8509 cat conftest.$ac_ext >&5
8510 rm -rf conftest*
8511 eval "ac_cv_func_$ac_func=no"
8513 rm -f conftest*
8516 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8517 echo "$ac_t""yes" 1>&6
8518 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8519 cat >> confdefs.h <<EOF
8520 #define $ac_tr_func 1
8523 else
8524 echo "$ac_t""no" 1>&6
8526 done
8528 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
8529 echo "configure:8530: checking for getprpwnam in -lsec" >&5
8530 ac_lib_var=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
8531 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8532 echo $ac_n "(cached) $ac_c" 1>&6
8533 else
8534 ac_save_LIBS="$LIBS"
8535 LIBS="-lsec $LIBS"
8536 cat > conftest.$ac_ext <<EOF
8537 #line 8538 "configure"
8538 #include "confdefs.h"
8539 /* Override any gcc2 internal prototype to avoid an error. */
8540 /* We use char because int might match the return type of a gcc2
8541 builtin and then its argument prototype would still apply. */
8542 char getprpwnam();
8544 int main() {
8545 getprpwnam()
8546 ; return 0; }
8548 if { (eval echo configure:8549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8549 rm -rf conftest*
8550 eval "ac_cv_lib_$ac_lib_var=yes"
8551 else
8552 echo "configure: failed program was:" >&5
8553 cat conftest.$ac_ext >&5
8554 rm -rf conftest*
8555 eval "ac_cv_lib_$ac_lib_var=no"
8557 rm -f conftest*
8558 LIBS="$ac_save_LIBS"
8561 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8562 echo "$ac_t""yes" 1>&6
8563 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8564 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8565 cat >> confdefs.h <<EOF
8566 #define $ac_tr_lib 1
8569 LIBS="-lsec $LIBS"
8571 else
8572 echo "$ac_t""no" 1>&6
8575 for ac_func in getprpwnam
8577 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8578 echo "configure:8579: checking for $ac_func" >&5
8579 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8580 echo $ac_n "(cached) $ac_c" 1>&6
8581 else
8582 cat > conftest.$ac_ext <<EOF
8583 #line 8584 "configure"
8584 #include "confdefs.h"
8585 /* System header to define __stub macros and hopefully few prototypes,
8586 which can conflict with char $ac_func(); below. */
8587 #include <assert.h>
8588 /* Override any gcc2 internal prototype to avoid an error. */
8589 /* We use char because int might match the return type of a gcc2
8590 builtin and then its argument prototype would still apply. */
8591 char $ac_func();
8593 int main() {
8595 /* The GNU C library defines this for functions which it implements
8596 to always fail with ENOSYS. Some functions are actually named
8597 something starting with __ and the normal name is an alias. */
8598 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8599 choke me
8600 #else
8601 $ac_func();
8602 #endif
8604 ; return 0; }
8606 if { (eval echo configure:8607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8607 rm -rf conftest*
8608 eval "ac_cv_func_$ac_func=yes"
8609 else
8610 echo "configure: failed program was:" >&5
8611 cat conftest.$ac_ext >&5
8612 rm -rf conftest*
8613 eval "ac_cv_func_$ac_func=no"
8615 rm -f conftest*
8618 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8619 echo "$ac_t""yes" 1>&6
8620 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8621 cat >> confdefs.h <<EOF
8622 #define $ac_tr_func 1
8625 else
8626 echo "$ac_t""no" 1>&6
8628 done
8631 esac
8634 # this bit needs to be modified for each OS that is suported by
8635 # smbwrapper. You need to specify how to created a shared library and
8636 # how to compile C code to produce PIC object files
8638 # these are the defaults, good for lots of systems
8639 HOST_OS="$host_os"
8640 LDSHFLAGS="-shared"
8641 SONAMEFLAG="#"
8642 SHLD="\${CC}"
8643 PICFLAG=""
8644 PICSUFFIX="po.o"
8645 SHLIBEXT="so"
8646 # Assume non-shared by default and override below
8647 BLDSHARED="false"
8648 echo $ac_n "checking ability to build shared libraries""... $ac_c" 1>&6
8649 echo "configure:8650: checking ability to build shared libraries" >&5
8651 # and these are for particular systems
8652 case "$host_os" in
8653 *linux*) cat >> confdefs.h <<\EOF
8654 #define LINUX 1
8657 BLDSHARED="true"
8658 LDSHFLAGS="-shared"
8659 DYNEXP="-Wl,--export-dynamic"
8660 PICFLAG="-fPIC"
8661 SONAMEFLAG="-Wl,-soname="
8662 cat >> confdefs.h <<\EOF
8663 #define STAT_ST_BLOCKSIZE 512
8667 *solaris*) cat >> confdefs.h <<\EOF
8668 #define SUNOS5 1
8671 BLDSHARED="true"
8672 LDSHFLAGS="-G"
8673 SONAMEFLAG="-h "
8674 if test "${GCC}" = "yes"; then
8675 PICFLAG="-fPIC"
8676 DYNEXP="-Wl,-E"
8677 else
8678 PICFLAG="-KPIC"
8679 ## ${CFLAGS} added for building 64-bit shared
8680 ## libs using Sun's Compiler
8681 LDSHFLAGS="-G \${CFLAGS}"
8682 POBAD_CC=""
8683 PICSUFFIX="po.o"
8685 cat >> confdefs.h <<\EOF
8686 #define STAT_ST_BLOCKSIZE 512
8690 *sunos*) cat >> confdefs.h <<\EOF
8691 #define SUNOS4 1
8694 BLDSHARED="true"
8695 LDSHFLAGS="-G"
8696 SONAMEFLAG="-Wl,-h,"
8697 PICFLAG="-KPIC" # Is this correct for SunOS
8699 *bsd*) BLDSHARED="true"
8700 LDSHFLAGS="-shared"
8701 DYNEXP="-Wl,-Bdynamic"
8702 SONAMEFLAG="-Wl,-soname,"
8703 PICFLAG="-fPIC"
8704 cat >> confdefs.h <<\EOF
8705 #define STAT_ST_BLOCKSIZE 512
8709 *irix*) cat >> confdefs.h <<\EOF
8710 #define IRIX 1
8713 case "$host_os" in
8714 *irix6*) cat >> confdefs.h <<\EOF
8715 #define IRIX6 1
8719 esac
8720 ATTEMPT_WRAP32_BUILD=yes
8721 BLDSHARED="true"
8722 LDSHFLAGS="-set_version sgi1.0 -shared"
8723 SONAMEFLAG="-soname "
8724 SHLD="\${LD}"
8725 if test "${GCC}" = "yes"; then
8726 PICFLAG="-fPIC"
8727 else
8728 PICFLAG="-KPIC"
8730 cat >> confdefs.h <<\EOF
8731 #define STAT_ST_BLOCKSIZE 512
8735 *aix*) cat >> confdefs.h <<\EOF
8736 #define AIX 1
8739 BLDSHARED="true"
8740 LDSHFLAGS="-Wl,-bexpall,-bM:SRE,-bnoentry"
8741 DYNEXP="-Wl,-brtl,-bexpall"
8742 if test "${GCC}" = "yes"; then
8743 PICFLAG="-O2"
8744 else
8745 PICFLAG="-O2 -qmaxmem=6000"
8746 ## for funky AIX compiler using strncpy()
8747 CFLAGS="$CFLAGS -D_LINUX_SOURCE_COMPAT"
8750 cat >> confdefs.h <<\EOF
8751 #define STAT_ST_BLOCKSIZE DEV_BSIZE
8755 *hpux*) cat >> confdefs.h <<\EOF
8756 #define HPUX 1
8759 SHLIBEXT="sl"
8760 # Use special PIC flags for the native HP-UX compiler.
8761 if test $ac_cv_prog_cc_Ae = yes; then
8762 BLDSHARED="true"
8763 SHLD="/usr/bin/ld"
8764 LDSHFLAGS="-B symbolic -b -z"
8765 SONAMEFLAG="+h "
8766 PICFLAG="+z"
8768 DYNEXP="-Wl,-E"
8769 cat >> confdefs.h <<\EOF
8770 #define STAT_ST_BLOCKSIZE 8192
8774 *qnx*) cat >> confdefs.h <<\EOF
8775 #define QNX 1
8778 *osf*) cat >> confdefs.h <<\EOF
8779 #define OSF1 1
8782 BLDSHARED="true"
8783 LDSHFLAGS="-shared"
8784 SONAMEFLAG="-Wl,-soname,"
8785 PICFLAG="-fPIC"
8787 *sco*) cat >> confdefs.h <<\EOF
8788 #define SCO 1
8791 *unixware*) cat >> confdefs.h <<\EOF
8792 #define UNIXWARE 1
8795 BLDSHARED="true"
8796 LDSHFLAGS="-shared"
8797 SONAMEFLAG="-Wl,-soname,"
8798 PICFLAG="-KPIC"
8800 *next2*) cat >> confdefs.h <<\EOF
8801 #define NEXT2 1
8804 *dgux*) # Extract the first word of "groff", so it can be a program name with args.
8805 set dummy groff; ac_word=$2
8806 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8807 echo "configure:8808: checking for $ac_word" >&5
8808 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
8809 echo $ac_n "(cached) $ac_c" 1>&6
8810 else
8811 if test -n "$ROFF"; then
8812 ac_cv_prog_ROFF="$ROFF" # Let the user override the test.
8813 else
8814 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8815 ac_dummy="$PATH"
8816 for ac_dir in $ac_dummy; do
8817 test -z "$ac_dir" && ac_dir=.
8818 if test -f $ac_dir/$ac_word; then
8819 ac_cv_prog_ROFF="groff -etpsR -Tascii -man"
8820 break
8822 done
8823 IFS="$ac_save_ifs"
8826 ROFF="$ac_cv_prog_ROFF"
8827 if test -n "$ROFF"; then
8828 echo "$ac_t""$ROFF" 1>&6
8829 else
8830 echo "$ac_t""no" 1>&6
8833 *sysv4*)
8834 case "$host" in
8835 *-univel-*) if test "$GCC" != yes ; then
8836 cat >> confdefs.h <<\EOF
8837 #define HAVE_MEMSET 1
8841 LDSHFLAGS="-G"
8842 DYNEXP="-Bexport"
8844 *mips-sni-sysv4*) cat >> confdefs.h <<\EOF
8845 #define RELIANTUNIX 1
8848 esac
8850 *sysv5*)
8851 if test "$GCC" != yes ; then
8852 cat >> confdefs.h <<\EOF
8853 #define HAVE_MEMSET 1
8857 LDSHFLAGS="-G"
8859 esac
8861 echo "$ac_t""$BLDSHARED" 1>&6
8862 echo $ac_n "checking linker flags for shared libraries""... $ac_c" 1>&6
8863 echo "configure:8864: checking linker flags for shared libraries" >&5
8864 echo "$ac_t""$LDSHFLAGS" 1>&6
8865 echo $ac_n "checking compiler flags for position-independent code""... $ac_c" 1>&6
8866 echo "configure:8867: checking compiler flags for position-independent code" >&5
8867 echo "$ac_t""$PICFLAGS" 1>&6
8869 # try to work out how to produce pic code with this compiler
8870 if test x$PICFLAG = x; then
8871 echo $ac_n "checking whether ${CC-cc} accepts -fpic""... $ac_c" 1>&6
8872 echo "configure:8873: checking whether ${CC-cc} accepts -fpic" >&5
8873 if eval "test \"`echo '$''{'ac_cv_prog_cc_fpic'+set}'`\" = set"; then
8874 echo $ac_n "(cached) $ac_c" 1>&6
8875 else
8876 echo 'void f(){}' > conftest.c
8877 if test -z "`${CC-cc} -fpic -c conftest.c 2>&1`"; then
8878 ac_cv_prog_cc_fpic=yes
8879 else
8880 ac_cv_prog_cc_fpic=no
8882 rm -f conftest*
8886 echo "$ac_t""$ac_cv_prog_cc_fpic" 1>&6
8887 if test $ac_cv_prog_cc_fpic = yes; then
8888 PICFLAG="-fpic";
8891 if test x$PICFLAG = x; then
8892 echo $ac_n "checking whether ${CC-cc} accepts -KPIC""... $ac_c" 1>&6
8893 echo "configure:8894: checking whether ${CC-cc} accepts -KPIC" >&5
8894 if eval "test \"`echo '$''{'ac_cv_prog_cc_KPIC'+set}'`\" = set"; then
8895 echo $ac_n "(cached) $ac_c" 1>&6
8896 else
8897 echo 'void f(){}' > conftest.c
8898 if test -z "`${CC-cc} -KPIC -c conftest.c 2>&1`"; then
8899 ac_cv_prog_cc_KPIC=yes
8900 else
8901 ac_cv_prog_cc_KPIC=no
8903 rm -f conftest*
8907 echo "$ac_t""$ac_cv_prog_cc_KPIC" 1>&6
8908 if test $ac_cv_prog_cc_KPIC = yes; then
8909 PICFLAG="-KPIC";
8912 if test x$PICFLAG = x; then
8913 echo $ac_n "checking whether ${CC-cc} accepts -Kpic""... $ac_c" 1>&6
8914 echo "configure:8915: checking whether ${CC-cc} accepts -Kpic" >&5
8915 if eval "test \"`echo '$''{'ac_cv_prog_cc_Kpic'+set}'`\" = set"; then
8916 echo $ac_n "(cached) $ac_c" 1>&6
8917 else
8918 echo 'void f(){}' > conftest.c
8919 if test -z "`${CC-cc} -Kpic -c conftest.c 2>&1`"; then
8920 ac_cv_prog_cc_Kpic=yes
8921 else
8922 ac_cv_prog_cc_Kpic=no
8924 rm -f conftest*
8928 echo "$ac_t""$ac_cv_prog_cc_Kpic" 1>&6
8929 if test $ac_cv_prog_cc_Kpic = yes; then
8930 PICFLAG="-Kpic";
8934 ################
8936 echo $ac_n "checking for long long""... $ac_c" 1>&6
8937 echo "configure:8938: checking for long long" >&5
8938 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
8939 echo $ac_n "(cached) $ac_c" 1>&6
8940 else
8942 if test "$cross_compiling" = yes; then
8943 samba_cv_have_longlong=cross
8944 else
8945 cat > conftest.$ac_ext <<EOF
8946 #line 8947 "configure"
8947 #include "confdefs.h"
8948 #include <stdio.h>
8949 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
8951 if { (eval echo configure:8952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8952 then
8953 samba_cv_have_longlong=yes
8954 else
8955 echo "configure: failed program was:" >&5
8956 cat conftest.$ac_ext >&5
8957 rm -fr conftest*
8958 samba_cv_have_longlong=no
8960 rm -fr conftest*
8965 echo "$ac_t""$samba_cv_have_longlong" 1>&6
8966 if test x"$samba_cv_have_longlong" = x"yes"; then
8967 cat >> confdefs.h <<\EOF
8968 #define HAVE_LONGLONG 1
8974 # Check if the compiler supports the LL prefix on long long integers.
8975 # AIX needs this.
8977 echo $ac_n "checking for LL suffix on long long integers""... $ac_c" 1>&6
8978 echo "configure:8979: checking for LL suffix on long long integers" >&5
8979 if eval "test \"`echo '$''{'samba_cv_compiler_supports_ll'+set}'`\" = set"; then
8980 echo $ac_n "(cached) $ac_c" 1>&6
8981 else
8983 cat > conftest.$ac_ext <<EOF
8984 #line 8985 "configure"
8985 #include "confdefs.h"
8986 #include <stdio.h>
8987 int main() {
8988 long long i = 0x8000000000LL
8989 ; return 0; }
8991 if { (eval echo configure:8992: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8992 rm -rf conftest*
8993 samba_cv_compiler_supports_ll=yes
8994 else
8995 echo "configure: failed program was:" >&5
8996 cat conftest.$ac_ext >&5
8997 rm -rf conftest*
8998 samba_cv_compiler_supports_ll=no
9000 rm -f conftest*
9003 echo "$ac_t""$samba_cv_compiler_supports_ll" 1>&6
9004 if test x"$samba_cv_compiler_supports_ll" = x"yes"; then
9005 cat >> confdefs.h <<\EOF
9006 #define COMPILER_SUPPORTS_LL 1
9012 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
9013 echo "configure:9014: checking for 64 bit off_t" >&5
9014 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
9015 echo $ac_n "(cached) $ac_c" 1>&6
9016 else
9018 if test "$cross_compiling" = yes; then
9019 samba_cv_SIZEOF_OFF_T=cross
9020 else
9021 cat > conftest.$ac_ext <<EOF
9022 #line 9023 "configure"
9023 #include "confdefs.h"
9024 #include <stdio.h>
9025 #include <sys/stat.h>
9026 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
9028 if { (eval echo configure:9029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9029 then
9030 samba_cv_SIZEOF_OFF_T=yes
9031 else
9032 echo "configure: failed program was:" >&5
9033 cat conftest.$ac_ext >&5
9034 rm -fr conftest*
9035 samba_cv_SIZEOF_OFF_T=no
9037 rm -fr conftest*
9042 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
9043 if test x"$samba_cv_SIZEOF_OFF_T" = x"yes"; then
9044 cat >> confdefs.h <<\EOF
9045 #define SIZEOF_OFF_T 8
9050 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
9051 echo "configure:9052: checking for off64_t" >&5
9052 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
9053 echo $ac_n "(cached) $ac_c" 1>&6
9054 else
9056 if test "$cross_compiling" = yes; then
9057 samba_cv_HAVE_OFF64_T=cross
9058 else
9059 cat > conftest.$ac_ext <<EOF
9060 #line 9061 "configure"
9061 #include "confdefs.h"
9063 #if defined(HAVE_UNISTD_H)
9064 #include <unistd.h>
9065 #endif
9066 #include <stdio.h>
9067 #include <sys/stat.h>
9068 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9070 if { (eval echo configure:9071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9071 then
9072 samba_cv_HAVE_OFF64_T=yes
9073 else
9074 echo "configure: failed program was:" >&5
9075 cat conftest.$ac_ext >&5
9076 rm -fr conftest*
9077 samba_cv_HAVE_OFF64_T=no
9079 rm -fr conftest*
9084 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
9085 if test x"$samba_cv_HAVE_OFF64_T" = x"yes"; then
9086 cat >> confdefs.h <<\EOF
9087 #define HAVE_OFF64_T 1
9092 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
9093 echo "configure:9094: checking for 64 bit ino_t" >&5
9094 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
9095 echo $ac_n "(cached) $ac_c" 1>&6
9096 else
9098 if test "$cross_compiling" = yes; then
9099 samba_cv_SIZEOF_INO_T=cross
9100 else
9101 cat > conftest.$ac_ext <<EOF
9102 #line 9103 "configure"
9103 #include "confdefs.h"
9104 #include <stdio.h>
9105 #include <sys/stat.h>
9106 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
9108 if { (eval echo configure:9109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9109 then
9110 samba_cv_SIZEOF_INO_T=yes
9111 else
9112 echo "configure: failed program was:" >&5
9113 cat conftest.$ac_ext >&5
9114 rm -fr conftest*
9115 samba_cv_SIZEOF_INO_T=no
9117 rm -fr conftest*
9122 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
9123 if test x"$samba_cv_SIZEOF_INO_T" = x"yes"; then
9124 cat >> confdefs.h <<\EOF
9125 #define SIZEOF_INO_T 8
9130 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
9131 echo "configure:9132: checking for ino64_t" >&5
9132 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
9133 echo $ac_n "(cached) $ac_c" 1>&6
9134 else
9136 if test "$cross_compiling" = yes; then
9137 samba_cv_HAVE_INO64_T=cross
9138 else
9139 cat > conftest.$ac_ext <<EOF
9140 #line 9141 "configure"
9141 #include "confdefs.h"
9143 #if defined(HAVE_UNISTD_H)
9144 #include <unistd.h>
9145 #endif
9146 #include <stdio.h>
9147 #include <sys/stat.h>
9148 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9150 if { (eval echo configure:9151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9151 then
9152 samba_cv_HAVE_INO64_T=yes
9153 else
9154 echo "configure: failed program was:" >&5
9155 cat conftest.$ac_ext >&5
9156 rm -fr conftest*
9157 samba_cv_HAVE_INO64_T=no
9159 rm -fr conftest*
9164 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
9165 if test x"$samba_cv_HAVE_INO64_T" = x"yes"; then
9166 cat >> confdefs.h <<\EOF
9167 #define HAVE_INO64_T 1
9172 echo $ac_n "checking for dev64_t""... $ac_c" 1>&6
9173 echo "configure:9174: checking for dev64_t" >&5
9174 if eval "test \"`echo '$''{'samba_cv_HAVE_DEV64_T'+set}'`\" = set"; then
9175 echo $ac_n "(cached) $ac_c" 1>&6
9176 else
9178 if test "$cross_compiling" = yes; then
9179 samba_cv_HAVE_DEV64_T=cross
9180 else
9181 cat > conftest.$ac_ext <<EOF
9182 #line 9183 "configure"
9183 #include "confdefs.h"
9185 #if defined(HAVE_UNISTD_H)
9186 #include <unistd.h>
9187 #endif
9188 #include <stdio.h>
9189 #include <sys/stat.h>
9190 main() { struct stat64 st; dev64_t s; if (sizeof(dev_t) == sizeof(dev64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9192 if { (eval echo configure:9193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9193 then
9194 samba_cv_HAVE_DEV64_T=yes
9195 else
9196 echo "configure: failed program was:" >&5
9197 cat conftest.$ac_ext >&5
9198 rm -fr conftest*
9199 samba_cv_HAVE_DEV64_T=no
9201 rm -fr conftest*
9206 echo "$ac_t""$samba_cv_HAVE_DEV64_T" 1>&6
9207 if test x"$samba_cv_HAVE_DEV64_T" = x"yes"; then
9208 cat >> confdefs.h <<\EOF
9209 #define HAVE_DEV64_T 1
9214 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
9215 echo "configure:9216: checking for struct dirent64" >&5
9216 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
9217 echo $ac_n "(cached) $ac_c" 1>&6
9218 else
9220 cat > conftest.$ac_ext <<EOF
9221 #line 9222 "configure"
9222 #include "confdefs.h"
9224 #if defined(HAVE_UNISTD_H)
9225 #include <unistd.h>
9226 #endif
9227 #include <sys/types.h>
9228 #include <dirent.h>
9229 int main() {
9230 struct dirent64 de;
9231 ; return 0; }
9233 if { (eval echo configure:9234: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9234 rm -rf conftest*
9235 samba_cv_HAVE_STRUCT_DIRENT64=yes
9236 else
9237 echo "configure: failed program was:" >&5
9238 cat conftest.$ac_ext >&5
9239 rm -rf conftest*
9240 samba_cv_HAVE_STRUCT_DIRENT64=no
9242 rm -f conftest*
9245 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
9246 if test x"$samba_cv_HAVE_STRUCT_DIRENT64" = x"yes" && test x"$ac_cv_func_readdir64" = x"yes"; then
9247 cat >> confdefs.h <<\EOF
9248 #define HAVE_STRUCT_DIRENT64 1
9253 echo $ac_n "checking for major macro""... $ac_c" 1>&6
9254 echo "configure:9255: checking for major macro" >&5
9255 if eval "test \"`echo '$''{'samba_cv_HAVE_DEVICE_MAJOR_FN'+set}'`\" = set"; then
9256 echo $ac_n "(cached) $ac_c" 1>&6
9257 else
9259 if test "$cross_compiling" = yes; then
9260 samba_cv_HAVE_DEVICE_MAJOR_FN=cross
9261 else
9262 cat > conftest.$ac_ext <<EOF
9263 #line 9264 "configure"
9264 #include "confdefs.h"
9266 #if defined(HAVE_UNISTD_H)
9267 #include <unistd.h>
9268 #endif
9269 #include <sys/types.h>
9270 main() { dev_t dev; int i = major(dev); return 0; }
9272 if { (eval echo configure:9273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9273 then
9274 samba_cv_HAVE_DEVICE_MAJOR_FN=yes
9275 else
9276 echo "configure: failed program was:" >&5
9277 cat conftest.$ac_ext >&5
9278 rm -fr conftest*
9279 samba_cv_HAVE_DEVICE_MAJOR_FN=no
9281 rm -fr conftest*
9286 echo "$ac_t""$samba_cv_HAVE_DEVICE_MAJOR_FN" 1>&6
9287 if test x"$samba_cv_HAVE_DEVICE_MAJOR_FN" = x"yes"; then
9288 cat >> confdefs.h <<\EOF
9289 #define HAVE_DEVICE_MAJOR_FN 1
9294 echo $ac_n "checking for minor macro""... $ac_c" 1>&6
9295 echo "configure:9296: checking for minor macro" >&5
9296 if eval "test \"`echo '$''{'samba_cv_HAVE_DEVICE_MINOR_FN'+set}'`\" = set"; then
9297 echo $ac_n "(cached) $ac_c" 1>&6
9298 else
9300 if test "$cross_compiling" = yes; then
9301 samba_cv_HAVE_DEVICE_MINOR_FN=cross
9302 else
9303 cat > conftest.$ac_ext <<EOF
9304 #line 9305 "configure"
9305 #include "confdefs.h"
9307 #if defined(HAVE_UNISTD_H)
9308 #include <unistd.h>
9309 #endif
9310 #include <sys/types.h>
9311 main() { dev_t dev; int i = minor(dev); return 0; }
9313 if { (eval echo configure:9314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9314 then
9315 samba_cv_HAVE_DEVICE_MINOR_FN=yes
9316 else
9317 echo "configure: failed program was:" >&5
9318 cat conftest.$ac_ext >&5
9319 rm -fr conftest*
9320 samba_cv_HAVE_DEVICE_MINOR_FN=no
9322 rm -fr conftest*
9327 echo "$ac_t""$samba_cv_HAVE_DEVICE_MINOR_FN" 1>&6
9328 if test x"$samba_cv_HAVE_DEVICE_MINOR_FN" = x"yes"; then
9329 cat >> confdefs.h <<\EOF
9330 #define HAVE_DEVICE_MINOR_FN 1
9335 echo $ac_n "checking for makedev macro""... $ac_c" 1>&6
9336 echo "configure:9337: checking for makedev macro" >&5
9337 if eval "test \"`echo '$''{'samba_cv_HAVE_MAKEDEV_FN'+set}'`\" = set"; then
9338 echo $ac_n "(cached) $ac_c" 1>&6
9339 else
9341 if test "$cross_compiling" = yes; then
9342 samba_cv_HAVE_MAKEDEV_FN=cross
9343 else
9344 cat > conftest.$ac_ext <<EOF
9345 #line 9346 "configure"
9346 #include "confdefs.h"
9348 #if defined(HAVE_UNISTD_H)
9349 #include <unistd.h>
9350 #endif
9351 #include <sys/types.h>
9352 main() { dev_t dev = makedev(1,2); return 0; }
9354 if { (eval echo configure:9355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9355 then
9356 samba_cv_HAVE_MAKEDEV_FN=yes
9357 else
9358 echo "configure: failed program was:" >&5
9359 cat conftest.$ac_ext >&5
9360 rm -fr conftest*
9361 samba_cv_HAVE_MAKEDEV_FN=no
9363 rm -fr conftest*
9368 echo "$ac_t""$samba_cv_HAVE_MAKEDEV_FN" 1>&6
9369 if test x"$samba_cv_HAVE_MAKEDEV_FN" = x"yes"; then
9370 cat >> confdefs.h <<\EOF
9371 #define MAKEDEV_FN 1
9376 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
9377 echo "configure:9378: checking for unsigned char" >&5
9378 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
9379 echo $ac_n "(cached) $ac_c" 1>&6
9380 else
9382 if test "$cross_compiling" = yes; then
9383 samba_cv_HAVE_UNSIGNED_CHAR=cross
9384 else
9385 cat > conftest.$ac_ext <<EOF
9386 #line 9387 "configure"
9387 #include "confdefs.h"
9388 #include <stdio.h>
9389 main() { char c; c=250; exit((c > 0)?0:1); }
9391 if { (eval echo configure:9392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9392 then
9393 samba_cv_HAVE_UNSIGNED_CHAR=yes
9394 else
9395 echo "configure: failed program was:" >&5
9396 cat conftest.$ac_ext >&5
9397 rm -fr conftest*
9398 samba_cv_HAVE_UNSIGNED_CHAR=no
9400 rm -fr conftest*
9405 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
9406 if test x"$samba_cv_HAVE_UNSIGNED_CHAR" = x"yes"; then
9407 cat >> confdefs.h <<\EOF
9408 #define HAVE_UNSIGNED_CHAR 1
9413 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
9414 echo "configure:9415: checking for sin_len in sock" >&5
9415 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
9416 echo $ac_n "(cached) $ac_c" 1>&6
9417 else
9419 cat > conftest.$ac_ext <<EOF
9420 #line 9421 "configure"
9421 #include "confdefs.h"
9422 #include <sys/types.h>
9423 #include <sys/socket.h>
9424 #include <netinet/in.h>
9425 int main() {
9426 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
9427 ; return 0; }
9429 if { (eval echo configure:9430: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9430 rm -rf conftest*
9431 samba_cv_HAVE_SOCK_SIN_LEN=yes
9432 else
9433 echo "configure: failed program was:" >&5
9434 cat conftest.$ac_ext >&5
9435 rm -rf conftest*
9436 samba_cv_HAVE_SOCK_SIN_LEN=no
9438 rm -f conftest*
9441 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
9442 if test x"$samba_cv_HAVE_SOCK_SIN_LEN" = x"yes"; then
9443 cat >> confdefs.h <<\EOF
9444 #define HAVE_SOCK_SIN_LEN 1
9449 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
9450 echo "configure:9451: checking whether seekdir returns void" >&5
9451 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
9452 echo $ac_n "(cached) $ac_c" 1>&6
9453 else
9455 cat > conftest.$ac_ext <<EOF
9456 #line 9457 "configure"
9457 #include "confdefs.h"
9458 #include <sys/types.h>
9459 #include <dirent.h>
9460 void seekdir(DIR *d, long loc) { return; }
9461 int main() {
9462 return 0;
9463 ; return 0; }
9465 if { (eval echo configure:9466: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9466 rm -rf conftest*
9467 samba_cv_SEEKDIR_RETURNS_VOID=yes
9468 else
9469 echo "configure: failed program was:" >&5
9470 cat conftest.$ac_ext >&5
9471 rm -rf conftest*
9472 samba_cv_SEEKDIR_RETURNS_VOID=no
9474 rm -f conftest*
9477 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
9478 if test x"$samba_cv_SEEKDIR_RETURNS_VOID" = x"yes"; then
9479 cat >> confdefs.h <<\EOF
9480 #define SEEKDIR_RETURNS_VOID 1
9485 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
9486 echo "configure:9487: checking for __FILE__ macro" >&5
9487 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
9488 echo $ac_n "(cached) $ac_c" 1>&6
9489 else
9491 cat > conftest.$ac_ext <<EOF
9492 #line 9493 "configure"
9493 #include "confdefs.h"
9494 #include <stdio.h>
9495 int main() {
9496 printf("%s\n", __FILE__);
9497 ; return 0; }
9499 if { (eval echo configure:9500: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9500 rm -rf conftest*
9501 samba_cv_HAVE_FILE_MACRO=yes
9502 else
9503 echo "configure: failed program was:" >&5
9504 cat conftest.$ac_ext >&5
9505 rm -rf conftest*
9506 samba_cv_HAVE_FILE_MACRO=no
9508 rm -f conftest*
9511 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
9512 if test x"$samba_cv_HAVE_FILE_MACRO" = x"yes"; then
9513 cat >> confdefs.h <<\EOF
9514 #define HAVE_FILE_MACRO 1
9519 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
9520 echo "configure:9521: checking for __FUNCTION__ macro" >&5
9521 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
9522 echo $ac_n "(cached) $ac_c" 1>&6
9523 else
9525 cat > conftest.$ac_ext <<EOF
9526 #line 9527 "configure"
9527 #include "confdefs.h"
9528 #include <stdio.h>
9529 int main() {
9530 printf("%s\n", __FUNCTION__);
9531 ; return 0; }
9533 if { (eval echo configure:9534: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9534 rm -rf conftest*
9535 samba_cv_HAVE_FUNCTION_MACRO=yes
9536 else
9537 echo "configure: failed program was:" >&5
9538 cat conftest.$ac_ext >&5
9539 rm -rf conftest*
9540 samba_cv_HAVE_FUNCTION_MACRO=no
9542 rm -f conftest*
9545 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
9546 if test x"$samba_cv_HAVE_FUNCTION_MACRO" = x"yes"; then
9547 cat >> confdefs.h <<\EOF
9548 #define HAVE_FUNCTION_MACRO 1
9553 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
9554 echo "configure:9555: checking if gettimeofday takes tz argument" >&5
9555 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
9556 echo $ac_n "(cached) $ac_c" 1>&6
9557 else
9559 if test "$cross_compiling" = yes; then
9560 samba_cv_HAVE_GETTIMEOFDAY_TZ=cross
9561 else
9562 cat > conftest.$ac_ext <<EOF
9563 #line 9564 "configure"
9564 #include "confdefs.h"
9566 #include <sys/time.h>
9567 #include <unistd.h>
9568 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
9570 if { (eval echo configure:9571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9571 then
9572 samba_cv_HAVE_GETTIMEOFDAY_TZ=yes
9573 else
9574 echo "configure: failed program was:" >&5
9575 cat conftest.$ac_ext >&5
9576 rm -fr conftest*
9577 samba_cv_HAVE_GETTIMEOFDAY_TZ=no
9579 rm -fr conftest*
9584 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
9585 if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
9586 cat >> confdefs.h <<\EOF
9587 #define HAVE_GETTIMEOFDAY_TZ 1
9592 echo $ac_n "checking for __va_copy""... $ac_c" 1>&6
9593 echo "configure:9594: checking for __va_copy" >&5
9594 if eval "test \"`echo '$''{'samba_cv_HAVE_VA_COPY'+set}'`\" = set"; then
9595 echo $ac_n "(cached) $ac_c" 1>&6
9596 else
9598 cat > conftest.$ac_ext <<EOF
9599 #line 9600 "configure"
9600 #include "confdefs.h"
9601 #include <stdarg.h>
9602 va_list ap1,ap2;
9603 int main() {
9604 __va_copy(ap1,ap2);
9605 ; return 0; }
9607 if { (eval echo configure:9608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9608 rm -rf conftest*
9609 samba_cv_HAVE_VA_COPY=yes
9610 else
9611 echo "configure: failed program was:" >&5
9612 cat conftest.$ac_ext >&5
9613 rm -rf conftest*
9614 samba_cv_HAVE_VA_COPY=no
9616 rm -f conftest*
9619 echo "$ac_t""$samba_cv_HAVE_VA_COPY" 1>&6
9620 if test x"$samba_cv_HAVE_VA_COPY" = x"yes"; then
9621 cat >> confdefs.h <<\EOF
9622 #define HAVE_VA_COPY 1
9627 echo $ac_n "checking for C99 vsnprintf""... $ac_c" 1>&6
9628 echo "configure:9629: checking for C99 vsnprintf" >&5
9629 if eval "test \"`echo '$''{'samba_cv_HAVE_C99_VSNPRINTF'+set}'`\" = set"; then
9630 echo $ac_n "(cached) $ac_c" 1>&6
9631 else
9633 if test "$cross_compiling" = yes; then
9634 samba_cv_HAVE_C99_VSNPRINTF=cross
9635 else
9636 cat > conftest.$ac_ext <<EOF
9637 #line 9638 "configure"
9638 #include "confdefs.h"
9640 #include <sys/types.h>
9641 #include <stdarg.h>
9642 void foo(const char *format, ...) {
9643 va_list ap;
9644 int len;
9645 char buf[5];
9647 va_start(ap, format);
9648 len = vsnprintf(buf, 0, format, ap);
9649 va_end(ap);
9650 if (len != 5) exit(1);
9652 va_start(ap, format);
9653 len = vsnprintf(0, 0, format, ap);
9654 va_end(ap);
9655 if (len != 5) exit(1);
9657 if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
9659 exit(0);
9661 main() { foo("hello"); }
9664 if { (eval echo configure:9665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9665 then
9666 samba_cv_HAVE_C99_VSNPRINTF=yes
9667 else
9668 echo "configure: failed program was:" >&5
9669 cat conftest.$ac_ext >&5
9670 rm -fr conftest*
9671 samba_cv_HAVE_C99_VSNPRINTF=no
9673 rm -fr conftest*
9678 echo "$ac_t""$samba_cv_HAVE_C99_VSNPRINTF" 1>&6
9679 if test x"$samba_cv_HAVE_C99_VSNPRINTF" = x"yes"; then
9680 cat >> confdefs.h <<\EOF
9681 #define HAVE_C99_VSNPRINTF 1
9686 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
9687 echo "configure:9688: checking for broken readdir" >&5
9688 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
9689 echo $ac_n "(cached) $ac_c" 1>&6
9690 else
9692 if test "$cross_compiling" = yes; then
9693 samba_cv_HAVE_BROKEN_READDIR=cross
9694 else
9695 cat > conftest.$ac_ext <<EOF
9696 #line 9697 "configure"
9697 #include "confdefs.h"
9698 #include <sys/types.h>
9699 #include <dirent.h>
9700 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
9701 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
9702 di->d_name[0] == 0) exit(0); exit(1);}
9704 if { (eval echo configure:9705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9705 then
9706 samba_cv_HAVE_BROKEN_READDIR=yes
9707 else
9708 echo "configure: failed program was:" >&5
9709 cat conftest.$ac_ext >&5
9710 rm -fr conftest*
9711 samba_cv_HAVE_BROKEN_READDIR=no
9713 rm -fr conftest*
9718 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
9719 if test x"$samba_cv_HAVE_BROKEN_READDIR" = x"yes"; then
9720 cat >> confdefs.h <<\EOF
9721 #define HAVE_BROKEN_READDIR 1
9726 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
9727 echo "configure:9728: checking for utimbuf" >&5
9728 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
9729 echo $ac_n "(cached) $ac_c" 1>&6
9730 else
9732 cat > conftest.$ac_ext <<EOF
9733 #line 9734 "configure"
9734 #include "confdefs.h"
9735 #include <sys/types.h>
9736 #include <utime.h>
9737 int main() {
9738 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
9739 ; return 0; }
9741 if { (eval echo configure:9742: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9742 rm -rf conftest*
9743 samba_cv_HAVE_UTIMBUF=yes
9744 else
9745 echo "configure: failed program was:" >&5
9746 cat conftest.$ac_ext >&5
9747 rm -rf conftest*
9748 samba_cv_HAVE_UTIMBUF=no
9750 rm -f conftest*
9753 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
9754 if test x"$samba_cv_HAVE_UTIMBUF" = x"yes"; then
9755 cat >> confdefs.h <<\EOF
9756 #define HAVE_UTIMBUF 1
9762 for ac_func in pututline pututxline updwtmp updwtmpx getutmpx
9764 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9765 echo "configure:9766: checking for $ac_func" >&5
9766 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9767 echo $ac_n "(cached) $ac_c" 1>&6
9768 else
9769 cat > conftest.$ac_ext <<EOF
9770 #line 9771 "configure"
9771 #include "confdefs.h"
9772 /* System header to define __stub macros and hopefully few prototypes,
9773 which can conflict with char $ac_func(); below. */
9774 #include <assert.h>
9775 /* Override any gcc2 internal prototype to avoid an error. */
9776 /* We use char because int might match the return type of a gcc2
9777 builtin and then its argument prototype would still apply. */
9778 char $ac_func();
9780 int main() {
9782 /* The GNU C library defines this for functions which it implements
9783 to always fail with ENOSYS. Some functions are actually named
9784 something starting with __ and the normal name is an alias. */
9785 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9786 choke me
9787 #else
9788 $ac_func();
9789 #endif
9791 ; return 0; }
9793 if { (eval echo configure:9794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9794 rm -rf conftest*
9795 eval "ac_cv_func_$ac_func=yes"
9796 else
9797 echo "configure: failed program was:" >&5
9798 cat conftest.$ac_ext >&5
9799 rm -rf conftest*
9800 eval "ac_cv_func_$ac_func=no"
9802 rm -f conftest*
9805 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9806 echo "$ac_t""yes" 1>&6
9807 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9808 cat >> confdefs.h <<EOF
9809 #define $ac_tr_func 1
9812 else
9813 echo "$ac_t""no" 1>&6
9815 done
9818 echo $ac_n "checking for ut_name in utmp""... $ac_c" 1>&6
9819 echo "configure:9820: checking for ut_name in utmp" >&5
9820 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_NAME'+set}'`\" = set"; then
9821 echo $ac_n "(cached) $ac_c" 1>&6
9822 else
9824 cat > conftest.$ac_ext <<EOF
9825 #line 9826 "configure"
9826 #include "confdefs.h"
9827 #include <sys/types.h>
9828 #include <utmp.h>
9829 int main() {
9830 struct utmp ut; ut.ut_name[0] = 'a';
9831 ; return 0; }
9833 if { (eval echo configure:9834: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9834 rm -rf conftest*
9835 samba_cv_HAVE_UT_UT_NAME=yes
9836 else
9837 echo "configure: failed program was:" >&5
9838 cat conftest.$ac_ext >&5
9839 rm -rf conftest*
9840 samba_cv_HAVE_UT_UT_NAME=no
9842 rm -f conftest*
9845 echo "$ac_t""$samba_cv_HAVE_UT_UT_NAME" 1>&6
9846 if test x"$samba_cv_HAVE_UT_UT_NAME" = x"yes"; then
9847 cat >> confdefs.h <<\EOF
9848 #define HAVE_UT_UT_NAME 1
9853 echo $ac_n "checking for ut_user in utmp""... $ac_c" 1>&6
9854 echo "configure:9855: checking for ut_user in utmp" >&5
9855 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_USER'+set}'`\" = set"; then
9856 echo $ac_n "(cached) $ac_c" 1>&6
9857 else
9859 cat > conftest.$ac_ext <<EOF
9860 #line 9861 "configure"
9861 #include "confdefs.h"
9862 #include <sys/types.h>
9863 #include <utmp.h>
9864 int main() {
9865 struct utmp ut; ut.ut_user[0] = 'a';
9866 ; return 0; }
9868 if { (eval echo configure:9869: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9869 rm -rf conftest*
9870 samba_cv_HAVE_UT_UT_USER=yes
9871 else
9872 echo "configure: failed program was:" >&5
9873 cat conftest.$ac_ext >&5
9874 rm -rf conftest*
9875 samba_cv_HAVE_UT_UT_USER=no
9877 rm -f conftest*
9880 echo "$ac_t""$samba_cv_HAVE_UT_UT_USER" 1>&6
9881 if test x"$samba_cv_HAVE_UT_UT_USER" = x"yes"; then
9882 cat >> confdefs.h <<\EOF
9883 #define HAVE_UT_UT_USER 1
9888 echo $ac_n "checking for ut_id in utmp""... $ac_c" 1>&6
9889 echo "configure:9890: checking for ut_id in utmp" >&5
9890 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ID'+set}'`\" = set"; then
9891 echo $ac_n "(cached) $ac_c" 1>&6
9892 else
9894 cat > conftest.$ac_ext <<EOF
9895 #line 9896 "configure"
9896 #include "confdefs.h"
9897 #include <sys/types.h>
9898 #include <utmp.h>
9899 int main() {
9900 struct utmp ut; ut.ut_id[0] = 'a';
9901 ; return 0; }
9903 if { (eval echo configure:9904: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9904 rm -rf conftest*
9905 samba_cv_HAVE_UT_UT_ID=yes
9906 else
9907 echo "configure: failed program was:" >&5
9908 cat conftest.$ac_ext >&5
9909 rm -rf conftest*
9910 samba_cv_HAVE_UT_UT_ID=no
9912 rm -f conftest*
9915 echo "$ac_t""$samba_cv_HAVE_UT_UT_ID" 1>&6
9916 if test x"$samba_cv_HAVE_UT_UT_ID" = x"yes"; then
9917 cat >> confdefs.h <<\EOF
9918 #define HAVE_UT_UT_ID 1
9923 echo $ac_n "checking for ut_host in utmp""... $ac_c" 1>&6
9924 echo "configure:9925: checking for ut_host in utmp" >&5
9925 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_HOST'+set}'`\" = set"; then
9926 echo $ac_n "(cached) $ac_c" 1>&6
9927 else
9929 cat > conftest.$ac_ext <<EOF
9930 #line 9931 "configure"
9931 #include "confdefs.h"
9932 #include <sys/types.h>
9933 #include <utmp.h>
9934 int main() {
9935 struct utmp ut; ut.ut_host[0] = 'a';
9936 ; return 0; }
9938 if { (eval echo configure:9939: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9939 rm -rf conftest*
9940 samba_cv_HAVE_UT_UT_HOST=yes
9941 else
9942 echo "configure: failed program was:" >&5
9943 cat conftest.$ac_ext >&5
9944 rm -rf conftest*
9945 samba_cv_HAVE_UT_UT_HOST=no
9947 rm -f conftest*
9950 echo "$ac_t""$samba_cv_HAVE_UT_UT_HOST" 1>&6
9951 if test x"$samba_cv_HAVE_UT_UT_HOST" = x"yes"; then
9952 cat >> confdefs.h <<\EOF
9953 #define HAVE_UT_UT_HOST 1
9958 echo $ac_n "checking for ut_time in utmp""... $ac_c" 1>&6
9959 echo "configure:9960: checking for ut_time in utmp" >&5
9960 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TIME'+set}'`\" = set"; then
9961 echo $ac_n "(cached) $ac_c" 1>&6
9962 else
9964 cat > conftest.$ac_ext <<EOF
9965 #line 9966 "configure"
9966 #include "confdefs.h"
9967 #include <sys/types.h>
9968 #include <utmp.h>
9969 int main() {
9970 struct utmp ut; time_t t; ut.ut_time = t;
9971 ; return 0; }
9973 if { (eval echo configure:9974: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9974 rm -rf conftest*
9975 samba_cv_HAVE_UT_UT_TIME=yes
9976 else
9977 echo "configure: failed program was:" >&5
9978 cat conftest.$ac_ext >&5
9979 rm -rf conftest*
9980 samba_cv_HAVE_UT_UT_TIME=no
9982 rm -f conftest*
9985 echo "$ac_t""$samba_cv_HAVE_UT_UT_TIME" 1>&6
9986 if test x"$samba_cv_HAVE_UT_UT_TIME" = x"yes"; then
9987 cat >> confdefs.h <<\EOF
9988 #define HAVE_UT_UT_TIME 1
9993 echo $ac_n "checking for ut_tv in utmp""... $ac_c" 1>&6
9994 echo "configure:9995: checking for ut_tv in utmp" >&5
9995 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TV'+set}'`\" = set"; then
9996 echo $ac_n "(cached) $ac_c" 1>&6
9997 else
9999 cat > conftest.$ac_ext <<EOF
10000 #line 10001 "configure"
10001 #include "confdefs.h"
10002 #include <sys/types.h>
10003 #include <utmp.h>
10004 int main() {
10005 struct utmp ut; struct timeval tv; ut.ut_tv = tv;
10006 ; return 0; }
10008 if { (eval echo configure:10009: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10009 rm -rf conftest*
10010 samba_cv_HAVE_UT_UT_TV=yes
10011 else
10012 echo "configure: failed program was:" >&5
10013 cat conftest.$ac_ext >&5
10014 rm -rf conftest*
10015 samba_cv_HAVE_UT_UT_TV=no
10017 rm -f conftest*
10020 echo "$ac_t""$samba_cv_HAVE_UT_UT_TV" 1>&6
10021 if test x"$samba_cv_HAVE_UT_UT_TV" = x"yes"; then
10022 cat >> confdefs.h <<\EOF
10023 #define HAVE_UT_UT_TV 1
10028 echo $ac_n "checking for ut_type in utmp""... $ac_c" 1>&6
10029 echo "configure:10030: checking for ut_type in utmp" >&5
10030 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TYPE'+set}'`\" = set"; then
10031 echo $ac_n "(cached) $ac_c" 1>&6
10032 else
10034 cat > conftest.$ac_ext <<EOF
10035 #line 10036 "configure"
10036 #include "confdefs.h"
10037 #include <sys/types.h>
10038 #include <utmp.h>
10039 int main() {
10040 struct utmp ut; ut.ut_type = 0;
10041 ; return 0; }
10043 if { (eval echo configure:10044: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10044 rm -rf conftest*
10045 samba_cv_HAVE_UT_UT_TYPE=yes
10046 else
10047 echo "configure: failed program was:" >&5
10048 cat conftest.$ac_ext >&5
10049 rm -rf conftest*
10050 samba_cv_HAVE_UT_UT_TYPE=no
10052 rm -f conftest*
10055 echo "$ac_t""$samba_cv_HAVE_UT_UT_TYPE" 1>&6
10056 if test x"$samba_cv_HAVE_UT_UT_TYPE" = x"yes"; then
10057 cat >> confdefs.h <<\EOF
10058 #define HAVE_UT_UT_TYPE 1
10063 echo $ac_n "checking for ut_pid in utmp""... $ac_c" 1>&6
10064 echo "configure:10065: checking for ut_pid in utmp" >&5
10065 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_PID'+set}'`\" = set"; then
10066 echo $ac_n "(cached) $ac_c" 1>&6
10067 else
10069 cat > conftest.$ac_ext <<EOF
10070 #line 10071 "configure"
10071 #include "confdefs.h"
10072 #include <sys/types.h>
10073 #include <utmp.h>
10074 int main() {
10075 struct utmp ut; ut.ut_pid = 0;
10076 ; return 0; }
10078 if { (eval echo configure:10079: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10079 rm -rf conftest*
10080 samba_cv_HAVE_UT_UT_PID=yes
10081 else
10082 echo "configure: failed program was:" >&5
10083 cat conftest.$ac_ext >&5
10084 rm -rf conftest*
10085 samba_cv_HAVE_UT_UT_PID=no
10087 rm -f conftest*
10090 echo "$ac_t""$samba_cv_HAVE_UT_UT_PID" 1>&6
10091 if test x"$samba_cv_HAVE_UT_UT_PID" = x"yes"; then
10092 cat >> confdefs.h <<\EOF
10093 #define HAVE_UT_UT_PID 1
10098 echo $ac_n "checking for ut_exit in utmp""... $ac_c" 1>&6
10099 echo "configure:10100: checking for ut_exit in utmp" >&5
10100 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_EXIT'+set}'`\" = set"; then
10101 echo $ac_n "(cached) $ac_c" 1>&6
10102 else
10104 cat > conftest.$ac_ext <<EOF
10105 #line 10106 "configure"
10106 #include "confdefs.h"
10107 #include <sys/types.h>
10108 #include <utmp.h>
10109 int main() {
10110 struct utmp ut; ut.ut_exit.e_exit = 0;
10111 ; return 0; }
10113 if { (eval echo configure:10114: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10114 rm -rf conftest*
10115 samba_cv_HAVE_UT_UT_EXIT=yes
10116 else
10117 echo "configure: failed program was:" >&5
10118 cat conftest.$ac_ext >&5
10119 rm -rf conftest*
10120 samba_cv_HAVE_UT_UT_EXIT=no
10122 rm -f conftest*
10125 echo "$ac_t""$samba_cv_HAVE_UT_UT_EXIT" 1>&6
10126 if test x"$samba_cv_HAVE_UT_UT_EXIT" = x"yes"; then
10127 cat >> confdefs.h <<\EOF
10128 #define HAVE_UT_UT_EXIT 1
10133 echo $ac_n "checking for ut_addr in utmp""... $ac_c" 1>&6
10134 echo "configure:10135: checking for ut_addr in utmp" >&5
10135 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ADDR'+set}'`\" = set"; then
10136 echo $ac_n "(cached) $ac_c" 1>&6
10137 else
10139 cat > conftest.$ac_ext <<EOF
10140 #line 10141 "configure"
10141 #include "confdefs.h"
10142 #include <sys/types.h>
10143 #include <utmp.h>
10144 int main() {
10145 struct utmp ut; ut.ut_addr = 0;
10146 ; return 0; }
10148 if { (eval echo configure:10149: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10149 rm -rf conftest*
10150 samba_cv_HAVE_UT_UT_ADDR=yes
10151 else
10152 echo "configure: failed program was:" >&5
10153 cat conftest.$ac_ext >&5
10154 rm -rf conftest*
10155 samba_cv_HAVE_UT_UT_ADDR=no
10157 rm -f conftest*
10160 echo "$ac_t""$samba_cv_HAVE_UT_UT_ADDR" 1>&6
10161 if test x"$samba_cv_HAVE_UT_UT_ADDR" = x"yes"; then
10162 cat >> confdefs.h <<\EOF
10163 #define HAVE_UT_UT_ADDR 1
10168 if test x$ac_cv_func_pututline = xyes ; then
10169 echo $ac_n "checking whether pututline returns pointer""... $ac_c" 1>&6
10170 echo "configure:10171: checking whether pututline returns pointer" >&5
10171 if eval "test \"`echo '$''{'samba_cv_PUTUTLINE_RETURNS_UTMP'+set}'`\" = set"; then
10172 echo $ac_n "(cached) $ac_c" 1>&6
10173 else
10175 cat > conftest.$ac_ext <<EOF
10176 #line 10177 "configure"
10177 #include "confdefs.h"
10178 #include <sys/types.h>
10179 #include <utmp.h>
10180 int main() {
10181 struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
10182 ; return 0; }
10184 if { (eval echo configure:10185: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10185 rm -rf conftest*
10186 samba_cv_PUTUTLINE_RETURNS_UTMP=yes
10187 else
10188 echo "configure: failed program was:" >&5
10189 cat conftest.$ac_ext >&5
10190 rm -rf conftest*
10191 samba_cv_PUTUTLINE_RETURNS_UTMP=no
10193 rm -f conftest*
10196 echo "$ac_t""$samba_cv_PUTUTLINE_RETURNS_UTMP" 1>&6
10197 if test x"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x"yes"; then
10198 cat >> confdefs.h <<\EOF
10199 #define PUTUTLINE_RETURNS_UTMP 1
10205 echo $ac_n "checking for ut_syslen in utmpx""... $ac_c" 1>&6
10206 echo "configure:10207: checking for ut_syslen in utmpx" >&5
10207 if eval "test \"`echo '$''{'samba_cv_HAVE_UX_UT_SYSLEN'+set}'`\" = set"; then
10208 echo $ac_n "(cached) $ac_c" 1>&6
10209 else
10211 cat > conftest.$ac_ext <<EOF
10212 #line 10213 "configure"
10213 #include "confdefs.h"
10214 #include <sys/types.h>
10215 #include <utmpx.h>
10216 int main() {
10217 struct utmpx ux; ux.ut_syslen = 0;
10218 ; return 0; }
10220 if { (eval echo configure:10221: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10221 rm -rf conftest*
10222 samba_cv_HAVE_UX_UT_SYSLEN=yes
10223 else
10224 echo "configure: failed program was:" >&5
10225 cat conftest.$ac_ext >&5
10226 rm -rf conftest*
10227 samba_cv_HAVE_UX_UT_SYSLEN=no
10229 rm -f conftest*
10232 echo "$ac_t""$samba_cv_HAVE_UX_UT_SYSLEN" 1>&6
10233 if test x"$samba_cv_HAVE_UX_UT_SYSLEN" = x"yes"; then
10234 cat >> confdefs.h <<\EOF
10235 #define HAVE_UX_UT_SYSLEN 1
10240 echo $ac_n "checking for Linux kernel oplocks""... $ac_c" 1>&6
10241 echo "configure:10242: checking for Linux kernel oplocks" >&5
10242 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_LINUX'+set}'`\" = set"; then
10243 echo $ac_n "(cached) $ac_c" 1>&6
10244 else
10246 if test "$cross_compiling" = yes; then
10247 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=cross
10248 else
10249 cat > conftest.$ac_ext <<EOF
10250 #line 10251 "configure"
10251 #include "confdefs.h"
10253 #include <sys/types.h>
10254 #include <fcntl.h>
10255 #ifndef F_GETLEASE
10256 #define F_GETLEASE 1025
10257 #endif
10258 main() {
10259 int fd = open("/dev/null", O_RDONLY);
10260 return fcntl(fd, F_GETLEASE, 0) == -1;
10264 if { (eval echo configure:10265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10265 then
10266 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=yes
10267 else
10268 echo "configure: failed program was:" >&5
10269 cat conftest.$ac_ext >&5
10270 rm -fr conftest*
10271 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=no
10273 rm -fr conftest*
10278 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" 1>&6
10279 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x"yes"; then
10280 cat >> confdefs.h <<\EOF
10281 #define HAVE_KERNEL_OPLOCKS_LINUX 1
10286 echo $ac_n "checking for kernel change notify support""... $ac_c" 1>&6
10287 echo "configure:10288: checking for kernel change notify support" >&5
10288 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_CHANGE_NOTIFY'+set}'`\" = set"; then
10289 echo $ac_n "(cached) $ac_c" 1>&6
10290 else
10292 if test "$cross_compiling" = yes; then
10293 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=cross
10294 else
10295 cat > conftest.$ac_ext <<EOF
10296 #line 10297 "configure"
10297 #include "confdefs.h"
10299 #include <sys/types.h>
10300 #include <fcntl.h>
10301 #include <signal.h>
10302 #ifndef F_NOTIFY
10303 #define F_NOTIFY 1026
10304 #endif
10305 main() {
10306 exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0);
10310 if { (eval echo configure:10311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10311 then
10312 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=yes
10313 else
10314 echo "configure: failed program was:" >&5
10315 cat conftest.$ac_ext >&5
10316 rm -fr conftest*
10317 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=no
10319 rm -fr conftest*
10324 echo "$ac_t""$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" 1>&6
10325 if test x"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x"yes"; then
10326 cat >> confdefs.h <<\EOF
10327 #define HAVE_KERNEL_CHANGE_NOTIFY 1
10332 echo $ac_n "checking for kernel share modes""... $ac_c" 1>&6
10333 echo "configure:10334: checking for kernel share modes" >&5
10334 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_SHARE_MODES'+set}'`\" = set"; then
10335 echo $ac_n "(cached) $ac_c" 1>&6
10336 else
10338 if test "$cross_compiling" = yes; then
10339 samba_cv_HAVE_KERNEL_SHARE_MODES=cross
10340 else
10341 cat > conftest.$ac_ext <<EOF
10342 #line 10343 "configure"
10343 #include "confdefs.h"
10345 #include <sys/types.h>
10346 #include <fcntl.h>
10347 #include <signal.h>
10348 #include <sys/file.h>
10349 #ifndef LOCK_MAND
10350 #define LOCK_MAND 32
10351 #define LOCK_READ 64
10352 #endif
10353 main() {
10354 exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
10358 if { (eval echo configure:10359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10359 then
10360 samba_cv_HAVE_KERNEL_SHARE_MODES=yes
10361 else
10362 echo "configure: failed program was:" >&5
10363 cat conftest.$ac_ext >&5
10364 rm -fr conftest*
10365 samba_cv_HAVE_KERNEL_SHARE_MODES=no
10367 rm -fr conftest*
10372 echo "$ac_t""$samba_cv_HAVE_KERNEL_SHARE_MODES" 1>&6
10373 if test x"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x"yes"; then
10374 cat >> confdefs.h <<\EOF
10375 #define HAVE_KERNEL_SHARE_MODES 1
10383 echo $ac_n "checking for IRIX kernel oplock type definitions""... $ac_c" 1>&6
10384 echo "configure:10385: checking for IRIX kernel oplock type definitions" >&5
10385 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_IRIX'+set}'`\" = set"; then
10386 echo $ac_n "(cached) $ac_c" 1>&6
10387 else
10389 cat > conftest.$ac_ext <<EOF
10390 #line 10391 "configure"
10391 #include "confdefs.h"
10392 #include <sys/types.h>
10393 #include <fcntl.h>
10394 int main() {
10395 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
10396 ; return 0; }
10398 if { (eval echo configure:10399: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10399 rm -rf conftest*
10400 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=yes
10401 else
10402 echo "configure: failed program was:" >&5
10403 cat conftest.$ac_ext >&5
10404 rm -rf conftest*
10405 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=no
10407 rm -f conftest*
10410 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" 1>&6
10411 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x"yes"; then
10412 cat >> confdefs.h <<\EOF
10413 #define HAVE_KERNEL_OPLOCKS_IRIX 1
10418 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
10419 echo "configure:10420: checking for irix specific capabilities" >&5
10420 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
10421 echo $ac_n "(cached) $ac_c" 1>&6
10422 else
10424 if test "$cross_compiling" = yes; then
10425 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=cross
10426 else
10427 cat > conftest.$ac_ext <<EOF
10428 #line 10429 "configure"
10429 #include "confdefs.h"
10430 #include <sys/types.h>
10431 #include <sys/capability.h>
10432 main() {
10433 cap_t cap;
10434 if ((cap = cap_get_proc()) == NULL)
10435 exit(1);
10436 cap->cap_effective |= CAP_NETWORK_MGT;
10437 cap->cap_inheritable |= CAP_NETWORK_MGT;
10438 cap_set_proc(cap);
10439 exit(0);
10443 if { (eval echo configure:10444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10444 then
10445 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=yes
10446 else
10447 echo "configure: failed program was:" >&5
10448 cat conftest.$ac_ext >&5
10449 rm -fr conftest*
10450 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=no
10452 rm -fr conftest*
10457 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
10458 if test x"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x"yes"; then
10459 cat >> confdefs.h <<\EOF
10460 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
10466 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
10467 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
10470 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10471 echo "configure:10472: checking for int16 typedef included by rpc/rpc.h" >&5
10472 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10473 echo $ac_n "(cached) $ac_c" 1>&6
10474 else
10476 cat > conftest.$ac_ext <<EOF
10477 #line 10478 "configure"
10478 #include "confdefs.h"
10479 #include <sys/types.h>
10480 #if defined(HAVE_RPC_RPC_H)
10481 #include <rpc/rpc.h>
10482 #endif
10483 int main() {
10484 int16 testvar;
10485 ; return 0; }
10487 if { (eval echo configure:10488: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10488 rm -rf conftest*
10489 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=yes
10490 else
10491 echo "configure: failed program was:" >&5
10492 cat conftest.$ac_ext >&5
10493 rm -rf conftest*
10494 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=no
10496 rm -f conftest*
10499 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
10500 if test x"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x"yes"; then
10501 cat >> confdefs.h <<\EOF
10502 #define HAVE_INT16_FROM_RPC_RPC_H 1
10507 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10508 echo "configure:10509: checking for uint16 typedef included by rpc/rpc.h" >&5
10509 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10510 echo $ac_n "(cached) $ac_c" 1>&6
10511 else
10513 cat > conftest.$ac_ext <<EOF
10514 #line 10515 "configure"
10515 #include "confdefs.h"
10516 #include <sys/types.h>
10517 #if defined(HAVE_RPC_RPC_H)
10518 #include <rpc/rpc.h>
10519 #endif
10520 int main() {
10521 uint16 testvar;
10522 ; return 0; }
10524 if { (eval echo configure:10525: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10525 rm -rf conftest*
10526 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=yes
10527 else
10528 echo "configure: failed program was:" >&5
10529 cat conftest.$ac_ext >&5
10530 rm -rf conftest*
10531 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=no
10533 rm -f conftest*
10536 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
10537 if test x"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x"yes"; then
10538 cat >> confdefs.h <<\EOF
10539 #define HAVE_UINT16_FROM_RPC_RPC_H 1
10544 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10545 echo "configure:10546: checking for int32 typedef included by rpc/rpc.h" >&5
10546 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10547 echo $ac_n "(cached) $ac_c" 1>&6
10548 else
10550 cat > conftest.$ac_ext <<EOF
10551 #line 10552 "configure"
10552 #include "confdefs.h"
10553 #include <sys/types.h>
10554 #if defined(HAVE_RPC_RPC_H)
10555 #include <rpc/rpc.h>
10556 #endif
10557 int main() {
10558 int32 testvar;
10559 ; return 0; }
10561 if { (eval echo configure:10562: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10562 rm -rf conftest*
10563 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=yes
10564 else
10565 echo "configure: failed program was:" >&5
10566 cat conftest.$ac_ext >&5
10567 rm -rf conftest*
10568 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=no
10570 rm -f conftest*
10573 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
10574 if test x"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x"yes"; then
10575 cat >> confdefs.h <<\EOF
10576 #define HAVE_INT32_FROM_RPC_RPC_H 1
10581 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10582 echo "configure:10583: checking for uint32 typedef included by rpc/rpc.h" >&5
10583 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10584 echo $ac_n "(cached) $ac_c" 1>&6
10585 else
10587 cat > conftest.$ac_ext <<EOF
10588 #line 10589 "configure"
10589 #include "confdefs.h"
10590 #include <sys/types.h>
10591 #if defined(HAVE_RPC_RPC_H)
10592 #include <rpc/rpc.h>
10593 #endif
10594 int main() {
10595 uint32 testvar;
10596 ; return 0; }
10598 if { (eval echo configure:10599: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10599 rm -rf conftest*
10600 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=yes
10601 else
10602 echo "configure: failed program was:" >&5
10603 cat conftest.$ac_ext >&5
10604 rm -rf conftest*
10605 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=no
10607 rm -f conftest*
10610 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
10611 if test x"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x"yes"; then
10612 cat >> confdefs.h <<\EOF
10613 #define HAVE_UINT32_FROM_RPC_RPC_H 1
10619 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
10620 echo "configure:10621: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
10621 if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
10622 echo $ac_n "(cached) $ac_c" 1>&6
10623 else
10625 cat > conftest.$ac_ext <<EOF
10626 #line 10627 "configure"
10627 #include "confdefs.h"
10628 #include <sys/types.h>
10629 #ifdef HAVE_SYS_SECURITY_H
10630 #include <sys/security.h>
10631 #include <prot.h>
10632 #endif /* HAVE_SYS_SECURITY_H */
10633 #if defined(HAVE_RPC_RPC_H)
10634 #include <rpc/rpc.h>
10635 #endif
10636 int main() {
10637 int testvar;
10638 ; return 0; }
10640 if { (eval echo configure:10641: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10641 rm -rf conftest*
10642 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=no
10643 else
10644 echo "configure: failed program was:" >&5
10645 cat conftest.$ac_ext >&5
10646 rm -rf conftest*
10647 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=yes
10649 rm -f conftest*
10652 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
10653 if test x"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x"yes"; then
10654 cat >> confdefs.h <<\EOF
10655 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
10660 echo $ac_n "checking for test routines""... $ac_c" 1>&6
10661 echo "configure:10662: checking for test routines" >&5
10662 if test "$cross_compiling" = yes; then
10663 echo "configure: warning: cannot run when cross-compiling" 1>&2
10664 else
10665 cat > conftest.$ac_ext <<EOF
10666 #line 10667 "configure"
10667 #include "confdefs.h"
10668 #include "${srcdir-.}/tests/trivial.c"
10670 if { (eval echo configure:10671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10671 then
10672 echo "$ac_t""yes" 1>&6
10673 else
10674 echo "configure: failed program was:" >&5
10675 cat conftest.$ac_ext >&5
10676 rm -fr conftest*
10677 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
10679 rm -fr conftest*
10683 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
10684 echo "configure:10685: checking for ftruncate extend" >&5
10685 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
10686 echo $ac_n "(cached) $ac_c" 1>&6
10687 else
10689 if test "$cross_compiling" = yes; then
10690 samba_cv_HAVE_FTRUNCATE_EXTEND=cross
10691 else
10692 cat > conftest.$ac_ext <<EOF
10693 #line 10694 "configure"
10694 #include "confdefs.h"
10695 #include "${srcdir-.}/tests/ftruncate.c"
10697 if { (eval echo configure:10698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10698 then
10699 samba_cv_HAVE_FTRUNCATE_EXTEND=yes
10700 else
10701 echo "configure: failed program was:" >&5
10702 cat conftest.$ac_ext >&5
10703 rm -fr conftest*
10704 samba_cv_HAVE_FTRUNCATE_EXTEND=no
10706 rm -fr conftest*
10711 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
10712 if test x"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x"yes"; then
10713 cat >> confdefs.h <<\EOF
10714 #define HAVE_FTRUNCATE_EXTEND 1
10719 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
10720 echo "configure:10721: checking for broken getgroups" >&5
10721 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
10722 echo $ac_n "(cached) $ac_c" 1>&6
10723 else
10725 if test "$cross_compiling" = yes; then
10726 samba_cv_HAVE_BROKEN_GETGROUPS=cross
10727 else
10728 cat > conftest.$ac_ext <<EOF
10729 #line 10730 "configure"
10730 #include "confdefs.h"
10731 #include "${srcdir-.}/tests/getgroups.c"
10733 if { (eval echo configure:10734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10734 then
10735 samba_cv_HAVE_BROKEN_GETGROUPS=yes
10736 else
10737 echo "configure: failed program was:" >&5
10738 cat conftest.$ac_ext >&5
10739 rm -fr conftest*
10740 samba_cv_HAVE_BROKEN_GETGROUPS=no
10742 rm -fr conftest*
10747 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
10748 if test x"$samba_cv_HAVE_BROKEN_GETGROUPS" = x"yes"; then
10749 cat >> confdefs.h <<\EOF
10750 #define HAVE_BROKEN_GETGROUPS 1
10755 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
10756 echo "configure:10757: checking whether getpass should be replaced" >&5
10757 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
10758 echo $ac_n "(cached) $ac_c" 1>&6
10759 else
10761 SAVE_CPPFLAGS="$CPPFLAGS"
10762 CPPFLAGS="$CPPFLAGS -I${srcdir-.}/ -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/popt -I${srcdir-.}/smbwrapper"
10763 cat > conftest.$ac_ext <<EOF
10764 #line 10765 "configure"
10765 #include "confdefs.h"
10767 #define REPLACE_GETPASS 1
10768 #define NO_CONFIG_H 1
10769 #define main dont_declare_main
10770 #include "${srcdir-.}/lib/getsmbpass.c"
10771 #undef main
10773 int main() {
10775 ; return 0; }
10777 if { (eval echo configure:10778: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10778 rm -rf conftest*
10779 samba_cv_REPLACE_GETPASS=yes
10780 else
10781 echo "configure: failed program was:" >&5
10782 cat conftest.$ac_ext >&5
10783 rm -rf conftest*
10784 samba_cv_REPLACE_GETPASS=no
10786 rm -f conftest*
10787 CPPFLAGS="$SAVE_CPPFLAGS"
10791 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
10792 if test x"$samba_cv_REPLACE_GETPASS" = x"yes"; then
10793 cat >> confdefs.h <<\EOF
10794 #define REPLACE_GETPASS 1
10799 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
10800 echo "configure:10801: checking for broken inet_ntoa" >&5
10801 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
10802 echo $ac_n "(cached) $ac_c" 1>&6
10803 else
10805 if test "$cross_compiling" = yes; then
10806 samba_cv_REPLACE_INET_NTOA=cross
10807 else
10808 cat > conftest.$ac_ext <<EOF
10809 #line 10810 "configure"
10810 #include "confdefs.h"
10812 #include <stdio.h>
10813 #include <sys/types.h>
10814 #include <netinet/in.h>
10815 #ifdef HAVE_ARPA_INET_H
10816 #include <arpa/inet.h>
10817 #endif
10818 main() { struct in_addr ip; ip.s_addr = 0x12345678;
10819 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
10820 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
10821 exit(1);}
10823 if { (eval echo configure:10824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10824 then
10825 samba_cv_REPLACE_INET_NTOA=yes
10826 else
10827 echo "configure: failed program was:" >&5
10828 cat conftest.$ac_ext >&5
10829 rm -fr conftest*
10830 samba_cv_REPLACE_INET_NTOA=no
10832 rm -fr conftest*
10837 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
10838 if test x"$samba_cv_REPLACE_INET_NTOA" = x"yes"; then
10839 cat >> confdefs.h <<\EOF
10840 #define REPLACE_INET_NTOA 1
10845 echo $ac_n "checking for secure mkstemp""... $ac_c" 1>&6
10846 echo "configure:10847: checking for secure mkstemp" >&5
10847 if eval "test \"`echo '$''{'samba_cv_HAVE_SECURE_MKSTEMP'+set}'`\" = set"; then
10848 echo $ac_n "(cached) $ac_c" 1>&6
10849 else
10851 if test "$cross_compiling" = yes; then
10852 samba_cv_HAVE_SECURE_MKSTEMP=cross
10853 else
10854 cat > conftest.$ac_ext <<EOF
10855 #line 10856 "configure"
10856 #include "confdefs.h"
10857 #include <stdlib.h>
10858 #include <sys/types.h>
10859 #include <sys/stat.h>
10860 #include <unistd.h>
10861 main() {
10862 struct stat st;
10863 char tpl[20]="/tmp/test.XXXXXX";
10864 int fd = mkstemp(tpl);
10865 if (fd == -1) exit(1);
10866 unlink(tpl);
10867 if (fstat(fd, &st) != 0) exit(1);
10868 if ((st.st_mode & 0777) != 0600) exit(1);
10869 exit(0);
10872 if { (eval echo configure:10873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10873 then
10874 samba_cv_HAVE_SECURE_MKSTEMP=yes
10875 else
10876 echo "configure: failed program was:" >&5
10877 cat conftest.$ac_ext >&5
10878 rm -fr conftest*
10879 samba_cv_HAVE_SECURE_MKSTEMP=no
10881 rm -fr conftest*
10886 echo "$ac_t""$samba_cv_HAVE_SECURE_MKSTEMP" 1>&6
10887 if test x"$samba_cv_HAVE_SECURE_MKSTEMP" = x"yes"; then
10888 cat >> confdefs.h <<\EOF
10889 #define HAVE_SECURE_MKSTEMP 1
10894 echo $ac_n "checking for sysconf(_SC_NGROUPS_MAX)""... $ac_c" 1>&6
10895 echo "configure:10896: checking for sysconf(_SC_NGROUPS_MAX)" >&5
10896 if eval "test \"`echo '$''{'samba_cv_SYSCONF_SC_NGROUPS_MAX'+set}'`\" = set"; then
10897 echo $ac_n "(cached) $ac_c" 1>&6
10898 else
10900 if test "$cross_compiling" = yes; then
10901 samba_cv_SYSCONF_SC_NGROUPS_MAX=cross
10902 else
10903 cat > conftest.$ac_ext <<EOF
10904 #line 10905 "configure"
10905 #include "confdefs.h"
10906 #include <unistd.h>
10907 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
10909 if { (eval echo configure:10910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10910 then
10911 samba_cv_SYSCONF_SC_NGROUPS_MAX=yes
10912 else
10913 echo "configure: failed program was:" >&5
10914 cat conftest.$ac_ext >&5
10915 rm -fr conftest*
10916 samba_cv_SYSCONF_SC_NGROUPS_MAX=no
10918 rm -fr conftest*
10923 echo "$ac_t""$samba_cv_SYSCONF_SC_NGROUPS_MAX" 1>&6
10924 if test x"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x"yes"; then
10925 cat >> confdefs.h <<\EOF
10926 #define SYSCONF_SC_NGROUPS_MAX 1
10931 echo $ac_n "checking for root""... $ac_c" 1>&6
10932 echo "configure:10933: checking for root" >&5
10933 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
10934 echo $ac_n "(cached) $ac_c" 1>&6
10935 else
10937 if test "$cross_compiling" = yes; then
10938 samba_cv_HAVE_ROOT=cross
10939 else
10940 cat > conftest.$ac_ext <<EOF
10941 #line 10942 "configure"
10942 #include "confdefs.h"
10943 main() { exit(getuid() != 0); }
10945 if { (eval echo configure:10946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10946 then
10947 samba_cv_HAVE_ROOT=yes
10948 else
10949 echo "configure: failed program was:" >&5
10950 cat conftest.$ac_ext >&5
10951 rm -fr conftest*
10952 samba_cv_HAVE_ROOT=no
10954 rm -fr conftest*
10959 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
10960 if test x"$samba_cv_HAVE_ROOT" = x"yes"; then
10961 cat >> confdefs.h <<\EOF
10962 #define HAVE_ROOT 1
10965 else
10966 echo "configure: warning: running as non-root will disable some tests" 1>&2
10969 ##################
10970 # look for a method of finding the list of network interfaces
10971 iface=no;
10972 echo $ac_n "checking for iface AIX""... $ac_c" 1>&6
10973 echo "configure:10974: checking for iface AIX" >&5
10974 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_AIX'+set}'`\" = set"; then
10975 echo $ac_n "(cached) $ac_c" 1>&6
10976 else
10978 if test "$cross_compiling" = yes; then
10979 samba_cv_HAVE_IFACE_AIX=cross
10980 else
10981 cat > conftest.$ac_ext <<EOF
10982 #line 10983 "configure"
10983 #include "confdefs.h"
10985 #define HAVE_IFACE_AIX 1
10986 #define AUTOCONF_TEST 1
10987 #include "confdefs.h"
10988 #include "${srcdir-.}/lib/interfaces.c"
10990 if { (eval echo configure:10991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10991 then
10992 samba_cv_HAVE_IFACE_AIX=yes
10993 else
10994 echo "configure: failed program was:" >&5
10995 cat conftest.$ac_ext >&5
10996 rm -fr conftest*
10997 samba_cv_HAVE_IFACE_AIX=no
10999 rm -fr conftest*
11004 echo "$ac_t""$samba_cv_HAVE_IFACE_AIX" 1>&6
11005 if test x"$samba_cv_HAVE_IFACE_AIX" = x"yes"; then
11006 iface=yes;cat >> confdefs.h <<\EOF
11007 #define HAVE_IFACE_AIX 1
11012 if test $iface = no; then
11013 echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6
11014 echo "configure:11015: checking for iface ifconf" >&5
11015 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFCONF'+set}'`\" = set"; then
11016 echo $ac_n "(cached) $ac_c" 1>&6
11017 else
11019 if test "$cross_compiling" = yes; then
11020 samba_cv_HAVE_IFACE_IFCONF=cross
11021 else
11022 cat > conftest.$ac_ext <<EOF
11023 #line 11024 "configure"
11024 #include "confdefs.h"
11026 #define HAVE_IFACE_IFCONF 1
11027 #define AUTOCONF_TEST 1
11028 #include "confdefs.h"
11029 #include "${srcdir-.}/lib/interfaces.c"
11031 if { (eval echo configure:11032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11032 then
11033 samba_cv_HAVE_IFACE_IFCONF=yes
11034 else
11035 echo "configure: failed program was:" >&5
11036 cat conftest.$ac_ext >&5
11037 rm -fr conftest*
11038 samba_cv_HAVE_IFACE_IFCONF=no
11040 rm -fr conftest*
11045 echo "$ac_t""$samba_cv_HAVE_IFACE_IFCONF" 1>&6
11046 if test x"$samba_cv_HAVE_IFACE_IFCONF" = x"yes"; then
11047 iface=yes;cat >> confdefs.h <<\EOF
11048 #define HAVE_IFACE_IFCONF 1
11054 if test $iface = no; then
11055 echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6
11056 echo "configure:11057: checking for iface ifreq" >&5
11057 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFREQ'+set}'`\" = set"; then
11058 echo $ac_n "(cached) $ac_c" 1>&6
11059 else
11061 if test "$cross_compiling" = yes; then
11062 samba_cv_HAVE_IFACE_IFREQ=cross
11063 else
11064 cat > conftest.$ac_ext <<EOF
11065 #line 11066 "configure"
11066 #include "confdefs.h"
11068 #define HAVE_IFACE_IFREQ 1
11069 #define AUTOCONF_TEST 1
11070 #include "confdefs.h"
11071 #include "${srcdir-.}/lib/interfaces.c"
11073 if { (eval echo configure:11074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11074 then
11075 samba_cv_HAVE_IFACE_IFREQ=yes
11076 else
11077 echo "configure: failed program was:" >&5
11078 cat conftest.$ac_ext >&5
11079 rm -fr conftest*
11080 samba_cv_HAVE_IFACE_IFREQ=no
11082 rm -fr conftest*
11087 echo "$ac_t""$samba_cv_HAVE_IFACE_IFREQ" 1>&6
11088 if test x"$samba_cv_HAVE_IFACE_IFREQ" = x"yes"; then
11089 iface=yes;cat >> confdefs.h <<\EOF
11090 #define HAVE_IFACE_IFREQ 1
11097 ################################################
11098 # look for a method of setting the effective uid
11099 seteuid=no;
11100 if test $seteuid = no; then
11101 echo $ac_n "checking for setresuid""... $ac_c" 1>&6
11102 echo "configure:11103: checking for setresuid" >&5
11103 if eval "test \"`echo '$''{'samba_cv_USE_SETRESUID'+set}'`\" = set"; then
11104 echo $ac_n "(cached) $ac_c" 1>&6
11105 else
11107 if test "$cross_compiling" = yes; then
11108 samba_cv_USE_SETRESUID=cross
11109 else
11110 cat > conftest.$ac_ext <<EOF
11111 #line 11112 "configure"
11112 #include "confdefs.h"
11114 #define AUTOCONF_TEST 1
11115 #define USE_SETRESUID 1
11116 #include "confdefs.h"
11117 #include "${srcdir-.}/lib/util_sec.c"
11119 if { (eval echo configure:11120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11120 then
11121 samba_cv_USE_SETRESUID=yes
11122 else
11123 echo "configure: failed program was:" >&5
11124 cat conftest.$ac_ext >&5
11125 rm -fr conftest*
11126 samba_cv_USE_SETRESUID=no
11128 rm -fr conftest*
11133 echo "$ac_t""$samba_cv_USE_SETRESUID" 1>&6
11134 if test x"$samba_cv_USE_SETRESUID" = x"yes"; then
11135 seteuid=yes;cat >> confdefs.h <<\EOF
11136 #define USE_SETRESUID 1
11143 if test $seteuid = no; then
11144 echo $ac_n "checking for setreuid""... $ac_c" 1>&6
11145 echo "configure:11146: checking for setreuid" >&5
11146 if eval "test \"`echo '$''{'samba_cv_USE_SETREUID'+set}'`\" = set"; then
11147 echo $ac_n "(cached) $ac_c" 1>&6
11148 else
11150 if test "$cross_compiling" = yes; then
11151 samba_cv_USE_SETREUID=cross
11152 else
11153 cat > conftest.$ac_ext <<EOF
11154 #line 11155 "configure"
11155 #include "confdefs.h"
11157 #define AUTOCONF_TEST 1
11158 #define USE_SETREUID 1
11159 #include "confdefs.h"
11160 #include "${srcdir-.}/lib/util_sec.c"
11162 if { (eval echo configure:11163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11163 then
11164 samba_cv_USE_SETREUID=yes
11165 else
11166 echo "configure: failed program was:" >&5
11167 cat conftest.$ac_ext >&5
11168 rm -fr conftest*
11169 samba_cv_USE_SETREUID=no
11171 rm -fr conftest*
11176 echo "$ac_t""$samba_cv_USE_SETREUID" 1>&6
11177 if test x"$samba_cv_USE_SETREUID" = x"yes"; then
11178 seteuid=yes;cat >> confdefs.h <<\EOF
11179 #define USE_SETREUID 1
11185 if test $seteuid = no; then
11186 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
11187 echo "configure:11188: checking for seteuid" >&5
11188 if eval "test \"`echo '$''{'samba_cv_USE_SETEUID'+set}'`\" = set"; then
11189 echo $ac_n "(cached) $ac_c" 1>&6
11190 else
11192 if test "$cross_compiling" = yes; then
11193 samba_cv_USE_SETEUID=cross
11194 else
11195 cat > conftest.$ac_ext <<EOF
11196 #line 11197 "configure"
11197 #include "confdefs.h"
11199 #define AUTOCONF_TEST 1
11200 #define USE_SETEUID 1
11201 #include "confdefs.h"
11202 #include "${srcdir-.}/lib/util_sec.c"
11204 if { (eval echo configure:11205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11205 then
11206 samba_cv_USE_SETEUID=yes
11207 else
11208 echo "configure: failed program was:" >&5
11209 cat conftest.$ac_ext >&5
11210 rm -fr conftest*
11211 samba_cv_USE_SETEUID=no
11213 rm -fr conftest*
11218 echo "$ac_t""$samba_cv_USE_SETEUID" 1>&6
11219 if test x"$samba_cv_USE_SETEUID" = x"yes"; then
11220 seteuid=yes;cat >> confdefs.h <<\EOF
11221 #define USE_SETEUID 1
11227 if test $seteuid = no; then
11228 echo $ac_n "checking for setuidx""... $ac_c" 1>&6
11229 echo "configure:11230: checking for setuidx" >&5
11230 if eval "test \"`echo '$''{'samba_cv_USE_SETUIDX'+set}'`\" = set"; then
11231 echo $ac_n "(cached) $ac_c" 1>&6
11232 else
11234 if test "$cross_compiling" = yes; then
11235 samba_cv_USE_SETUIDX=cross
11236 else
11237 cat > conftest.$ac_ext <<EOF
11238 #line 11239 "configure"
11239 #include "confdefs.h"
11241 #define AUTOCONF_TEST 1
11242 #define USE_SETUIDX 1
11243 #include "confdefs.h"
11244 #include "${srcdir-.}/lib/util_sec.c"
11246 if { (eval echo configure:11247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11247 then
11248 samba_cv_USE_SETUIDX=yes
11249 else
11250 echo "configure: failed program was:" >&5
11251 cat conftest.$ac_ext >&5
11252 rm -fr conftest*
11253 samba_cv_USE_SETUIDX=no
11255 rm -fr conftest*
11260 echo "$ac_t""$samba_cv_USE_SETUIDX" 1>&6
11261 if test x"$samba_cv_USE_SETUIDX" = x"yes"; then
11262 seteuid=yes;cat >> confdefs.h <<\EOF
11263 #define USE_SETUIDX 1
11270 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
11271 echo "configure:11272: checking for working mmap" >&5
11272 if eval "test \"`echo '$''{'samba_cv_HAVE_MMAP'+set}'`\" = set"; then
11273 echo $ac_n "(cached) $ac_c" 1>&6
11274 else
11276 if test "$cross_compiling" = yes; then
11277 samba_cv_HAVE_MMAP=cross
11278 else
11279 cat > conftest.$ac_ext <<EOF
11280 #line 11281 "configure"
11281 #include "confdefs.h"
11282 #include "${srcdir-.}/tests/shared_mmap.c"
11284 if { (eval echo configure:11285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11285 then
11286 samba_cv_HAVE_MMAP=yes
11287 else
11288 echo "configure: failed program was:" >&5
11289 cat conftest.$ac_ext >&5
11290 rm -fr conftest*
11291 samba_cv_HAVE_MMAP=no
11293 rm -fr conftest*
11298 echo "$ac_t""$samba_cv_HAVE_MMAP" 1>&6
11299 if test x"$samba_cv_HAVE_MMAP" = x"yes"; then
11300 cat >> confdefs.h <<\EOF
11301 #define HAVE_MMAP 1
11306 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
11307 echo "configure:11308: checking for ftruncate needs root" >&5
11308 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
11309 echo $ac_n "(cached) $ac_c" 1>&6
11310 else
11312 if test "$cross_compiling" = yes; then
11313 samba_cv_FTRUNCATE_NEEDS_ROOT=cross
11314 else
11315 cat > conftest.$ac_ext <<EOF
11316 #line 11317 "configure"
11317 #include "confdefs.h"
11318 #include "${srcdir-.}/tests/ftruncroot.c"
11320 if { (eval echo configure:11321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11321 then
11322 samba_cv_FTRUNCATE_NEEDS_ROOT=yes
11323 else
11324 echo "configure: failed program was:" >&5
11325 cat conftest.$ac_ext >&5
11326 rm -fr conftest*
11327 samba_cv_FTRUNCATE_NEEDS_ROOT=no
11329 rm -fr conftest*
11334 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
11335 if test x"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x"yes"; then
11336 cat >> confdefs.h <<\EOF
11337 #define FTRUNCATE_NEEDS_ROOT 1
11342 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
11343 echo "configure:11344: checking for fcntl locking" >&5
11344 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
11345 echo $ac_n "(cached) $ac_c" 1>&6
11346 else
11348 if test "$cross_compiling" = yes; then
11349 samba_cv_HAVE_FCNTL_LOCK=cross
11350 else
11351 cat > conftest.$ac_ext <<EOF
11352 #line 11353 "configure"
11353 #include "confdefs.h"
11354 #include "${srcdir-.}/tests/fcntl_lock.c"
11356 if { (eval echo configure:11357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11357 then
11358 samba_cv_HAVE_FCNTL_LOCK=yes
11359 else
11360 echo "configure: failed program was:" >&5
11361 cat conftest.$ac_ext >&5
11362 rm -fr conftest*
11363 samba_cv_HAVE_FCNTL_LOCK=no
11365 rm -fr conftest*
11370 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
11371 if test x"$samba_cv_HAVE_FCNTL_LOCK" = x"yes"; then
11372 cat >> confdefs.h <<\EOF
11373 #define HAVE_FCNTL_LOCK 1
11378 echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6
11379 echo "configure:11380: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
11380 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_FCNTL64_LOCKS'+set}'`\" = set"; then
11381 echo $ac_n "(cached) $ac_c" 1>&6
11382 else
11384 if test "$cross_compiling" = yes; then
11385 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=cross
11386 else
11387 cat > conftest.$ac_ext <<EOF
11388 #line 11389 "configure"
11389 #include "confdefs.h"
11390 #include "${srcdir-.}/tests/fcntl_lock64.c"
11392 if { (eval echo configure:11393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11393 then
11394 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=yes
11395 else
11396 echo "configure: failed program was:" >&5
11397 cat conftest.$ac_ext >&5
11398 rm -fr conftest*
11399 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=no
11401 rm -fr conftest*
11406 echo "$ac_t""$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" 1>&6
11407 if test x"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x"yes"; then
11408 cat >> confdefs.h <<\EOF
11409 #define HAVE_BROKEN_FCNTL64_LOCKS 1
11413 else
11416 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
11417 echo "configure:11418: checking for 64 bit fcntl locking" >&5
11418 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
11419 echo $ac_n "(cached) $ac_c" 1>&6
11420 else
11422 if test "$cross_compiling" = yes; then
11423 samba_cv_HAVE_STRUCT_FLOCK64=cross
11424 else
11425 cat > conftest.$ac_ext <<EOF
11426 #line 11427 "configure"
11427 #include "confdefs.h"
11429 #if defined(HAVE_UNISTD_H)
11430 #include <unistd.h>
11431 #endif
11432 #include <stdio.h>
11433 #include <stdlib.h>
11435 #ifdef HAVE_FCNTL_H
11436 #include <fcntl.h>
11437 #endif
11439 #ifdef HAVE_SYS_FCNTL_H
11440 #include <sys/fcntl.h>
11441 #endif
11442 main() { struct flock64 fl64;
11443 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
11444 exit(0);
11445 #else
11446 exit(1);
11447 #endif
11450 if { (eval echo configure:11451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11451 then
11452 samba_cv_HAVE_STRUCT_FLOCK64=yes
11453 else
11454 echo "configure: failed program was:" >&5
11455 cat conftest.$ac_ext >&5
11456 rm -fr conftest*
11457 samba_cv_HAVE_STRUCT_FLOCK64=no
11459 rm -fr conftest*
11464 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
11466 if test x"$samba_cv_HAVE_STRUCT_FLOCK64" = x"yes"; then
11467 cat >> confdefs.h <<\EOF
11468 #define HAVE_STRUCT_FLOCK64 1
11474 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
11475 echo "configure:11476: checking for st_blocks in struct stat" >&5
11476 if eval "test \"`echo '$''{'samba_cv_HAVE_STAT_ST_BLOCKS'+set}'`\" = set"; then
11477 echo $ac_n "(cached) $ac_c" 1>&6
11478 else
11480 cat > conftest.$ac_ext <<EOF
11481 #line 11482 "configure"
11482 #include "confdefs.h"
11483 #include <sys/types.h>
11484 #include <sys/stat.h>
11485 #include <unistd.h>
11486 int main() {
11487 struct stat st; st.st_blocks = 0;
11488 ; return 0; }
11490 if { (eval echo configure:11491: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11491 rm -rf conftest*
11492 samba_cv_HAVE_STAT_ST_BLOCKS=yes
11493 else
11494 echo "configure: failed program was:" >&5
11495 cat conftest.$ac_ext >&5
11496 rm -rf conftest*
11497 samba_cv_HAVE_STAT_ST_BLOCKS=no
11499 rm -f conftest*
11502 echo "$ac_t""$samba_cv_HAVE_STAT_ST_BLOCKS" 1>&6
11503 if test x"$samba_cv_HAVE_STAT_ST_BLOCKS" = x"yes"; then
11504 cat >> confdefs.h <<\EOF
11505 #define HAVE_STAT_ST_BLOCKS 1
11510 case "$host_os" in
11511 *linux*)
11512 echo $ac_n "checking for broken RedHat 7.2 system header files""... $ac_c" 1>&6
11513 echo "configure:11514: checking for broken RedHat 7.2 system header files" >&5
11514 if eval "test \"`echo '$''{'samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS'+set}'`\" = set"; then
11515 echo $ac_n "(cached) $ac_c" 1>&6
11516 else
11518 cat > conftest.$ac_ext <<EOF
11519 #line 11520 "configure"
11520 #include "confdefs.h"
11522 #ifdef HAVE_SYS_VFS_H
11523 #include <sys/vfs.h>
11524 #endif
11525 #ifdef HAVE_SYS_CAPABILITY_H
11526 #include <sys/capability.h>
11527 #endif
11529 int main() {
11530 int i;
11531 ; return 0; }
11533 if { (eval echo configure:11534: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11534 rm -rf conftest*
11535 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=no
11536 else
11537 echo "configure: failed program was:" >&5
11538 cat conftest.$ac_ext >&5
11539 rm -rf conftest*
11540 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=yes
11542 rm -f conftest*
11545 echo "$ac_t""$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" 1>&6
11546 if test x"$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" = x"yes"; then
11547 cat >> confdefs.h <<\EOF
11548 #define BROKEN_REDHAT_7_SYSTEM_HEADERS 1
11553 esac
11555 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
11556 echo "configure:11557: checking for broken nisplus include files" >&5
11557 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
11558 echo $ac_n "(cached) $ac_c" 1>&6
11559 else
11561 cat > conftest.$ac_ext <<EOF
11562 #line 11563 "configure"
11563 #include "confdefs.h"
11564 #include <sys/acl.h>
11565 #if defined(HAVE_RPCSVC_NIS_H)
11566 #include <rpcsvc/nis.h>
11567 #endif
11568 int main() {
11569 int i;
11570 ; return 0; }
11572 if { (eval echo configure:11573: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11573 rm -rf conftest*
11574 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=no
11575 else
11576 echo "configure: failed program was:" >&5
11577 cat conftest.$ac_ext >&5
11578 rm -rf conftest*
11579 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=yes
11581 rm -f conftest*
11584 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
11585 if test x"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x"yes"; then
11586 cat >> confdefs.h <<\EOF
11587 #define BROKEN_NISPLUS_INCLUDE_FILES 1
11593 #################################################
11594 # check for smbwrapper support
11595 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
11596 echo "configure:11597: checking whether to use smbwrapper" >&5
11597 # Check whether --with-smbwrapper or --without-smbwrapper was given.
11598 if test "${with_smbwrapper+set}" = set; then
11599 withval="$with_smbwrapper"
11600 case "$withval" in
11601 yes)
11602 echo "$ac_t""yes" 1>&6
11603 cat >> confdefs.h <<\EOF
11604 #define WITH_SMBWRAPPER 1
11607 WRAPPROG="bin/smbsh"
11608 WRAP="bin/smbwrapper.$SHLIBEXT"
11610 if test x$ATTEMPT_WRAP32_BUILD = x; then
11611 WRAP32=""
11612 else
11613 WRAP32=bin/smbwrapper.32.$SHLIBEXT
11616 # Conditions under which smbwrapper should not be built.
11618 if test x$PICFLAG = x; then
11619 echo No support for PIC code - disabling smbwrapper and smbsh
11620 WRAPPROG=""
11621 WRAP=""
11622 WRAP32=""
11623 elif test x$ac_cv_func_syscall = xno; then
11624 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
11625 WRAPPROG=""
11626 WRAP=""
11627 WRAP32=""
11631 echo "$ac_t""no" 1>&6
11633 esac
11634 else
11635 echo "$ac_t""no" 1>&6
11640 #################################################
11641 # check for the AFS filesystem
11642 echo $ac_n "checking whether to use AFS""... $ac_c" 1>&6
11643 echo "configure:11644: checking whether to use AFS" >&5
11644 # Check whether --with-afs or --without-afs was given.
11645 if test "${with_afs+set}" = set; then
11646 withval="$with_afs"
11647 case "$withval" in
11648 yes)
11649 echo "$ac_t""yes" 1>&6
11650 cat >> confdefs.h <<\EOF
11651 #define WITH_AFS 1
11656 echo "$ac_t""no" 1>&6
11658 esac
11659 else
11660 echo "$ac_t""no" 1>&6
11666 #################################################
11667 # check for the DFS auth system
11668 echo $ac_n "checking whether to use DCE/DFS auth""... $ac_c" 1>&6
11669 echo "configure:11670: checking whether to use DCE/DFS auth" >&5
11670 # Check whether --with-dfs or --without-dfs was given.
11671 if test "${with_dfs+set}" = set; then
11672 withval="$with_dfs"
11673 case "$withval" in
11674 yes)
11675 echo "$ac_t""yes" 1>&6
11676 cat >> confdefs.h <<\EOF
11677 #define WITH_DFS 1
11682 echo "$ac_t""no" 1>&6
11684 esac
11685 else
11686 echo "$ac_t""no" 1>&6
11691 #################################################
11692 # check for Kerberos IV auth system
11693 echo $ac_n "checking whether to use Kerberos IV""... $ac_c" 1>&6
11694 echo "configure:11695: checking whether to use Kerberos IV" >&5
11695 # Check whether --with-krb4 or --without-krb4 was given.
11696 if test "${with_krb4+set}" = set; then
11697 withval="$with_krb4"
11698 case "$withval" in
11699 yes)
11700 echo "$ac_t""yes" 1>&6
11701 cat >> confdefs.h <<\EOF
11702 #define KRB4_AUTH 1
11705 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
11706 echo "configure:11707: checking for dn_expand in -lresolv" >&5
11707 ac_lib_var=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
11708 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11709 echo $ac_n "(cached) $ac_c" 1>&6
11710 else
11711 ac_save_LIBS="$LIBS"
11712 LIBS="-lresolv $LIBS"
11713 cat > conftest.$ac_ext <<EOF
11714 #line 11715 "configure"
11715 #include "confdefs.h"
11716 /* Override any gcc2 internal prototype to avoid an error. */
11717 /* We use char because int might match the return type of a gcc2
11718 builtin and then its argument prototype would still apply. */
11719 char dn_expand();
11721 int main() {
11722 dn_expand()
11723 ; return 0; }
11725 if { (eval echo configure:11726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11726 rm -rf conftest*
11727 eval "ac_cv_lib_$ac_lib_var=yes"
11728 else
11729 echo "configure: failed program was:" >&5
11730 cat conftest.$ac_ext >&5
11731 rm -rf conftest*
11732 eval "ac_cv_lib_$ac_lib_var=no"
11734 rm -f conftest*
11735 LIBS="$ac_save_LIBS"
11738 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11739 echo "$ac_t""yes" 1>&6
11740 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11741 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11742 cat >> confdefs.h <<EOF
11743 #define $ac_tr_lib 1
11746 LIBS="-lresolv $LIBS"
11748 else
11749 echo "$ac_t""no" 1>&6
11752 LIBS="$LIBS -lkrb -ldes"
11753 CFLAGS="$CFLAGS -I$withval/include"
11754 LDFLAGS="$LDFLAGS -L$withval/lib"
11757 echo "$ac_t""no" 1>&6
11759 esac
11760 else
11761 echo "$ac_t""no" 1>&6
11766 #################################################
11767 # check for Kerberos 5 auth system
11768 echo $ac_n "checking whether to use Kerberos 5""... $ac_c" 1>&6
11769 echo "configure:11770: checking whether to use Kerberos 5" >&5
11770 # Check whether --with-krb5 or --without-krb5 was given.
11771 if test "${with_krb5+set}" = set; then
11772 withval="$with_krb5"
11773 case "$withval" in
11774 yes)
11775 echo "$ac_t""yes" 1>&6
11776 cat >> confdefs.h <<\EOF
11777 #define KRB5_AUTH 1
11780 LIBS="$LIBS -ldes425 -lkrb5 -lcrypto -lcom_err"
11781 CFLAGS="$CFLAGS -I$withval/include"
11782 LDFLAGS="$LDFLAGS -L$withval/lib"
11785 echo "$ac_t""no" 1>&6
11787 esac
11788 else
11789 echo "$ac_t""no" 1>&6
11794 #################################################
11795 # check for automount support
11796 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
11797 echo "configure:11798: checking whether to use AUTOMOUNT" >&5
11798 # Check whether --with-automount or --without-automount was given.
11799 if test "${with_automount+set}" = set; then
11800 withval="$with_automount"
11801 case "$withval" in
11802 yes)
11803 echo "$ac_t""yes" 1>&6
11804 cat >> confdefs.h <<\EOF
11805 #define WITH_AUTOMOUNT 1
11810 echo "$ac_t""no" 1>&6
11812 esac
11813 else
11814 echo "$ac_t""no" 1>&6
11819 #################################################
11820 # check for smbmount support
11821 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
11822 echo "configure:11823: checking whether to use SMBMOUNT" >&5
11823 # Check whether --with-smbmount or --without-smbmount was given.
11824 if test "${with_smbmount+set}" = set; then
11825 withval="$with_smbmount"
11826 case "$withval" in
11827 yes)
11828 case "$host_os" in
11829 *linux*)
11830 echo "$ac_t""yes" 1>&6
11831 cat >> confdefs.h <<\EOF
11832 #define WITH_SMBMOUNT 1
11835 MPROGS="bin/smbmount bin/smbmnt bin/smbumount"
11838 { echo "configure: error: not on a linux system!" 1>&2; exit 1; }
11840 esac
11843 echo "$ac_t""no" 1>&6
11844 MPROGS=
11846 esac
11847 else
11848 echo "$ac_t""no" 1>&6
11849 MPROGS=
11855 #################################################
11856 # check for a PAM password database
11857 with_pam_for_crypt=no
11858 echo $ac_n "checking whether to use PAM password database""... $ac_c" 1>&6
11859 echo "configure:11860: checking whether to use PAM password database" >&5
11860 # Check whether --with-pam or --without-pam was given.
11861 if test "${with_pam+set}" = set; then
11862 withval="$with_pam"
11863 case "$withval" in
11864 yes)
11865 echo "$ac_t""yes" 1>&6
11866 cat >> confdefs.h <<\EOF
11867 #define WITH_PAM 1
11870 LIBS="$LIBS -lpam"
11871 with_pam_for_crypt=yes
11874 echo "$ac_t""no" 1>&6
11876 esac
11877 else
11878 echo "$ac_t""no" 1>&6
11883 # we can't build a pam module if we don't have pam.
11884 echo $ac_n "checking for pam_get_data in -lpam""... $ac_c" 1>&6
11885 echo "configure:11886: checking for pam_get_data in -lpam" >&5
11886 ac_lib_var=`echo pam'_'pam_get_data | sed 'y%./+-%__p_%'`
11887 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11888 echo $ac_n "(cached) $ac_c" 1>&6
11889 else
11890 ac_save_LIBS="$LIBS"
11891 LIBS="-lpam $LIBS"
11892 cat > conftest.$ac_ext <<EOF
11893 #line 11894 "configure"
11894 #include "confdefs.h"
11895 /* Override any gcc2 internal prototype to avoid an error. */
11896 /* We use char because int might match the return type of a gcc2
11897 builtin and then its argument prototype would still apply. */
11898 char pam_get_data();
11900 int main() {
11901 pam_get_data()
11902 ; return 0; }
11904 if { (eval echo configure:11905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11905 rm -rf conftest*
11906 eval "ac_cv_lib_$ac_lib_var=yes"
11907 else
11908 echo "configure: failed program was:" >&5
11909 cat conftest.$ac_ext >&5
11910 rm -rf conftest*
11911 eval "ac_cv_lib_$ac_lib_var=no"
11913 rm -f conftest*
11914 LIBS="$ac_save_LIBS"
11917 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11918 echo "$ac_t""yes" 1>&6
11919 cat >> confdefs.h <<\EOF
11920 #define HAVE_LIBPAM 1
11923 else
11924 echo "$ac_t""no" 1>&6
11928 #################################################
11929 # check for pam_smbpass support
11930 echo $ac_n "checking whether to use pam_smbpass""... $ac_c" 1>&6
11931 echo "configure:11932: checking whether to use pam_smbpass" >&5
11932 # Check whether --with-pam_smbpass or --without-pam_smbpass was given.
11933 if test "${with_pam_smbpass+set}" = set; then
11934 withval="$with_pam_smbpass"
11935 case "$withval" in
11936 yes)
11937 echo "$ac_t""yes" 1>&6
11939 # Conditions under which pam_smbpass should not be built.
11941 if test x$PICFLAG = x; then
11942 echo "$ac_t""No support for PIC code - disabling pam_smbpass" 1>&6
11943 PAM_MOD=""
11944 elif test x$ac_cv_lib_pam_pam_get_data = xno; then
11945 echo "$ac_t""No libpam found -- disabling pam_smbpass" 1>&6
11946 PAM_MOD=""
11947 else
11948 cat >> confdefs.h <<\EOF
11949 #define WITH_PAM_SMBPASS 1
11952 PAM_MOD="bin/pam_smbpass.so"
11956 echo "$ac_t""no" 1>&6
11958 esac
11959 else
11960 echo "$ac_t""no" 1>&6
11966 ###############################################
11967 # test for where we get crypt() from, but only
11968 # if not using PAM
11969 if test $with_pam_for_crypt = no; then
11970 for ac_func in crypt
11972 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11973 echo "configure:11974: checking for $ac_func" >&5
11974 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11975 echo $ac_n "(cached) $ac_c" 1>&6
11976 else
11977 cat > conftest.$ac_ext <<EOF
11978 #line 11979 "configure"
11979 #include "confdefs.h"
11980 /* System header to define __stub macros and hopefully few prototypes,
11981 which can conflict with char $ac_func(); below. */
11982 #include <assert.h>
11983 /* Override any gcc2 internal prototype to avoid an error. */
11984 /* We use char because int might match the return type of a gcc2
11985 builtin and then its argument prototype would still apply. */
11986 char $ac_func();
11988 int main() {
11990 /* The GNU C library defines this for functions which it implements
11991 to always fail with ENOSYS. Some functions are actually named
11992 something starting with __ and the normal name is an alias. */
11993 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11994 choke me
11995 #else
11996 $ac_func();
11997 #endif
11999 ; return 0; }
12001 if { (eval echo configure:12002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12002 rm -rf conftest*
12003 eval "ac_cv_func_$ac_func=yes"
12004 else
12005 echo "configure: failed program was:" >&5
12006 cat conftest.$ac_ext >&5
12007 rm -rf conftest*
12008 eval "ac_cv_func_$ac_func=no"
12010 rm -f conftest*
12013 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12014 echo "$ac_t""yes" 1>&6
12015 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12016 cat >> confdefs.h <<EOF
12017 #define $ac_tr_func 1
12020 else
12021 echo "$ac_t""no" 1>&6
12023 done
12025 if test x"$ac_cv_func_crypt" = x"no"; then
12026 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
12027 echo "configure:12028: checking for crypt in -lcrypt" >&5
12028 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
12029 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12030 echo $ac_n "(cached) $ac_c" 1>&6
12031 else
12032 ac_save_LIBS="$LIBS"
12033 LIBS="-lcrypt $LIBS"
12034 cat > conftest.$ac_ext <<EOF
12035 #line 12036 "configure"
12036 #include "confdefs.h"
12037 /* Override any gcc2 internal prototype to avoid an error. */
12038 /* We use char because int might match the return type of a gcc2
12039 builtin and then its argument prototype would still apply. */
12040 char crypt();
12042 int main() {
12043 crypt()
12044 ; return 0; }
12046 if { (eval echo configure:12047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12047 rm -rf conftest*
12048 eval "ac_cv_lib_$ac_lib_var=yes"
12049 else
12050 echo "configure: failed program was:" >&5
12051 cat conftest.$ac_ext >&5
12052 rm -rf conftest*
12053 eval "ac_cv_lib_$ac_lib_var=no"
12055 rm -f conftest*
12056 LIBS="$ac_save_LIBS"
12059 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12060 echo "$ac_t""yes" 1>&6
12061 LIBS="$LIBS -lcrypt";
12062 cat >> confdefs.h <<\EOF
12063 #define HAVE_CRYPT 1
12066 else
12067 echo "$ac_t""no" 1>&6
12074 ## moved after the check for -lcrypt in order to
12075 ## ensure that the necessary libraries are included
12076 ## check checking for truncated salt. Wrapped by the
12077 ## $with_pam_for_crypt variable as above --jerry
12079 if test $with_pam_for_crypt = no; then
12080 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
12081 echo "configure:12082: checking for a crypt that needs truncated salt" >&5
12082 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
12083 echo $ac_n "(cached) $ac_c" 1>&6
12084 else
12086 if test "$cross_compiling" = yes; then
12087 samba_cv_HAVE_TRUNCATED_SALT=cross
12088 else
12089 cat > conftest.$ac_ext <<EOF
12090 #line 12091 "configure"
12091 #include "confdefs.h"
12092 #include "${srcdir-.}/tests/crypttest.c"
12094 if { (eval echo configure:12095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12095 then
12096 samba_cv_HAVE_TRUNCATED_SALT=no
12097 else
12098 echo "configure: failed program was:" >&5
12099 cat conftest.$ac_ext >&5
12100 rm -fr conftest*
12101 samba_cv_HAVE_TRUNCATED_SALT=yes
12103 rm -fr conftest*
12108 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
12109 if test x"$samba_cv_HAVE_TRUNCATED_SALT" = x"yes"; then
12110 cat >> confdefs.h <<\EOF
12111 #define HAVE_TRUNCATED_SALT 1
12118 ########################################################################################
12120 ## TESTS FOR SAM BACKENDS. KEEP THESE GROUPED TOGETHER
12122 ########################################################################################
12124 ## set the with_smbpasswd_sam as the default
12125 with_smbpasswd_sam=yes
12129 #################################################
12130 # check for a TDB password database
12131 echo $ac_n "checking whether to use TDB SAM database""... $ac_c" 1>&6
12132 echo "configure:12133: checking whether to use TDB SAM database" >&5
12133 # Check whether --with-tdbsam or --without-tdbsam was given.
12134 if test "${with_tdbsam+set}" = set; then
12135 withval="$with_tdbsam"
12136 case "$withval" in
12137 yes)
12138 echo "$ac_t""yes" 1>&6
12139 cat >> confdefs.h <<\EOF
12140 #define WITH_TDB_SAM 1
12143 with_smbpasswd_sam=no
12146 echo "$ac_t""no" 1>&6
12148 esac
12149 else
12150 echo "$ac_t""no" 1>&6
12155 #################################################
12156 # check for a LDAP password database
12157 echo $ac_n "checking whether to use LDAP SAM database""... $ac_c" 1>&6
12158 echo "configure:12159: checking whether to use LDAP SAM database" >&5
12159 # Check whether --with-ldapsam or --without-ldapsam was given.
12160 if test "${with_ldapsam+set}" = set; then
12161 withval="$with_ldapsam"
12162 case "$withval" in
12163 yes)
12164 echo "$ac_t""yes" 1>&6
12165 cat >> confdefs.h <<\EOF
12166 #define WITH_LDAP_SAM 1
12169 LIBS="-lldap $LIBS"
12170 echo $ac_n "checking for ber_bvfree in -llber""... $ac_c" 1>&6
12171 echo "configure:12172: checking for ber_bvfree in -llber" >&5
12172 ac_lib_var=`echo lber'_'ber_bvfree | sed 'y%./+-%__p_%'`
12173 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12174 echo $ac_n "(cached) $ac_c" 1>&6
12175 else
12176 ac_save_LIBS="$LIBS"
12177 LIBS="-llber $LIBS"
12178 cat > conftest.$ac_ext <<EOF
12179 #line 12180 "configure"
12180 #include "confdefs.h"
12181 /* Override any gcc2 internal prototype to avoid an error. */
12182 /* We use char because int might match the return type of a gcc2
12183 builtin and then its argument prototype would still apply. */
12184 char ber_bvfree();
12186 int main() {
12187 ber_bvfree()
12188 ; return 0; }
12190 if { (eval echo configure:12191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12191 rm -rf conftest*
12192 eval "ac_cv_lib_$ac_lib_var=yes"
12193 else
12194 echo "configure: failed program was:" >&5
12195 cat conftest.$ac_ext >&5
12196 rm -rf conftest*
12197 eval "ac_cv_lib_$ac_lib_var=no"
12199 rm -f conftest*
12200 LIBS="$ac_save_LIBS"
12203 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12204 echo "$ac_t""yes" 1>&6
12205 LIBS="$LIBS -llber"
12206 else
12207 echo "$ac_t""no" 1>&6
12210 LIBS="-lresolv $LIBS"
12211 for ac_func in ldap_start_tls_s
12213 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12214 echo "configure:12215: checking for $ac_func" >&5
12215 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12216 echo $ac_n "(cached) $ac_c" 1>&6
12217 else
12218 cat > conftest.$ac_ext <<EOF
12219 #line 12220 "configure"
12220 #include "confdefs.h"
12221 /* System header to define __stub macros and hopefully few prototypes,
12222 which can conflict with char $ac_func(); below. */
12223 #include <assert.h>
12224 /* Override any gcc2 internal prototype to avoid an error. */
12225 /* We use char because int might match the return type of a gcc2
12226 builtin and then its argument prototype would still apply. */
12227 char $ac_func();
12229 int main() {
12231 /* The GNU C library defines this for functions which it implements
12232 to always fail with ENOSYS. Some functions are actually named
12233 something starting with __ and the normal name is an alias. */
12234 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12235 choke me
12236 #else
12237 $ac_func();
12238 #endif
12240 ; return 0; }
12242 if { (eval echo configure:12243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12243 rm -rf conftest*
12244 eval "ac_cv_func_$ac_func=yes"
12245 else
12246 echo "configure: failed program was:" >&5
12247 cat conftest.$ac_ext >&5
12248 rm -rf conftest*
12249 eval "ac_cv_func_$ac_func=no"
12251 rm -f conftest*
12254 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12255 echo "$ac_t""yes" 1>&6
12256 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12257 cat >> confdefs.h <<EOF
12258 #define $ac_tr_func 1
12261 else
12262 echo "$ac_t""no" 1>&6
12264 done
12266 with_smbpasswd_sam=no
12269 echo "$ac_t""no" 1>&6
12271 esac
12272 else
12273 echo "$ac_t""no" 1>&6
12278 #################################################
12279 # check for a NISPLUS password database
12280 echo $ac_n "checking whether to use NISPLUS SAM database""... $ac_c" 1>&6
12281 echo "configure:12282: checking whether to use NISPLUS SAM database" >&5
12282 # Check whether --with-nisplussam or --without-nisplussam was given.
12283 if test "${with_nisplussam+set}" = set; then
12284 withval="$with_nisplussam"
12285 case "$withval" in
12286 yes)
12287 echo "$ac_t""yes" 1>&6
12288 cat >> confdefs.h <<\EOF
12289 #define WITH_NISPLUS_SAM 1
12292 with_smbpasswd_sam=no
12295 echo "$ac_t""no" 1>&6
12297 esac
12298 else
12299 echo "$ac_t""no" 1>&6
12304 ################################################
12305 # This test should come last because the
12306 # smbpasswd SAM is only used if another format
12307 # has not been defined
12308 echo $ac_n "checking whether to use traditional smbpasswd file""... $ac_c" 1>&6
12309 echo "configure:12310: checking whether to use traditional smbpasswd file" >&5
12310 if test $with_smbpasswd_sam = yes; then
12311 echo "$ac_t""yes" 1>&6
12312 cat >> confdefs.h <<\EOF
12313 #define WITH_SMBPASSWD_SAM 1
12316 PDBEDIT=""
12317 else
12318 echo "$ac_t""no" 1>&6
12319 PDBEDIT=bin/pdbedit
12322 ########################################################################################
12324 ## END OF TESTS FOR SAM BACKENDS.
12326 ########################################################################################
12328 #################################################
12329 # check for a NISPLUS_HOME support
12330 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
12331 echo "configure:12332: checking whether to use NISPLUS_HOME" >&5
12332 # Check whether --with-nisplus-home or --without-nisplus-home was given.
12333 if test "${with_nisplus_home+set}" = set; then
12334 withval="$with_nisplus_home"
12335 case "$withval" in
12336 yes)
12337 echo "$ac_t""yes" 1>&6
12338 cat >> confdefs.h <<\EOF
12339 #define WITH_NISPLUS_HOME 1
12344 echo "$ac_t""no" 1>&6
12346 esac
12347 else
12348 echo "$ac_t""no" 1>&6
12353 #################################################
12354 # check for the secure socket layer
12355 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
12356 echo "configure:12357: checking whether to use SSL" >&5
12357 # Check whether --with-ssl or --without-ssl was given.
12358 if test "${with_ssl+set}" = set; then
12359 withval="$with_ssl"
12360 case "$withval" in
12361 yes)
12362 echo "$ac_t""yes" 1>&6
12363 cat >> confdefs.h <<\EOF
12364 #define WITH_SSL 1
12367 withval="/usr/local/ssl" # default
12369 if test "${with_sslinc+set}" = set; then
12371 withval="$with_sslinc"
12372 case "$withval" in
12373 yes|no)
12374 echo "configure: warning: --with-sslinc called without argument - will use default" 1>&w
12375 CFLAGS="-I/usr/local/ssl/include $CFLAGS"
12378 CFLAGS="-I${withval} $CFLAGS"
12380 esac
12382 else
12384 CFLAGS="-I/usr/local/ssl/include $CFLAGS"
12388 if test "${with_ssllib+set}" = set; then
12390 withval="$with_ssllib"
12391 case "$withval" in
12392 yes|no)
12393 echo "configure: warning: --with-ssllib called without argument - will use default" 1>&w
12394 LDFLAGS="-L/usr/local/ssl/lib $LDFLAGS"
12397 LDFLAGS="-L${withval}/lib $LDFLAGS"
12399 esac
12401 else
12403 LDFLAGS="-L/usr/local/ssl/lib $LDFLAGS"
12407 LIBS="-lssl -lcrypto $LIBS"
12409 # if test ! -d ${withval}; then
12410 # echo "configure: error: called with --with-ssl, but ssl base directory ${withval} does not exist or is not a directory. Aborting config" 1>&2
12411 # exit 1
12412 # fi
12414 CFLAGS="-DHAVE_CRYPT_DECL $CFLAGS" # Damn, SSLeay defines its own
12418 echo "$ac_t""no" 1>&6
12420 esac
12421 else
12422 echo "$ac_t""no" 1>&6
12427 #################################################
12428 # check for syslog logging
12429 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
12430 echo "configure:12431: checking whether to use syslog logging" >&5
12431 # Check whether --with-syslog or --without-syslog was given.
12432 if test "${with_syslog+set}" = set; then
12433 withval="$with_syslog"
12434 case "$withval" in
12435 yes)
12436 echo "$ac_t""yes" 1>&6
12437 cat >> confdefs.h <<\EOF
12438 #define WITH_SYSLOG 1
12443 echo "$ac_t""no" 1>&6
12445 esac
12446 else
12447 echo "$ac_t""no" 1>&6
12452 #################################################
12453 # check for a shared memory profiling support
12454 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
12455 echo "configure:12456: checking whether to use profiling" >&5
12456 # Check whether --with-profiling-data or --without-profiling-data was given.
12457 if test "${with_profiling_data+set}" = set; then
12458 withval="$with_profiling_data"
12459 case "$withval" in
12460 yes)
12461 echo "$ac_t""yes" 1>&6
12462 cat >> confdefs.h <<\EOF
12463 #define WITH_PROFILE 1
12468 echo "$ac_t""no" 1>&6
12470 esac
12471 else
12472 echo "$ac_t""no" 1>&6
12478 #################################################
12479 # check for experimental disk-quotas support
12480 QUOTAOBJS=smbd/noquotas.o
12482 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
12483 echo "configure:12484: checking whether to support disk-quotas" >&5
12484 # Check whether --with-quotas or --without-quotas was given.
12485 if test "${with_quotas+set}" = set; then
12486 withval="$with_quotas"
12487 case "$withval" in
12488 yes)
12489 echo "$ac_t""yes" 1>&6
12490 QUOTAOBJS=smbd/quotas.o
12491 case "$host_os" in
12492 *linux*)
12493 # Check for kernel 2.4.x quota braindamage...
12494 echo $ac_n "checking for linux 2.4.x quota braindamage..""... $ac_c" 1>&6
12495 echo "configure:12496: checking for linux 2.4.x quota braindamage.." >&5
12496 if eval "test \"`echo '$''{'samba_cv_linux_2_4_quota_braindamage'+set}'`\" = set"; then
12497 echo $ac_n "(cached) $ac_c" 1>&6
12498 else
12500 cat > conftest.$ac_ext <<EOF
12501 #line 12502 "configure"
12502 #include "confdefs.h"
12503 #include <stdio.h>
12504 #include <sys/types.h>
12505 #include <asm/types.h>
12506 #include <linux/quota.h>
12507 #include <mntent.h>
12508 #include <linux/unistd.h>
12509 int main() {
12510 struct mem_dqblk D;
12511 ; return 0; }
12513 if { (eval echo configure:12514: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12514 rm -rf conftest*
12515 samba_cv_linux_2_4_quota_braindamage=yes
12516 else
12517 echo "configure: failed program was:" >&5
12518 cat conftest.$ac_ext >&5
12519 rm -rf conftest*
12520 samba_cv_linux_2_4_quota_braindamage=no
12522 rm -f conftest*
12525 echo "$ac_t""$samba_cv_linux_2_4_quota_braindamage" 1>&6
12526 if test x"$samba_cv_linux_2_4_quota_braindamage" = x"yes"; then
12527 cat >> confdefs.h <<\EOF
12528 #define LINUX_QUOTAS_2 1
12531 else
12532 cat >> confdefs.h <<\EOF
12533 #define LINUX_QUOTAS_1 1
12540 esac
12543 echo "$ac_t""no" 1>&6
12545 esac
12546 else
12547 echo "$ac_t""no" 1>&6
12553 #################################################
12554 # check for experimental utmp accounting
12556 echo $ac_n "checking whether to support utmp accounting""... $ac_c" 1>&6
12557 echo "configure:12558: checking whether to support utmp accounting" >&5
12558 # Check whether --with-utmp or --without-utmp was given.
12559 if test "${with_utmp+set}" = set; then
12560 withval="$with_utmp"
12561 case "$withval" in
12562 yes)
12563 echo "$ac_t""yes" 1>&6
12564 cat >> confdefs.h <<\EOF
12565 #define WITH_UTMP 1
12570 echo "$ac_t""no" 1>&6
12572 esac
12573 else
12574 echo "$ac_t""no" 1>&6
12579 #################################################
12580 # check for MS Dfs support
12582 echo $ac_n "checking whether to support Microsoft Dfs""... $ac_c" 1>&6
12583 echo "configure:12584: checking whether to support Microsoft Dfs" >&5
12584 # Check whether --with-msdfs or --without-msdfs was given.
12585 if test "${with_msdfs+set}" = set; then
12586 withval="$with_msdfs"
12587 case "$withval" in
12588 yes)
12589 echo "$ac_t""yes" 1>&6
12590 cat >> confdefs.h <<\EOF
12591 #define WITH_MSDFS 1
12596 echo "$ac_t""no" 1>&6
12598 esac
12599 else
12600 echo "$ac_t""no" 1>&6
12605 #################################################
12606 # should we build libsmbclient?
12608 LIBSMBCLIENT_SHARED=
12609 LIBSMBCLIENT=
12610 echo $ac_n "checking whether to build the libsmbclient shared library""... $ac_c" 1>&6
12611 echo "configure:12612: checking whether to build the libsmbclient shared library" >&5
12612 # Check whether --with-libsmbclient or --without-libsmbclient was given.
12613 if test "${with_libsmbclient+set}" = set; then
12614 withval="$with_libsmbclient"
12615 case "$withval" in
12616 yes)
12617 if test $BLDSHARED = true; then
12618 LIBSMBCLIENT_SHARED=bin/libsmbclient.$SHLIBEXT
12619 LIBSMBCLIENT=libsmbclient
12620 echo "$ac_t""yes" 1>&6
12621 else
12622 echo "$ac_t""no shared library support" 1>&6
12626 echo "$ac_t""no" 1>&6
12628 esac
12629 else
12630 echo "$ac_t""no" 1>&6
12635 #################################################
12636 # these tests are taken from the GNU fileutils package
12637 echo "checking how to get filesystem space usage" 1>&6
12638 echo "configure:12639: checking how to get filesystem space usage" >&5
12639 space=no
12641 # Test for statvfs64.
12642 if test $space = no; then
12643 # SVR4
12644 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
12645 echo "configure:12646: checking statvfs64 function (SVR4)" >&5
12646 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
12647 echo $ac_n "(cached) $ac_c" 1>&6
12648 else
12649 if test "$cross_compiling" = yes; then
12650 fu_cv_sys_stat_statvfs64=cross
12651 else
12652 cat > conftest.$ac_ext <<EOF
12653 #line 12654 "configure"
12654 #include "confdefs.h"
12656 #if defined(HAVE_UNISTD_H)
12657 #include <unistd.h>
12658 #endif
12659 #include <sys/types.h>
12660 #include <sys/statvfs.h>
12661 main ()
12663 struct statvfs64 fsd;
12664 exit (statvfs64 (".", &fsd));
12667 if { (eval echo configure:12668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12668 then
12669 fu_cv_sys_stat_statvfs64=yes
12670 else
12671 echo "configure: failed program was:" >&5
12672 cat conftest.$ac_ext >&5
12673 rm -fr conftest*
12674 fu_cv_sys_stat_statvfs64=no
12676 rm -fr conftest*
12681 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
12682 if test $fu_cv_sys_stat_statvfs64 = yes; then
12683 space=yes
12684 cat >> confdefs.h <<\EOF
12685 #define STAT_STATVFS64 1
12691 # Perform only the link test since it seems there are no variants of the
12692 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
12693 # because that got a false positive on SCO OSR5. Adding the declaration
12694 # of a `struct statvfs' causes this test to fail (as it should) on such
12695 # systems. That system is reported to work fine with STAT_STATFS4 which
12696 # is what it gets when this test fails.
12697 if test $space = no; then
12698 # SVR4
12699 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
12700 echo "configure:12701: checking statvfs function (SVR4)" >&5
12701 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
12702 echo $ac_n "(cached) $ac_c" 1>&6
12703 else
12704 cat > conftest.$ac_ext <<EOF
12705 #line 12706 "configure"
12706 #include "confdefs.h"
12707 #include <sys/types.h>
12708 #include <sys/statvfs.h>
12709 int main() {
12710 struct statvfs fsd; statvfs (0, &fsd);
12711 ; return 0; }
12713 if { (eval echo configure:12714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12714 rm -rf conftest*
12715 fu_cv_sys_stat_statvfs=yes
12716 else
12717 echo "configure: failed program was:" >&5
12718 cat conftest.$ac_ext >&5
12719 rm -rf conftest*
12720 fu_cv_sys_stat_statvfs=no
12722 rm -f conftest*
12725 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
12726 if test $fu_cv_sys_stat_statvfs = yes; then
12727 space=yes
12728 cat >> confdefs.h <<\EOF
12729 #define STAT_STATVFS 1
12735 if test $space = no; then
12736 # DEC Alpha running OSF/1
12737 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
12738 echo "configure:12739: checking for 3-argument statfs function (DEC OSF/1)" >&5
12739 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
12740 echo $ac_n "(cached) $ac_c" 1>&6
12741 else
12742 if test "$cross_compiling" = yes; then
12743 fu_cv_sys_stat_statfs3_osf1=no
12744 else
12745 cat > conftest.$ac_ext <<EOF
12746 #line 12747 "configure"
12747 #include "confdefs.h"
12749 #include <sys/param.h>
12750 #include <sys/types.h>
12751 #include <sys/mount.h>
12752 main ()
12754 struct statfs fsd;
12755 fsd.f_fsize = 0;
12756 exit (statfs (".", &fsd, sizeof (struct statfs)));
12759 if { (eval echo configure:12760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12760 then
12761 fu_cv_sys_stat_statfs3_osf1=yes
12762 else
12763 echo "configure: failed program was:" >&5
12764 cat conftest.$ac_ext >&5
12765 rm -fr conftest*
12766 fu_cv_sys_stat_statfs3_osf1=no
12768 rm -fr conftest*
12773 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
12774 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
12775 space=yes
12776 cat >> confdefs.h <<\EOF
12777 #define STAT_STATFS3_OSF1 1
12783 if test $space = no; then
12784 # AIX
12785 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
12786 echo "configure:12787: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
12787 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
12788 echo $ac_n "(cached) $ac_c" 1>&6
12789 else
12790 if test "$cross_compiling" = yes; then
12791 fu_cv_sys_stat_statfs2_bsize=no
12792 else
12793 cat > conftest.$ac_ext <<EOF
12794 #line 12795 "configure"
12795 #include "confdefs.h"
12797 #ifdef HAVE_SYS_PARAM_H
12798 #include <sys/param.h>
12799 #endif
12800 #ifdef HAVE_SYS_MOUNT_H
12801 #include <sys/mount.h>
12802 #endif
12803 #ifdef HAVE_SYS_VFS_H
12804 #include <sys/vfs.h>
12805 #endif
12806 main ()
12808 struct statfs fsd;
12809 fsd.f_bsize = 0;
12810 exit (statfs (".", &fsd));
12813 if { (eval echo configure:12814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12814 then
12815 fu_cv_sys_stat_statfs2_bsize=yes
12816 else
12817 echo "configure: failed program was:" >&5
12818 cat conftest.$ac_ext >&5
12819 rm -fr conftest*
12820 fu_cv_sys_stat_statfs2_bsize=no
12822 rm -fr conftest*
12827 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
12828 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
12829 space=yes
12830 cat >> confdefs.h <<\EOF
12831 #define STAT_STATFS2_BSIZE 1
12837 if test $space = no; then
12838 # SVR3
12839 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
12840 echo "configure:12841: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
12841 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
12842 echo $ac_n "(cached) $ac_c" 1>&6
12843 else
12844 if test "$cross_compiling" = yes; then
12845 fu_cv_sys_stat_statfs4=no
12846 else
12847 cat > conftest.$ac_ext <<EOF
12848 #line 12849 "configure"
12849 #include "confdefs.h"
12850 #include <sys/types.h>
12851 #include <sys/statfs.h>
12852 main ()
12854 struct statfs fsd;
12855 exit (statfs (".", &fsd, sizeof fsd, 0));
12858 if { (eval echo configure:12859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12859 then
12860 fu_cv_sys_stat_statfs4=yes
12861 else
12862 echo "configure: failed program was:" >&5
12863 cat conftest.$ac_ext >&5
12864 rm -fr conftest*
12865 fu_cv_sys_stat_statfs4=no
12867 rm -fr conftest*
12872 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
12873 if test $fu_cv_sys_stat_statfs4 = yes; then
12874 space=yes
12875 cat >> confdefs.h <<\EOF
12876 #define STAT_STATFS4 1
12882 if test $space = no; then
12883 # 4.4BSD and NetBSD
12884 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
12885 echo "configure:12886: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
12886 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
12887 echo $ac_n "(cached) $ac_c" 1>&6
12888 else
12889 if test "$cross_compiling" = yes; then
12890 fu_cv_sys_stat_statfs2_fsize=no
12891 else
12892 cat > conftest.$ac_ext <<EOF
12893 #line 12894 "configure"
12894 #include "confdefs.h"
12895 #include <sys/types.h>
12896 #ifdef HAVE_SYS_PARAM_H
12897 #include <sys/param.h>
12898 #endif
12899 #ifdef HAVE_SYS_MOUNT_H
12900 #include <sys/mount.h>
12901 #endif
12902 main ()
12904 struct statfs fsd;
12905 fsd.f_fsize = 0;
12906 exit (statfs (".", &fsd));
12909 if { (eval echo configure:12910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12910 then
12911 fu_cv_sys_stat_statfs2_fsize=yes
12912 else
12913 echo "configure: failed program was:" >&5
12914 cat conftest.$ac_ext >&5
12915 rm -fr conftest*
12916 fu_cv_sys_stat_statfs2_fsize=no
12918 rm -fr conftest*
12923 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
12924 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
12925 space=yes
12926 cat >> confdefs.h <<\EOF
12927 #define STAT_STATFS2_FSIZE 1
12933 if test $space = no; then
12934 # Ultrix
12935 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
12936 echo "configure:12937: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
12937 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
12938 echo $ac_n "(cached) $ac_c" 1>&6
12939 else
12940 if test "$cross_compiling" = yes; then
12941 fu_cv_sys_stat_fs_data=no
12942 else
12943 cat > conftest.$ac_ext <<EOF
12944 #line 12945 "configure"
12945 #include "confdefs.h"
12946 #include <sys/types.h>
12947 #ifdef HAVE_SYS_PARAM_H
12948 #include <sys/param.h>
12949 #endif
12950 #ifdef HAVE_SYS_MOUNT_H
12951 #include <sys/mount.h>
12952 #endif
12953 #ifdef HAVE_SYS_FS_TYPES_H
12954 #include <sys/fs_types.h>
12955 #endif
12956 main ()
12958 struct fs_data fsd;
12959 /* Ultrix's statfs returns 1 for success,
12960 0 for not mounted, -1 for failure. */
12961 exit (statfs (".", &fsd) != 1);
12964 if { (eval echo configure:12965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12965 then
12966 fu_cv_sys_stat_fs_data=yes
12967 else
12968 echo "configure: failed program was:" >&5
12969 cat conftest.$ac_ext >&5
12970 rm -fr conftest*
12971 fu_cv_sys_stat_fs_data=no
12973 rm -fr conftest*
12978 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
12979 if test $fu_cv_sys_stat_fs_data = yes; then
12980 space=yes
12981 cat >> confdefs.h <<\EOF
12982 #define STAT_STATFS2_FS_DATA 1
12989 # As a gating factor for large file support, in order to
12990 # use <4GB files we must have the following minimal support
12991 # available.
12992 # long long, and a 64 bit off_t or off64_t.
12993 # If we don't have all of these then disable large
12994 # file support.
12996 echo $ac_n "checking if large file support can be enabled""... $ac_c" 1>&6
12997 echo "configure:12998: checking if large file support can be enabled" >&5
12998 cat > conftest.$ac_ext <<EOF
12999 #line 13000 "configure"
13000 #include "confdefs.h"
13002 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
13003 #include <sys/types.h>
13004 #else
13005 __COMPILE_ERROR_
13006 #endif
13008 int main() {
13009 int i
13010 ; return 0; }
13012 if { (eval echo configure:13013: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13013 rm -rf conftest*
13014 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=yes
13015 else
13016 echo "configure: failed program was:" >&5
13017 cat conftest.$ac_ext >&5
13018 rm -rf conftest*
13019 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=no
13021 rm -f conftest*
13022 if test x"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x"yes"; then
13023 echo "$ac_t""yes" 1>&6
13024 cat >> confdefs.h <<\EOF
13025 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
13028 else
13029 echo "$ac_t""no" 1>&6
13032 # Check whether --with-spinlocks or --without-spinlocks was given.
13033 if test "${with_spinlocks+set}" = set; then
13034 withval="$with_spinlocks"
13038 if test "x$with_spinlocks" = "xyes"; then
13039 cat >> confdefs.h <<\EOF
13040 #define USE_SPINLOCKS 1
13044 case "$host_cpu" in
13045 sparc)
13046 cat >> confdefs.h <<\EOF
13047 #define SPARC_SPINLOCKS 1
13052 i386|i486|i586|i686)
13053 cat >> confdefs.h <<\EOF
13054 #define INTEL_SPINLOCKS 1
13059 mips)
13060 cat >> confdefs.h <<\EOF
13061 #define MIPS_SPINLOCKS 1
13066 powerpc)
13067 cat >> confdefs.h <<\EOF
13068 #define POWERPC_SPINLOCKS 1
13072 esac
13075 #################################################
13076 # check for ACL support
13078 echo $ac_n "checking whether to support ACLs""... $ac_c" 1>&6
13079 echo "configure:13080: checking whether to support ACLs" >&5
13080 # Check whether --with-acl-support or --without-acl-support was given.
13081 if test "${with_acl_support+set}" = set; then
13082 withval="$with_acl_support"
13083 case "$withval" in
13084 yes)
13086 case "$host_os" in
13087 *sysv5*)
13088 echo "$ac_t""Using UnixWare ACLs" 1>&6
13089 cat >> confdefs.h <<\EOF
13090 #define HAVE_UNIXWARE_ACLS 1
13094 *solaris*)
13095 echo "$ac_t""Using solaris ACLs" 1>&6
13096 cat >> confdefs.h <<\EOF
13097 #define HAVE_SOLARIS_ACLS 1
13101 *hpux*)
13102 echo "$ac_t""Using HPUX ACLs" 1>&6
13103 cat >> confdefs.h <<\EOF
13104 #define HAVE_HPUX_ACLS 1
13108 *irix*)
13109 echo "$ac_t""Using IRIX ACLs" 1>&6
13110 cat >> confdefs.h <<\EOF
13111 #define HAVE_IRIX_ACLS 1
13115 *aix*)
13116 echo "$ac_t""Using AIX ACLs" 1>&6
13117 cat >> confdefs.h <<\EOF
13118 #define HAVE_AIX_ACLS 1
13122 *osf*)
13123 echo "$ac_t""Using Tru64 ACLs" 1>&6
13124 cat >> confdefs.h <<\EOF
13125 #define HAVE_TRU64_ACLS 1
13128 LIBS="$LIBS -lpacl"
13131 echo $ac_n "checking for acl_get_file in -lacl""... $ac_c" 1>&6
13132 echo "configure:13133: checking for acl_get_file in -lacl" >&5
13133 ac_lib_var=`echo acl'_'acl_get_file | sed 'y%./+-%__p_%'`
13134 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13135 echo $ac_n "(cached) $ac_c" 1>&6
13136 else
13137 ac_save_LIBS="$LIBS"
13138 LIBS="-lacl $LIBS"
13139 cat > conftest.$ac_ext <<EOF
13140 #line 13141 "configure"
13141 #include "confdefs.h"
13142 /* Override any gcc2 internal prototype to avoid an error. */
13143 /* We use char because int might match the return type of a gcc2
13144 builtin and then its argument prototype would still apply. */
13145 char acl_get_file();
13147 int main() {
13148 acl_get_file()
13149 ; return 0; }
13151 if { (eval echo configure:13152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13152 rm -rf conftest*
13153 eval "ac_cv_lib_$ac_lib_var=yes"
13154 else
13155 echo "configure: failed program was:" >&5
13156 cat conftest.$ac_ext >&5
13157 rm -rf conftest*
13158 eval "ac_cv_lib_$ac_lib_var=no"
13160 rm -f conftest*
13161 LIBS="$ac_save_LIBS"
13164 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13165 echo "$ac_t""yes" 1>&6
13166 ac_tr_lib=HAVE_LIB`echo acl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
13167 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
13168 cat >> confdefs.h <<EOF
13169 #define $ac_tr_lib 1
13172 LIBS="-lacl $LIBS"
13174 else
13175 echo "$ac_t""no" 1>&6
13178 echo $ac_n "checking for ACL support""... $ac_c" 1>&6
13179 echo "configure:13180: checking for ACL support" >&5
13180 if eval "test \"`echo '$''{'samba_cv_HAVE_POSIX_ACLS'+set}'`\" = set"; then
13181 echo $ac_n "(cached) $ac_c" 1>&6
13182 else
13184 cat > conftest.$ac_ext <<EOF
13185 #line 13186 "configure"
13186 #include "confdefs.h"
13187 #include <sys/types.h>
13188 #include <sys/acl.h>
13189 int main() {
13190 acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
13191 ; return 0; }
13193 if { (eval echo configure:13194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13194 rm -rf conftest*
13195 samba_cv_HAVE_POSIX_ACLS=yes
13196 else
13197 echo "configure: failed program was:" >&5
13198 cat conftest.$ac_ext >&5
13199 rm -rf conftest*
13200 samba_cv_HAVE_POSIX_ACLS=no
13202 rm -f conftest*
13205 echo "$ac_t""$samba_cv_HAVE_POSIX_ACLS" 1>&6
13206 if test x"$samba_cv_HAVE_POSIX_ACLS" = x"yes"; then
13207 echo "$ac_t""Using posix ACLs" 1>&6
13208 cat >> confdefs.h <<\EOF
13209 #define HAVE_POSIX_ACLS 1
13212 echo $ac_n "checking for acl_get_perm_np""... $ac_c" 1>&6
13213 echo "configure:13214: checking for acl_get_perm_np" >&5
13214 if eval "test \"`echo '$''{'samba_cv_HAVE_ACL_GET_PERM_NP'+set}'`\" = set"; then
13215 echo $ac_n "(cached) $ac_c" 1>&6
13216 else
13218 cat > conftest.$ac_ext <<EOF
13219 #line 13220 "configure"
13220 #include "confdefs.h"
13221 #include <sys/types.h>
13222 #include <sys/acl.h>
13223 int main() {
13224 acl_permset_t permset_d; acl_perm_t perm; return acl_get_perm_np( permset_d, perm);
13225 ; return 0; }
13227 if { (eval echo configure:13228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13228 rm -rf conftest*
13229 samba_cv_HAVE_ACL_GET_PERM_NP=yes
13230 else
13231 echo "configure: failed program was:" >&5
13232 cat conftest.$ac_ext >&5
13233 rm -rf conftest*
13234 samba_cv_HAVE_ACL_GET_PERM_NP=no
13236 rm -f conftest*
13239 echo "$ac_t""$samba_cv_HAVE_ACL_GET_PERM_NP" 1>&6
13240 if test x"$samba_cv_HAVE_ACL_GET_PERM_NP" = x"yes"; then
13241 cat >> confdefs.h <<\EOF
13242 #define HAVE_ACL_GET_PERM_NP 1
13248 esac
13251 echo "$ac_t""no" 1>&6
13252 cat >> confdefs.h <<\EOF
13253 #define HAVE_NO_ACLS 1
13257 esac
13258 else
13259 cat >> confdefs.h <<\EOF
13260 #define HAVE_NO_ACLS 1
13263 echo "$ac_t""no" 1>&6
13268 #################################################
13269 # check for the historical SAMBA installation
13271 if test "x$prefix" = xNONE -a "$sbindir" = "\${exec_prefix}/sbin"; then
13272 # Put all binaries under the /usr/local/samba/bin directory.
13273 sbindir="$bindir"
13276 #################################################
13277 # Check whether winbind is supported on this platform. If so we need to
13278 # build and install client programs (WINBIND_TARGETS), sbin programs
13279 # (WINBIND_STARGETS) and shared libraries (WINBIND_LTARGETS).
13281 echo $ac_n "checking whether to build winbind""... $ac_c" 1>&6
13282 echo "configure:13283: checking whether to build winbind" >&5
13284 # Initially, the value of $host_os decides whether winbind is supported
13286 case "$host_os" in
13287 *linux*|*irix*)
13288 HAVE_WINBIND=yes
13290 *solaris*)
13291 HAVE_WINBIND=yes
13292 WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_solaris.o"
13293 WINBIND_NSS_EXTRA_LIBS="-lsocket"
13295 *hpux11*)
13296 HAVE_WINBIND=yes
13297 WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_solaris.o"
13299 *aix4*)
13300 HAVE_WINBIND=yes
13303 HAVE_WINBIND=no
13304 winbind_no_reason=", unsupported on $host_os"
13306 esac
13308 # Check the setting of --with-winbindd
13310 # Check whether --with-winbind or --without-winbind was given.
13311 if test "${with_winbind+set}" = set; then
13312 withval="$with_winbind"
13314 case "$withval" in
13315 yes)
13316 HAVE_WINBIND=yes
13319 HAVE_WINBIND=no
13320 winbind_reason=""
13322 esac
13326 # We need unix domain sockets for winbind
13328 if test x"$HAVE_WINBIND" = x"yes"; then
13329 if test x"$samba_cv_unixsocket" = x"no"; then
13330 winbind_no_reason=", no unix domain socket support on $host_os"
13331 HAVE_WINBIND=no
13335 # Display test results
13337 if test x"$HAVE_WINBIND" = x"yes"; then
13339 echo "$ac_t""yes" 1>&6
13341 WINBIND_TARGETS="bin/wbinfo"
13342 WINBIND_STARGETS="bin/winbindd"
13343 case "$host_os" in
13344 *irix*)
13345 WINBIND_LTARGETS="nsswitch/libns_winbind.so"
13348 WINBIND_LTARGETS="nsswitch/libnss_winbind.so"
13350 esac
13353 case "$with_pam" in
13354 yes)
13355 WINBIND_PAM_TARGETS="nsswitch/pam_winbind.so"
13357 esac
13358 else
13359 echo "$ac_t""no$winbind_no_reason" 1>&6
13361 WINBIND_TARGETS=""
13362 WINBIND_STARGETS=""
13363 WINBIND_LTARGETS=""
13364 WINBIND_PAM_TARGETS=""
13367 # Check for FreeBSD problem with getgroups
13368 # It returns EGID too many times in the list of groups
13369 # and causes a security problem
13370 echo $ac_n "checking whether or not getgroups returns EGID too many times""... $ac_c" 1>&6
13371 echo "configure:13372: checking whether or not getgroups returns EGID too many times" >&5
13372 if eval "test \"`echo '$''{'samba_cv_have_getgroups_too_many_egids'+set}'`\" = set"; then
13373 echo $ac_n "(cached) $ac_c" 1>&6
13374 else
13375 if test "$cross_compiling" = yes; then
13376 samba_cv_have_getgroups_too_many_egids=cross
13377 else
13378 cat > conftest.$ac_ext <<EOF
13379 #line 13380 "configure"
13380 #include "confdefs.h"
13382 #include <sys/types.h>
13383 #include <stdio.h>
13385 int main(int argc, char *argv[])
13387 gid_t groups[10];
13388 int n = 10;
13390 n = getgroups(n, &groups);
13391 /* Could actually pass back the number of EGIDs there ... */
13392 exit((n > 1 && groups[0] == getegid() && groups[1] == getegid()) ? 1 : 0);
13395 if { (eval echo configure:13396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13396 then
13397 samba_cv_have_getgroups_too_many_egids=no
13398 else
13399 echo "configure: failed program was:" >&5
13400 cat conftest.$ac_ext >&5
13401 rm -fr conftest*
13402 samba_cv_have_getgroups_too_many_egids=yes
13404 rm -fr conftest*
13409 echo "$ac_t""$samba_cv_have_getgroups_too_many_egids" 1>&6
13410 if test x"$samba_cv_have_getgroups_too_many_egids" = x"yes"; then
13411 cat >> confdefs.h <<\EOF
13412 #define HAVE_GETGROUPS_TOO_MANY_EGIDS 1
13417 # Substitution time!
13426 # Solaris has some extra fields in struct passwd that need to be
13427 # initialised otherwise nscd crashes. Unfortunately autoconf < 2.50
13428 # doesn't have the AC_CHECK_MEMBER macro which would be handy for checking
13429 # this.
13431 #AC_CHECK_MEMBER(struct passwd.pw_comment,
13432 # AC_DEFINE(HAVE_PASSWD_PW_COMMENT, 1, [Defined if struct passwd has pw_comment field]),
13433 # [#include <pwd.h>])
13435 echo $ac_n "checking whether struct passwd has pw_comment""... $ac_c" 1>&6
13436 echo "configure:13437: checking whether struct passwd has pw_comment" >&5
13437 if eval "test \"`echo '$''{'samba_cv_passwd_pw_comment'+set}'`\" = set"; then
13438 echo $ac_n "(cached) $ac_c" 1>&6
13439 else
13441 cat > conftest.$ac_ext <<EOF
13442 #line 13443 "configure"
13443 #include "confdefs.h"
13444 #include <pwd.h>
13445 int main() {
13446 struct passwd p; p.pw_comment;
13447 ; return 0; }
13449 if { (eval echo configure:13450: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13450 rm -rf conftest*
13451 samba_cv_passwd_pw_comment=yes
13452 else
13453 echo "configure: failed program was:" >&5
13454 cat conftest.$ac_ext >&5
13455 rm -rf conftest*
13456 samba_cv_passwd_pw_comment=no
13458 rm -f conftest*
13461 echo "$ac_t""$samba_cv_passwd_pw_comment" 1>&6
13462 if test x"$samba_cv_passwd_pw_comment" = x"yes"; then
13463 cat >> confdefs.h <<\EOF
13464 #define HAVE_PASSWD_PW_COMMENT 1
13469 #AC_CHECK_MEMBER(struct passwd.pw_age,
13470 # AC_DEFINE(HAVE_PASSWD_PW_AGE, 1, [Defined if struct passwd has pw_age field]),
13471 # [#include <pwd.h>])
13473 echo $ac_n "checking whether struct passwd has pw_age""... $ac_c" 1>&6
13474 echo "configure:13475: checking whether struct passwd has pw_age" >&5
13475 if eval "test \"`echo '$''{'samba_cv_passwd_pw_age'+set}'`\" = set"; then
13476 echo $ac_n "(cached) $ac_c" 1>&6
13477 else
13479 cat > conftest.$ac_ext <<EOF
13480 #line 13481 "configure"
13481 #include "confdefs.h"
13482 #include <pwd.h>
13483 int main() {
13484 struct passwd p; p.pw_age;
13485 ; return 0; }
13487 if { (eval echo configure:13488: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13488 rm -rf conftest*
13489 samba_cv_passwd_pw_age=yes
13490 else
13491 echo "configure: failed program was:" >&5
13492 cat conftest.$ac_ext >&5
13493 rm -rf conftest*
13494 samba_cv_passwd_pw_age=no
13496 rm -f conftest*
13499 echo "$ac_t""$samba_cv_passwd_pw_age" 1>&6
13500 if test x"$samba_cv_passwd_pw_age" = x"yes"; then
13501 cat >> confdefs.h <<\EOF
13502 #define HAVE_PASSWD_PW_AGE 1
13507 #################################################
13508 # Check to see if we should use the included popt
13510 # Check whether --with-included-popt or --without-included-popt was given.
13511 if test "${with_included_popt+set}" = set; then
13512 withval="$with_included_popt"
13514 case "$withval" in
13515 yes)
13516 INCLUDED_POPT=yes
13519 INCLUDED_POPT=no
13521 esac
13524 if test x"$INCLUDED_POPT" != x"yes"; then
13525 echo $ac_n "checking for poptGetContext in -lpopt""... $ac_c" 1>&6
13526 echo "configure:13527: checking for poptGetContext in -lpopt" >&5
13527 ac_lib_var=`echo popt'_'poptGetContext | sed 'y%./+-%__p_%'`
13528 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13529 echo $ac_n "(cached) $ac_c" 1>&6
13530 else
13531 ac_save_LIBS="$LIBS"
13532 LIBS="-lpopt $LIBS"
13533 cat > conftest.$ac_ext <<EOF
13534 #line 13535 "configure"
13535 #include "confdefs.h"
13536 /* Override any gcc2 internal prototype to avoid an error. */
13537 /* We use char because int might match the return type of a gcc2
13538 builtin and then its argument prototype would still apply. */
13539 char poptGetContext();
13541 int main() {
13542 poptGetContext()
13543 ; return 0; }
13545 if { (eval echo configure:13546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13546 rm -rf conftest*
13547 eval "ac_cv_lib_$ac_lib_var=yes"
13548 else
13549 echo "configure: failed program was:" >&5
13550 cat conftest.$ac_ext >&5
13551 rm -rf conftest*
13552 eval "ac_cv_lib_$ac_lib_var=no"
13554 rm -f conftest*
13555 LIBS="$ac_save_LIBS"
13558 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13559 echo "$ac_t""yes" 1>&6
13560 INCLUDED_POPT=no
13561 else
13562 echo "$ac_t""no" 1>&6
13563 INCLUDED_POPT=yes
13568 echo $ac_n "checking whether to use included popt""... $ac_c" 1>&6
13569 echo "configure:13570: checking whether to use included popt" >&5
13570 if test x"$INCLUDED_POPT" = x"yes"; then
13571 echo "$ac_t""$srcdir/popt" 1>&6
13572 BUILD_POPT='$(POPT_OBJS)'
13573 FLAGS1="-I$srcdir/popt"
13574 else
13575 echo "$ac_t""no" 1>&6
13576 LIBS="$LIBS -lpopt"
13581 #################################################
13582 # final configure stuff
13583 echo $ac_n "checking configure summary""... $ac_c" 1>&6
13584 echo "configure:13585: checking configure summary" >&5
13585 if test "$cross_compiling" = yes; then
13586 echo "configure: warning: cannot run when cross-compiling" 1>&2
13587 else
13588 cat > conftest.$ac_ext <<EOF
13589 #line 13590 "configure"
13590 #include "confdefs.h"
13591 #include "${srcdir-.}/tests/summary.c"
13593 if { (eval echo configure:13594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13594 then
13595 echo "$ac_t""yes" 1>&6
13596 else
13597 echo "configure: failed program was:" >&5
13598 cat conftest.$ac_ext >&5
13599 rm -fr conftest*
13600 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }; exit 1;
13602 rm -fr conftest*
13606 builddir=`pwd`
13609 trap '' 1 2 15
13610 cat > confcache <<\EOF
13611 # This file is a shell script that caches the results of configure
13612 # tests run on this system so they can be shared between configure
13613 # scripts and configure runs. It is not useful on other systems.
13614 # If it contains results you don't want to keep, you may remove or edit it.
13616 # By default, configure uses ./config.cache as the cache file,
13617 # creating it if it does not exist already. You can give configure
13618 # the --cache-file=FILE option to use a different cache file; that is
13619 # what configure does when it calls configure scripts in
13620 # subdirectories, so they share the cache.
13621 # Giving --cache-file=/dev/null disables caching, for debugging configure.
13622 # config.status only pays attention to the cache file if you give it the
13623 # --recheck option to rerun configure.
13626 # The following way of writing the cache mishandles newlines in values,
13627 # but we know of no workaround that is simple, portable, and efficient.
13628 # So, don't put newlines in cache variables' values.
13629 # Ultrix sh set writes to stderr and can't be redirected directly,
13630 # and sets the high bit in the cache file unless we assign to the vars.
13631 (set) 2>&1 |
13632 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13633 *ac_space=\ *)
13634 # `set' does not quote correctly, so add quotes (double-quote substitution
13635 # turns \\\\ into \\, and sed turns \\ into \).
13636 sed -n \
13637 -e "s/'/'\\\\''/g" \
13638 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
13641 # `set' quotes correctly as required by POSIX, so do not add quotes.
13642 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
13644 esac >> confcache
13645 if cmp -s $cache_file confcache; then
13647 else
13648 if test -w $cache_file; then
13649 echo "updating cache $cache_file"
13650 cat confcache > $cache_file
13651 else
13652 echo "not updating unwritable cache $cache_file"
13655 rm -f confcache
13657 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
13659 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13660 # Let make expand exec_prefix.
13661 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13663 # Any assignment to VPATH causes Sun make to only execute
13664 # the first set of double-colon rules, so remove it if not needed.
13665 # If there is a colon in the path, we need to keep it.
13666 if test "x$srcdir" = x.; then
13667 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
13670 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
13672 DEFS=-DHAVE_CONFIG_H
13674 # Without the "./", some shells look in PATH for config.status.
13675 : ${CONFIG_STATUS=./config.status}
13677 echo creating $CONFIG_STATUS
13678 rm -f $CONFIG_STATUS
13679 cat > $CONFIG_STATUS <<EOF
13680 #! /bin/sh
13681 # Generated automatically by configure.
13682 # Run this file to recreate the current configuration.
13683 # This directory was configured as follows,
13684 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13686 # $0 $ac_configure_args
13688 # Compiler output produced by configure, useful for debugging
13689 # configure, is in ./config.log if it exists.
13691 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
13692 for ac_option
13694 case "\$ac_option" in
13695 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13696 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
13697 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
13698 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
13699 echo "$CONFIG_STATUS generated by autoconf version 2.13"
13700 exit 0 ;;
13701 -help | --help | --hel | --he | --h)
13702 echo "\$ac_cs_usage"; exit 0 ;;
13703 *) echo "\$ac_cs_usage"; exit 1 ;;
13704 esac
13705 done
13707 ac_given_srcdir=$srcdir
13708 ac_given_INSTALL="$INSTALL"
13710 trap 'rm -fr `echo "include/stamp-h Makefile script/findsmb include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
13712 cat >> $CONFIG_STATUS <<EOF
13714 # Protect against being on the right side of a sed subst in config.status.
13715 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
13716 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
13717 $ac_vpsub
13718 $extrasub
13719 s%@SHELL@%$SHELL%g
13720 s%@CFLAGS@%$CFLAGS%g
13721 s%@CPPFLAGS@%$CPPFLAGS%g
13722 s%@CXXFLAGS@%$CXXFLAGS%g
13723 s%@FFLAGS@%$FFLAGS%g
13724 s%@DEFS@%$DEFS%g
13725 s%@LDFLAGS@%$LDFLAGS%g
13726 s%@LIBS@%$LIBS%g
13727 s%@exec_prefix@%$exec_prefix%g
13728 s%@prefix@%$prefix%g
13729 s%@program_transform_name@%$program_transform_name%g
13730 s%@bindir@%$bindir%g
13731 s%@sbindir@%$sbindir%g
13732 s%@libexecdir@%$libexecdir%g
13733 s%@datadir@%$datadir%g
13734 s%@sysconfdir@%$sysconfdir%g
13735 s%@sharedstatedir@%$sharedstatedir%g
13736 s%@localstatedir@%$localstatedir%g
13737 s%@libdir@%$libdir%g
13738 s%@includedir@%$includedir%g
13739 s%@oldincludedir@%$oldincludedir%g
13740 s%@infodir@%$infodir%g
13741 s%@mandir@%$mandir%g
13742 s%@codepagedir@%$codepagedir%g
13743 s%@configdir@%$configdir%g
13744 s%@lockdir@%$lockdir%g
13745 s%@piddir@%$piddir%g
13746 s%@logfilebase@%$logfilebase%g
13747 s%@privatedir@%$privatedir%g
13748 s%@swatdir@%$swatdir%g
13749 s%@RUNPROG@%$RUNPROG%g
13750 s%@MPROGS@%$MPROGS%g
13751 s%@LDSHFLAGS@%$LDSHFLAGS%g
13752 s%@SONAMEFLAG@%$SONAMEFLAG%g
13753 s%@SHLD@%$SHLD%g
13754 s%@HOST_OS@%$HOST_OS%g
13755 s%@PAM_MOD@%$PAM_MOD%g
13756 s%@PDBEDIT@%$PDBEDIT%g
13757 s%@WRAP@%$WRAP%g
13758 s%@WRAP32@%$WRAP32%g
13759 s%@WRAPPROG@%$WRAPPROG%g
13760 s%@PICFLAG@%$PICFLAG%g
13761 s%@PICSUFFIX@%$PICSUFFIX%g
13762 s%@SHLIBEXT@%$SHLIBEXT%g
13763 s%@BLDSHARED@%$BLDSHARED%g
13764 s%@LIBSMBCLIENT_SHARED@%$LIBSMBCLIENT_SHARED%g
13765 s%@LIBSMBCLIENT@%$LIBSMBCLIENT%g
13766 s%@CC@%$CC%g
13767 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
13768 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
13769 s%@INSTALL_DATA@%$INSTALL_DATA%g
13770 s%@AWK@%$AWK%g
13771 s%@passwd_program@%$passwd_program%g
13772 s%@BROKEN_CC@%$BROKEN_CC%g
13773 s%@host@%$host%g
13774 s%@host_alias@%$host_alias%g
13775 s%@host_cpu@%$host_cpu%g
13776 s%@host_vendor@%$host_vendor%g
13777 s%@host_os@%$host_os%g
13778 s%@target@%$target%g
13779 s%@target_alias@%$target_alias%g
13780 s%@target_cpu@%$target_cpu%g
13781 s%@target_vendor@%$target_vendor%g
13782 s%@target_os@%$target_os%g
13783 s%@build@%$build%g
13784 s%@build_alias@%$build_alias%g
13785 s%@build_cpu@%$build_cpu%g
13786 s%@build_vendor@%$build_vendor%g
13787 s%@build_os@%$build_os%g
13788 s%@CPP@%$CPP%g
13789 s%@CUPS_CONFIG@%$CUPS_CONFIG%g
13790 s%@LIBOBJS@%$LIBOBJS%g
13791 s%@TERMLIBS@%$TERMLIBS%g
13792 s%@TERMLDFLAGS@%$TERMLDFLAGS%g
13793 s%@ROFF@%$ROFF%g
13794 s%@DYNEXP@%$DYNEXP%g
13795 s%@QUOTAOBJS@%$QUOTAOBJS%g
13796 s%@WINBIND_TARGETS@%$WINBIND_TARGETS%g
13797 s%@WINBIND_STARGETS@%$WINBIND_STARGETS%g
13798 s%@WINBIND_LTARGETS@%$WINBIND_LTARGETS%g
13799 s%@WINBIND_PAM_TARGETS@%$WINBIND_PAM_TARGETS%g
13800 s%@WINBIND_NSS_EXTRA_OBJS@%$WINBIND_NSS_EXTRA_OBJS%g
13801 s%@WINBIND_NSS_EXTRA_LIBS@%$WINBIND_NSS_EXTRA_LIBS%g
13802 s%@BUILD_POPT@%$BUILD_POPT%g
13803 s%@FLAGS1@%$FLAGS1%g
13804 s%@builddir@%$builddir%g
13806 CEOF
13809 cat >> $CONFIG_STATUS <<\EOF
13811 # Split the substitutions into bite-sized pieces for seds with
13812 # small command number limits, like on Digital OSF/1 and HP-UX.
13813 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
13814 ac_file=1 # Number of current file.
13815 ac_beg=1 # First line for current file.
13816 ac_end=$ac_max_sed_cmds # Line after last line for current file.
13817 ac_more_lines=:
13818 ac_sed_cmds=""
13819 while $ac_more_lines; do
13820 if test $ac_beg -gt 1; then
13821 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
13822 else
13823 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
13825 if test ! -s conftest.s$ac_file; then
13826 ac_more_lines=false
13827 rm -f conftest.s$ac_file
13828 else
13829 if test -z "$ac_sed_cmds"; then
13830 ac_sed_cmds="sed -f conftest.s$ac_file"
13831 else
13832 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
13834 ac_file=`expr $ac_file + 1`
13835 ac_beg=$ac_end
13836 ac_end=`expr $ac_end + $ac_max_sed_cmds`
13838 done
13839 if test -z "$ac_sed_cmds"; then
13840 ac_sed_cmds=cat
13844 cat >> $CONFIG_STATUS <<EOF
13846 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile script/findsmb"}
13848 cat >> $CONFIG_STATUS <<\EOF
13849 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
13850 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13851 case "$ac_file" in
13852 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13853 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13854 *) ac_file_in="${ac_file}.in" ;;
13855 esac
13857 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
13859 # Remove last slash and all that follows it. Not all systems have dirname.
13860 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13861 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13862 # The file is in a subdirectory.
13863 test ! -d "$ac_dir" && mkdir "$ac_dir"
13864 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
13865 # A "../" for each directory in $ac_dir_suffix.
13866 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
13867 else
13868 ac_dir_suffix= ac_dots=
13871 case "$ac_given_srcdir" in
13872 .) srcdir=.
13873 if test -z "$ac_dots"; then top_srcdir=.
13874 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
13875 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
13876 *) # Relative path.
13877 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
13878 top_srcdir="$ac_dots$ac_given_srcdir" ;;
13879 esac
13881 case "$ac_given_INSTALL" in
13882 [/$]*) INSTALL="$ac_given_INSTALL" ;;
13883 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
13884 esac
13886 echo creating "$ac_file"
13887 rm -f "$ac_file"
13888 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
13889 case "$ac_file" in
13890 *Makefile*) ac_comsub="1i\\
13891 # $configure_input" ;;
13892 *) ac_comsub= ;;
13893 esac
13895 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13896 sed -e "$ac_comsub
13897 s%@configure_input@%$configure_input%g
13898 s%@srcdir@%$srcdir%g
13899 s%@top_srcdir@%$top_srcdir%g
13900 s%@INSTALL@%$INSTALL%g
13901 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
13902 fi; done
13903 rm -f conftest.s*
13905 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13906 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13908 # ac_d sets the value in "#define NAME VALUE" lines.
13909 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13910 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
13911 ac_dC='\3'
13912 ac_dD='%g'
13913 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
13914 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13915 ac_uB='\([ ]\)%\1#\2define\3'
13916 ac_uC=' '
13917 ac_uD='\4%g'
13918 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13919 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13920 ac_eB='$%\1#\2define\3'
13921 ac_eC=' '
13922 ac_eD='%g'
13924 if test "${CONFIG_HEADERS+set}" != set; then
13926 cat >> $CONFIG_STATUS <<EOF
13927 CONFIG_HEADERS="include/config.h"
13929 cat >> $CONFIG_STATUS <<\EOF
13931 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
13932 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13933 case "$ac_file" in
13934 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13935 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13936 *) ac_file_in="${ac_file}.in" ;;
13937 esac
13939 echo creating $ac_file
13941 rm -f conftest.frag conftest.in conftest.out
13942 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13943 cat $ac_file_inputs > conftest.in
13947 # Transform confdefs.h into a sed script conftest.vals that substitutes
13948 # the proper values into config.h.in to produce config.h. And first:
13949 # Protect against being on the right side of a sed subst in config.status.
13950 # Protect against being in an unquoted here document in config.status.
13951 rm -f conftest.vals
13952 cat > conftest.hdr <<\EOF
13953 s/[\\&%]/\\&/g
13954 s%[\\$`]%\\&%g
13955 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
13956 s%ac_d%ac_u%gp
13957 s%ac_u%ac_e%gp
13959 sed -n -f conftest.hdr confdefs.h > conftest.vals
13960 rm -f conftest.hdr
13962 # This sed command replaces #undef with comments. This is necessary, for
13963 # example, in the case of _POSIX_SOURCE, which is predefined and required
13964 # on some systems where configure will not decide to define it.
13965 cat >> conftest.vals <<\EOF
13966 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
13969 # Break up conftest.vals because some shells have a limit on
13970 # the size of here documents, and old seds have small limits too.
13972 rm -f conftest.tail
13973 while :
13975 ac_lines=`grep -c . conftest.vals`
13976 # grep -c gives empty output for an empty file on some AIX systems.
13977 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
13978 # Write a limited-size here document to conftest.frag.
13979 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
13980 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
13981 echo 'CEOF
13982 sed -f conftest.frag conftest.in > conftest.out
13983 rm -f conftest.in
13984 mv conftest.out conftest.in
13985 ' >> $CONFIG_STATUS
13986 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
13987 rm -f conftest.vals
13988 mv conftest.tail conftest.vals
13989 done
13990 rm -f conftest.vals
13992 cat >> $CONFIG_STATUS <<\EOF
13993 rm -f conftest.frag conftest.h
13994 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
13995 cat conftest.in >> conftest.h
13996 rm -f conftest.in
13997 if cmp -s $ac_file conftest.h 2>/dev/null; then
13998 echo "$ac_file is unchanged"
13999 rm -f conftest.h
14000 else
14001 # Remove last slash and all that follows it. Not all systems have dirname.
14002 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
14003 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
14004 # The file is in a subdirectory.
14005 test ! -d "$ac_dir" && mkdir "$ac_dir"
14007 rm -f $ac_file
14008 mv conftest.h $ac_file
14010 fi; done
14013 cat >> $CONFIG_STATUS <<EOF
14016 cat >> $CONFIG_STATUS <<\EOF
14018 exit 0
14020 chmod +x $CONFIG_STATUS
14021 rm -fr confdefs* $ac_clean_files
14022 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1