autoconf fixes to replace HAVE_TDBPWD with HAVE_TDBSAM
[Samba.git] / source / configure
blobaca9c1a977e60dcfa9697617fb4281b7e352f7a5
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-swatdir=DIR Where to put SWAT files ($ac_default_prefix/swat)"
23 ac_help="$ac_help
24 --with-configdir=DIR Where to put configuration files (\$libdir)"
25 ac_help="$ac_help
26 --with-codepagedir=DIR Where to put codepage files (\$libdir/codepages)"
27 ac_help="$ac_help
28 --enable-debug Turn on compiler debugging information (default=no)"
29 ac_help="$ac_help
30 --with-readline[=DIR] Look for readline include/libs in DIR (default=auto)"
31 ac_help="$ac_help
32 --with-smbwrapper Include SMB wrapper support (default=no)"
33 ac_help="$ac_help
34 --with-afs Include AFS support (default=no)"
35 ac_help="$ac_help
36 --with-dce-dfs Include DCE/DFS support (default=no)"
37 ac_help="$ac_help
38 --with-krb4=base-dir Include Kerberos IV support (default=no)"
39 ac_help="$ac_help
40 --with-krb5=base-dir Include Kerberos 5 support (default=no)"
41 ac_help="$ac_help
42 --with-automount Include AUTOMOUNT support (default=no)"
43 ac_help="$ac_help
44 --with-smbmount Include SMBMOUNT (Linux only) support (default=no)"
45 ac_help="$ac_help
46 --with-pam Include PAM password database support (default=no)"
47 ac_help="$ac_help
48 --with-pam_smbpass Include the smbpass PAM module (default=no)"
49 ac_help="$ac_help
50 --with-tdbsam Include TDB password database (default=no)"
51 ac_help="$ac_help
52 --with-ldapsam Include Experimental LDAP-Sam support (default=no)"
53 ac_help="$ac_help
54 --with-nisplus-home Include NISPLUS_HOME support (default=no)"
55 ac_help="$ac_help
56 --with-ssl Include SSL support (default=no)
57 --with-sslinc=DIR Where the SSL includes are (defaults to /usr/local/ssl)"
58 ac_help="$ac_help
59 --with-syslog Include experimental SYSLOG support (default=no)"
60 ac_help="$ac_help
61 --with-profiling-data Include gathering source code profile information (default=no)"
62 ac_help="$ac_help
63 --with-quotas Include experimental disk-quota support (default=no)"
64 ac_help="$ac_help
65 --with-utmp Include experimental utmp accounting (default=no)"
66 ac_help="$ac_help
67 --with-msdfs Include MS Dfs support (default=no)"
68 ac_help="$ac_help
69 --with-vfs Include Samba vfs support (default=no)"
70 ac_help="$ac_help
71 --with-spinlocks Use spin locks instead of fcntl locks (default=no)"
72 ac_help="$ac_help
73 --with-acl-support Include ACL support (default=no)"
74 ac_help="$ac_help
75 --with-winbind Build winbind (default, if supported by OS)"
77 # Initialize some variables set by options.
78 # The variables have the same names as the options, with
79 # dashes changed to underlines.
80 build=NONE
81 cache_file=./config.cache
82 exec_prefix=NONE
83 host=NONE
84 no_create=
85 nonopt=NONE
86 no_recursion=
87 prefix=NONE
88 program_prefix=NONE
89 program_suffix=NONE
90 program_transform_name=s,x,x,
91 silent=
92 site=
93 srcdir=
94 target=NONE
95 verbose=
96 x_includes=NONE
97 x_libraries=NONE
98 bindir='${exec_prefix}/bin'
99 sbindir='${exec_prefix}/sbin'
100 libexecdir='${exec_prefix}/libexec'
101 datadir='${prefix}/share'
102 sysconfdir='${prefix}/etc'
103 sharedstatedir='${prefix}/com'
104 localstatedir='${prefix}/var'
105 libdir='${exec_prefix}/lib'
106 includedir='${prefix}/include'
107 oldincludedir='/usr/include'
108 infodir='${prefix}/info'
109 mandir='${prefix}/man'
111 # Initialize some other variables.
112 subdirs=
113 MFLAGS= MAKEFLAGS=
114 SHELL=${CONFIG_SHELL-/bin/sh}
115 # Maximum number of lines to put in a shell here document.
116 ac_max_here_lines=12
118 ac_prev=
119 for ac_option
122 # If the previous option needs an argument, assign it.
123 if test -n "$ac_prev"; then
124 eval "$ac_prev=\$ac_option"
125 ac_prev=
126 continue
129 case "$ac_option" in
130 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
131 *) ac_optarg= ;;
132 esac
134 # Accept the important Cygnus configure options, so we can diagnose typos.
136 case "$ac_option" in
138 -bindir | --bindir | --bindi | --bind | --bin | --bi)
139 ac_prev=bindir ;;
140 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
141 bindir="$ac_optarg" ;;
143 -build | --build | --buil | --bui | --bu)
144 ac_prev=build ;;
145 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
146 build="$ac_optarg" ;;
148 -cache-file | --cache-file | --cache-fil | --cache-fi \
149 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
150 ac_prev=cache_file ;;
151 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
152 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
153 cache_file="$ac_optarg" ;;
155 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
156 ac_prev=datadir ;;
157 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
158 | --da=*)
159 datadir="$ac_optarg" ;;
161 -disable-* | --disable-*)
162 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
163 # Reject names that are not valid shell variable names.
164 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
165 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
167 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
168 eval "enable_${ac_feature}=no" ;;
170 -enable-* | --enable-*)
171 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
172 # Reject names that are not valid shell variable names.
173 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
174 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
176 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
177 case "$ac_option" in
178 *=*) ;;
179 *) ac_optarg=yes ;;
180 esac
181 eval "enable_${ac_feature}='$ac_optarg'" ;;
183 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
184 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
185 | --exec | --exe | --ex)
186 ac_prev=exec_prefix ;;
187 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
188 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
189 | --exec=* | --exe=* | --ex=*)
190 exec_prefix="$ac_optarg" ;;
192 -gas | --gas | --ga | --g)
193 # Obsolete; use --with-gas.
194 with_gas=yes ;;
196 -help | --help | --hel | --he)
197 # Omit some internal or obsolete options to make the list less imposing.
198 # This message is too long to be a string in the A/UX 3.1 sh.
199 cat << EOF
200 Usage: configure [options] [host]
201 Options: [defaults in brackets after descriptions]
202 Configuration:
203 --cache-file=FILE cache test results in FILE
204 --help print this message
205 --no-create do not create output files
206 --quiet, --silent do not print \`checking...' messages
207 --version print the version of autoconf that created configure
208 Directory and file names:
209 --prefix=PREFIX install architecture-independent files in PREFIX
210 [$ac_default_prefix]
211 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
212 [same as prefix]
213 --bindir=DIR user executables in DIR [EPREFIX/bin]
214 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
215 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
216 --datadir=DIR read-only architecture-independent data in DIR
217 [PREFIX/share]
218 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
219 --sharedstatedir=DIR modifiable architecture-independent data in DIR
220 [PREFIX/com]
221 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
222 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
223 --includedir=DIR C header files in DIR [PREFIX/include]
224 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
225 --infodir=DIR info documentation in DIR [PREFIX/info]
226 --mandir=DIR man documentation in DIR [PREFIX/man]
227 --srcdir=DIR find the sources in DIR [configure dir or ..]
228 --program-prefix=PREFIX prepend PREFIX to installed program names
229 --program-suffix=SUFFIX append SUFFIX to installed program names
230 --program-transform-name=PROGRAM
231 run sed PROGRAM on installed program names
233 cat << EOF
234 Host type:
235 --build=BUILD configure for building on BUILD [BUILD=HOST]
236 --host=HOST configure for HOST [guessed]
237 --target=TARGET configure for TARGET [TARGET=HOST]
238 Features and packages:
239 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
240 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
241 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
242 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
243 --x-includes=DIR X include files are in DIR
244 --x-libraries=DIR X library files are in DIR
246 if test -n "$ac_help"; then
247 echo "--enable and --with options recognized:$ac_help"
249 exit 0 ;;
251 -host | --host | --hos | --ho)
252 ac_prev=host ;;
253 -host=* | --host=* | --hos=* | --ho=*)
254 host="$ac_optarg" ;;
256 -includedir | --includedir | --includedi | --included | --include \
257 | --includ | --inclu | --incl | --inc)
258 ac_prev=includedir ;;
259 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
260 | --includ=* | --inclu=* | --incl=* | --inc=*)
261 includedir="$ac_optarg" ;;
263 -infodir | --infodir | --infodi | --infod | --info | --inf)
264 ac_prev=infodir ;;
265 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
266 infodir="$ac_optarg" ;;
268 -libdir | --libdir | --libdi | --libd)
269 ac_prev=libdir ;;
270 -libdir=* | --libdir=* | --libdi=* | --libd=*)
271 libdir="$ac_optarg" ;;
273 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
274 | --libexe | --libex | --libe)
275 ac_prev=libexecdir ;;
276 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
277 | --libexe=* | --libex=* | --libe=*)
278 libexecdir="$ac_optarg" ;;
280 -localstatedir | --localstatedir | --localstatedi | --localstated \
281 | --localstate | --localstat | --localsta | --localst \
282 | --locals | --local | --loca | --loc | --lo)
283 ac_prev=localstatedir ;;
284 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
285 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
286 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
287 localstatedir="$ac_optarg" ;;
289 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
290 ac_prev=mandir ;;
291 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
292 mandir="$ac_optarg" ;;
294 -nfp | --nfp | --nf)
295 # Obsolete; use --without-fp.
296 with_fp=no ;;
298 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
299 | --no-cr | --no-c)
300 no_create=yes ;;
302 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
303 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
304 no_recursion=yes ;;
306 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
307 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
308 | --oldin | --oldi | --old | --ol | --o)
309 ac_prev=oldincludedir ;;
310 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
311 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
312 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
313 oldincludedir="$ac_optarg" ;;
315 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
316 ac_prev=prefix ;;
317 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
318 prefix="$ac_optarg" ;;
320 -program-prefix | --program-prefix | --program-prefi | --program-pref \
321 | --program-pre | --program-pr | --program-p)
322 ac_prev=program_prefix ;;
323 -program-prefix=* | --program-prefix=* | --program-prefi=* \
324 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
325 program_prefix="$ac_optarg" ;;
327 -program-suffix | --program-suffix | --program-suffi | --program-suff \
328 | --program-suf | --program-su | --program-s)
329 ac_prev=program_suffix ;;
330 -program-suffix=* | --program-suffix=* | --program-suffi=* \
331 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
332 program_suffix="$ac_optarg" ;;
334 -program-transform-name | --program-transform-name \
335 | --program-transform-nam | --program-transform-na \
336 | --program-transform-n | --program-transform- \
337 | --program-transform | --program-transfor \
338 | --program-transfo | --program-transf \
339 | --program-trans | --program-tran \
340 | --progr-tra | --program-tr | --program-t)
341 ac_prev=program_transform_name ;;
342 -program-transform-name=* | --program-transform-name=* \
343 | --program-transform-nam=* | --program-transform-na=* \
344 | --program-transform-n=* | --program-transform-=* \
345 | --program-transform=* | --program-transfor=* \
346 | --program-transfo=* | --program-transf=* \
347 | --program-trans=* | --program-tran=* \
348 | --progr-tra=* | --program-tr=* | --program-t=*)
349 program_transform_name="$ac_optarg" ;;
351 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
352 | -silent | --silent | --silen | --sile | --sil)
353 silent=yes ;;
355 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
356 ac_prev=sbindir ;;
357 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
358 | --sbi=* | --sb=*)
359 sbindir="$ac_optarg" ;;
361 -sharedstatedir | --sharedstatedir | --sharedstatedi \
362 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
363 | --sharedst | --shareds | --shared | --share | --shar \
364 | --sha | --sh)
365 ac_prev=sharedstatedir ;;
366 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
367 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
368 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
369 | --sha=* | --sh=*)
370 sharedstatedir="$ac_optarg" ;;
372 -site | --site | --sit)
373 ac_prev=site ;;
374 -site=* | --site=* | --sit=*)
375 site="$ac_optarg" ;;
377 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
378 ac_prev=srcdir ;;
379 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
380 srcdir="$ac_optarg" ;;
382 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
383 | --syscon | --sysco | --sysc | --sys | --sy)
384 ac_prev=sysconfdir ;;
385 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
386 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
387 sysconfdir="$ac_optarg" ;;
389 -target | --target | --targe | --targ | --tar | --ta | --t)
390 ac_prev=target ;;
391 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
392 target="$ac_optarg" ;;
394 -v | -verbose | --verbose | --verbos | --verbo | --verb)
395 verbose=yes ;;
397 -version | --version | --versio | --versi | --vers)
398 echo "configure generated by autoconf version 2.13"
399 exit 0 ;;
401 -with-* | --with-*)
402 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
403 # Reject names that are not valid shell variable names.
404 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
405 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
407 ac_package=`echo $ac_package| sed 's/-/_/g'`
408 case "$ac_option" in
409 *=*) ;;
410 *) ac_optarg=yes ;;
411 esac
412 eval "with_${ac_package}='$ac_optarg'" ;;
414 -without-* | --without-*)
415 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
416 # Reject names that are not valid shell variable names.
417 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
418 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
420 ac_package=`echo $ac_package| sed 's/-/_/g'`
421 eval "with_${ac_package}=no" ;;
423 --x)
424 # Obsolete; use --with-x.
425 with_x=yes ;;
427 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
428 | --x-incl | --x-inc | --x-in | --x-i)
429 ac_prev=x_includes ;;
430 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
431 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
432 x_includes="$ac_optarg" ;;
434 -x-libraries | --x-libraries | --x-librarie | --x-librari \
435 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
436 ac_prev=x_libraries ;;
437 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
438 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
439 x_libraries="$ac_optarg" ;;
441 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
445 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
446 echo "configure: warning: $ac_option: invalid host type" 1>&2
448 if test "x$nonopt" != xNONE; then
449 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
451 nonopt="$ac_option"
454 esac
455 done
457 if test -n "$ac_prev"; then
458 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
461 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
463 # File descriptor usage:
464 # 0 standard input
465 # 1 file creation
466 # 2 errors and warnings
467 # 3 some systems may open it to /dev/tty
468 # 4 used on the Kubota Titan
469 # 6 checking for... messages and results
470 # 5 compiler messages saved in config.log
471 if test "$silent" = yes; then
472 exec 6>/dev/null
473 else
474 exec 6>&1
476 exec 5>./config.log
478 echo "\
479 This file contains any messages produced by compilers while
480 running configure, to aid debugging if configure makes a mistake.
481 " 1>&5
483 # Strip out --no-create and --no-recursion so they do not pile up.
484 # Also quote any args containing shell metacharacters.
485 ac_configure_args=
486 for ac_arg
488 case "$ac_arg" in
489 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
490 | --no-cr | --no-c) ;;
491 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
492 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
493 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
494 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
495 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
496 esac
497 done
499 # NLS nuisances.
500 # Only set these to C if already set. These must not be set unconditionally
501 # because not all systems understand e.g. LANG=C (notably SCO).
502 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
503 # Non-C LC_CTYPE values break the ctype check.
504 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
505 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
506 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
507 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
509 # confdefs.h avoids OS command line length limits that DEFS can exceed.
510 rm -rf conftest* confdefs.h
511 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
512 echo > confdefs.h
514 # A filename unique to this package, relative to the directory that
515 # configure is in, which we can look for to find out if srcdir is correct.
516 ac_unique_file=include/includes.h
518 # Find the source files, if location was not specified.
519 if test -z "$srcdir"; then
520 ac_srcdir_defaulted=yes
521 # Try the directory containing this script, then its parent.
522 ac_prog=$0
523 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
524 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
525 srcdir=$ac_confdir
526 if test ! -r $srcdir/$ac_unique_file; then
527 srcdir=..
529 else
530 ac_srcdir_defaulted=no
532 if test ! -r $srcdir/$ac_unique_file; then
533 if test "$ac_srcdir_defaulted" = yes; then
534 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
535 else
536 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
539 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
541 # Prefer explicitly selected file to automatically selected ones.
542 if test -z "$CONFIG_SITE"; then
543 if test "x$prefix" != xNONE; then
544 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
545 else
546 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
549 for ac_site_file in $CONFIG_SITE; do
550 if test -r "$ac_site_file"; then
551 echo "loading site script $ac_site_file"
552 . "$ac_site_file"
554 done
556 if test -r "$cache_file"; then
557 echo "loading cache $cache_file"
558 . $cache_file
559 else
560 echo "creating cache $cache_file"
561 > $cache_file
564 ac_ext=c
565 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
566 ac_cpp='$CPP $CPPFLAGS'
567 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
568 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
569 cross_compiling=$ac_cv_prog_cc_cross
571 ac_exeext=
572 ac_objext=o
573 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
574 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
575 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
576 ac_n= ac_c='
577 ' ac_t=' '
578 else
579 ac_n=-n ac_c= ac_t=
581 else
582 ac_n= ac_c='\c' ac_t=
588 #################################################
589 # Directory handling stuff to support both the
590 # legacy SAMBA directories and FHS compliant
591 # ones...
594 # Check whether --with-fhs or --without-fhs was given.
595 if test "${with_fhs+set}" = set; then
596 withval="$with_fhs"
597 codepagedir="\$(DATADIR)/samba/codepages"
598 configdir="${sysconfdir}/samba"
599 lockdir="\${VARDIR}/cache/samba"
600 logfilebase="\${VARDIR}/log/samba"
601 privatedir="\${CONFIGDIR}/private"
602 swatdir="\${DATADIR}/samba/swat"
603 else
604 codepagedir="\$(LIBDIR)/codepages"
605 configdir="\$(LIBDIR)"
606 lockdir="\$(VARDIR)/locks"
607 logfilebase="\$(VARDIR)"
608 privatedir="\${prefix}/private"
609 swatdir="\${prefix}/swat"
613 #################################################
614 # set private directory location
615 # Check whether --with-privatedir or --without-privatedir was given.
616 if test "${with_privatedir+set}" = set; then
617 withval="$with_privatedir"
618 case "$withval" in
619 yes|no)
621 # Just in case anybody calls it without argument
623 echo "configure: warning: --with-privatedir called without argument - will use default" 1>&2
626 privatedir="$withval"
628 esac
632 #################################################
633 # set lock directory location
634 # Check whether --with-lockdir or --without-lockdir was given.
635 if test "${with_lockdir+set}" = set; then
636 withval="$with_lockdir"
637 case "$withval" in
638 yes|no)
640 # Just in case anybody calls it without argument
642 echo "configure: warning: --with-lockdir called without argument - will use default" 1>&2
645 lockdir="$withval"
647 esac
651 #################################################
652 # set SWAT directory location
653 # Check whether --with-swatdir or --without-swatdir was given.
654 if test "${with_swatdir+set}" = set; then
655 withval="$with_swatdir"
656 case "$withval" in
657 yes|no)
659 # Just in case anybody does it
661 echo "configure: warning: --with-swatdir called without argument - will use default" 1>&2
664 swatdir="$withval"
666 esac
670 #################################################
671 # set configuration directory location
672 # Check whether --with-configdir or --without-configdir was given.
673 if test "${with_configdir+set}" = set; then
674 withval="$with_configdir"
675 case "$withval" in
676 yes|no)
678 # Just in case anybody does it
680 echo "configure: warning: --with-configdir called without argument - will use default" 1>&2
683 configdir="$withval"
685 esac
689 #################################################
690 # set codepage directory location
691 # Check whether --with-codepagedir or --without-codepagedir was given.
692 if test "${with_codepagedir+set}" = set; then
693 withval="$with_codepagedir"
694 case "$withval" in
695 yes|no)
697 # Just in case anybody does it
699 echo "configure: warning: --with-codepagedir called without argument - will use default" 1>&2
702 codepagedir="$withval"
704 esac
731 # compile with optimization and without debugging by default
732 CFLAGS="-O ${CFLAGS}"
734 # Check whether --enable-debug or --disable-debug was given.
735 if test "${enable_debug+set}" = set; then
736 enableval="$enable_debug"
737 if eval "test x$enable_debug = xyes"; then
738 CFLAGS="${CFLAGS} -g"
745 # Extract the first word of "gcc", so it can be a program name with args.
746 set dummy gcc; ac_word=$2
747 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
748 echo "configure:749: checking for $ac_word" >&5
749 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
750 echo $ac_n "(cached) $ac_c" 1>&6
751 else
752 if test -n "$CC"; then
753 ac_cv_prog_CC="$CC" # Let the user override the test.
754 else
755 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
756 ac_dummy="$PATH"
757 for ac_dir in $ac_dummy; do
758 test -z "$ac_dir" && ac_dir=.
759 if test -f $ac_dir/$ac_word; then
760 ac_cv_prog_CC="gcc"
761 break
763 done
764 IFS="$ac_save_ifs"
767 CC="$ac_cv_prog_CC"
768 if test -n "$CC"; then
769 echo "$ac_t""$CC" 1>&6
770 else
771 echo "$ac_t""no" 1>&6
774 if test -z "$CC"; then
775 # Extract the first word of "cc", so it can be a program name with args.
776 set dummy cc; ac_word=$2
777 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
778 echo "configure:779: checking for $ac_word" >&5
779 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
780 echo $ac_n "(cached) $ac_c" 1>&6
781 else
782 if test -n "$CC"; then
783 ac_cv_prog_CC="$CC" # Let the user override the test.
784 else
785 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
786 ac_prog_rejected=no
787 ac_dummy="$PATH"
788 for ac_dir in $ac_dummy; do
789 test -z "$ac_dir" && ac_dir=.
790 if test -f $ac_dir/$ac_word; then
791 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
792 ac_prog_rejected=yes
793 continue
795 ac_cv_prog_CC="cc"
796 break
798 done
799 IFS="$ac_save_ifs"
800 if test $ac_prog_rejected = yes; then
801 # We found a bogon in the path, so make sure we never use it.
802 set dummy $ac_cv_prog_CC
803 shift
804 if test $# -gt 0; then
805 # We chose a different compiler from the bogus one.
806 # However, it has the same basename, so the bogon will be chosen
807 # first if we set CC to just the basename; use the full file name.
808 shift
809 set dummy "$ac_dir/$ac_word" "$@"
810 shift
811 ac_cv_prog_CC="$@"
816 CC="$ac_cv_prog_CC"
817 if test -n "$CC"; then
818 echo "$ac_t""$CC" 1>&6
819 else
820 echo "$ac_t""no" 1>&6
823 if test -z "$CC"; then
824 case "`uname -s`" in
825 *win32* | *WIN32*)
826 # Extract the first word of "cl", so it can be a program name with args.
827 set dummy cl; ac_word=$2
828 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
829 echo "configure:830: checking for $ac_word" >&5
830 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
831 echo $ac_n "(cached) $ac_c" 1>&6
832 else
833 if test -n "$CC"; then
834 ac_cv_prog_CC="$CC" # Let the user override the test.
835 else
836 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
837 ac_dummy="$PATH"
838 for ac_dir in $ac_dummy; do
839 test -z "$ac_dir" && ac_dir=.
840 if test -f $ac_dir/$ac_word; then
841 ac_cv_prog_CC="cl"
842 break
844 done
845 IFS="$ac_save_ifs"
848 CC="$ac_cv_prog_CC"
849 if test -n "$CC"; then
850 echo "$ac_t""$CC" 1>&6
851 else
852 echo "$ac_t""no" 1>&6
855 esac
857 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
860 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
861 echo "configure:862: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
863 ac_ext=c
864 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
865 ac_cpp='$CPP $CPPFLAGS'
866 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
867 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
868 cross_compiling=$ac_cv_prog_cc_cross
870 cat > conftest.$ac_ext << EOF
872 #line 873 "configure"
873 #include "confdefs.h"
875 main(){return(0);}
877 if { (eval echo configure:878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
878 ac_cv_prog_cc_works=yes
879 # If we can't run a trivial program, we are probably using a cross compiler.
880 if (./conftest; exit) 2>/dev/null; then
881 ac_cv_prog_cc_cross=no
882 else
883 ac_cv_prog_cc_cross=yes
885 else
886 echo "configure: failed program was:" >&5
887 cat conftest.$ac_ext >&5
888 ac_cv_prog_cc_works=no
890 rm -fr conftest*
891 ac_ext=c
892 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
893 ac_cpp='$CPP $CPPFLAGS'
894 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
895 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
896 cross_compiling=$ac_cv_prog_cc_cross
898 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
899 if test $ac_cv_prog_cc_works = no; then
900 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
902 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
903 echo "configure:904: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
904 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
905 cross_compiling=$ac_cv_prog_cc_cross
907 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
908 echo "configure:909: checking whether we are using GNU C" >&5
909 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
910 echo $ac_n "(cached) $ac_c" 1>&6
911 else
912 cat > conftest.c <<EOF
913 #ifdef __GNUC__
914 yes;
915 #endif
917 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:918: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
918 ac_cv_prog_gcc=yes
919 else
920 ac_cv_prog_gcc=no
924 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
926 if test $ac_cv_prog_gcc = yes; then
927 GCC=yes
928 else
929 GCC=
932 ac_test_CFLAGS="${CFLAGS+set}"
933 ac_save_CFLAGS="$CFLAGS"
934 CFLAGS=
935 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
936 echo "configure:937: checking whether ${CC-cc} accepts -g" >&5
937 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
938 echo $ac_n "(cached) $ac_c" 1>&6
939 else
940 echo 'void f(){}' > conftest.c
941 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
942 ac_cv_prog_cc_g=yes
943 else
944 ac_cv_prog_cc_g=no
946 rm -f conftest*
950 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
951 if test "$ac_test_CFLAGS" = set; then
952 CFLAGS="$ac_save_CFLAGS"
953 elif test $ac_cv_prog_cc_g = yes; then
954 if test "$GCC" = yes; then
955 CFLAGS="-g -O2"
956 else
957 CFLAGS="-g"
959 else
960 if test "$GCC" = yes; then
961 CFLAGS="-O2"
962 else
963 CFLAGS=
967 ac_aux_dir=
968 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
969 if test -f $ac_dir/install-sh; then
970 ac_aux_dir=$ac_dir
971 ac_install_sh="$ac_aux_dir/install-sh -c"
972 break
973 elif test -f $ac_dir/install.sh; then
974 ac_aux_dir=$ac_dir
975 ac_install_sh="$ac_aux_dir/install.sh -c"
976 break
978 done
979 if test -z "$ac_aux_dir"; then
980 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
982 ac_config_guess=$ac_aux_dir/config.guess
983 ac_config_sub=$ac_aux_dir/config.sub
984 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
986 # Find a good install program. We prefer a C program (faster),
987 # so one script is as good as another. But avoid the broken or
988 # incompatible versions:
989 # SysV /etc/install, /usr/sbin/install
990 # SunOS /usr/etc/install
991 # IRIX /sbin/install
992 # AIX /bin/install
993 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
994 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
995 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
996 # ./install, which can be erroneously created by make from ./install.sh.
997 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
998 echo "configure:999: checking for a BSD compatible install" >&5
999 if test -z "$INSTALL"; then
1000 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1001 echo $ac_n "(cached) $ac_c" 1>&6
1002 else
1003 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1004 for ac_dir in $PATH; do
1005 # Account for people who put trailing slashes in PATH elements.
1006 case "$ac_dir/" in
1007 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1009 # OSF1 and SCO ODT 3.0 have their own names for install.
1010 # Don't use installbsd from OSF since it installs stuff as root
1011 # by default.
1012 for ac_prog in ginstall scoinst install; do
1013 if test -f $ac_dir/$ac_prog; then
1014 if test $ac_prog = install &&
1015 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1016 # AIX install. It has an incompatible calling convention.
1018 else
1019 ac_cv_path_install="$ac_dir/$ac_prog -c"
1020 break 2
1023 done
1025 esac
1026 done
1027 IFS="$ac_save_IFS"
1030 if test "${ac_cv_path_install+set}" = set; then
1031 INSTALL="$ac_cv_path_install"
1032 else
1033 # As a last resort, use the slow shell script. We don't cache a
1034 # path for INSTALL within a source directory, because that will
1035 # break other packages using the cache if that directory is
1036 # removed, or if the path is relative.
1037 INSTALL="$ac_install_sh"
1040 echo "$ac_t""$INSTALL" 1>&6
1042 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1043 # It thinks the first close brace ends the variable substitution.
1044 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1046 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1048 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1050 for ac_prog in mawk gawk nawk awk
1052 # Extract the first word of "$ac_prog", so it can be a program name with args.
1053 set dummy $ac_prog; ac_word=$2
1054 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1055 echo "configure:1056: checking for $ac_word" >&5
1056 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1057 echo $ac_n "(cached) $ac_c" 1>&6
1058 else
1059 if test -n "$AWK"; then
1060 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1061 else
1062 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1063 ac_dummy="$PATH"
1064 for ac_dir in $ac_dummy; do
1065 test -z "$ac_dir" && ac_dir=.
1066 if test -f $ac_dir/$ac_word; then
1067 ac_cv_prog_AWK="$ac_prog"
1068 break
1070 done
1071 IFS="$ac_save_ifs"
1074 AWK="$ac_cv_prog_AWK"
1075 if test -n "$AWK"; then
1076 echo "$ac_t""$AWK" 1>&6
1077 else
1078 echo "$ac_t""no" 1>&6
1081 test -n "$AWK" && break
1082 done
1085 if test "x$CC" != xcc; then
1086 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1087 echo "configure:1088: checking whether $CC and cc understand -c and -o together" >&5
1088 else
1089 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1090 echo "configure:1091: checking whether cc understands -c and -o together" >&5
1092 set dummy $CC; ac_cc="`echo $2 |
1093 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1094 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1095 echo $ac_n "(cached) $ac_c" 1>&6
1096 else
1097 echo 'foo(){}' > conftest.c
1098 # Make sure it works both with $CC and with simple cc.
1099 # We do the test twice because some compilers refuse to overwrite an
1100 # existing .o file with -o, though they will create one.
1101 ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1102 if { (eval echo configure:1103: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1103 test -f conftest.o && { (eval echo configure:1104: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1104 then
1105 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
1106 if test "x$CC" != xcc; then
1107 # Test first that cc exists at all.
1108 if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:1109: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1109 ac_try='cc -c conftest.c -o conftest.o 1>&5'
1110 if { (eval echo configure:1111: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1111 test -f conftest.o && { (eval echo configure:1112: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1112 then
1113 # cc works too.
1115 else
1116 # cc exists but doesn't like -o.
1117 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1121 else
1122 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1124 rm -f conftest*
1127 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1128 echo "$ac_t""yes" 1>&6
1129 else
1130 echo "$ac_t""no" 1>&6
1131 cat >> confdefs.h <<\EOF
1132 #define NO_MINUS_C_MINUS_O 1
1137 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1138 BROKEN_CC=
1139 else
1140 BROKEN_CC=#
1144 echo $ac_n "checking that the C compiler understands volatile""... $ac_c" 1>&6
1145 echo "configure:1146: checking that the C compiler understands volatile" >&5
1146 if eval "test \"`echo '$''{'samba_cv_volatile'+set}'`\" = set"; then
1147 echo $ac_n "(cached) $ac_c" 1>&6
1148 else
1150 cat > conftest.$ac_ext <<EOF
1151 #line 1152 "configure"
1152 #include "confdefs.h"
1153 #include <sys/types.h>
1154 int main() {
1155 volatile int i = 0
1156 ; return 0; }
1158 if { (eval echo configure:1159: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1159 rm -rf conftest*
1160 samba_cv_volatile=yes
1161 else
1162 echo "configure: failed program was:" >&5
1163 cat conftest.$ac_ext >&5
1164 rm -rf conftest*
1165 samba_cv_volatile=no
1167 rm -f conftest*
1170 echo "$ac_t""$samba_cv_volatile" 1>&6
1171 if test x"$samba_cv_volatile" = x"yes"; then
1172 cat >> confdefs.h <<\EOF
1173 #define HAVE_VOLATILE 1
1181 # Do some error checking and defaulting for the host and target type.
1182 # The inputs are:
1183 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1185 # The rules are:
1186 # 1. You are not allowed to specify --host, --target, and nonopt at the
1187 # same time.
1188 # 2. Host defaults to nonopt.
1189 # 3. If nonopt is not specified, then host defaults to the current host,
1190 # as determined by config.guess.
1191 # 4. Target and build default to nonopt.
1192 # 5. If nonopt is not specified, then target and build default to host.
1194 # The aliases save the names the user supplied, while $host etc.
1195 # will get canonicalized.
1196 case $host---$target---$nonopt in
1197 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1198 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1199 esac
1202 # Make sure we can run config.sub.
1203 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1204 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1207 echo $ac_n "checking host system type""... $ac_c" 1>&6
1208 echo "configure:1209: checking host system type" >&5
1210 host_alias=$host
1211 case "$host_alias" in
1212 NONE)
1213 case $nonopt in
1214 NONE)
1215 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1216 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1217 fi ;;
1218 *) host_alias=$nonopt ;;
1219 esac ;;
1220 esac
1222 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1223 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1224 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1225 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1226 echo "$ac_t""$host" 1>&6
1228 echo $ac_n "checking target system type""... $ac_c" 1>&6
1229 echo "configure:1230: checking target system type" >&5
1231 target_alias=$target
1232 case "$target_alias" in
1233 NONE)
1234 case $nonopt in
1235 NONE) target_alias=$host_alias ;;
1236 *) target_alias=$nonopt ;;
1237 esac ;;
1238 esac
1240 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1241 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1242 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1243 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1244 echo "$ac_t""$target" 1>&6
1246 echo $ac_n "checking build system type""... $ac_c" 1>&6
1247 echo "configure:1248: checking build system type" >&5
1249 build_alias=$build
1250 case "$build_alias" in
1251 NONE)
1252 case $nonopt in
1253 NONE) build_alias=$host_alias ;;
1254 *) build_alias=$nonopt ;;
1255 esac ;;
1256 esac
1258 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1259 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1260 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1261 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1262 echo "$ac_t""$build" 1>&6
1264 test "$host_alias" != "$target_alias" &&
1265 test "$program_prefix$program_suffix$program_transform_name" = \
1266 NONENONEs,x,x, &&
1267 program_prefix=${target_alias}-
1270 case "$host_os" in
1271 *irix6*) cat >> confdefs.h <<\EOF
1272 #include <standards.h>
1276 esac
1280 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
1281 echo "configure:1282: checking config.cache system type" >&5
1282 if { test x"${ac_cv_host_system_type+set}" = x"set" &&
1283 test x"$ac_cv_host_system_type" != x"$host"; } ||
1284 { test x"${ac_cv_build_system_type+set}" = x"set" &&
1285 test x"$ac_cv_build_system_type" != x"$build"; } ||
1286 { test x"${ac_cv_target_system_type+set}" = x"set" &&
1287 test x"$ac_cv_target_system_type" != x"$target"; }; then
1288 echo "$ac_t""different" 1>&6
1289 { echo "configure: error: "you must remove config.cache and restart configure"" 1>&2; exit 1; }
1290 else
1291 echo "$ac_t""same" 1>&6
1293 ac_cv_host_system_type="$host"
1294 ac_cv_build_system_type="$build"
1295 ac_cv_target_system_type="$target"
1299 # Config CPPFLAG settings for strange OS's that must be set
1300 # before other tests.
1302 case "$host_os" in
1303 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1304 *hpux*)
1305 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1306 echo "configure:1307: checking whether ${CC-cc} accepts -Ae" >&5
1307 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1308 echo $ac_n "(cached) $ac_c" 1>&6
1309 else
1310 echo 'void f(){}' > conftest.c
1311 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1312 ac_cv_prog_cc_Ae=yes
1313 else
1314 ac_cv_prog_cc_Ae=no
1316 rm -f conftest*
1320 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1321 # mmap on HPUX is completely broken...
1322 cat >> confdefs.h <<\EOF
1323 #define MMAP_BLACKLIST 1
1326 if test $ac_cv_prog_cc_Ae = yes; then
1327 CPPFLAGS="$CPPFLAGS -Ae"
1330 # Defines needed for HPUX support.
1331 # HPUX has bigcrypt but (sometimes?) doesn't use it for
1332 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
1334 case `uname -r` in
1335 *9*|*10*)
1336 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE"
1337 cat >> confdefs.h <<\EOF
1338 #define USE_BOTH_CRYPT_CALLS 1
1342 *11*)
1343 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE"
1344 cat >> confdefs.h <<\EOF
1345 #define USE_BOTH_CRYPT_CALLS 1
1349 esac
1352 # AIX4.x doesn't even admit to having large
1353 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1355 *aix4*)
1356 echo "$ac_t""enabling large file support" 1>&6
1357 CPPFLAGS="$CPPFLAGS -D_LARGE_FILES"
1360 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
1361 # to the existance of large files..
1362 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
1363 # recommendations on large file support, however it makes the
1364 # compile work using gcc 2.7 and 2.8, whereas using the Sun
1365 # recommendation makes the compile fail on gcc2.7. JRA.
1367 *solaris*)
1368 case `uname -r` in
1369 5.6*|5.7*)
1370 echo "$ac_t""enabling large file support" 1>&6
1371 if test "$ac_cv_prog_gcc" = yes; then
1372 ${CC-cc} -v >conftest.c 2>&1
1373 ac_cv_gcc_compiler_version_number=`grep 'gcc version' conftest.c`
1374 rm -fr conftest.c
1375 case "$ac_cv_gcc_compiler_version_number" in
1376 *"gcc version 2.6"*|*"gcc version 2.7"*)
1377 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
1380 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1382 esac
1383 else
1384 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1387 esac
1390 # Tests needed for SINIX large file support.
1392 *sysv4*)
1393 if test $host = mips-sni-sysv4 ; then
1394 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1395 echo "configure:1396: checking for LFS support" >&5
1396 old_CPPFLAGS="$CPPFLAGS"
1397 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1398 if test "$cross_compiling" = yes; then
1399 SINIX_LFS_SUPPORT=cross
1400 else
1401 cat > conftest.$ac_ext <<EOF
1402 #line 1403 "configure"
1403 #include "confdefs.h"
1405 #include <unistd.h>
1406 main () {
1407 #if _LFS64_LARGEFILE == 1
1408 exit(0);
1409 #else
1410 exit(1);
1411 #endif
1414 if { (eval echo configure:1415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1415 then
1416 SINIX_LFS_SUPPORT=yes
1417 else
1418 echo "configure: failed program was:" >&5
1419 cat conftest.$ac_ext >&5
1420 rm -fr conftest*
1421 SINIX_LFS_SUPPORT=no
1423 rm -fr conftest*
1426 CPPFLAGS="$old_CPPFLAGS"
1427 if test x$SINIX_LFS_SUPPORT = xyes ; then
1428 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1429 CFLAGS="`getconf LFS64_CFLAGS` $CFLAGS"
1430 LDFLAGS="`getconf LFS64_LDFLAGS` $LDFLAGS"
1431 LIBS="`getconf LFS64_LIBS` $LIBS"
1433 echo "$ac_t""$SINIX_LFS_SUPPORT" 1>&6
1437 # Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
1439 *linux*)
1440 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1441 echo "configure:1442: checking for LFS support" >&5
1442 old_CPPFLAGS="$CPPFLAGS"
1443 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1444 if test "$cross_compiling" = yes; then
1445 LINUX_LFS_SUPPORT=cross
1446 else
1447 cat > conftest.$ac_ext <<EOF
1448 #line 1449 "configure"
1449 #include "confdefs.h"
1451 #include <unistd.h>
1452 #include <sys/utsname.h>
1453 main() {
1454 #if _LFS64_LARGEFILE == 1
1455 struct utsname uts;
1456 char *release;
1457 int major, minor;
1459 /* Ensure this is glibc 2.2 or higher */
1460 #if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
1461 int libc_major = __GLIBC__;
1462 int libc_minor = __GLIBC_MINOR__;
1464 if (libc_major < 2)
1465 exit(1);
1466 if (libc_minor < 2)
1467 exit(1);
1468 #endif
1470 /* Ensure this is kernel 2.4 or higher */
1472 uname(&uts);
1473 release = uts.release;
1474 major = atoi(strsep(&release, "."));
1475 minor = atoi(strsep(&release, "."));
1477 if (major > 2 || (major == 2 && minor > 3))
1478 exit(0);
1479 exit(1);
1480 #else
1481 exit(1);
1482 #endif
1486 if { (eval echo configure:1487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1487 then
1488 LINUX_LFS_SUPPORT=yes
1489 else
1490 echo "configure: failed program was:" >&5
1491 cat conftest.$ac_ext >&5
1492 rm -fr conftest*
1493 LINUX_LFS_SUPPORT=no
1495 rm -fr conftest*
1498 CPPFLAGS="$old_CPPFLAGS"
1499 if test x$LINUX_LFS_SUPPORT = xyes ; then
1500 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1502 echo "$ac_t""$LINUX_LFS_SUPPORT" 1>&6
1505 *hurd*)
1506 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1507 echo "configure:1508: checking for LFS support" >&5
1508 old_CPPFLAGS="$CPPFLAGS"
1509 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1510 if test "$cross_compiling" = yes; then
1511 GLIBC_LFS_SUPPORT=cross
1512 else
1513 cat > conftest.$ac_ext <<EOF
1514 #line 1515 "configure"
1515 #include "confdefs.h"
1517 #include <unistd.h>
1518 main () {
1519 #if _LFS64_LARGEFILE == 1
1520 exit(0);
1521 #else
1522 exit(1);
1523 #endif
1526 if { (eval echo configure:1527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1527 then
1528 GLIBC_LFS_SUPPORT=yes
1529 else
1530 echo "configure: failed program was:" >&5
1531 cat conftest.$ac_ext >&5
1532 rm -fr conftest*
1533 GLIBC_LFS_SUPPORT=no
1535 rm -fr conftest*
1538 CPPFLAGS="$old_CPPFLAGS"
1539 if test x$GLIBC_LFS_SUPPORT = xyes ; then
1540 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1542 echo "$ac_t""$GLIBC_LFS_SUPPORT" 1>&6
1545 esac
1547 echo $ac_n "checking for inline""... $ac_c" 1>&6
1548 echo "configure:1549: checking for inline" >&5
1549 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1550 echo $ac_n "(cached) $ac_c" 1>&6
1551 else
1552 ac_cv_c_inline=no
1553 for ac_kw in inline __inline__ __inline; do
1554 cat > conftest.$ac_ext <<EOF
1555 #line 1556 "configure"
1556 #include "confdefs.h"
1558 int main() {
1559 } $ac_kw foo() {
1560 ; return 0; }
1562 if { (eval echo configure:1563: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1563 rm -rf conftest*
1564 ac_cv_c_inline=$ac_kw; break
1565 else
1566 echo "configure: failed program was:" >&5
1567 cat conftest.$ac_ext >&5
1569 rm -f conftest*
1570 done
1574 echo "$ac_t""$ac_cv_c_inline" 1>&6
1575 case "$ac_cv_c_inline" in
1576 inline | yes) ;;
1577 no) cat >> confdefs.h <<\EOF
1578 #define inline
1581 *) cat >> confdefs.h <<EOF
1582 #define inline $ac_cv_c_inline
1585 esac
1587 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1588 echo "configure:1589: checking how to run the C preprocessor" >&5
1589 # On Suns, sometimes $CPP names a directory.
1590 if test -n "$CPP" && test -d "$CPP"; then
1591 CPP=
1593 if test -z "$CPP"; then
1594 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1595 echo $ac_n "(cached) $ac_c" 1>&6
1596 else
1597 # This must be in double quotes, not single quotes, because CPP may get
1598 # substituted into the Makefile and "${CC-cc}" will confuse make.
1599 CPP="${CC-cc} -E"
1600 # On the NeXT, cc -E runs the code through the compiler's parser,
1601 # not just through cpp.
1602 cat > conftest.$ac_ext <<EOF
1603 #line 1604 "configure"
1604 #include "confdefs.h"
1605 #include <assert.h>
1606 Syntax Error
1608 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1609 { (eval echo configure:1610: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1610 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1611 if test -z "$ac_err"; then
1613 else
1614 echo "$ac_err" >&5
1615 echo "configure: failed program was:" >&5
1616 cat conftest.$ac_ext >&5
1617 rm -rf conftest*
1618 CPP="${CC-cc} -E -traditional-cpp"
1619 cat > conftest.$ac_ext <<EOF
1620 #line 1621 "configure"
1621 #include "confdefs.h"
1622 #include <assert.h>
1623 Syntax Error
1625 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1626 { (eval echo configure:1627: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1627 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1628 if test -z "$ac_err"; then
1630 else
1631 echo "$ac_err" >&5
1632 echo "configure: failed program was:" >&5
1633 cat conftest.$ac_ext >&5
1634 rm -rf conftest*
1635 CPP="${CC-cc} -nologo -E"
1636 cat > conftest.$ac_ext <<EOF
1637 #line 1638 "configure"
1638 #include "confdefs.h"
1639 #include <assert.h>
1640 Syntax Error
1642 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1643 { (eval echo configure:1644: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1644 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1645 if test -z "$ac_err"; then
1647 else
1648 echo "$ac_err" >&5
1649 echo "configure: failed program was:" >&5
1650 cat conftest.$ac_ext >&5
1651 rm -rf conftest*
1652 CPP=/lib/cpp
1654 rm -f conftest*
1656 rm -f conftest*
1658 rm -f conftest*
1659 ac_cv_prog_CPP="$CPP"
1661 CPP="$ac_cv_prog_CPP"
1662 else
1663 ac_cv_prog_CPP="$CPP"
1665 echo "$ac_t""$CPP" 1>&6
1667 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1668 echo "configure:1669: checking for ANSI C header files" >&5
1669 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1670 echo $ac_n "(cached) $ac_c" 1>&6
1671 else
1672 cat > conftest.$ac_ext <<EOF
1673 #line 1674 "configure"
1674 #include "confdefs.h"
1675 #include <stdlib.h>
1676 #include <stdarg.h>
1677 #include <string.h>
1678 #include <float.h>
1680 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1681 { (eval echo configure:1682: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1682 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1683 if test -z "$ac_err"; then
1684 rm -rf conftest*
1685 ac_cv_header_stdc=yes
1686 else
1687 echo "$ac_err" >&5
1688 echo "configure: failed program was:" >&5
1689 cat conftest.$ac_ext >&5
1690 rm -rf conftest*
1691 ac_cv_header_stdc=no
1693 rm -f conftest*
1695 if test $ac_cv_header_stdc = yes; then
1696 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1697 cat > conftest.$ac_ext <<EOF
1698 #line 1699 "configure"
1699 #include "confdefs.h"
1700 #include <string.h>
1702 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1703 egrep "memchr" >/dev/null 2>&1; then
1705 else
1706 rm -rf conftest*
1707 ac_cv_header_stdc=no
1709 rm -f conftest*
1713 if test $ac_cv_header_stdc = yes; then
1714 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1715 cat > conftest.$ac_ext <<EOF
1716 #line 1717 "configure"
1717 #include "confdefs.h"
1718 #include <stdlib.h>
1720 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1721 egrep "free" >/dev/null 2>&1; then
1723 else
1724 rm -rf conftest*
1725 ac_cv_header_stdc=no
1727 rm -f conftest*
1731 if test $ac_cv_header_stdc = yes; then
1732 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1733 if test "$cross_compiling" = yes; then
1735 else
1736 cat > conftest.$ac_ext <<EOF
1737 #line 1738 "configure"
1738 #include "confdefs.h"
1739 #include <ctype.h>
1740 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1741 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1742 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1743 int main () { int i; for (i = 0; i < 256; i++)
1744 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1745 exit (0); }
1748 if { (eval echo configure:1749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1749 then
1751 else
1752 echo "configure: failed program was:" >&5
1753 cat conftest.$ac_ext >&5
1754 rm -fr conftest*
1755 ac_cv_header_stdc=no
1757 rm -fr conftest*
1763 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1764 if test $ac_cv_header_stdc = yes; then
1765 cat >> confdefs.h <<\EOF
1766 #define STDC_HEADERS 1
1771 ac_header_dirent=no
1772 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1774 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1775 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1776 echo "configure:1777: checking for $ac_hdr that defines DIR" >&5
1777 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1778 echo $ac_n "(cached) $ac_c" 1>&6
1779 else
1780 cat > conftest.$ac_ext <<EOF
1781 #line 1782 "configure"
1782 #include "confdefs.h"
1783 #include <sys/types.h>
1784 #include <$ac_hdr>
1785 int main() {
1786 DIR *dirp = 0;
1787 ; return 0; }
1789 if { (eval echo configure:1790: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1790 rm -rf conftest*
1791 eval "ac_cv_header_dirent_$ac_safe=yes"
1792 else
1793 echo "configure: failed program was:" >&5
1794 cat conftest.$ac_ext >&5
1795 rm -rf conftest*
1796 eval "ac_cv_header_dirent_$ac_safe=no"
1798 rm -f conftest*
1800 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1801 echo "$ac_t""yes" 1>&6
1802 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1803 cat >> confdefs.h <<EOF
1804 #define $ac_tr_hdr 1
1806 ac_header_dirent=$ac_hdr; break
1807 else
1808 echo "$ac_t""no" 1>&6
1810 done
1811 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1812 if test $ac_header_dirent = dirent.h; then
1813 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1814 echo "configure:1815: checking for opendir in -ldir" >&5
1815 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1816 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1817 echo $ac_n "(cached) $ac_c" 1>&6
1818 else
1819 ac_save_LIBS="$LIBS"
1820 LIBS="-ldir $LIBS"
1821 cat > conftest.$ac_ext <<EOF
1822 #line 1823 "configure"
1823 #include "confdefs.h"
1824 /* Override any gcc2 internal prototype to avoid an error. */
1825 /* We use char because int might match the return type of a gcc2
1826 builtin and then its argument prototype would still apply. */
1827 char opendir();
1829 int main() {
1830 opendir()
1831 ; return 0; }
1833 if { (eval echo configure:1834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1834 rm -rf conftest*
1835 eval "ac_cv_lib_$ac_lib_var=yes"
1836 else
1837 echo "configure: failed program was:" >&5
1838 cat conftest.$ac_ext >&5
1839 rm -rf conftest*
1840 eval "ac_cv_lib_$ac_lib_var=no"
1842 rm -f conftest*
1843 LIBS="$ac_save_LIBS"
1846 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1847 echo "$ac_t""yes" 1>&6
1848 LIBS="$LIBS -ldir"
1849 else
1850 echo "$ac_t""no" 1>&6
1853 else
1854 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1855 echo "configure:1856: checking for opendir in -lx" >&5
1856 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1857 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1858 echo $ac_n "(cached) $ac_c" 1>&6
1859 else
1860 ac_save_LIBS="$LIBS"
1861 LIBS="-lx $LIBS"
1862 cat > conftest.$ac_ext <<EOF
1863 #line 1864 "configure"
1864 #include "confdefs.h"
1865 /* Override any gcc2 internal prototype to avoid an error. */
1866 /* We use char because int might match the return type of a gcc2
1867 builtin and then its argument prototype would still apply. */
1868 char opendir();
1870 int main() {
1871 opendir()
1872 ; return 0; }
1874 if { (eval echo configure:1875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1875 rm -rf conftest*
1876 eval "ac_cv_lib_$ac_lib_var=yes"
1877 else
1878 echo "configure: failed program was:" >&5
1879 cat conftest.$ac_ext >&5
1880 rm -rf conftest*
1881 eval "ac_cv_lib_$ac_lib_var=no"
1883 rm -f conftest*
1884 LIBS="$ac_save_LIBS"
1887 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1888 echo "$ac_t""yes" 1>&6
1889 LIBS="$LIBS -lx"
1890 else
1891 echo "$ac_t""no" 1>&6
1896 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1897 echo "configure:1898: checking whether time.h and sys/time.h may both be included" >&5
1898 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1899 echo $ac_n "(cached) $ac_c" 1>&6
1900 else
1901 cat > conftest.$ac_ext <<EOF
1902 #line 1903 "configure"
1903 #include "confdefs.h"
1904 #include <sys/types.h>
1905 #include <sys/time.h>
1906 #include <time.h>
1907 int main() {
1908 struct tm *tp;
1909 ; return 0; }
1911 if { (eval echo configure:1912: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1912 rm -rf conftest*
1913 ac_cv_header_time=yes
1914 else
1915 echo "configure: failed program was:" >&5
1916 cat conftest.$ac_ext >&5
1917 rm -rf conftest*
1918 ac_cv_header_time=no
1920 rm -f conftest*
1923 echo "$ac_t""$ac_cv_header_time" 1>&6
1924 if test $ac_cv_header_time = yes; then
1925 cat >> confdefs.h <<\EOF
1926 #define TIME_WITH_SYS_TIME 1
1931 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1932 echo "configure:1933: checking for sys/wait.h that is POSIX.1 compatible" >&5
1933 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1934 echo $ac_n "(cached) $ac_c" 1>&6
1935 else
1936 cat > conftest.$ac_ext <<EOF
1937 #line 1938 "configure"
1938 #include "confdefs.h"
1939 #include <sys/types.h>
1940 #include <sys/wait.h>
1941 #ifndef WEXITSTATUS
1942 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1943 #endif
1944 #ifndef WIFEXITED
1945 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1946 #endif
1947 int main() {
1948 int s;
1949 wait (&s);
1950 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1951 ; return 0; }
1953 if { (eval echo configure:1954: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1954 rm -rf conftest*
1955 ac_cv_header_sys_wait_h=yes
1956 else
1957 echo "configure: failed program was:" >&5
1958 cat conftest.$ac_ext >&5
1959 rm -rf conftest*
1960 ac_cv_header_sys_wait_h=no
1962 rm -f conftest*
1965 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1966 if test $ac_cv_header_sys_wait_h = yes; then
1967 cat >> confdefs.h <<\EOF
1968 #define HAVE_SYS_WAIT_H 1
1973 for ac_hdr in arpa/inet.h sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h
1975 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1976 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1977 echo "configure:1978: checking for $ac_hdr" >&5
1978 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1979 echo $ac_n "(cached) $ac_c" 1>&6
1980 else
1981 cat > conftest.$ac_ext <<EOF
1982 #line 1983 "configure"
1983 #include "confdefs.h"
1984 #include <$ac_hdr>
1986 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1987 { (eval echo configure:1988: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1988 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1989 if test -z "$ac_err"; then
1990 rm -rf conftest*
1991 eval "ac_cv_header_$ac_safe=yes"
1992 else
1993 echo "$ac_err" >&5
1994 echo "configure: failed program was:" >&5
1995 cat conftest.$ac_ext >&5
1996 rm -rf conftest*
1997 eval "ac_cv_header_$ac_safe=no"
1999 rm -f conftest*
2001 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2002 echo "$ac_t""yes" 1>&6
2003 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2004 cat >> confdefs.h <<EOF
2005 #define $ac_tr_hdr 1
2008 else
2009 echo "$ac_t""no" 1>&6
2011 done
2013 for ac_hdr in unistd.h utime.h grp.h sys/id.h limits.h memory.h net/if.h
2015 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2016 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2017 echo "configure:2018: checking for $ac_hdr" >&5
2018 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2019 echo $ac_n "(cached) $ac_c" 1>&6
2020 else
2021 cat > conftest.$ac_ext <<EOF
2022 #line 2023 "configure"
2023 #include "confdefs.h"
2024 #include <$ac_hdr>
2026 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2027 { (eval echo configure:2028: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2028 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2029 if test -z "$ac_err"; then
2030 rm -rf conftest*
2031 eval "ac_cv_header_$ac_safe=yes"
2032 else
2033 echo "$ac_err" >&5
2034 echo "configure: failed program was:" >&5
2035 cat conftest.$ac_ext >&5
2036 rm -rf conftest*
2037 eval "ac_cv_header_$ac_safe=no"
2039 rm -f conftest*
2041 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2042 echo "$ac_t""yes" 1>&6
2043 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2044 cat >> confdefs.h <<EOF
2045 #define $ac_tr_hdr 1
2048 else
2049 echo "$ac_t""no" 1>&6
2051 done
2053 for ac_hdr in compat.h rpc/rpc.h rpcsvc/nis.h rpcsvc/yp_prot.h rpcsvc/ypclnt.h
2055 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2056 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2057 echo "configure:2058: checking for $ac_hdr" >&5
2058 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2059 echo $ac_n "(cached) $ac_c" 1>&6
2060 else
2061 cat > conftest.$ac_ext <<EOF
2062 #line 2063 "configure"
2063 #include "confdefs.h"
2064 #include <$ac_hdr>
2066 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2067 { (eval echo configure:2068: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2068 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2069 if test -z "$ac_err"; then
2070 rm -rf conftest*
2071 eval "ac_cv_header_$ac_safe=yes"
2072 else
2073 echo "$ac_err" >&5
2074 echo "configure: failed program was:" >&5
2075 cat conftest.$ac_ext >&5
2076 rm -rf conftest*
2077 eval "ac_cv_header_$ac_safe=no"
2079 rm -f conftest*
2081 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2082 echo "$ac_t""yes" 1>&6
2083 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2084 cat >> confdefs.h <<EOF
2085 #define $ac_tr_hdr 1
2088 else
2089 echo "$ac_t""no" 1>&6
2091 done
2093 for ac_hdr in sys/param.h ctype.h sys/wait.h sys/resource.h sys/ioctl.h sys/ipc.h sys/mode.h
2095 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2096 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2097 echo "configure:2098: checking for $ac_hdr" >&5
2098 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2099 echo $ac_n "(cached) $ac_c" 1>&6
2100 else
2101 cat > conftest.$ac_ext <<EOF
2102 #line 2103 "configure"
2103 #include "confdefs.h"
2104 #include <$ac_hdr>
2106 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2107 { (eval echo configure:2108: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2108 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2109 if test -z "$ac_err"; then
2110 rm -rf conftest*
2111 eval "ac_cv_header_$ac_safe=yes"
2112 else
2113 echo "$ac_err" >&5
2114 echo "configure: failed program was:" >&5
2115 cat conftest.$ac_ext >&5
2116 rm -rf conftest*
2117 eval "ac_cv_header_$ac_safe=no"
2119 rm -f conftest*
2121 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2122 echo "$ac_t""yes" 1>&6
2123 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2124 cat >> confdefs.h <<EOF
2125 #define $ac_tr_hdr 1
2128 else
2129 echo "$ac_t""no" 1>&6
2131 done
2133 for ac_hdr in sys/mman.h sys/filio.h sys/priv.h sys/shm.h string.h strings.h stdlib.h sys/socket.h
2135 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2136 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2137 echo "configure:2138: checking for $ac_hdr" >&5
2138 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2139 echo $ac_n "(cached) $ac_c" 1>&6
2140 else
2141 cat > conftest.$ac_ext <<EOF
2142 #line 2143 "configure"
2143 #include "confdefs.h"
2144 #include <$ac_hdr>
2146 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2147 { (eval echo configure:2148: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2148 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2149 if test -z "$ac_err"; then
2150 rm -rf conftest*
2151 eval "ac_cv_header_$ac_safe=yes"
2152 else
2153 echo "$ac_err" >&5
2154 echo "configure: failed program was:" >&5
2155 cat conftest.$ac_ext >&5
2156 rm -rf conftest*
2157 eval "ac_cv_header_$ac_safe=no"
2159 rm -f conftest*
2161 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2162 echo "$ac_t""yes" 1>&6
2163 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2164 cat >> confdefs.h <<EOF
2165 #define $ac_tr_hdr 1
2168 else
2169 echo "$ac_t""no" 1>&6
2171 done
2173 for ac_hdr in sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h termio.h
2175 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2176 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2177 echo "configure:2178: checking for $ac_hdr" >&5
2178 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2179 echo $ac_n "(cached) $ac_c" 1>&6
2180 else
2181 cat > conftest.$ac_ext <<EOF
2182 #line 2183 "configure"
2183 #include "confdefs.h"
2184 #include <$ac_hdr>
2186 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2187 { (eval echo configure:2188: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2188 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2189 if test -z "$ac_err"; then
2190 rm -rf conftest*
2191 eval "ac_cv_header_$ac_safe=yes"
2192 else
2193 echo "$ac_err" >&5
2194 echo "configure: failed program was:" >&5
2195 cat conftest.$ac_ext >&5
2196 rm -rf conftest*
2197 eval "ac_cv_header_$ac_safe=no"
2199 rm -f conftest*
2201 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2202 echo "$ac_t""yes" 1>&6
2203 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2204 cat >> confdefs.h <<EOF
2205 #define $ac_tr_hdr 1
2208 else
2209 echo "$ac_t""no" 1>&6
2211 done
2213 for ac_hdr in sys/termio.h sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h
2215 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2216 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2217 echo "configure:2218: checking for $ac_hdr" >&5
2218 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2219 echo $ac_n "(cached) $ac_c" 1>&6
2220 else
2221 cat > conftest.$ac_ext <<EOF
2222 #line 2223 "configure"
2223 #include "confdefs.h"
2224 #include <$ac_hdr>
2226 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2227 { (eval echo configure:2228: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2228 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2229 if test -z "$ac_err"; then
2230 rm -rf conftest*
2231 eval "ac_cv_header_$ac_safe=yes"
2232 else
2233 echo "$ac_err" >&5
2234 echo "configure: failed program was:" >&5
2235 cat conftest.$ac_ext >&5
2236 rm -rf conftest*
2237 eval "ac_cv_header_$ac_safe=no"
2239 rm -f conftest*
2241 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2242 echo "$ac_t""yes" 1>&6
2243 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2244 cat >> confdefs.h <<EOF
2245 #define $ac_tr_hdr 1
2248 else
2249 echo "$ac_t""no" 1>&6
2251 done
2253 for ac_hdr in security/pam_modules.h security/_pam_macros.h
2255 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2256 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2257 echo "configure:2258: checking for $ac_hdr" >&5
2258 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2259 echo $ac_n "(cached) $ac_c" 1>&6
2260 else
2261 cat > conftest.$ac_ext <<EOF
2262 #line 2263 "configure"
2263 #include "confdefs.h"
2264 #include <$ac_hdr>
2266 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2267 { (eval echo configure:2268: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2268 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2269 if test -z "$ac_err"; then
2270 rm -rf conftest*
2271 eval "ac_cv_header_$ac_safe=yes"
2272 else
2273 echo "$ac_err" >&5
2274 echo "configure: failed program was:" >&5
2275 cat conftest.$ac_ext >&5
2276 rm -rf conftest*
2277 eval "ac_cv_header_$ac_safe=no"
2279 rm -f conftest*
2281 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2282 echo "$ac_t""yes" 1>&6
2283 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2284 cat >> confdefs.h <<EOF
2285 #define $ac_tr_hdr 1
2288 else
2289 echo "$ac_t""no" 1>&6
2291 done
2295 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
2296 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
2298 case "$host_os" in
2299 *hpux*)
2300 cat > conftest.$ac_ext <<EOF
2301 #line 2302 "configure"
2302 #include "confdefs.h"
2303 #include <shadow.h>
2304 int main() {
2305 struct spwd testme
2306 ; return 0; }
2308 if { (eval echo configure:2309: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2309 rm -rf conftest*
2310 ac_cv_header_shadow_h=yes
2311 else
2312 echo "configure: failed program was:" >&5
2313 cat conftest.$ac_ext >&5
2314 rm -rf conftest*
2315 ac_cv_header_shadow_h=no
2317 rm -f conftest*
2318 if test x"$ac_cv_header_shadow_h" = x"yes"; then
2319 cat >> confdefs.h <<\EOF
2320 #define HAVE_SHADOW_H 1
2325 esac
2326 for ac_hdr in shadow.h netinet/ip.h netinet/tcp.h netinet/in_systm.h netinet/in_ip.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 nss.h nss_common.h sys/security.h security/pam_appl.h security/pam_modules.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 stropts.h poll.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/capability.h syscall.h sys/syscall.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 sys/acl.h sys/cdefs.h glob.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
2527 # For experimental utmp support (lastlog on some BSD-like systems)
2528 for ac_hdr in utmp.h utmpx.h lastlog.h
2530 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2531 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2532 echo "configure:2533: checking for $ac_hdr" >&5
2533 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2534 echo $ac_n "(cached) $ac_c" 1>&6
2535 else
2536 cat > conftest.$ac_ext <<EOF
2537 #line 2538 "configure"
2538 #include "confdefs.h"
2539 #include <$ac_hdr>
2541 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2542 { (eval echo configure:2543: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2543 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2544 if test -z "$ac_err"; then
2545 rm -rf conftest*
2546 eval "ac_cv_header_$ac_safe=yes"
2547 else
2548 echo "$ac_err" >&5
2549 echo "configure: failed program was:" >&5
2550 cat conftest.$ac_ext >&5
2551 rm -rf conftest*
2552 eval "ac_cv_header_$ac_safe=no"
2554 rm -f conftest*
2556 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2557 echo "$ac_t""yes" 1>&6
2558 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2559 cat >> confdefs.h <<EOF
2560 #define $ac_tr_hdr 1
2563 else
2564 echo "$ac_t""no" 1>&6
2566 done
2569 # For quotas on Veritas VxFS filesystems
2570 for ac_hdr in sys/fs/vx_quota.h
2572 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2573 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2574 echo "configure:2575: checking for $ac_hdr" >&5
2575 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2576 echo $ac_n "(cached) $ac_c" 1>&6
2577 else
2578 cat > conftest.$ac_ext <<EOF
2579 #line 2580 "configure"
2580 #include "confdefs.h"
2581 #include <$ac_hdr>
2583 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2584 { (eval echo configure:2585: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2585 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2586 if test -z "$ac_err"; then
2587 rm -rf conftest*
2588 eval "ac_cv_header_$ac_safe=yes"
2589 else
2590 echo "$ac_err" >&5
2591 echo "configure: failed program was:" >&5
2592 cat conftest.$ac_ext >&5
2593 rm -rf conftest*
2594 eval "ac_cv_header_$ac_safe=no"
2596 rm -f conftest*
2598 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2599 echo "$ac_t""yes" 1>&6
2600 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2601 cat >> confdefs.h <<EOF
2602 #define $ac_tr_hdr 1
2605 else
2606 echo "$ac_t""no" 1>&6
2608 done
2611 echo $ac_n "checking size of int""... $ac_c" 1>&6
2612 echo "configure:2613: checking size of int" >&5
2613 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2614 echo $ac_n "(cached) $ac_c" 1>&6
2615 else
2616 if test "$cross_compiling" = yes; then
2617 ac_cv_sizeof_int=cross
2618 else
2619 cat > conftest.$ac_ext <<EOF
2620 #line 2621 "configure"
2621 #include "confdefs.h"
2622 #include <stdio.h>
2623 main()
2625 FILE *f=fopen("conftestval", "w");
2626 if (!f) exit(1);
2627 fprintf(f, "%d\n", sizeof(int));
2628 exit(0);
2631 if { (eval echo configure:2632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2632 then
2633 ac_cv_sizeof_int=`cat conftestval`
2634 else
2635 echo "configure: failed program was:" >&5
2636 cat conftest.$ac_ext >&5
2637 rm -fr conftest*
2638 ac_cv_sizeof_int=0
2640 rm -fr conftest*
2644 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2645 cat >> confdefs.h <<EOF
2646 #define SIZEOF_INT $ac_cv_sizeof_int
2650 echo $ac_n "checking size of long""... $ac_c" 1>&6
2651 echo "configure:2652: checking size of long" >&5
2652 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2653 echo $ac_n "(cached) $ac_c" 1>&6
2654 else
2655 if test "$cross_compiling" = yes; then
2656 ac_cv_sizeof_long=cross
2657 else
2658 cat > conftest.$ac_ext <<EOF
2659 #line 2660 "configure"
2660 #include "confdefs.h"
2661 #include <stdio.h>
2662 main()
2664 FILE *f=fopen("conftestval", "w");
2665 if (!f) exit(1);
2666 fprintf(f, "%d\n", sizeof(long));
2667 exit(0);
2670 if { (eval echo configure:2671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2671 then
2672 ac_cv_sizeof_long=`cat conftestval`
2673 else
2674 echo "configure: failed program was:" >&5
2675 cat conftest.$ac_ext >&5
2676 rm -fr conftest*
2677 ac_cv_sizeof_long=0
2679 rm -fr conftest*
2683 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2684 cat >> confdefs.h <<EOF
2685 #define SIZEOF_LONG $ac_cv_sizeof_long
2689 echo $ac_n "checking size of short""... $ac_c" 1>&6
2690 echo "configure:2691: checking size of short" >&5
2691 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2692 echo $ac_n "(cached) $ac_c" 1>&6
2693 else
2694 if test "$cross_compiling" = yes; then
2695 ac_cv_sizeof_short=cross
2696 else
2697 cat > conftest.$ac_ext <<EOF
2698 #line 2699 "configure"
2699 #include "confdefs.h"
2700 #include <stdio.h>
2701 main()
2703 FILE *f=fopen("conftestval", "w");
2704 if (!f) exit(1);
2705 fprintf(f, "%d\n", sizeof(short));
2706 exit(0);
2709 if { (eval echo configure:2710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2710 then
2711 ac_cv_sizeof_short=`cat conftestval`
2712 else
2713 echo "configure: failed program was:" >&5
2714 cat conftest.$ac_ext >&5
2715 rm -fr conftest*
2716 ac_cv_sizeof_short=0
2718 rm -fr conftest*
2722 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2723 cat >> confdefs.h <<EOF
2724 #define SIZEOF_SHORT $ac_cv_sizeof_short
2729 echo $ac_n "checking for working const""... $ac_c" 1>&6
2730 echo "configure:2731: checking for working const" >&5
2731 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2732 echo $ac_n "(cached) $ac_c" 1>&6
2733 else
2734 cat > conftest.$ac_ext <<EOF
2735 #line 2736 "configure"
2736 #include "confdefs.h"
2738 int main() {
2740 /* Ultrix mips cc rejects this. */
2741 typedef int charset[2]; const charset x;
2742 /* SunOS 4.1.1 cc rejects this. */
2743 char const *const *ccp;
2744 char **p;
2745 /* NEC SVR4.0.2 mips cc rejects this. */
2746 struct point {int x, y;};
2747 static struct point const zero = {0,0};
2748 /* AIX XL C 1.02.0.0 rejects this.
2749 It does not let you subtract one const X* pointer from another in an arm
2750 of an if-expression whose if-part is not a constant expression */
2751 const char *g = "string";
2752 ccp = &g + (g ? g-g : 0);
2753 /* HPUX 7.0 cc rejects these. */
2754 ++ccp;
2755 p = (char**) ccp;
2756 ccp = (char const *const *) p;
2757 { /* SCO 3.2v4 cc rejects this. */
2758 char *t;
2759 char const *s = 0 ? (char *) 0 : (char const *) 0;
2761 *t++ = 0;
2763 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2764 int x[] = {25, 17};
2765 const int *foo = &x[0];
2766 ++foo;
2768 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2769 typedef const int *iptr;
2770 iptr p = 0;
2771 ++p;
2773 { /* AIX XL C 1.02.0.0 rejects this saying
2774 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2775 struct s { int j; const int *ap[3]; };
2776 struct s *b; b->j = 5;
2778 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2779 const int foo = 10;
2782 ; return 0; }
2784 if { (eval echo configure:2785: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2785 rm -rf conftest*
2786 ac_cv_c_const=yes
2787 else
2788 echo "configure: failed program was:" >&5
2789 cat conftest.$ac_ext >&5
2790 rm -rf conftest*
2791 ac_cv_c_const=no
2793 rm -f conftest*
2796 echo "$ac_t""$ac_cv_c_const" 1>&6
2797 if test $ac_cv_c_const = no; then
2798 cat >> confdefs.h <<\EOF
2799 #define const
2804 echo $ac_n "checking for inline""... $ac_c" 1>&6
2805 echo "configure:2806: checking for inline" >&5
2806 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2807 echo $ac_n "(cached) $ac_c" 1>&6
2808 else
2809 ac_cv_c_inline=no
2810 for ac_kw in inline __inline__ __inline; do
2811 cat > conftest.$ac_ext <<EOF
2812 #line 2813 "configure"
2813 #include "confdefs.h"
2815 int main() {
2816 } $ac_kw foo() {
2817 ; return 0; }
2819 if { (eval echo configure:2820: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2820 rm -rf conftest*
2821 ac_cv_c_inline=$ac_kw; break
2822 else
2823 echo "configure: failed program was:" >&5
2824 cat conftest.$ac_ext >&5
2826 rm -f conftest*
2827 done
2831 echo "$ac_t""$ac_cv_c_inline" 1>&6
2832 case "$ac_cv_c_inline" in
2833 inline | yes) ;;
2834 no) cat >> confdefs.h <<\EOF
2835 #define inline
2838 *) cat >> confdefs.h <<EOF
2839 #define inline $ac_cv_c_inline
2842 esac
2844 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
2845 echo "configure:2846: checking whether byte ordering is bigendian" >&5
2846 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
2847 echo $ac_n "(cached) $ac_c" 1>&6
2848 else
2849 ac_cv_c_bigendian=unknown
2850 # See if sys/param.h defines the BYTE_ORDER macro.
2851 cat > conftest.$ac_ext <<EOF
2852 #line 2853 "configure"
2853 #include "confdefs.h"
2854 #include <sys/types.h>
2855 #include <sys/param.h>
2856 int main() {
2858 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2859 bogus endian macros
2860 #endif
2861 ; return 0; }
2863 if { (eval echo configure:2864: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2864 rm -rf conftest*
2865 # It does; now see whether it defined to BIG_ENDIAN or not.
2866 cat > conftest.$ac_ext <<EOF
2867 #line 2868 "configure"
2868 #include "confdefs.h"
2869 #include <sys/types.h>
2870 #include <sys/param.h>
2871 int main() {
2873 #if BYTE_ORDER != BIG_ENDIAN
2874 not big endian
2875 #endif
2876 ; return 0; }
2878 if { (eval echo configure:2879: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2879 rm -rf conftest*
2880 ac_cv_c_bigendian=yes
2881 else
2882 echo "configure: failed program was:" >&5
2883 cat conftest.$ac_ext >&5
2884 rm -rf conftest*
2885 ac_cv_c_bigendian=no
2887 rm -f conftest*
2888 else
2889 echo "configure: failed program was:" >&5
2890 cat conftest.$ac_ext >&5
2892 rm -f conftest*
2893 if test $ac_cv_c_bigendian = unknown; then
2894 if test "$cross_compiling" = yes; then
2895 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2896 else
2897 cat > conftest.$ac_ext <<EOF
2898 #line 2899 "configure"
2899 #include "confdefs.h"
2900 main () {
2901 /* Are we little or big endian? From Harbison&Steele. */
2902 union
2904 long l;
2905 char c[sizeof (long)];
2906 } u;
2907 u.l = 1;
2908 exit (u.c[sizeof (long) - 1] == 1);
2911 if { (eval echo configure:2912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2912 then
2913 ac_cv_c_bigendian=no
2914 else
2915 echo "configure: failed program was:" >&5
2916 cat conftest.$ac_ext >&5
2917 rm -fr conftest*
2918 ac_cv_c_bigendian=yes
2920 rm -fr conftest*
2926 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
2927 if test $ac_cv_c_bigendian = yes; then
2928 cat >> confdefs.h <<\EOF
2929 #define WORDS_BIGENDIAN 1
2934 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
2935 echo "configure:2936: checking whether char is unsigned" >&5
2936 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
2937 echo $ac_n "(cached) $ac_c" 1>&6
2938 else
2939 if test "$GCC" = yes; then
2940 # GCC predefines this symbol on systems where it applies.
2941 cat > conftest.$ac_ext <<EOF
2942 #line 2943 "configure"
2943 #include "confdefs.h"
2944 #ifdef __CHAR_UNSIGNED__
2946 #endif
2949 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2950 egrep "yes" >/dev/null 2>&1; then
2951 rm -rf conftest*
2952 ac_cv_c_char_unsigned=yes
2953 else
2954 rm -rf conftest*
2955 ac_cv_c_char_unsigned=no
2957 rm -f conftest*
2959 else
2960 if test "$cross_compiling" = yes; then
2961 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2962 else
2963 cat > conftest.$ac_ext <<EOF
2964 #line 2965 "configure"
2965 #include "confdefs.h"
2966 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
2967 #if !defined(__STDC__) || __STDC__ != 1
2968 #define volatile
2969 #endif
2970 main() {
2971 volatile char c = 255; exit(c < 0);
2974 if { (eval echo configure:2975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2975 then
2976 ac_cv_c_char_unsigned=yes
2977 else
2978 echo "configure: failed program was:" >&5
2979 cat conftest.$ac_ext >&5
2980 rm -fr conftest*
2981 ac_cv_c_char_unsigned=no
2983 rm -fr conftest*
2989 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
2990 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
2991 cat >> confdefs.h <<\EOF
2992 #define __CHAR_UNSIGNED__ 1
2998 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2999 echo "configure:3000: checking return type of signal handlers" >&5
3000 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3001 echo $ac_n "(cached) $ac_c" 1>&6
3002 else
3003 cat > conftest.$ac_ext <<EOF
3004 #line 3005 "configure"
3005 #include "confdefs.h"
3006 #include <sys/types.h>
3007 #include <signal.h>
3008 #ifdef signal
3009 #undef signal
3010 #endif
3011 #ifdef __cplusplus
3012 extern "C" void (*signal (int, void (*)(int)))(int);
3013 #else
3014 void (*signal ()) ();
3015 #endif
3017 int main() {
3018 int i;
3019 ; return 0; }
3021 if { (eval echo configure:3022: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3022 rm -rf conftest*
3023 ac_cv_type_signal=void
3024 else
3025 echo "configure: failed program was:" >&5
3026 cat conftest.$ac_ext >&5
3027 rm -rf conftest*
3028 ac_cv_type_signal=int
3030 rm -f conftest*
3033 echo "$ac_t""$ac_cv_type_signal" 1>&6
3034 cat >> confdefs.h <<EOF
3035 #define RETSIGTYPE $ac_cv_type_signal
3039 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3040 echo "configure:3041: checking for uid_t in sys/types.h" >&5
3041 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3042 echo $ac_n "(cached) $ac_c" 1>&6
3043 else
3044 cat > conftest.$ac_ext <<EOF
3045 #line 3046 "configure"
3046 #include "confdefs.h"
3047 #include <sys/types.h>
3049 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3050 egrep "uid_t" >/dev/null 2>&1; then
3051 rm -rf conftest*
3052 ac_cv_type_uid_t=yes
3053 else
3054 rm -rf conftest*
3055 ac_cv_type_uid_t=no
3057 rm -f conftest*
3061 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3062 if test $ac_cv_type_uid_t = no; then
3063 cat >> confdefs.h <<\EOF
3064 #define uid_t int
3067 cat >> confdefs.h <<\EOF
3068 #define gid_t int
3073 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3074 echo "configure:3075: checking for mode_t" >&5
3075 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3076 echo $ac_n "(cached) $ac_c" 1>&6
3077 else
3078 cat > conftest.$ac_ext <<EOF
3079 #line 3080 "configure"
3080 #include "confdefs.h"
3081 #include <sys/types.h>
3082 #if STDC_HEADERS
3083 #include <stdlib.h>
3084 #include <stddef.h>
3085 #endif
3087 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3088 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3089 rm -rf conftest*
3090 ac_cv_type_mode_t=yes
3091 else
3092 rm -rf conftest*
3093 ac_cv_type_mode_t=no
3095 rm -f conftest*
3098 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3099 if test $ac_cv_type_mode_t = no; then
3100 cat >> confdefs.h <<\EOF
3101 #define mode_t int
3106 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3107 echo "configure:3108: checking for off_t" >&5
3108 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3109 echo $ac_n "(cached) $ac_c" 1>&6
3110 else
3111 cat > conftest.$ac_ext <<EOF
3112 #line 3113 "configure"
3113 #include "confdefs.h"
3114 #include <sys/types.h>
3115 #if STDC_HEADERS
3116 #include <stdlib.h>
3117 #include <stddef.h>
3118 #endif
3120 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3121 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3122 rm -rf conftest*
3123 ac_cv_type_off_t=yes
3124 else
3125 rm -rf conftest*
3126 ac_cv_type_off_t=no
3128 rm -f conftest*
3131 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3132 if test $ac_cv_type_off_t = no; then
3133 cat >> confdefs.h <<\EOF
3134 #define off_t long
3139 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3140 echo "configure:3141: checking for size_t" >&5
3141 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3142 echo $ac_n "(cached) $ac_c" 1>&6
3143 else
3144 cat > conftest.$ac_ext <<EOF
3145 #line 3146 "configure"
3146 #include "confdefs.h"
3147 #include <sys/types.h>
3148 #if STDC_HEADERS
3149 #include <stdlib.h>
3150 #include <stddef.h>
3151 #endif
3153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3154 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3155 rm -rf conftest*
3156 ac_cv_type_size_t=yes
3157 else
3158 rm -rf conftest*
3159 ac_cv_type_size_t=no
3161 rm -f conftest*
3164 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3165 if test $ac_cv_type_size_t = no; then
3166 cat >> confdefs.h <<\EOF
3167 #define size_t unsigned
3172 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3173 echo "configure:3174: checking for pid_t" >&5
3174 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3175 echo $ac_n "(cached) $ac_c" 1>&6
3176 else
3177 cat > conftest.$ac_ext <<EOF
3178 #line 3179 "configure"
3179 #include "confdefs.h"
3180 #include <sys/types.h>
3181 #if STDC_HEADERS
3182 #include <stdlib.h>
3183 #include <stddef.h>
3184 #endif
3186 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3187 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3188 rm -rf conftest*
3189 ac_cv_type_pid_t=yes
3190 else
3191 rm -rf conftest*
3192 ac_cv_type_pid_t=no
3194 rm -f conftest*
3197 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3198 if test $ac_cv_type_pid_t = no; then
3199 cat >> confdefs.h <<\EOF
3200 #define pid_t int
3205 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3206 echo "configure:3207: checking for st_rdev in struct stat" >&5
3207 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3208 echo $ac_n "(cached) $ac_c" 1>&6
3209 else
3210 cat > conftest.$ac_ext <<EOF
3211 #line 3212 "configure"
3212 #include "confdefs.h"
3213 #include <sys/types.h>
3214 #include <sys/stat.h>
3215 int main() {
3216 struct stat s; s.st_rdev;
3217 ; return 0; }
3219 if { (eval echo configure:3220: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3220 rm -rf conftest*
3221 ac_cv_struct_st_rdev=yes
3222 else
3223 echo "configure: failed program was:" >&5
3224 cat conftest.$ac_ext >&5
3225 rm -rf conftest*
3226 ac_cv_struct_st_rdev=no
3228 rm -f conftest*
3231 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3232 if test $ac_cv_struct_st_rdev = yes; then
3233 cat >> confdefs.h <<\EOF
3234 #define HAVE_ST_RDEV 1
3239 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
3240 echo "configure:3241: checking for d_off in dirent" >&5
3241 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
3242 echo $ac_n "(cached) $ac_c" 1>&6
3243 else
3244 cat > conftest.$ac_ext <<EOF
3245 #line 3246 "configure"
3246 #include "confdefs.h"
3248 #include <unistd.h>
3249 #include <sys/types.h>
3250 #include <dirent.h>
3251 int main() {
3252 struct dirent d; d.d_off;
3253 ; return 0; }
3255 if { (eval echo configure:3256: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3256 rm -rf conftest*
3257 ac_cv_dirent_d_off=yes
3258 else
3259 echo "configure: failed program was:" >&5
3260 cat conftest.$ac_ext >&5
3261 rm -rf conftest*
3262 ac_cv_dirent_d_off=no
3264 rm -f conftest*
3267 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
3268 if test $ac_cv_dirent_d_off = yes; then
3269 cat >> confdefs.h <<\EOF
3270 #define HAVE_DIRENT_D_OFF 1
3275 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
3276 echo "configure:3277: checking for ino_t" >&5
3277 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
3278 echo $ac_n "(cached) $ac_c" 1>&6
3279 else
3280 cat > conftest.$ac_ext <<EOF
3281 #line 3282 "configure"
3282 #include "confdefs.h"
3283 #include <sys/types.h>
3284 #if STDC_HEADERS
3285 #include <stdlib.h>
3286 #include <stddef.h>
3287 #endif
3289 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3290 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3291 rm -rf conftest*
3292 ac_cv_type_ino_t=yes
3293 else
3294 rm -rf conftest*
3295 ac_cv_type_ino_t=no
3297 rm -f conftest*
3300 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
3301 if test $ac_cv_type_ino_t = no; then
3302 cat >> confdefs.h <<\EOF
3303 #define ino_t unsigned
3308 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3309 echo "configure:3310: checking for loff_t" >&5
3310 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
3311 echo $ac_n "(cached) $ac_c" 1>&6
3312 else
3313 cat > conftest.$ac_ext <<EOF
3314 #line 3315 "configure"
3315 #include "confdefs.h"
3316 #include <sys/types.h>
3317 #if STDC_HEADERS
3318 #include <stdlib.h>
3319 #include <stddef.h>
3320 #endif
3322 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3323 egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3324 rm -rf conftest*
3325 ac_cv_type_loff_t=yes
3326 else
3327 rm -rf conftest*
3328 ac_cv_type_loff_t=no
3330 rm -f conftest*
3333 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
3334 if test $ac_cv_type_loff_t = no; then
3335 cat >> confdefs.h <<\EOF
3336 #define loff_t off_t
3341 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
3342 echo "configure:3343: checking for offset_t" >&5
3343 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
3344 echo $ac_n "(cached) $ac_c" 1>&6
3345 else
3346 cat > conftest.$ac_ext <<EOF
3347 #line 3348 "configure"
3348 #include "confdefs.h"
3349 #include <sys/types.h>
3350 #if STDC_HEADERS
3351 #include <stdlib.h>
3352 #include <stddef.h>
3353 #endif
3355 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3356 egrep "(^|[^a-zA-Z_0-9])offset_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3357 rm -rf conftest*
3358 ac_cv_type_offset_t=yes
3359 else
3360 rm -rf conftest*
3361 ac_cv_type_offset_t=no
3363 rm -f conftest*
3366 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
3367 if test $ac_cv_type_offset_t = no; then
3368 cat >> confdefs.h <<\EOF
3369 #define offset_t loff_t
3374 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3375 echo "configure:3376: checking for ssize_t" >&5
3376 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3377 echo $ac_n "(cached) $ac_c" 1>&6
3378 else
3379 cat > conftest.$ac_ext <<EOF
3380 #line 3381 "configure"
3381 #include "confdefs.h"
3382 #include <sys/types.h>
3383 #if STDC_HEADERS
3384 #include <stdlib.h>
3385 #include <stddef.h>
3386 #endif
3388 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3389 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3390 rm -rf conftest*
3391 ac_cv_type_ssize_t=yes
3392 else
3393 rm -rf conftest*
3394 ac_cv_type_ssize_t=no
3396 rm -f conftest*
3399 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3400 if test $ac_cv_type_ssize_t = no; then
3401 cat >> confdefs.h <<\EOF
3402 #define ssize_t int
3407 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
3408 echo "configure:3409: checking for wchar_t" >&5
3409 if eval "test \"`echo '$''{'ac_cv_type_wchar_t'+set}'`\" = set"; then
3410 echo $ac_n "(cached) $ac_c" 1>&6
3411 else
3412 cat > conftest.$ac_ext <<EOF
3413 #line 3414 "configure"
3414 #include "confdefs.h"
3415 #include <sys/types.h>
3416 #if STDC_HEADERS
3417 #include <stdlib.h>
3418 #include <stddef.h>
3419 #endif
3421 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3422 egrep "(^|[^a-zA-Z_0-9])wchar_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3423 rm -rf conftest*
3424 ac_cv_type_wchar_t=yes
3425 else
3426 rm -rf conftest*
3427 ac_cv_type_wchar_t=no
3429 rm -f conftest*
3432 echo "$ac_t""$ac_cv_type_wchar_t" 1>&6
3433 if test $ac_cv_type_wchar_t = no; then
3434 cat >> confdefs.h <<\EOF
3435 #define wchar_t unsigned short
3441 ############################################
3442 # for cups support we need libcups, and a handful of header files
3444 echo $ac_n "checking for httpConnect in -lcups""... $ac_c" 1>&6
3445 echo "configure:3446: checking for httpConnect in -lcups" >&5
3446 ac_lib_var=`echo cups'_'httpConnect | sed 'y%./+-%__p_%'`
3447 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3448 echo $ac_n "(cached) $ac_c" 1>&6
3449 else
3450 ac_save_LIBS="$LIBS"
3451 LIBS="-lcups $LIBS"
3452 cat > conftest.$ac_ext <<EOF
3453 #line 3454 "configure"
3454 #include "confdefs.h"
3455 /* Override any gcc2 internal prototype to avoid an error. */
3456 /* We use char because int might match the return type of a gcc2
3457 builtin and then its argument prototype would still apply. */
3458 char httpConnect();
3460 int main() {
3461 httpConnect()
3462 ; return 0; }
3464 if { (eval echo configure:3465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3465 rm -rf conftest*
3466 eval "ac_cv_lib_$ac_lib_var=yes"
3467 else
3468 echo "configure: failed program was:" >&5
3469 cat conftest.$ac_ext >&5
3470 rm -rf conftest*
3471 eval "ac_cv_lib_$ac_lib_var=no"
3473 rm -f conftest*
3474 LIBS="$ac_save_LIBS"
3477 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3478 echo "$ac_t""yes" 1>&6
3479 ac_tr_lib=HAVE_LIB`echo cups | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3480 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3481 cat >> confdefs.h <<EOF
3482 #define $ac_tr_lib 1
3485 LIBS="-lcups $LIBS"
3487 else
3488 echo "$ac_t""no" 1>&6
3492 # I wonder if there is a nicer way of doing this?
3494 if test x"$ac_cv_lib_cups_httpConnect" = x"yes"; then
3495 for ac_hdr in cups/cups.h cups/language.h
3497 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3498 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3499 echo "configure:3500: checking for $ac_hdr" >&5
3500 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3501 echo $ac_n "(cached) $ac_c" 1>&6
3502 else
3503 cat > conftest.$ac_ext <<EOF
3504 #line 3505 "configure"
3505 #include "confdefs.h"
3506 #include <$ac_hdr>
3508 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3509 { (eval echo configure:3510: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3510 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3511 if test -z "$ac_err"; then
3512 rm -rf conftest*
3513 eval "ac_cv_header_$ac_safe=yes"
3514 else
3515 echo "$ac_err" >&5
3516 echo "configure: failed program was:" >&5
3517 cat conftest.$ac_ext >&5
3518 rm -rf conftest*
3519 eval "ac_cv_header_$ac_safe=no"
3521 rm -f conftest*
3523 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3524 echo "$ac_t""yes" 1>&6
3525 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3526 cat >> confdefs.h <<EOF
3527 #define $ac_tr_hdr 1
3530 else
3531 echo "$ac_t""no" 1>&6
3533 done
3535 if x"$ac_cv_header_cups_cups_h" = x"yes"; then
3536 if x"$ac_cv_header_cups_language_h" = x"yes"; then
3537 cat >> confdefs.h <<\EOF
3538 #define HAVE_CUPS 1
3545 ############################################
3546 # we need libdl for PAM and the new VFS code
3547 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3548 echo "configure:3549: checking for dlopen in -ldl" >&5
3549 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3550 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3551 echo $ac_n "(cached) $ac_c" 1>&6
3552 else
3553 ac_save_LIBS="$LIBS"
3554 LIBS="-ldl $LIBS"
3555 cat > conftest.$ac_ext <<EOF
3556 #line 3557 "configure"
3557 #include "confdefs.h"
3558 /* Override any gcc2 internal prototype to avoid an error. */
3559 /* We use char because int might match the return type of a gcc2
3560 builtin and then its argument prototype would still apply. */
3561 char dlopen();
3563 int main() {
3564 dlopen()
3565 ; return 0; }
3567 if { (eval echo configure:3568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3568 rm -rf conftest*
3569 eval "ac_cv_lib_$ac_lib_var=yes"
3570 else
3571 echo "configure: failed program was:" >&5
3572 cat conftest.$ac_ext >&5
3573 rm -rf conftest*
3574 eval "ac_cv_lib_$ac_lib_var=no"
3576 rm -f conftest*
3577 LIBS="$ac_save_LIBS"
3580 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3581 echo "$ac_t""yes" 1>&6
3582 LIBS="$LIBS -ldl";
3583 cat >> confdefs.h <<\EOF
3584 #define HAVE_LIBDL 1
3587 else
3588 echo "$ac_t""no" 1>&6
3592 ############################################
3593 # check for unix domain sockets
3594 echo $ac_n "checking for unix domain sockets""... $ac_c" 1>&6
3595 echo "configure:3596: checking for unix domain sockets" >&5
3596 if eval "test \"`echo '$''{'samba_cv_unixsocket'+set}'`\" = set"; then
3597 echo $ac_n "(cached) $ac_c" 1>&6
3598 else
3600 cat > conftest.$ac_ext <<EOF
3601 #line 3602 "configure"
3602 #include "confdefs.h"
3604 #include <sys/types.h>
3605 #include <stdlib.h>
3606 #include <stddef.h>
3607 #include <sys/socket.h>
3608 #include <sys/un.h>
3609 int main() {
3611 struct sockaddr_un sunaddr;
3612 sunaddr.sun_family = AF_UNIX;
3614 ; return 0; }
3616 if { (eval echo configure:3617: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3617 rm -rf conftest*
3618 samba_cv_unixsocket=yes
3619 else
3620 echo "configure: failed program was:" >&5
3621 cat conftest.$ac_ext >&5
3622 rm -rf conftest*
3623 samba_cv_unixsocket=no
3625 rm -f conftest*
3628 echo "$ac_t""$samba_cv_unixsocket" 1>&6
3629 if test x"$samba_cv_unixsocket" = x"yes"; then
3630 cat >> confdefs.h <<\EOF
3631 #define HAVE_UNIXSOCKET 1
3636 echo $ac_n "checking for socklen_t type""... $ac_c" 1>&6
3637 echo "configure:3638: checking for socklen_t type" >&5
3638 if eval "test \"`echo '$''{'samba_cv_socklen_t'+set}'`\" = set"; then
3639 echo $ac_n "(cached) $ac_c" 1>&6
3640 else
3642 cat > conftest.$ac_ext <<EOF
3643 #line 3644 "configure"
3644 #include "confdefs.h"
3646 #include <sys/types.h>
3647 #if STDC_HEADERS
3648 #include <stdlib.h>
3649 #include <stddef.h>
3650 #endif
3651 #include <sys/socket.h>
3652 int main() {
3653 socklen_t i = 0
3654 ; return 0; }
3656 if { (eval echo configure:3657: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3657 rm -rf conftest*
3658 samba_cv_socklen_t=yes
3659 else
3660 echo "configure: failed program was:" >&5
3661 cat conftest.$ac_ext >&5
3662 rm -rf conftest*
3663 samba_cv_socklen_t=no
3665 rm -f conftest*
3668 echo "$ac_t""$samba_cv_socklen_t" 1>&6
3669 if test x"$samba_cv_socklen_t" = x"yes"; then
3670 cat >> confdefs.h <<\EOF
3671 #define HAVE_SOCKLEN_T_TYPE 1
3676 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
3677 echo "configure:3678: checking for sig_atomic_t type" >&5
3678 if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+set}'`\" = set"; then
3679 echo $ac_n "(cached) $ac_c" 1>&6
3680 else
3682 cat > conftest.$ac_ext <<EOF
3683 #line 3684 "configure"
3684 #include "confdefs.h"
3686 #include <sys/types.h>
3687 #if STDC_HEADERS
3688 #include <stdlib.h>
3689 #include <stddef.h>
3690 #endif
3691 #include <signal.h>
3692 int main() {
3693 sig_atomic_t i = 0
3694 ; return 0; }
3696 if { (eval echo configure:3697: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3697 rm -rf conftest*
3698 samba_cv_sig_atomic_t=yes
3699 else
3700 echo "configure: failed program was:" >&5
3701 cat conftest.$ac_ext >&5
3702 rm -rf conftest*
3703 samba_cv_sig_atomic_t=no
3705 rm -f conftest*
3708 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
3709 if test x"$samba_cv_sig_atomic_t" = x"yes"; then
3710 cat >> confdefs.h <<\EOF
3711 #define HAVE_SIG_ATOMIC_T_TYPE 1
3716 # stupid headers have the functions but no declaration. grrrr.
3718 echo $ac_n "checking for errno declaration""... $ac_c" 1>&6
3719 echo "configure:3720: checking for errno declaration" >&5
3720 if eval "test \"`echo '$''{'ac_cv_have_errno_decl'+set}'`\" = set"; then
3721 echo $ac_n "(cached) $ac_c" 1>&6
3722 else
3724 cat > conftest.$ac_ext <<EOF
3725 #line 3726 "configure"
3726 #include "confdefs.h"
3727 #include <errno.h>
3728 int main() {
3729 int i = (int)errno
3730 ; return 0; }
3732 if { (eval echo configure:3733: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3733 rm -rf conftest*
3734 ac_cv_have_errno_decl=yes
3735 else
3736 echo "configure: failed program was:" >&5
3737 cat conftest.$ac_ext >&5
3738 rm -rf conftest*
3739 ac_cv_have_errno_decl=no
3741 rm -f conftest*
3744 echo "$ac_t""$ac_cv_have_errno_decl" 1>&6
3745 if test x"$ac_cv_have_errno_decl" = x"yes"; then
3746 cat >> confdefs.h <<\EOF
3747 #define HAVE_ERRNO_DECL 1
3753 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
3754 echo "configure:3755: checking for setresuid declaration" >&5
3755 if eval "test \"`echo '$''{'ac_cv_have_setresuid_decl'+set}'`\" = set"; then
3756 echo $ac_n "(cached) $ac_c" 1>&6
3757 else
3759 cat > conftest.$ac_ext <<EOF
3760 #line 3761 "configure"
3761 #include "confdefs.h"
3762 #include <unistd.h>
3763 int main() {
3764 int i = (int)setresuid
3765 ; return 0; }
3767 if { (eval echo configure:3768: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3768 rm -rf conftest*
3769 ac_cv_have_setresuid_decl=yes
3770 else
3771 echo "configure: failed program was:" >&5
3772 cat conftest.$ac_ext >&5
3773 rm -rf conftest*
3774 ac_cv_have_setresuid_decl=no
3776 rm -f conftest*
3779 echo "$ac_t""$ac_cv_have_setresuid_decl" 1>&6
3780 if test x"$ac_cv_have_setresuid_decl" = x"yes"; then
3781 cat >> confdefs.h <<\EOF
3782 #define HAVE_SETRESUID_DECL 1
3788 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
3789 echo "configure:3790: checking for setresgid declaration" >&5
3790 if eval "test \"`echo '$''{'ac_cv_have_setresgid_decl'+set}'`\" = set"; then
3791 echo $ac_n "(cached) $ac_c" 1>&6
3792 else
3794 cat > conftest.$ac_ext <<EOF
3795 #line 3796 "configure"
3796 #include "confdefs.h"
3797 #include <unistd.h>
3798 int main() {
3799 int i = (int)setresgid
3800 ; return 0; }
3802 if { (eval echo configure:3803: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3803 rm -rf conftest*
3804 ac_cv_have_setresgid_decl=yes
3805 else
3806 echo "configure: failed program was:" >&5
3807 cat conftest.$ac_ext >&5
3808 rm -rf conftest*
3809 ac_cv_have_setresgid_decl=no
3811 rm -f conftest*
3814 echo "$ac_t""$ac_cv_have_setresgid_decl" 1>&6
3815 if test x"$ac_cv_have_setresgid_decl" = x"yes"; then
3816 cat >> confdefs.h <<\EOF
3817 #define HAVE_SETRESGID_DECL 1
3823 echo $ac_n "checking for asprintf declaration""... $ac_c" 1>&6
3824 echo "configure:3825: checking for asprintf declaration" >&5
3825 if eval "test \"`echo '$''{'ac_cv_have_asprintf_decl'+set}'`\" = set"; then
3826 echo $ac_n "(cached) $ac_c" 1>&6
3827 else
3829 cat > conftest.$ac_ext <<EOF
3830 #line 3831 "configure"
3831 #include "confdefs.h"
3832 #include <stdio.h>
3833 int main() {
3834 int i = (int)asprintf
3835 ; return 0; }
3837 if { (eval echo configure:3838: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3838 rm -rf conftest*
3839 ac_cv_have_asprintf_decl=yes
3840 else
3841 echo "configure: failed program was:" >&5
3842 cat conftest.$ac_ext >&5
3843 rm -rf conftest*
3844 ac_cv_have_asprintf_decl=no
3846 rm -f conftest*
3849 echo "$ac_t""$ac_cv_have_asprintf_decl" 1>&6
3850 if test x"$ac_cv_have_asprintf_decl" = x"yes"; then
3851 cat >> confdefs.h <<\EOF
3852 #define HAVE_ASPRINTF_DECL 1
3858 echo $ac_n "checking for vasprintf declaration""... $ac_c" 1>&6
3859 echo "configure:3860: checking for vasprintf declaration" >&5
3860 if eval "test \"`echo '$''{'ac_cv_have_vasprintf_decl'+set}'`\" = set"; then
3861 echo $ac_n "(cached) $ac_c" 1>&6
3862 else
3864 cat > conftest.$ac_ext <<EOF
3865 #line 3866 "configure"
3866 #include "confdefs.h"
3867 #include <stdio.h>
3868 int main() {
3869 int i = (int)vasprintf
3870 ; return 0; }
3872 if { (eval echo configure:3873: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3873 rm -rf conftest*
3874 ac_cv_have_vasprintf_decl=yes
3875 else
3876 echo "configure: failed program was:" >&5
3877 cat conftest.$ac_ext >&5
3878 rm -rf conftest*
3879 ac_cv_have_vasprintf_decl=no
3881 rm -f conftest*
3884 echo "$ac_t""$ac_cv_have_vasprintf_decl" 1>&6
3885 if test x"$ac_cv_have_vasprintf_decl" = x"yes"; then
3886 cat >> confdefs.h <<\EOF
3887 #define HAVE_VASPRINTF_DECL 1
3893 echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6
3894 echo "configure:3895: checking for vsnprintf declaration" >&5
3895 if eval "test \"`echo '$''{'ac_cv_have_vsnprintf_decl'+set}'`\" = set"; then
3896 echo $ac_n "(cached) $ac_c" 1>&6
3897 else
3899 cat > conftest.$ac_ext <<EOF
3900 #line 3901 "configure"
3901 #include "confdefs.h"
3902 #include <stdio.h>
3903 int main() {
3904 int i = (int)vsnprintf
3905 ; return 0; }
3907 if { (eval echo configure:3908: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3908 rm -rf conftest*
3909 ac_cv_have_vsnprintf_decl=yes
3910 else
3911 echo "configure: failed program was:" >&5
3912 cat conftest.$ac_ext >&5
3913 rm -rf conftest*
3914 ac_cv_have_vsnprintf_decl=no
3916 rm -f conftest*
3919 echo "$ac_t""$ac_cv_have_vsnprintf_decl" 1>&6
3920 if test x"$ac_cv_have_vsnprintf_decl" = x"yes"; then
3921 cat >> confdefs.h <<\EOF
3922 #define HAVE_VSNPRINTF_DECL 1
3928 echo $ac_n "checking for snprintf declaration""... $ac_c" 1>&6
3929 echo "configure:3930: checking for snprintf declaration" >&5
3930 if eval "test \"`echo '$''{'ac_cv_have_snprintf_decl'+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"
3937 #include <stdio.h>
3938 int main() {
3939 int i = (int)snprintf
3940 ; return 0; }
3942 if { (eval echo configure:3943: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3943 rm -rf conftest*
3944 ac_cv_have_snprintf_decl=yes
3945 else
3946 echo "configure: failed program was:" >&5
3947 cat conftest.$ac_ext >&5
3948 rm -rf conftest*
3949 ac_cv_have_snprintf_decl=no
3951 rm -f conftest*
3954 echo "$ac_t""$ac_cv_have_snprintf_decl" 1>&6
3955 if test x"$ac_cv_have_snprintf_decl" = x"yes"; then
3956 cat >> confdefs.h <<\EOF
3957 #define HAVE_SNPRINTF_DECL 1
3963 # and glibc has setresuid under linux but the function does
3964 # nothing until kernel 2.1.44! very dumb.
3965 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
3966 echo "configure:3967: checking for real setresuid" >&5
3967 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
3968 echo $ac_n "(cached) $ac_c" 1>&6
3969 else
3971 if test "$cross_compiling" = yes; then
3972 samba_cv_have_setresuid=cross
3973 else
3974 cat > conftest.$ac_ext <<EOF
3975 #line 3976 "configure"
3976 #include "confdefs.h"
3977 #include <errno.h>
3978 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
3980 if { (eval echo configure:3981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3981 then
3982 samba_cv_have_setresuid=yes
3983 else
3984 echo "configure: failed program was:" >&5
3985 cat conftest.$ac_ext >&5
3986 rm -fr conftest*
3987 samba_cv_have_setresuid=no
3989 rm -fr conftest*
3994 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
3995 if test x"$samba_cv_have_setresuid" = x"yes"; then
3996 cat >> confdefs.h <<\EOF
3997 #define HAVE_SETRESUID 1
4002 # Do the same check for setresguid...
4004 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
4005 echo "configure:4006: checking for real setresgid" >&5
4006 if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then
4007 echo $ac_n "(cached) $ac_c" 1>&6
4008 else
4010 if test "$cross_compiling" = yes; then
4011 samba_cv_have_setresgid=cross
4012 else
4013 cat > conftest.$ac_ext <<EOF
4014 #line 4015 "configure"
4015 #include "confdefs.h"
4016 #include <unistd.h>
4017 #include <errno.h>
4018 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
4020 if { (eval echo configure:4021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4021 then
4022 samba_cv_have_setresgid=yes
4023 else
4024 echo "configure: failed program was:" >&5
4025 cat conftest.$ac_ext >&5
4026 rm -fr conftest*
4027 samba_cv_have_setresgid=no
4029 rm -fr conftest*
4034 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
4035 if test x"$samba_cv_have_setresgid" = x"yes"; then
4036 cat >> confdefs.h <<\EOF
4037 #define HAVE_SETRESGID 1
4042 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
4043 echo "configure:4044: checking for 8-bit clean memcmp" >&5
4044 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
4045 echo $ac_n "(cached) $ac_c" 1>&6
4046 else
4047 if test "$cross_compiling" = yes; then
4048 ac_cv_func_memcmp_clean=no
4049 else
4050 cat > conftest.$ac_ext <<EOF
4051 #line 4052 "configure"
4052 #include "confdefs.h"
4054 main()
4056 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4057 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
4061 if { (eval echo configure:4062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4062 then
4063 ac_cv_func_memcmp_clean=yes
4064 else
4065 echo "configure: failed program was:" >&5
4066 cat conftest.$ac_ext >&5
4067 rm -fr conftest*
4068 ac_cv_func_memcmp_clean=no
4070 rm -fr conftest*
4075 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
4076 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
4079 ###############################################
4080 # Readline included by default unless explicitly asked not to
4081 test "${with_readline+set}" != "set" && with_readline=yes
4083 # test for where we get readline() from
4084 echo $ac_n "checking whether to use readline""... $ac_c" 1>&6
4085 echo "configure:4086: checking whether to use readline" >&5
4086 # Check whether --with-readline or --without-readline was given.
4087 if test "${with_readline+set}" = set; then
4088 withval="$with_readline"
4089 case "$with_readline" in
4090 yes)
4091 echo "$ac_t""yes" 1>&6
4093 for ac_hdr in readline.h history.h readline/readline.h
4095 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4096 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4097 echo "configure:4098: checking for $ac_hdr" >&5
4098 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4099 echo $ac_n "(cached) $ac_c" 1>&6
4100 else
4101 cat > conftest.$ac_ext <<EOF
4102 #line 4103 "configure"
4103 #include "confdefs.h"
4104 #include <$ac_hdr>
4106 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4107 { (eval echo configure:4108: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4108 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4109 if test -z "$ac_err"; then
4110 rm -rf conftest*
4111 eval "ac_cv_header_$ac_safe=yes"
4112 else
4113 echo "$ac_err" >&5
4114 echo "configure: failed program was:" >&5
4115 cat conftest.$ac_ext >&5
4116 rm -rf conftest*
4117 eval "ac_cv_header_$ac_safe=no"
4119 rm -f conftest*
4121 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4122 echo "$ac_t""yes" 1>&6
4123 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4124 cat >> confdefs.h <<EOF
4125 #define $ac_tr_hdr 1
4128 else
4129 echo "$ac_t""no" 1>&6
4131 done
4133 for ac_hdr in readline/history.h
4135 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4136 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4137 echo "configure:4138: checking for $ac_hdr" >&5
4138 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4139 echo $ac_n "(cached) $ac_c" 1>&6
4140 else
4141 cat > conftest.$ac_ext <<EOF
4142 #line 4143 "configure"
4143 #include "confdefs.h"
4144 #include <$ac_hdr>
4146 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4147 { (eval echo configure:4148: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4148 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4149 if test -z "$ac_err"; then
4150 rm -rf conftest*
4151 eval "ac_cv_header_$ac_safe=yes"
4152 else
4153 echo "$ac_err" >&5
4154 echo "configure: failed program was:" >&5
4155 cat conftest.$ac_ext >&5
4156 rm -rf conftest*
4157 eval "ac_cv_header_$ac_safe=no"
4159 rm -f conftest*
4161 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4162 echo "$ac_t""yes" 1>&6
4163 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4164 cat >> confdefs.h <<EOF
4165 #define $ac_tr_hdr 1
4168 else
4169 echo "$ac_t""no" 1>&6
4171 done
4174 for ac_hdr in readline.h readline/readline.h
4176 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4177 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4178 echo "configure:4179: checking for $ac_hdr" >&5
4179 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4180 echo $ac_n "(cached) $ac_c" 1>&6
4181 else
4182 cat > conftest.$ac_ext <<EOF
4183 #line 4184 "configure"
4184 #include "confdefs.h"
4185 #include <$ac_hdr>
4187 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4188 { (eval echo configure:4189: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4189 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4190 if test -z "$ac_err"; then
4191 rm -rf conftest*
4192 eval "ac_cv_header_$ac_safe=yes"
4193 else
4194 echo "$ac_err" >&5
4195 echo "configure: failed program was:" >&5
4196 cat conftest.$ac_ext >&5
4197 rm -rf conftest*
4198 eval "ac_cv_header_$ac_safe=no"
4200 rm -f conftest*
4202 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4203 echo "$ac_t""yes" 1>&6
4204 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4205 cat >> confdefs.h <<EOF
4206 #define $ac_tr_hdr 1
4209 for termlib in ncurses curses termcap terminfo termlib; do
4210 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4211 echo "configure:4212: checking for tgetent in -l${termlib}" >&5
4212 ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4213 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4214 echo $ac_n "(cached) $ac_c" 1>&6
4215 else
4216 ac_save_LIBS="$LIBS"
4217 LIBS="-l${termlib} $LIBS"
4218 cat > conftest.$ac_ext <<EOF
4219 #line 4220 "configure"
4220 #include "confdefs.h"
4221 /* Override any gcc2 internal prototype to avoid an error. */
4222 /* We use char because int might match the return type of a gcc2
4223 builtin and then its argument prototype would still apply. */
4224 char tgetent();
4226 int main() {
4227 tgetent()
4228 ; return 0; }
4230 if { (eval echo configure:4231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4231 rm -rf conftest*
4232 eval "ac_cv_lib_$ac_lib_var=yes"
4233 else
4234 echo "configure: failed program was:" >&5
4235 cat conftest.$ac_ext >&5
4236 rm -rf conftest*
4237 eval "ac_cv_lib_$ac_lib_var=no"
4239 rm -f conftest*
4240 LIBS="$ac_save_LIBS"
4243 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4244 echo "$ac_t""yes" 1>&6
4245 TERMLIBS="-l${termlib}"; break
4246 else
4247 echo "$ac_t""no" 1>&6
4250 done
4251 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4252 echo "configure:4253: checking for rl_callback_handler_install in -lreadline" >&5
4253 ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4254 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4255 echo $ac_n "(cached) $ac_c" 1>&6
4256 else
4257 ac_save_LIBS="$LIBS"
4258 LIBS="-lreadline $TERMLIBS $LIBS"
4259 cat > conftest.$ac_ext <<EOF
4260 #line 4261 "configure"
4261 #include "confdefs.h"
4262 /* Override any gcc2 internal prototype to avoid an error. */
4263 /* We use char because int might match the return type of a gcc2
4264 builtin and then its argument prototype would still apply. */
4265 char rl_callback_handler_install();
4267 int main() {
4268 rl_callback_handler_install()
4269 ; return 0; }
4271 if { (eval echo configure:4272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4272 rm -rf conftest*
4273 eval "ac_cv_lib_$ac_lib_var=yes"
4274 else
4275 echo "configure: failed program was:" >&5
4276 cat conftest.$ac_ext >&5
4277 rm -rf conftest*
4278 eval "ac_cv_lib_$ac_lib_var=no"
4280 rm -f conftest*
4281 LIBS="$ac_save_LIBS"
4284 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4285 echo "$ac_t""yes" 1>&6
4286 TERMLIBS="-lreadline $TERMLIBS"
4287 cat >> confdefs.h <<\EOF
4288 #define HAVE_LIBREADLINE 1
4291 break
4292 else
4293 echo "$ac_t""no" 1>&6
4294 TERMLIBS=
4297 else
4298 echo "$ac_t""no" 1>&6
4300 done
4304 echo "$ac_t""no" 1>&6
4307 echo "$ac_t""yes" 1>&6
4309 # Needed for AC_CHECK_HEADERS and AC_CHECK_LIB to look at
4310 # alternate readline path
4311 _ldflags=${LDFLAGS}
4312 _cppflags=${CPPFLAGS}
4314 # Add additional search path
4315 LDFLAGS="-L$with_readline/lib $LDFLAGS"
4316 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
4318 for ac_hdr in readline.h history.h readline/readline.h
4320 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4321 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4322 echo "configure:4323: checking for $ac_hdr" >&5
4323 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4324 echo $ac_n "(cached) $ac_c" 1>&6
4325 else
4326 cat > conftest.$ac_ext <<EOF
4327 #line 4328 "configure"
4328 #include "confdefs.h"
4329 #include <$ac_hdr>
4331 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4332 { (eval echo configure:4333: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4333 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4334 if test -z "$ac_err"; then
4335 rm -rf conftest*
4336 eval "ac_cv_header_$ac_safe=yes"
4337 else
4338 echo "$ac_err" >&5
4339 echo "configure: failed program was:" >&5
4340 cat conftest.$ac_ext >&5
4341 rm -rf conftest*
4342 eval "ac_cv_header_$ac_safe=no"
4344 rm -f conftest*
4346 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4347 echo "$ac_t""yes" 1>&6
4348 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4349 cat >> confdefs.h <<EOF
4350 #define $ac_tr_hdr 1
4353 else
4354 echo "$ac_t""no" 1>&6
4356 done
4358 for ac_hdr in readline/history.h
4360 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4361 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4362 echo "configure:4363: checking for $ac_hdr" >&5
4363 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4364 echo $ac_n "(cached) $ac_c" 1>&6
4365 else
4366 cat > conftest.$ac_ext <<EOF
4367 #line 4368 "configure"
4368 #include "confdefs.h"
4369 #include <$ac_hdr>
4371 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4372 { (eval echo configure:4373: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4373 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4374 if test -z "$ac_err"; then
4375 rm -rf conftest*
4376 eval "ac_cv_header_$ac_safe=yes"
4377 else
4378 echo "$ac_err" >&5
4379 echo "configure: failed program was:" >&5
4380 cat conftest.$ac_ext >&5
4381 rm -rf conftest*
4382 eval "ac_cv_header_$ac_safe=no"
4384 rm -f conftest*
4386 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4387 echo "$ac_t""yes" 1>&6
4388 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4389 cat >> confdefs.h <<EOF
4390 #define $ac_tr_hdr 1
4393 else
4394 echo "$ac_t""no" 1>&6
4396 done
4399 for ac_hdr in readline.h readline/readline.h
4401 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4402 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4403 echo "configure:4404: checking for $ac_hdr" >&5
4404 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4405 echo $ac_n "(cached) $ac_c" 1>&6
4406 else
4407 cat > conftest.$ac_ext <<EOF
4408 #line 4409 "configure"
4409 #include "confdefs.h"
4410 #include <$ac_hdr>
4412 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4413 { (eval echo configure:4414: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4414 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4415 if test -z "$ac_err"; then
4416 rm -rf conftest*
4417 eval "ac_cv_header_$ac_safe=yes"
4418 else
4419 echo "$ac_err" >&5
4420 echo "configure: failed program was:" >&5
4421 cat conftest.$ac_ext >&5
4422 rm -rf conftest*
4423 eval "ac_cv_header_$ac_safe=no"
4425 rm -f conftest*
4427 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4428 echo "$ac_t""yes" 1>&6
4429 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4430 cat >> confdefs.h <<EOF
4431 #define $ac_tr_hdr 1
4434 for termlib in ncurses curses termcap terminfo termlib; do
4435 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4436 echo "configure:4437: checking for tgetent in -l${termlib}" >&5
4437 ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4438 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4439 echo $ac_n "(cached) $ac_c" 1>&6
4440 else
4441 ac_save_LIBS="$LIBS"
4442 LIBS="-l${termlib} $LIBS"
4443 cat > conftest.$ac_ext <<EOF
4444 #line 4445 "configure"
4445 #include "confdefs.h"
4446 /* Override any gcc2 internal prototype to avoid an error. */
4447 /* We use char because int might match the return type of a gcc2
4448 builtin and then its argument prototype would still apply. */
4449 char tgetent();
4451 int main() {
4452 tgetent()
4453 ; return 0; }
4455 if { (eval echo configure:4456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4456 rm -rf conftest*
4457 eval "ac_cv_lib_$ac_lib_var=yes"
4458 else
4459 echo "configure: failed program was:" >&5
4460 cat conftest.$ac_ext >&5
4461 rm -rf conftest*
4462 eval "ac_cv_lib_$ac_lib_var=no"
4464 rm -f conftest*
4465 LIBS="$ac_save_LIBS"
4468 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4469 echo "$ac_t""yes" 1>&6
4470 TERMLIBS="-l${termlib}"; break
4471 else
4472 echo "$ac_t""no" 1>&6
4475 done
4476 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4477 echo "configure:4478: checking for rl_callback_handler_install in -lreadline" >&5
4478 ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4479 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4480 echo $ac_n "(cached) $ac_c" 1>&6
4481 else
4482 ac_save_LIBS="$LIBS"
4483 LIBS="-lreadline $TERMLIBS $LIBS"
4484 cat > conftest.$ac_ext <<EOF
4485 #line 4486 "configure"
4486 #include "confdefs.h"
4487 /* Override any gcc2 internal prototype to avoid an error. */
4488 /* We use char because int might match the return type of a gcc2
4489 builtin and then its argument prototype would still apply. */
4490 char rl_callback_handler_install();
4492 int main() {
4493 rl_callback_handler_install()
4494 ; return 0; }
4496 if { (eval echo configure:4497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4497 rm -rf conftest*
4498 eval "ac_cv_lib_$ac_lib_var=yes"
4499 else
4500 echo "configure: failed program was:" >&5
4501 cat conftest.$ac_ext >&5
4502 rm -rf conftest*
4503 eval "ac_cv_lib_$ac_lib_var=no"
4505 rm -f conftest*
4506 LIBS="$ac_save_LIBS"
4509 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4510 echo "$ac_t""yes" 1>&6
4511 TERMLDFLAGS="-L$with_readline/lib"
4512 TERMCPPFLAGS="-I$with_readline/include"
4513 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
4514 TERMLIBS="-lreadline $TERMLIBS"
4515 cat >> confdefs.h <<\EOF
4516 #define HAVE_LIBREADLINE 1
4519 break
4520 else
4521 echo "$ac_t""no" 1>&6
4522 TERMLIBS= CPPFLAGS=$_cppflags
4525 else
4526 echo "$ac_t""no" 1>&6
4528 done
4531 LDFLAGS=$_ldflags
4533 esac
4534 else
4535 echo "$ac_t""no" 1>&6
4542 # The following test taken from the cvs sources
4543 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
4544 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
4545 # libsocket.so which has a bad implementation of gethostbyname (it
4546 # only looks in /etc/hosts), so we only look for -lsocket if we need
4547 # it.
4548 for ac_func in connect
4550 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4551 echo "configure:4552: checking for $ac_func" >&5
4552 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4553 echo $ac_n "(cached) $ac_c" 1>&6
4554 else
4555 cat > conftest.$ac_ext <<EOF
4556 #line 4557 "configure"
4557 #include "confdefs.h"
4558 /* System header to define __stub macros and hopefully few prototypes,
4559 which can conflict with char $ac_func(); below. */
4560 #include <assert.h>
4561 /* Override any gcc2 internal prototype to avoid an error. */
4562 /* We use char because int might match the return type of a gcc2
4563 builtin and then its argument prototype would still apply. */
4564 char $ac_func();
4566 int main() {
4568 /* The GNU C library defines this for functions which it implements
4569 to always fail with ENOSYS. Some functions are actually named
4570 something starting with __ and the normal name is an alias. */
4571 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4572 choke me
4573 #else
4574 $ac_func();
4575 #endif
4577 ; return 0; }
4579 if { (eval echo configure:4580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4580 rm -rf conftest*
4581 eval "ac_cv_func_$ac_func=yes"
4582 else
4583 echo "configure: failed program was:" >&5
4584 cat conftest.$ac_ext >&5
4585 rm -rf conftest*
4586 eval "ac_cv_func_$ac_func=no"
4588 rm -f conftest*
4591 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4592 echo "$ac_t""yes" 1>&6
4593 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4594 cat >> confdefs.h <<EOF
4595 #define $ac_tr_func 1
4598 else
4599 echo "$ac_t""no" 1>&6
4601 done
4603 if test x"$ac_cv_func_connect" = x"no"; then
4604 case "$LIBS" in
4605 *-lnsl*) ;;
4606 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
4607 echo "configure:4608: checking for printf in -lnsl_s" >&5
4608 ac_lib_var=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
4609 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4610 echo $ac_n "(cached) $ac_c" 1>&6
4611 else
4612 ac_save_LIBS="$LIBS"
4613 LIBS="-lnsl_s $LIBS"
4614 cat > conftest.$ac_ext <<EOF
4615 #line 4616 "configure"
4616 #include "confdefs.h"
4617 /* Override any gcc2 internal prototype to avoid an error. */
4618 /* We use char because int might match the return type of a gcc2
4619 builtin and then its argument prototype would still apply. */
4620 char printf();
4622 int main() {
4623 printf()
4624 ; return 0; }
4626 if { (eval echo configure:4627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4627 rm -rf conftest*
4628 eval "ac_cv_lib_$ac_lib_var=yes"
4629 else
4630 echo "configure: failed program was:" >&5
4631 cat conftest.$ac_ext >&5
4632 rm -rf conftest*
4633 eval "ac_cv_lib_$ac_lib_var=no"
4635 rm -f conftest*
4636 LIBS="$ac_save_LIBS"
4639 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4640 echo "$ac_t""yes" 1>&6
4641 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4642 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4643 cat >> confdefs.h <<EOF
4644 #define $ac_tr_lib 1
4647 LIBS="-lnsl_s $LIBS"
4649 else
4650 echo "$ac_t""no" 1>&6
4653 esac
4654 case "$LIBS" in
4655 *-lnsl*) ;;
4656 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
4657 echo "configure:4658: checking for printf in -lnsl" >&5
4658 ac_lib_var=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
4659 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4660 echo $ac_n "(cached) $ac_c" 1>&6
4661 else
4662 ac_save_LIBS="$LIBS"
4663 LIBS="-lnsl $LIBS"
4664 cat > conftest.$ac_ext <<EOF
4665 #line 4666 "configure"
4666 #include "confdefs.h"
4667 /* Override any gcc2 internal prototype to avoid an error. */
4668 /* We use char because int might match the return type of a gcc2
4669 builtin and then its argument prototype would still apply. */
4670 char printf();
4672 int main() {
4673 printf()
4674 ; return 0; }
4676 if { (eval echo configure:4677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4677 rm -rf conftest*
4678 eval "ac_cv_lib_$ac_lib_var=yes"
4679 else
4680 echo "configure: failed program was:" >&5
4681 cat conftest.$ac_ext >&5
4682 rm -rf conftest*
4683 eval "ac_cv_lib_$ac_lib_var=no"
4685 rm -f conftest*
4686 LIBS="$ac_save_LIBS"
4689 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4690 echo "$ac_t""yes" 1>&6
4691 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4692 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4693 cat >> confdefs.h <<EOF
4694 #define $ac_tr_lib 1
4697 LIBS="-lnsl $LIBS"
4699 else
4700 echo "$ac_t""no" 1>&6
4703 esac
4704 case "$LIBS" in
4705 *-lsocket*) ;;
4706 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
4707 echo "configure:4708: checking for connect in -lsocket" >&5
4708 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
4709 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4710 echo $ac_n "(cached) $ac_c" 1>&6
4711 else
4712 ac_save_LIBS="$LIBS"
4713 LIBS="-lsocket $LIBS"
4714 cat > conftest.$ac_ext <<EOF
4715 #line 4716 "configure"
4716 #include "confdefs.h"
4717 /* Override any gcc2 internal prototype to avoid an error. */
4718 /* We use char because int might match the return type of a gcc2
4719 builtin and then its argument prototype would still apply. */
4720 char connect();
4722 int main() {
4723 connect()
4724 ; return 0; }
4726 if { (eval echo configure:4727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4727 rm -rf conftest*
4728 eval "ac_cv_lib_$ac_lib_var=yes"
4729 else
4730 echo "configure: failed program was:" >&5
4731 cat conftest.$ac_ext >&5
4732 rm -rf conftest*
4733 eval "ac_cv_lib_$ac_lib_var=no"
4735 rm -f conftest*
4736 LIBS="$ac_save_LIBS"
4739 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4740 echo "$ac_t""yes" 1>&6
4741 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4742 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4743 cat >> confdefs.h <<EOF
4744 #define $ac_tr_lib 1
4747 LIBS="-lsocket $LIBS"
4749 else
4750 echo "$ac_t""no" 1>&6
4753 esac
4754 case "$LIBS" in
4755 *-linet*) ;;
4756 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
4757 echo "configure:4758: checking for connect in -linet" >&5
4758 ac_lib_var=`echo inet'_'connect | sed 'y%./+-%__p_%'`
4759 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4760 echo $ac_n "(cached) $ac_c" 1>&6
4761 else
4762 ac_save_LIBS="$LIBS"
4763 LIBS="-linet $LIBS"
4764 cat > conftest.$ac_ext <<EOF
4765 #line 4766 "configure"
4766 #include "confdefs.h"
4767 /* Override any gcc2 internal prototype to avoid an error. */
4768 /* We use char because int might match the return type of a gcc2
4769 builtin and then its argument prototype would still apply. */
4770 char connect();
4772 int main() {
4773 connect()
4774 ; return 0; }
4776 if { (eval echo configure:4777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4777 rm -rf conftest*
4778 eval "ac_cv_lib_$ac_lib_var=yes"
4779 else
4780 echo "configure: failed program was:" >&5
4781 cat conftest.$ac_ext >&5
4782 rm -rf conftest*
4783 eval "ac_cv_lib_$ac_lib_var=no"
4785 rm -f conftest*
4786 LIBS="$ac_save_LIBS"
4789 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4790 echo "$ac_t""yes" 1>&6
4791 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4792 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4793 cat >> confdefs.h <<EOF
4794 #define $ac_tr_lib 1
4797 LIBS="-linet $LIBS"
4799 else
4800 echo "$ac_t""no" 1>&6
4803 esac
4804 if test x"$ac_cv_lib_socket_connect" = x"yes" ||
4805 test x"$ac_cv_lib_inet_connect" = x"yes"; then
4806 # ac_cv_func_connect=yes
4807 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
4808 cat >> confdefs.h <<\EOF
4809 #define HAVE_CONNECT 1
4815 ###############################################
4816 # test for where we get get_yp_default_domain() from
4817 for ac_func in yp_get_default_domain
4819 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4820 echo "configure:4821: checking for $ac_func" >&5
4821 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4822 echo $ac_n "(cached) $ac_c" 1>&6
4823 else
4824 cat > conftest.$ac_ext <<EOF
4825 #line 4826 "configure"
4826 #include "confdefs.h"
4827 /* System header to define __stub macros and hopefully few prototypes,
4828 which can conflict with char $ac_func(); below. */
4829 #include <assert.h>
4830 /* Override any gcc2 internal prototype to avoid an error. */
4831 /* We use char because int might match the return type of a gcc2
4832 builtin and then its argument prototype would still apply. */
4833 char $ac_func();
4835 int main() {
4837 /* The GNU C library defines this for functions which it implements
4838 to always fail with ENOSYS. Some functions are actually named
4839 something starting with __ and the normal name is an alias. */
4840 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4841 choke me
4842 #else
4843 $ac_func();
4844 #endif
4846 ; return 0; }
4848 if { (eval echo configure:4849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4849 rm -rf conftest*
4850 eval "ac_cv_func_$ac_func=yes"
4851 else
4852 echo "configure: failed program was:" >&5
4853 cat conftest.$ac_ext >&5
4854 rm -rf conftest*
4855 eval "ac_cv_func_$ac_func=no"
4857 rm -f conftest*
4860 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4861 echo "$ac_t""yes" 1>&6
4862 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4863 cat >> confdefs.h <<EOF
4864 #define $ac_tr_func 1
4867 else
4868 echo "$ac_t""no" 1>&6
4870 done
4872 if test x"$ac_cv_func_yp_get_default_domain" = x"no"; then
4873 echo $ac_n "checking for yp_get_default_domain in -lnsl""... $ac_c" 1>&6
4874 echo "configure:4875: checking for yp_get_default_domain in -lnsl" >&5
4875 ac_lib_var=`echo nsl'_'yp_get_default_domain | sed 'y%./+-%__p_%'`
4876 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4877 echo $ac_n "(cached) $ac_c" 1>&6
4878 else
4879 ac_save_LIBS="$LIBS"
4880 LIBS="-lnsl $LIBS"
4881 cat > conftest.$ac_ext <<EOF
4882 #line 4883 "configure"
4883 #include "confdefs.h"
4884 /* Override any gcc2 internal prototype to avoid an error. */
4885 /* We use char because int might match the return type of a gcc2
4886 builtin and then its argument prototype would still apply. */
4887 char yp_get_default_domain();
4889 int main() {
4890 yp_get_default_domain()
4891 ; return 0; }
4893 if { (eval echo configure:4894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4894 rm -rf conftest*
4895 eval "ac_cv_lib_$ac_lib_var=yes"
4896 else
4897 echo "configure: failed program was:" >&5
4898 cat conftest.$ac_ext >&5
4899 rm -rf conftest*
4900 eval "ac_cv_lib_$ac_lib_var=no"
4902 rm -f conftest*
4903 LIBS="$ac_save_LIBS"
4906 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4907 echo "$ac_t""yes" 1>&6
4908 LIBS="$LIBS -lnsl";
4909 cat >> confdefs.h <<\EOF
4910 #define HAVE_YP_GET_DEFAULT_DOMAIN 1
4913 else
4914 echo "$ac_t""no" 1>&6
4919 # Check if we have execl, if not we need to compile smbrun.
4920 for ac_func in execl
4922 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4923 echo "configure:4924: checking for $ac_func" >&5
4924 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4925 echo $ac_n "(cached) $ac_c" 1>&6
4926 else
4927 cat > conftest.$ac_ext <<EOF
4928 #line 4929 "configure"
4929 #include "confdefs.h"
4930 /* System header to define __stub macros and hopefully few prototypes,
4931 which can conflict with char $ac_func(); below. */
4932 #include <assert.h>
4933 /* Override any gcc2 internal prototype to avoid an error. */
4934 /* We use char because int might match the return type of a gcc2
4935 builtin and then its argument prototype would still apply. */
4936 char $ac_func();
4938 int main() {
4940 /* The GNU C library defines this for functions which it implements
4941 to always fail with ENOSYS. Some functions are actually named
4942 something starting with __ and the normal name is an alias. */
4943 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4944 choke me
4945 #else
4946 $ac_func();
4947 #endif
4949 ; return 0; }
4951 if { (eval echo configure:4952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4952 rm -rf conftest*
4953 eval "ac_cv_func_$ac_func=yes"
4954 else
4955 echo "configure: failed program was:" >&5
4956 cat conftest.$ac_ext >&5
4957 rm -rf conftest*
4958 eval "ac_cv_func_$ac_func=no"
4960 rm -f conftest*
4963 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4964 echo "$ac_t""yes" 1>&6
4965 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4966 cat >> confdefs.h <<EOF
4967 #define $ac_tr_func 1
4970 else
4971 echo "$ac_t""no" 1>&6
4973 done
4975 if test x"$ac_cv_func_execl" = x"no"; then
4976 RUNPROG="bin/smbrun"
4977 else
4978 RUNPROG=""
4981 for ac_func in waitpid getcwd strdup strtoul strerror chown fchown chmod fchmod chroot
4983 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4984 echo "configure:4985: checking for $ac_func" >&5
4985 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4986 echo $ac_n "(cached) $ac_c" 1>&6
4987 else
4988 cat > conftest.$ac_ext <<EOF
4989 #line 4990 "configure"
4990 #include "confdefs.h"
4991 /* System header to define __stub macros and hopefully few prototypes,
4992 which can conflict with char $ac_func(); below. */
4993 #include <assert.h>
4994 /* Override any gcc2 internal prototype to avoid an error. */
4995 /* We use char because int might match the return type of a gcc2
4996 builtin and then its argument prototype would still apply. */
4997 char $ac_func();
4999 int main() {
5001 /* The GNU C library defines this for functions which it implements
5002 to always fail with ENOSYS. Some functions are actually named
5003 something starting with __ and the normal name is an alias. */
5004 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5005 choke me
5006 #else
5007 $ac_func();
5008 #endif
5010 ; return 0; }
5012 if { (eval echo configure:5013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5013 rm -rf conftest*
5014 eval "ac_cv_func_$ac_func=yes"
5015 else
5016 echo "configure: failed program was:" >&5
5017 cat conftest.$ac_ext >&5
5018 rm -rf conftest*
5019 eval "ac_cv_func_$ac_func=no"
5021 rm -f conftest*
5024 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5025 echo "$ac_t""yes" 1>&6
5026 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5027 cat >> confdefs.h <<EOF
5028 #define $ac_tr_func 1
5031 else
5032 echo "$ac_t""no" 1>&6
5034 done
5036 for ac_func in fstat strchr utime utimes getrlimit fsync bzero memset
5038 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5039 echo "configure:5040: checking for $ac_func" >&5
5040 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5041 echo $ac_n "(cached) $ac_c" 1>&6
5042 else
5043 cat > conftest.$ac_ext <<EOF
5044 #line 5045 "configure"
5045 #include "confdefs.h"
5046 /* System header to define __stub macros and hopefully few prototypes,
5047 which can conflict with char $ac_func(); below. */
5048 #include <assert.h>
5049 /* Override any gcc2 internal prototype to avoid an error. */
5050 /* We use char because int might match the return type of a gcc2
5051 builtin and then its argument prototype would still apply. */
5052 char $ac_func();
5054 int main() {
5056 /* The GNU C library defines this for functions which it implements
5057 to always fail with ENOSYS. Some functions are actually named
5058 something starting with __ and the normal name is an alias. */
5059 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5060 choke me
5061 #else
5062 $ac_func();
5063 #endif
5065 ; return 0; }
5067 if { (eval echo configure:5068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5068 rm -rf conftest*
5069 eval "ac_cv_func_$ac_func=yes"
5070 else
5071 echo "configure: failed program was:" >&5
5072 cat conftest.$ac_ext >&5
5073 rm -rf conftest*
5074 eval "ac_cv_func_$ac_func=no"
5076 rm -f conftest*
5079 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5080 echo "$ac_t""yes" 1>&6
5081 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5082 cat >> confdefs.h <<EOF
5083 #define $ac_tr_func 1
5086 else
5087 echo "$ac_t""no" 1>&6
5089 done
5091 for ac_func in memmove vsnprintf snprintf asprintf vasprintf setsid glob strpbrk pipe crypt16 getauthuid
5093 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5094 echo "configure:5095: checking for $ac_func" >&5
5095 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5096 echo $ac_n "(cached) $ac_c" 1>&6
5097 else
5098 cat > conftest.$ac_ext <<EOF
5099 #line 5100 "configure"
5100 #include "confdefs.h"
5101 /* System header to define __stub macros and hopefully few prototypes,
5102 which can conflict with char $ac_func(); below. */
5103 #include <assert.h>
5104 /* Override any gcc2 internal prototype to avoid an error. */
5105 /* We use char because int might match the return type of a gcc2
5106 builtin and then its argument prototype would still apply. */
5107 char $ac_func();
5109 int main() {
5111 /* The GNU C library defines this for functions which it implements
5112 to always fail with ENOSYS. Some functions are actually named
5113 something starting with __ and the normal name is an alias. */
5114 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5115 choke me
5116 #else
5117 $ac_func();
5118 #endif
5120 ; return 0; }
5122 if { (eval echo configure:5123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5123 rm -rf conftest*
5124 eval "ac_cv_func_$ac_func=yes"
5125 else
5126 echo "configure: failed program was:" >&5
5127 cat conftest.$ac_ext >&5
5128 rm -rf conftest*
5129 eval "ac_cv_func_$ac_func=no"
5131 rm -f conftest*
5134 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5135 echo "$ac_t""yes" 1>&6
5136 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5137 cat >> confdefs.h <<EOF
5138 #define $ac_tr_func 1
5141 else
5142 echo "$ac_t""no" 1>&6
5144 done
5146 for ac_func in strftime sigprocmask sigblock sigaction innetgr setnetgrent getnetgrent endnetgrent
5148 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5149 echo "configure:5150: checking for $ac_func" >&5
5150 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5151 echo $ac_n "(cached) $ac_c" 1>&6
5152 else
5153 cat > conftest.$ac_ext <<EOF
5154 #line 5155 "configure"
5155 #include "confdefs.h"
5156 /* System header to define __stub macros and hopefully few prototypes,
5157 which can conflict with char $ac_func(); below. */
5158 #include <assert.h>
5159 /* Override any gcc2 internal prototype to avoid an error. */
5160 /* We use char because int might match the return type of a gcc2
5161 builtin and then its argument prototype would still apply. */
5162 char $ac_func();
5164 int main() {
5166 /* The GNU C library defines this for functions which it implements
5167 to always fail with ENOSYS. Some functions are actually named
5168 something starting with __ and the normal name is an alias. */
5169 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5170 choke me
5171 #else
5172 $ac_func();
5173 #endif
5175 ; return 0; }
5177 if { (eval echo configure:5178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5178 rm -rf conftest*
5179 eval "ac_cv_func_$ac_func=yes"
5180 else
5181 echo "configure: failed program was:" >&5
5182 cat conftest.$ac_ext >&5
5183 rm -rf conftest*
5184 eval "ac_cv_func_$ac_func=no"
5186 rm -f conftest*
5189 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5190 echo "$ac_t""yes" 1>&6
5191 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5192 cat >> confdefs.h <<EOF
5193 #define $ac_tr_func 1
5196 else
5197 echo "$ac_t""no" 1>&6
5199 done
5201 for ac_func in initgroups select poll rdchk getgrnam getgrent pathconf
5203 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5204 echo "configure:5205: checking for $ac_func" >&5
5205 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5206 echo $ac_n "(cached) $ac_c" 1>&6
5207 else
5208 cat > conftest.$ac_ext <<EOF
5209 #line 5210 "configure"
5210 #include "confdefs.h"
5211 /* System header to define __stub macros and hopefully few prototypes,
5212 which can conflict with char $ac_func(); below. */
5213 #include <assert.h>
5214 /* Override any gcc2 internal prototype to avoid an error. */
5215 /* We use char because int might match the return type of a gcc2
5216 builtin and then its argument prototype would still apply. */
5217 char $ac_func();
5219 int main() {
5221 /* The GNU C library defines this for functions which it implements
5222 to always fail with ENOSYS. Some functions are actually named
5223 something starting with __ and the normal name is an alias. */
5224 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5225 choke me
5226 #else
5227 $ac_func();
5228 #endif
5230 ; return 0; }
5232 if { (eval echo configure:5233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5233 rm -rf conftest*
5234 eval "ac_cv_func_$ac_func=yes"
5235 else
5236 echo "configure: failed program was:" >&5
5237 cat conftest.$ac_ext >&5
5238 rm -rf conftest*
5239 eval "ac_cv_func_$ac_func=no"
5241 rm -f conftest*
5244 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5245 echo "$ac_t""yes" 1>&6
5246 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5247 cat >> confdefs.h <<EOF
5248 #define $ac_tr_func 1
5251 else
5252 echo "$ac_t""no" 1>&6
5254 done
5256 for ac_func in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
5258 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5259 echo "configure:5260: checking for $ac_func" >&5
5260 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5261 echo $ac_n "(cached) $ac_c" 1>&6
5262 else
5263 cat > conftest.$ac_ext <<EOF
5264 #line 5265 "configure"
5265 #include "confdefs.h"
5266 /* System header to define __stub macros and hopefully few prototypes,
5267 which can conflict with char $ac_func(); below. */
5268 #include <assert.h>
5269 /* Override any gcc2 internal prototype to avoid an error. */
5270 /* We use char because int might match the return type of a gcc2
5271 builtin and then its argument prototype would still apply. */
5272 char $ac_func();
5274 int main() {
5276 /* The GNU C library defines this for functions which it implements
5277 to always fail with ENOSYS. Some functions are actually named
5278 something starting with __ and the normal name is an alias. */
5279 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5280 choke me
5281 #else
5282 $ac_func();
5283 #endif
5285 ; return 0; }
5287 if { (eval echo configure:5288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5288 rm -rf conftest*
5289 eval "ac_cv_func_$ac_func=yes"
5290 else
5291 echo "configure: failed program was:" >&5
5292 cat conftest.$ac_ext >&5
5293 rm -rf conftest*
5294 eval "ac_cv_func_$ac_func=no"
5296 rm -f conftest*
5299 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5300 echo "$ac_t""yes" 1>&6
5301 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5302 cat >> confdefs.h <<EOF
5303 #define $ac_tr_func 1
5306 else
5307 echo "$ac_t""no" 1>&6
5309 done
5311 for ac_func in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
5313 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5314 echo "configure:5315: checking for $ac_func" >&5
5315 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5316 echo $ac_n "(cached) $ac_c" 1>&6
5317 else
5318 cat > conftest.$ac_ext <<EOF
5319 #line 5320 "configure"
5320 #include "confdefs.h"
5321 /* System header to define __stub macros and hopefully few prototypes,
5322 which can conflict with char $ac_func(); below. */
5323 #include <assert.h>
5324 /* Override any gcc2 internal prototype to avoid an error. */
5325 /* We use char because int might match the return type of a gcc2
5326 builtin and then its argument prototype would still apply. */
5327 char $ac_func();
5329 int main() {
5331 /* The GNU C library defines this for functions which it implements
5332 to always fail with ENOSYS. Some functions are actually named
5333 something starting with __ and the normal name is an alias. */
5334 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5335 choke me
5336 #else
5337 $ac_func();
5338 #endif
5340 ; return 0; }
5342 if { (eval echo configure:5343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5343 rm -rf conftest*
5344 eval "ac_cv_func_$ac_func=yes"
5345 else
5346 echo "configure: failed program was:" >&5
5347 cat conftest.$ac_ext >&5
5348 rm -rf conftest*
5349 eval "ac_cv_func_$ac_func=no"
5351 rm -f conftest*
5354 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5355 echo "$ac_t""yes" 1>&6
5356 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5357 cat >> confdefs.h <<EOF
5358 #define $ac_tr_func 1
5361 else
5362 echo "$ac_t""no" 1>&6
5364 done
5366 for ac_func in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam setlinebuf
5368 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5369 echo "configure:5370: checking for $ac_func" >&5
5370 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5371 echo $ac_n "(cached) $ac_c" 1>&6
5372 else
5373 cat > conftest.$ac_ext <<EOF
5374 #line 5375 "configure"
5375 #include "confdefs.h"
5376 /* System header to define __stub macros and hopefully few prototypes,
5377 which can conflict with char $ac_func(); below. */
5378 #include <assert.h>
5379 /* Override any gcc2 internal prototype to avoid an error. */
5380 /* We use char because int might match the return type of a gcc2
5381 builtin and then its argument prototype would still apply. */
5382 char $ac_func();
5384 int main() {
5386 /* The GNU C library defines this for functions which it implements
5387 to always fail with ENOSYS. Some functions are actually named
5388 something starting with __ and the normal name is an alias. */
5389 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5390 choke me
5391 #else
5392 $ac_func();
5393 #endif
5395 ; return 0; }
5397 if { (eval echo configure:5398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5398 rm -rf conftest*
5399 eval "ac_cv_func_$ac_func=yes"
5400 else
5401 echo "configure: failed program was:" >&5
5402 cat conftest.$ac_ext >&5
5403 rm -rf conftest*
5404 eval "ac_cv_func_$ac_func=no"
5406 rm -f conftest*
5409 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5410 echo "$ac_t""yes" 1>&6
5411 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5412 cat >> confdefs.h <<EOF
5413 #define $ac_tr_func 1
5416 else
5417 echo "$ac_t""no" 1>&6
5419 done
5421 for ac_func in srandom random srand rand setenv usleep strcasecmp fcvt fcvtl symlink readlink
5423 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5424 echo "configure:5425: checking for $ac_func" >&5
5425 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5426 echo $ac_n "(cached) $ac_c" 1>&6
5427 else
5428 cat > conftest.$ac_ext <<EOF
5429 #line 5430 "configure"
5430 #include "confdefs.h"
5431 /* System header to define __stub macros and hopefully few prototypes,
5432 which can conflict with char $ac_func(); below. */
5433 #include <assert.h>
5434 /* Override any gcc2 internal prototype to avoid an error. */
5435 /* We use char because int might match the return type of a gcc2
5436 builtin and then its argument prototype would still apply. */
5437 char $ac_func();
5439 int main() {
5441 /* The GNU C library defines this for functions which it implements
5442 to always fail with ENOSYS. Some functions are actually named
5443 something starting with __ and the normal name is an alias. */
5444 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5445 choke me
5446 #else
5447 $ac_func();
5448 #endif
5450 ; return 0; }
5452 if { (eval echo configure:5453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5453 rm -rf conftest*
5454 eval "ac_cv_func_$ac_func=yes"
5455 else
5456 echo "configure: failed program was:" >&5
5457 cat conftest.$ac_ext >&5
5458 rm -rf conftest*
5459 eval "ac_cv_func_$ac_func=no"
5461 rm -f conftest*
5464 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5465 echo "$ac_t""yes" 1>&6
5466 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5467 cat >> confdefs.h <<EOF
5468 #define $ac_tr_func 1
5471 else
5472 echo "$ac_t""no" 1>&6
5474 done
5477 # syscall() is needed for smbwrapper.
5478 for ac_func in syscall
5480 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5481 echo "configure:5482: checking for $ac_func" >&5
5482 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5483 echo $ac_n "(cached) $ac_c" 1>&6
5484 else
5485 cat > conftest.$ac_ext <<EOF
5486 #line 5487 "configure"
5487 #include "confdefs.h"
5488 /* System header to define __stub macros and hopefully few prototypes,
5489 which can conflict with char $ac_func(); below. */
5490 #include <assert.h>
5491 /* Override any gcc2 internal prototype to avoid an error. */
5492 /* We use char because int might match the return type of a gcc2
5493 builtin and then its argument prototype would still apply. */
5494 char $ac_func();
5496 int main() {
5498 /* The GNU C library defines this for functions which it implements
5499 to always fail with ENOSYS. Some functions are actually named
5500 something starting with __ and the normal name is an alias. */
5501 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5502 choke me
5503 #else
5504 $ac_func();
5505 #endif
5507 ; return 0; }
5509 if { (eval echo configure:5510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5510 rm -rf conftest*
5511 eval "ac_cv_func_$ac_func=yes"
5512 else
5513 echo "configure: failed program was:" >&5
5514 cat conftest.$ac_ext >&5
5515 rm -rf conftest*
5516 eval "ac_cv_func_$ac_func=no"
5518 rm -f conftest*
5521 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5522 echo "$ac_t""yes" 1>&6
5523 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5524 cat >> confdefs.h <<EOF
5525 #define $ac_tr_func 1
5528 else
5529 echo "$ac_t""no" 1>&6
5531 done
5534 for ac_func in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
5536 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5537 echo "configure:5538: checking for $ac_func" >&5
5538 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5539 echo $ac_n "(cached) $ac_c" 1>&6
5540 else
5541 cat > conftest.$ac_ext <<EOF
5542 #line 5543 "configure"
5543 #include "confdefs.h"
5544 /* System header to define __stub macros and hopefully few prototypes,
5545 which can conflict with char $ac_func(); below. */
5546 #include <assert.h>
5547 /* Override any gcc2 internal prototype to avoid an error. */
5548 /* We use char because int might match the return type of a gcc2
5549 builtin and then its argument prototype would still apply. */
5550 char $ac_func();
5552 int main() {
5554 /* The GNU C library defines this for functions which it implements
5555 to always fail with ENOSYS. Some functions are actually named
5556 something starting with __ and the normal name is an alias. */
5557 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5558 choke me
5559 #else
5560 $ac_func();
5561 #endif
5563 ; return 0; }
5565 if { (eval echo configure:5566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5566 rm -rf conftest*
5567 eval "ac_cv_func_$ac_func=yes"
5568 else
5569 echo "configure: failed program was:" >&5
5570 cat conftest.$ac_ext >&5
5571 rm -rf conftest*
5572 eval "ac_cv_func_$ac_func=no"
5574 rm -f conftest*
5577 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5578 echo "$ac_t""yes" 1>&6
5579 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5580 cat >> confdefs.h <<EOF
5581 #define $ac_tr_func 1
5584 else
5585 echo "$ac_t""no" 1>&6
5587 done
5589 for ac_func in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
5591 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5592 echo "configure:5593: checking for $ac_func" >&5
5593 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5594 echo $ac_n "(cached) $ac_c" 1>&6
5595 else
5596 cat > conftest.$ac_ext <<EOF
5597 #line 5598 "configure"
5598 #include "confdefs.h"
5599 /* System header to define __stub macros and hopefully few prototypes,
5600 which can conflict with char $ac_func(); below. */
5601 #include <assert.h>
5602 /* Override any gcc2 internal prototype to avoid an error. */
5603 /* We use char because int might match the return type of a gcc2
5604 builtin and then its argument prototype would still apply. */
5605 char $ac_func();
5607 int main() {
5609 /* The GNU C library defines this for functions which it implements
5610 to always fail with ENOSYS. Some functions are actually named
5611 something starting with __ and the normal name is an alias. */
5612 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5613 choke me
5614 #else
5615 $ac_func();
5616 #endif
5618 ; return 0; }
5620 if { (eval echo configure:5621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5621 rm -rf conftest*
5622 eval "ac_cv_func_$ac_func=yes"
5623 else
5624 echo "configure: failed program was:" >&5
5625 cat conftest.$ac_ext >&5
5626 rm -rf conftest*
5627 eval "ac_cv_func_$ac_func=no"
5629 rm -f conftest*
5632 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5633 echo "$ac_t""yes" 1>&6
5634 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5635 cat >> confdefs.h <<EOF
5636 #define $ac_tr_func 1
5639 else
5640 echo "$ac_t""no" 1>&6
5642 done
5644 for ac_func in __getcwd _getcwd
5646 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5647 echo "configure:5648: checking for $ac_func" >&5
5648 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5649 echo $ac_n "(cached) $ac_c" 1>&6
5650 else
5651 cat > conftest.$ac_ext <<EOF
5652 #line 5653 "configure"
5653 #include "confdefs.h"
5654 /* System header to define __stub macros and hopefully few prototypes,
5655 which can conflict with char $ac_func(); below. */
5656 #include <assert.h>
5657 /* Override any gcc2 internal prototype to avoid an error. */
5658 /* We use char because int might match the return type of a gcc2
5659 builtin and then its argument prototype would still apply. */
5660 char $ac_func();
5662 int main() {
5664 /* The GNU C library defines this for functions which it implements
5665 to always fail with ENOSYS. Some functions are actually named
5666 something starting with __ and the normal name is an alias. */
5667 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5668 choke me
5669 #else
5670 $ac_func();
5671 #endif
5673 ; return 0; }
5675 if { (eval echo configure:5676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5676 rm -rf conftest*
5677 eval "ac_cv_func_$ac_func=yes"
5678 else
5679 echo "configure: failed program was:" >&5
5680 cat conftest.$ac_ext >&5
5681 rm -rf conftest*
5682 eval "ac_cv_func_$ac_func=no"
5684 rm -f conftest*
5687 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5688 echo "$ac_t""yes" 1>&6
5689 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5690 cat >> confdefs.h <<EOF
5691 #define $ac_tr_func 1
5694 else
5695 echo "$ac_t""no" 1>&6
5697 done
5699 for ac_func in __xstat __fxstat __lxstat
5701 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5702 echo "configure:5703: checking for $ac_func" >&5
5703 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5704 echo $ac_n "(cached) $ac_c" 1>&6
5705 else
5706 cat > conftest.$ac_ext <<EOF
5707 #line 5708 "configure"
5708 #include "confdefs.h"
5709 /* System header to define __stub macros and hopefully few prototypes,
5710 which can conflict with char $ac_func(); below. */
5711 #include <assert.h>
5712 /* Override any gcc2 internal prototype to avoid an error. */
5713 /* We use char because int might match the return type of a gcc2
5714 builtin and then its argument prototype would still apply. */
5715 char $ac_func();
5717 int main() {
5719 /* The GNU C library defines this for functions which it implements
5720 to always fail with ENOSYS. Some functions are actually named
5721 something starting with __ and the normal name is an alias. */
5722 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5723 choke me
5724 #else
5725 $ac_func();
5726 #endif
5728 ; return 0; }
5730 if { (eval echo configure:5731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5731 rm -rf conftest*
5732 eval "ac_cv_func_$ac_func=yes"
5733 else
5734 echo "configure: failed program was:" >&5
5735 cat conftest.$ac_ext >&5
5736 rm -rf conftest*
5737 eval "ac_cv_func_$ac_func=no"
5739 rm -f conftest*
5742 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5743 echo "$ac_t""yes" 1>&6
5744 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5745 cat >> confdefs.h <<EOF
5746 #define $ac_tr_func 1
5749 else
5750 echo "$ac_t""no" 1>&6
5752 done
5754 for ac_func in _stat _lstat _fstat __stat __lstat __fstat
5756 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5757 echo "configure:5758: checking for $ac_func" >&5
5758 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5759 echo $ac_n "(cached) $ac_c" 1>&6
5760 else
5761 cat > conftest.$ac_ext <<EOF
5762 #line 5763 "configure"
5763 #include "confdefs.h"
5764 /* System header to define __stub macros and hopefully few prototypes,
5765 which can conflict with char $ac_func(); below. */
5766 #include <assert.h>
5767 /* Override any gcc2 internal prototype to avoid an error. */
5768 /* We use char because int might match the return type of a gcc2
5769 builtin and then its argument prototype would still apply. */
5770 char $ac_func();
5772 int main() {
5774 /* The GNU C library defines this for functions which it implements
5775 to always fail with ENOSYS. Some functions are actually named
5776 something starting with __ and the normal name is an alias. */
5777 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5778 choke me
5779 #else
5780 $ac_func();
5781 #endif
5783 ; return 0; }
5785 if { (eval echo configure:5786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5786 rm -rf conftest*
5787 eval "ac_cv_func_$ac_func=yes"
5788 else
5789 echo "configure: failed program was:" >&5
5790 cat conftest.$ac_ext >&5
5791 rm -rf conftest*
5792 eval "ac_cv_func_$ac_func=no"
5794 rm -f conftest*
5797 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5798 echo "$ac_t""yes" 1>&6
5799 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5800 cat >> confdefs.h <<EOF
5801 #define $ac_tr_func 1
5804 else
5805 echo "$ac_t""no" 1>&6
5807 done
5809 for ac_func in _acl __acl _facl __facl _open __open _chdir __chdir
5811 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5812 echo "configure:5813: checking for $ac_func" >&5
5813 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5814 echo $ac_n "(cached) $ac_c" 1>&6
5815 else
5816 cat > conftest.$ac_ext <<EOF
5817 #line 5818 "configure"
5818 #include "confdefs.h"
5819 /* System header to define __stub macros and hopefully few prototypes,
5820 which can conflict with char $ac_func(); below. */
5821 #include <assert.h>
5822 /* Override any gcc2 internal prototype to avoid an error. */
5823 /* We use char because int might match the return type of a gcc2
5824 builtin and then its argument prototype would still apply. */
5825 char $ac_func();
5827 int main() {
5829 /* The GNU C library defines this for functions which it implements
5830 to always fail with ENOSYS. Some functions are actually named
5831 something starting with __ and the normal name is an alias. */
5832 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5833 choke me
5834 #else
5835 $ac_func();
5836 #endif
5838 ; return 0; }
5840 if { (eval echo configure:5841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5841 rm -rf conftest*
5842 eval "ac_cv_func_$ac_func=yes"
5843 else
5844 echo "configure: failed program was:" >&5
5845 cat conftest.$ac_ext >&5
5846 rm -rf conftest*
5847 eval "ac_cv_func_$ac_func=no"
5849 rm -f conftest*
5852 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5853 echo "$ac_t""yes" 1>&6
5854 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5855 cat >> confdefs.h <<EOF
5856 #define $ac_tr_func 1
5859 else
5860 echo "$ac_t""no" 1>&6
5862 done
5864 for ac_func in _close __close _fchdir __fchdir _fcntl __fcntl
5866 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5867 echo "configure:5868: checking for $ac_func" >&5
5868 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5869 echo $ac_n "(cached) $ac_c" 1>&6
5870 else
5871 cat > conftest.$ac_ext <<EOF
5872 #line 5873 "configure"
5873 #include "confdefs.h"
5874 /* System header to define __stub macros and hopefully few prototypes,
5875 which can conflict with char $ac_func(); below. */
5876 #include <assert.h>
5877 /* Override any gcc2 internal prototype to avoid an error. */
5878 /* We use char because int might match the return type of a gcc2
5879 builtin and then its argument prototype would still apply. */
5880 char $ac_func();
5882 int main() {
5884 /* The GNU C library defines this for functions which it implements
5885 to always fail with ENOSYS. Some functions are actually named
5886 something starting with __ and the normal name is an alias. */
5887 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5888 choke me
5889 #else
5890 $ac_func();
5891 #endif
5893 ; return 0; }
5895 if { (eval echo configure:5896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5896 rm -rf conftest*
5897 eval "ac_cv_func_$ac_func=yes"
5898 else
5899 echo "configure: failed program was:" >&5
5900 cat conftest.$ac_ext >&5
5901 rm -rf conftest*
5902 eval "ac_cv_func_$ac_func=no"
5904 rm -f conftest*
5907 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5908 echo "$ac_t""yes" 1>&6
5909 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5910 cat >> confdefs.h <<EOF
5911 #define $ac_tr_func 1
5914 else
5915 echo "$ac_t""no" 1>&6
5917 done
5919 for ac_func in getdents _getdents __getdents _lseek __lseek _read __read
5921 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5922 echo "configure:5923: checking for $ac_func" >&5
5923 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5924 echo $ac_n "(cached) $ac_c" 1>&6
5925 else
5926 cat > conftest.$ac_ext <<EOF
5927 #line 5928 "configure"
5928 #include "confdefs.h"
5929 /* System header to define __stub macros and hopefully few prototypes,
5930 which can conflict with char $ac_func(); below. */
5931 #include <assert.h>
5932 /* Override any gcc2 internal prototype to avoid an error. */
5933 /* We use char because int might match the return type of a gcc2
5934 builtin and then its argument prototype would still apply. */
5935 char $ac_func();
5937 int main() {
5939 /* The GNU C library defines this for functions which it implements
5940 to always fail with ENOSYS. Some functions are actually named
5941 something starting with __ and the normal name is an alias. */
5942 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5943 choke me
5944 #else
5945 $ac_func();
5946 #endif
5948 ; return 0; }
5950 if { (eval echo configure:5951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5951 rm -rf conftest*
5952 eval "ac_cv_func_$ac_func=yes"
5953 else
5954 echo "configure: failed program was:" >&5
5955 cat conftest.$ac_ext >&5
5956 rm -rf conftest*
5957 eval "ac_cv_func_$ac_func=no"
5959 rm -f conftest*
5962 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5963 echo "$ac_t""yes" 1>&6
5964 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5965 cat >> confdefs.h <<EOF
5966 #define $ac_tr_func 1
5969 else
5970 echo "$ac_t""no" 1>&6
5972 done
5974 for ac_func in _write __write _fork __fork
5976 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5977 echo "configure:5978: checking for $ac_func" >&5
5978 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5979 echo $ac_n "(cached) $ac_c" 1>&6
5980 else
5981 cat > conftest.$ac_ext <<EOF
5982 #line 5983 "configure"
5983 #include "confdefs.h"
5984 /* System header to define __stub macros and hopefully few prototypes,
5985 which can conflict with char $ac_func(); below. */
5986 #include <assert.h>
5987 /* Override any gcc2 internal prototype to avoid an error. */
5988 /* We use char because int might match the return type of a gcc2
5989 builtin and then its argument prototype would still apply. */
5990 char $ac_func();
5992 int main() {
5994 /* The GNU C library defines this for functions which it implements
5995 to always fail with ENOSYS. Some functions are actually named
5996 something starting with __ and the normal name is an alias. */
5997 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5998 choke me
5999 #else
6000 $ac_func();
6001 #endif
6003 ; return 0; }
6005 if { (eval echo configure:6006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6006 rm -rf conftest*
6007 eval "ac_cv_func_$ac_func=yes"
6008 else
6009 echo "configure: failed program was:" >&5
6010 cat conftest.$ac_ext >&5
6011 rm -rf conftest*
6012 eval "ac_cv_func_$ac_func=no"
6014 rm -f conftest*
6017 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6018 echo "$ac_t""yes" 1>&6
6019 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6020 cat >> confdefs.h <<EOF
6021 #define $ac_tr_func 1
6024 else
6025 echo "$ac_t""no" 1>&6
6027 done
6029 for ac_func in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
6031 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6032 echo "configure:6033: checking for $ac_func" >&5
6033 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6034 echo $ac_n "(cached) $ac_c" 1>&6
6035 else
6036 cat > conftest.$ac_ext <<EOF
6037 #line 6038 "configure"
6038 #include "confdefs.h"
6039 /* System header to define __stub macros and hopefully few prototypes,
6040 which can conflict with char $ac_func(); below. */
6041 #include <assert.h>
6042 /* Override any gcc2 internal prototype to avoid an error. */
6043 /* We use char because int might match the return type of a gcc2
6044 builtin and then its argument prototype would still apply. */
6045 char $ac_func();
6047 int main() {
6049 /* The GNU C library defines this for functions which it implements
6050 to always fail with ENOSYS. Some functions are actually named
6051 something starting with __ and the normal name is an alias. */
6052 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6053 choke me
6054 #else
6055 $ac_func();
6056 #endif
6058 ; return 0; }
6060 if { (eval echo configure:6061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6061 rm -rf conftest*
6062 eval "ac_cv_func_$ac_func=yes"
6063 else
6064 echo "configure: failed program was:" >&5
6065 cat conftest.$ac_ext >&5
6066 rm -rf conftest*
6067 eval "ac_cv_func_$ac_func=no"
6069 rm -f conftest*
6072 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6073 echo "$ac_t""yes" 1>&6
6074 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6075 cat >> confdefs.h <<EOF
6076 #define $ac_tr_func 1
6079 else
6080 echo "$ac_t""no" 1>&6
6082 done
6084 for ac_func in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
6086 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6087 echo "configure:6088: checking for $ac_func" >&5
6088 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6089 echo $ac_n "(cached) $ac_c" 1>&6
6090 else
6091 cat > conftest.$ac_ext <<EOF
6092 #line 6093 "configure"
6093 #include "confdefs.h"
6094 /* System header to define __stub macros and hopefully few prototypes,
6095 which can conflict with char $ac_func(); below. */
6096 #include <assert.h>
6097 /* Override any gcc2 internal prototype to avoid an error. */
6098 /* We use char because int might match the return type of a gcc2
6099 builtin and then its argument prototype would still apply. */
6100 char $ac_func();
6102 int main() {
6104 /* The GNU C library defines this for functions which it implements
6105 to always fail with ENOSYS. Some functions are actually named
6106 something starting with __ and the normal name is an alias. */
6107 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6108 choke me
6109 #else
6110 $ac_func();
6111 #endif
6113 ; return 0; }
6115 if { (eval echo configure:6116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6116 rm -rf conftest*
6117 eval "ac_cv_func_$ac_func=yes"
6118 else
6119 echo "configure: failed program was:" >&5
6120 cat conftest.$ac_ext >&5
6121 rm -rf conftest*
6122 eval "ac_cv_func_$ac_func=no"
6124 rm -f conftest*
6127 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6128 echo "$ac_t""yes" 1>&6
6129 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6130 cat >> confdefs.h <<EOF
6131 #define $ac_tr_func 1
6134 else
6135 echo "$ac_t""no" 1>&6
6137 done
6139 for ac_func in pread _pread __pread pread64 _pread64 __pread64
6141 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6142 echo "configure:6143: checking for $ac_func" >&5
6143 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6144 echo $ac_n "(cached) $ac_c" 1>&6
6145 else
6146 cat > conftest.$ac_ext <<EOF
6147 #line 6148 "configure"
6148 #include "confdefs.h"
6149 /* System header to define __stub macros and hopefully few prototypes,
6150 which can conflict with char $ac_func(); below. */
6151 #include <assert.h>
6152 /* Override any gcc2 internal prototype to avoid an error. */
6153 /* We use char because int might match the return type of a gcc2
6154 builtin and then its argument prototype would still apply. */
6155 char $ac_func();
6157 int main() {
6159 /* The GNU C library defines this for functions which it implements
6160 to always fail with ENOSYS. Some functions are actually named
6161 something starting with __ and the normal name is an alias. */
6162 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6163 choke me
6164 #else
6165 $ac_func();
6166 #endif
6168 ; return 0; }
6170 if { (eval echo configure:6171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6171 rm -rf conftest*
6172 eval "ac_cv_func_$ac_func=yes"
6173 else
6174 echo "configure: failed program was:" >&5
6175 cat conftest.$ac_ext >&5
6176 rm -rf conftest*
6177 eval "ac_cv_func_$ac_func=no"
6179 rm -f conftest*
6182 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6183 echo "$ac_t""yes" 1>&6
6184 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6185 cat >> confdefs.h <<EOF
6186 #define $ac_tr_func 1
6189 else
6190 echo "$ac_t""no" 1>&6
6192 done
6194 for ac_func in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
6196 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6197 echo "configure:6198: checking for $ac_func" >&5
6198 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6199 echo $ac_n "(cached) $ac_c" 1>&6
6200 else
6201 cat > conftest.$ac_ext <<EOF
6202 #line 6203 "configure"
6203 #include "confdefs.h"
6204 /* System header to define __stub macros and hopefully few prototypes,
6205 which can conflict with char $ac_func(); below. */
6206 #include <assert.h>
6207 /* Override any gcc2 internal prototype to avoid an error. */
6208 /* We use char because int might match the return type of a gcc2
6209 builtin and then its argument prototype would still apply. */
6210 char $ac_func();
6212 int main() {
6214 /* The GNU C library defines this for functions which it implements
6215 to always fail with ENOSYS. Some functions are actually named
6216 something starting with __ and the normal name is an alias. */
6217 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6218 choke me
6219 #else
6220 $ac_func();
6221 #endif
6223 ; return 0; }
6225 if { (eval echo configure:6226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6226 rm -rf conftest*
6227 eval "ac_cv_func_$ac_func=yes"
6228 else
6229 echo "configure: failed program was:" >&5
6230 cat conftest.$ac_ext >&5
6231 rm -rf conftest*
6232 eval "ac_cv_func_$ac_func=no"
6234 rm -f conftest*
6237 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6238 echo "$ac_t""yes" 1>&6
6239 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6240 cat >> confdefs.h <<EOF
6241 #define $ac_tr_func 1
6244 else
6245 echo "$ac_t""no" 1>&6
6247 done
6249 for ac_func in open64 _open64 __open64 creat64
6251 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6252 echo "configure:6253: checking for $ac_func" >&5
6253 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6254 echo $ac_n "(cached) $ac_c" 1>&6
6255 else
6256 cat > conftest.$ac_ext <<EOF
6257 #line 6258 "configure"
6258 #include "confdefs.h"
6259 /* System header to define __stub macros and hopefully few prototypes,
6260 which can conflict with char $ac_func(); below. */
6261 #include <assert.h>
6262 /* Override any gcc2 internal prototype to avoid an error. */
6263 /* We use char because int might match the return type of a gcc2
6264 builtin and then its argument prototype would still apply. */
6265 char $ac_func();
6267 int main() {
6269 /* The GNU C library defines this for functions which it implements
6270 to always fail with ENOSYS. Some functions are actually named
6271 something starting with __ and the normal name is an alias. */
6272 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6273 choke me
6274 #else
6275 $ac_func();
6276 #endif
6278 ; return 0; }
6280 if { (eval echo configure:6281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6281 rm -rf conftest*
6282 eval "ac_cv_func_$ac_func=yes"
6283 else
6284 echo "configure: failed program was:" >&5
6285 cat conftest.$ac_ext >&5
6286 rm -rf conftest*
6287 eval "ac_cv_func_$ac_func=no"
6289 rm -f conftest*
6292 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6293 echo "$ac_t""yes" 1>&6
6294 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6295 cat >> confdefs.h <<EOF
6296 #define $ac_tr_func 1
6299 else
6300 echo "$ac_t""no" 1>&6
6302 done
6306 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
6309 if test x$ac_cv_func_stat64 = xno ; then
6310 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
6311 echo "configure:6312: checking for stat64 in <sys/stat.h>" >&5
6312 cat > conftest.$ac_ext <<EOF
6313 #line 6314 "configure"
6314 #include "confdefs.h"
6316 #if defined(HAVE_UNISTD_H)
6317 #include <unistd.h>
6318 #endif
6319 #include <sys/stat.h>
6321 int main() {
6322 struct stat64 st64; exit(stat64(".",&st64));
6323 ; return 0; }
6325 if { (eval echo configure:6326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6326 rm -rf conftest*
6327 ac_cv_func_stat64=yes
6328 else
6329 echo "configure: failed program was:" >&5
6330 cat conftest.$ac_ext >&5
6332 rm -f conftest*
6333 echo "$ac_t""$ac_cv_func_stat64" 1>&6
6334 if test x$ac_cv_func_stat64 = xyes ; then
6335 cat >> confdefs.h <<\EOF
6336 #define HAVE_STAT64 1
6342 if test x$ac_cv_func_lstat64 = xno ; then
6343 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
6344 echo "configure:6345: checking for lstat64 in <sys/stat.h>" >&5
6345 cat > conftest.$ac_ext <<EOF
6346 #line 6347 "configure"
6347 #include "confdefs.h"
6349 #if defined(HAVE_UNISTD_H)
6350 #include <unistd.h>
6351 #endif
6352 #include <sys/stat.h>
6354 int main() {
6355 struct stat64 st64; exit(lstat64(".",&st64));
6356 ; return 0; }
6358 if { (eval echo configure:6359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6359 rm -rf conftest*
6360 ac_cv_func_lstat64=yes
6361 else
6362 echo "configure: failed program was:" >&5
6363 cat conftest.$ac_ext >&5
6365 rm -f conftest*
6366 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
6367 if test x$ac_cv_func_lstat64 = xyes ; then
6368 cat >> confdefs.h <<\EOF
6369 #define HAVE_LSTAT64 1
6375 if test x$ac_cv_func_fstat64 = xno ; then
6376 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
6377 echo "configure:6378: checking for fstat64 in <sys/stat.h>" >&5
6378 cat > conftest.$ac_ext <<EOF
6379 #line 6380 "configure"
6380 #include "confdefs.h"
6382 #if defined(HAVE_UNISTD_H)
6383 #include <unistd.h>
6384 #endif
6385 #include <sys/stat.h>
6387 int main() {
6388 struct stat64 st64; exit(fstat64(0,&st64));
6389 ; return 0; }
6391 if { (eval echo configure:6392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6392 rm -rf conftest*
6393 ac_cv_func_fstat64=yes
6394 else
6395 echo "configure: failed program was:" >&5
6396 cat conftest.$ac_ext >&5
6398 rm -f conftest*
6399 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
6400 if test x$ac_cv_func_fstat64 = xyes ; then
6401 cat >> confdefs.h <<\EOF
6402 #define HAVE_FSTAT64 1
6409 # If no strcasecmp, check for it in some known places
6410 # It is in -lresolv on ReliantUNIX and UnixWare
6411 # -lresolve *must* follow -lnsl for name resolution to work properly
6414 if test x$ac_cv_func_strcasecmp = xno ; then
6415 echo $ac_n "checking for strcasecmp in -lresolv""... $ac_c" 1>&6
6416 echo "configure:6417: checking for strcasecmp in -lresolv" >&5
6417 ac_lib_var=`echo resolv'_'strcasecmp | sed 'y%./+-%__p_%'`
6418 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6419 echo $ac_n "(cached) $ac_c" 1>&6
6420 else
6421 ac_save_LIBS="$LIBS"
6422 LIBS="-lresolv $LIBS"
6423 cat > conftest.$ac_ext <<EOF
6424 #line 6425 "configure"
6425 #include "confdefs.h"
6426 /* Override any gcc2 internal prototype to avoid an error. */
6427 /* We use char because int might match the return type of a gcc2
6428 builtin and then its argument prototype would still apply. */
6429 char strcasecmp();
6431 int main() {
6432 strcasecmp()
6433 ; return 0; }
6435 if { (eval echo configure:6436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6436 rm -rf conftest*
6437 eval "ac_cv_lib_$ac_lib_var=yes"
6438 else
6439 echo "configure: failed program was:" >&5
6440 cat conftest.$ac_ext >&5
6441 rm -rf conftest*
6442 eval "ac_cv_lib_$ac_lib_var=no"
6444 rm -f conftest*
6445 LIBS="$ac_save_LIBS"
6448 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6449 echo "$ac_t""yes" 1>&6
6450 LIBS="$LIBS -lresolv"
6451 cat >> confdefs.h <<\EOF
6452 #define HAVE_STRCASECMP 1
6455 else
6456 echo "$ac_t""no" 1>&6
6462 # Check for the functions putprpwnam, set_auth_parameters,
6463 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
6464 # Needed for OSF1 and HPUX.
6467 case "$LIBS" in
6468 *-lsecurity*) for ac_func in putprpwnam
6470 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6471 echo "configure:6472: checking for $ac_func" >&5
6472 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6473 echo $ac_n "(cached) $ac_c" 1>&6
6474 else
6475 cat > conftest.$ac_ext <<EOF
6476 #line 6477 "configure"
6477 #include "confdefs.h"
6478 /* System header to define __stub macros and hopefully few prototypes,
6479 which can conflict with char $ac_func(); below. */
6480 #include <assert.h>
6481 /* Override any gcc2 internal prototype to avoid an error. */
6482 /* We use char because int might match the return type of a gcc2
6483 builtin and then its argument prototype would still apply. */
6484 char $ac_func();
6486 int main() {
6488 /* The GNU C library defines this for functions which it implements
6489 to always fail with ENOSYS. Some functions are actually named
6490 something starting with __ and the normal name is an alias. */
6491 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6492 choke me
6493 #else
6494 $ac_func();
6495 #endif
6497 ; return 0; }
6499 if { (eval echo configure:6500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6500 rm -rf conftest*
6501 eval "ac_cv_func_$ac_func=yes"
6502 else
6503 echo "configure: failed program was:" >&5
6504 cat conftest.$ac_ext >&5
6505 rm -rf conftest*
6506 eval "ac_cv_func_$ac_func=no"
6508 rm -f conftest*
6511 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6512 echo "$ac_t""yes" 1>&6
6513 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6514 cat >> confdefs.h <<EOF
6515 #define $ac_tr_func 1
6518 else
6519 echo "$ac_t""no" 1>&6
6521 done
6523 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
6524 echo "configure:6525: checking for putprpwnam in -lsecurity" >&5
6525 ac_lib_var=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
6526 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6527 echo $ac_n "(cached) $ac_c" 1>&6
6528 else
6529 ac_save_LIBS="$LIBS"
6530 LIBS="-lsecurity $LIBS"
6531 cat > conftest.$ac_ext <<EOF
6532 #line 6533 "configure"
6533 #include "confdefs.h"
6534 /* Override any gcc2 internal prototype to avoid an error. */
6535 /* We use char because int might match the return type of a gcc2
6536 builtin and then its argument prototype would still apply. */
6537 char putprpwnam();
6539 int main() {
6540 putprpwnam()
6541 ; return 0; }
6543 if { (eval echo configure:6544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6544 rm -rf conftest*
6545 eval "ac_cv_lib_$ac_lib_var=yes"
6546 else
6547 echo "configure: failed program was:" >&5
6548 cat conftest.$ac_ext >&5
6549 rm -rf conftest*
6550 eval "ac_cv_lib_$ac_lib_var=no"
6552 rm -f conftest*
6553 LIBS="$ac_save_LIBS"
6556 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6557 echo "$ac_t""yes" 1>&6
6558 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6559 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6560 cat >> confdefs.h <<EOF
6561 #define $ac_tr_lib 1
6564 LIBS="-lsecurity $LIBS"
6566 else
6567 echo "$ac_t""no" 1>&6
6570 for ac_func in putprpwnam
6572 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6573 echo "configure:6574: checking for $ac_func" >&5
6574 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6575 echo $ac_n "(cached) $ac_c" 1>&6
6576 else
6577 cat > conftest.$ac_ext <<EOF
6578 #line 6579 "configure"
6579 #include "confdefs.h"
6580 /* System header to define __stub macros and hopefully few prototypes,
6581 which can conflict with char $ac_func(); below. */
6582 #include <assert.h>
6583 /* Override any gcc2 internal prototype to avoid an error. */
6584 /* We use char because int might match the return type of a gcc2
6585 builtin and then its argument prototype would still apply. */
6586 char $ac_func();
6588 int main() {
6590 /* The GNU C library defines this for functions which it implements
6591 to always fail with ENOSYS. Some functions are actually named
6592 something starting with __ and the normal name is an alias. */
6593 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6594 choke me
6595 #else
6596 $ac_func();
6597 #endif
6599 ; return 0; }
6601 if { (eval echo configure:6602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6602 rm -rf conftest*
6603 eval "ac_cv_func_$ac_func=yes"
6604 else
6605 echo "configure: failed program was:" >&5
6606 cat conftest.$ac_ext >&5
6607 rm -rf conftest*
6608 eval "ac_cv_func_$ac_func=no"
6610 rm -f conftest*
6613 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6614 echo "$ac_t""yes" 1>&6
6615 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6616 cat >> confdefs.h <<EOF
6617 #define $ac_tr_func 1
6620 else
6621 echo "$ac_t""no" 1>&6
6623 done
6626 esac
6628 case "$LIBS" in
6629 *-lsec*) for ac_func in putprpwnam
6631 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6632 echo "configure:6633: checking for $ac_func" >&5
6633 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6634 echo $ac_n "(cached) $ac_c" 1>&6
6635 else
6636 cat > conftest.$ac_ext <<EOF
6637 #line 6638 "configure"
6638 #include "confdefs.h"
6639 /* System header to define __stub macros and hopefully few prototypes,
6640 which can conflict with char $ac_func(); below. */
6641 #include <assert.h>
6642 /* Override any gcc2 internal prototype to avoid an error. */
6643 /* We use char because int might match the return type of a gcc2
6644 builtin and then its argument prototype would still apply. */
6645 char $ac_func();
6647 int main() {
6649 /* The GNU C library defines this for functions which it implements
6650 to always fail with ENOSYS. Some functions are actually named
6651 something starting with __ and the normal name is an alias. */
6652 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6653 choke me
6654 #else
6655 $ac_func();
6656 #endif
6658 ; return 0; }
6660 if { (eval echo configure:6661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6661 rm -rf conftest*
6662 eval "ac_cv_func_$ac_func=yes"
6663 else
6664 echo "configure: failed program was:" >&5
6665 cat conftest.$ac_ext >&5
6666 rm -rf conftest*
6667 eval "ac_cv_func_$ac_func=no"
6669 rm -f conftest*
6672 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6673 echo "$ac_t""yes" 1>&6
6674 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6675 cat >> confdefs.h <<EOF
6676 #define $ac_tr_func 1
6679 else
6680 echo "$ac_t""no" 1>&6
6682 done
6684 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
6685 echo "configure:6686: checking for putprpwnam in -lsec" >&5
6686 ac_lib_var=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
6687 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6688 echo $ac_n "(cached) $ac_c" 1>&6
6689 else
6690 ac_save_LIBS="$LIBS"
6691 LIBS="-lsec $LIBS"
6692 cat > conftest.$ac_ext <<EOF
6693 #line 6694 "configure"
6694 #include "confdefs.h"
6695 /* Override any gcc2 internal prototype to avoid an error. */
6696 /* We use char because int might match the return type of a gcc2
6697 builtin and then its argument prototype would still apply. */
6698 char putprpwnam();
6700 int main() {
6701 putprpwnam()
6702 ; return 0; }
6704 if { (eval echo configure:6705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6705 rm -rf conftest*
6706 eval "ac_cv_lib_$ac_lib_var=yes"
6707 else
6708 echo "configure: failed program was:" >&5
6709 cat conftest.$ac_ext >&5
6710 rm -rf conftest*
6711 eval "ac_cv_lib_$ac_lib_var=no"
6713 rm -f conftest*
6714 LIBS="$ac_save_LIBS"
6717 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6718 echo "$ac_t""yes" 1>&6
6719 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6720 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6721 cat >> confdefs.h <<EOF
6722 #define $ac_tr_lib 1
6725 LIBS="-lsec $LIBS"
6727 else
6728 echo "$ac_t""no" 1>&6
6731 for ac_func in putprpwnam
6733 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6734 echo "configure:6735: checking for $ac_func" >&5
6735 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6736 echo $ac_n "(cached) $ac_c" 1>&6
6737 else
6738 cat > conftest.$ac_ext <<EOF
6739 #line 6740 "configure"
6740 #include "confdefs.h"
6741 /* System header to define __stub macros and hopefully few prototypes,
6742 which can conflict with char $ac_func(); below. */
6743 #include <assert.h>
6744 /* Override any gcc2 internal prototype to avoid an error. */
6745 /* We use char because int might match the return type of a gcc2
6746 builtin and then its argument prototype would still apply. */
6747 char $ac_func();
6749 int main() {
6751 /* The GNU C library defines this for functions which it implements
6752 to always fail with ENOSYS. Some functions are actually named
6753 something starting with __ and the normal name is an alias. */
6754 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6755 choke me
6756 #else
6757 $ac_func();
6758 #endif
6760 ; return 0; }
6762 if { (eval echo configure:6763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6763 rm -rf conftest*
6764 eval "ac_cv_func_$ac_func=yes"
6765 else
6766 echo "configure: failed program was:" >&5
6767 cat conftest.$ac_ext >&5
6768 rm -rf conftest*
6769 eval "ac_cv_func_$ac_func=no"
6771 rm -f conftest*
6774 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6775 echo "$ac_t""yes" 1>&6
6776 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6777 cat >> confdefs.h <<EOF
6778 #define $ac_tr_func 1
6781 else
6782 echo "$ac_t""no" 1>&6
6784 done
6787 esac
6790 case "$LIBS" in
6791 *-lsecurity*) for ac_func in set_auth_parameters
6793 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6794 echo "configure:6795: checking for $ac_func" >&5
6795 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6796 echo $ac_n "(cached) $ac_c" 1>&6
6797 else
6798 cat > conftest.$ac_ext <<EOF
6799 #line 6800 "configure"
6800 #include "confdefs.h"
6801 /* System header to define __stub macros and hopefully few prototypes,
6802 which can conflict with char $ac_func(); below. */
6803 #include <assert.h>
6804 /* Override any gcc2 internal prototype to avoid an error. */
6805 /* We use char because int might match the return type of a gcc2
6806 builtin and then its argument prototype would still apply. */
6807 char $ac_func();
6809 int main() {
6811 /* The GNU C library defines this for functions which it implements
6812 to always fail with ENOSYS. Some functions are actually named
6813 something starting with __ and the normal name is an alias. */
6814 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6815 choke me
6816 #else
6817 $ac_func();
6818 #endif
6820 ; return 0; }
6822 if { (eval echo configure:6823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6823 rm -rf conftest*
6824 eval "ac_cv_func_$ac_func=yes"
6825 else
6826 echo "configure: failed program was:" >&5
6827 cat conftest.$ac_ext >&5
6828 rm -rf conftest*
6829 eval "ac_cv_func_$ac_func=no"
6831 rm -f conftest*
6834 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6835 echo "$ac_t""yes" 1>&6
6836 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6837 cat >> confdefs.h <<EOF
6838 #define $ac_tr_func 1
6841 else
6842 echo "$ac_t""no" 1>&6
6844 done
6846 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
6847 echo "configure:6848: checking for set_auth_parameters in -lsecurity" >&5
6848 ac_lib_var=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
6849 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6850 echo $ac_n "(cached) $ac_c" 1>&6
6851 else
6852 ac_save_LIBS="$LIBS"
6853 LIBS="-lsecurity $LIBS"
6854 cat > conftest.$ac_ext <<EOF
6855 #line 6856 "configure"
6856 #include "confdefs.h"
6857 /* Override any gcc2 internal prototype to avoid an error. */
6858 /* We use char because int might match the return type of a gcc2
6859 builtin and then its argument prototype would still apply. */
6860 char set_auth_parameters();
6862 int main() {
6863 set_auth_parameters()
6864 ; return 0; }
6866 if { (eval echo configure:6867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6867 rm -rf conftest*
6868 eval "ac_cv_lib_$ac_lib_var=yes"
6869 else
6870 echo "configure: failed program was:" >&5
6871 cat conftest.$ac_ext >&5
6872 rm -rf conftest*
6873 eval "ac_cv_lib_$ac_lib_var=no"
6875 rm -f conftest*
6876 LIBS="$ac_save_LIBS"
6879 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6880 echo "$ac_t""yes" 1>&6
6881 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6882 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6883 cat >> confdefs.h <<EOF
6884 #define $ac_tr_lib 1
6887 LIBS="-lsecurity $LIBS"
6889 else
6890 echo "$ac_t""no" 1>&6
6893 for ac_func in set_auth_parameters
6895 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6896 echo "configure:6897: checking for $ac_func" >&5
6897 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6898 echo $ac_n "(cached) $ac_c" 1>&6
6899 else
6900 cat > conftest.$ac_ext <<EOF
6901 #line 6902 "configure"
6902 #include "confdefs.h"
6903 /* System header to define __stub macros and hopefully few prototypes,
6904 which can conflict with char $ac_func(); below. */
6905 #include <assert.h>
6906 /* Override any gcc2 internal prototype to avoid an error. */
6907 /* We use char because int might match the return type of a gcc2
6908 builtin and then its argument prototype would still apply. */
6909 char $ac_func();
6911 int main() {
6913 /* The GNU C library defines this for functions which it implements
6914 to always fail with ENOSYS. Some functions are actually named
6915 something starting with __ and the normal name is an alias. */
6916 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6917 choke me
6918 #else
6919 $ac_func();
6920 #endif
6922 ; return 0; }
6924 if { (eval echo configure:6925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6925 rm -rf conftest*
6926 eval "ac_cv_func_$ac_func=yes"
6927 else
6928 echo "configure: failed program was:" >&5
6929 cat conftest.$ac_ext >&5
6930 rm -rf conftest*
6931 eval "ac_cv_func_$ac_func=no"
6933 rm -f conftest*
6936 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6937 echo "$ac_t""yes" 1>&6
6938 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6939 cat >> confdefs.h <<EOF
6940 #define $ac_tr_func 1
6943 else
6944 echo "$ac_t""no" 1>&6
6946 done
6949 esac
6951 case "$LIBS" in
6952 *-lsec*) for ac_func in set_auth_parameters
6954 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6955 echo "configure:6956: checking for $ac_func" >&5
6956 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6957 echo $ac_n "(cached) $ac_c" 1>&6
6958 else
6959 cat > conftest.$ac_ext <<EOF
6960 #line 6961 "configure"
6961 #include "confdefs.h"
6962 /* System header to define __stub macros and hopefully few prototypes,
6963 which can conflict with char $ac_func(); below. */
6964 #include <assert.h>
6965 /* Override any gcc2 internal prototype to avoid an error. */
6966 /* We use char because int might match the return type of a gcc2
6967 builtin and then its argument prototype would still apply. */
6968 char $ac_func();
6970 int main() {
6972 /* The GNU C library defines this for functions which it implements
6973 to always fail with ENOSYS. Some functions are actually named
6974 something starting with __ and the normal name is an alias. */
6975 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6976 choke me
6977 #else
6978 $ac_func();
6979 #endif
6981 ; return 0; }
6983 if { (eval echo configure:6984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6984 rm -rf conftest*
6985 eval "ac_cv_func_$ac_func=yes"
6986 else
6987 echo "configure: failed program was:" >&5
6988 cat conftest.$ac_ext >&5
6989 rm -rf conftest*
6990 eval "ac_cv_func_$ac_func=no"
6992 rm -f conftest*
6995 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6996 echo "$ac_t""yes" 1>&6
6997 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6998 cat >> confdefs.h <<EOF
6999 #define $ac_tr_func 1
7002 else
7003 echo "$ac_t""no" 1>&6
7005 done
7007 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
7008 echo "configure:7009: checking for set_auth_parameters in -lsec" >&5
7009 ac_lib_var=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7010 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7011 echo $ac_n "(cached) $ac_c" 1>&6
7012 else
7013 ac_save_LIBS="$LIBS"
7014 LIBS="-lsec $LIBS"
7015 cat > conftest.$ac_ext <<EOF
7016 #line 7017 "configure"
7017 #include "confdefs.h"
7018 /* Override any gcc2 internal prototype to avoid an error. */
7019 /* We use char because int might match the return type of a gcc2
7020 builtin and then its argument prototype would still apply. */
7021 char set_auth_parameters();
7023 int main() {
7024 set_auth_parameters()
7025 ; return 0; }
7027 if { (eval echo configure:7028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7028 rm -rf conftest*
7029 eval "ac_cv_lib_$ac_lib_var=yes"
7030 else
7031 echo "configure: failed program was:" >&5
7032 cat conftest.$ac_ext >&5
7033 rm -rf conftest*
7034 eval "ac_cv_lib_$ac_lib_var=no"
7036 rm -f conftest*
7037 LIBS="$ac_save_LIBS"
7040 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7041 echo "$ac_t""yes" 1>&6
7042 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7043 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7044 cat >> confdefs.h <<EOF
7045 #define $ac_tr_lib 1
7048 LIBS="-lsec $LIBS"
7050 else
7051 echo "$ac_t""no" 1>&6
7054 for ac_func in set_auth_parameters
7056 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7057 echo "configure:7058: checking for $ac_func" >&5
7058 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7059 echo $ac_n "(cached) $ac_c" 1>&6
7060 else
7061 cat > conftest.$ac_ext <<EOF
7062 #line 7063 "configure"
7063 #include "confdefs.h"
7064 /* System header to define __stub macros and hopefully few prototypes,
7065 which can conflict with char $ac_func(); below. */
7066 #include <assert.h>
7067 /* Override any gcc2 internal prototype to avoid an error. */
7068 /* We use char because int might match the return type of a gcc2
7069 builtin and then its argument prototype would still apply. */
7070 char $ac_func();
7072 int main() {
7074 /* The GNU C library defines this for functions which it implements
7075 to always fail with ENOSYS. Some functions are actually named
7076 something starting with __ and the normal name is an alias. */
7077 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7078 choke me
7079 #else
7080 $ac_func();
7081 #endif
7083 ; return 0; }
7085 if { (eval echo configure:7086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7086 rm -rf conftest*
7087 eval "ac_cv_func_$ac_func=yes"
7088 else
7089 echo "configure: failed program was:" >&5
7090 cat conftest.$ac_ext >&5
7091 rm -rf conftest*
7092 eval "ac_cv_func_$ac_func=no"
7094 rm -f conftest*
7097 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7098 echo "$ac_t""yes" 1>&6
7099 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7100 cat >> confdefs.h <<EOF
7101 #define $ac_tr_func 1
7104 else
7105 echo "$ac_t""no" 1>&6
7107 done
7110 esac
7113 # UnixWare 7.x has its getspnam in -lgen
7114 case "$LIBS" in
7115 *-lgen*) for ac_func in getspnam
7117 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7118 echo "configure:7119: checking for $ac_func" >&5
7119 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7120 echo $ac_n "(cached) $ac_c" 1>&6
7121 else
7122 cat > conftest.$ac_ext <<EOF
7123 #line 7124 "configure"
7124 #include "confdefs.h"
7125 /* System header to define __stub macros and hopefully few prototypes,
7126 which can conflict with char $ac_func(); below. */
7127 #include <assert.h>
7128 /* Override any gcc2 internal prototype to avoid an error. */
7129 /* We use char because int might match the return type of a gcc2
7130 builtin and then its argument prototype would still apply. */
7131 char $ac_func();
7133 int main() {
7135 /* The GNU C library defines this for functions which it implements
7136 to always fail with ENOSYS. Some functions are actually named
7137 something starting with __ and the normal name is an alias. */
7138 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7139 choke me
7140 #else
7141 $ac_func();
7142 #endif
7144 ; return 0; }
7146 if { (eval echo configure:7147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7147 rm -rf conftest*
7148 eval "ac_cv_func_$ac_func=yes"
7149 else
7150 echo "configure: failed program was:" >&5
7151 cat conftest.$ac_ext >&5
7152 rm -rf conftest*
7153 eval "ac_cv_func_$ac_func=no"
7155 rm -f conftest*
7158 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7159 echo "$ac_t""yes" 1>&6
7160 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7161 cat >> confdefs.h <<EOF
7162 #define $ac_tr_func 1
7165 else
7166 echo "$ac_t""no" 1>&6
7168 done
7170 *) echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
7171 echo "configure:7172: checking for getspnam in -lgen" >&5
7172 ac_lib_var=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
7173 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7174 echo $ac_n "(cached) $ac_c" 1>&6
7175 else
7176 ac_save_LIBS="$LIBS"
7177 LIBS="-lgen $LIBS"
7178 cat > conftest.$ac_ext <<EOF
7179 #line 7180 "configure"
7180 #include "confdefs.h"
7181 /* Override any gcc2 internal prototype to avoid an error. */
7182 /* We use char because int might match the return type of a gcc2
7183 builtin and then its argument prototype would still apply. */
7184 char getspnam();
7186 int main() {
7187 getspnam()
7188 ; return 0; }
7190 if { (eval echo configure:7191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7191 rm -rf conftest*
7192 eval "ac_cv_lib_$ac_lib_var=yes"
7193 else
7194 echo "configure: failed program was:" >&5
7195 cat conftest.$ac_ext >&5
7196 rm -rf conftest*
7197 eval "ac_cv_lib_$ac_lib_var=no"
7199 rm -f conftest*
7200 LIBS="$ac_save_LIBS"
7203 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7204 echo "$ac_t""yes" 1>&6
7205 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7206 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7207 cat >> confdefs.h <<EOF
7208 #define $ac_tr_lib 1
7211 LIBS="-lgen $LIBS"
7213 else
7214 echo "$ac_t""no" 1>&6
7217 for ac_func in getspnam
7219 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7220 echo "configure:7221: checking for $ac_func" >&5
7221 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7222 echo $ac_n "(cached) $ac_c" 1>&6
7223 else
7224 cat > conftest.$ac_ext <<EOF
7225 #line 7226 "configure"
7226 #include "confdefs.h"
7227 /* System header to define __stub macros and hopefully few prototypes,
7228 which can conflict with char $ac_func(); below. */
7229 #include <assert.h>
7230 /* Override any gcc2 internal prototype to avoid an error. */
7231 /* We use char because int might match the return type of a gcc2
7232 builtin and then its argument prototype would still apply. */
7233 char $ac_func();
7235 int main() {
7237 /* The GNU C library defines this for functions which it implements
7238 to always fail with ENOSYS. Some functions are actually named
7239 something starting with __ and the normal name is an alias. */
7240 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7241 choke me
7242 #else
7243 $ac_func();
7244 #endif
7246 ; return 0; }
7248 if { (eval echo configure:7249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7249 rm -rf conftest*
7250 eval "ac_cv_func_$ac_func=yes"
7251 else
7252 echo "configure: failed program was:" >&5
7253 cat conftest.$ac_ext >&5
7254 rm -rf conftest*
7255 eval "ac_cv_func_$ac_func=no"
7257 rm -f conftest*
7260 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7261 echo "$ac_t""yes" 1>&6
7262 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7263 cat >> confdefs.h <<EOF
7264 #define $ac_tr_func 1
7267 else
7268 echo "$ac_t""no" 1>&6
7270 done
7273 esac
7276 case "$LIBS" in
7277 *-lsecurity*) for ac_func in getspnam
7279 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7280 echo "configure:7281: checking for $ac_func" >&5
7281 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7282 echo $ac_n "(cached) $ac_c" 1>&6
7283 else
7284 cat > conftest.$ac_ext <<EOF
7285 #line 7286 "configure"
7286 #include "confdefs.h"
7287 /* System header to define __stub macros and hopefully few prototypes,
7288 which can conflict with char $ac_func(); below. */
7289 #include <assert.h>
7290 /* Override any gcc2 internal prototype to avoid an error. */
7291 /* We use char because int might match the return type of a gcc2
7292 builtin and then its argument prototype would still apply. */
7293 char $ac_func();
7295 int main() {
7297 /* The GNU C library defines this for functions which it implements
7298 to always fail with ENOSYS. Some functions are actually named
7299 something starting with __ and the normal name is an alias. */
7300 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7301 choke me
7302 #else
7303 $ac_func();
7304 #endif
7306 ; return 0; }
7308 if { (eval echo configure:7309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7309 rm -rf conftest*
7310 eval "ac_cv_func_$ac_func=yes"
7311 else
7312 echo "configure: failed program was:" >&5
7313 cat conftest.$ac_ext >&5
7314 rm -rf conftest*
7315 eval "ac_cv_func_$ac_func=no"
7317 rm -f conftest*
7320 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7321 echo "$ac_t""yes" 1>&6
7322 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7323 cat >> confdefs.h <<EOF
7324 #define $ac_tr_func 1
7327 else
7328 echo "$ac_t""no" 1>&6
7330 done
7332 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
7333 echo "configure:7334: checking for getspnam in -lsecurity" >&5
7334 ac_lib_var=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
7335 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7336 echo $ac_n "(cached) $ac_c" 1>&6
7337 else
7338 ac_save_LIBS="$LIBS"
7339 LIBS="-lsecurity $LIBS"
7340 cat > conftest.$ac_ext <<EOF
7341 #line 7342 "configure"
7342 #include "confdefs.h"
7343 /* Override any gcc2 internal prototype to avoid an error. */
7344 /* We use char because int might match the return type of a gcc2
7345 builtin and then its argument prototype would still apply. */
7346 char getspnam();
7348 int main() {
7349 getspnam()
7350 ; return 0; }
7352 if { (eval echo configure:7353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7353 rm -rf conftest*
7354 eval "ac_cv_lib_$ac_lib_var=yes"
7355 else
7356 echo "configure: failed program was:" >&5
7357 cat conftest.$ac_ext >&5
7358 rm -rf conftest*
7359 eval "ac_cv_lib_$ac_lib_var=no"
7361 rm -f conftest*
7362 LIBS="$ac_save_LIBS"
7365 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7366 echo "$ac_t""yes" 1>&6
7367 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7368 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7369 cat >> confdefs.h <<EOF
7370 #define $ac_tr_lib 1
7373 LIBS="-lsecurity $LIBS"
7375 else
7376 echo "$ac_t""no" 1>&6
7379 for ac_func in getspnam
7381 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7382 echo "configure:7383: checking for $ac_func" >&5
7383 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7384 echo $ac_n "(cached) $ac_c" 1>&6
7385 else
7386 cat > conftest.$ac_ext <<EOF
7387 #line 7388 "configure"
7388 #include "confdefs.h"
7389 /* System header to define __stub macros and hopefully few prototypes,
7390 which can conflict with char $ac_func(); below. */
7391 #include <assert.h>
7392 /* Override any gcc2 internal prototype to avoid an error. */
7393 /* We use char because int might match the return type of a gcc2
7394 builtin and then its argument prototype would still apply. */
7395 char $ac_func();
7397 int main() {
7399 /* The GNU C library defines this for functions which it implements
7400 to always fail with ENOSYS. Some functions are actually named
7401 something starting with __ and the normal name is an alias. */
7402 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7403 choke me
7404 #else
7405 $ac_func();
7406 #endif
7408 ; return 0; }
7410 if { (eval echo configure:7411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7411 rm -rf conftest*
7412 eval "ac_cv_func_$ac_func=yes"
7413 else
7414 echo "configure: failed program was:" >&5
7415 cat conftest.$ac_ext >&5
7416 rm -rf conftest*
7417 eval "ac_cv_func_$ac_func=no"
7419 rm -f conftest*
7422 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7423 echo "$ac_t""yes" 1>&6
7424 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7425 cat >> confdefs.h <<EOF
7426 #define $ac_tr_func 1
7429 else
7430 echo "$ac_t""no" 1>&6
7432 done
7435 esac
7437 case "$LIBS" in
7438 *-lsec*) for ac_func in getspnam
7440 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7441 echo "configure:7442: checking for $ac_func" >&5
7442 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7443 echo $ac_n "(cached) $ac_c" 1>&6
7444 else
7445 cat > conftest.$ac_ext <<EOF
7446 #line 7447 "configure"
7447 #include "confdefs.h"
7448 /* System header to define __stub macros and hopefully few prototypes,
7449 which can conflict with char $ac_func(); below. */
7450 #include <assert.h>
7451 /* Override any gcc2 internal prototype to avoid an error. */
7452 /* We use char because int might match the return type of a gcc2
7453 builtin and then its argument prototype would still apply. */
7454 char $ac_func();
7456 int main() {
7458 /* The GNU C library defines this for functions which it implements
7459 to always fail with ENOSYS. Some functions are actually named
7460 something starting with __ and the normal name is an alias. */
7461 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7462 choke me
7463 #else
7464 $ac_func();
7465 #endif
7467 ; return 0; }
7469 if { (eval echo configure:7470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7470 rm -rf conftest*
7471 eval "ac_cv_func_$ac_func=yes"
7472 else
7473 echo "configure: failed program was:" >&5
7474 cat conftest.$ac_ext >&5
7475 rm -rf conftest*
7476 eval "ac_cv_func_$ac_func=no"
7478 rm -f conftest*
7481 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7482 echo "$ac_t""yes" 1>&6
7483 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7484 cat >> confdefs.h <<EOF
7485 #define $ac_tr_func 1
7488 else
7489 echo "$ac_t""no" 1>&6
7491 done
7493 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
7494 echo "configure:7495: checking for getspnam in -lsec" >&5
7495 ac_lib_var=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
7496 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7497 echo $ac_n "(cached) $ac_c" 1>&6
7498 else
7499 ac_save_LIBS="$LIBS"
7500 LIBS="-lsec $LIBS"
7501 cat > conftest.$ac_ext <<EOF
7502 #line 7503 "configure"
7503 #include "confdefs.h"
7504 /* Override any gcc2 internal prototype to avoid an error. */
7505 /* We use char because int might match the return type of a gcc2
7506 builtin and then its argument prototype would still apply. */
7507 char getspnam();
7509 int main() {
7510 getspnam()
7511 ; return 0; }
7513 if { (eval echo configure:7514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7514 rm -rf conftest*
7515 eval "ac_cv_lib_$ac_lib_var=yes"
7516 else
7517 echo "configure: failed program was:" >&5
7518 cat conftest.$ac_ext >&5
7519 rm -rf conftest*
7520 eval "ac_cv_lib_$ac_lib_var=no"
7522 rm -f conftest*
7523 LIBS="$ac_save_LIBS"
7526 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7527 echo "$ac_t""yes" 1>&6
7528 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7529 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7530 cat >> confdefs.h <<EOF
7531 #define $ac_tr_lib 1
7534 LIBS="-lsec $LIBS"
7536 else
7537 echo "$ac_t""no" 1>&6
7540 for ac_func in getspnam
7542 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7543 echo "configure:7544: checking for $ac_func" >&5
7544 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7545 echo $ac_n "(cached) $ac_c" 1>&6
7546 else
7547 cat > conftest.$ac_ext <<EOF
7548 #line 7549 "configure"
7549 #include "confdefs.h"
7550 /* System header to define __stub macros and hopefully few prototypes,
7551 which can conflict with char $ac_func(); below. */
7552 #include <assert.h>
7553 /* Override any gcc2 internal prototype to avoid an error. */
7554 /* We use char because int might match the return type of a gcc2
7555 builtin and then its argument prototype would still apply. */
7556 char $ac_func();
7558 int main() {
7560 /* The GNU C library defines this for functions which it implements
7561 to always fail with ENOSYS. Some functions are actually named
7562 something starting with __ and the normal name is an alias. */
7563 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7564 choke me
7565 #else
7566 $ac_func();
7567 #endif
7569 ; return 0; }
7571 if { (eval echo configure:7572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7572 rm -rf conftest*
7573 eval "ac_cv_func_$ac_func=yes"
7574 else
7575 echo "configure: failed program was:" >&5
7576 cat conftest.$ac_ext >&5
7577 rm -rf conftest*
7578 eval "ac_cv_func_$ac_func=no"
7580 rm -f conftest*
7583 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7584 echo "$ac_t""yes" 1>&6
7585 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7586 cat >> confdefs.h <<EOF
7587 #define $ac_tr_func 1
7590 else
7591 echo "$ac_t""no" 1>&6
7593 done
7596 esac
7599 case "$LIBS" in
7600 *-lsecurity*) for ac_func in bigcrypt
7602 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7603 echo "configure:7604: checking for $ac_func" >&5
7604 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7605 echo $ac_n "(cached) $ac_c" 1>&6
7606 else
7607 cat > conftest.$ac_ext <<EOF
7608 #line 7609 "configure"
7609 #include "confdefs.h"
7610 /* System header to define __stub macros and hopefully few prototypes,
7611 which can conflict with char $ac_func(); below. */
7612 #include <assert.h>
7613 /* Override any gcc2 internal prototype to avoid an error. */
7614 /* We use char because int might match the return type of a gcc2
7615 builtin and then its argument prototype would still apply. */
7616 char $ac_func();
7618 int main() {
7620 /* The GNU C library defines this for functions which it implements
7621 to always fail with ENOSYS. Some functions are actually named
7622 something starting with __ and the normal name is an alias. */
7623 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7624 choke me
7625 #else
7626 $ac_func();
7627 #endif
7629 ; return 0; }
7631 if { (eval echo configure:7632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7632 rm -rf conftest*
7633 eval "ac_cv_func_$ac_func=yes"
7634 else
7635 echo "configure: failed program was:" >&5
7636 cat conftest.$ac_ext >&5
7637 rm -rf conftest*
7638 eval "ac_cv_func_$ac_func=no"
7640 rm -f conftest*
7643 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7644 echo "$ac_t""yes" 1>&6
7645 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7646 cat >> confdefs.h <<EOF
7647 #define $ac_tr_func 1
7650 else
7651 echo "$ac_t""no" 1>&6
7653 done
7655 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
7656 echo "configure:7657: checking for bigcrypt in -lsecurity" >&5
7657 ac_lib_var=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
7658 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7659 echo $ac_n "(cached) $ac_c" 1>&6
7660 else
7661 ac_save_LIBS="$LIBS"
7662 LIBS="-lsecurity $LIBS"
7663 cat > conftest.$ac_ext <<EOF
7664 #line 7665 "configure"
7665 #include "confdefs.h"
7666 /* Override any gcc2 internal prototype to avoid an error. */
7667 /* We use char because int might match the return type of a gcc2
7668 builtin and then its argument prototype would still apply. */
7669 char bigcrypt();
7671 int main() {
7672 bigcrypt()
7673 ; return 0; }
7675 if { (eval echo configure:7676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7676 rm -rf conftest*
7677 eval "ac_cv_lib_$ac_lib_var=yes"
7678 else
7679 echo "configure: failed program was:" >&5
7680 cat conftest.$ac_ext >&5
7681 rm -rf conftest*
7682 eval "ac_cv_lib_$ac_lib_var=no"
7684 rm -f conftest*
7685 LIBS="$ac_save_LIBS"
7688 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7689 echo "$ac_t""yes" 1>&6
7690 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7691 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7692 cat >> confdefs.h <<EOF
7693 #define $ac_tr_lib 1
7696 LIBS="-lsecurity $LIBS"
7698 else
7699 echo "$ac_t""no" 1>&6
7702 for ac_func in bigcrypt
7704 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7705 echo "configure:7706: checking for $ac_func" >&5
7706 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7707 echo $ac_n "(cached) $ac_c" 1>&6
7708 else
7709 cat > conftest.$ac_ext <<EOF
7710 #line 7711 "configure"
7711 #include "confdefs.h"
7712 /* System header to define __stub macros and hopefully few prototypes,
7713 which can conflict with char $ac_func(); below. */
7714 #include <assert.h>
7715 /* Override any gcc2 internal prototype to avoid an error. */
7716 /* We use char because int might match the return type of a gcc2
7717 builtin and then its argument prototype would still apply. */
7718 char $ac_func();
7720 int main() {
7722 /* The GNU C library defines this for functions which it implements
7723 to always fail with ENOSYS. Some functions are actually named
7724 something starting with __ and the normal name is an alias. */
7725 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7726 choke me
7727 #else
7728 $ac_func();
7729 #endif
7731 ; return 0; }
7733 if { (eval echo configure:7734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7734 rm -rf conftest*
7735 eval "ac_cv_func_$ac_func=yes"
7736 else
7737 echo "configure: failed program was:" >&5
7738 cat conftest.$ac_ext >&5
7739 rm -rf conftest*
7740 eval "ac_cv_func_$ac_func=no"
7742 rm -f conftest*
7745 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7746 echo "$ac_t""yes" 1>&6
7747 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7748 cat >> confdefs.h <<EOF
7749 #define $ac_tr_func 1
7752 else
7753 echo "$ac_t""no" 1>&6
7755 done
7758 esac
7760 case "$LIBS" in
7761 *-lsec*) for ac_func in bigcrypt
7763 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7764 echo "configure:7765: checking for $ac_func" >&5
7765 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7766 echo $ac_n "(cached) $ac_c" 1>&6
7767 else
7768 cat > conftest.$ac_ext <<EOF
7769 #line 7770 "configure"
7770 #include "confdefs.h"
7771 /* System header to define __stub macros and hopefully few prototypes,
7772 which can conflict with char $ac_func(); below. */
7773 #include <assert.h>
7774 /* Override any gcc2 internal prototype to avoid an error. */
7775 /* We use char because int might match the return type of a gcc2
7776 builtin and then its argument prototype would still apply. */
7777 char $ac_func();
7779 int main() {
7781 /* The GNU C library defines this for functions which it implements
7782 to always fail with ENOSYS. Some functions are actually named
7783 something starting with __ and the normal name is an alias. */
7784 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7785 choke me
7786 #else
7787 $ac_func();
7788 #endif
7790 ; return 0; }
7792 if { (eval echo configure:7793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7793 rm -rf conftest*
7794 eval "ac_cv_func_$ac_func=yes"
7795 else
7796 echo "configure: failed program was:" >&5
7797 cat conftest.$ac_ext >&5
7798 rm -rf conftest*
7799 eval "ac_cv_func_$ac_func=no"
7801 rm -f conftest*
7804 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7805 echo "$ac_t""yes" 1>&6
7806 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7807 cat >> confdefs.h <<EOF
7808 #define $ac_tr_func 1
7811 else
7812 echo "$ac_t""no" 1>&6
7814 done
7816 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
7817 echo "configure:7818: checking for bigcrypt in -lsec" >&5
7818 ac_lib_var=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
7819 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7820 echo $ac_n "(cached) $ac_c" 1>&6
7821 else
7822 ac_save_LIBS="$LIBS"
7823 LIBS="-lsec $LIBS"
7824 cat > conftest.$ac_ext <<EOF
7825 #line 7826 "configure"
7826 #include "confdefs.h"
7827 /* Override any gcc2 internal prototype to avoid an error. */
7828 /* We use char because int might match the return type of a gcc2
7829 builtin and then its argument prototype would still apply. */
7830 char bigcrypt();
7832 int main() {
7833 bigcrypt()
7834 ; return 0; }
7836 if { (eval echo configure:7837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7837 rm -rf conftest*
7838 eval "ac_cv_lib_$ac_lib_var=yes"
7839 else
7840 echo "configure: failed program was:" >&5
7841 cat conftest.$ac_ext >&5
7842 rm -rf conftest*
7843 eval "ac_cv_lib_$ac_lib_var=no"
7845 rm -f conftest*
7846 LIBS="$ac_save_LIBS"
7849 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7850 echo "$ac_t""yes" 1>&6
7851 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7852 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7853 cat >> confdefs.h <<EOF
7854 #define $ac_tr_lib 1
7857 LIBS="-lsec $LIBS"
7859 else
7860 echo "$ac_t""no" 1>&6
7863 for ac_func in bigcrypt
7865 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7866 echo "configure:7867: checking for $ac_func" >&5
7867 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7868 echo $ac_n "(cached) $ac_c" 1>&6
7869 else
7870 cat > conftest.$ac_ext <<EOF
7871 #line 7872 "configure"
7872 #include "confdefs.h"
7873 /* System header to define __stub macros and hopefully few prototypes,
7874 which can conflict with char $ac_func(); below. */
7875 #include <assert.h>
7876 /* Override any gcc2 internal prototype to avoid an error. */
7877 /* We use char because int might match the return type of a gcc2
7878 builtin and then its argument prototype would still apply. */
7879 char $ac_func();
7881 int main() {
7883 /* The GNU C library defines this for functions which it implements
7884 to always fail with ENOSYS. Some functions are actually named
7885 something starting with __ and the normal name is an alias. */
7886 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7887 choke me
7888 #else
7889 $ac_func();
7890 #endif
7892 ; return 0; }
7894 if { (eval echo configure:7895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7895 rm -rf conftest*
7896 eval "ac_cv_func_$ac_func=yes"
7897 else
7898 echo "configure: failed program was:" >&5
7899 cat conftest.$ac_ext >&5
7900 rm -rf conftest*
7901 eval "ac_cv_func_$ac_func=no"
7903 rm -f conftest*
7906 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7907 echo "$ac_t""yes" 1>&6
7908 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7909 cat >> confdefs.h <<EOF
7910 #define $ac_tr_func 1
7913 else
7914 echo "$ac_t""no" 1>&6
7916 done
7919 esac
7922 case "$LIBS" in
7923 *-lsecurity*) for ac_func in getprpwnam
7925 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7926 echo "configure:7927: checking for $ac_func" >&5
7927 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7928 echo $ac_n "(cached) $ac_c" 1>&6
7929 else
7930 cat > conftest.$ac_ext <<EOF
7931 #line 7932 "configure"
7932 #include "confdefs.h"
7933 /* System header to define __stub macros and hopefully few prototypes,
7934 which can conflict with char $ac_func(); below. */
7935 #include <assert.h>
7936 /* Override any gcc2 internal prototype to avoid an error. */
7937 /* We use char because int might match the return type of a gcc2
7938 builtin and then its argument prototype would still apply. */
7939 char $ac_func();
7941 int main() {
7943 /* The GNU C library defines this for functions which it implements
7944 to always fail with ENOSYS. Some functions are actually named
7945 something starting with __ and the normal name is an alias. */
7946 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7947 choke me
7948 #else
7949 $ac_func();
7950 #endif
7952 ; return 0; }
7954 if { (eval echo configure:7955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7955 rm -rf conftest*
7956 eval "ac_cv_func_$ac_func=yes"
7957 else
7958 echo "configure: failed program was:" >&5
7959 cat conftest.$ac_ext >&5
7960 rm -rf conftest*
7961 eval "ac_cv_func_$ac_func=no"
7963 rm -f conftest*
7966 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7967 echo "$ac_t""yes" 1>&6
7968 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7969 cat >> confdefs.h <<EOF
7970 #define $ac_tr_func 1
7973 else
7974 echo "$ac_t""no" 1>&6
7976 done
7978 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
7979 echo "configure:7980: checking for getprpwnam in -lsecurity" >&5
7980 ac_lib_var=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
7981 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7982 echo $ac_n "(cached) $ac_c" 1>&6
7983 else
7984 ac_save_LIBS="$LIBS"
7985 LIBS="-lsecurity $LIBS"
7986 cat > conftest.$ac_ext <<EOF
7987 #line 7988 "configure"
7988 #include "confdefs.h"
7989 /* Override any gcc2 internal prototype to avoid an error. */
7990 /* We use char because int might match the return type of a gcc2
7991 builtin and then its argument prototype would still apply. */
7992 char getprpwnam();
7994 int main() {
7995 getprpwnam()
7996 ; return 0; }
7998 if { (eval echo configure:7999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7999 rm -rf conftest*
8000 eval "ac_cv_lib_$ac_lib_var=yes"
8001 else
8002 echo "configure: failed program was:" >&5
8003 cat conftest.$ac_ext >&5
8004 rm -rf conftest*
8005 eval "ac_cv_lib_$ac_lib_var=no"
8007 rm -f conftest*
8008 LIBS="$ac_save_LIBS"
8011 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8012 echo "$ac_t""yes" 1>&6
8013 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8014 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8015 cat >> confdefs.h <<EOF
8016 #define $ac_tr_lib 1
8019 LIBS="-lsecurity $LIBS"
8021 else
8022 echo "$ac_t""no" 1>&6
8025 for ac_func in getprpwnam
8027 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8028 echo "configure:8029: checking for $ac_func" >&5
8029 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8030 echo $ac_n "(cached) $ac_c" 1>&6
8031 else
8032 cat > conftest.$ac_ext <<EOF
8033 #line 8034 "configure"
8034 #include "confdefs.h"
8035 /* System header to define __stub macros and hopefully few prototypes,
8036 which can conflict with char $ac_func(); below. */
8037 #include <assert.h>
8038 /* Override any gcc2 internal prototype to avoid an error. */
8039 /* We use char because int might match the return type of a gcc2
8040 builtin and then its argument prototype would still apply. */
8041 char $ac_func();
8043 int main() {
8045 /* The GNU C library defines this for functions which it implements
8046 to always fail with ENOSYS. Some functions are actually named
8047 something starting with __ and the normal name is an alias. */
8048 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8049 choke me
8050 #else
8051 $ac_func();
8052 #endif
8054 ; return 0; }
8056 if { (eval echo configure:8057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8057 rm -rf conftest*
8058 eval "ac_cv_func_$ac_func=yes"
8059 else
8060 echo "configure: failed program was:" >&5
8061 cat conftest.$ac_ext >&5
8062 rm -rf conftest*
8063 eval "ac_cv_func_$ac_func=no"
8065 rm -f conftest*
8068 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8069 echo "$ac_t""yes" 1>&6
8070 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8071 cat >> confdefs.h <<EOF
8072 #define $ac_tr_func 1
8075 else
8076 echo "$ac_t""no" 1>&6
8078 done
8081 esac
8083 case "$LIBS" in
8084 *-lsec*) for ac_func in getprpwnam
8086 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8087 echo "configure:8088: checking for $ac_func" >&5
8088 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8089 echo $ac_n "(cached) $ac_c" 1>&6
8090 else
8091 cat > conftest.$ac_ext <<EOF
8092 #line 8093 "configure"
8093 #include "confdefs.h"
8094 /* System header to define __stub macros and hopefully few prototypes,
8095 which can conflict with char $ac_func(); below. */
8096 #include <assert.h>
8097 /* Override any gcc2 internal prototype to avoid an error. */
8098 /* We use char because int might match the return type of a gcc2
8099 builtin and then its argument prototype would still apply. */
8100 char $ac_func();
8102 int main() {
8104 /* The GNU C library defines this for functions which it implements
8105 to always fail with ENOSYS. Some functions are actually named
8106 something starting with __ and the normal name is an alias. */
8107 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8108 choke me
8109 #else
8110 $ac_func();
8111 #endif
8113 ; return 0; }
8115 if { (eval echo configure:8116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8116 rm -rf conftest*
8117 eval "ac_cv_func_$ac_func=yes"
8118 else
8119 echo "configure: failed program was:" >&5
8120 cat conftest.$ac_ext >&5
8121 rm -rf conftest*
8122 eval "ac_cv_func_$ac_func=no"
8124 rm -f conftest*
8127 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8128 echo "$ac_t""yes" 1>&6
8129 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8130 cat >> confdefs.h <<EOF
8131 #define $ac_tr_func 1
8134 else
8135 echo "$ac_t""no" 1>&6
8137 done
8139 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
8140 echo "configure:8141: checking for getprpwnam in -lsec" >&5
8141 ac_lib_var=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
8142 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8143 echo $ac_n "(cached) $ac_c" 1>&6
8144 else
8145 ac_save_LIBS="$LIBS"
8146 LIBS="-lsec $LIBS"
8147 cat > conftest.$ac_ext <<EOF
8148 #line 8149 "configure"
8149 #include "confdefs.h"
8150 /* Override any gcc2 internal prototype to avoid an error. */
8151 /* We use char because int might match the return type of a gcc2
8152 builtin and then its argument prototype would still apply. */
8153 char getprpwnam();
8155 int main() {
8156 getprpwnam()
8157 ; return 0; }
8159 if { (eval echo configure:8160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8160 rm -rf conftest*
8161 eval "ac_cv_lib_$ac_lib_var=yes"
8162 else
8163 echo "configure: failed program was:" >&5
8164 cat conftest.$ac_ext >&5
8165 rm -rf conftest*
8166 eval "ac_cv_lib_$ac_lib_var=no"
8168 rm -f conftest*
8169 LIBS="$ac_save_LIBS"
8172 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8173 echo "$ac_t""yes" 1>&6
8174 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8175 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8176 cat >> confdefs.h <<EOF
8177 #define $ac_tr_lib 1
8180 LIBS="-lsec $LIBS"
8182 else
8183 echo "$ac_t""no" 1>&6
8186 for ac_func in getprpwnam
8188 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8189 echo "configure:8190: checking for $ac_func" >&5
8190 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8191 echo $ac_n "(cached) $ac_c" 1>&6
8192 else
8193 cat > conftest.$ac_ext <<EOF
8194 #line 8195 "configure"
8195 #include "confdefs.h"
8196 /* System header to define __stub macros and hopefully few prototypes,
8197 which can conflict with char $ac_func(); below. */
8198 #include <assert.h>
8199 /* Override any gcc2 internal prototype to avoid an error. */
8200 /* We use char because int might match the return type of a gcc2
8201 builtin and then its argument prototype would still apply. */
8202 char $ac_func();
8204 int main() {
8206 /* The GNU C library defines this for functions which it implements
8207 to always fail with ENOSYS. Some functions are actually named
8208 something starting with __ and the normal name is an alias. */
8209 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8210 choke me
8211 #else
8212 $ac_func();
8213 #endif
8215 ; return 0; }
8217 if { (eval echo configure:8218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8218 rm -rf conftest*
8219 eval "ac_cv_func_$ac_func=yes"
8220 else
8221 echo "configure: failed program was:" >&5
8222 cat conftest.$ac_ext >&5
8223 rm -rf conftest*
8224 eval "ac_cv_func_$ac_func=no"
8226 rm -f conftest*
8229 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8230 echo "$ac_t""yes" 1>&6
8231 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8232 cat >> confdefs.h <<EOF
8233 #define $ac_tr_func 1
8236 else
8237 echo "$ac_t""no" 1>&6
8239 done
8242 esac
8245 # this bit needs to be modified for each OS that is suported by
8246 # smbwrapper. You need to specify how to created a shared library and
8247 # how to compile C code to produce PIC object files
8249 # these are the defaults, good for lots of systems
8250 HOST_OS="$host_os"
8251 LDSHFLAGS="-shared"
8252 PICFLAG=""
8253 PICSUFFIX="po.o"
8254 SHLIBEXT="so"
8255 # Assume non-shared by default and override below
8256 BLDSHARED="false"
8258 # and these are for particular systems
8259 case "$host_os" in
8260 *linux*) cat >> confdefs.h <<\EOF
8261 #define LINUX 1
8264 BLDSHARED="true"
8265 LDSHFLAGS="-shared"
8266 PICFLAG="-fPIC"
8268 *solaris*) cat >> confdefs.h <<\EOF
8269 #define SUNOS5 1
8273 *sunos*) cat >> confdefs.h <<\EOF
8274 #define SUNOS4 1
8278 *bsd*) LDSHFLAGS="-shared -Bshareable"
8280 *irix*) cat >> confdefs.h <<\EOF
8281 #define IRIX 1
8284 case "$host_os" in
8285 *irix6*) cat >> confdefs.h <<\EOF
8286 #define IRIX6 1
8290 esac
8291 ATTEMPT_WRAP32_BUILD=yes
8293 *aix*) cat >> confdefs.h <<\EOF
8294 #define AIX 1
8297 # AIX is too ugly for now
8299 *hpux*) cat >> confdefs.h <<\EOF
8300 #define HPUX 1
8303 SHLIBEXT="sl"
8304 # Use special PIC flags for the native HP-UX compiler.
8305 if test $ac_cv_prog_cc_Ae = yes; then
8306 LDSHFLAGS="-b"
8307 PICFLAG="+z"
8310 *qnx*) cat >> confdefs.h <<\EOF
8311 #define QNX 1
8314 *osf*) cat >> confdefs.h <<\EOF
8315 #define OSF1 1
8318 *sco*) cat >> confdefs.h <<\EOF
8319 #define SCO 1
8322 *next2*) cat >> confdefs.h <<\EOF
8323 #define NEXT2 1
8326 *dgux*) # Extract the first word of "groff", so it can be a program name with args.
8327 set dummy groff; ac_word=$2
8328 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8329 echo "configure:8330: checking for $ac_word" >&5
8330 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
8331 echo $ac_n "(cached) $ac_c" 1>&6
8332 else
8333 if test -n "$ROFF"; then
8334 ac_cv_prog_ROFF="$ROFF" # Let the user override the test.
8335 else
8336 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8337 ac_dummy="$PATH"
8338 for ac_dir in $ac_dummy; do
8339 test -z "$ac_dir" && ac_dir=.
8340 if test -f $ac_dir/$ac_word; then
8341 ac_cv_prog_ROFF="groff -etpsR -Tascii -man"
8342 break
8344 done
8345 IFS="$ac_save_ifs"
8348 ROFF="$ac_cv_prog_ROFF"
8349 if test -n "$ROFF"; then
8350 echo "$ac_t""$ROFF" 1>&6
8351 else
8352 echo "$ac_t""no" 1>&6
8355 *sysv4*)
8356 case "$host" in
8357 *-univel-*) if test "$GCC" != yes ; then
8358 cat >> confdefs.h <<\EOF
8359 #define HAVE_MEMSET 1
8363 LDSHFLAGS="-G"
8365 *mips-sni-sysv4*) cat >> confdefs.h <<\EOF
8366 #define RELIANTUNIX 1
8369 esac
8371 *sysv5*)
8372 if test "$GCC" != yes ; then
8373 cat >> confdefs.h <<\EOF
8374 #define HAVE_MEMSET 1
8378 LDSHFLAGS="-G"
8380 esac
8382 # try to work out how to produce pic code with this compiler
8383 echo $ac_n "checking whether ${CC-cc} accepts -fpic""... $ac_c" 1>&6
8384 echo "configure:8385: checking whether ${CC-cc} accepts -fpic" >&5
8385 if eval "test \"`echo '$''{'ac_cv_prog_cc_fpic'+set}'`\" = set"; then
8386 echo $ac_n "(cached) $ac_c" 1>&6
8387 else
8388 echo 'void f(){}' > conftest.c
8389 if test -z "`${CC-cc} -fpic -c conftest.c 2>&1`"; then
8390 ac_cv_prog_cc_fpic=yes
8391 else
8392 ac_cv_prog_cc_fpic=no
8394 rm -f conftest*
8398 echo "$ac_t""$ac_cv_prog_cc_fpic" 1>&6
8399 if test $ac_cv_prog_cc_fpic = yes; then
8400 PICFLAG="-fpic";
8402 if test x$PICFLAG = x; then
8403 echo $ac_n "checking whether ${CC-cc} accepts -KPIC""... $ac_c" 1>&6
8404 echo "configure:8405: checking whether ${CC-cc} accepts -KPIC" >&5
8405 if eval "test \"`echo '$''{'ac_cv_prog_cc_KPIC'+set}'`\" = set"; then
8406 echo $ac_n "(cached) $ac_c" 1>&6
8407 else
8408 echo 'void f(){}' > conftest.c
8409 if test -z "`${CC-cc} -KPIC -c conftest.c 2>&1`"; then
8410 ac_cv_prog_cc_KPIC=yes
8411 else
8412 ac_cv_prog_cc_KPIC=no
8414 rm -f conftest*
8418 echo "$ac_t""$ac_cv_prog_cc_KPIC" 1>&6
8419 if test $ac_cv_prog_cc_KPIC = yes; then
8420 PICFLAG="-KPIC";
8423 if test x$PICFLAG = x; then
8424 echo $ac_n "checking whether ${CC-cc} accepts -Kpic""... $ac_c" 1>&6
8425 echo "configure:8426: checking whether ${CC-cc} accepts -Kpic" >&5
8426 if eval "test \"`echo '$''{'ac_cv_prog_cc_Kpic'+set}'`\" = set"; then
8427 echo $ac_n "(cached) $ac_c" 1>&6
8428 else
8429 echo 'void f(){}' > conftest.c
8430 if test -z "`${CC-cc} -Kpic -c conftest.c 2>&1`"; then
8431 ac_cv_prog_cc_Kpic=yes
8432 else
8433 ac_cv_prog_cc_Kpic=no
8435 rm -f conftest*
8439 echo "$ac_t""$ac_cv_prog_cc_Kpic" 1>&6
8440 if test $ac_cv_prog_cc_Kpic = yes; then
8441 PICFLAG="-Kpic";
8445 ################
8447 echo $ac_n "checking for long long""... $ac_c" 1>&6
8448 echo "configure:8449: checking for long long" >&5
8449 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
8450 echo $ac_n "(cached) $ac_c" 1>&6
8451 else
8453 if test "$cross_compiling" = yes; then
8454 samba_cv_have_longlong=cross
8455 else
8456 cat > conftest.$ac_ext <<EOF
8457 #line 8458 "configure"
8458 #include "confdefs.h"
8459 #include <stdio.h>
8460 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
8462 if { (eval echo configure:8463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8463 then
8464 samba_cv_have_longlong=yes
8465 else
8466 echo "configure: failed program was:" >&5
8467 cat conftest.$ac_ext >&5
8468 rm -fr conftest*
8469 samba_cv_have_longlong=no
8471 rm -fr conftest*
8476 echo "$ac_t""$samba_cv_have_longlong" 1>&6
8477 if test x"$samba_cv_have_longlong" = x"yes"; then
8478 cat >> confdefs.h <<\EOF
8479 #define HAVE_LONGLONG 1
8485 # Check if the compiler supports the LL prefix on long long integers.
8486 # AIX needs this.
8488 echo $ac_n "checking for LL suffix on long long integers""... $ac_c" 1>&6
8489 echo "configure:8490: checking for LL suffix on long long integers" >&5
8490 if eval "test \"`echo '$''{'samba_cv_compiler_supports_ll'+set}'`\" = set"; then
8491 echo $ac_n "(cached) $ac_c" 1>&6
8492 else
8494 cat > conftest.$ac_ext <<EOF
8495 #line 8496 "configure"
8496 #include "confdefs.h"
8497 #include <stdio.h>
8498 int main() {
8499 long long i = 0x8000000000LL
8500 ; return 0; }
8502 if { (eval echo configure:8503: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8503 rm -rf conftest*
8504 samba_cv_compiler_supports_ll=yes
8505 else
8506 echo "configure: failed program was:" >&5
8507 cat conftest.$ac_ext >&5
8508 rm -rf conftest*
8509 samba_cv_compiler_supports_ll=no
8511 rm -f conftest*
8514 echo "$ac_t""$samba_cv_compiler_supports_ll" 1>&6
8515 if test x"$samba_cv_compiler_supports_ll" = x"yes"; then
8516 cat >> confdefs.h <<\EOF
8517 #define COMPILER_SUPPORTS_LL 1
8523 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
8524 echo "configure:8525: checking for 64 bit off_t" >&5
8525 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
8526 echo $ac_n "(cached) $ac_c" 1>&6
8527 else
8529 if test "$cross_compiling" = yes; then
8530 samba_cv_SIZEOF_OFF_T=cross
8531 else
8532 cat > conftest.$ac_ext <<EOF
8533 #line 8534 "configure"
8534 #include "confdefs.h"
8535 #include <stdio.h>
8536 #include <sys/stat.h>
8537 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
8539 if { (eval echo configure:8540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8540 then
8541 samba_cv_SIZEOF_OFF_T=yes
8542 else
8543 echo "configure: failed program was:" >&5
8544 cat conftest.$ac_ext >&5
8545 rm -fr conftest*
8546 samba_cv_SIZEOF_OFF_T=no
8548 rm -fr conftest*
8553 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
8554 if test x"$samba_cv_SIZEOF_OFF_T" = x"yes"; then
8555 cat >> confdefs.h <<\EOF
8556 #define SIZEOF_OFF_T 8
8561 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
8562 echo "configure:8563: checking for off64_t" >&5
8563 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
8564 echo $ac_n "(cached) $ac_c" 1>&6
8565 else
8567 if test "$cross_compiling" = yes; then
8568 samba_cv_HAVE_OFF64_T=cross
8569 else
8570 cat > conftest.$ac_ext <<EOF
8571 #line 8572 "configure"
8572 #include "confdefs.h"
8574 #if defined(HAVE_UNISTD_H)
8575 #include <unistd.h>
8576 #endif
8577 #include <stdio.h>
8578 #include <sys/stat.h>
8579 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8581 if { (eval echo configure:8582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8582 then
8583 samba_cv_HAVE_OFF64_T=yes
8584 else
8585 echo "configure: failed program was:" >&5
8586 cat conftest.$ac_ext >&5
8587 rm -fr conftest*
8588 samba_cv_HAVE_OFF64_T=no
8590 rm -fr conftest*
8595 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
8596 if test x"$samba_cv_HAVE_OFF64_T" = x"yes"; then
8597 cat >> confdefs.h <<\EOF
8598 #define HAVE_OFF64_T 1
8603 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
8604 echo "configure:8605: checking for 64 bit ino_t" >&5
8605 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
8606 echo $ac_n "(cached) $ac_c" 1>&6
8607 else
8609 if test "$cross_compiling" = yes; then
8610 samba_cv_SIZEOF_INO_T=cross
8611 else
8612 cat > conftest.$ac_ext <<EOF
8613 #line 8614 "configure"
8614 #include "confdefs.h"
8615 #include <stdio.h>
8616 #include <sys/stat.h>
8617 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
8619 if { (eval echo configure:8620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8620 then
8621 samba_cv_SIZEOF_INO_T=yes
8622 else
8623 echo "configure: failed program was:" >&5
8624 cat conftest.$ac_ext >&5
8625 rm -fr conftest*
8626 samba_cv_SIZEOF_INO_T=no
8628 rm -fr conftest*
8633 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
8634 if test x"$samba_cv_SIZEOF_INO_T" = x"yes"; then
8635 cat >> confdefs.h <<\EOF
8636 #define SIZEOF_INO_T 8
8641 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
8642 echo "configure:8643: checking for ino64_t" >&5
8643 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
8644 echo $ac_n "(cached) $ac_c" 1>&6
8645 else
8647 if test "$cross_compiling" = yes; then
8648 samba_cv_HAVE_INO64_T=cross
8649 else
8650 cat > conftest.$ac_ext <<EOF
8651 #line 8652 "configure"
8652 #include "confdefs.h"
8654 #if defined(HAVE_UNISTD_H)
8655 #include <unistd.h>
8656 #endif
8657 #include <stdio.h>
8658 #include <sys/stat.h>
8659 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8661 if { (eval echo configure:8662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8662 then
8663 samba_cv_HAVE_INO64_T=yes
8664 else
8665 echo "configure: failed program was:" >&5
8666 cat conftest.$ac_ext >&5
8667 rm -fr conftest*
8668 samba_cv_HAVE_INO64_T=no
8670 rm -fr conftest*
8675 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
8676 if test x"$samba_cv_HAVE_INO64_T" = x"yes"; then
8677 cat >> confdefs.h <<\EOF
8678 #define HAVE_INO64_T 1
8683 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
8684 echo "configure:8685: checking for struct dirent64" >&5
8685 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
8686 echo $ac_n "(cached) $ac_c" 1>&6
8687 else
8689 cat > conftest.$ac_ext <<EOF
8690 #line 8691 "configure"
8691 #include "confdefs.h"
8693 #if defined(HAVE_UNISTD_H)
8694 #include <unistd.h>
8695 #endif
8696 #include <sys/types.h>
8697 #include <dirent.h>
8698 int main() {
8699 struct dirent64 de;
8700 ; return 0; }
8702 if { (eval echo configure:8703: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8703 rm -rf conftest*
8704 samba_cv_HAVE_STRUCT_DIRENT64=yes
8705 else
8706 echo "configure: failed program was:" >&5
8707 cat conftest.$ac_ext >&5
8708 rm -rf conftest*
8709 samba_cv_HAVE_STRUCT_DIRENT64=no
8711 rm -f conftest*
8714 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
8715 if test x"$samba_cv_HAVE_STRUCT_DIRENT64" = x"yes"; then
8716 cat >> confdefs.h <<\EOF
8717 #define HAVE_STRUCT_DIRENT64 1
8722 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
8723 echo "configure:8724: checking for unsigned char" >&5
8724 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
8725 echo $ac_n "(cached) $ac_c" 1>&6
8726 else
8728 if test "$cross_compiling" = yes; then
8729 samba_cv_HAVE_UNSIGNED_CHAR=cross
8730 else
8731 cat > conftest.$ac_ext <<EOF
8732 #line 8733 "configure"
8733 #include "confdefs.h"
8734 #include <stdio.h>
8735 main() { char c; c=250; exit((c > 0)?0:1); }
8737 if { (eval echo configure:8738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8738 then
8739 samba_cv_HAVE_UNSIGNED_CHAR=yes
8740 else
8741 echo "configure: failed program was:" >&5
8742 cat conftest.$ac_ext >&5
8743 rm -fr conftest*
8744 samba_cv_HAVE_UNSIGNED_CHAR=no
8746 rm -fr conftest*
8751 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
8752 if test x"$samba_cv_HAVE_UNSIGNED_CHAR" = x"yes"; then
8753 cat >> confdefs.h <<\EOF
8754 #define HAVE_UNSIGNED_CHAR 1
8759 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
8760 echo "configure:8761: checking for sin_len in sock" >&5
8761 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
8762 echo $ac_n "(cached) $ac_c" 1>&6
8763 else
8765 cat > conftest.$ac_ext <<EOF
8766 #line 8767 "configure"
8767 #include "confdefs.h"
8768 #include <sys/types.h>
8769 #include <sys/socket.h>
8770 #include <netinet/in.h>
8771 int main() {
8772 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
8773 ; return 0; }
8775 if { (eval echo configure:8776: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8776 rm -rf conftest*
8777 samba_cv_HAVE_SOCK_SIN_LEN=yes
8778 else
8779 echo "configure: failed program was:" >&5
8780 cat conftest.$ac_ext >&5
8781 rm -rf conftest*
8782 samba_cv_HAVE_SOCK_SIN_LEN=no
8784 rm -f conftest*
8787 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
8788 if test x"$samba_cv_HAVE_SOCK_SIN_LEN" = x"yes"; then
8789 cat >> confdefs.h <<\EOF
8790 #define HAVE_SOCK_SIN_LEN 1
8795 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
8796 echo "configure:8797: checking whether seekdir returns void" >&5
8797 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
8798 echo $ac_n "(cached) $ac_c" 1>&6
8799 else
8801 cat > conftest.$ac_ext <<EOF
8802 #line 8803 "configure"
8803 #include "confdefs.h"
8804 #include <sys/types.h>
8805 #include <dirent.h>
8806 void seekdir(DIR *d, long loc) { return; }
8807 int main() {
8808 return 0;
8809 ; return 0; }
8811 if { (eval echo configure:8812: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8812 rm -rf conftest*
8813 samba_cv_SEEKDIR_RETURNS_VOID=yes
8814 else
8815 echo "configure: failed program was:" >&5
8816 cat conftest.$ac_ext >&5
8817 rm -rf conftest*
8818 samba_cv_SEEKDIR_RETURNS_VOID=no
8820 rm -f conftest*
8823 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
8824 if test x"$samba_cv_SEEKDIR_RETURNS_VOID" = x"yes"; then
8825 cat >> confdefs.h <<\EOF
8826 #define SEEKDIR_RETURNS_VOID 1
8831 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
8832 echo "configure:8833: checking for __FILE__ macro" >&5
8833 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
8834 echo $ac_n "(cached) $ac_c" 1>&6
8835 else
8837 cat > conftest.$ac_ext <<EOF
8838 #line 8839 "configure"
8839 #include "confdefs.h"
8840 #include <stdio.h>
8841 int main() {
8842 printf("%s\n", __FILE__);
8843 ; return 0; }
8845 if { (eval echo configure:8846: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8846 rm -rf conftest*
8847 samba_cv_HAVE_FILE_MACRO=yes
8848 else
8849 echo "configure: failed program was:" >&5
8850 cat conftest.$ac_ext >&5
8851 rm -rf conftest*
8852 samba_cv_HAVE_FILE_MACRO=no
8854 rm -f conftest*
8857 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
8858 if test x"$samba_cv_HAVE_FILE_MACRO" = x"yes"; then
8859 cat >> confdefs.h <<\EOF
8860 #define HAVE_FILE_MACRO 1
8865 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
8866 echo "configure:8867: checking for __FUNCTION__ macro" >&5
8867 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
8868 echo $ac_n "(cached) $ac_c" 1>&6
8869 else
8871 cat > conftest.$ac_ext <<EOF
8872 #line 8873 "configure"
8873 #include "confdefs.h"
8874 #include <stdio.h>
8875 int main() {
8876 printf("%s\n", __FUNCTION__);
8877 ; return 0; }
8879 if { (eval echo configure:8880: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8880 rm -rf conftest*
8881 samba_cv_HAVE_FUNCTION_MACRO=yes
8882 else
8883 echo "configure: failed program was:" >&5
8884 cat conftest.$ac_ext >&5
8885 rm -rf conftest*
8886 samba_cv_HAVE_FUNCTION_MACRO=no
8888 rm -f conftest*
8891 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
8892 if test x"$samba_cv_HAVE_FUNCTION_MACRO" = x"yes"; then
8893 cat >> confdefs.h <<\EOF
8894 #define HAVE_FUNCTION_MACRO 1
8899 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
8900 echo "configure:8901: checking if gettimeofday takes tz argument" >&5
8901 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
8902 echo $ac_n "(cached) $ac_c" 1>&6
8903 else
8905 if test "$cross_compiling" = yes; then
8906 samba_cv_HAVE_GETTIMEOFDAY_TZ=cross
8907 else
8908 cat > conftest.$ac_ext <<EOF
8909 #line 8910 "configure"
8910 #include "confdefs.h"
8912 #include <sys/time.h>
8913 #include <unistd.h>
8914 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
8916 if { (eval echo configure:8917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8917 then
8918 samba_cv_HAVE_GETTIMEOFDAY_TZ=yes
8919 else
8920 echo "configure: failed program was:" >&5
8921 cat conftest.$ac_ext >&5
8922 rm -fr conftest*
8923 samba_cv_HAVE_GETTIMEOFDAY_TZ=no
8925 rm -fr conftest*
8930 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
8931 if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
8932 cat >> confdefs.h <<\EOF
8933 #define HAVE_GETTIMEOFDAY_TZ 1
8938 echo $ac_n "checking for C99 vsnprintf""... $ac_c" 1>&6
8939 echo "configure:8940: checking for C99 vsnprintf" >&5
8940 if eval "test \"`echo '$''{'samba_cv_HAVE_C99_VSNPRINTF'+set}'`\" = set"; then
8941 echo $ac_n "(cached) $ac_c" 1>&6
8942 else
8944 if test "$cross_compiling" = yes; then
8945 samba_cv_HAVE_C99_VSNPRINTF=cross
8946 else
8947 cat > conftest.$ac_ext <<EOF
8948 #line 8949 "configure"
8949 #include "confdefs.h"
8951 #include <sys/types.h>
8952 #include <stdarg.h>
8953 void foo(const char *format, ...) {
8954 va_list ap;
8955 int len;
8956 char buf[5];
8958 va_start(ap, format);
8959 len = vsnprintf(0, 0, format, ap);
8960 va_end(ap);
8961 if (len != 5) exit(1);
8963 if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
8965 exit(0);
8967 main() { foo("hello"); }
8970 if { (eval echo configure:8971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8971 then
8972 samba_cv_HAVE_C99_VSNPRINTF=yes
8973 else
8974 echo "configure: failed program was:" >&5
8975 cat conftest.$ac_ext >&5
8976 rm -fr conftest*
8977 samba_cv_HAVE_C99_VSNPRINTF=no
8979 rm -fr conftest*
8984 echo "$ac_t""$samba_cv_HAVE_C99_VSNPRINTF" 1>&6
8985 if test x"$samba_cv_HAVE_C99_VSNPRINTF" = x"yes"; then
8986 cat >> confdefs.h <<\EOF
8987 #define HAVE_C99_VSNPRINTF 1
8992 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
8993 echo "configure:8994: checking for broken readdir" >&5
8994 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
8995 echo $ac_n "(cached) $ac_c" 1>&6
8996 else
8998 if test "$cross_compiling" = yes; then
8999 samba_cv_HAVE_BROKEN_READDIR=cross
9000 else
9001 cat > conftest.$ac_ext <<EOF
9002 #line 9003 "configure"
9003 #include "confdefs.h"
9004 #include <sys/types.h>
9005 #include <dirent.h>
9006 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
9007 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
9008 di->d_name[0] == 0) exit(0); exit(1);}
9010 if { (eval echo configure:9011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9011 then
9012 samba_cv_HAVE_BROKEN_READDIR=yes
9013 else
9014 echo "configure: failed program was:" >&5
9015 cat conftest.$ac_ext >&5
9016 rm -fr conftest*
9017 samba_cv_HAVE_BROKEN_READDIR=no
9019 rm -fr conftest*
9024 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
9025 if test x"$samba_cv_HAVE_BROKEN_READDIR" = x"yes"; then
9026 cat >> confdefs.h <<\EOF
9027 #define HAVE_BROKEN_READDIR 1
9032 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
9033 echo "configure:9034: checking for utimbuf" >&5
9034 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
9035 echo $ac_n "(cached) $ac_c" 1>&6
9036 else
9038 cat > conftest.$ac_ext <<EOF
9039 #line 9040 "configure"
9040 #include "confdefs.h"
9041 #include <sys/types.h>
9042 #include <utime.h>
9043 int main() {
9044 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
9045 ; return 0; }
9047 if { (eval echo configure:9048: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9048 rm -rf conftest*
9049 samba_cv_HAVE_UTIMBUF=yes
9050 else
9051 echo "configure: failed program was:" >&5
9052 cat conftest.$ac_ext >&5
9053 rm -rf conftest*
9054 samba_cv_HAVE_UTIMBUF=no
9056 rm -f conftest*
9059 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
9060 if test x"$samba_cv_HAVE_UTIMBUF" = x"yes"; then
9061 cat >> confdefs.h <<\EOF
9062 #define HAVE_UTIMBUF 1
9068 for ac_func in pututline pututxline updwtmp updwtmpx getutmpx
9070 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9071 echo "configure:9072: checking for $ac_func" >&5
9072 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9073 echo $ac_n "(cached) $ac_c" 1>&6
9074 else
9075 cat > conftest.$ac_ext <<EOF
9076 #line 9077 "configure"
9077 #include "confdefs.h"
9078 /* System header to define __stub macros and hopefully few prototypes,
9079 which can conflict with char $ac_func(); below. */
9080 #include <assert.h>
9081 /* Override any gcc2 internal prototype to avoid an error. */
9082 /* We use char because int might match the return type of a gcc2
9083 builtin and then its argument prototype would still apply. */
9084 char $ac_func();
9086 int main() {
9088 /* The GNU C library defines this for functions which it implements
9089 to always fail with ENOSYS. Some functions are actually named
9090 something starting with __ and the normal name is an alias. */
9091 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9092 choke me
9093 #else
9094 $ac_func();
9095 #endif
9097 ; return 0; }
9099 if { (eval echo configure:9100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9100 rm -rf conftest*
9101 eval "ac_cv_func_$ac_func=yes"
9102 else
9103 echo "configure: failed program was:" >&5
9104 cat conftest.$ac_ext >&5
9105 rm -rf conftest*
9106 eval "ac_cv_func_$ac_func=no"
9108 rm -f conftest*
9111 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9112 echo "$ac_t""yes" 1>&6
9113 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9114 cat >> confdefs.h <<EOF
9115 #define $ac_tr_func 1
9118 else
9119 echo "$ac_t""no" 1>&6
9121 done
9124 echo $ac_n "checking for ut_name in utmp""... $ac_c" 1>&6
9125 echo "configure:9126: checking for ut_name in utmp" >&5
9126 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_NAME'+set}'`\" = set"; then
9127 echo $ac_n "(cached) $ac_c" 1>&6
9128 else
9130 cat > conftest.$ac_ext <<EOF
9131 #line 9132 "configure"
9132 #include "confdefs.h"
9133 #include <sys/types.h>
9134 #include <utmp.h>
9135 int main() {
9136 struct utmp ut; ut.ut_name[0] = 'a';
9137 ; return 0; }
9139 if { (eval echo configure:9140: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9140 rm -rf conftest*
9141 samba_cv_HAVE_UT_UT_NAME=yes
9142 else
9143 echo "configure: failed program was:" >&5
9144 cat conftest.$ac_ext >&5
9145 rm -rf conftest*
9146 samba_cv_HAVE_UT_UT_NAME=no
9148 rm -f conftest*
9151 echo "$ac_t""$samba_cv_HAVE_UT_UT_NAME" 1>&6
9152 if test x"$samba_cv_HAVE_UT_UT_NAME" = x"yes"; then
9153 cat >> confdefs.h <<\EOF
9154 #define HAVE_UT_UT_NAME 1
9159 echo $ac_n "checking for ut_user in utmp""... $ac_c" 1>&6
9160 echo "configure:9161: checking for ut_user in utmp" >&5
9161 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_USER'+set}'`\" = set"; then
9162 echo $ac_n "(cached) $ac_c" 1>&6
9163 else
9165 cat > conftest.$ac_ext <<EOF
9166 #line 9167 "configure"
9167 #include "confdefs.h"
9168 #include <sys/types.h>
9169 #include <utmp.h>
9170 int main() {
9171 struct utmp ut; ut.ut_user[0] = 'a';
9172 ; return 0; }
9174 if { (eval echo configure:9175: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9175 rm -rf conftest*
9176 samba_cv_HAVE_UT_UT_USER=yes
9177 else
9178 echo "configure: failed program was:" >&5
9179 cat conftest.$ac_ext >&5
9180 rm -rf conftest*
9181 samba_cv_HAVE_UT_UT_USER=no
9183 rm -f conftest*
9186 echo "$ac_t""$samba_cv_HAVE_UT_UT_USER" 1>&6
9187 if test x"$samba_cv_HAVE_UT_UT_USER" = x"yes"; then
9188 cat >> confdefs.h <<\EOF
9189 #define HAVE_UT_UT_USER 1
9194 echo $ac_n "checking for ut_id in utmp""... $ac_c" 1>&6
9195 echo "configure:9196: checking for ut_id in utmp" >&5
9196 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ID'+set}'`\" = set"; then
9197 echo $ac_n "(cached) $ac_c" 1>&6
9198 else
9200 cat > conftest.$ac_ext <<EOF
9201 #line 9202 "configure"
9202 #include "confdefs.h"
9203 #include <sys/types.h>
9204 #include <utmp.h>
9205 int main() {
9206 struct utmp ut; ut.ut_id[0] = 'a';
9207 ; return 0; }
9209 if { (eval echo configure:9210: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9210 rm -rf conftest*
9211 samba_cv_HAVE_UT_UT_ID=yes
9212 else
9213 echo "configure: failed program was:" >&5
9214 cat conftest.$ac_ext >&5
9215 rm -rf conftest*
9216 samba_cv_HAVE_UT_UT_ID=no
9218 rm -f conftest*
9221 echo "$ac_t""$samba_cv_HAVE_UT_UT_ID" 1>&6
9222 if test x"$samba_cv_HAVE_UT_UT_ID" = x"yes"; then
9223 cat >> confdefs.h <<\EOF
9224 #define HAVE_UT_UT_ID 1
9229 echo $ac_n "checking for ut_host in utmp""... $ac_c" 1>&6
9230 echo "configure:9231: checking for ut_host in utmp" >&5
9231 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_HOST'+set}'`\" = set"; then
9232 echo $ac_n "(cached) $ac_c" 1>&6
9233 else
9235 cat > conftest.$ac_ext <<EOF
9236 #line 9237 "configure"
9237 #include "confdefs.h"
9238 #include <sys/types.h>
9239 #include <utmp.h>
9240 int main() {
9241 struct utmp ut; ut.ut_host[0] = 'a';
9242 ; return 0; }
9244 if { (eval echo configure:9245: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9245 rm -rf conftest*
9246 samba_cv_HAVE_UT_UT_HOST=yes
9247 else
9248 echo "configure: failed program was:" >&5
9249 cat conftest.$ac_ext >&5
9250 rm -rf conftest*
9251 samba_cv_HAVE_UT_UT_HOST=no
9253 rm -f conftest*
9256 echo "$ac_t""$samba_cv_HAVE_UT_UT_HOST" 1>&6
9257 if test x"$samba_cv_HAVE_UT_UT_HOST" = x"yes"; then
9258 cat >> confdefs.h <<\EOF
9259 #define HAVE_UT_UT_HOST 1
9264 echo $ac_n "checking for ut_time in utmp""... $ac_c" 1>&6
9265 echo "configure:9266: checking for ut_time in utmp" >&5
9266 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TIME'+set}'`\" = set"; then
9267 echo $ac_n "(cached) $ac_c" 1>&6
9268 else
9270 cat > conftest.$ac_ext <<EOF
9271 #line 9272 "configure"
9272 #include "confdefs.h"
9273 #include <sys/types.h>
9274 #include <utmp.h>
9275 int main() {
9276 struct utmp ut; time_t t; ut.ut_time = t;
9277 ; return 0; }
9279 if { (eval echo configure:9280: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9280 rm -rf conftest*
9281 samba_cv_HAVE_UT_UT_TIME=yes
9282 else
9283 echo "configure: failed program was:" >&5
9284 cat conftest.$ac_ext >&5
9285 rm -rf conftest*
9286 samba_cv_HAVE_UT_UT_TIME=no
9288 rm -f conftest*
9291 echo "$ac_t""$samba_cv_HAVE_UT_UT_TIME" 1>&6
9292 if test x"$samba_cv_HAVE_UT_UT_TIME" = x"yes"; then
9293 cat >> confdefs.h <<\EOF
9294 #define HAVE_UT_UT_TIME 1
9299 echo $ac_n "checking for ut_tv in utmp""... $ac_c" 1>&6
9300 echo "configure:9301: checking for ut_tv in utmp" >&5
9301 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TV'+set}'`\" = set"; then
9302 echo $ac_n "(cached) $ac_c" 1>&6
9303 else
9305 cat > conftest.$ac_ext <<EOF
9306 #line 9307 "configure"
9307 #include "confdefs.h"
9308 #include <sys/types.h>
9309 #include <utmp.h>
9310 int main() {
9311 struct utmp ut; struct timeval tv; ut.ut_tv = tv;
9312 ; return 0; }
9314 if { (eval echo configure:9315: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9315 rm -rf conftest*
9316 samba_cv_HAVE_UT_UT_TV=yes
9317 else
9318 echo "configure: failed program was:" >&5
9319 cat conftest.$ac_ext >&5
9320 rm -rf conftest*
9321 samba_cv_HAVE_UT_UT_TV=no
9323 rm -f conftest*
9326 echo "$ac_t""$samba_cv_HAVE_UT_UT_TV" 1>&6
9327 if test x"$samba_cv_HAVE_UT_UT_TV" = x"yes"; then
9328 cat >> confdefs.h <<\EOF
9329 #define HAVE_UT_UT_TV 1
9334 echo $ac_n "checking for ut_type in utmp""... $ac_c" 1>&6
9335 echo "configure:9336: checking for ut_type in utmp" >&5
9336 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TYPE'+set}'`\" = set"; then
9337 echo $ac_n "(cached) $ac_c" 1>&6
9338 else
9340 cat > conftest.$ac_ext <<EOF
9341 #line 9342 "configure"
9342 #include "confdefs.h"
9343 #include <sys/types.h>
9344 #include <utmp.h>
9345 int main() {
9346 struct utmp ut; ut.ut_type = 0;
9347 ; return 0; }
9349 if { (eval echo configure:9350: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9350 rm -rf conftest*
9351 samba_cv_HAVE_UT_UT_TYPE=yes
9352 else
9353 echo "configure: failed program was:" >&5
9354 cat conftest.$ac_ext >&5
9355 rm -rf conftest*
9356 samba_cv_HAVE_UT_UT_TYPE=no
9358 rm -f conftest*
9361 echo "$ac_t""$samba_cv_HAVE_UT_UT_TYPE" 1>&6
9362 if test x"$samba_cv_HAVE_UT_UT_TYPE" = x"yes"; then
9363 cat >> confdefs.h <<\EOF
9364 #define HAVE_UT_UT_TYPE 1
9369 echo $ac_n "checking for ut_pid in utmp""... $ac_c" 1>&6
9370 echo "configure:9371: checking for ut_pid in utmp" >&5
9371 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_PID'+set}'`\" = set"; then
9372 echo $ac_n "(cached) $ac_c" 1>&6
9373 else
9375 cat > conftest.$ac_ext <<EOF
9376 #line 9377 "configure"
9377 #include "confdefs.h"
9378 #include <sys/types.h>
9379 #include <utmp.h>
9380 int main() {
9381 struct utmp ut; ut.ut_pid = 0;
9382 ; return 0; }
9384 if { (eval echo configure:9385: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9385 rm -rf conftest*
9386 samba_cv_HAVE_UT_UT_PID=yes
9387 else
9388 echo "configure: failed program was:" >&5
9389 cat conftest.$ac_ext >&5
9390 rm -rf conftest*
9391 samba_cv_HAVE_UT_UT_PID=no
9393 rm -f conftest*
9396 echo "$ac_t""$samba_cv_HAVE_UT_UT_PID" 1>&6
9397 if test x"$samba_cv_HAVE_UT_UT_PID" = x"yes"; then
9398 cat >> confdefs.h <<\EOF
9399 #define HAVE_UT_UT_PID 1
9404 echo $ac_n "checking for ut_exit in utmp""... $ac_c" 1>&6
9405 echo "configure:9406: checking for ut_exit in utmp" >&5
9406 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_EXIT'+set}'`\" = set"; then
9407 echo $ac_n "(cached) $ac_c" 1>&6
9408 else
9410 cat > conftest.$ac_ext <<EOF
9411 #line 9412 "configure"
9412 #include "confdefs.h"
9413 #include <sys/types.h>
9414 #include <utmp.h>
9415 int main() {
9416 struct utmp ut; ut.ut_exit.e_exit = 0;
9417 ; return 0; }
9419 if { (eval echo configure:9420: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9420 rm -rf conftest*
9421 samba_cv_HAVE_UT_UT_EXIT=yes
9422 else
9423 echo "configure: failed program was:" >&5
9424 cat conftest.$ac_ext >&5
9425 rm -rf conftest*
9426 samba_cv_HAVE_UT_UT_EXIT=no
9428 rm -f conftest*
9431 echo "$ac_t""$samba_cv_HAVE_UT_UT_EXIT" 1>&6
9432 if test x"$samba_cv_HAVE_UT_UT_EXIT" = x"yes"; then
9433 cat >> confdefs.h <<\EOF
9434 #define HAVE_UT_UT_EXIT 1
9439 echo $ac_n "checking for ut_addr in utmp""... $ac_c" 1>&6
9440 echo "configure:9441: checking for ut_addr in utmp" >&5
9441 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ADDR'+set}'`\" = set"; then
9442 echo $ac_n "(cached) $ac_c" 1>&6
9443 else
9445 cat > conftest.$ac_ext <<EOF
9446 #line 9447 "configure"
9447 #include "confdefs.h"
9448 #include <sys/types.h>
9449 #include <utmp.h>
9450 int main() {
9451 struct utmp ut; ut.ut_addr = 0;
9452 ; return 0; }
9454 if { (eval echo configure:9455: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9455 rm -rf conftest*
9456 samba_cv_HAVE_UT_UT_ADDR=yes
9457 else
9458 echo "configure: failed program was:" >&5
9459 cat conftest.$ac_ext >&5
9460 rm -rf conftest*
9461 samba_cv_HAVE_UT_UT_ADDR=no
9463 rm -f conftest*
9466 echo "$ac_t""$samba_cv_HAVE_UT_UT_ADDR" 1>&6
9467 if test x"$samba_cv_HAVE_UT_UT_ADDR" = x"yes"; then
9468 cat >> confdefs.h <<\EOF
9469 #define HAVE_UT_UT_ADDR 1
9474 if test x$ac_cv_func_pututline = xyes ; then
9475 echo $ac_n "checking whether pututline returns pointer""... $ac_c" 1>&6
9476 echo "configure:9477: checking whether pututline returns pointer" >&5
9477 if eval "test \"`echo '$''{'samba_cv_PUTUTLINE_RETURNS_UTMP'+set}'`\" = set"; then
9478 echo $ac_n "(cached) $ac_c" 1>&6
9479 else
9481 cat > conftest.$ac_ext <<EOF
9482 #line 9483 "configure"
9483 #include "confdefs.h"
9484 #include <sys/types.h>
9485 #include <utmp.h>
9486 int main() {
9487 struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
9488 ; return 0; }
9490 if { (eval echo configure:9491: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9491 rm -rf conftest*
9492 samba_cv_PUTUTLINE_RETURNS_UTMP=yes
9493 else
9494 echo "configure: failed program was:" >&5
9495 cat conftest.$ac_ext >&5
9496 rm -rf conftest*
9497 samba_cv_PUTUTLINE_RETURNS_UTMP=no
9499 rm -f conftest*
9502 echo "$ac_t""$samba_cv_PUTUTLINE_RETURNS_UTMP" 1>&6
9503 if test x"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x"yes"; then
9504 cat >> confdefs.h <<\EOF
9505 #define PUTUTLINE_RETURNS_UTMP 1
9511 echo $ac_n "checking for ut_syslen in utmpx""... $ac_c" 1>&6
9512 echo "configure:9513: checking for ut_syslen in utmpx" >&5
9513 if eval "test \"`echo '$''{'samba_cv_HAVE_UX_UT_SYSLEN'+set}'`\" = set"; then
9514 echo $ac_n "(cached) $ac_c" 1>&6
9515 else
9517 cat > conftest.$ac_ext <<EOF
9518 #line 9519 "configure"
9519 #include "confdefs.h"
9520 #include <sys/types.h>
9521 #include <utmpx.h>
9522 int main() {
9523 struct utmpx ux; ux.ut_syslen = 0;
9524 ; return 0; }
9526 if { (eval echo configure:9527: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9527 rm -rf conftest*
9528 samba_cv_HAVE_UX_UT_SYSLEN=yes
9529 else
9530 echo "configure: failed program was:" >&5
9531 cat conftest.$ac_ext >&5
9532 rm -rf conftest*
9533 samba_cv_HAVE_UX_UT_SYSLEN=no
9535 rm -f conftest*
9538 echo "$ac_t""$samba_cv_HAVE_UX_UT_SYSLEN" 1>&6
9539 if test x"$samba_cv_HAVE_UX_UT_SYSLEN" = x"yes"; then
9540 cat >> confdefs.h <<\EOF
9541 #define HAVE_UX_UT_SYSLEN 1
9546 echo $ac_n "checking for Linux kernel oplocks""... $ac_c" 1>&6
9547 echo "configure:9548: checking for Linux kernel oplocks" >&5
9548 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_LINUX'+set}'`\" = set"; then
9549 echo $ac_n "(cached) $ac_c" 1>&6
9550 else
9552 if test "$cross_compiling" = yes; then
9553 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=cross
9554 else
9555 cat > conftest.$ac_ext <<EOF
9556 #line 9557 "configure"
9557 #include "confdefs.h"
9559 #include <sys/types.h>
9560 #include <fcntl.h>
9561 #ifndef F_GETLEASE
9562 #define F_GETLEASE 1025
9563 #endif
9564 main() {
9565 int fd = open("/dev/null", O_RDONLY);
9566 return fcntl(fd, F_GETLEASE, 0) == -1;
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_KERNEL_OPLOCKS_LINUX=yes
9573 else
9574 echo "configure: failed program was:" >&5
9575 cat conftest.$ac_ext >&5
9576 rm -fr conftest*
9577 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=no
9579 rm -fr conftest*
9584 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" 1>&6
9585 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x"yes"; then
9586 cat >> confdefs.h <<\EOF
9587 #define HAVE_KERNEL_OPLOCKS_LINUX 1
9592 echo $ac_n "checking for kernel change notify support""... $ac_c" 1>&6
9593 echo "configure:9594: checking for kernel change notify support" >&5
9594 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_CHANGE_NOTIFY'+set}'`\" = set"; then
9595 echo $ac_n "(cached) $ac_c" 1>&6
9596 else
9598 if test "$cross_compiling" = yes; then
9599 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=cross
9600 else
9601 cat > conftest.$ac_ext <<EOF
9602 #line 9603 "configure"
9603 #include "confdefs.h"
9605 #include <sys/types.h>
9606 #include <fcntl.h>
9607 #include <signal.h>
9608 #ifndef F_NOTIFY
9609 #define F_NOTIFY 1026
9610 #endif
9611 main() {
9612 exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0);
9616 if { (eval echo configure:9617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9617 then
9618 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=yes
9619 else
9620 echo "configure: failed program was:" >&5
9621 cat conftest.$ac_ext >&5
9622 rm -fr conftest*
9623 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=no
9625 rm -fr conftest*
9630 echo "$ac_t""$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" 1>&6
9631 if test x"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x"yes"; then
9632 cat >> confdefs.h <<\EOF
9633 #define HAVE_KERNEL_CHANGE_NOTIFY 1
9638 echo $ac_n "checking for kernel share modes""... $ac_c" 1>&6
9639 echo "configure:9640: checking for kernel share modes" >&5
9640 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_SHARE_MODES'+set}'`\" = set"; then
9641 echo $ac_n "(cached) $ac_c" 1>&6
9642 else
9644 if test "$cross_compiling" = yes; then
9645 samba_cv_HAVE_KERNEL_SHARE_MODES=cross
9646 else
9647 cat > conftest.$ac_ext <<EOF
9648 #line 9649 "configure"
9649 #include "confdefs.h"
9651 #include <sys/types.h>
9652 #include <fcntl.h>
9653 #include <signal.h>
9654 #include <sys/file.h>
9655 #ifndef LOCK_MAND
9656 #define LOCK_MAND 32
9657 #define LOCK_READ 64
9658 #endif
9659 main() {
9660 exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
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_KERNEL_SHARE_MODES=yes
9667 else
9668 echo "configure: failed program was:" >&5
9669 cat conftest.$ac_ext >&5
9670 rm -fr conftest*
9671 samba_cv_HAVE_KERNEL_SHARE_MODES=no
9673 rm -fr conftest*
9678 echo "$ac_t""$samba_cv_HAVE_KERNEL_SHARE_MODES" 1>&6
9679 if test x"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x"yes"; then
9680 cat >> confdefs.h <<\EOF
9681 #define HAVE_KERNEL_SHARE_MODES 1
9689 echo $ac_n "checking for IRIX kernel oplock type definitions""... $ac_c" 1>&6
9690 echo "configure:9691: checking for IRIX kernel oplock type definitions" >&5
9691 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_IRIX'+set}'`\" = set"; then
9692 echo $ac_n "(cached) $ac_c" 1>&6
9693 else
9695 cat > conftest.$ac_ext <<EOF
9696 #line 9697 "configure"
9697 #include "confdefs.h"
9698 #include <sys/types.h>
9699 #include <fcntl.h>
9700 int main() {
9701 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
9702 ; return 0; }
9704 if { (eval echo configure:9705: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9705 rm -rf conftest*
9706 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=yes
9707 else
9708 echo "configure: failed program was:" >&5
9709 cat conftest.$ac_ext >&5
9710 rm -rf conftest*
9711 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=no
9713 rm -f conftest*
9716 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" 1>&6
9717 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x"yes"; then
9718 cat >> confdefs.h <<\EOF
9719 #define HAVE_KERNEL_OPLOCKS_IRIX 1
9724 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
9725 echo "configure:9726: checking for irix specific capabilities" >&5
9726 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
9727 echo $ac_n "(cached) $ac_c" 1>&6
9728 else
9730 if test "$cross_compiling" = yes; then
9731 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=cross
9732 else
9733 cat > conftest.$ac_ext <<EOF
9734 #line 9735 "configure"
9735 #include "confdefs.h"
9736 #include <sys/types.h>
9737 #include <sys/capability.h>
9738 main() {
9739 cap_t cap;
9740 if ((cap = cap_get_proc()) == NULL)
9741 exit(1);
9742 cap->cap_effective |= CAP_NETWORK_MGT;
9743 cap->cap_inheritable |= CAP_NETWORK_MGT;
9744 cap_set_proc(cap);
9745 exit(0);
9749 if { (eval echo configure:9750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9750 then
9751 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=yes
9752 else
9753 echo "configure: failed program was:" >&5
9754 cat conftest.$ac_ext >&5
9755 rm -fr conftest*
9756 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=no
9758 rm -fr conftest*
9763 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
9764 if test x"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x"yes"; then
9765 cat >> confdefs.h <<\EOF
9766 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
9772 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
9773 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
9776 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9777 echo "configure:9778: checking for int16 typedef included by rpc/rpc.h" >&5
9778 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
9779 echo $ac_n "(cached) $ac_c" 1>&6
9780 else
9782 cat > conftest.$ac_ext <<EOF
9783 #line 9784 "configure"
9784 #include "confdefs.h"
9785 #include <sys/types.h>
9786 #if defined(HAVE_RPC_RPC_H)
9787 #include <rpc/rpc.h>
9788 #endif
9789 int main() {
9790 int16 testvar;
9791 ; return 0; }
9793 if { (eval echo configure:9794: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9794 rm -rf conftest*
9795 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=yes
9796 else
9797 echo "configure: failed program was:" >&5
9798 cat conftest.$ac_ext >&5
9799 rm -rf conftest*
9800 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=no
9802 rm -f conftest*
9805 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
9806 if test x"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x"yes"; then
9807 cat >> confdefs.h <<\EOF
9808 #define HAVE_INT16_FROM_RPC_RPC_H 1
9813 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9814 echo "configure:9815: checking for uint16 typedef included by rpc/rpc.h" >&5
9815 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
9816 echo $ac_n "(cached) $ac_c" 1>&6
9817 else
9819 cat > conftest.$ac_ext <<EOF
9820 #line 9821 "configure"
9821 #include "confdefs.h"
9822 #include <sys/types.h>
9823 #if defined(HAVE_RPC_RPC_H)
9824 #include <rpc/rpc.h>
9825 #endif
9826 int main() {
9827 uint16 testvar;
9828 ; return 0; }
9830 if { (eval echo configure:9831: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9831 rm -rf conftest*
9832 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=yes
9833 else
9834 echo "configure: failed program was:" >&5
9835 cat conftest.$ac_ext >&5
9836 rm -rf conftest*
9837 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=no
9839 rm -f conftest*
9842 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
9843 if test x"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x"yes"; then
9844 cat >> confdefs.h <<\EOF
9845 #define HAVE_UINT16_FROM_RPC_RPC_H 1
9850 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9851 echo "configure:9852: checking for int32 typedef included by rpc/rpc.h" >&5
9852 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
9853 echo $ac_n "(cached) $ac_c" 1>&6
9854 else
9856 cat > conftest.$ac_ext <<EOF
9857 #line 9858 "configure"
9858 #include "confdefs.h"
9859 #include <sys/types.h>
9860 #if defined(HAVE_RPC_RPC_H)
9861 #include <rpc/rpc.h>
9862 #endif
9863 int main() {
9864 int32 testvar;
9865 ; return 0; }
9867 if { (eval echo configure:9868: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9868 rm -rf conftest*
9869 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=yes
9870 else
9871 echo "configure: failed program was:" >&5
9872 cat conftest.$ac_ext >&5
9873 rm -rf conftest*
9874 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=no
9876 rm -f conftest*
9879 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
9880 if test x"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x"yes"; then
9881 cat >> confdefs.h <<\EOF
9882 #define HAVE_INT32_FROM_RPC_RPC_H 1
9887 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9888 echo "configure:9889: checking for uint32 typedef included by rpc/rpc.h" >&5
9889 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
9890 echo $ac_n "(cached) $ac_c" 1>&6
9891 else
9893 cat > conftest.$ac_ext <<EOF
9894 #line 9895 "configure"
9895 #include "confdefs.h"
9896 #include <sys/types.h>
9897 #if defined(HAVE_RPC_RPC_H)
9898 #include <rpc/rpc.h>
9899 #endif
9900 int main() {
9901 uint32 testvar;
9902 ; return 0; }
9904 if { (eval echo configure:9905: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9905 rm -rf conftest*
9906 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=yes
9907 else
9908 echo "configure: failed program was:" >&5
9909 cat conftest.$ac_ext >&5
9910 rm -rf conftest*
9911 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=no
9913 rm -f conftest*
9916 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
9917 if test x"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x"yes"; then
9918 cat >> confdefs.h <<\EOF
9919 #define HAVE_UINT32_FROM_RPC_RPC_H 1
9925 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
9926 echo "configure:9927: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
9927 if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
9928 echo $ac_n "(cached) $ac_c" 1>&6
9929 else
9931 cat > conftest.$ac_ext <<EOF
9932 #line 9933 "configure"
9933 #include "confdefs.h"
9934 #include <sys/types.h>
9935 #ifdef HAVE_SYS_SECURITY_H
9936 #include <sys/security.h>
9937 #include <prot.h>
9938 #endif /* HAVE_SYS_SECURITY_H */
9939 #if defined(HAVE_RPC_RPC_H)
9940 #include <rpc/rpc.h>
9941 #endif
9942 int main() {
9943 int testvar;
9944 ; return 0; }
9946 if { (eval echo configure:9947: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9947 rm -rf conftest*
9948 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=no
9949 else
9950 echo "configure: failed program was:" >&5
9951 cat conftest.$ac_ext >&5
9952 rm -rf conftest*
9953 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=yes
9955 rm -f conftest*
9958 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
9959 if test x"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x"yes"; then
9960 cat >> confdefs.h <<\EOF
9961 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
9966 echo $ac_n "checking for test routines""... $ac_c" 1>&6
9967 echo "configure:9968: checking for test routines" >&5
9968 if test "$cross_compiling" = yes; then
9969 echo "configure: warning: cannot run when cross-compiling" 1>&2
9970 else
9971 cat > conftest.$ac_ext <<EOF
9972 #line 9973 "configure"
9973 #include "confdefs.h"
9974 #include "${srcdir-.}/tests/trivial.c"
9976 if { (eval echo configure:9977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9977 then
9978 echo "$ac_t""yes" 1>&6
9979 else
9980 echo "configure: failed program was:" >&5
9981 cat conftest.$ac_ext >&5
9982 rm -fr conftest*
9983 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
9985 rm -fr conftest*
9989 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
9990 echo "configure:9991: checking for ftruncate extend" >&5
9991 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
9992 echo $ac_n "(cached) $ac_c" 1>&6
9993 else
9995 if test "$cross_compiling" = yes; then
9996 samba_cv_HAVE_FTRUNCATE_EXTEND=cross
9997 else
9998 cat > conftest.$ac_ext <<EOF
9999 #line 10000 "configure"
10000 #include "confdefs.h"
10001 #include "${srcdir-.}/tests/ftruncate.c"
10003 if { (eval echo configure:10004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10004 then
10005 samba_cv_HAVE_FTRUNCATE_EXTEND=yes
10006 else
10007 echo "configure: failed program was:" >&5
10008 cat conftest.$ac_ext >&5
10009 rm -fr conftest*
10010 samba_cv_HAVE_FTRUNCATE_EXTEND=no
10012 rm -fr conftest*
10017 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
10018 if test x"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x"yes"; then
10019 cat >> confdefs.h <<\EOF
10020 #define HAVE_FTRUNCATE_EXTEND 1
10025 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
10026 echo "configure:10027: checking for broken getgroups" >&5
10027 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
10028 echo $ac_n "(cached) $ac_c" 1>&6
10029 else
10031 if test "$cross_compiling" = yes; then
10032 samba_cv_HAVE_BROKEN_GETGROUPS=cross
10033 else
10034 cat > conftest.$ac_ext <<EOF
10035 #line 10036 "configure"
10036 #include "confdefs.h"
10037 #include "${srcdir-.}/tests/getgroups.c"
10039 if { (eval echo configure:10040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10040 then
10041 samba_cv_HAVE_BROKEN_GETGROUPS=yes
10042 else
10043 echo "configure: failed program was:" >&5
10044 cat conftest.$ac_ext >&5
10045 rm -fr conftest*
10046 samba_cv_HAVE_BROKEN_GETGROUPS=no
10048 rm -fr conftest*
10053 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
10054 if test x"$samba_cv_HAVE_BROKEN_GETGROUPS" = x"yes"; then
10055 cat >> confdefs.h <<\EOF
10056 #define HAVE_BROKEN_GETGROUPS 1
10061 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
10062 echo "configure:10063: checking whether getpass should be replaced" >&5
10063 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
10064 echo $ac_n "(cached) $ac_c" 1>&6
10065 else
10067 SAVE_CPPFLAGS="$CPPFLAGS"
10068 CPPFLAGS="$CPPFLAGS -I${srcdir-.}/ -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/smbwrapper"
10069 cat > conftest.$ac_ext <<EOF
10070 #line 10071 "configure"
10071 #include "confdefs.h"
10073 #define REPLACE_GETPASS 1
10074 #define NO_CONFIG_H 1
10075 #define main dont_declare_main
10076 #include "${srcdir-.}/lib/getsmbpass.c"
10077 #undef main
10079 int main() {
10081 ; return 0; }
10083 if { (eval echo configure:10084: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10084 rm -rf conftest*
10085 samba_cv_REPLACE_GETPASS=yes
10086 else
10087 echo "configure: failed program was:" >&5
10088 cat conftest.$ac_ext >&5
10089 rm -rf conftest*
10090 samba_cv_REPLACE_GETPASS=no
10092 rm -f conftest*
10093 CPPFLAGS="$SAVE_CPPFLAGS"
10097 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
10098 if test x"$samba_cv_REPLACE_GETPASS" = x"yes"; then
10099 cat >> confdefs.h <<\EOF
10100 #define REPLACE_GETPASS 1
10105 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
10106 echo "configure:10107: checking for broken inet_ntoa" >&5
10107 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
10108 echo $ac_n "(cached) $ac_c" 1>&6
10109 else
10111 if test "$cross_compiling" = yes; then
10112 samba_cv_REPLACE_INET_NTOA=cross
10113 else
10114 cat > conftest.$ac_ext <<EOF
10115 #line 10116 "configure"
10116 #include "confdefs.h"
10118 #include <stdio.h>
10119 #include <sys/types.h>
10120 #include <netinet/in.h>
10121 #ifdef HAVE_ARPA_INET_H
10122 #include <arpa/inet.h>
10123 #endif
10124 main() { struct in_addr ip; ip.s_addr = 0x12345678;
10125 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
10126 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
10127 exit(1);}
10129 if { (eval echo configure:10130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10130 then
10131 samba_cv_REPLACE_INET_NTOA=yes
10132 else
10133 echo "configure: failed program was:" >&5
10134 cat conftest.$ac_ext >&5
10135 rm -fr conftest*
10136 samba_cv_REPLACE_INET_NTOA=no
10138 rm -fr conftest*
10143 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
10144 if test x"$samba_cv_REPLACE_INET_NTOA" = x"yes"; then
10145 cat >> confdefs.h <<\EOF
10146 #define REPLACE_INET_NTOA 1
10151 echo $ac_n "checking for secure mkstemp""... $ac_c" 1>&6
10152 echo "configure:10153: checking for secure mkstemp" >&5
10153 if eval "test \"`echo '$''{'samba_cv_HAVE_SECURE_MKSTEMP'+set}'`\" = set"; then
10154 echo $ac_n "(cached) $ac_c" 1>&6
10155 else
10157 if test "$cross_compiling" = yes; then
10158 samba_cv_HAVE_SECURE_MKSTEMP=cross
10159 else
10160 cat > conftest.$ac_ext <<EOF
10161 #line 10162 "configure"
10162 #include "confdefs.h"
10163 #include <stdlib.h>
10164 #include <sys/types.h>
10165 #include <sys/stat.h>
10166 #include <unistd.h>
10167 main() {
10168 struct stat st;
10169 char tpl[20]="/tmp/test.XXXXXX";
10170 int fd = mkstemp(tpl);
10171 if (fd == -1) exit(1);
10172 unlink(tpl);
10173 if (fstat(fd, &st) != 0) exit(1);
10174 if ((st.st_mode & 0777) != 0600) exit(1);
10175 exit(0);
10178 if { (eval echo configure:10179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10179 then
10180 samba_cv_HAVE_SECURE_MKSTEMP=yes
10181 else
10182 echo "configure: failed program was:" >&5
10183 cat conftest.$ac_ext >&5
10184 rm -fr conftest*
10185 samba_cv_HAVE_SECURE_MKSTEMP=no
10187 rm -fr conftest*
10192 echo "$ac_t""$samba_cv_HAVE_SECURE_MKSTEMP" 1>&6
10193 if test x"$samba_cv_HAVE_SECURE_MKSTEMP" = x"yes"; then
10194 cat >> confdefs.h <<\EOF
10195 #define HAVE_SECURE_MKSTEMP 1
10200 echo $ac_n "checking for sysconf(_SC_NGROUPS_MAX)""... $ac_c" 1>&6
10201 echo "configure:10202: checking for sysconf(_SC_NGROUPS_MAX)" >&5
10202 if eval "test \"`echo '$''{'samba_cv_SYSCONF_SC_NGROUPS_MAX'+set}'`\" = set"; then
10203 echo $ac_n "(cached) $ac_c" 1>&6
10204 else
10206 if test "$cross_compiling" = yes; then
10207 samba_cv_SYSCONF_SC_NGROUPS_MAX=cross
10208 else
10209 cat > conftest.$ac_ext <<EOF
10210 #line 10211 "configure"
10211 #include "confdefs.h"
10212 #include <unistd.h>
10213 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
10215 if { (eval echo configure:10216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10216 then
10217 samba_cv_SYSCONF_SC_NGROUPS_MAX=yes
10218 else
10219 echo "configure: failed program was:" >&5
10220 cat conftest.$ac_ext >&5
10221 rm -fr conftest*
10222 samba_cv_SYSCONF_SC_NGROUPS_MAX=no
10224 rm -fr conftest*
10229 echo "$ac_t""$samba_cv_SYSCONF_SC_NGROUPS_MAX" 1>&6
10230 if test x"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x"yes"; then
10231 cat >> confdefs.h <<\EOF
10232 #define SYSCONF_SC_NGROUPS_MAX 1
10237 echo $ac_n "checking for root""... $ac_c" 1>&6
10238 echo "configure:10239: checking for root" >&5
10239 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
10240 echo $ac_n "(cached) $ac_c" 1>&6
10241 else
10243 if test "$cross_compiling" = yes; then
10244 samba_cv_HAVE_ROOT=cross
10245 else
10246 cat > conftest.$ac_ext <<EOF
10247 #line 10248 "configure"
10248 #include "confdefs.h"
10249 main() { exit(getuid() != 0); }
10251 if { (eval echo configure:10252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10252 then
10253 samba_cv_HAVE_ROOT=yes
10254 else
10255 echo "configure: failed program was:" >&5
10256 cat conftest.$ac_ext >&5
10257 rm -fr conftest*
10258 samba_cv_HAVE_ROOT=no
10260 rm -fr conftest*
10265 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
10266 if test x"$samba_cv_HAVE_ROOT" = x"yes"; then
10267 cat >> confdefs.h <<\EOF
10268 #define HAVE_ROOT 1
10271 else
10272 echo "configure: warning: running as non-root will disable some tests" 1>&2
10275 ##################
10276 # look for a method of finding the list of network interfaces
10277 iface=no;
10278 echo $ac_n "checking for iface AIX""... $ac_c" 1>&6
10279 echo "configure:10280: checking for iface AIX" >&5
10280 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_AIX'+set}'`\" = set"; then
10281 echo $ac_n "(cached) $ac_c" 1>&6
10282 else
10284 if test "$cross_compiling" = yes; then
10285 samba_cv_HAVE_IFACE_AIX=cross
10286 else
10287 cat > conftest.$ac_ext <<EOF
10288 #line 10289 "configure"
10289 #include "confdefs.h"
10291 #define HAVE_IFACE_AIX 1
10292 #define AUTOCONF_TEST 1
10293 #include "confdefs.h"
10294 #include "${srcdir-.}/lib/interfaces.c"
10296 if { (eval echo configure:10297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10297 then
10298 samba_cv_HAVE_IFACE_AIX=yes
10299 else
10300 echo "configure: failed program was:" >&5
10301 cat conftest.$ac_ext >&5
10302 rm -fr conftest*
10303 samba_cv_HAVE_IFACE_AIX=no
10305 rm -fr conftest*
10310 echo "$ac_t""$samba_cv_HAVE_IFACE_AIX" 1>&6
10311 if test x"$samba_cv_HAVE_IFACE_AIX" = x"yes"; then
10312 iface=yes;cat >> confdefs.h <<\EOF
10313 #define HAVE_IFACE_AIX 1
10318 if test $iface = no; then
10319 echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6
10320 echo "configure:10321: checking for iface ifconf" >&5
10321 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFCONF'+set}'`\" = set"; then
10322 echo $ac_n "(cached) $ac_c" 1>&6
10323 else
10325 if test "$cross_compiling" = yes; then
10326 samba_cv_HAVE_IFACE_IFCONF=cross
10327 else
10328 cat > conftest.$ac_ext <<EOF
10329 #line 10330 "configure"
10330 #include "confdefs.h"
10332 #define HAVE_IFACE_IFCONF 1
10333 #define AUTOCONF_TEST 1
10334 #include "confdefs.h"
10335 #include "${srcdir-.}/lib/interfaces.c"
10337 if { (eval echo configure:10338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10338 then
10339 samba_cv_HAVE_IFACE_IFCONF=yes
10340 else
10341 echo "configure: failed program was:" >&5
10342 cat conftest.$ac_ext >&5
10343 rm -fr conftest*
10344 samba_cv_HAVE_IFACE_IFCONF=no
10346 rm -fr conftest*
10351 echo "$ac_t""$samba_cv_HAVE_IFACE_IFCONF" 1>&6
10352 if test x"$samba_cv_HAVE_IFACE_IFCONF" = x"yes"; then
10353 iface=yes;cat >> confdefs.h <<\EOF
10354 #define HAVE_IFACE_IFCONF 1
10360 if test $iface = no; then
10361 echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6
10362 echo "configure:10363: checking for iface ifreq" >&5
10363 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFREQ'+set}'`\" = set"; then
10364 echo $ac_n "(cached) $ac_c" 1>&6
10365 else
10367 if test "$cross_compiling" = yes; then
10368 samba_cv_HAVE_IFACE_IFREQ=cross
10369 else
10370 cat > conftest.$ac_ext <<EOF
10371 #line 10372 "configure"
10372 #include "confdefs.h"
10374 #define HAVE_IFACE_IFREQ 1
10375 #define AUTOCONF_TEST 1
10376 #include "confdefs.h"
10377 #include "${srcdir-.}/lib/interfaces.c"
10379 if { (eval echo configure:10380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10380 then
10381 samba_cv_HAVE_IFACE_IFREQ=yes
10382 else
10383 echo "configure: failed program was:" >&5
10384 cat conftest.$ac_ext >&5
10385 rm -fr conftest*
10386 samba_cv_HAVE_IFACE_IFREQ=no
10388 rm -fr conftest*
10393 echo "$ac_t""$samba_cv_HAVE_IFACE_IFREQ" 1>&6
10394 if test x"$samba_cv_HAVE_IFACE_IFREQ" = x"yes"; then
10395 iface=yes;cat >> confdefs.h <<\EOF
10396 #define HAVE_IFACE_IFREQ 1
10403 ################################################
10404 # look for a method of setting the effective uid
10405 seteuid=no;
10406 if test $seteuid = no; then
10407 echo $ac_n "checking for setresuid""... $ac_c" 1>&6
10408 echo "configure:10409: checking for setresuid" >&5
10409 if eval "test \"`echo '$''{'samba_cv_USE_SETRESUID'+set}'`\" = set"; then
10410 echo $ac_n "(cached) $ac_c" 1>&6
10411 else
10413 if test "$cross_compiling" = yes; then
10414 samba_cv_USE_SETRESUID=cross
10415 else
10416 cat > conftest.$ac_ext <<EOF
10417 #line 10418 "configure"
10418 #include "confdefs.h"
10420 #define AUTOCONF_TEST 1
10421 #define USE_SETRESUID 1
10422 #include "confdefs.h"
10423 #include "${srcdir-.}/lib/util_sec.c"
10425 if { (eval echo configure:10426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10426 then
10427 samba_cv_USE_SETRESUID=yes
10428 else
10429 echo "configure: failed program was:" >&5
10430 cat conftest.$ac_ext >&5
10431 rm -fr conftest*
10432 samba_cv_USE_SETRESUID=no
10434 rm -fr conftest*
10439 echo "$ac_t""$samba_cv_USE_SETRESUID" 1>&6
10440 if test x"$samba_cv_USE_SETRESUID" = x"yes"; then
10441 seteuid=yes;cat >> confdefs.h <<\EOF
10442 #define USE_SETRESUID 1
10449 if test $seteuid = no; then
10450 echo $ac_n "checking for setreuid""... $ac_c" 1>&6
10451 echo "configure:10452: checking for setreuid" >&5
10452 if eval "test \"`echo '$''{'samba_cv_USE_SETREUID'+set}'`\" = set"; then
10453 echo $ac_n "(cached) $ac_c" 1>&6
10454 else
10456 if test "$cross_compiling" = yes; then
10457 samba_cv_USE_SETREUID=cross
10458 else
10459 cat > conftest.$ac_ext <<EOF
10460 #line 10461 "configure"
10461 #include "confdefs.h"
10463 #define AUTOCONF_TEST 1
10464 #define USE_SETREUID 1
10465 #include "confdefs.h"
10466 #include "${srcdir-.}/lib/util_sec.c"
10468 if { (eval echo configure:10469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10469 then
10470 samba_cv_USE_SETREUID=yes
10471 else
10472 echo "configure: failed program was:" >&5
10473 cat conftest.$ac_ext >&5
10474 rm -fr conftest*
10475 samba_cv_USE_SETREUID=no
10477 rm -fr conftest*
10482 echo "$ac_t""$samba_cv_USE_SETREUID" 1>&6
10483 if test x"$samba_cv_USE_SETREUID" = x"yes"; then
10484 seteuid=yes;cat >> confdefs.h <<\EOF
10485 #define USE_SETREUID 1
10491 if test $seteuid = no; then
10492 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
10493 echo "configure:10494: checking for seteuid" >&5
10494 if eval "test \"`echo '$''{'samba_cv_USE_SETEUID'+set}'`\" = set"; then
10495 echo $ac_n "(cached) $ac_c" 1>&6
10496 else
10498 if test "$cross_compiling" = yes; then
10499 samba_cv_USE_SETEUID=cross
10500 else
10501 cat > conftest.$ac_ext <<EOF
10502 #line 10503 "configure"
10503 #include "confdefs.h"
10505 #define AUTOCONF_TEST 1
10506 #define USE_SETEUID 1
10507 #include "confdefs.h"
10508 #include "${srcdir-.}/lib/util_sec.c"
10510 if { (eval echo configure:10511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10511 then
10512 samba_cv_USE_SETEUID=yes
10513 else
10514 echo "configure: failed program was:" >&5
10515 cat conftest.$ac_ext >&5
10516 rm -fr conftest*
10517 samba_cv_USE_SETEUID=no
10519 rm -fr conftest*
10524 echo "$ac_t""$samba_cv_USE_SETEUID" 1>&6
10525 if test x"$samba_cv_USE_SETEUID" = x"yes"; then
10526 seteuid=yes;cat >> confdefs.h <<\EOF
10527 #define USE_SETEUID 1
10533 if test $seteuid = no; then
10534 echo $ac_n "checking for setuidx""... $ac_c" 1>&6
10535 echo "configure:10536: checking for setuidx" >&5
10536 if eval "test \"`echo '$''{'samba_cv_USE_SETUIDX'+set}'`\" = set"; then
10537 echo $ac_n "(cached) $ac_c" 1>&6
10538 else
10540 if test "$cross_compiling" = yes; then
10541 samba_cv_USE_SETUIDX=cross
10542 else
10543 cat > conftest.$ac_ext <<EOF
10544 #line 10545 "configure"
10545 #include "confdefs.h"
10547 #define AUTOCONF_TEST 1
10548 #define USE_SETUIDX 1
10549 #include "confdefs.h"
10550 #include "${srcdir-.}/lib/util_sec.c"
10552 if { (eval echo configure:10553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10553 then
10554 samba_cv_USE_SETUIDX=yes
10555 else
10556 echo "configure: failed program was:" >&5
10557 cat conftest.$ac_ext >&5
10558 rm -fr conftest*
10559 samba_cv_USE_SETUIDX=no
10561 rm -fr conftest*
10566 echo "$ac_t""$samba_cv_USE_SETUIDX" 1>&6
10567 if test x"$samba_cv_USE_SETUIDX" = x"yes"; then
10568 seteuid=yes;cat >> confdefs.h <<\EOF
10569 #define USE_SETUIDX 1
10576 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
10577 echo "configure:10578: checking for working mmap" >&5
10578 if eval "test \"`echo '$''{'samba_cv_HAVE_MMAP'+set}'`\" = set"; then
10579 echo $ac_n "(cached) $ac_c" 1>&6
10580 else
10582 if test "$cross_compiling" = yes; then
10583 samba_cv_HAVE_MMAP=cross
10584 else
10585 cat > conftest.$ac_ext <<EOF
10586 #line 10587 "configure"
10587 #include "confdefs.h"
10588 #include "${srcdir-.}/tests/shared_mmap.c"
10590 if { (eval echo configure:10591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10591 then
10592 samba_cv_HAVE_MMAP=yes
10593 else
10594 echo "configure: failed program was:" >&5
10595 cat conftest.$ac_ext >&5
10596 rm -fr conftest*
10597 samba_cv_HAVE_MMAP=no
10599 rm -fr conftest*
10604 echo "$ac_t""$samba_cv_HAVE_MMAP" 1>&6
10605 if test x"$samba_cv_HAVE_MMAP" = x"yes"; then
10606 cat >> confdefs.h <<\EOF
10607 #define HAVE_MMAP 1
10612 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
10613 echo "configure:10614: checking for ftruncate needs root" >&5
10614 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
10615 echo $ac_n "(cached) $ac_c" 1>&6
10616 else
10618 if test "$cross_compiling" = yes; then
10619 samba_cv_FTRUNCATE_NEEDS_ROOT=cross
10620 else
10621 cat > conftest.$ac_ext <<EOF
10622 #line 10623 "configure"
10623 #include "confdefs.h"
10624 #include "${srcdir-.}/tests/ftruncroot.c"
10626 if { (eval echo configure:10627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10627 then
10628 samba_cv_FTRUNCATE_NEEDS_ROOT=yes
10629 else
10630 echo "configure: failed program was:" >&5
10631 cat conftest.$ac_ext >&5
10632 rm -fr conftest*
10633 samba_cv_FTRUNCATE_NEEDS_ROOT=no
10635 rm -fr conftest*
10640 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
10641 if test x"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x"yes"; then
10642 cat >> confdefs.h <<\EOF
10643 #define FTRUNCATE_NEEDS_ROOT 1
10648 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
10649 echo "configure:10650: checking for fcntl locking" >&5
10650 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
10651 echo $ac_n "(cached) $ac_c" 1>&6
10652 else
10654 if test "$cross_compiling" = yes; then
10655 samba_cv_HAVE_FCNTL_LOCK=cross
10656 else
10657 cat > conftest.$ac_ext <<EOF
10658 #line 10659 "configure"
10659 #include "confdefs.h"
10660 #include "${srcdir-.}/tests/fcntl_lock.c"
10662 if { (eval echo configure:10663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10663 then
10664 samba_cv_HAVE_FCNTL_LOCK=yes
10665 else
10666 echo "configure: failed program was:" >&5
10667 cat conftest.$ac_ext >&5
10668 rm -fr conftest*
10669 samba_cv_HAVE_FCNTL_LOCK=no
10671 rm -fr conftest*
10676 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
10677 if test x"$samba_cv_HAVE_FCNTL_LOCK" = x"yes"; then
10678 cat >> confdefs.h <<\EOF
10679 #define HAVE_FCNTL_LOCK 1
10684 echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6
10685 echo "configure:10686: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
10686 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_FCNTL64_LOCKS'+set}'`\" = set"; then
10687 echo $ac_n "(cached) $ac_c" 1>&6
10688 else
10690 if test "$cross_compiling" = yes; then
10691 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=cross
10692 else
10693 cat > conftest.$ac_ext <<EOF
10694 #line 10695 "configure"
10695 #include "confdefs.h"
10696 #include "${srcdir-.}/tests/fcntl_lock64.c"
10698 if { (eval echo configure:10699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10699 then
10700 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=yes
10701 else
10702 echo "configure: failed program was:" >&5
10703 cat conftest.$ac_ext >&5
10704 rm -fr conftest*
10705 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=no
10707 rm -fr conftest*
10712 echo "$ac_t""$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" 1>&6
10713 if test x"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x"yes"; then
10714 cat >> confdefs.h <<\EOF
10715 #define HAVE_BROKEN_FCNTL64_LOCKS 1
10719 else
10722 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
10723 echo "configure:10724: checking for 64 bit fcntl locking" >&5
10724 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
10725 echo $ac_n "(cached) $ac_c" 1>&6
10726 else
10728 if test "$cross_compiling" = yes; then
10729 samba_cv_HAVE_STRUCT_FLOCK64=cross
10730 else
10731 cat > conftest.$ac_ext <<EOF
10732 #line 10733 "configure"
10733 #include "confdefs.h"
10735 #if defined(HAVE_UNISTD_H)
10736 #include <unistd.h>
10737 #endif
10738 #include <stdio.h>
10739 #include <stdlib.h>
10741 #ifdef HAVE_FCNTL_H
10742 #include <fcntl.h>
10743 #endif
10745 #ifdef HAVE_SYS_FCNTL_H
10746 #include <sys/fcntl.h>
10747 #endif
10748 main() { struct flock64 fl64;
10749 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
10750 exit(0);
10751 #else
10752 exit(1);
10753 #endif
10756 if { (eval echo configure:10757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10757 then
10758 samba_cv_HAVE_STRUCT_FLOCK64=yes
10759 else
10760 echo "configure: failed program was:" >&5
10761 cat conftest.$ac_ext >&5
10762 rm -fr conftest*
10763 samba_cv_HAVE_STRUCT_FLOCK64=no
10765 rm -fr conftest*
10770 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
10772 if test x"$samba_cv_HAVE_STRUCT_FLOCK64" = x"yes"; then
10773 cat >> confdefs.h <<\EOF
10774 #define HAVE_STRUCT_FLOCK64 1
10780 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
10781 echo "configure:10782: checking for broken nisplus include files" >&5
10782 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
10783 echo $ac_n "(cached) $ac_c" 1>&6
10784 else
10786 cat > conftest.$ac_ext <<EOF
10787 #line 10788 "configure"
10788 #include "confdefs.h"
10789 #include <sys/acl.h>
10790 #if defined(HAVE_RPCSVC_NIS_H)
10791 #include <rpcsvc/nis.h>
10792 #endif
10793 int main() {
10794 return 0;
10795 ; return 0; }
10797 if { (eval echo configure:10798: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10798 rm -rf conftest*
10799 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=no
10800 else
10801 echo "configure: failed program was:" >&5
10802 cat conftest.$ac_ext >&5
10803 rm -rf conftest*
10804 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=yes
10806 rm -f conftest*
10809 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
10810 if test x"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x"yes"; then
10811 cat >> confdefs.h <<\EOF
10812 #define BROKEN_NISPLUS_INCLUDE_FILES 1
10818 #################################################
10819 # check for smbwrapper support
10820 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
10821 echo "configure:10822: checking whether to use smbwrapper" >&5
10822 # Check whether --with-smbwrapper or --without-smbwrapper was given.
10823 if test "${with_smbwrapper+set}" = set; then
10824 withval="$with_smbwrapper"
10825 case "$withval" in
10826 yes)
10827 echo "$ac_t""yes" 1>&6
10828 cat >> confdefs.h <<\EOF
10829 #define WITH_SMBWRAPPER 1
10832 WRAP="bin/smbsh bin/smbwrapper.$SHLIBEXT"
10834 if test x$ATTEMPT_WRAP32_BUILD = x; then
10835 WRAP32=""
10836 else
10837 WRAP32=bin/smbwrapper.32.$SHLIBEXT
10840 # Conditions under which smbwrapper should not be built.
10842 if test x$PICFLAG = x; then
10843 echo No support for PIC code - disabling smbwrapper and smbsh
10844 WRAP=""
10845 WRAP32=""
10846 elif test x$ac_cv_func_syscall = xno; then
10847 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
10848 WRAP=""
10849 WRAP32=""
10853 echo "$ac_t""no" 1>&6
10855 esac
10856 else
10857 echo "$ac_t""no" 1>&6
10862 #################################################
10863 # check for the AFS filesystem
10864 echo $ac_n "checking whether to use AFS""... $ac_c" 1>&6
10865 echo "configure:10866: checking whether to use AFS" >&5
10866 # Check whether --with-afs or --without-afs was given.
10867 if test "${with_afs+set}" = set; then
10868 withval="$with_afs"
10869 case "$withval" in
10870 yes)
10871 echo "$ac_t""yes" 1>&6
10872 cat >> confdefs.h <<\EOF
10873 #define WITH_AFS 1
10878 echo "$ac_t""no" 1>&6
10880 esac
10881 else
10882 echo "$ac_t""no" 1>&6
10888 #################################################
10889 # check for the DFS auth system
10890 echo $ac_n "checking whether to use DCE/DFS auth""... $ac_c" 1>&6
10891 echo "configure:10892: checking whether to use DCE/DFS auth" >&5
10892 # Check whether --with-dfs or --without-dfs was given.
10893 if test "${with_dfs+set}" = set; then
10894 withval="$with_dfs"
10895 case "$withval" in
10896 yes)
10897 echo "$ac_t""yes" 1>&6
10898 cat >> confdefs.h <<\EOF
10899 #define WITH_DFS 1
10904 echo "$ac_t""no" 1>&6
10906 esac
10907 else
10908 echo "$ac_t""no" 1>&6
10913 #################################################
10914 # check for Kerberos IV auth system
10915 echo $ac_n "checking whether to use Kerberos IV""... $ac_c" 1>&6
10916 echo "configure:10917: checking whether to use Kerberos IV" >&5
10917 # Check whether --with-krb4 or --without-krb4 was given.
10918 if test "${with_krb4+set}" = set; then
10919 withval="$with_krb4"
10920 case "$withval" in
10921 yes)
10922 echo "$ac_t""yes" 1>&6
10923 cat >> confdefs.h <<\EOF
10924 #define KRB4_AUTH 1
10927 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
10928 echo "configure:10929: checking for dn_expand in -lresolv" >&5
10929 ac_lib_var=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
10930 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10931 echo $ac_n "(cached) $ac_c" 1>&6
10932 else
10933 ac_save_LIBS="$LIBS"
10934 LIBS="-lresolv $LIBS"
10935 cat > conftest.$ac_ext <<EOF
10936 #line 10937 "configure"
10937 #include "confdefs.h"
10938 /* Override any gcc2 internal prototype to avoid an error. */
10939 /* We use char because int might match the return type of a gcc2
10940 builtin and then its argument prototype would still apply. */
10941 char dn_expand();
10943 int main() {
10944 dn_expand()
10945 ; return 0; }
10947 if { (eval echo configure:10948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10948 rm -rf conftest*
10949 eval "ac_cv_lib_$ac_lib_var=yes"
10950 else
10951 echo "configure: failed program was:" >&5
10952 cat conftest.$ac_ext >&5
10953 rm -rf conftest*
10954 eval "ac_cv_lib_$ac_lib_var=no"
10956 rm -f conftest*
10957 LIBS="$ac_save_LIBS"
10960 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10961 echo "$ac_t""yes" 1>&6
10962 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10963 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10964 cat >> confdefs.h <<EOF
10965 #define $ac_tr_lib 1
10968 LIBS="-lresolv $LIBS"
10970 else
10971 echo "$ac_t""no" 1>&6
10974 LIBS="$LIBS -lkrb -ldes"
10975 CFLAGS="$CFLAGS -I$withval/include"
10976 LDFLAGS="$LDFLAGS -L$withval/lib"
10979 echo "$ac_t""no" 1>&6
10981 esac
10982 else
10983 echo "$ac_t""no" 1>&6
10988 #################################################
10989 # check for Kerberos 5 auth system
10990 echo $ac_n "checking whether to use Kerberos 5""... $ac_c" 1>&6
10991 echo "configure:10992: checking whether to use Kerberos 5" >&5
10992 # Check whether --with-krb5 or --without-krb5 was given.
10993 if test "${with_krb5+set}" = set; then
10994 withval="$with_krb5"
10995 case "$withval" in
10996 yes)
10997 echo "$ac_t""yes" 1>&6
10998 cat >> confdefs.h <<\EOF
10999 #define KRB5_AUTH 1
11002 LIBS="$LIBS -ldes425 -lkrb5 -lcrypto -lcom_err"
11003 CFLAGS="$CFLAGS -I$withval/include"
11004 LDFLAGS="$LDFLAGS -L$withval/lib"
11007 echo "$ac_t""no" 1>&6
11009 esac
11010 else
11011 echo "$ac_t""no" 1>&6
11016 #################################################
11017 # check for automount support
11018 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
11019 echo "configure:11020: checking whether to use AUTOMOUNT" >&5
11020 # Check whether --with-automount or --without-automount was given.
11021 if test "${with_automount+set}" = set; then
11022 withval="$with_automount"
11023 case "$withval" in
11024 yes)
11025 echo "$ac_t""yes" 1>&6
11026 cat >> confdefs.h <<\EOF
11027 #define WITH_AUTOMOUNT 1
11032 echo "$ac_t""no" 1>&6
11034 esac
11035 else
11036 echo "$ac_t""no" 1>&6
11041 #################################################
11042 # check for smbmount support
11043 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
11044 echo "configure:11045: checking whether to use SMBMOUNT" >&5
11045 # Check whether --with-smbmount or --without-smbmount was given.
11046 if test "${with_smbmount+set}" = set; then
11047 withval="$with_smbmount"
11048 case "$withval" in
11049 yes)
11050 echo "$ac_t""yes" 1>&6
11051 cat >> confdefs.h <<\EOF
11052 #define WITH_SMBMOUNT 1
11055 MPROGS="bin/smbmount bin/smbmnt bin/smbumount"
11058 echo "$ac_t""no" 1>&6
11059 MPROGS=
11061 esac
11062 else
11063 echo "$ac_t""no" 1>&6
11064 MPROGS=
11070 #################################################
11071 # check for a PAM password database
11072 with_pam_for_crypt=no
11073 echo $ac_n "checking whether to use PAM password database""... $ac_c" 1>&6
11074 echo "configure:11075: checking whether to use PAM password database" >&5
11075 # Check whether --with-pam or --without-pam was given.
11076 if test "${with_pam+set}" = set; then
11077 withval="$with_pam"
11078 case "$withval" in
11079 yes)
11080 echo "$ac_t""yes" 1>&6
11081 cat >> confdefs.h <<\EOF
11082 #define WITH_PAM 1
11085 LIBS="$LIBS -lpam"
11086 with_pam_for_crypt=yes
11089 echo "$ac_t""no" 1>&6
11091 esac
11092 else
11093 echo "$ac_t""no" 1>&6
11098 # we can't build a pam module if we don't have pam.
11099 echo $ac_n "checking for pam_get_data in -lpam""... $ac_c" 1>&6
11100 echo "configure:11101: checking for pam_get_data in -lpam" >&5
11101 ac_lib_var=`echo pam'_'pam_get_data | sed 'y%./+-%__p_%'`
11102 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11103 echo $ac_n "(cached) $ac_c" 1>&6
11104 else
11105 ac_save_LIBS="$LIBS"
11106 LIBS="-lpam $LIBS"
11107 cat > conftest.$ac_ext <<EOF
11108 #line 11109 "configure"
11109 #include "confdefs.h"
11110 /* Override any gcc2 internal prototype to avoid an error. */
11111 /* We use char because int might match the return type of a gcc2
11112 builtin and then its argument prototype would still apply. */
11113 char pam_get_data();
11115 int main() {
11116 pam_get_data()
11117 ; return 0; }
11119 if { (eval echo configure:11120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11120 rm -rf conftest*
11121 eval "ac_cv_lib_$ac_lib_var=yes"
11122 else
11123 echo "configure: failed program was:" >&5
11124 cat conftest.$ac_ext >&5
11125 rm -rf conftest*
11126 eval "ac_cv_lib_$ac_lib_var=no"
11128 rm -f conftest*
11129 LIBS="$ac_save_LIBS"
11132 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11133 echo "$ac_t""yes" 1>&6
11134 cat >> confdefs.h <<\EOF
11135 #define HAVE_LIBPAM 1
11138 else
11139 echo "$ac_t""no" 1>&6
11143 #################################################
11144 # check for pam_smbpass support
11145 echo $ac_n "checking whether to use pam_smbpass""... $ac_c" 1>&6
11146 echo "configure:11147: checking whether to use pam_smbpass" >&5
11147 # Check whether --with-pam_smbpass or --without-pam_smbpass was given.
11148 if test "${with_pam_smbpass+set}" = set; then
11149 withval="$with_pam_smbpass"
11150 case "$withval" in
11151 yes)
11152 echo "$ac_t""yes" 1>&6
11154 # Conditions under which pam_smbpass should not be built.
11156 if test x$PICFLAG = x; then
11157 echo "$ac_t""No support for PIC code - disabling pam_smbpass" 1>&6
11158 PAM_MOD=""
11159 elif test x$ac_cv_lib_pam_pam_get_data = xno; then
11160 echo "$ac_t""No libpam found -- disabling pam_smbpass" 1>&6
11161 PAM_MOD=""
11162 else
11163 cat >> confdefs.h <<\EOF
11164 #define WITH_PAM_SMBPASS 1
11167 PAM_MOD="bin/pam_smbpass.so"
11171 echo "$ac_t""no" 1>&6
11173 esac
11174 else
11175 echo "$ac_t""no" 1>&6
11181 ###############################################
11182 # test for where we get crypt() from, but only
11183 # if not using PAM
11184 if test $with_pam_for_crypt = no; then
11185 for ac_func in crypt
11187 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11188 echo "configure:11189: checking for $ac_func" >&5
11189 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11190 echo $ac_n "(cached) $ac_c" 1>&6
11191 else
11192 cat > conftest.$ac_ext <<EOF
11193 #line 11194 "configure"
11194 #include "confdefs.h"
11195 /* System header to define __stub macros and hopefully few prototypes,
11196 which can conflict with char $ac_func(); below. */
11197 #include <assert.h>
11198 /* Override any gcc2 internal prototype to avoid an error. */
11199 /* We use char because int might match the return type of a gcc2
11200 builtin and then its argument prototype would still apply. */
11201 char $ac_func();
11203 int main() {
11205 /* The GNU C library defines this for functions which it implements
11206 to always fail with ENOSYS. Some functions are actually named
11207 something starting with __ and the normal name is an alias. */
11208 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11209 choke me
11210 #else
11211 $ac_func();
11212 #endif
11214 ; return 0; }
11216 if { (eval echo configure:11217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11217 rm -rf conftest*
11218 eval "ac_cv_func_$ac_func=yes"
11219 else
11220 echo "configure: failed program was:" >&5
11221 cat conftest.$ac_ext >&5
11222 rm -rf conftest*
11223 eval "ac_cv_func_$ac_func=no"
11225 rm -f conftest*
11228 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11229 echo "$ac_t""yes" 1>&6
11230 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11231 cat >> confdefs.h <<EOF
11232 #define $ac_tr_func 1
11235 else
11236 echo "$ac_t""no" 1>&6
11238 done
11240 if test x"$ac_cv_func_crypt" = x"no"; then
11241 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
11242 echo "configure:11243: checking for crypt in -lcrypt" >&5
11243 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
11244 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11245 echo $ac_n "(cached) $ac_c" 1>&6
11246 else
11247 ac_save_LIBS="$LIBS"
11248 LIBS="-lcrypt $LIBS"
11249 cat > conftest.$ac_ext <<EOF
11250 #line 11251 "configure"
11251 #include "confdefs.h"
11252 /* Override any gcc2 internal prototype to avoid an error. */
11253 /* We use char because int might match the return type of a gcc2
11254 builtin and then its argument prototype would still apply. */
11255 char crypt();
11257 int main() {
11258 crypt()
11259 ; return 0; }
11261 if { (eval echo configure:11262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11262 rm -rf conftest*
11263 eval "ac_cv_lib_$ac_lib_var=yes"
11264 else
11265 echo "configure: failed program was:" >&5
11266 cat conftest.$ac_ext >&5
11267 rm -rf conftest*
11268 eval "ac_cv_lib_$ac_lib_var=no"
11270 rm -f conftest*
11271 LIBS="$ac_save_LIBS"
11274 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11275 echo "$ac_t""yes" 1>&6
11276 LIBS="$LIBS -lcrypt";
11277 cat >> confdefs.h <<\EOF
11278 #define HAVE_CRYPT 1
11281 else
11282 echo "$ac_t""no" 1>&6
11289 ## moved after the check for -lcrypt in order to
11290 ## ensure that the necessary libraries are included
11291 ## check checking for truncated salt. Wrapped by the
11292 ## $with_pam_for_crypt variable as above --jerry
11294 if test $with_pam_for_crypt = no; then
11295 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
11296 echo "configure:11297: checking for a crypt that needs truncated salt" >&5
11297 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
11298 echo $ac_n "(cached) $ac_c" 1>&6
11299 else
11301 if test "$cross_compiling" = yes; then
11302 samba_cv_HAVE_TRUNCATED_SALT=cross
11303 else
11304 cat > conftest.$ac_ext <<EOF
11305 #line 11306 "configure"
11306 #include "confdefs.h"
11307 #include "${srcdir-.}/tests/crypttest.c"
11309 if { (eval echo configure:11310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11310 then
11311 samba_cv_HAVE_TRUNCATED_SALT=no
11312 else
11313 echo "configure: failed program was:" >&5
11314 cat conftest.$ac_ext >&5
11315 rm -fr conftest*
11316 samba_cv_HAVE_TRUNCATED_SALT=yes
11318 rm -fr conftest*
11323 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
11324 if test x"$samba_cv_HAVE_TRUNCATED_SALT" = x"yes"; then
11325 cat >> confdefs.h <<\EOF
11326 #define HAVE_TRUNCATED_SALT 1
11333 #################################################
11334 # check for a TDB password database
11335 echo $ac_n "checking whether to use TDB password database""... $ac_c" 1>&6
11336 echo "configure:11337: checking whether to use TDB password database" >&5
11337 # Check whether --with-tdbsam or --without-tdbsam was given.
11338 if test "${with_tdbsam+set}" = set; then
11339 withval="$with_tdbsam"
11340 case "$withval" in
11341 yes)
11342 echo "$ac_t""yes" 1>&6
11343 cat >> confdefs.h <<\EOF
11344 #define WITH_TDBSAM 1
11349 echo "$ac_t""no" 1>&6
11351 esac
11352 else
11353 echo "$ac_t""no" 1>&6
11358 #################################################
11359 # check for a LDAP password database
11360 echo $ac_n "checking whether to use LDAP password database""... $ac_c" 1>&6
11361 echo "configure:11362: checking whether to use LDAP password database" >&5
11362 # Check whether --with-ldap or --without-ldap was given.
11363 if test "${with_ldap+set}" = set; then
11364 withval="$with_ldap"
11365 case "$withval" in
11366 yes)
11367 echo "$ac_t""yes" 1>&6
11368 cat >> confdefs.h <<\EOF
11369 #define WITH_LDAP 1
11372 LIBS="-lldap -llber -lresolv $LIBS"
11375 echo "$ac_t""no" 1>&6
11377 esac
11378 else
11379 echo "$ac_t""no" 1>&6
11384 #################################################
11385 ## commented out by --jerry
11386 # check for a NISPLUS password database
11387 #AC_MSG_CHECKING(whether to use NISPLUS password database)
11388 #AC_ARG_WITH(nisplus,
11389 #[ --with-nisplus Include NISPLUS password database support (default=no)],
11390 #[ case "$withval" in
11391 # yes)
11392 # AC_MSG_RESULT(yes)
11393 # AC_DEFINE(WITH_NISPLUS)
11394 # ;;
11395 # *)
11396 # AC_MSG_RESULT(no)
11397 # ;;
11398 # esac ],
11399 # AC_MSG_RESULT(no)
11402 #################################################
11403 # check for a NISPLUS_HOME support
11404 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
11405 echo "configure:11406: checking whether to use NISPLUS_HOME" >&5
11406 # Check whether --with-nisplus-home or --without-nisplus-home was given.
11407 if test "${with_nisplus_home+set}" = set; then
11408 withval="$with_nisplus_home"
11409 case "$withval" in
11410 yes)
11411 echo "$ac_t""yes" 1>&6
11412 cat >> confdefs.h <<\EOF
11413 #define WITH_NISPLUS_HOME 1
11418 echo "$ac_t""no" 1>&6
11420 esac
11421 else
11422 echo "$ac_t""no" 1>&6
11427 #################################################
11428 # check for the secure socket layer
11429 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
11430 echo "configure:11431: checking whether to use SSL" >&5
11431 # Check whether --with-ssl or --without-ssl was given.
11432 if test "${with_ssl+set}" = set; then
11433 withval="$with_ssl"
11434 case "$withval" in
11435 yes)
11436 echo "$ac_t""yes" 1>&6
11437 cat >> confdefs.h <<\EOF
11438 #define WITH_SSL 1
11441 withval="/usr/local/ssl" # default
11443 if test "${with_sslinc+set}" = set; then
11445 withval="$with_sslinc"
11446 case "$withval" in
11447 yes|no)
11448 echo "configure: warning: --with-sslinc called without argument - will use default" 1>&w
11449 CFLAGS="-I/usr/local/ssl/include $CFLAGS"
11450 LIBS="-lssl -lcrypto $LIBS"
11451 LDFLAGS="=L/usr/local/ssl/lib $LDFLAGS"
11454 CFLAGS="-I${withval} $CFLAGS"
11455 LIBS="-lssl -lcrypto $LIBS"
11456 LDFLAGS="-L${withval}/lib $LDFLAGS"
11458 esac
11460 else
11462 CFLAGS="-I/usr/local/ssl/include $CFLAGS"
11463 LIBS="-lssl -lcrypto $LIBS"
11464 LDFLAGS="-L/usr/local/ssl/lib $LDFLAGS"
11468 if test ! -d ${withval}; then
11469 echo "configure: error: called with --with-ssl, but ssl base directory ${withval} does not exist or is not a directory. Aborting config" 1>&2
11470 exit 1
11473 CFLAGS="-DHAVE_CRYPT_DECL $CFLAGS" # Damn, SSLeay defines its own
11477 echo "$ac_t""no" 1>&6
11479 esac
11480 else
11481 echo "$ac_t""no" 1>&6
11486 #################################################
11487 # check for syslog logging
11488 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
11489 echo "configure:11490: checking whether to use syslog logging" >&5
11490 # Check whether --with-syslog or --without-syslog was given.
11491 if test "${with_syslog+set}" = set; then
11492 withval="$with_syslog"
11493 case "$withval" in
11494 yes)
11495 echo "$ac_t""yes" 1>&6
11496 cat >> confdefs.h <<\EOF
11497 #define WITH_SYSLOG 1
11502 echo "$ac_t""no" 1>&6
11504 esac
11505 else
11506 echo "$ac_t""no" 1>&6
11511 #################################################
11512 # check for a shared memory profiling support
11513 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
11514 echo "configure:11515: checking whether to use profiling" >&5
11515 # Check whether --with-profiling-data or --without-profiling-data was given.
11516 if test "${with_profiling_data+set}" = set; then
11517 withval="$with_profiling_data"
11518 case "$withval" in
11519 yes)
11520 echo "$ac_t""yes" 1>&6
11521 cat >> confdefs.h <<\EOF
11522 #define WITH_PROFILE 1
11527 echo "$ac_t""no" 1>&6
11529 esac
11530 else
11531 echo "$ac_t""no" 1>&6
11537 #################################################
11538 # check for experimental disk-quotas support
11539 QUOTAOBJS=smbd/noquotas.o
11541 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
11542 echo "configure:11543: checking whether to support disk-quotas" >&5
11543 # Check whether --with-quotas or --without-quotas was given.
11544 if test "${with_quotas+set}" = set; then
11545 withval="$with_quotas"
11546 case "$withval" in
11547 yes)
11548 echo "$ac_t""yes" 1>&6
11549 QUOTAOBJS=smbd/quotas.o
11552 echo "$ac_t""no" 1>&6
11554 esac
11555 else
11556 echo "$ac_t""no" 1>&6
11562 #################################################
11563 # check for experimental utmp accounting
11565 echo $ac_n "checking whether to support utmp accounting""... $ac_c" 1>&6
11566 echo "configure:11567: checking whether to support utmp accounting" >&5
11567 # Check whether --with-utmp or --without-utmp was given.
11568 if test "${with_utmp+set}" = set; then
11569 withval="$with_utmp"
11570 case "$withval" in
11571 yes)
11572 echo "$ac_t""yes" 1>&6
11573 cat >> confdefs.h <<\EOF
11574 #define WITH_UTMP 1
11579 echo "$ac_t""no" 1>&6
11581 esac
11582 else
11583 echo "$ac_t""no" 1>&6
11588 #################################################
11589 # check for MS Dfs support
11591 echo $ac_n "checking whether to support Microsoft Dfs""... $ac_c" 1>&6
11592 echo "configure:11593: checking whether to support Microsoft Dfs" >&5
11593 # Check whether --with-msdfs or --without-msdfs was given.
11594 if test "${with_msdfs+set}" = set; then
11595 withval="$with_msdfs"
11596 case "$withval" in
11597 yes)
11598 echo "$ac_t""yes" 1>&6
11599 cat >> confdefs.h <<\EOF
11600 #define WITH_MSDFS 1
11605 echo "$ac_t""no" 1>&6
11607 esac
11608 else
11609 echo "$ac_t""no" 1>&6
11614 #################################################
11615 # check for Samba VFS support
11617 echo $ac_n "checking whether to support the experimantal Samba vfs""... $ac_c" 1>&6
11618 echo "configure:11619: checking whether to support the experimantal Samba vfs" >&5
11619 # Check whether --with-vfs or --without-vfs was given.
11620 if test "${with_vfs+set}" = set; then
11621 withval="$with_vfs"
11622 case "$withval" in
11623 yes)
11624 echo "$ac_t""yes" 1>&6
11625 cat >> confdefs.h <<\EOF
11626 #define WITH_VFS 1
11631 echo "$ac_t""no" 1>&6
11633 esac
11634 else
11635 echo "$ac_t""no" 1>&6
11640 #################################################
11641 # these tests are taken from the GNU fileutils package
11642 echo "checking how to get filesystem space usage" 1>&6
11643 echo "configure:11644: checking how to get filesystem space usage" >&5
11644 space=no
11646 # Test for statvfs64.
11647 if test $space = no; then
11648 # SVR4
11649 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
11650 echo "configure:11651: checking statvfs64 function (SVR4)" >&5
11651 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
11652 echo $ac_n "(cached) $ac_c" 1>&6
11653 else
11654 if test "$cross_compiling" = yes; then
11655 fu_cv_sys_stat_statvfs64=cross
11656 else
11657 cat > conftest.$ac_ext <<EOF
11658 #line 11659 "configure"
11659 #include "confdefs.h"
11661 #if defined(HAVE_UNISTD_H)
11662 #include <unistd.h>
11663 #endif
11664 #include <sys/types.h>
11665 #include <sys/statvfs.h>
11666 main ()
11668 struct statvfs64 fsd;
11669 exit (statvfs64 (".", &fsd));
11672 if { (eval echo configure:11673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11673 then
11674 fu_cv_sys_stat_statvfs64=yes
11675 else
11676 echo "configure: failed program was:" >&5
11677 cat conftest.$ac_ext >&5
11678 rm -fr conftest*
11679 fu_cv_sys_stat_statvfs64=no
11681 rm -fr conftest*
11686 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
11687 if test $fu_cv_sys_stat_statvfs64 = yes; then
11688 space=yes
11689 cat >> confdefs.h <<\EOF
11690 #define STAT_STATVFS64 1
11696 # Perform only the link test since it seems there are no variants of the
11697 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
11698 # because that got a false positive on SCO OSR5. Adding the declaration
11699 # of a `struct statvfs' causes this test to fail (as it should) on such
11700 # systems. That system is reported to work fine with STAT_STATFS4 which
11701 # is what it gets when this test fails.
11702 if test $space = no; then
11703 # SVR4
11704 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
11705 echo "configure:11706: checking statvfs function (SVR4)" >&5
11706 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
11707 echo $ac_n "(cached) $ac_c" 1>&6
11708 else
11709 cat > conftest.$ac_ext <<EOF
11710 #line 11711 "configure"
11711 #include "confdefs.h"
11712 #include <sys/types.h>
11713 #include <sys/statvfs.h>
11714 int main() {
11715 struct statvfs fsd; statvfs (0, &fsd);
11716 ; return 0; }
11718 if { (eval echo configure:11719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11719 rm -rf conftest*
11720 fu_cv_sys_stat_statvfs=yes
11721 else
11722 echo "configure: failed program was:" >&5
11723 cat conftest.$ac_ext >&5
11724 rm -rf conftest*
11725 fu_cv_sys_stat_statvfs=no
11727 rm -f conftest*
11730 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
11731 if test $fu_cv_sys_stat_statvfs = yes; then
11732 space=yes
11733 cat >> confdefs.h <<\EOF
11734 #define STAT_STATVFS 1
11740 if test $space = no; then
11741 # DEC Alpha running OSF/1
11742 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
11743 echo "configure:11744: checking for 3-argument statfs function (DEC OSF/1)" >&5
11744 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
11745 echo $ac_n "(cached) $ac_c" 1>&6
11746 else
11747 if test "$cross_compiling" = yes; then
11748 fu_cv_sys_stat_statfs3_osf1=no
11749 else
11750 cat > conftest.$ac_ext <<EOF
11751 #line 11752 "configure"
11752 #include "confdefs.h"
11754 #include <sys/param.h>
11755 #include <sys/types.h>
11756 #include <sys/mount.h>
11757 main ()
11759 struct statfs fsd;
11760 fsd.f_fsize = 0;
11761 exit (statfs (".", &fsd, sizeof (struct statfs)));
11764 if { (eval echo configure:11765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11765 then
11766 fu_cv_sys_stat_statfs3_osf1=yes
11767 else
11768 echo "configure: failed program was:" >&5
11769 cat conftest.$ac_ext >&5
11770 rm -fr conftest*
11771 fu_cv_sys_stat_statfs3_osf1=no
11773 rm -fr conftest*
11778 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
11779 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
11780 space=yes
11781 cat >> confdefs.h <<\EOF
11782 #define STAT_STATFS3_OSF1 1
11788 if test $space = no; then
11789 # AIX
11790 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
11791 echo "configure:11792: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
11792 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
11793 echo $ac_n "(cached) $ac_c" 1>&6
11794 else
11795 if test "$cross_compiling" = yes; then
11796 fu_cv_sys_stat_statfs2_bsize=no
11797 else
11798 cat > conftest.$ac_ext <<EOF
11799 #line 11800 "configure"
11800 #include "confdefs.h"
11802 #ifdef HAVE_SYS_PARAM_H
11803 #include <sys/param.h>
11804 #endif
11805 #ifdef HAVE_SYS_MOUNT_H
11806 #include <sys/mount.h>
11807 #endif
11808 #ifdef HAVE_SYS_VFS_H
11809 #include <sys/vfs.h>
11810 #endif
11811 main ()
11813 struct statfs fsd;
11814 fsd.f_bsize = 0;
11815 exit (statfs (".", &fsd));
11818 if { (eval echo configure:11819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11819 then
11820 fu_cv_sys_stat_statfs2_bsize=yes
11821 else
11822 echo "configure: failed program was:" >&5
11823 cat conftest.$ac_ext >&5
11824 rm -fr conftest*
11825 fu_cv_sys_stat_statfs2_bsize=no
11827 rm -fr conftest*
11832 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
11833 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
11834 space=yes
11835 cat >> confdefs.h <<\EOF
11836 #define STAT_STATFS2_BSIZE 1
11842 if test $space = no; then
11843 # SVR3
11844 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
11845 echo "configure:11846: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
11846 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
11847 echo $ac_n "(cached) $ac_c" 1>&6
11848 else
11849 if test "$cross_compiling" = yes; then
11850 fu_cv_sys_stat_statfs4=no
11851 else
11852 cat > conftest.$ac_ext <<EOF
11853 #line 11854 "configure"
11854 #include "confdefs.h"
11855 #include <sys/types.h>
11856 #include <sys/statfs.h>
11857 main ()
11859 struct statfs fsd;
11860 exit (statfs (".", &fsd, sizeof fsd, 0));
11863 if { (eval echo configure:11864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11864 then
11865 fu_cv_sys_stat_statfs4=yes
11866 else
11867 echo "configure: failed program was:" >&5
11868 cat conftest.$ac_ext >&5
11869 rm -fr conftest*
11870 fu_cv_sys_stat_statfs4=no
11872 rm -fr conftest*
11877 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
11878 if test $fu_cv_sys_stat_statfs4 = yes; then
11879 space=yes
11880 cat >> confdefs.h <<\EOF
11881 #define STAT_STATFS4 1
11887 if test $space = no; then
11888 # 4.4BSD and NetBSD
11889 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
11890 echo "configure:11891: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
11891 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
11892 echo $ac_n "(cached) $ac_c" 1>&6
11893 else
11894 if test "$cross_compiling" = yes; then
11895 fu_cv_sys_stat_statfs2_fsize=no
11896 else
11897 cat > conftest.$ac_ext <<EOF
11898 #line 11899 "configure"
11899 #include "confdefs.h"
11900 #include <sys/types.h>
11901 #ifdef HAVE_SYS_PARAM_H
11902 #include <sys/param.h>
11903 #endif
11904 #ifdef HAVE_SYS_MOUNT_H
11905 #include <sys/mount.h>
11906 #endif
11907 main ()
11909 struct statfs fsd;
11910 fsd.f_fsize = 0;
11911 exit (statfs (".", &fsd));
11914 if { (eval echo configure:11915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11915 then
11916 fu_cv_sys_stat_statfs2_fsize=yes
11917 else
11918 echo "configure: failed program was:" >&5
11919 cat conftest.$ac_ext >&5
11920 rm -fr conftest*
11921 fu_cv_sys_stat_statfs2_fsize=no
11923 rm -fr conftest*
11928 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
11929 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
11930 space=yes
11931 cat >> confdefs.h <<\EOF
11932 #define STAT_STATFS2_FSIZE 1
11938 if test $space = no; then
11939 # Ultrix
11940 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
11941 echo "configure:11942: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
11942 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
11943 echo $ac_n "(cached) $ac_c" 1>&6
11944 else
11945 if test "$cross_compiling" = yes; then
11946 fu_cv_sys_stat_fs_data=no
11947 else
11948 cat > conftest.$ac_ext <<EOF
11949 #line 11950 "configure"
11950 #include "confdefs.h"
11951 #include <sys/types.h>
11952 #ifdef HAVE_SYS_PARAM_H
11953 #include <sys/param.h>
11954 #endif
11955 #ifdef HAVE_SYS_MOUNT_H
11956 #include <sys/mount.h>
11957 #endif
11958 #ifdef HAVE_SYS_FS_TYPES_H
11959 #include <sys/fs_types.h>
11960 #endif
11961 main ()
11963 struct fs_data fsd;
11964 /* Ultrix's statfs returns 1 for success,
11965 0 for not mounted, -1 for failure. */
11966 exit (statfs (".", &fsd) != 1);
11969 if { (eval echo configure:11970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11970 then
11971 fu_cv_sys_stat_fs_data=yes
11972 else
11973 echo "configure: failed program was:" >&5
11974 cat conftest.$ac_ext >&5
11975 rm -fr conftest*
11976 fu_cv_sys_stat_fs_data=no
11978 rm -fr conftest*
11983 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
11984 if test $fu_cv_sys_stat_fs_data = yes; then
11985 space=yes
11986 cat >> confdefs.h <<\EOF
11987 #define STAT_STATFS2_FS_DATA 1
11994 # As a gating factor for large file support, in order to
11995 # use <4GB files we must have the following minimal support
11996 # available.
11997 # long long, and a 64 bit off_t or off64_t.
11998 # If we don't have all of these then disable large
11999 # file support.
12001 echo $ac_n "checking checking if large file support can be enabled""... $ac_c" 1>&6
12002 echo "configure:12003: checking checking if large file support can be enabled" >&5
12003 cat > conftest.$ac_ext <<EOF
12004 #line 12005 "configure"
12005 #include "confdefs.h"
12007 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
12008 #include <sys/types.h>
12009 #else
12010 __COMPILE_ERROR_
12011 #endif
12013 int main() {
12014 int i
12015 ; return 0; }
12017 if { (eval echo configure:12018: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12018 rm -rf conftest*
12019 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=yes
12020 else
12021 echo "configure: failed program was:" >&5
12022 cat conftest.$ac_ext >&5
12023 rm -rf conftest*
12024 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=no
12026 rm -f conftest*
12027 if test x"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x"yes"; then
12028 echo "$ac_t""yes" 1>&6
12029 cat >> confdefs.h <<\EOF
12030 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
12033 else
12034 echo "$ac_t""no" 1>&6
12037 # Check whether --with-spinlocks or --without-spinlocks was given.
12038 if test "${with_spinlocks+set}" = set; then
12039 withval="$with_spinlocks"
12043 if test "x$with_spinlocks" = "xyes"; then
12044 cat >> confdefs.h <<\EOF
12045 #define USE_SPINLOCKS 1
12049 case "$host_cpu" in
12050 sparc)
12051 cat >> confdefs.h <<\EOF
12052 #define SPARC_SPINLOCKS 1
12057 i386|i486|i586|i686)
12058 cat >> confdefs.h <<\EOF
12059 #define INTEL_SPINLOCKS 1
12064 mips)
12065 cat >> confdefs.h <<\EOF
12066 #define MIPS_SPINLOCKS 1
12071 powerpc)
12072 cat >> confdefs.h <<\EOF
12073 #define POWERPC_SPINLOCKS 1
12077 esac
12080 #################################################
12081 # check for ACL support
12083 echo $ac_n "checking whether to support ACLs""... $ac_c" 1>&6
12084 echo "configure:12085: checking whether to support ACLs" >&5
12085 # Check whether --with-acl-support or --without-acl-support was given.
12086 if test "${with_acl_support+set}" = set; then
12087 withval="$with_acl_support"
12088 case "$withval" in
12089 yes)
12091 case "$host_os" in
12092 *sysv5*)
12093 echo "$ac_t""Using UnixWare ACLs" 1>&6
12094 cat >> confdefs.h <<\EOF
12095 #define HAVE_UNIXWARE_ACLS 1
12099 *solaris*)
12100 echo "$ac_t""Using solaris ACLs" 1>&6
12101 cat >> confdefs.h <<\EOF
12102 #define HAVE_SOLARIS_ACLS 1
12106 *irix*)
12107 echo "$ac_t""Using IRIX ACLs" 1>&6
12108 cat >> confdefs.h <<\EOF
12109 #define HAVE_IRIX_ACLS 1
12113 *aix*)
12114 echo "$ac_t""Using AIX ACLs" 1>&6
12115 cat >> confdefs.h <<\EOF
12116 #define HAVE_AIX_ACLS 1
12120 *osf*)
12121 echo "$ac_t""Using Tru64 ACLs" 1>&6
12122 cat >> confdefs.h <<\EOF
12123 #define HAVE_TRU64_ACLS 1
12126 LIBS="$LIBS -lpacl"
12129 echo $ac_n "checking for acl_get_file in -lacl""... $ac_c" 1>&6
12130 echo "configure:12131: checking for acl_get_file in -lacl" >&5
12131 ac_lib_var=`echo acl'_'acl_get_file | sed 'y%./+-%__p_%'`
12132 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12133 echo $ac_n "(cached) $ac_c" 1>&6
12134 else
12135 ac_save_LIBS="$LIBS"
12136 LIBS="-lacl $LIBS"
12137 cat > conftest.$ac_ext <<EOF
12138 #line 12139 "configure"
12139 #include "confdefs.h"
12140 /* Override any gcc2 internal prototype to avoid an error. */
12141 /* We use char because int might match the return type of a gcc2
12142 builtin and then its argument prototype would still apply. */
12143 char acl_get_file();
12145 int main() {
12146 acl_get_file()
12147 ; return 0; }
12149 if { (eval echo configure:12150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12150 rm -rf conftest*
12151 eval "ac_cv_lib_$ac_lib_var=yes"
12152 else
12153 echo "configure: failed program was:" >&5
12154 cat conftest.$ac_ext >&5
12155 rm -rf conftest*
12156 eval "ac_cv_lib_$ac_lib_var=no"
12158 rm -f conftest*
12159 LIBS="$ac_save_LIBS"
12162 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12163 echo "$ac_t""yes" 1>&6
12164 ac_tr_lib=HAVE_LIB`echo acl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
12165 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
12166 cat >> confdefs.h <<EOF
12167 #define $ac_tr_lib 1
12170 LIBS="-lacl $LIBS"
12172 else
12173 echo "$ac_t""no" 1>&6
12176 echo $ac_n "checking for ACL support""... $ac_c" 1>&6
12177 echo "configure:12178: checking for ACL support" >&5
12178 if eval "test \"`echo '$''{'samba_cv_HAVE_POSIX_ACLS'+set}'`\" = set"; then
12179 echo $ac_n "(cached) $ac_c" 1>&6
12180 else
12182 cat > conftest.$ac_ext <<EOF
12183 #line 12184 "configure"
12184 #include "confdefs.h"
12185 #include <sys/types.h>
12186 #include <sys/acl.h>
12187 int main() {
12188 acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
12189 ; return 0; }
12191 if { (eval echo configure:12192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12192 rm -rf conftest*
12193 samba_cv_HAVE_POSIX_ACLS=yes
12194 else
12195 echo "configure: failed program was:" >&5
12196 cat conftest.$ac_ext >&5
12197 rm -rf conftest*
12198 samba_cv_HAVE_POSIX_ACLS=no
12200 rm -f conftest*
12203 echo "$ac_t""$samba_cv_HAVE_POSIX_ACLS" 1>&6
12204 if test x"$samba_cv_HAVE_POSIX_ACLS" = x"yes"; then
12205 echo "$ac_t""Using posix ACLs" 1>&6
12206 cat >> confdefs.h <<\EOF
12207 #define HAVE_POSIX_ACLS 1
12210 echo $ac_n "checking for acl_get_perm_np""... $ac_c" 1>&6
12211 echo "configure:12212: checking for acl_get_perm_np" >&5
12212 if eval "test \"`echo '$''{'samba_cv_HAVE_ACL_GET_PERM_NP'+set}'`\" = set"; then
12213 echo $ac_n "(cached) $ac_c" 1>&6
12214 else
12216 cat > conftest.$ac_ext <<EOF
12217 #line 12218 "configure"
12218 #include "confdefs.h"
12219 #include <sys/types.h>
12220 #include <sys/acl.h>
12221 int main() {
12222 acl_permset_t permset_d; acl_perm_t perm; return acl_get_perm_np( permset_d, perm);
12223 ; return 0; }
12225 if { (eval echo configure:12226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12226 rm -rf conftest*
12227 samba_cv_HAVE_ACL_GET_PERM_NP=yes
12228 else
12229 echo "configure: failed program was:" >&5
12230 cat conftest.$ac_ext >&5
12231 rm -rf conftest*
12232 samba_cv_HAVE_ACL_GET_PERM_NP=no
12234 rm -f conftest*
12237 echo "$ac_t""$samba_cv_HAVE_ACL_GET_PERM_NP" 1>&6
12238 if test x"$samba_cv_HAVE_ACL_GET_PERM_NP" = x"yes"; then
12239 cat >> confdefs.h <<\EOF
12240 #define HAVE_ACL_GET_PERM_NP 1
12246 esac
12249 echo "$ac_t""no" 1>&6
12250 cat >> confdefs.h <<\EOF
12251 #define HAVE_NO_ACLS 1
12255 esac
12256 else
12257 cat >> confdefs.h <<\EOF
12258 #define HAVE_NO_ACLS 1
12261 echo "$ac_t""no" 1>&6
12266 #################################################
12267 # check for the historical SAMBA installation
12269 if test "x$prefix" = xNONE -a "$sbindir" = "\${exec_prefix}/sbin"; then
12270 # Put all binaries under the /usr/local/samba/bin directory.
12271 sbindir="$bindir"
12274 #################################################
12275 # Check whether winbind is supported on this platform. If so we need to
12276 # build and install client programs (WINBIND_TARGETS), sbin programs
12277 # (WINBIND_STARGETS) and shared libraries (WINBIND_LTARGETS).
12279 echo $ac_n "checking whether to build winbind""... $ac_c" 1>&6
12280 echo "configure:12281: checking whether to build winbind" >&5
12282 # Initially, the value of $host_os decides whether winbind is supported
12284 case "$host_os" in
12285 *linux*|*solaris*)
12286 HAVE_WINBIND=yes
12289 HAVE_WINBIND=no
12290 winbind_no_reason=", unsupported on $host_os"
12292 esac
12294 # Check the setting of --with-winbindd
12296 # Check whether --with-winbind or --without-winbind was given.
12297 if test "${with_winbind+set}" = set; then
12298 withval="$with_winbind"
12300 case "$withval" in
12301 yes)
12302 HAVE_WINBIND=yes
12305 HAVE_WINBIND=no
12306 winbind_reason=""
12308 esac
12312 # We need unix domain sockets for winbind
12314 if test x"$HAVE_WINBIND" = x"yes"; then
12315 if test x"$samba_cv_unixsocket" = x"no"; then
12316 winbind_no_reason=", no unix domain socket support on $host_os"
12317 HAVE_WINBIND=no
12321 # Display test results
12323 if test x"$HAVE_WINBIND" = x"yes"; then
12325 echo "$ac_t""yes" 1>&6
12327 WINBIND_TARGETS="\$(WINBIND_PROGS)"
12328 WINBIND_STARGETS="\$(WINBIND_SPROGS)"
12329 WINBIND_LTARGETS="\$(WINBIND_LPROGS)"
12331 case "$with_pam" in
12332 yes)
12333 WINBIND_PAM_PROGS="\$(WINBIND_PAM_PROGS)"
12335 esac
12336 else
12337 echo "$ac_t""no$winbind_no_reason" 1>&6
12339 WINBIND_TARGETS=""
12340 WINBIND_STARGETS=""
12341 WINBIND_LTARGETS=""
12342 WINBIND_PAM_PROGS=""
12345 # Substitution time!
12352 #################################################
12353 # final configure stuff
12354 echo "checking configure summary"
12355 if test "$cross_compiling" = yes; then
12357 else
12358 cat > conftest.$ac_ext <<EOF
12359 #line 12360 "configure"
12360 #include "confdefs.h"
12361 #include "${srcdir-.}/tests/summary.c"
12363 if { (eval echo configure:12364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12364 then
12365 echo "configure OK";
12366 else
12367 echo "configure: failed program was:" >&5
12368 cat conftest.$ac_ext >&5
12369 rm -fr conftest*
12370 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }
12372 rm -fr conftest*
12376 builddir=`pwd`
12379 trap '' 1 2 15
12380 cat > confcache <<\EOF
12381 # This file is a shell script that caches the results of configure
12382 # tests run on this system so they can be shared between configure
12383 # scripts and configure runs. It is not useful on other systems.
12384 # If it contains results you don't want to keep, you may remove or edit it.
12386 # By default, configure uses ./config.cache as the cache file,
12387 # creating it if it does not exist already. You can give configure
12388 # the --cache-file=FILE option to use a different cache file; that is
12389 # what configure does when it calls configure scripts in
12390 # subdirectories, so they share the cache.
12391 # Giving --cache-file=/dev/null disables caching, for debugging configure.
12392 # config.status only pays attention to the cache file if you give it the
12393 # --recheck option to rerun configure.
12396 # The following way of writing the cache mishandles newlines in values,
12397 # but we know of no workaround that is simple, portable, and efficient.
12398 # So, don't put newlines in cache variables' values.
12399 # Ultrix sh set writes to stderr and can't be redirected directly,
12400 # and sets the high bit in the cache file unless we assign to the vars.
12401 (set) 2>&1 |
12402 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12403 *ac_space=\ *)
12404 # `set' does not quote correctly, so add quotes (double-quote substitution
12405 # turns \\\\ into \\, and sed turns \\ into \).
12406 sed -n \
12407 -e "s/'/'\\\\''/g" \
12408 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
12411 # `set' quotes correctly as required by POSIX, so do not add quotes.
12412 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
12414 esac >> confcache
12415 if cmp -s $cache_file confcache; then
12417 else
12418 if test -w $cache_file; then
12419 echo "updating cache $cache_file"
12420 cat confcache > $cache_file
12421 else
12422 echo "not updating unwritable cache $cache_file"
12425 rm -f confcache
12427 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
12429 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12430 # Let make expand exec_prefix.
12431 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12433 # Any assignment to VPATH causes Sun make to only execute
12434 # the first set of double-colon rules, so remove it if not needed.
12435 # If there is a colon in the path, we need to keep it.
12436 if test "x$srcdir" = x.; then
12437 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
12440 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
12442 DEFS=-DHAVE_CONFIG_H
12444 # Without the "./", some shells look in PATH for config.status.
12445 : ${CONFIG_STATUS=./config.status}
12447 echo creating $CONFIG_STATUS
12448 rm -f $CONFIG_STATUS
12449 cat > $CONFIG_STATUS <<EOF
12450 #! /bin/sh
12451 # Generated automatically by configure.
12452 # Run this file to recreate the current configuration.
12453 # This directory was configured as follows,
12454 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12456 # $0 $ac_configure_args
12458 # Compiler output produced by configure, useful for debugging
12459 # configure, is in ./config.log if it exists.
12461 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
12462 for ac_option
12464 case "\$ac_option" in
12465 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12466 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
12467 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
12468 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
12469 echo "$CONFIG_STATUS generated by autoconf version 2.13"
12470 exit 0 ;;
12471 -help | --help | --hel | --he | --h)
12472 echo "\$ac_cs_usage"; exit 0 ;;
12473 *) echo "\$ac_cs_usage"; exit 1 ;;
12474 esac
12475 done
12477 ac_given_srcdir=$srcdir
12478 ac_given_INSTALL="$INSTALL"
12480 trap 'rm -fr `echo "include/stamp-h Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
12482 cat >> $CONFIG_STATUS <<EOF
12484 # Protect against being on the right side of a sed subst in config.status.
12485 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
12486 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
12487 $ac_vpsub
12488 $extrasub
12489 s%@SHELL@%$SHELL%g
12490 s%@CFLAGS@%$CFLAGS%g
12491 s%@CPPFLAGS@%$CPPFLAGS%g
12492 s%@CXXFLAGS@%$CXXFLAGS%g
12493 s%@FFLAGS@%$FFLAGS%g
12494 s%@DEFS@%$DEFS%g
12495 s%@LDFLAGS@%$LDFLAGS%g
12496 s%@LIBS@%$LIBS%g
12497 s%@exec_prefix@%$exec_prefix%g
12498 s%@prefix@%$prefix%g
12499 s%@program_transform_name@%$program_transform_name%g
12500 s%@bindir@%$bindir%g
12501 s%@sbindir@%$sbindir%g
12502 s%@libexecdir@%$libexecdir%g
12503 s%@datadir@%$datadir%g
12504 s%@sysconfdir@%$sysconfdir%g
12505 s%@sharedstatedir@%$sharedstatedir%g
12506 s%@localstatedir@%$localstatedir%g
12507 s%@libdir@%$libdir%g
12508 s%@includedir@%$includedir%g
12509 s%@oldincludedir@%$oldincludedir%g
12510 s%@infodir@%$infodir%g
12511 s%@mandir@%$mandir%g
12512 s%@codepagedir@%$codepagedir%g
12513 s%@configdir@%$configdir%g
12514 s%@lockdir@%$lockdir%g
12515 s%@logfilebase@%$logfilebase%g
12516 s%@privatedir@%$privatedir%g
12517 s%@swatdir@%$swatdir%g
12518 s%@RUNPROG@%$RUNPROG%g
12519 s%@MPROGS@%$MPROGS%g
12520 s%@LDSHFLAGS@%$LDSHFLAGS%g
12521 s%@HOST_OS@%$HOST_OS%g
12522 s%@PAM_MOD@%$PAM_MOD%g
12523 s%@WRAP@%$WRAP%g
12524 s%@WRAP32@%$WRAP32%g
12525 s%@PICFLAG@%$PICFLAG%g
12526 s%@PICSUFFIX@%$PICSUFFIX%g
12527 s%@SHLIBEXT@%$SHLIBEXT%g
12528 s%@BLDSHARED@%$BLDSHARED%g
12529 s%@CC@%$CC%g
12530 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
12531 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
12532 s%@INSTALL_DATA@%$INSTALL_DATA%g
12533 s%@AWK@%$AWK%g
12534 s%@BROKEN_CC@%$BROKEN_CC%g
12535 s%@host@%$host%g
12536 s%@host_alias@%$host_alias%g
12537 s%@host_cpu@%$host_cpu%g
12538 s%@host_vendor@%$host_vendor%g
12539 s%@host_os@%$host_os%g
12540 s%@target@%$target%g
12541 s%@target_alias@%$target_alias%g
12542 s%@target_cpu@%$target_cpu%g
12543 s%@target_vendor@%$target_vendor%g
12544 s%@target_os@%$target_os%g
12545 s%@build@%$build%g
12546 s%@build_alias@%$build_alias%g
12547 s%@build_cpu@%$build_cpu%g
12548 s%@build_vendor@%$build_vendor%g
12549 s%@build_os@%$build_os%g
12550 s%@CPP@%$CPP%g
12551 s%@LIBOBJS@%$LIBOBJS%g
12552 s%@TERMLIBS@%$TERMLIBS%g
12553 s%@TERMLDFLAGS@%$TERMLDFLAGS%g
12554 s%@ROFF@%$ROFF%g
12555 s%@QUOTAOBJS@%$QUOTAOBJS%g
12556 s%@WINBIND_TARGETS@%$WINBIND_TARGETS%g
12557 s%@WINBIND_STARGETS@%$WINBIND_STARGETS%g
12558 s%@WINBIND_LTARGETS@%$WINBIND_LTARGETS%g
12559 s%@WINBIND_PAM_PROGS@%$WINBIND_PAM_PROGS%g
12560 s%@builddir@%$builddir%g
12562 CEOF
12565 cat >> $CONFIG_STATUS <<\EOF
12567 # Split the substitutions into bite-sized pieces for seds with
12568 # small command number limits, like on Digital OSF/1 and HP-UX.
12569 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
12570 ac_file=1 # Number of current file.
12571 ac_beg=1 # First line for current file.
12572 ac_end=$ac_max_sed_cmds # Line after last line for current file.
12573 ac_more_lines=:
12574 ac_sed_cmds=""
12575 while $ac_more_lines; do
12576 if test $ac_beg -gt 1; then
12577 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
12578 else
12579 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
12581 if test ! -s conftest.s$ac_file; then
12582 ac_more_lines=false
12583 rm -f conftest.s$ac_file
12584 else
12585 if test -z "$ac_sed_cmds"; then
12586 ac_sed_cmds="sed -f conftest.s$ac_file"
12587 else
12588 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
12590 ac_file=`expr $ac_file + 1`
12591 ac_beg=$ac_end
12592 ac_end=`expr $ac_end + $ac_max_sed_cmds`
12594 done
12595 if test -z "$ac_sed_cmds"; then
12596 ac_sed_cmds=cat
12600 cat >> $CONFIG_STATUS <<EOF
12602 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile"}
12604 cat >> $CONFIG_STATUS <<\EOF
12605 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
12606 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12607 case "$ac_file" in
12608 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
12609 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12610 *) ac_file_in="${ac_file}.in" ;;
12611 esac
12613 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
12615 # Remove last slash and all that follows it. Not all systems have dirname.
12616 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
12617 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
12618 # The file is in a subdirectory.
12619 test ! -d "$ac_dir" && mkdir "$ac_dir"
12620 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
12621 # A "../" for each directory in $ac_dir_suffix.
12622 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
12623 else
12624 ac_dir_suffix= ac_dots=
12627 case "$ac_given_srcdir" in
12628 .) srcdir=.
12629 if test -z "$ac_dots"; then top_srcdir=.
12630 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
12631 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
12632 *) # Relative path.
12633 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
12634 top_srcdir="$ac_dots$ac_given_srcdir" ;;
12635 esac
12637 case "$ac_given_INSTALL" in
12638 [/$]*) INSTALL="$ac_given_INSTALL" ;;
12639 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
12640 esac
12642 echo creating "$ac_file"
12643 rm -f "$ac_file"
12644 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
12645 case "$ac_file" in
12646 *Makefile*) ac_comsub="1i\\
12647 # $configure_input" ;;
12648 *) ac_comsub= ;;
12649 esac
12651 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
12652 sed -e "$ac_comsub
12653 s%@configure_input@%$configure_input%g
12654 s%@srcdir@%$srcdir%g
12655 s%@top_srcdir@%$top_srcdir%g
12656 s%@INSTALL@%$INSTALL%g
12657 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
12658 fi; done
12659 rm -f conftest.s*
12661 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12662 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12664 # ac_d sets the value in "#define NAME VALUE" lines.
12665 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12666 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
12667 ac_dC='\3'
12668 ac_dD='%g'
12669 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
12670 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12671 ac_uB='\([ ]\)%\1#\2define\3'
12672 ac_uC=' '
12673 ac_uD='\4%g'
12674 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12675 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12676 ac_eB='$%\1#\2define\3'
12677 ac_eC=' '
12678 ac_eD='%g'
12680 if test "${CONFIG_HEADERS+set}" != set; then
12682 cat >> $CONFIG_STATUS <<EOF
12683 CONFIG_HEADERS="include/config.h"
12685 cat >> $CONFIG_STATUS <<\EOF
12687 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
12688 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12689 case "$ac_file" in
12690 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
12691 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12692 *) ac_file_in="${ac_file}.in" ;;
12693 esac
12695 echo creating $ac_file
12697 rm -f conftest.frag conftest.in conftest.out
12698 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
12699 cat $ac_file_inputs > conftest.in
12703 # Transform confdefs.h into a sed script conftest.vals that substitutes
12704 # the proper values into config.h.in to produce config.h. And first:
12705 # Protect against being on the right side of a sed subst in config.status.
12706 # Protect against being in an unquoted here document in config.status.
12707 rm -f conftest.vals
12708 cat > conftest.hdr <<\EOF
12709 s/[\\&%]/\\&/g
12710 s%[\\$`]%\\&%g
12711 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
12712 s%ac_d%ac_u%gp
12713 s%ac_u%ac_e%gp
12715 sed -n -f conftest.hdr confdefs.h > conftest.vals
12716 rm -f conftest.hdr
12718 # This sed command replaces #undef with comments. This is necessary, for
12719 # example, in the case of _POSIX_SOURCE, which is predefined and required
12720 # on some systems where configure will not decide to define it.
12721 cat >> conftest.vals <<\EOF
12722 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
12725 # Break up conftest.vals because some shells have a limit on
12726 # the size of here documents, and old seds have small limits too.
12728 rm -f conftest.tail
12729 while :
12731 ac_lines=`grep -c . conftest.vals`
12732 # grep -c gives empty output for an empty file on some AIX systems.
12733 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
12734 # Write a limited-size here document to conftest.frag.
12735 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
12736 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
12737 echo 'CEOF
12738 sed -f conftest.frag conftest.in > conftest.out
12739 rm -f conftest.in
12740 mv conftest.out conftest.in
12741 ' >> $CONFIG_STATUS
12742 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
12743 rm -f conftest.vals
12744 mv conftest.tail conftest.vals
12745 done
12746 rm -f conftest.vals
12748 cat >> $CONFIG_STATUS <<\EOF
12749 rm -f conftest.frag conftest.h
12750 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
12751 cat conftest.in >> conftest.h
12752 rm -f conftest.in
12753 if cmp -s $ac_file conftest.h 2>/dev/null; then
12754 echo "$ac_file is unchanged"
12755 rm -f conftest.h
12756 else
12757 # Remove last slash and all that follows it. Not all systems have dirname.
12758 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
12759 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
12760 # The file is in a subdirectory.
12761 test ! -d "$ac_dir" && mkdir "$ac_dir"
12763 rm -f $ac_file
12764 mv conftest.h $ac_file
12766 fi; done
12769 cat >> $CONFIG_STATUS <<EOF
12772 cat >> $CONFIG_STATUS <<\EOF
12774 exit 0
12776 chmod +x $CONFIG_STATUS
12777 rm -fr confdefs* $ac_clean_files
12778 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1