patch to make Samba work with OpenSSL (instead of SSLeay).
[Samba.git] / source / configure
blob4ec082d0f3b630f73ec9e5580239a9c78b88fa97
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 experimental TDB SAM support (default=no)"
51 ac_help="$ac_help
52 --with-ldapsam Include experimental LDAP SAM support (default=no)"
53 ac_help="$ac_help
54 --with-nisplussam Include NISPLUS SAM support (default=no)"
55 ac_help="$ac_help
56 --with-nisplus-home Include NISPLUS_HOME support (default=no)"
57 ac_help="$ac_help
58 --with-ssl Include SSL support (default=no)
59 --with-sslinc=DIR Where the SSL includes are (defaults to /usr/local/ssl/include)
60 --with-ssllib=DIR Where the SSL libraries are (defaults to /usr/local/ssl/lib)"
61 ac_help="$ac_help
62 --with-syslog Include experimental SYSLOG support (default=no)"
63 ac_help="$ac_help
64 --with-profiling-data Include gathering source code profile information (default=no)"
65 ac_help="$ac_help
66 --with-quotas Include experimental disk-quota support (default=no)"
67 ac_help="$ac_help
68 --with-utmp Include experimental utmp accounting (default=no)"
69 ac_help="$ac_help
70 --with-msdfs Include MS Dfs support (default=no)"
71 ac_help="$ac_help
72 --with-vfs Include Samba vfs support (default=no)"
73 ac_help="$ac_help
74 --with-spinlocks Use spin locks instead of fcntl locks (default=no)"
75 ac_help="$ac_help
76 --with-acl-support Include ACL support (default=no)"
77 ac_help="$ac_help
78 --with-winbind Build winbind (default, if supported by OS)"
80 # Initialize some variables set by options.
81 # The variables have the same names as the options, with
82 # dashes changed to underlines.
83 build=NONE
84 cache_file=./config.cache
85 exec_prefix=NONE
86 host=NONE
87 no_create=
88 nonopt=NONE
89 no_recursion=
90 prefix=NONE
91 program_prefix=NONE
92 program_suffix=NONE
93 program_transform_name=s,x,x,
94 silent=
95 site=
96 srcdir=
97 target=NONE
98 verbose=
99 x_includes=NONE
100 x_libraries=NONE
101 bindir='${exec_prefix}/bin'
102 sbindir='${exec_prefix}/sbin'
103 libexecdir='${exec_prefix}/libexec'
104 datadir='${prefix}/share'
105 sysconfdir='${prefix}/etc'
106 sharedstatedir='${prefix}/com'
107 localstatedir='${prefix}/var'
108 libdir='${exec_prefix}/lib'
109 includedir='${prefix}/include'
110 oldincludedir='/usr/include'
111 infodir='${prefix}/info'
112 mandir='${prefix}/man'
114 # Initialize some other variables.
115 subdirs=
116 MFLAGS= MAKEFLAGS=
117 SHELL=${CONFIG_SHELL-/bin/sh}
118 # Maximum number of lines to put in a shell here document.
119 ac_max_here_lines=12
121 ac_prev=
122 for ac_option
125 # If the previous option needs an argument, assign it.
126 if test -n "$ac_prev"; then
127 eval "$ac_prev=\$ac_option"
128 ac_prev=
129 continue
132 case "$ac_option" in
133 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
134 *) ac_optarg= ;;
135 esac
137 # Accept the important Cygnus configure options, so we can diagnose typos.
139 case "$ac_option" in
141 -bindir | --bindir | --bindi | --bind | --bin | --bi)
142 ac_prev=bindir ;;
143 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
144 bindir="$ac_optarg" ;;
146 -build | --build | --buil | --bui | --bu)
147 ac_prev=build ;;
148 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
149 build="$ac_optarg" ;;
151 -cache-file | --cache-file | --cache-fil | --cache-fi \
152 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
153 ac_prev=cache_file ;;
154 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
155 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
156 cache_file="$ac_optarg" ;;
158 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
159 ac_prev=datadir ;;
160 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
161 | --da=*)
162 datadir="$ac_optarg" ;;
164 -disable-* | --disable-*)
165 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
166 # Reject names that are not valid shell variable names.
167 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
168 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
170 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
171 eval "enable_${ac_feature}=no" ;;
173 -enable-* | --enable-*)
174 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
175 # Reject names that are not valid shell variable names.
176 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
177 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
179 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
180 case "$ac_option" in
181 *=*) ;;
182 *) ac_optarg=yes ;;
183 esac
184 eval "enable_${ac_feature}='$ac_optarg'" ;;
186 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
187 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
188 | --exec | --exe | --ex)
189 ac_prev=exec_prefix ;;
190 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
191 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
192 | --exec=* | --exe=* | --ex=*)
193 exec_prefix="$ac_optarg" ;;
195 -gas | --gas | --ga | --g)
196 # Obsolete; use --with-gas.
197 with_gas=yes ;;
199 -help | --help | --hel | --he)
200 # Omit some internal or obsolete options to make the list less imposing.
201 # This message is too long to be a string in the A/UX 3.1 sh.
202 cat << EOF
203 Usage: configure [options] [host]
204 Options: [defaults in brackets after descriptions]
205 Configuration:
206 --cache-file=FILE cache test results in FILE
207 --help print this message
208 --no-create do not create output files
209 --quiet, --silent do not print \`checking...' messages
210 --version print the version of autoconf that created configure
211 Directory and file names:
212 --prefix=PREFIX install architecture-independent files in PREFIX
213 [$ac_default_prefix]
214 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
215 [same as prefix]
216 --bindir=DIR user executables in DIR [EPREFIX/bin]
217 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
218 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
219 --datadir=DIR read-only architecture-independent data in DIR
220 [PREFIX/share]
221 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
222 --sharedstatedir=DIR modifiable architecture-independent data in DIR
223 [PREFIX/com]
224 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
225 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
226 --includedir=DIR C header files in DIR [PREFIX/include]
227 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
228 --infodir=DIR info documentation in DIR [PREFIX/info]
229 --mandir=DIR man documentation in DIR [PREFIX/man]
230 --srcdir=DIR find the sources in DIR [configure dir or ..]
231 --program-prefix=PREFIX prepend PREFIX to installed program names
232 --program-suffix=SUFFIX append SUFFIX to installed program names
233 --program-transform-name=PROGRAM
234 run sed PROGRAM on installed program names
236 cat << EOF
237 Host type:
238 --build=BUILD configure for building on BUILD [BUILD=HOST]
239 --host=HOST configure for HOST [guessed]
240 --target=TARGET configure for TARGET [TARGET=HOST]
241 Features and packages:
242 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
243 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
244 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
245 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
246 --x-includes=DIR X include files are in DIR
247 --x-libraries=DIR X library files are in DIR
249 if test -n "$ac_help"; then
250 echo "--enable and --with options recognized:$ac_help"
252 exit 0 ;;
254 -host | --host | --hos | --ho)
255 ac_prev=host ;;
256 -host=* | --host=* | --hos=* | --ho=*)
257 host="$ac_optarg" ;;
259 -includedir | --includedir | --includedi | --included | --include \
260 | --includ | --inclu | --incl | --inc)
261 ac_prev=includedir ;;
262 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
263 | --includ=* | --inclu=* | --incl=* | --inc=*)
264 includedir="$ac_optarg" ;;
266 -infodir | --infodir | --infodi | --infod | --info | --inf)
267 ac_prev=infodir ;;
268 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
269 infodir="$ac_optarg" ;;
271 -libdir | --libdir | --libdi | --libd)
272 ac_prev=libdir ;;
273 -libdir=* | --libdir=* | --libdi=* | --libd=*)
274 libdir="$ac_optarg" ;;
276 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
277 | --libexe | --libex | --libe)
278 ac_prev=libexecdir ;;
279 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
280 | --libexe=* | --libex=* | --libe=*)
281 libexecdir="$ac_optarg" ;;
283 -localstatedir | --localstatedir | --localstatedi | --localstated \
284 | --localstate | --localstat | --localsta | --localst \
285 | --locals | --local | --loca | --loc | --lo)
286 ac_prev=localstatedir ;;
287 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
288 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
289 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
290 localstatedir="$ac_optarg" ;;
292 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
293 ac_prev=mandir ;;
294 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
295 mandir="$ac_optarg" ;;
297 -nfp | --nfp | --nf)
298 # Obsolete; use --without-fp.
299 with_fp=no ;;
301 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
302 | --no-cr | --no-c)
303 no_create=yes ;;
305 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
306 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
307 no_recursion=yes ;;
309 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
310 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
311 | --oldin | --oldi | --old | --ol | --o)
312 ac_prev=oldincludedir ;;
313 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
314 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
315 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
316 oldincludedir="$ac_optarg" ;;
318 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
319 ac_prev=prefix ;;
320 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
321 prefix="$ac_optarg" ;;
323 -program-prefix | --program-prefix | --program-prefi | --program-pref \
324 | --program-pre | --program-pr | --program-p)
325 ac_prev=program_prefix ;;
326 -program-prefix=* | --program-prefix=* | --program-prefi=* \
327 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
328 program_prefix="$ac_optarg" ;;
330 -program-suffix | --program-suffix | --program-suffi | --program-suff \
331 | --program-suf | --program-su | --program-s)
332 ac_prev=program_suffix ;;
333 -program-suffix=* | --program-suffix=* | --program-suffi=* \
334 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
335 program_suffix="$ac_optarg" ;;
337 -program-transform-name | --program-transform-name \
338 | --program-transform-nam | --program-transform-na \
339 | --program-transform-n | --program-transform- \
340 | --program-transform | --program-transfor \
341 | --program-transfo | --program-transf \
342 | --program-trans | --program-tran \
343 | --progr-tra | --program-tr | --program-t)
344 ac_prev=program_transform_name ;;
345 -program-transform-name=* | --program-transform-name=* \
346 | --program-transform-nam=* | --program-transform-na=* \
347 | --program-transform-n=* | --program-transform-=* \
348 | --program-transform=* | --program-transfor=* \
349 | --program-transfo=* | --program-transf=* \
350 | --program-trans=* | --program-tran=* \
351 | --progr-tra=* | --program-tr=* | --program-t=*)
352 program_transform_name="$ac_optarg" ;;
354 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
355 | -silent | --silent | --silen | --sile | --sil)
356 silent=yes ;;
358 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
359 ac_prev=sbindir ;;
360 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
361 | --sbi=* | --sb=*)
362 sbindir="$ac_optarg" ;;
364 -sharedstatedir | --sharedstatedir | --sharedstatedi \
365 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
366 | --sharedst | --shareds | --shared | --share | --shar \
367 | --sha | --sh)
368 ac_prev=sharedstatedir ;;
369 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
370 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
371 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
372 | --sha=* | --sh=*)
373 sharedstatedir="$ac_optarg" ;;
375 -site | --site | --sit)
376 ac_prev=site ;;
377 -site=* | --site=* | --sit=*)
378 site="$ac_optarg" ;;
380 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
381 ac_prev=srcdir ;;
382 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
383 srcdir="$ac_optarg" ;;
385 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
386 | --syscon | --sysco | --sysc | --sys | --sy)
387 ac_prev=sysconfdir ;;
388 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
389 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
390 sysconfdir="$ac_optarg" ;;
392 -target | --target | --targe | --targ | --tar | --ta | --t)
393 ac_prev=target ;;
394 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
395 target="$ac_optarg" ;;
397 -v | -verbose | --verbose | --verbos | --verbo | --verb)
398 verbose=yes ;;
400 -version | --version | --versio | --versi | --vers)
401 echo "configure generated by autoconf version 2.13"
402 exit 0 ;;
404 -with-* | --with-*)
405 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
406 # Reject names that are not valid shell variable names.
407 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
408 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
410 ac_package=`echo $ac_package| sed 's/-/_/g'`
411 case "$ac_option" in
412 *=*) ;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "with_${ac_package}='$ac_optarg'" ;;
417 -without-* | --without-*)
418 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
419 # Reject names that are not valid shell variable names.
420 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
421 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
423 ac_package=`echo $ac_package| sed 's/-/_/g'`
424 eval "with_${ac_package}=no" ;;
426 --x)
427 # Obsolete; use --with-x.
428 with_x=yes ;;
430 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
431 | --x-incl | --x-inc | --x-in | --x-i)
432 ac_prev=x_includes ;;
433 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
434 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
435 x_includes="$ac_optarg" ;;
437 -x-libraries | --x-libraries | --x-librarie | --x-librari \
438 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
439 ac_prev=x_libraries ;;
440 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
441 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
442 x_libraries="$ac_optarg" ;;
444 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
448 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
449 echo "configure: warning: $ac_option: invalid host type" 1>&2
451 if test "x$nonopt" != xNONE; then
452 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
454 nonopt="$ac_option"
457 esac
458 done
460 if test -n "$ac_prev"; then
461 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
464 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
466 # File descriptor usage:
467 # 0 standard input
468 # 1 file creation
469 # 2 errors and warnings
470 # 3 some systems may open it to /dev/tty
471 # 4 used on the Kubota Titan
472 # 6 checking for... messages and results
473 # 5 compiler messages saved in config.log
474 if test "$silent" = yes; then
475 exec 6>/dev/null
476 else
477 exec 6>&1
479 exec 5>./config.log
481 echo "\
482 This file contains any messages produced by compilers while
483 running configure, to aid debugging if configure makes a mistake.
484 " 1>&5
486 # Strip out --no-create and --no-recursion so they do not pile up.
487 # Also quote any args containing shell metacharacters.
488 ac_configure_args=
489 for ac_arg
491 case "$ac_arg" in
492 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
493 | --no-cr | --no-c) ;;
494 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
495 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
496 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
497 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
498 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
499 esac
500 done
502 # NLS nuisances.
503 # Only set these to C if already set. These must not be set unconditionally
504 # because not all systems understand e.g. LANG=C (notably SCO).
505 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
506 # Non-C LC_CTYPE values break the ctype check.
507 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
508 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
509 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
510 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
512 # confdefs.h avoids OS command line length limits that DEFS can exceed.
513 rm -rf conftest* confdefs.h
514 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
515 echo > confdefs.h
517 # A filename unique to this package, relative to the directory that
518 # configure is in, which we can look for to find out if srcdir is correct.
519 ac_unique_file=include/includes.h
521 # Find the source files, if location was not specified.
522 if test -z "$srcdir"; then
523 ac_srcdir_defaulted=yes
524 # Try the directory containing this script, then its parent.
525 ac_prog=$0
526 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
527 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
528 srcdir=$ac_confdir
529 if test ! -r $srcdir/$ac_unique_file; then
530 srcdir=..
532 else
533 ac_srcdir_defaulted=no
535 if test ! -r $srcdir/$ac_unique_file; then
536 if test "$ac_srcdir_defaulted" = yes; then
537 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
538 else
539 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
542 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
544 # Prefer explicitly selected file to automatically selected ones.
545 if test -z "$CONFIG_SITE"; then
546 if test "x$prefix" != xNONE; then
547 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
548 else
549 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
552 for ac_site_file in $CONFIG_SITE; do
553 if test -r "$ac_site_file"; then
554 echo "loading site script $ac_site_file"
555 . "$ac_site_file"
557 done
559 if test -r "$cache_file"; then
560 echo "loading cache $cache_file"
561 . $cache_file
562 else
563 echo "creating cache $cache_file"
564 > $cache_file
567 ac_ext=c
568 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
569 ac_cpp='$CPP $CPPFLAGS'
570 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
571 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
572 cross_compiling=$ac_cv_prog_cc_cross
574 ac_exeext=
575 ac_objext=o
576 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
577 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
578 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
579 ac_n= ac_c='
580 ' ac_t=' '
581 else
582 ac_n=-n ac_c= ac_t=
584 else
585 ac_n= ac_c='\c' ac_t=
591 #################################################
592 # Directory handling stuff to support both the
593 # legacy SAMBA directories and FHS compliant
594 # ones...
597 # Check whether --with-fhs or --without-fhs was given.
598 if test "${with_fhs+set}" = set; then
599 withval="$with_fhs"
600 codepagedir="\$(DATADIR)/samba/codepages"
601 configdir="${sysconfdir}/samba"
602 lockdir="\${VARDIR}/cache/samba"
603 logfilebase="\${VARDIR}/log/samba"
604 privatedir="\${CONFIGDIR}/private"
605 swatdir="\${DATADIR}/samba/swat"
606 else
607 codepagedir="\$(LIBDIR)/codepages"
608 configdir="\$(LIBDIR)"
609 lockdir="\$(VARDIR)/locks"
610 logfilebase="\$(VARDIR)"
611 privatedir="\${prefix}/private"
612 swatdir="\${prefix}/swat"
616 #################################################
617 # set private directory location
618 # Check whether --with-privatedir or --without-privatedir was given.
619 if test "${with_privatedir+set}" = set; then
620 withval="$with_privatedir"
621 case "$withval" in
622 yes|no)
624 # Just in case anybody calls it without argument
626 echo "configure: warning: --with-privatedir called without argument - will use default" 1>&2
629 privatedir="$withval"
631 esac
635 #################################################
636 # set lock directory location
637 # Check whether --with-lockdir or --without-lockdir was given.
638 if test "${with_lockdir+set}" = set; then
639 withval="$with_lockdir"
640 case "$withval" in
641 yes|no)
643 # Just in case anybody calls it without argument
645 echo "configure: warning: --with-lockdir called without argument - will use default" 1>&2
648 lockdir="$withval"
650 esac
654 #################################################
655 # set SWAT directory location
656 # Check whether --with-swatdir or --without-swatdir was given.
657 if test "${with_swatdir+set}" = set; then
658 withval="$with_swatdir"
659 case "$withval" in
660 yes|no)
662 # Just in case anybody does it
664 echo "configure: warning: --with-swatdir called without argument - will use default" 1>&2
667 swatdir="$withval"
669 esac
673 #################################################
674 # set configuration directory location
675 # Check whether --with-configdir or --without-configdir was given.
676 if test "${with_configdir+set}" = set; then
677 withval="$with_configdir"
678 case "$withval" in
679 yes|no)
681 # Just in case anybody does it
683 echo "configure: warning: --with-configdir called without argument - will use default" 1>&2
686 configdir="$withval"
688 esac
692 #################################################
693 # set codepage directory location
694 # Check whether --with-codepagedir or --without-codepagedir was given.
695 if test "${with_codepagedir+set}" = set; then
696 withval="$with_codepagedir"
697 case "$withval" in
698 yes|no)
700 # Just in case anybody does it
702 echo "configure: warning: --with-codepagedir called without argument - will use default" 1>&2
705 codepagedir="$withval"
707 esac
734 # compile with optimization and without debugging by default
735 CFLAGS="-O ${CFLAGS}"
737 # Check whether --enable-debug or --disable-debug was given.
738 if test "${enable_debug+set}" = set; then
739 enableval="$enable_debug"
740 if eval "test x$enable_debug = xyes"; then
741 CFLAGS="${CFLAGS} -g"
748 # Extract the first word of "gcc", so it can be a program name with args.
749 set dummy gcc; ac_word=$2
750 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
751 echo "configure:752: checking for $ac_word" >&5
752 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
753 echo $ac_n "(cached) $ac_c" 1>&6
754 else
755 if test -n "$CC"; then
756 ac_cv_prog_CC="$CC" # Let the user override the test.
757 else
758 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
759 ac_dummy="$PATH"
760 for ac_dir in $ac_dummy; do
761 test -z "$ac_dir" && ac_dir=.
762 if test -f $ac_dir/$ac_word; then
763 ac_cv_prog_CC="gcc"
764 break
766 done
767 IFS="$ac_save_ifs"
770 CC="$ac_cv_prog_CC"
771 if test -n "$CC"; then
772 echo "$ac_t""$CC" 1>&6
773 else
774 echo "$ac_t""no" 1>&6
777 if test -z "$CC"; then
778 # Extract the first word of "cc", so it can be a program name with args.
779 set dummy cc; ac_word=$2
780 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
781 echo "configure:782: checking for $ac_word" >&5
782 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
783 echo $ac_n "(cached) $ac_c" 1>&6
784 else
785 if test -n "$CC"; then
786 ac_cv_prog_CC="$CC" # Let the user override the test.
787 else
788 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
789 ac_prog_rejected=no
790 ac_dummy="$PATH"
791 for ac_dir in $ac_dummy; do
792 test -z "$ac_dir" && ac_dir=.
793 if test -f $ac_dir/$ac_word; then
794 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
795 ac_prog_rejected=yes
796 continue
798 ac_cv_prog_CC="cc"
799 break
801 done
802 IFS="$ac_save_ifs"
803 if test $ac_prog_rejected = yes; then
804 # We found a bogon in the path, so make sure we never use it.
805 set dummy $ac_cv_prog_CC
806 shift
807 if test $# -gt 0; then
808 # We chose a different compiler from the bogus one.
809 # However, it has the same basename, so the bogon will be chosen
810 # first if we set CC to just the basename; use the full file name.
811 shift
812 set dummy "$ac_dir/$ac_word" "$@"
813 shift
814 ac_cv_prog_CC="$@"
819 CC="$ac_cv_prog_CC"
820 if test -n "$CC"; then
821 echo "$ac_t""$CC" 1>&6
822 else
823 echo "$ac_t""no" 1>&6
826 if test -z "$CC"; then
827 case "`uname -s`" in
828 *win32* | *WIN32*)
829 # Extract the first word of "cl", so it can be a program name with args.
830 set dummy cl; ac_word=$2
831 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
832 echo "configure:833: checking for $ac_word" >&5
833 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
834 echo $ac_n "(cached) $ac_c" 1>&6
835 else
836 if test -n "$CC"; then
837 ac_cv_prog_CC="$CC" # Let the user override the test.
838 else
839 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
840 ac_dummy="$PATH"
841 for ac_dir in $ac_dummy; do
842 test -z "$ac_dir" && ac_dir=.
843 if test -f $ac_dir/$ac_word; then
844 ac_cv_prog_CC="cl"
845 break
847 done
848 IFS="$ac_save_ifs"
851 CC="$ac_cv_prog_CC"
852 if test -n "$CC"; then
853 echo "$ac_t""$CC" 1>&6
854 else
855 echo "$ac_t""no" 1>&6
858 esac
860 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
863 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
864 echo "configure:865: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
866 ac_ext=c
867 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
868 ac_cpp='$CPP $CPPFLAGS'
869 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
870 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
871 cross_compiling=$ac_cv_prog_cc_cross
873 cat > conftest.$ac_ext << EOF
875 #line 876 "configure"
876 #include "confdefs.h"
878 main(){return(0);}
880 if { (eval echo configure:881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
881 ac_cv_prog_cc_works=yes
882 # If we can't run a trivial program, we are probably using a cross compiler.
883 if (./conftest; exit) 2>/dev/null; then
884 ac_cv_prog_cc_cross=no
885 else
886 ac_cv_prog_cc_cross=yes
888 else
889 echo "configure: failed program was:" >&5
890 cat conftest.$ac_ext >&5
891 ac_cv_prog_cc_works=no
893 rm -fr conftest*
894 ac_ext=c
895 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
896 ac_cpp='$CPP $CPPFLAGS'
897 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
898 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
899 cross_compiling=$ac_cv_prog_cc_cross
901 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
902 if test $ac_cv_prog_cc_works = no; then
903 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
905 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
906 echo "configure:907: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
907 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
908 cross_compiling=$ac_cv_prog_cc_cross
910 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
911 echo "configure:912: checking whether we are using GNU C" >&5
912 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
913 echo $ac_n "(cached) $ac_c" 1>&6
914 else
915 cat > conftest.c <<EOF
916 #ifdef __GNUC__
917 yes;
918 #endif
920 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:921: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
921 ac_cv_prog_gcc=yes
922 else
923 ac_cv_prog_gcc=no
927 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
929 if test $ac_cv_prog_gcc = yes; then
930 GCC=yes
931 else
932 GCC=
935 ac_test_CFLAGS="${CFLAGS+set}"
936 ac_save_CFLAGS="$CFLAGS"
937 CFLAGS=
938 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
939 echo "configure:940: checking whether ${CC-cc} accepts -g" >&5
940 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
941 echo $ac_n "(cached) $ac_c" 1>&6
942 else
943 echo 'void f(){}' > conftest.c
944 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
945 ac_cv_prog_cc_g=yes
946 else
947 ac_cv_prog_cc_g=no
949 rm -f conftest*
953 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
954 if test "$ac_test_CFLAGS" = set; then
955 CFLAGS="$ac_save_CFLAGS"
956 elif test $ac_cv_prog_cc_g = yes; then
957 if test "$GCC" = yes; then
958 CFLAGS="-g -O2"
959 else
960 CFLAGS="-g"
962 else
963 if test "$GCC" = yes; then
964 CFLAGS="-O2"
965 else
966 CFLAGS=
970 ac_aux_dir=
971 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
972 if test -f $ac_dir/install-sh; then
973 ac_aux_dir=$ac_dir
974 ac_install_sh="$ac_aux_dir/install-sh -c"
975 break
976 elif test -f $ac_dir/install.sh; then
977 ac_aux_dir=$ac_dir
978 ac_install_sh="$ac_aux_dir/install.sh -c"
979 break
981 done
982 if test -z "$ac_aux_dir"; then
983 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
985 ac_config_guess=$ac_aux_dir/config.guess
986 ac_config_sub=$ac_aux_dir/config.sub
987 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
989 # Find a good install program. We prefer a C program (faster),
990 # so one script is as good as another. But avoid the broken or
991 # incompatible versions:
992 # SysV /etc/install, /usr/sbin/install
993 # SunOS /usr/etc/install
994 # IRIX /sbin/install
995 # AIX /bin/install
996 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
997 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
998 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
999 # ./install, which can be erroneously created by make from ./install.sh.
1000 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1001 echo "configure:1002: checking for a BSD compatible install" >&5
1002 if test -z "$INSTALL"; then
1003 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1004 echo $ac_n "(cached) $ac_c" 1>&6
1005 else
1006 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1007 for ac_dir in $PATH; do
1008 # Account for people who put trailing slashes in PATH elements.
1009 case "$ac_dir/" in
1010 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1012 # OSF1 and SCO ODT 3.0 have their own names for install.
1013 # Don't use installbsd from OSF since it installs stuff as root
1014 # by default.
1015 for ac_prog in ginstall scoinst install; do
1016 if test -f $ac_dir/$ac_prog; then
1017 if test $ac_prog = install &&
1018 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1019 # AIX install. It has an incompatible calling convention.
1021 else
1022 ac_cv_path_install="$ac_dir/$ac_prog -c"
1023 break 2
1026 done
1028 esac
1029 done
1030 IFS="$ac_save_IFS"
1033 if test "${ac_cv_path_install+set}" = set; then
1034 INSTALL="$ac_cv_path_install"
1035 else
1036 # As a last resort, use the slow shell script. We don't cache a
1037 # path for INSTALL within a source directory, because that will
1038 # break other packages using the cache if that directory is
1039 # removed, or if the path is relative.
1040 INSTALL="$ac_install_sh"
1043 echo "$ac_t""$INSTALL" 1>&6
1045 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1046 # It thinks the first close brace ends the variable substitution.
1047 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1049 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1051 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1053 for ac_prog in mawk gawk nawk awk
1055 # Extract the first word of "$ac_prog", so it can be a program name with args.
1056 set dummy $ac_prog; ac_word=$2
1057 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1058 echo "configure:1059: checking for $ac_word" >&5
1059 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1060 echo $ac_n "(cached) $ac_c" 1>&6
1061 else
1062 if test -n "$AWK"; then
1063 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1064 else
1065 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1066 ac_dummy="$PATH"
1067 for ac_dir in $ac_dummy; do
1068 test -z "$ac_dir" && ac_dir=.
1069 if test -f $ac_dir/$ac_word; then
1070 ac_cv_prog_AWK="$ac_prog"
1071 break
1073 done
1074 IFS="$ac_save_ifs"
1077 AWK="$ac_cv_prog_AWK"
1078 if test -n "$AWK"; then
1079 echo "$ac_t""$AWK" 1>&6
1080 else
1081 echo "$ac_t""no" 1>&6
1084 test -n "$AWK" && break
1085 done
1088 if test "x$CC" != xcc; then
1089 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1090 echo "configure:1091: checking whether $CC and cc understand -c and -o together" >&5
1091 else
1092 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1093 echo "configure:1094: checking whether cc understands -c and -o together" >&5
1095 set dummy $CC; ac_cc="`echo $2 |
1096 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1097 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1098 echo $ac_n "(cached) $ac_c" 1>&6
1099 else
1100 echo 'foo(){}' > conftest.c
1101 # Make sure it works both with $CC and with simple cc.
1102 # We do the test twice because some compilers refuse to overwrite an
1103 # existing .o file with -o, though they will create one.
1104 ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1105 if { (eval echo configure:1106: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1106 test -f conftest.o && { (eval echo configure:1107: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1107 then
1108 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
1109 if test "x$CC" != xcc; then
1110 # Test first that cc exists at all.
1111 if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:1112: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1112 ac_try='cc -c conftest.c -o conftest.o 1>&5'
1113 if { (eval echo configure:1114: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1114 test -f conftest.o && { (eval echo configure:1115: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1115 then
1116 # cc works too.
1118 else
1119 # cc exists but doesn't like -o.
1120 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1124 else
1125 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1127 rm -f conftest*
1130 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1131 echo "$ac_t""yes" 1>&6
1132 else
1133 echo "$ac_t""no" 1>&6
1134 cat >> confdefs.h <<\EOF
1135 #define NO_MINUS_C_MINUS_O 1
1140 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1141 BROKEN_CC=
1142 else
1143 BROKEN_CC=#
1147 echo $ac_n "checking that the C compiler understands volatile""... $ac_c" 1>&6
1148 echo "configure:1149: checking that the C compiler understands volatile" >&5
1149 if eval "test \"`echo '$''{'samba_cv_volatile'+set}'`\" = set"; then
1150 echo $ac_n "(cached) $ac_c" 1>&6
1151 else
1153 cat > conftest.$ac_ext <<EOF
1154 #line 1155 "configure"
1155 #include "confdefs.h"
1156 #include <sys/types.h>
1157 int main() {
1158 volatile int i = 0
1159 ; return 0; }
1161 if { (eval echo configure:1162: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1162 rm -rf conftest*
1163 samba_cv_volatile=yes
1164 else
1165 echo "configure: failed program was:" >&5
1166 cat conftest.$ac_ext >&5
1167 rm -rf conftest*
1168 samba_cv_volatile=no
1170 rm -f conftest*
1173 echo "$ac_t""$samba_cv_volatile" 1>&6
1174 if test x"$samba_cv_volatile" = x"yes"; then
1175 cat >> confdefs.h <<\EOF
1176 #define HAVE_VOLATILE 1
1184 # Do some error checking and defaulting for the host and target type.
1185 # The inputs are:
1186 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1188 # The rules are:
1189 # 1. You are not allowed to specify --host, --target, and nonopt at the
1190 # same time.
1191 # 2. Host defaults to nonopt.
1192 # 3. If nonopt is not specified, then host defaults to the current host,
1193 # as determined by config.guess.
1194 # 4. Target and build default to nonopt.
1195 # 5. If nonopt is not specified, then target and build default to host.
1197 # The aliases save the names the user supplied, while $host etc.
1198 # will get canonicalized.
1199 case $host---$target---$nonopt in
1200 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1201 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1202 esac
1205 # Make sure we can run config.sub.
1206 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1207 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1210 echo $ac_n "checking host system type""... $ac_c" 1>&6
1211 echo "configure:1212: checking host system type" >&5
1213 host_alias=$host
1214 case "$host_alias" in
1215 NONE)
1216 case $nonopt in
1217 NONE)
1218 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1219 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1220 fi ;;
1221 *) host_alias=$nonopt ;;
1222 esac ;;
1223 esac
1225 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1226 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1227 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1228 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1229 echo "$ac_t""$host" 1>&6
1231 echo $ac_n "checking target system type""... $ac_c" 1>&6
1232 echo "configure:1233: checking target system type" >&5
1234 target_alias=$target
1235 case "$target_alias" in
1236 NONE)
1237 case $nonopt in
1238 NONE) target_alias=$host_alias ;;
1239 *) target_alias=$nonopt ;;
1240 esac ;;
1241 esac
1243 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1244 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1245 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1246 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1247 echo "$ac_t""$target" 1>&6
1249 echo $ac_n "checking build system type""... $ac_c" 1>&6
1250 echo "configure:1251: checking build system type" >&5
1252 build_alias=$build
1253 case "$build_alias" in
1254 NONE)
1255 case $nonopt in
1256 NONE) build_alias=$host_alias ;;
1257 *) build_alias=$nonopt ;;
1258 esac ;;
1259 esac
1261 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1262 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1263 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1264 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1265 echo "$ac_t""$build" 1>&6
1267 test "$host_alias" != "$target_alias" &&
1268 test "$program_prefix$program_suffix$program_transform_name" = \
1269 NONENONEs,x,x, &&
1270 program_prefix=${target_alias}-
1273 case "$host_os" in
1274 *irix6*) cat >> confdefs.h <<\EOF
1275 #include <standards.h>
1279 esac
1283 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
1284 echo "configure:1285: checking config.cache system type" >&5
1285 if { test x"${ac_cv_host_system_type+set}" = x"set" &&
1286 test x"$ac_cv_host_system_type" != x"$host"; } ||
1287 { test x"${ac_cv_build_system_type+set}" = x"set" &&
1288 test x"$ac_cv_build_system_type" != x"$build"; } ||
1289 { test x"${ac_cv_target_system_type+set}" = x"set" &&
1290 test x"$ac_cv_target_system_type" != x"$target"; }; then
1291 echo "$ac_t""different" 1>&6
1292 { echo "configure: error: "you must remove config.cache and restart configure"" 1>&2; exit 1; }
1293 else
1294 echo "$ac_t""same" 1>&6
1296 ac_cv_host_system_type="$host"
1297 ac_cv_build_system_type="$build"
1298 ac_cv_target_system_type="$target"
1302 # Config CPPFLAG settings for strange OS's that must be set
1303 # before other tests.
1305 case "$host_os" in
1306 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1307 *hpux*)
1308 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1309 echo "configure:1310: checking whether ${CC-cc} accepts -Ae" >&5
1310 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1311 echo $ac_n "(cached) $ac_c" 1>&6
1312 else
1313 echo 'void f(){}' > conftest.c
1314 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1315 ac_cv_prog_cc_Ae=yes
1316 else
1317 ac_cv_prog_cc_Ae=no
1319 rm -f conftest*
1323 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1324 # mmap on HPUX is completely broken...
1325 cat >> confdefs.h <<\EOF
1326 #define MMAP_BLACKLIST 1
1329 if test $ac_cv_prog_cc_Ae = yes; then
1330 CPPFLAGS="$CPPFLAGS -Ae"
1333 # Defines needed for HPUX support.
1334 # HPUX has bigcrypt but (sometimes?) doesn't use it for
1335 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
1337 case `uname -r` in
1338 *9*|*10*)
1339 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE"
1340 cat >> confdefs.h <<\EOF
1341 #define USE_BOTH_CRYPT_CALLS 1
1345 *11*)
1346 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE"
1347 cat >> confdefs.h <<\EOF
1348 #define USE_BOTH_CRYPT_CALLS 1
1352 esac
1355 # AIX4.x doesn't even admit to having large
1356 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1358 *aix4*)
1359 echo "$ac_t""enabling large file support" 1>&6
1360 CPPFLAGS="$CPPFLAGS -D_LARGE_FILES"
1363 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
1364 # to the existance of large files..
1365 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
1366 # recommendations on large file support, however it makes the
1367 # compile work using gcc 2.7 and 2.8, whereas using the Sun
1368 # recommendation makes the compile fail on gcc2.7. JRA.
1370 *solaris*)
1371 case `uname -r` in
1372 5.0*|5.1*|5.2*|5.3*|5.5*)
1373 echo "$ac_t""no large file support" 1>&6
1375 5.*)
1376 echo "$ac_t""enabling large file support" 1>&6
1377 if test "$ac_cv_prog_gcc" = yes; then
1378 ${CC-cc} -v >conftest.c 2>&1
1379 ac_cv_gcc_compiler_version_number=`grep 'gcc version' conftest.c`
1380 rm -fr conftest.c
1381 case "$ac_cv_gcc_compiler_version_number" in
1382 *"gcc version 2.6"*|*"gcc version 2.7"*)
1383 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
1386 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1388 esac
1389 else
1390 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1393 esac
1396 # Tests needed for SINIX large file support.
1398 *sysv4*)
1399 if test $host = mips-sni-sysv4 ; then
1400 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1401 echo "configure:1402: checking for LFS support" >&5
1402 old_CPPFLAGS="$CPPFLAGS"
1403 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1404 if test "$cross_compiling" = yes; then
1405 SINIX_LFS_SUPPORT=cross
1406 else
1407 cat > conftest.$ac_ext <<EOF
1408 #line 1409 "configure"
1409 #include "confdefs.h"
1411 #include <unistd.h>
1412 main () {
1413 #if _LFS64_LARGEFILE == 1
1414 exit(0);
1415 #else
1416 exit(1);
1417 #endif
1420 if { (eval echo configure:1421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1421 then
1422 SINIX_LFS_SUPPORT=yes
1423 else
1424 echo "configure: failed program was:" >&5
1425 cat conftest.$ac_ext >&5
1426 rm -fr conftest*
1427 SINIX_LFS_SUPPORT=no
1429 rm -fr conftest*
1432 CPPFLAGS="$old_CPPFLAGS"
1433 if test x$SINIX_LFS_SUPPORT = xyes ; then
1434 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1435 CFLAGS="`getconf LFS64_CFLAGS` $CFLAGS"
1436 LDFLAGS="`getconf LFS64_LDFLAGS` $LDFLAGS"
1437 LIBS="`getconf LFS64_LIBS` $LIBS"
1439 echo "$ac_t""$SINIX_LFS_SUPPORT" 1>&6
1443 # Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
1445 *linux*)
1446 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1447 echo "configure:1448: checking for LFS support" >&5
1448 old_CPPFLAGS="$CPPFLAGS"
1449 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1450 if test "$cross_compiling" = yes; then
1451 LINUX_LFS_SUPPORT=cross
1452 else
1453 cat > conftest.$ac_ext <<EOF
1454 #line 1455 "configure"
1455 #include "confdefs.h"
1457 #include <unistd.h>
1458 #include <sys/utsname.h>
1459 main() {
1460 #if _LFS64_LARGEFILE == 1
1461 struct utsname uts;
1462 char *release;
1463 int major, minor;
1465 /* Ensure this is glibc 2.2 or higher */
1466 #if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
1467 int libc_major = __GLIBC__;
1468 int libc_minor = __GLIBC_MINOR__;
1470 if (libc_major < 2)
1471 exit(1);
1472 if (libc_minor < 2)
1473 exit(1);
1474 #endif
1476 /* Ensure this is kernel 2.4 or higher */
1478 uname(&uts);
1479 release = uts.release;
1480 major = atoi(strsep(&release, "."));
1481 minor = atoi(strsep(&release, "."));
1483 if (major > 2 || (major == 2 && minor > 3))
1484 exit(0);
1485 exit(1);
1486 #else
1487 exit(1);
1488 #endif
1492 if { (eval echo configure:1493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1493 then
1494 LINUX_LFS_SUPPORT=yes
1495 else
1496 echo "configure: failed program was:" >&5
1497 cat conftest.$ac_ext >&5
1498 rm -fr conftest*
1499 LINUX_LFS_SUPPORT=no
1501 rm -fr conftest*
1504 CPPFLAGS="$old_CPPFLAGS"
1505 if test x$LINUX_LFS_SUPPORT = xyes ; then
1506 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1508 echo "$ac_t""$LINUX_LFS_SUPPORT" 1>&6
1511 *hurd*)
1512 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1513 echo "configure:1514: checking for LFS support" >&5
1514 old_CPPFLAGS="$CPPFLAGS"
1515 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1516 if test "$cross_compiling" = yes; then
1517 GLIBC_LFS_SUPPORT=cross
1518 else
1519 cat > conftest.$ac_ext <<EOF
1520 #line 1521 "configure"
1521 #include "confdefs.h"
1523 #include <unistd.h>
1524 main () {
1525 #if _LFS64_LARGEFILE == 1
1526 exit(0);
1527 #else
1528 exit(1);
1529 #endif
1532 if { (eval echo configure:1533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1533 then
1534 GLIBC_LFS_SUPPORT=yes
1535 else
1536 echo "configure: failed program was:" >&5
1537 cat conftest.$ac_ext >&5
1538 rm -fr conftest*
1539 GLIBC_LFS_SUPPORT=no
1541 rm -fr conftest*
1544 CPPFLAGS="$old_CPPFLAGS"
1545 if test x$GLIBC_LFS_SUPPORT = xyes ; then
1546 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1548 echo "$ac_t""$GLIBC_LFS_SUPPORT" 1>&6
1551 esac
1553 echo $ac_n "checking for inline""... $ac_c" 1>&6
1554 echo "configure:1555: checking for inline" >&5
1555 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1556 echo $ac_n "(cached) $ac_c" 1>&6
1557 else
1558 ac_cv_c_inline=no
1559 for ac_kw in inline __inline__ __inline; do
1560 cat > conftest.$ac_ext <<EOF
1561 #line 1562 "configure"
1562 #include "confdefs.h"
1564 int main() {
1565 } $ac_kw foo() {
1566 ; return 0; }
1568 if { (eval echo configure:1569: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1569 rm -rf conftest*
1570 ac_cv_c_inline=$ac_kw; break
1571 else
1572 echo "configure: failed program was:" >&5
1573 cat conftest.$ac_ext >&5
1575 rm -f conftest*
1576 done
1580 echo "$ac_t""$ac_cv_c_inline" 1>&6
1581 case "$ac_cv_c_inline" in
1582 inline | yes) ;;
1583 no) cat >> confdefs.h <<\EOF
1584 #define inline
1587 *) cat >> confdefs.h <<EOF
1588 #define inline $ac_cv_c_inline
1591 esac
1593 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1594 echo "configure:1595: checking how to run the C preprocessor" >&5
1595 # On Suns, sometimes $CPP names a directory.
1596 if test -n "$CPP" && test -d "$CPP"; then
1597 CPP=
1599 if test -z "$CPP"; then
1600 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1601 echo $ac_n "(cached) $ac_c" 1>&6
1602 else
1603 # This must be in double quotes, not single quotes, because CPP may get
1604 # substituted into the Makefile and "${CC-cc}" will confuse make.
1605 CPP="${CC-cc} -E"
1606 # On the NeXT, cc -E runs the code through the compiler's parser,
1607 # not just through cpp.
1608 cat > conftest.$ac_ext <<EOF
1609 #line 1610 "configure"
1610 #include "confdefs.h"
1611 #include <assert.h>
1612 Syntax Error
1614 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1615 { (eval echo configure:1616: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1616 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1617 if test -z "$ac_err"; then
1619 else
1620 echo "$ac_err" >&5
1621 echo "configure: failed program was:" >&5
1622 cat conftest.$ac_ext >&5
1623 rm -rf conftest*
1624 CPP="${CC-cc} -E -traditional-cpp"
1625 cat > conftest.$ac_ext <<EOF
1626 #line 1627 "configure"
1627 #include "confdefs.h"
1628 #include <assert.h>
1629 Syntax Error
1631 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1632 { (eval echo configure:1633: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1633 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1634 if test -z "$ac_err"; then
1636 else
1637 echo "$ac_err" >&5
1638 echo "configure: failed program was:" >&5
1639 cat conftest.$ac_ext >&5
1640 rm -rf conftest*
1641 CPP="${CC-cc} -nologo -E"
1642 cat > conftest.$ac_ext <<EOF
1643 #line 1644 "configure"
1644 #include "confdefs.h"
1645 #include <assert.h>
1646 Syntax Error
1648 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1649 { (eval echo configure:1650: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1650 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1651 if test -z "$ac_err"; then
1653 else
1654 echo "$ac_err" >&5
1655 echo "configure: failed program was:" >&5
1656 cat conftest.$ac_ext >&5
1657 rm -rf conftest*
1658 CPP=/lib/cpp
1660 rm -f conftest*
1662 rm -f conftest*
1664 rm -f conftest*
1665 ac_cv_prog_CPP="$CPP"
1667 CPP="$ac_cv_prog_CPP"
1668 else
1669 ac_cv_prog_CPP="$CPP"
1671 echo "$ac_t""$CPP" 1>&6
1673 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1674 echo "configure:1675: checking for ANSI C header files" >&5
1675 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1676 echo $ac_n "(cached) $ac_c" 1>&6
1677 else
1678 cat > conftest.$ac_ext <<EOF
1679 #line 1680 "configure"
1680 #include "confdefs.h"
1681 #include <stdlib.h>
1682 #include <stdarg.h>
1683 #include <string.h>
1684 #include <float.h>
1686 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1687 { (eval echo configure:1688: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1688 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1689 if test -z "$ac_err"; then
1690 rm -rf conftest*
1691 ac_cv_header_stdc=yes
1692 else
1693 echo "$ac_err" >&5
1694 echo "configure: failed program was:" >&5
1695 cat conftest.$ac_ext >&5
1696 rm -rf conftest*
1697 ac_cv_header_stdc=no
1699 rm -f conftest*
1701 if test $ac_cv_header_stdc = yes; then
1702 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1703 cat > conftest.$ac_ext <<EOF
1704 #line 1705 "configure"
1705 #include "confdefs.h"
1706 #include <string.h>
1708 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1709 egrep "memchr" >/dev/null 2>&1; then
1711 else
1712 rm -rf conftest*
1713 ac_cv_header_stdc=no
1715 rm -f conftest*
1719 if test $ac_cv_header_stdc = yes; then
1720 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1721 cat > conftest.$ac_ext <<EOF
1722 #line 1723 "configure"
1723 #include "confdefs.h"
1724 #include <stdlib.h>
1726 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1727 egrep "free" >/dev/null 2>&1; then
1729 else
1730 rm -rf conftest*
1731 ac_cv_header_stdc=no
1733 rm -f conftest*
1737 if test $ac_cv_header_stdc = yes; then
1738 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1739 if test "$cross_compiling" = yes; then
1741 else
1742 cat > conftest.$ac_ext <<EOF
1743 #line 1744 "configure"
1744 #include "confdefs.h"
1745 #include <ctype.h>
1746 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1747 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1748 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1749 int main () { int i; for (i = 0; i < 256; i++)
1750 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1751 exit (0); }
1754 if { (eval echo configure:1755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1755 then
1757 else
1758 echo "configure: failed program was:" >&5
1759 cat conftest.$ac_ext >&5
1760 rm -fr conftest*
1761 ac_cv_header_stdc=no
1763 rm -fr conftest*
1769 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1770 if test $ac_cv_header_stdc = yes; then
1771 cat >> confdefs.h <<\EOF
1772 #define STDC_HEADERS 1
1777 ac_header_dirent=no
1778 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1780 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1781 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1782 echo "configure:1783: checking for $ac_hdr that defines DIR" >&5
1783 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1784 echo $ac_n "(cached) $ac_c" 1>&6
1785 else
1786 cat > conftest.$ac_ext <<EOF
1787 #line 1788 "configure"
1788 #include "confdefs.h"
1789 #include <sys/types.h>
1790 #include <$ac_hdr>
1791 int main() {
1792 DIR *dirp = 0;
1793 ; return 0; }
1795 if { (eval echo configure:1796: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1796 rm -rf conftest*
1797 eval "ac_cv_header_dirent_$ac_safe=yes"
1798 else
1799 echo "configure: failed program was:" >&5
1800 cat conftest.$ac_ext >&5
1801 rm -rf conftest*
1802 eval "ac_cv_header_dirent_$ac_safe=no"
1804 rm -f conftest*
1806 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1807 echo "$ac_t""yes" 1>&6
1808 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1809 cat >> confdefs.h <<EOF
1810 #define $ac_tr_hdr 1
1812 ac_header_dirent=$ac_hdr; break
1813 else
1814 echo "$ac_t""no" 1>&6
1816 done
1817 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1818 if test $ac_header_dirent = dirent.h; then
1819 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1820 echo "configure:1821: checking for opendir in -ldir" >&5
1821 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1822 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1823 echo $ac_n "(cached) $ac_c" 1>&6
1824 else
1825 ac_save_LIBS="$LIBS"
1826 LIBS="-ldir $LIBS"
1827 cat > conftest.$ac_ext <<EOF
1828 #line 1829 "configure"
1829 #include "confdefs.h"
1830 /* Override any gcc2 internal prototype to avoid an error. */
1831 /* We use char because int might match the return type of a gcc2
1832 builtin and then its argument prototype would still apply. */
1833 char opendir();
1835 int main() {
1836 opendir()
1837 ; return 0; }
1839 if { (eval echo configure:1840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1840 rm -rf conftest*
1841 eval "ac_cv_lib_$ac_lib_var=yes"
1842 else
1843 echo "configure: failed program was:" >&5
1844 cat conftest.$ac_ext >&5
1845 rm -rf conftest*
1846 eval "ac_cv_lib_$ac_lib_var=no"
1848 rm -f conftest*
1849 LIBS="$ac_save_LIBS"
1852 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1853 echo "$ac_t""yes" 1>&6
1854 LIBS="$LIBS -ldir"
1855 else
1856 echo "$ac_t""no" 1>&6
1859 else
1860 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1861 echo "configure:1862: checking for opendir in -lx" >&5
1862 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1863 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1864 echo $ac_n "(cached) $ac_c" 1>&6
1865 else
1866 ac_save_LIBS="$LIBS"
1867 LIBS="-lx $LIBS"
1868 cat > conftest.$ac_ext <<EOF
1869 #line 1870 "configure"
1870 #include "confdefs.h"
1871 /* Override any gcc2 internal prototype to avoid an error. */
1872 /* We use char because int might match the return type of a gcc2
1873 builtin and then its argument prototype would still apply. */
1874 char opendir();
1876 int main() {
1877 opendir()
1878 ; return 0; }
1880 if { (eval echo configure:1881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1881 rm -rf conftest*
1882 eval "ac_cv_lib_$ac_lib_var=yes"
1883 else
1884 echo "configure: failed program was:" >&5
1885 cat conftest.$ac_ext >&5
1886 rm -rf conftest*
1887 eval "ac_cv_lib_$ac_lib_var=no"
1889 rm -f conftest*
1890 LIBS="$ac_save_LIBS"
1893 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1894 echo "$ac_t""yes" 1>&6
1895 LIBS="$LIBS -lx"
1896 else
1897 echo "$ac_t""no" 1>&6
1902 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1903 echo "configure:1904: checking whether time.h and sys/time.h may both be included" >&5
1904 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1905 echo $ac_n "(cached) $ac_c" 1>&6
1906 else
1907 cat > conftest.$ac_ext <<EOF
1908 #line 1909 "configure"
1909 #include "confdefs.h"
1910 #include <sys/types.h>
1911 #include <sys/time.h>
1912 #include <time.h>
1913 int main() {
1914 struct tm *tp;
1915 ; return 0; }
1917 if { (eval echo configure:1918: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1918 rm -rf conftest*
1919 ac_cv_header_time=yes
1920 else
1921 echo "configure: failed program was:" >&5
1922 cat conftest.$ac_ext >&5
1923 rm -rf conftest*
1924 ac_cv_header_time=no
1926 rm -f conftest*
1929 echo "$ac_t""$ac_cv_header_time" 1>&6
1930 if test $ac_cv_header_time = yes; then
1931 cat >> confdefs.h <<\EOF
1932 #define TIME_WITH_SYS_TIME 1
1937 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1938 echo "configure:1939: checking for sys/wait.h that is POSIX.1 compatible" >&5
1939 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1940 echo $ac_n "(cached) $ac_c" 1>&6
1941 else
1942 cat > conftest.$ac_ext <<EOF
1943 #line 1944 "configure"
1944 #include "confdefs.h"
1945 #include <sys/types.h>
1946 #include <sys/wait.h>
1947 #ifndef WEXITSTATUS
1948 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1949 #endif
1950 #ifndef WIFEXITED
1951 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1952 #endif
1953 int main() {
1954 int s;
1955 wait (&s);
1956 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1957 ; return 0; }
1959 if { (eval echo configure:1960: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1960 rm -rf conftest*
1961 ac_cv_header_sys_wait_h=yes
1962 else
1963 echo "configure: failed program was:" >&5
1964 cat conftest.$ac_ext >&5
1965 rm -rf conftest*
1966 ac_cv_header_sys_wait_h=no
1968 rm -f conftest*
1971 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1972 if test $ac_cv_header_sys_wait_h = yes; then
1973 cat >> confdefs.h <<\EOF
1974 #define HAVE_SYS_WAIT_H 1
1979 for ac_hdr in arpa/inet.h sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h
1981 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1982 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1983 echo "configure:1984: checking for $ac_hdr" >&5
1984 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1985 echo $ac_n "(cached) $ac_c" 1>&6
1986 else
1987 cat > conftest.$ac_ext <<EOF
1988 #line 1989 "configure"
1989 #include "confdefs.h"
1990 #include <$ac_hdr>
1992 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1993 { (eval echo configure:1994: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1994 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1995 if test -z "$ac_err"; then
1996 rm -rf conftest*
1997 eval "ac_cv_header_$ac_safe=yes"
1998 else
1999 echo "$ac_err" >&5
2000 echo "configure: failed program was:" >&5
2001 cat conftest.$ac_ext >&5
2002 rm -rf conftest*
2003 eval "ac_cv_header_$ac_safe=no"
2005 rm -f conftest*
2007 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2008 echo "$ac_t""yes" 1>&6
2009 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2010 cat >> confdefs.h <<EOF
2011 #define $ac_tr_hdr 1
2014 else
2015 echo "$ac_t""no" 1>&6
2017 done
2019 for ac_hdr in unistd.h utime.h grp.h sys/id.h limits.h memory.h net/if.h
2021 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2022 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2023 echo "configure:2024: checking for $ac_hdr" >&5
2024 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2025 echo $ac_n "(cached) $ac_c" 1>&6
2026 else
2027 cat > conftest.$ac_ext <<EOF
2028 #line 2029 "configure"
2029 #include "confdefs.h"
2030 #include <$ac_hdr>
2032 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2033 { (eval echo configure:2034: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2034 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2035 if test -z "$ac_err"; then
2036 rm -rf conftest*
2037 eval "ac_cv_header_$ac_safe=yes"
2038 else
2039 echo "$ac_err" >&5
2040 echo "configure: failed program was:" >&5
2041 cat conftest.$ac_ext >&5
2042 rm -rf conftest*
2043 eval "ac_cv_header_$ac_safe=no"
2045 rm -f conftest*
2047 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2048 echo "$ac_t""yes" 1>&6
2049 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2050 cat >> confdefs.h <<EOF
2051 #define $ac_tr_hdr 1
2054 else
2055 echo "$ac_t""no" 1>&6
2057 done
2059 for ac_hdr in compat.h rpc/rpc.h rpcsvc/nis.h rpcsvc/yp_prot.h rpcsvc/ypclnt.h
2061 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2062 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2063 echo "configure:2064: checking for $ac_hdr" >&5
2064 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2065 echo $ac_n "(cached) $ac_c" 1>&6
2066 else
2067 cat > conftest.$ac_ext <<EOF
2068 #line 2069 "configure"
2069 #include "confdefs.h"
2070 #include <$ac_hdr>
2072 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2073 { (eval echo configure:2074: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2074 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2075 if test -z "$ac_err"; then
2076 rm -rf conftest*
2077 eval "ac_cv_header_$ac_safe=yes"
2078 else
2079 echo "$ac_err" >&5
2080 echo "configure: failed program was:" >&5
2081 cat conftest.$ac_ext >&5
2082 rm -rf conftest*
2083 eval "ac_cv_header_$ac_safe=no"
2085 rm -f conftest*
2087 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2088 echo "$ac_t""yes" 1>&6
2089 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2090 cat >> confdefs.h <<EOF
2091 #define $ac_tr_hdr 1
2094 else
2095 echo "$ac_t""no" 1>&6
2097 done
2099 for ac_hdr in sys/param.h ctype.h sys/wait.h sys/resource.h sys/ioctl.h sys/ipc.h sys/mode.h
2101 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2102 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2103 echo "configure:2104: checking for $ac_hdr" >&5
2104 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2105 echo $ac_n "(cached) $ac_c" 1>&6
2106 else
2107 cat > conftest.$ac_ext <<EOF
2108 #line 2109 "configure"
2109 #include "confdefs.h"
2110 #include <$ac_hdr>
2112 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2113 { (eval echo configure:2114: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2114 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2115 if test -z "$ac_err"; then
2116 rm -rf conftest*
2117 eval "ac_cv_header_$ac_safe=yes"
2118 else
2119 echo "$ac_err" >&5
2120 echo "configure: failed program was:" >&5
2121 cat conftest.$ac_ext >&5
2122 rm -rf conftest*
2123 eval "ac_cv_header_$ac_safe=no"
2125 rm -f conftest*
2127 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2128 echo "$ac_t""yes" 1>&6
2129 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2130 cat >> confdefs.h <<EOF
2131 #define $ac_tr_hdr 1
2134 else
2135 echo "$ac_t""no" 1>&6
2137 done
2139 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
2141 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2142 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2143 echo "configure:2144: checking for $ac_hdr" >&5
2144 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2145 echo $ac_n "(cached) $ac_c" 1>&6
2146 else
2147 cat > conftest.$ac_ext <<EOF
2148 #line 2149 "configure"
2149 #include "confdefs.h"
2150 #include <$ac_hdr>
2152 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2153 { (eval echo configure:2154: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2154 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2155 if test -z "$ac_err"; then
2156 rm -rf conftest*
2157 eval "ac_cv_header_$ac_safe=yes"
2158 else
2159 echo "$ac_err" >&5
2160 echo "configure: failed program was:" >&5
2161 cat conftest.$ac_ext >&5
2162 rm -rf conftest*
2163 eval "ac_cv_header_$ac_safe=no"
2165 rm -f conftest*
2167 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2168 echo "$ac_t""yes" 1>&6
2169 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2170 cat >> confdefs.h <<EOF
2171 #define $ac_tr_hdr 1
2174 else
2175 echo "$ac_t""no" 1>&6
2177 done
2179 for ac_hdr in sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h termio.h
2181 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2182 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2183 echo "configure:2184: checking for $ac_hdr" >&5
2184 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2185 echo $ac_n "(cached) $ac_c" 1>&6
2186 else
2187 cat > conftest.$ac_ext <<EOF
2188 #line 2189 "configure"
2189 #include "confdefs.h"
2190 #include <$ac_hdr>
2192 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2193 { (eval echo configure:2194: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2194 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2195 if test -z "$ac_err"; then
2196 rm -rf conftest*
2197 eval "ac_cv_header_$ac_safe=yes"
2198 else
2199 echo "$ac_err" >&5
2200 echo "configure: failed program was:" >&5
2201 cat conftest.$ac_ext >&5
2202 rm -rf conftest*
2203 eval "ac_cv_header_$ac_safe=no"
2205 rm -f conftest*
2207 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2208 echo "$ac_t""yes" 1>&6
2209 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2210 cat >> confdefs.h <<EOF
2211 #define $ac_tr_hdr 1
2214 else
2215 echo "$ac_t""no" 1>&6
2217 done
2219 for ac_hdr in sys/termio.h sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h
2221 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2222 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2223 echo "configure:2224: checking for $ac_hdr" >&5
2224 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2225 echo $ac_n "(cached) $ac_c" 1>&6
2226 else
2227 cat > conftest.$ac_ext <<EOF
2228 #line 2229 "configure"
2229 #include "confdefs.h"
2230 #include <$ac_hdr>
2232 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2233 { (eval echo configure:2234: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2234 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2235 if test -z "$ac_err"; then
2236 rm -rf conftest*
2237 eval "ac_cv_header_$ac_safe=yes"
2238 else
2239 echo "$ac_err" >&5
2240 echo "configure: failed program was:" >&5
2241 cat conftest.$ac_ext >&5
2242 rm -rf conftest*
2243 eval "ac_cv_header_$ac_safe=no"
2245 rm -f conftest*
2247 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2248 echo "$ac_t""yes" 1>&6
2249 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2250 cat >> confdefs.h <<EOF
2251 #define $ac_tr_hdr 1
2254 else
2255 echo "$ac_t""no" 1>&6
2257 done
2259 for ac_hdr in security/pam_modules.h security/_pam_macros.h
2261 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2262 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2263 echo "configure:2264: checking for $ac_hdr" >&5
2264 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2265 echo $ac_n "(cached) $ac_c" 1>&6
2266 else
2267 cat > conftest.$ac_ext <<EOF
2268 #line 2269 "configure"
2269 #include "confdefs.h"
2270 #include <$ac_hdr>
2272 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2273 { (eval echo configure:2274: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2274 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2275 if test -z "$ac_err"; then
2276 rm -rf conftest*
2277 eval "ac_cv_header_$ac_safe=yes"
2278 else
2279 echo "$ac_err" >&5
2280 echo "configure: failed program was:" >&5
2281 cat conftest.$ac_ext >&5
2282 rm -rf conftest*
2283 eval "ac_cv_header_$ac_safe=no"
2285 rm -f conftest*
2287 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2288 echo "$ac_t""yes" 1>&6
2289 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2290 cat >> confdefs.h <<EOF
2291 #define $ac_tr_hdr 1
2294 else
2295 echo "$ac_t""no" 1>&6
2297 done
2301 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
2302 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
2304 case "$host_os" in
2305 *hpux*)
2306 cat > conftest.$ac_ext <<EOF
2307 #line 2308 "configure"
2308 #include "confdefs.h"
2309 #include <shadow.h>
2310 int main() {
2311 struct spwd testme
2312 ; return 0; }
2314 if { (eval echo configure:2315: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2315 rm -rf conftest*
2316 ac_cv_header_shadow_h=yes
2317 else
2318 echo "configure: failed program was:" >&5
2319 cat conftest.$ac_ext >&5
2320 rm -rf conftest*
2321 ac_cv_header_shadow_h=no
2323 rm -f conftest*
2324 if test x"$ac_cv_header_shadow_h" = x"yes"; then
2325 cat >> confdefs.h <<\EOF
2326 #define HAVE_SHADOW_H 1
2331 esac
2332 for ac_hdr in shadow.h netinet/ip.h netinet/tcp.h netinet/in_systm.h netinet/in_ip.h
2334 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2335 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2336 echo "configure:2337: checking for $ac_hdr" >&5
2337 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2338 echo $ac_n "(cached) $ac_c" 1>&6
2339 else
2340 cat > conftest.$ac_ext <<EOF
2341 #line 2342 "configure"
2342 #include "confdefs.h"
2343 #include <$ac_hdr>
2345 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2346 { (eval echo configure:2347: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2347 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2348 if test -z "$ac_err"; then
2349 rm -rf conftest*
2350 eval "ac_cv_header_$ac_safe=yes"
2351 else
2352 echo "$ac_err" >&5
2353 echo "configure: failed program was:" >&5
2354 cat conftest.$ac_ext >&5
2355 rm -rf conftest*
2356 eval "ac_cv_header_$ac_safe=no"
2358 rm -f conftest*
2360 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2361 echo "$ac_t""yes" 1>&6
2362 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2363 cat >> confdefs.h <<EOF
2364 #define $ac_tr_hdr 1
2367 else
2368 echo "$ac_t""no" 1>&6
2370 done
2372 for ac_hdr in nss.h nss_common.h sys/security.h security/pam_appl.h security/pam_modules.h
2374 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2375 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2376 echo "configure:2377: checking for $ac_hdr" >&5
2377 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2378 echo $ac_n "(cached) $ac_c" 1>&6
2379 else
2380 cat > conftest.$ac_ext <<EOF
2381 #line 2382 "configure"
2382 #include "confdefs.h"
2383 #include <$ac_hdr>
2385 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2386 { (eval echo configure:2387: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2387 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2388 if test -z "$ac_err"; then
2389 rm -rf conftest*
2390 eval "ac_cv_header_$ac_safe=yes"
2391 else
2392 echo "$ac_err" >&5
2393 echo "configure: failed program was:" >&5
2394 cat conftest.$ac_ext >&5
2395 rm -rf conftest*
2396 eval "ac_cv_header_$ac_safe=no"
2398 rm -f conftest*
2400 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2401 echo "$ac_t""yes" 1>&6
2402 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2403 cat >> confdefs.h <<EOF
2404 #define $ac_tr_hdr 1
2407 else
2408 echo "$ac_t""no" 1>&6
2410 done
2412 for ac_hdr in stropts.h poll.h
2414 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2415 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2416 echo "configure:2417: checking for $ac_hdr" >&5
2417 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2418 echo $ac_n "(cached) $ac_c" 1>&6
2419 else
2420 cat > conftest.$ac_ext <<EOF
2421 #line 2422 "configure"
2422 #include "confdefs.h"
2423 #include <$ac_hdr>
2425 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2426 { (eval echo configure:2427: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2427 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2428 if test -z "$ac_err"; then
2429 rm -rf conftest*
2430 eval "ac_cv_header_$ac_safe=yes"
2431 else
2432 echo "$ac_err" >&5
2433 echo "configure: failed program was:" >&5
2434 cat conftest.$ac_ext >&5
2435 rm -rf conftest*
2436 eval "ac_cv_header_$ac_safe=no"
2438 rm -f conftest*
2440 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2441 echo "$ac_t""yes" 1>&6
2442 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2443 cat >> confdefs.h <<EOF
2444 #define $ac_tr_hdr 1
2447 else
2448 echo "$ac_t""no" 1>&6
2450 done
2452 for ac_hdr in sys/capability.h syscall.h sys/syscall.h
2454 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2455 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2456 echo "configure:2457: checking for $ac_hdr" >&5
2457 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2458 echo $ac_n "(cached) $ac_c" 1>&6
2459 else
2460 cat > conftest.$ac_ext <<EOF
2461 #line 2462 "configure"
2462 #include "confdefs.h"
2463 #include <$ac_hdr>
2465 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2466 { (eval echo configure:2467: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2467 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2468 if test -z "$ac_err"; then
2469 rm -rf conftest*
2470 eval "ac_cv_header_$ac_safe=yes"
2471 else
2472 echo "$ac_err" >&5
2473 echo "configure: failed program was:" >&5
2474 cat conftest.$ac_ext >&5
2475 rm -rf conftest*
2476 eval "ac_cv_header_$ac_safe=no"
2478 rm -f conftest*
2480 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2481 echo "$ac_t""yes" 1>&6
2482 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2483 cat >> confdefs.h <<EOF
2484 #define $ac_tr_hdr 1
2487 else
2488 echo "$ac_t""no" 1>&6
2490 done
2492 for ac_hdr in sys/acl.h sys/cdefs.h glob.h
2494 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2495 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2496 echo "configure:2497: checking for $ac_hdr" >&5
2497 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2498 echo $ac_n "(cached) $ac_c" 1>&6
2499 else
2500 cat > conftest.$ac_ext <<EOF
2501 #line 2502 "configure"
2502 #include "confdefs.h"
2503 #include <$ac_hdr>
2505 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2506 { (eval echo configure:2507: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2507 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2508 if test -z "$ac_err"; then
2509 rm -rf conftest*
2510 eval "ac_cv_header_$ac_safe=yes"
2511 else
2512 echo "$ac_err" >&5
2513 echo "configure: failed program was:" >&5
2514 cat conftest.$ac_ext >&5
2515 rm -rf conftest*
2516 eval "ac_cv_header_$ac_safe=no"
2518 rm -f conftest*
2520 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2521 echo "$ac_t""yes" 1>&6
2522 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2523 cat >> confdefs.h <<EOF
2524 #define $ac_tr_hdr 1
2527 else
2528 echo "$ac_t""no" 1>&6
2530 done
2533 # For experimental utmp support (lastlog on some BSD-like systems)
2534 for ac_hdr in utmp.h utmpx.h lastlog.h
2536 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2537 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2538 echo "configure:2539: checking for $ac_hdr" >&5
2539 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2540 echo $ac_n "(cached) $ac_c" 1>&6
2541 else
2542 cat > conftest.$ac_ext <<EOF
2543 #line 2544 "configure"
2544 #include "confdefs.h"
2545 #include <$ac_hdr>
2547 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2548 { (eval echo configure:2549: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2549 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2550 if test -z "$ac_err"; then
2551 rm -rf conftest*
2552 eval "ac_cv_header_$ac_safe=yes"
2553 else
2554 echo "$ac_err" >&5
2555 echo "configure: failed program was:" >&5
2556 cat conftest.$ac_ext >&5
2557 rm -rf conftest*
2558 eval "ac_cv_header_$ac_safe=no"
2560 rm -f conftest*
2562 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2563 echo "$ac_t""yes" 1>&6
2564 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2565 cat >> confdefs.h <<EOF
2566 #define $ac_tr_hdr 1
2569 else
2570 echo "$ac_t""no" 1>&6
2572 done
2575 # For quotas on Veritas VxFS filesystems
2576 for ac_hdr in sys/fs/vx_quota.h
2578 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2579 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2580 echo "configure:2581: checking for $ac_hdr" >&5
2581 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2582 echo $ac_n "(cached) $ac_c" 1>&6
2583 else
2584 cat > conftest.$ac_ext <<EOF
2585 #line 2586 "configure"
2586 #include "confdefs.h"
2587 #include <$ac_hdr>
2589 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2590 { (eval echo configure:2591: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2591 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2592 if test -z "$ac_err"; then
2593 rm -rf conftest*
2594 eval "ac_cv_header_$ac_safe=yes"
2595 else
2596 echo "$ac_err" >&5
2597 echo "configure: failed program was:" >&5
2598 cat conftest.$ac_ext >&5
2599 rm -rf conftest*
2600 eval "ac_cv_header_$ac_safe=no"
2602 rm -f conftest*
2604 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2605 echo "$ac_t""yes" 1>&6
2606 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2607 cat >> confdefs.h <<EOF
2608 #define $ac_tr_hdr 1
2611 else
2612 echo "$ac_t""no" 1>&6
2614 done
2617 echo $ac_n "checking size of int""... $ac_c" 1>&6
2618 echo "configure:2619: checking size of int" >&5
2619 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2620 echo $ac_n "(cached) $ac_c" 1>&6
2621 else
2622 if test "$cross_compiling" = yes; then
2623 ac_cv_sizeof_int=cross
2624 else
2625 cat > conftest.$ac_ext <<EOF
2626 #line 2627 "configure"
2627 #include "confdefs.h"
2628 #include <stdio.h>
2629 main()
2631 FILE *f=fopen("conftestval", "w");
2632 if (!f) exit(1);
2633 fprintf(f, "%d\n", sizeof(int));
2634 exit(0);
2637 if { (eval echo configure:2638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2638 then
2639 ac_cv_sizeof_int=`cat conftestval`
2640 else
2641 echo "configure: failed program was:" >&5
2642 cat conftest.$ac_ext >&5
2643 rm -fr conftest*
2644 ac_cv_sizeof_int=0
2646 rm -fr conftest*
2650 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2651 cat >> confdefs.h <<EOF
2652 #define SIZEOF_INT $ac_cv_sizeof_int
2656 echo $ac_n "checking size of long""... $ac_c" 1>&6
2657 echo "configure:2658: checking size of long" >&5
2658 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2659 echo $ac_n "(cached) $ac_c" 1>&6
2660 else
2661 if test "$cross_compiling" = yes; then
2662 ac_cv_sizeof_long=cross
2663 else
2664 cat > conftest.$ac_ext <<EOF
2665 #line 2666 "configure"
2666 #include "confdefs.h"
2667 #include <stdio.h>
2668 main()
2670 FILE *f=fopen("conftestval", "w");
2671 if (!f) exit(1);
2672 fprintf(f, "%d\n", sizeof(long));
2673 exit(0);
2676 if { (eval echo configure:2677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2677 then
2678 ac_cv_sizeof_long=`cat conftestval`
2679 else
2680 echo "configure: failed program was:" >&5
2681 cat conftest.$ac_ext >&5
2682 rm -fr conftest*
2683 ac_cv_sizeof_long=0
2685 rm -fr conftest*
2689 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2690 cat >> confdefs.h <<EOF
2691 #define SIZEOF_LONG $ac_cv_sizeof_long
2695 echo $ac_n "checking size of short""... $ac_c" 1>&6
2696 echo "configure:2697: checking size of short" >&5
2697 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2698 echo $ac_n "(cached) $ac_c" 1>&6
2699 else
2700 if test "$cross_compiling" = yes; then
2701 ac_cv_sizeof_short=cross
2702 else
2703 cat > conftest.$ac_ext <<EOF
2704 #line 2705 "configure"
2705 #include "confdefs.h"
2706 #include <stdio.h>
2707 main()
2709 FILE *f=fopen("conftestval", "w");
2710 if (!f) exit(1);
2711 fprintf(f, "%d\n", sizeof(short));
2712 exit(0);
2715 if { (eval echo configure:2716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2716 then
2717 ac_cv_sizeof_short=`cat conftestval`
2718 else
2719 echo "configure: failed program was:" >&5
2720 cat conftest.$ac_ext >&5
2721 rm -fr conftest*
2722 ac_cv_sizeof_short=0
2724 rm -fr conftest*
2728 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2729 cat >> confdefs.h <<EOF
2730 #define SIZEOF_SHORT $ac_cv_sizeof_short
2735 echo $ac_n "checking for working const""... $ac_c" 1>&6
2736 echo "configure:2737: checking for working const" >&5
2737 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2738 echo $ac_n "(cached) $ac_c" 1>&6
2739 else
2740 cat > conftest.$ac_ext <<EOF
2741 #line 2742 "configure"
2742 #include "confdefs.h"
2744 int main() {
2746 /* Ultrix mips cc rejects this. */
2747 typedef int charset[2]; const charset x;
2748 /* SunOS 4.1.1 cc rejects this. */
2749 char const *const *ccp;
2750 char **p;
2751 /* NEC SVR4.0.2 mips cc rejects this. */
2752 struct point {int x, y;};
2753 static struct point const zero = {0,0};
2754 /* AIX XL C 1.02.0.0 rejects this.
2755 It does not let you subtract one const X* pointer from another in an arm
2756 of an if-expression whose if-part is not a constant expression */
2757 const char *g = "string";
2758 ccp = &g + (g ? g-g : 0);
2759 /* HPUX 7.0 cc rejects these. */
2760 ++ccp;
2761 p = (char**) ccp;
2762 ccp = (char const *const *) p;
2763 { /* SCO 3.2v4 cc rejects this. */
2764 char *t;
2765 char const *s = 0 ? (char *) 0 : (char const *) 0;
2767 *t++ = 0;
2769 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2770 int x[] = {25, 17};
2771 const int *foo = &x[0];
2772 ++foo;
2774 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2775 typedef const int *iptr;
2776 iptr p = 0;
2777 ++p;
2779 { /* AIX XL C 1.02.0.0 rejects this saying
2780 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2781 struct s { int j; const int *ap[3]; };
2782 struct s *b; b->j = 5;
2784 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2785 const int foo = 10;
2788 ; return 0; }
2790 if { (eval echo configure:2791: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2791 rm -rf conftest*
2792 ac_cv_c_const=yes
2793 else
2794 echo "configure: failed program was:" >&5
2795 cat conftest.$ac_ext >&5
2796 rm -rf conftest*
2797 ac_cv_c_const=no
2799 rm -f conftest*
2802 echo "$ac_t""$ac_cv_c_const" 1>&6
2803 if test $ac_cv_c_const = no; then
2804 cat >> confdefs.h <<\EOF
2805 #define const
2810 echo $ac_n "checking for inline""... $ac_c" 1>&6
2811 echo "configure:2812: checking for inline" >&5
2812 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2813 echo $ac_n "(cached) $ac_c" 1>&6
2814 else
2815 ac_cv_c_inline=no
2816 for ac_kw in inline __inline__ __inline; do
2817 cat > conftest.$ac_ext <<EOF
2818 #line 2819 "configure"
2819 #include "confdefs.h"
2821 int main() {
2822 } $ac_kw foo() {
2823 ; return 0; }
2825 if { (eval echo configure:2826: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2826 rm -rf conftest*
2827 ac_cv_c_inline=$ac_kw; break
2828 else
2829 echo "configure: failed program was:" >&5
2830 cat conftest.$ac_ext >&5
2832 rm -f conftest*
2833 done
2837 echo "$ac_t""$ac_cv_c_inline" 1>&6
2838 case "$ac_cv_c_inline" in
2839 inline | yes) ;;
2840 no) cat >> confdefs.h <<\EOF
2841 #define inline
2844 *) cat >> confdefs.h <<EOF
2845 #define inline $ac_cv_c_inline
2848 esac
2850 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
2851 echo "configure:2852: checking whether byte ordering is bigendian" >&5
2852 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
2853 echo $ac_n "(cached) $ac_c" 1>&6
2854 else
2855 ac_cv_c_bigendian=unknown
2856 # See if sys/param.h defines the BYTE_ORDER macro.
2857 cat > conftest.$ac_ext <<EOF
2858 #line 2859 "configure"
2859 #include "confdefs.h"
2860 #include <sys/types.h>
2861 #include <sys/param.h>
2862 int main() {
2864 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2865 bogus endian macros
2866 #endif
2867 ; return 0; }
2869 if { (eval echo configure:2870: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2870 rm -rf conftest*
2871 # It does; now see whether it defined to BIG_ENDIAN or not.
2872 cat > conftest.$ac_ext <<EOF
2873 #line 2874 "configure"
2874 #include "confdefs.h"
2875 #include <sys/types.h>
2876 #include <sys/param.h>
2877 int main() {
2879 #if BYTE_ORDER != BIG_ENDIAN
2880 not big endian
2881 #endif
2882 ; return 0; }
2884 if { (eval echo configure:2885: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2885 rm -rf conftest*
2886 ac_cv_c_bigendian=yes
2887 else
2888 echo "configure: failed program was:" >&5
2889 cat conftest.$ac_ext >&5
2890 rm -rf conftest*
2891 ac_cv_c_bigendian=no
2893 rm -f conftest*
2894 else
2895 echo "configure: failed program was:" >&5
2896 cat conftest.$ac_ext >&5
2898 rm -f conftest*
2899 if test $ac_cv_c_bigendian = unknown; then
2900 if test "$cross_compiling" = yes; then
2901 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2902 else
2903 cat > conftest.$ac_ext <<EOF
2904 #line 2905 "configure"
2905 #include "confdefs.h"
2906 main () {
2907 /* Are we little or big endian? From Harbison&Steele. */
2908 union
2910 long l;
2911 char c[sizeof (long)];
2912 } u;
2913 u.l = 1;
2914 exit (u.c[sizeof (long) - 1] == 1);
2917 if { (eval echo configure:2918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2918 then
2919 ac_cv_c_bigendian=no
2920 else
2921 echo "configure: failed program was:" >&5
2922 cat conftest.$ac_ext >&5
2923 rm -fr conftest*
2924 ac_cv_c_bigendian=yes
2926 rm -fr conftest*
2932 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
2933 if test $ac_cv_c_bigendian = yes; then
2934 cat >> confdefs.h <<\EOF
2935 #define WORDS_BIGENDIAN 1
2940 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
2941 echo "configure:2942: checking whether char is unsigned" >&5
2942 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
2943 echo $ac_n "(cached) $ac_c" 1>&6
2944 else
2945 if test "$GCC" = yes; then
2946 # GCC predefines this symbol on systems where it applies.
2947 cat > conftest.$ac_ext <<EOF
2948 #line 2949 "configure"
2949 #include "confdefs.h"
2950 #ifdef __CHAR_UNSIGNED__
2952 #endif
2955 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2956 egrep "yes" >/dev/null 2>&1; then
2957 rm -rf conftest*
2958 ac_cv_c_char_unsigned=yes
2959 else
2960 rm -rf conftest*
2961 ac_cv_c_char_unsigned=no
2963 rm -f conftest*
2965 else
2966 if test "$cross_compiling" = yes; then
2967 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2968 else
2969 cat > conftest.$ac_ext <<EOF
2970 #line 2971 "configure"
2971 #include "confdefs.h"
2972 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
2973 #if !defined(__STDC__) || __STDC__ != 1
2974 #define volatile
2975 #endif
2976 main() {
2977 volatile char c = 255; exit(c < 0);
2980 if { (eval echo configure:2981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2981 then
2982 ac_cv_c_char_unsigned=yes
2983 else
2984 echo "configure: failed program was:" >&5
2985 cat conftest.$ac_ext >&5
2986 rm -fr conftest*
2987 ac_cv_c_char_unsigned=no
2989 rm -fr conftest*
2995 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
2996 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
2997 cat >> confdefs.h <<\EOF
2998 #define __CHAR_UNSIGNED__ 1
3004 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3005 echo "configure:3006: checking return type of signal handlers" >&5
3006 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3007 echo $ac_n "(cached) $ac_c" 1>&6
3008 else
3009 cat > conftest.$ac_ext <<EOF
3010 #line 3011 "configure"
3011 #include "confdefs.h"
3012 #include <sys/types.h>
3013 #include <signal.h>
3014 #ifdef signal
3015 #undef signal
3016 #endif
3017 #ifdef __cplusplus
3018 extern "C" void (*signal (int, void (*)(int)))(int);
3019 #else
3020 void (*signal ()) ();
3021 #endif
3023 int main() {
3024 int i;
3025 ; return 0; }
3027 if { (eval echo configure:3028: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3028 rm -rf conftest*
3029 ac_cv_type_signal=void
3030 else
3031 echo "configure: failed program was:" >&5
3032 cat conftest.$ac_ext >&5
3033 rm -rf conftest*
3034 ac_cv_type_signal=int
3036 rm -f conftest*
3039 echo "$ac_t""$ac_cv_type_signal" 1>&6
3040 cat >> confdefs.h <<EOF
3041 #define RETSIGTYPE $ac_cv_type_signal
3045 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3046 echo "configure:3047: checking for uid_t in sys/types.h" >&5
3047 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3048 echo $ac_n "(cached) $ac_c" 1>&6
3049 else
3050 cat > conftest.$ac_ext <<EOF
3051 #line 3052 "configure"
3052 #include "confdefs.h"
3053 #include <sys/types.h>
3055 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3056 egrep "uid_t" >/dev/null 2>&1; then
3057 rm -rf conftest*
3058 ac_cv_type_uid_t=yes
3059 else
3060 rm -rf conftest*
3061 ac_cv_type_uid_t=no
3063 rm -f conftest*
3067 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3068 if test $ac_cv_type_uid_t = no; then
3069 cat >> confdefs.h <<\EOF
3070 #define uid_t int
3073 cat >> confdefs.h <<\EOF
3074 #define gid_t int
3079 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3080 echo "configure:3081: checking for mode_t" >&5
3081 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3082 echo $ac_n "(cached) $ac_c" 1>&6
3083 else
3084 cat > conftest.$ac_ext <<EOF
3085 #line 3086 "configure"
3086 #include "confdefs.h"
3087 #include <sys/types.h>
3088 #if STDC_HEADERS
3089 #include <stdlib.h>
3090 #include <stddef.h>
3091 #endif
3093 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3094 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3095 rm -rf conftest*
3096 ac_cv_type_mode_t=yes
3097 else
3098 rm -rf conftest*
3099 ac_cv_type_mode_t=no
3101 rm -f conftest*
3104 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3105 if test $ac_cv_type_mode_t = no; then
3106 cat >> confdefs.h <<\EOF
3107 #define mode_t int
3112 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3113 echo "configure:3114: checking for off_t" >&5
3114 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3115 echo $ac_n "(cached) $ac_c" 1>&6
3116 else
3117 cat > conftest.$ac_ext <<EOF
3118 #line 3119 "configure"
3119 #include "confdefs.h"
3120 #include <sys/types.h>
3121 #if STDC_HEADERS
3122 #include <stdlib.h>
3123 #include <stddef.h>
3124 #endif
3126 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3127 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3128 rm -rf conftest*
3129 ac_cv_type_off_t=yes
3130 else
3131 rm -rf conftest*
3132 ac_cv_type_off_t=no
3134 rm -f conftest*
3137 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3138 if test $ac_cv_type_off_t = no; then
3139 cat >> confdefs.h <<\EOF
3140 #define off_t long
3145 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3146 echo "configure:3147: checking for size_t" >&5
3147 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3148 echo $ac_n "(cached) $ac_c" 1>&6
3149 else
3150 cat > conftest.$ac_ext <<EOF
3151 #line 3152 "configure"
3152 #include "confdefs.h"
3153 #include <sys/types.h>
3154 #if STDC_HEADERS
3155 #include <stdlib.h>
3156 #include <stddef.h>
3157 #endif
3159 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3160 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3161 rm -rf conftest*
3162 ac_cv_type_size_t=yes
3163 else
3164 rm -rf conftest*
3165 ac_cv_type_size_t=no
3167 rm -f conftest*
3170 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3171 if test $ac_cv_type_size_t = no; then
3172 cat >> confdefs.h <<\EOF
3173 #define size_t unsigned
3178 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3179 echo "configure:3180: checking for pid_t" >&5
3180 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3181 echo $ac_n "(cached) $ac_c" 1>&6
3182 else
3183 cat > conftest.$ac_ext <<EOF
3184 #line 3185 "configure"
3185 #include "confdefs.h"
3186 #include <sys/types.h>
3187 #if STDC_HEADERS
3188 #include <stdlib.h>
3189 #include <stddef.h>
3190 #endif
3192 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3193 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3194 rm -rf conftest*
3195 ac_cv_type_pid_t=yes
3196 else
3197 rm -rf conftest*
3198 ac_cv_type_pid_t=no
3200 rm -f conftest*
3203 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3204 if test $ac_cv_type_pid_t = no; then
3205 cat >> confdefs.h <<\EOF
3206 #define pid_t int
3211 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3212 echo "configure:3213: checking for st_rdev in struct stat" >&5
3213 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3214 echo $ac_n "(cached) $ac_c" 1>&6
3215 else
3216 cat > conftest.$ac_ext <<EOF
3217 #line 3218 "configure"
3218 #include "confdefs.h"
3219 #include <sys/types.h>
3220 #include <sys/stat.h>
3221 int main() {
3222 struct stat s; s.st_rdev;
3223 ; return 0; }
3225 if { (eval echo configure:3226: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3226 rm -rf conftest*
3227 ac_cv_struct_st_rdev=yes
3228 else
3229 echo "configure: failed program was:" >&5
3230 cat conftest.$ac_ext >&5
3231 rm -rf conftest*
3232 ac_cv_struct_st_rdev=no
3234 rm -f conftest*
3237 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3238 if test $ac_cv_struct_st_rdev = yes; then
3239 cat >> confdefs.h <<\EOF
3240 #define HAVE_ST_RDEV 1
3245 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
3246 echo "configure:3247: checking for d_off in dirent" >&5
3247 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
3248 echo $ac_n "(cached) $ac_c" 1>&6
3249 else
3250 cat > conftest.$ac_ext <<EOF
3251 #line 3252 "configure"
3252 #include "confdefs.h"
3254 #include <unistd.h>
3255 #include <sys/types.h>
3256 #include <dirent.h>
3257 int main() {
3258 struct dirent d; d.d_off;
3259 ; return 0; }
3261 if { (eval echo configure:3262: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3262 rm -rf conftest*
3263 ac_cv_dirent_d_off=yes
3264 else
3265 echo "configure: failed program was:" >&5
3266 cat conftest.$ac_ext >&5
3267 rm -rf conftest*
3268 ac_cv_dirent_d_off=no
3270 rm -f conftest*
3273 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
3274 if test $ac_cv_dirent_d_off = yes; then
3275 cat >> confdefs.h <<\EOF
3276 #define HAVE_DIRENT_D_OFF 1
3281 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
3282 echo "configure:3283: checking for ino_t" >&5
3283 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
3284 echo $ac_n "(cached) $ac_c" 1>&6
3285 else
3286 cat > conftest.$ac_ext <<EOF
3287 #line 3288 "configure"
3288 #include "confdefs.h"
3289 #include <sys/types.h>
3290 #if STDC_HEADERS
3291 #include <stdlib.h>
3292 #include <stddef.h>
3293 #endif
3295 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3296 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3297 rm -rf conftest*
3298 ac_cv_type_ino_t=yes
3299 else
3300 rm -rf conftest*
3301 ac_cv_type_ino_t=no
3303 rm -f conftest*
3306 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
3307 if test $ac_cv_type_ino_t = no; then
3308 cat >> confdefs.h <<\EOF
3309 #define ino_t unsigned
3314 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3315 echo "configure:3316: checking for loff_t" >&5
3316 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
3317 echo $ac_n "(cached) $ac_c" 1>&6
3318 else
3319 cat > conftest.$ac_ext <<EOF
3320 #line 3321 "configure"
3321 #include "confdefs.h"
3322 #include <sys/types.h>
3323 #if STDC_HEADERS
3324 #include <stdlib.h>
3325 #include <stddef.h>
3326 #endif
3328 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3329 egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3330 rm -rf conftest*
3331 ac_cv_type_loff_t=yes
3332 else
3333 rm -rf conftest*
3334 ac_cv_type_loff_t=no
3336 rm -f conftest*
3339 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
3340 if test $ac_cv_type_loff_t = no; then
3341 cat >> confdefs.h <<\EOF
3342 #define loff_t off_t
3347 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
3348 echo "configure:3349: checking for offset_t" >&5
3349 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
3350 echo $ac_n "(cached) $ac_c" 1>&6
3351 else
3352 cat > conftest.$ac_ext <<EOF
3353 #line 3354 "configure"
3354 #include "confdefs.h"
3355 #include <sys/types.h>
3356 #if STDC_HEADERS
3357 #include <stdlib.h>
3358 #include <stddef.h>
3359 #endif
3361 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3362 egrep "(^|[^a-zA-Z_0-9])offset_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3363 rm -rf conftest*
3364 ac_cv_type_offset_t=yes
3365 else
3366 rm -rf conftest*
3367 ac_cv_type_offset_t=no
3369 rm -f conftest*
3372 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
3373 if test $ac_cv_type_offset_t = no; then
3374 cat >> confdefs.h <<\EOF
3375 #define offset_t loff_t
3380 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3381 echo "configure:3382: checking for ssize_t" >&5
3382 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3383 echo $ac_n "(cached) $ac_c" 1>&6
3384 else
3385 cat > conftest.$ac_ext <<EOF
3386 #line 3387 "configure"
3387 #include "confdefs.h"
3388 #include <sys/types.h>
3389 #if STDC_HEADERS
3390 #include <stdlib.h>
3391 #include <stddef.h>
3392 #endif
3394 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3395 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3396 rm -rf conftest*
3397 ac_cv_type_ssize_t=yes
3398 else
3399 rm -rf conftest*
3400 ac_cv_type_ssize_t=no
3402 rm -f conftest*
3405 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3406 if test $ac_cv_type_ssize_t = no; then
3407 cat >> confdefs.h <<\EOF
3408 #define ssize_t int
3413 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
3414 echo "configure:3415: checking for wchar_t" >&5
3415 if eval "test \"`echo '$''{'ac_cv_type_wchar_t'+set}'`\" = set"; then
3416 echo $ac_n "(cached) $ac_c" 1>&6
3417 else
3418 cat > conftest.$ac_ext <<EOF
3419 #line 3420 "configure"
3420 #include "confdefs.h"
3421 #include <sys/types.h>
3422 #if STDC_HEADERS
3423 #include <stdlib.h>
3424 #include <stddef.h>
3425 #endif
3427 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3428 egrep "(^|[^a-zA-Z_0-9])wchar_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3429 rm -rf conftest*
3430 ac_cv_type_wchar_t=yes
3431 else
3432 rm -rf conftest*
3433 ac_cv_type_wchar_t=no
3435 rm -f conftest*
3438 echo "$ac_t""$ac_cv_type_wchar_t" 1>&6
3439 if test $ac_cv_type_wchar_t = no; then
3440 cat >> confdefs.h <<\EOF
3441 #define wchar_t unsigned short
3447 ############################################
3448 # for cups support we need libcups, and a handful of header files
3450 echo $ac_n "checking for httpConnect in -lcups""... $ac_c" 1>&6
3451 echo "configure:3452: checking for httpConnect in -lcups" >&5
3452 ac_lib_var=`echo cups'_'httpConnect | sed 'y%./+-%__p_%'`
3453 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3454 echo $ac_n "(cached) $ac_c" 1>&6
3455 else
3456 ac_save_LIBS="$LIBS"
3457 LIBS="-lcups $LIBS"
3458 cat > conftest.$ac_ext <<EOF
3459 #line 3460 "configure"
3460 #include "confdefs.h"
3461 /* Override any gcc2 internal prototype to avoid an error. */
3462 /* We use char because int might match the return type of a gcc2
3463 builtin and then its argument prototype would still apply. */
3464 char httpConnect();
3466 int main() {
3467 httpConnect()
3468 ; return 0; }
3470 if { (eval echo configure:3471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3471 rm -rf conftest*
3472 eval "ac_cv_lib_$ac_lib_var=yes"
3473 else
3474 echo "configure: failed program was:" >&5
3475 cat conftest.$ac_ext >&5
3476 rm -rf conftest*
3477 eval "ac_cv_lib_$ac_lib_var=no"
3479 rm -f conftest*
3480 LIBS="$ac_save_LIBS"
3483 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3484 echo "$ac_t""yes" 1>&6
3485 ac_tr_lib=HAVE_LIB`echo cups | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3486 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3487 cat >> confdefs.h <<EOF
3488 #define $ac_tr_lib 1
3491 LIBS="-lcups $LIBS"
3493 else
3494 echo "$ac_t""no" 1>&6
3498 # I wonder if there is a nicer way of doing this?
3500 if test x"$ac_cv_lib_cups_httpConnect" = x"yes"; then
3501 for ac_hdr in cups/cups.h cups/language.h
3503 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3504 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3505 echo "configure:3506: checking for $ac_hdr" >&5
3506 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3507 echo $ac_n "(cached) $ac_c" 1>&6
3508 else
3509 cat > conftest.$ac_ext <<EOF
3510 #line 3511 "configure"
3511 #include "confdefs.h"
3512 #include <$ac_hdr>
3514 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3515 { (eval echo configure:3516: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3516 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3517 if test -z "$ac_err"; then
3518 rm -rf conftest*
3519 eval "ac_cv_header_$ac_safe=yes"
3520 else
3521 echo "$ac_err" >&5
3522 echo "configure: failed program was:" >&5
3523 cat conftest.$ac_ext >&5
3524 rm -rf conftest*
3525 eval "ac_cv_header_$ac_safe=no"
3527 rm -f conftest*
3529 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3530 echo "$ac_t""yes" 1>&6
3531 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3532 cat >> confdefs.h <<EOF
3533 #define $ac_tr_hdr 1
3536 else
3537 echo "$ac_t""no" 1>&6
3539 done
3541 if x"$ac_cv_header_cups_cups_h" = x"yes"; then
3542 if x"$ac_cv_header_cups_language_h" = x"yes"; then
3543 cat >> confdefs.h <<\EOF
3544 #define HAVE_CUPS 1
3551 ############################################
3552 # we need libdl for PAM and the new VFS code
3553 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3554 echo "configure:3555: checking for dlopen in -ldl" >&5
3555 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3556 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3557 echo $ac_n "(cached) $ac_c" 1>&6
3558 else
3559 ac_save_LIBS="$LIBS"
3560 LIBS="-ldl $LIBS"
3561 cat > conftest.$ac_ext <<EOF
3562 #line 3563 "configure"
3563 #include "confdefs.h"
3564 /* Override any gcc2 internal prototype to avoid an error. */
3565 /* We use char because int might match the return type of a gcc2
3566 builtin and then its argument prototype would still apply. */
3567 char dlopen();
3569 int main() {
3570 dlopen()
3571 ; return 0; }
3573 if { (eval echo configure:3574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3574 rm -rf conftest*
3575 eval "ac_cv_lib_$ac_lib_var=yes"
3576 else
3577 echo "configure: failed program was:" >&5
3578 cat conftest.$ac_ext >&5
3579 rm -rf conftest*
3580 eval "ac_cv_lib_$ac_lib_var=no"
3582 rm -f conftest*
3583 LIBS="$ac_save_LIBS"
3586 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3587 echo "$ac_t""yes" 1>&6
3588 LIBS="$LIBS -ldl";
3589 cat >> confdefs.h <<\EOF
3590 #define HAVE_LIBDL 1
3593 else
3594 echo "$ac_t""no" 1>&6
3598 ############################################
3599 # check for unix domain sockets
3600 echo $ac_n "checking for unix domain sockets""... $ac_c" 1>&6
3601 echo "configure:3602: checking for unix domain sockets" >&5
3602 if eval "test \"`echo '$''{'samba_cv_unixsocket'+set}'`\" = set"; then
3603 echo $ac_n "(cached) $ac_c" 1>&6
3604 else
3606 cat > conftest.$ac_ext <<EOF
3607 #line 3608 "configure"
3608 #include "confdefs.h"
3610 #include <sys/types.h>
3611 #include <stdlib.h>
3612 #include <stddef.h>
3613 #include <sys/socket.h>
3614 #include <sys/un.h>
3615 int main() {
3617 struct sockaddr_un sunaddr;
3618 sunaddr.sun_family = AF_UNIX;
3620 ; return 0; }
3622 if { (eval echo configure:3623: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3623 rm -rf conftest*
3624 samba_cv_unixsocket=yes
3625 else
3626 echo "configure: failed program was:" >&5
3627 cat conftest.$ac_ext >&5
3628 rm -rf conftest*
3629 samba_cv_unixsocket=no
3631 rm -f conftest*
3634 echo "$ac_t""$samba_cv_unixsocket" 1>&6
3635 if test x"$samba_cv_unixsocket" = x"yes"; then
3636 cat >> confdefs.h <<\EOF
3637 #define HAVE_UNIXSOCKET 1
3642 echo $ac_n "checking for socklen_t type""... $ac_c" 1>&6
3643 echo "configure:3644: checking for socklen_t type" >&5
3644 if eval "test \"`echo '$''{'samba_cv_socklen_t'+set}'`\" = set"; then
3645 echo $ac_n "(cached) $ac_c" 1>&6
3646 else
3648 cat > conftest.$ac_ext <<EOF
3649 #line 3650 "configure"
3650 #include "confdefs.h"
3652 #include <sys/types.h>
3653 #if STDC_HEADERS
3654 #include <stdlib.h>
3655 #include <stddef.h>
3656 #endif
3657 #include <sys/socket.h>
3658 int main() {
3659 socklen_t i = 0
3660 ; return 0; }
3662 if { (eval echo configure:3663: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3663 rm -rf conftest*
3664 samba_cv_socklen_t=yes
3665 else
3666 echo "configure: failed program was:" >&5
3667 cat conftest.$ac_ext >&5
3668 rm -rf conftest*
3669 samba_cv_socklen_t=no
3671 rm -f conftest*
3674 echo "$ac_t""$samba_cv_socklen_t" 1>&6
3675 if test x"$samba_cv_socklen_t" = x"yes"; then
3676 cat >> confdefs.h <<\EOF
3677 #define HAVE_SOCKLEN_T_TYPE 1
3682 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
3683 echo "configure:3684: checking for sig_atomic_t type" >&5
3684 if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+set}'`\" = set"; then
3685 echo $ac_n "(cached) $ac_c" 1>&6
3686 else
3688 cat > conftest.$ac_ext <<EOF
3689 #line 3690 "configure"
3690 #include "confdefs.h"
3692 #include <sys/types.h>
3693 #if STDC_HEADERS
3694 #include <stdlib.h>
3695 #include <stddef.h>
3696 #endif
3697 #include <signal.h>
3698 int main() {
3699 sig_atomic_t i = 0
3700 ; return 0; }
3702 if { (eval echo configure:3703: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3703 rm -rf conftest*
3704 samba_cv_sig_atomic_t=yes
3705 else
3706 echo "configure: failed program was:" >&5
3707 cat conftest.$ac_ext >&5
3708 rm -rf conftest*
3709 samba_cv_sig_atomic_t=no
3711 rm -f conftest*
3714 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
3715 if test x"$samba_cv_sig_atomic_t" = x"yes"; then
3716 cat >> confdefs.h <<\EOF
3717 #define HAVE_SIG_ATOMIC_T_TYPE 1
3722 # stupid headers have the functions but no declaration. grrrr.
3724 echo $ac_n "checking for errno declaration""... $ac_c" 1>&6
3725 echo "configure:3726: checking for errno declaration" >&5
3726 if eval "test \"`echo '$''{'ac_cv_have_errno_decl'+set}'`\" = set"; then
3727 echo $ac_n "(cached) $ac_c" 1>&6
3728 else
3730 cat > conftest.$ac_ext <<EOF
3731 #line 3732 "configure"
3732 #include "confdefs.h"
3733 #include <errno.h>
3734 int main() {
3735 int i = (int)errno
3736 ; return 0; }
3738 if { (eval echo configure:3739: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3739 rm -rf conftest*
3740 ac_cv_have_errno_decl=yes
3741 else
3742 echo "configure: failed program was:" >&5
3743 cat conftest.$ac_ext >&5
3744 rm -rf conftest*
3745 ac_cv_have_errno_decl=no
3747 rm -f conftest*
3750 echo "$ac_t""$ac_cv_have_errno_decl" 1>&6
3751 if test x"$ac_cv_have_errno_decl" = x"yes"; then
3752 cat >> confdefs.h <<\EOF
3753 #define HAVE_ERRNO_DECL 1
3759 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
3760 echo "configure:3761: checking for setresuid declaration" >&5
3761 if eval "test \"`echo '$''{'ac_cv_have_setresuid_decl'+set}'`\" = set"; then
3762 echo $ac_n "(cached) $ac_c" 1>&6
3763 else
3765 cat > conftest.$ac_ext <<EOF
3766 #line 3767 "configure"
3767 #include "confdefs.h"
3768 #include <unistd.h>
3769 int main() {
3770 int i = (int)setresuid
3771 ; return 0; }
3773 if { (eval echo configure:3774: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3774 rm -rf conftest*
3775 ac_cv_have_setresuid_decl=yes
3776 else
3777 echo "configure: failed program was:" >&5
3778 cat conftest.$ac_ext >&5
3779 rm -rf conftest*
3780 ac_cv_have_setresuid_decl=no
3782 rm -f conftest*
3785 echo "$ac_t""$ac_cv_have_setresuid_decl" 1>&6
3786 if test x"$ac_cv_have_setresuid_decl" = x"yes"; then
3787 cat >> confdefs.h <<\EOF
3788 #define HAVE_SETRESUID_DECL 1
3794 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
3795 echo "configure:3796: checking for setresgid declaration" >&5
3796 if eval "test \"`echo '$''{'ac_cv_have_setresgid_decl'+set}'`\" = set"; then
3797 echo $ac_n "(cached) $ac_c" 1>&6
3798 else
3800 cat > conftest.$ac_ext <<EOF
3801 #line 3802 "configure"
3802 #include "confdefs.h"
3803 #include <unistd.h>
3804 int main() {
3805 int i = (int)setresgid
3806 ; return 0; }
3808 if { (eval echo configure:3809: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3809 rm -rf conftest*
3810 ac_cv_have_setresgid_decl=yes
3811 else
3812 echo "configure: failed program was:" >&5
3813 cat conftest.$ac_ext >&5
3814 rm -rf conftest*
3815 ac_cv_have_setresgid_decl=no
3817 rm -f conftest*
3820 echo "$ac_t""$ac_cv_have_setresgid_decl" 1>&6
3821 if test x"$ac_cv_have_setresgid_decl" = x"yes"; then
3822 cat >> confdefs.h <<\EOF
3823 #define HAVE_SETRESGID_DECL 1
3829 echo $ac_n "checking for asprintf declaration""... $ac_c" 1>&6
3830 echo "configure:3831: checking for asprintf declaration" >&5
3831 if eval "test \"`echo '$''{'ac_cv_have_asprintf_decl'+set}'`\" = set"; then
3832 echo $ac_n "(cached) $ac_c" 1>&6
3833 else
3835 cat > conftest.$ac_ext <<EOF
3836 #line 3837 "configure"
3837 #include "confdefs.h"
3838 #include <stdio.h>
3839 int main() {
3840 int i = (int)asprintf
3841 ; return 0; }
3843 if { (eval echo configure:3844: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3844 rm -rf conftest*
3845 ac_cv_have_asprintf_decl=yes
3846 else
3847 echo "configure: failed program was:" >&5
3848 cat conftest.$ac_ext >&5
3849 rm -rf conftest*
3850 ac_cv_have_asprintf_decl=no
3852 rm -f conftest*
3855 echo "$ac_t""$ac_cv_have_asprintf_decl" 1>&6
3856 if test x"$ac_cv_have_asprintf_decl" = x"yes"; then
3857 cat >> confdefs.h <<\EOF
3858 #define HAVE_ASPRINTF_DECL 1
3864 echo $ac_n "checking for vasprintf declaration""... $ac_c" 1>&6
3865 echo "configure:3866: checking for vasprintf declaration" >&5
3866 if eval "test \"`echo '$''{'ac_cv_have_vasprintf_decl'+set}'`\" = set"; then
3867 echo $ac_n "(cached) $ac_c" 1>&6
3868 else
3870 cat > conftest.$ac_ext <<EOF
3871 #line 3872 "configure"
3872 #include "confdefs.h"
3873 #include <stdio.h>
3874 int main() {
3875 int i = (int)vasprintf
3876 ; return 0; }
3878 if { (eval echo configure:3879: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3879 rm -rf conftest*
3880 ac_cv_have_vasprintf_decl=yes
3881 else
3882 echo "configure: failed program was:" >&5
3883 cat conftest.$ac_ext >&5
3884 rm -rf conftest*
3885 ac_cv_have_vasprintf_decl=no
3887 rm -f conftest*
3890 echo "$ac_t""$ac_cv_have_vasprintf_decl" 1>&6
3891 if test x"$ac_cv_have_vasprintf_decl" = x"yes"; then
3892 cat >> confdefs.h <<\EOF
3893 #define HAVE_VASPRINTF_DECL 1
3899 echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6
3900 echo "configure:3901: checking for vsnprintf declaration" >&5
3901 if eval "test \"`echo '$''{'ac_cv_have_vsnprintf_decl'+set}'`\" = set"; then
3902 echo $ac_n "(cached) $ac_c" 1>&6
3903 else
3905 cat > conftest.$ac_ext <<EOF
3906 #line 3907 "configure"
3907 #include "confdefs.h"
3908 #include <stdio.h>
3909 int main() {
3910 int i = (int)vsnprintf
3911 ; return 0; }
3913 if { (eval echo configure:3914: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3914 rm -rf conftest*
3915 ac_cv_have_vsnprintf_decl=yes
3916 else
3917 echo "configure: failed program was:" >&5
3918 cat conftest.$ac_ext >&5
3919 rm -rf conftest*
3920 ac_cv_have_vsnprintf_decl=no
3922 rm -f conftest*
3925 echo "$ac_t""$ac_cv_have_vsnprintf_decl" 1>&6
3926 if test x"$ac_cv_have_vsnprintf_decl" = x"yes"; then
3927 cat >> confdefs.h <<\EOF
3928 #define HAVE_VSNPRINTF_DECL 1
3934 echo $ac_n "checking for snprintf declaration""... $ac_c" 1>&6
3935 echo "configure:3936: checking for snprintf declaration" >&5
3936 if eval "test \"`echo '$''{'ac_cv_have_snprintf_decl'+set}'`\" = set"; then
3937 echo $ac_n "(cached) $ac_c" 1>&6
3938 else
3940 cat > conftest.$ac_ext <<EOF
3941 #line 3942 "configure"
3942 #include "confdefs.h"
3943 #include <stdio.h>
3944 int main() {
3945 int i = (int)snprintf
3946 ; return 0; }
3948 if { (eval echo configure:3949: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3949 rm -rf conftest*
3950 ac_cv_have_snprintf_decl=yes
3951 else
3952 echo "configure: failed program was:" >&5
3953 cat conftest.$ac_ext >&5
3954 rm -rf conftest*
3955 ac_cv_have_snprintf_decl=no
3957 rm -f conftest*
3960 echo "$ac_t""$ac_cv_have_snprintf_decl" 1>&6
3961 if test x"$ac_cv_have_snprintf_decl" = x"yes"; then
3962 cat >> confdefs.h <<\EOF
3963 #define HAVE_SNPRINTF_DECL 1
3969 # and glibc has setresuid under linux but the function does
3970 # nothing until kernel 2.1.44! very dumb.
3971 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
3972 echo "configure:3973: checking for real setresuid" >&5
3973 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
3974 echo $ac_n "(cached) $ac_c" 1>&6
3975 else
3977 if test "$cross_compiling" = yes; then
3978 samba_cv_have_setresuid=cross
3979 else
3980 cat > conftest.$ac_ext <<EOF
3981 #line 3982 "configure"
3982 #include "confdefs.h"
3983 #include <errno.h>
3984 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
3986 if { (eval echo configure:3987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3987 then
3988 samba_cv_have_setresuid=yes
3989 else
3990 echo "configure: failed program was:" >&5
3991 cat conftest.$ac_ext >&5
3992 rm -fr conftest*
3993 samba_cv_have_setresuid=no
3995 rm -fr conftest*
4000 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
4001 if test x"$samba_cv_have_setresuid" = x"yes"; then
4002 cat >> confdefs.h <<\EOF
4003 #define HAVE_SETRESUID 1
4008 # Do the same check for setresguid...
4010 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
4011 echo "configure:4012: checking for real setresgid" >&5
4012 if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then
4013 echo $ac_n "(cached) $ac_c" 1>&6
4014 else
4016 if test "$cross_compiling" = yes; then
4017 samba_cv_have_setresgid=cross
4018 else
4019 cat > conftest.$ac_ext <<EOF
4020 #line 4021 "configure"
4021 #include "confdefs.h"
4022 #include <unistd.h>
4023 #include <errno.h>
4024 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
4026 if { (eval echo configure:4027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4027 then
4028 samba_cv_have_setresgid=yes
4029 else
4030 echo "configure: failed program was:" >&5
4031 cat conftest.$ac_ext >&5
4032 rm -fr conftest*
4033 samba_cv_have_setresgid=no
4035 rm -fr conftest*
4040 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
4041 if test x"$samba_cv_have_setresgid" = x"yes"; then
4042 cat >> confdefs.h <<\EOF
4043 #define HAVE_SETRESGID 1
4048 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
4049 echo "configure:4050: checking for 8-bit clean memcmp" >&5
4050 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
4051 echo $ac_n "(cached) $ac_c" 1>&6
4052 else
4053 if test "$cross_compiling" = yes; then
4054 ac_cv_func_memcmp_clean=no
4055 else
4056 cat > conftest.$ac_ext <<EOF
4057 #line 4058 "configure"
4058 #include "confdefs.h"
4060 main()
4062 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4063 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
4067 if { (eval echo configure:4068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4068 then
4069 ac_cv_func_memcmp_clean=yes
4070 else
4071 echo "configure: failed program was:" >&5
4072 cat conftest.$ac_ext >&5
4073 rm -fr conftest*
4074 ac_cv_func_memcmp_clean=no
4076 rm -fr conftest*
4081 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
4082 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
4085 ###############################################
4086 # Readline included by default unless explicitly asked not to
4087 test "${with_readline+set}" != "set" && with_readline=yes
4089 # test for where we get readline() from
4090 echo $ac_n "checking whether to use readline""... $ac_c" 1>&6
4091 echo "configure:4092: checking whether to use readline" >&5
4092 # Check whether --with-readline or --without-readline was given.
4093 if test "${with_readline+set}" = set; then
4094 withval="$with_readline"
4095 case "$with_readline" in
4096 yes)
4097 echo "$ac_t""yes" 1>&6
4099 for ac_hdr in readline.h history.h readline/readline.h
4101 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4102 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4103 echo "configure:4104: checking for $ac_hdr" >&5
4104 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4105 echo $ac_n "(cached) $ac_c" 1>&6
4106 else
4107 cat > conftest.$ac_ext <<EOF
4108 #line 4109 "configure"
4109 #include "confdefs.h"
4110 #include <$ac_hdr>
4112 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4113 { (eval echo configure:4114: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4114 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4115 if test -z "$ac_err"; then
4116 rm -rf conftest*
4117 eval "ac_cv_header_$ac_safe=yes"
4118 else
4119 echo "$ac_err" >&5
4120 echo "configure: failed program was:" >&5
4121 cat conftest.$ac_ext >&5
4122 rm -rf conftest*
4123 eval "ac_cv_header_$ac_safe=no"
4125 rm -f conftest*
4127 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4128 echo "$ac_t""yes" 1>&6
4129 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4130 cat >> confdefs.h <<EOF
4131 #define $ac_tr_hdr 1
4134 else
4135 echo "$ac_t""no" 1>&6
4137 done
4139 for ac_hdr in readline/history.h
4141 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4142 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4143 echo "configure:4144: checking for $ac_hdr" >&5
4144 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4145 echo $ac_n "(cached) $ac_c" 1>&6
4146 else
4147 cat > conftest.$ac_ext <<EOF
4148 #line 4149 "configure"
4149 #include "confdefs.h"
4150 #include <$ac_hdr>
4152 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4153 { (eval echo configure:4154: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4154 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4155 if test -z "$ac_err"; then
4156 rm -rf conftest*
4157 eval "ac_cv_header_$ac_safe=yes"
4158 else
4159 echo "$ac_err" >&5
4160 echo "configure: failed program was:" >&5
4161 cat conftest.$ac_ext >&5
4162 rm -rf conftest*
4163 eval "ac_cv_header_$ac_safe=no"
4165 rm -f conftest*
4167 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4168 echo "$ac_t""yes" 1>&6
4169 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4170 cat >> confdefs.h <<EOF
4171 #define $ac_tr_hdr 1
4174 else
4175 echo "$ac_t""no" 1>&6
4177 done
4180 for ac_hdr in readline.h readline/readline.h
4182 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4183 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4184 echo "configure:4185: checking for $ac_hdr" >&5
4185 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4186 echo $ac_n "(cached) $ac_c" 1>&6
4187 else
4188 cat > conftest.$ac_ext <<EOF
4189 #line 4190 "configure"
4190 #include "confdefs.h"
4191 #include <$ac_hdr>
4193 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4194 { (eval echo configure:4195: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4195 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4196 if test -z "$ac_err"; then
4197 rm -rf conftest*
4198 eval "ac_cv_header_$ac_safe=yes"
4199 else
4200 echo "$ac_err" >&5
4201 echo "configure: failed program was:" >&5
4202 cat conftest.$ac_ext >&5
4203 rm -rf conftest*
4204 eval "ac_cv_header_$ac_safe=no"
4206 rm -f conftest*
4208 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4209 echo "$ac_t""yes" 1>&6
4210 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4211 cat >> confdefs.h <<EOF
4212 #define $ac_tr_hdr 1
4215 for termlib in ncurses curses termcap terminfo termlib; do
4216 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4217 echo "configure:4218: checking for tgetent in -l${termlib}" >&5
4218 ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4219 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4220 echo $ac_n "(cached) $ac_c" 1>&6
4221 else
4222 ac_save_LIBS="$LIBS"
4223 LIBS="-l${termlib} $LIBS"
4224 cat > conftest.$ac_ext <<EOF
4225 #line 4226 "configure"
4226 #include "confdefs.h"
4227 /* Override any gcc2 internal prototype to avoid an error. */
4228 /* We use char because int might match the return type of a gcc2
4229 builtin and then its argument prototype would still apply. */
4230 char tgetent();
4232 int main() {
4233 tgetent()
4234 ; return 0; }
4236 if { (eval echo configure:4237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4237 rm -rf conftest*
4238 eval "ac_cv_lib_$ac_lib_var=yes"
4239 else
4240 echo "configure: failed program was:" >&5
4241 cat conftest.$ac_ext >&5
4242 rm -rf conftest*
4243 eval "ac_cv_lib_$ac_lib_var=no"
4245 rm -f conftest*
4246 LIBS="$ac_save_LIBS"
4249 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4250 echo "$ac_t""yes" 1>&6
4251 TERMLIBS="-l${termlib}"; break
4252 else
4253 echo "$ac_t""no" 1>&6
4256 done
4257 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4258 echo "configure:4259: checking for rl_callback_handler_install in -lreadline" >&5
4259 ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4260 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4261 echo $ac_n "(cached) $ac_c" 1>&6
4262 else
4263 ac_save_LIBS="$LIBS"
4264 LIBS="-lreadline $TERMLIBS $LIBS"
4265 cat > conftest.$ac_ext <<EOF
4266 #line 4267 "configure"
4267 #include "confdefs.h"
4268 /* Override any gcc2 internal prototype to avoid an error. */
4269 /* We use char because int might match the return type of a gcc2
4270 builtin and then its argument prototype would still apply. */
4271 char rl_callback_handler_install();
4273 int main() {
4274 rl_callback_handler_install()
4275 ; return 0; }
4277 if { (eval echo configure:4278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4278 rm -rf conftest*
4279 eval "ac_cv_lib_$ac_lib_var=yes"
4280 else
4281 echo "configure: failed program was:" >&5
4282 cat conftest.$ac_ext >&5
4283 rm -rf conftest*
4284 eval "ac_cv_lib_$ac_lib_var=no"
4286 rm -f conftest*
4287 LIBS="$ac_save_LIBS"
4290 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4291 echo "$ac_t""yes" 1>&6
4292 TERMLIBS="-lreadline $TERMLIBS"
4293 cat >> confdefs.h <<\EOF
4294 #define HAVE_LIBREADLINE 1
4297 break
4298 else
4299 echo "$ac_t""no" 1>&6
4300 TERMLIBS=
4303 else
4304 echo "$ac_t""no" 1>&6
4306 done
4310 echo "$ac_t""no" 1>&6
4313 echo "$ac_t""yes" 1>&6
4315 # Needed for AC_CHECK_HEADERS and AC_CHECK_LIB to look at
4316 # alternate readline path
4317 _ldflags=${LDFLAGS}
4318 _cppflags=${CPPFLAGS}
4320 # Add additional search path
4321 LDFLAGS="-L$with_readline/lib $LDFLAGS"
4322 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
4324 for ac_hdr in readline.h history.h readline/readline.h
4326 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4327 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4328 echo "configure:4329: checking for $ac_hdr" >&5
4329 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4330 echo $ac_n "(cached) $ac_c" 1>&6
4331 else
4332 cat > conftest.$ac_ext <<EOF
4333 #line 4334 "configure"
4334 #include "confdefs.h"
4335 #include <$ac_hdr>
4337 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4338 { (eval echo configure:4339: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4339 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4340 if test -z "$ac_err"; then
4341 rm -rf conftest*
4342 eval "ac_cv_header_$ac_safe=yes"
4343 else
4344 echo "$ac_err" >&5
4345 echo "configure: failed program was:" >&5
4346 cat conftest.$ac_ext >&5
4347 rm -rf conftest*
4348 eval "ac_cv_header_$ac_safe=no"
4350 rm -f conftest*
4352 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4353 echo "$ac_t""yes" 1>&6
4354 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4355 cat >> confdefs.h <<EOF
4356 #define $ac_tr_hdr 1
4359 else
4360 echo "$ac_t""no" 1>&6
4362 done
4364 for ac_hdr in readline/history.h
4366 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4367 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4368 echo "configure:4369: checking for $ac_hdr" >&5
4369 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4370 echo $ac_n "(cached) $ac_c" 1>&6
4371 else
4372 cat > conftest.$ac_ext <<EOF
4373 #line 4374 "configure"
4374 #include "confdefs.h"
4375 #include <$ac_hdr>
4377 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4378 { (eval echo configure:4379: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4379 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4380 if test -z "$ac_err"; then
4381 rm -rf conftest*
4382 eval "ac_cv_header_$ac_safe=yes"
4383 else
4384 echo "$ac_err" >&5
4385 echo "configure: failed program was:" >&5
4386 cat conftest.$ac_ext >&5
4387 rm -rf conftest*
4388 eval "ac_cv_header_$ac_safe=no"
4390 rm -f conftest*
4392 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4393 echo "$ac_t""yes" 1>&6
4394 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4395 cat >> confdefs.h <<EOF
4396 #define $ac_tr_hdr 1
4399 else
4400 echo "$ac_t""no" 1>&6
4402 done
4405 for ac_hdr in readline.h readline/readline.h
4407 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4408 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4409 echo "configure:4410: checking for $ac_hdr" >&5
4410 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4411 echo $ac_n "(cached) $ac_c" 1>&6
4412 else
4413 cat > conftest.$ac_ext <<EOF
4414 #line 4415 "configure"
4415 #include "confdefs.h"
4416 #include <$ac_hdr>
4418 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4419 { (eval echo configure:4420: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4420 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4421 if test -z "$ac_err"; then
4422 rm -rf conftest*
4423 eval "ac_cv_header_$ac_safe=yes"
4424 else
4425 echo "$ac_err" >&5
4426 echo "configure: failed program was:" >&5
4427 cat conftest.$ac_ext >&5
4428 rm -rf conftest*
4429 eval "ac_cv_header_$ac_safe=no"
4431 rm -f conftest*
4433 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4434 echo "$ac_t""yes" 1>&6
4435 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4436 cat >> confdefs.h <<EOF
4437 #define $ac_tr_hdr 1
4440 for termlib in ncurses curses termcap terminfo termlib; do
4441 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4442 echo "configure:4443: checking for tgetent in -l${termlib}" >&5
4443 ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4444 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4445 echo $ac_n "(cached) $ac_c" 1>&6
4446 else
4447 ac_save_LIBS="$LIBS"
4448 LIBS="-l${termlib} $LIBS"
4449 cat > conftest.$ac_ext <<EOF
4450 #line 4451 "configure"
4451 #include "confdefs.h"
4452 /* Override any gcc2 internal prototype to avoid an error. */
4453 /* We use char because int might match the return type of a gcc2
4454 builtin and then its argument prototype would still apply. */
4455 char tgetent();
4457 int main() {
4458 tgetent()
4459 ; return 0; }
4461 if { (eval echo configure:4462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4462 rm -rf conftest*
4463 eval "ac_cv_lib_$ac_lib_var=yes"
4464 else
4465 echo "configure: failed program was:" >&5
4466 cat conftest.$ac_ext >&5
4467 rm -rf conftest*
4468 eval "ac_cv_lib_$ac_lib_var=no"
4470 rm -f conftest*
4471 LIBS="$ac_save_LIBS"
4474 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4475 echo "$ac_t""yes" 1>&6
4476 TERMLIBS="-l${termlib}"; break
4477 else
4478 echo "$ac_t""no" 1>&6
4481 done
4482 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4483 echo "configure:4484: checking for rl_callback_handler_install in -lreadline" >&5
4484 ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4485 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4486 echo $ac_n "(cached) $ac_c" 1>&6
4487 else
4488 ac_save_LIBS="$LIBS"
4489 LIBS="-lreadline $TERMLIBS $LIBS"
4490 cat > conftest.$ac_ext <<EOF
4491 #line 4492 "configure"
4492 #include "confdefs.h"
4493 /* Override any gcc2 internal prototype to avoid an error. */
4494 /* We use char because int might match the return type of a gcc2
4495 builtin and then its argument prototype would still apply. */
4496 char rl_callback_handler_install();
4498 int main() {
4499 rl_callback_handler_install()
4500 ; return 0; }
4502 if { (eval echo configure:4503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4503 rm -rf conftest*
4504 eval "ac_cv_lib_$ac_lib_var=yes"
4505 else
4506 echo "configure: failed program was:" >&5
4507 cat conftest.$ac_ext >&5
4508 rm -rf conftest*
4509 eval "ac_cv_lib_$ac_lib_var=no"
4511 rm -f conftest*
4512 LIBS="$ac_save_LIBS"
4515 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4516 echo "$ac_t""yes" 1>&6
4517 TERMLDFLAGS="-L$with_readline/lib"
4518 TERMCPPFLAGS="-I$with_readline/include"
4519 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
4520 TERMLIBS="-lreadline $TERMLIBS"
4521 cat >> confdefs.h <<\EOF
4522 #define HAVE_LIBREADLINE 1
4525 break
4526 else
4527 echo "$ac_t""no" 1>&6
4528 TERMLIBS= CPPFLAGS=$_cppflags
4531 else
4532 echo "$ac_t""no" 1>&6
4534 done
4537 LDFLAGS=$_ldflags
4539 esac
4540 else
4541 echo "$ac_t""no" 1>&6
4548 # The following test taken from the cvs sources
4549 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
4550 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
4551 # libsocket.so which has a bad implementation of gethostbyname (it
4552 # only looks in /etc/hosts), so we only look for -lsocket if we need
4553 # it.
4554 for ac_func in connect
4556 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4557 echo "configure:4558: checking for $ac_func" >&5
4558 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4559 echo $ac_n "(cached) $ac_c" 1>&6
4560 else
4561 cat > conftest.$ac_ext <<EOF
4562 #line 4563 "configure"
4563 #include "confdefs.h"
4564 /* System header to define __stub macros and hopefully few prototypes,
4565 which can conflict with char $ac_func(); below. */
4566 #include <assert.h>
4567 /* Override any gcc2 internal prototype to avoid an error. */
4568 /* We use char because int might match the return type of a gcc2
4569 builtin and then its argument prototype would still apply. */
4570 char $ac_func();
4572 int main() {
4574 /* The GNU C library defines this for functions which it implements
4575 to always fail with ENOSYS. Some functions are actually named
4576 something starting with __ and the normal name is an alias. */
4577 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4578 choke me
4579 #else
4580 $ac_func();
4581 #endif
4583 ; return 0; }
4585 if { (eval echo configure:4586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4586 rm -rf conftest*
4587 eval "ac_cv_func_$ac_func=yes"
4588 else
4589 echo "configure: failed program was:" >&5
4590 cat conftest.$ac_ext >&5
4591 rm -rf conftest*
4592 eval "ac_cv_func_$ac_func=no"
4594 rm -f conftest*
4597 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4598 echo "$ac_t""yes" 1>&6
4599 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4600 cat >> confdefs.h <<EOF
4601 #define $ac_tr_func 1
4604 else
4605 echo "$ac_t""no" 1>&6
4607 done
4609 if test x"$ac_cv_func_connect" = x"no"; then
4610 case "$LIBS" in
4611 *-lnsl*) ;;
4612 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
4613 echo "configure:4614: checking for printf in -lnsl_s" >&5
4614 ac_lib_var=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
4615 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4616 echo $ac_n "(cached) $ac_c" 1>&6
4617 else
4618 ac_save_LIBS="$LIBS"
4619 LIBS="-lnsl_s $LIBS"
4620 cat > conftest.$ac_ext <<EOF
4621 #line 4622 "configure"
4622 #include "confdefs.h"
4623 /* Override any gcc2 internal prototype to avoid an error. */
4624 /* We use char because int might match the return type of a gcc2
4625 builtin and then its argument prototype would still apply. */
4626 char printf();
4628 int main() {
4629 printf()
4630 ; return 0; }
4632 if { (eval echo configure:4633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4633 rm -rf conftest*
4634 eval "ac_cv_lib_$ac_lib_var=yes"
4635 else
4636 echo "configure: failed program was:" >&5
4637 cat conftest.$ac_ext >&5
4638 rm -rf conftest*
4639 eval "ac_cv_lib_$ac_lib_var=no"
4641 rm -f conftest*
4642 LIBS="$ac_save_LIBS"
4645 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4646 echo "$ac_t""yes" 1>&6
4647 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4648 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4649 cat >> confdefs.h <<EOF
4650 #define $ac_tr_lib 1
4653 LIBS="-lnsl_s $LIBS"
4655 else
4656 echo "$ac_t""no" 1>&6
4659 esac
4660 case "$LIBS" in
4661 *-lnsl*) ;;
4662 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
4663 echo "configure:4664: checking for printf in -lnsl" >&5
4664 ac_lib_var=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
4665 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4666 echo $ac_n "(cached) $ac_c" 1>&6
4667 else
4668 ac_save_LIBS="$LIBS"
4669 LIBS="-lnsl $LIBS"
4670 cat > conftest.$ac_ext <<EOF
4671 #line 4672 "configure"
4672 #include "confdefs.h"
4673 /* Override any gcc2 internal prototype to avoid an error. */
4674 /* We use char because int might match the return type of a gcc2
4675 builtin and then its argument prototype would still apply. */
4676 char printf();
4678 int main() {
4679 printf()
4680 ; return 0; }
4682 if { (eval echo configure:4683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4683 rm -rf conftest*
4684 eval "ac_cv_lib_$ac_lib_var=yes"
4685 else
4686 echo "configure: failed program was:" >&5
4687 cat conftest.$ac_ext >&5
4688 rm -rf conftest*
4689 eval "ac_cv_lib_$ac_lib_var=no"
4691 rm -f conftest*
4692 LIBS="$ac_save_LIBS"
4695 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4696 echo "$ac_t""yes" 1>&6
4697 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4698 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4699 cat >> confdefs.h <<EOF
4700 #define $ac_tr_lib 1
4703 LIBS="-lnsl $LIBS"
4705 else
4706 echo "$ac_t""no" 1>&6
4709 esac
4710 case "$LIBS" in
4711 *-lsocket*) ;;
4712 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
4713 echo "configure:4714: checking for connect in -lsocket" >&5
4714 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
4715 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4716 echo $ac_n "(cached) $ac_c" 1>&6
4717 else
4718 ac_save_LIBS="$LIBS"
4719 LIBS="-lsocket $LIBS"
4720 cat > conftest.$ac_ext <<EOF
4721 #line 4722 "configure"
4722 #include "confdefs.h"
4723 /* Override any gcc2 internal prototype to avoid an error. */
4724 /* We use char because int might match the return type of a gcc2
4725 builtin and then its argument prototype would still apply. */
4726 char connect();
4728 int main() {
4729 connect()
4730 ; return 0; }
4732 if { (eval echo configure:4733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4733 rm -rf conftest*
4734 eval "ac_cv_lib_$ac_lib_var=yes"
4735 else
4736 echo "configure: failed program was:" >&5
4737 cat conftest.$ac_ext >&5
4738 rm -rf conftest*
4739 eval "ac_cv_lib_$ac_lib_var=no"
4741 rm -f conftest*
4742 LIBS="$ac_save_LIBS"
4745 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4746 echo "$ac_t""yes" 1>&6
4747 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4748 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4749 cat >> confdefs.h <<EOF
4750 #define $ac_tr_lib 1
4753 LIBS="-lsocket $LIBS"
4755 else
4756 echo "$ac_t""no" 1>&6
4759 esac
4760 case "$LIBS" in
4761 *-linet*) ;;
4762 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
4763 echo "configure:4764: checking for connect in -linet" >&5
4764 ac_lib_var=`echo inet'_'connect | sed 'y%./+-%__p_%'`
4765 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4766 echo $ac_n "(cached) $ac_c" 1>&6
4767 else
4768 ac_save_LIBS="$LIBS"
4769 LIBS="-linet $LIBS"
4770 cat > conftest.$ac_ext <<EOF
4771 #line 4772 "configure"
4772 #include "confdefs.h"
4773 /* Override any gcc2 internal prototype to avoid an error. */
4774 /* We use char because int might match the return type of a gcc2
4775 builtin and then its argument prototype would still apply. */
4776 char connect();
4778 int main() {
4779 connect()
4780 ; return 0; }
4782 if { (eval echo configure:4783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4783 rm -rf conftest*
4784 eval "ac_cv_lib_$ac_lib_var=yes"
4785 else
4786 echo "configure: failed program was:" >&5
4787 cat conftest.$ac_ext >&5
4788 rm -rf conftest*
4789 eval "ac_cv_lib_$ac_lib_var=no"
4791 rm -f conftest*
4792 LIBS="$ac_save_LIBS"
4795 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4796 echo "$ac_t""yes" 1>&6
4797 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4798 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4799 cat >> confdefs.h <<EOF
4800 #define $ac_tr_lib 1
4803 LIBS="-linet $LIBS"
4805 else
4806 echo "$ac_t""no" 1>&6
4809 esac
4810 if test x"$ac_cv_lib_socket_connect" = x"yes" ||
4811 test x"$ac_cv_lib_inet_connect" = x"yes"; then
4812 # ac_cv_func_connect=yes
4813 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
4814 cat >> confdefs.h <<\EOF
4815 #define HAVE_CONNECT 1
4821 ###############################################
4822 # test for where we get get_yp_default_domain() from
4823 for ac_func in yp_get_default_domain
4825 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4826 echo "configure:4827: checking for $ac_func" >&5
4827 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4828 echo $ac_n "(cached) $ac_c" 1>&6
4829 else
4830 cat > conftest.$ac_ext <<EOF
4831 #line 4832 "configure"
4832 #include "confdefs.h"
4833 /* System header to define __stub macros and hopefully few prototypes,
4834 which can conflict with char $ac_func(); below. */
4835 #include <assert.h>
4836 /* Override any gcc2 internal prototype to avoid an error. */
4837 /* We use char because int might match the return type of a gcc2
4838 builtin and then its argument prototype would still apply. */
4839 char $ac_func();
4841 int main() {
4843 /* The GNU C library defines this for functions which it implements
4844 to always fail with ENOSYS. Some functions are actually named
4845 something starting with __ and the normal name is an alias. */
4846 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4847 choke me
4848 #else
4849 $ac_func();
4850 #endif
4852 ; return 0; }
4854 if { (eval echo configure:4855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4855 rm -rf conftest*
4856 eval "ac_cv_func_$ac_func=yes"
4857 else
4858 echo "configure: failed program was:" >&5
4859 cat conftest.$ac_ext >&5
4860 rm -rf conftest*
4861 eval "ac_cv_func_$ac_func=no"
4863 rm -f conftest*
4866 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4867 echo "$ac_t""yes" 1>&6
4868 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4869 cat >> confdefs.h <<EOF
4870 #define $ac_tr_func 1
4873 else
4874 echo "$ac_t""no" 1>&6
4876 done
4878 if test x"$ac_cv_func_yp_get_default_domain" = x"no"; then
4879 echo $ac_n "checking for yp_get_default_domain in -lnsl""... $ac_c" 1>&6
4880 echo "configure:4881: checking for yp_get_default_domain in -lnsl" >&5
4881 ac_lib_var=`echo nsl'_'yp_get_default_domain | sed 'y%./+-%__p_%'`
4882 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4883 echo $ac_n "(cached) $ac_c" 1>&6
4884 else
4885 ac_save_LIBS="$LIBS"
4886 LIBS="-lnsl $LIBS"
4887 cat > conftest.$ac_ext <<EOF
4888 #line 4889 "configure"
4889 #include "confdefs.h"
4890 /* Override any gcc2 internal prototype to avoid an error. */
4891 /* We use char because int might match the return type of a gcc2
4892 builtin and then its argument prototype would still apply. */
4893 char yp_get_default_domain();
4895 int main() {
4896 yp_get_default_domain()
4897 ; return 0; }
4899 if { (eval echo configure:4900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4900 rm -rf conftest*
4901 eval "ac_cv_lib_$ac_lib_var=yes"
4902 else
4903 echo "configure: failed program was:" >&5
4904 cat conftest.$ac_ext >&5
4905 rm -rf conftest*
4906 eval "ac_cv_lib_$ac_lib_var=no"
4908 rm -f conftest*
4909 LIBS="$ac_save_LIBS"
4912 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4913 echo "$ac_t""yes" 1>&6
4914 LIBS="$LIBS -lnsl";
4915 cat >> confdefs.h <<\EOF
4916 #define HAVE_YP_GET_DEFAULT_DOMAIN 1
4919 else
4920 echo "$ac_t""no" 1>&6
4925 # Check if we have execl, if not we need to compile smbrun.
4926 for ac_func in execl
4928 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4929 echo "configure:4930: checking for $ac_func" >&5
4930 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4931 echo $ac_n "(cached) $ac_c" 1>&6
4932 else
4933 cat > conftest.$ac_ext <<EOF
4934 #line 4935 "configure"
4935 #include "confdefs.h"
4936 /* System header to define __stub macros and hopefully few prototypes,
4937 which can conflict with char $ac_func(); below. */
4938 #include <assert.h>
4939 /* Override any gcc2 internal prototype to avoid an error. */
4940 /* We use char because int might match the return type of a gcc2
4941 builtin and then its argument prototype would still apply. */
4942 char $ac_func();
4944 int main() {
4946 /* The GNU C library defines this for functions which it implements
4947 to always fail with ENOSYS. Some functions are actually named
4948 something starting with __ and the normal name is an alias. */
4949 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4950 choke me
4951 #else
4952 $ac_func();
4953 #endif
4955 ; return 0; }
4957 if { (eval echo configure:4958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4958 rm -rf conftest*
4959 eval "ac_cv_func_$ac_func=yes"
4960 else
4961 echo "configure: failed program was:" >&5
4962 cat conftest.$ac_ext >&5
4963 rm -rf conftest*
4964 eval "ac_cv_func_$ac_func=no"
4966 rm -f conftest*
4969 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4970 echo "$ac_t""yes" 1>&6
4971 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4972 cat >> confdefs.h <<EOF
4973 #define $ac_tr_func 1
4976 else
4977 echo "$ac_t""no" 1>&6
4979 done
4981 if test x"$ac_cv_func_execl" = x"no"; then
4982 RUNPROG="bin/smbrun"
4983 else
4984 RUNPROG=""
4987 for ac_func in waitpid getcwd strdup strtoul strerror chown fchown chmod fchmod chroot
4989 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4990 echo "configure:4991: checking for $ac_func" >&5
4991 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4992 echo $ac_n "(cached) $ac_c" 1>&6
4993 else
4994 cat > conftest.$ac_ext <<EOF
4995 #line 4996 "configure"
4996 #include "confdefs.h"
4997 /* System header to define __stub macros and hopefully few prototypes,
4998 which can conflict with char $ac_func(); below. */
4999 #include <assert.h>
5000 /* Override any gcc2 internal prototype to avoid an error. */
5001 /* We use char because int might match the return type of a gcc2
5002 builtin and then its argument prototype would still apply. */
5003 char $ac_func();
5005 int main() {
5007 /* The GNU C library defines this for functions which it implements
5008 to always fail with ENOSYS. Some functions are actually named
5009 something starting with __ and the normal name is an alias. */
5010 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5011 choke me
5012 #else
5013 $ac_func();
5014 #endif
5016 ; return 0; }
5018 if { (eval echo configure:5019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5019 rm -rf conftest*
5020 eval "ac_cv_func_$ac_func=yes"
5021 else
5022 echo "configure: failed program was:" >&5
5023 cat conftest.$ac_ext >&5
5024 rm -rf conftest*
5025 eval "ac_cv_func_$ac_func=no"
5027 rm -f conftest*
5030 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5031 echo "$ac_t""yes" 1>&6
5032 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5033 cat >> confdefs.h <<EOF
5034 #define $ac_tr_func 1
5037 else
5038 echo "$ac_t""no" 1>&6
5040 done
5042 for ac_func in fstat strchr utime utimes getrlimit fsync bzero memset
5044 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5045 echo "configure:5046: checking for $ac_func" >&5
5046 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5047 echo $ac_n "(cached) $ac_c" 1>&6
5048 else
5049 cat > conftest.$ac_ext <<EOF
5050 #line 5051 "configure"
5051 #include "confdefs.h"
5052 /* System header to define __stub macros and hopefully few prototypes,
5053 which can conflict with char $ac_func(); below. */
5054 #include <assert.h>
5055 /* Override any gcc2 internal prototype to avoid an error. */
5056 /* We use char because int might match the return type of a gcc2
5057 builtin and then its argument prototype would still apply. */
5058 char $ac_func();
5060 int main() {
5062 /* The GNU C library defines this for functions which it implements
5063 to always fail with ENOSYS. Some functions are actually named
5064 something starting with __ and the normal name is an alias. */
5065 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5066 choke me
5067 #else
5068 $ac_func();
5069 #endif
5071 ; return 0; }
5073 if { (eval echo configure:5074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5074 rm -rf conftest*
5075 eval "ac_cv_func_$ac_func=yes"
5076 else
5077 echo "configure: failed program was:" >&5
5078 cat conftest.$ac_ext >&5
5079 rm -rf conftest*
5080 eval "ac_cv_func_$ac_func=no"
5082 rm -f conftest*
5085 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5086 echo "$ac_t""yes" 1>&6
5087 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5088 cat >> confdefs.h <<EOF
5089 #define $ac_tr_func 1
5092 else
5093 echo "$ac_t""no" 1>&6
5095 done
5097 for ac_func in memmove vsnprintf snprintf asprintf vasprintf setsid glob strpbrk pipe crypt16 getauthuid
5099 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5100 echo "configure:5101: checking for $ac_func" >&5
5101 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5102 echo $ac_n "(cached) $ac_c" 1>&6
5103 else
5104 cat > conftest.$ac_ext <<EOF
5105 #line 5106 "configure"
5106 #include "confdefs.h"
5107 /* System header to define __stub macros and hopefully few prototypes,
5108 which can conflict with char $ac_func(); below. */
5109 #include <assert.h>
5110 /* Override any gcc2 internal prototype to avoid an error. */
5111 /* We use char because int might match the return type of a gcc2
5112 builtin and then its argument prototype would still apply. */
5113 char $ac_func();
5115 int main() {
5117 /* The GNU C library defines this for functions which it implements
5118 to always fail with ENOSYS. Some functions are actually named
5119 something starting with __ and the normal name is an alias. */
5120 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5121 choke me
5122 #else
5123 $ac_func();
5124 #endif
5126 ; return 0; }
5128 if { (eval echo configure:5129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5129 rm -rf conftest*
5130 eval "ac_cv_func_$ac_func=yes"
5131 else
5132 echo "configure: failed program was:" >&5
5133 cat conftest.$ac_ext >&5
5134 rm -rf conftest*
5135 eval "ac_cv_func_$ac_func=no"
5137 rm -f conftest*
5140 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5141 echo "$ac_t""yes" 1>&6
5142 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5143 cat >> confdefs.h <<EOF
5144 #define $ac_tr_func 1
5147 else
5148 echo "$ac_t""no" 1>&6
5150 done
5152 for ac_func in strftime sigprocmask sigblock sigaction innetgr setnetgrent getnetgrent endnetgrent
5154 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5155 echo "configure:5156: checking for $ac_func" >&5
5156 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5157 echo $ac_n "(cached) $ac_c" 1>&6
5158 else
5159 cat > conftest.$ac_ext <<EOF
5160 #line 5161 "configure"
5161 #include "confdefs.h"
5162 /* System header to define __stub macros and hopefully few prototypes,
5163 which can conflict with char $ac_func(); below. */
5164 #include <assert.h>
5165 /* Override any gcc2 internal prototype to avoid an error. */
5166 /* We use char because int might match the return type of a gcc2
5167 builtin and then its argument prototype would still apply. */
5168 char $ac_func();
5170 int main() {
5172 /* The GNU C library defines this for functions which it implements
5173 to always fail with ENOSYS. Some functions are actually named
5174 something starting with __ and the normal name is an alias. */
5175 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5176 choke me
5177 #else
5178 $ac_func();
5179 #endif
5181 ; return 0; }
5183 if { (eval echo configure:5184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5184 rm -rf conftest*
5185 eval "ac_cv_func_$ac_func=yes"
5186 else
5187 echo "configure: failed program was:" >&5
5188 cat conftest.$ac_ext >&5
5189 rm -rf conftest*
5190 eval "ac_cv_func_$ac_func=no"
5192 rm -f conftest*
5195 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5196 echo "$ac_t""yes" 1>&6
5197 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5198 cat >> confdefs.h <<EOF
5199 #define $ac_tr_func 1
5202 else
5203 echo "$ac_t""no" 1>&6
5205 done
5207 for ac_func in initgroups select poll rdchk getgrnam getgrent pathconf
5209 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5210 echo "configure:5211: checking for $ac_func" >&5
5211 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5212 echo $ac_n "(cached) $ac_c" 1>&6
5213 else
5214 cat > conftest.$ac_ext <<EOF
5215 #line 5216 "configure"
5216 #include "confdefs.h"
5217 /* System header to define __stub macros and hopefully few prototypes,
5218 which can conflict with char $ac_func(); below. */
5219 #include <assert.h>
5220 /* Override any gcc2 internal prototype to avoid an error. */
5221 /* We use char because int might match the return type of a gcc2
5222 builtin and then its argument prototype would still apply. */
5223 char $ac_func();
5225 int main() {
5227 /* The GNU C library defines this for functions which it implements
5228 to always fail with ENOSYS. Some functions are actually named
5229 something starting with __ and the normal name is an alias. */
5230 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5231 choke me
5232 #else
5233 $ac_func();
5234 #endif
5236 ; return 0; }
5238 if { (eval echo configure:5239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5239 rm -rf conftest*
5240 eval "ac_cv_func_$ac_func=yes"
5241 else
5242 echo "configure: failed program was:" >&5
5243 cat conftest.$ac_ext >&5
5244 rm -rf conftest*
5245 eval "ac_cv_func_$ac_func=no"
5247 rm -f conftest*
5250 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5251 echo "$ac_t""yes" 1>&6
5252 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5253 cat >> confdefs.h <<EOF
5254 #define $ac_tr_func 1
5257 else
5258 echo "$ac_t""no" 1>&6
5260 done
5262 for ac_func in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
5264 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5265 echo "configure:5266: checking for $ac_func" >&5
5266 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5267 echo $ac_n "(cached) $ac_c" 1>&6
5268 else
5269 cat > conftest.$ac_ext <<EOF
5270 #line 5271 "configure"
5271 #include "confdefs.h"
5272 /* System header to define __stub macros and hopefully few prototypes,
5273 which can conflict with char $ac_func(); below. */
5274 #include <assert.h>
5275 /* Override any gcc2 internal prototype to avoid an error. */
5276 /* We use char because int might match the return type of a gcc2
5277 builtin and then its argument prototype would still apply. */
5278 char $ac_func();
5280 int main() {
5282 /* The GNU C library defines this for functions which it implements
5283 to always fail with ENOSYS. Some functions are actually named
5284 something starting with __ and the normal name is an alias. */
5285 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5286 choke me
5287 #else
5288 $ac_func();
5289 #endif
5291 ; return 0; }
5293 if { (eval echo configure:5294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5294 rm -rf conftest*
5295 eval "ac_cv_func_$ac_func=yes"
5296 else
5297 echo "configure: failed program was:" >&5
5298 cat conftest.$ac_ext >&5
5299 rm -rf conftest*
5300 eval "ac_cv_func_$ac_func=no"
5302 rm -f conftest*
5305 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5306 echo "$ac_t""yes" 1>&6
5307 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5308 cat >> confdefs.h <<EOF
5309 #define $ac_tr_func 1
5312 else
5313 echo "$ac_t""no" 1>&6
5315 done
5317 for ac_func in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
5319 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5320 echo "configure:5321: checking for $ac_func" >&5
5321 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5322 echo $ac_n "(cached) $ac_c" 1>&6
5323 else
5324 cat > conftest.$ac_ext <<EOF
5325 #line 5326 "configure"
5326 #include "confdefs.h"
5327 /* System header to define __stub macros and hopefully few prototypes,
5328 which can conflict with char $ac_func(); below. */
5329 #include <assert.h>
5330 /* Override any gcc2 internal prototype to avoid an error. */
5331 /* We use char because int might match the return type of a gcc2
5332 builtin and then its argument prototype would still apply. */
5333 char $ac_func();
5335 int main() {
5337 /* The GNU C library defines this for functions which it implements
5338 to always fail with ENOSYS. Some functions are actually named
5339 something starting with __ and the normal name is an alias. */
5340 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5341 choke me
5342 #else
5343 $ac_func();
5344 #endif
5346 ; return 0; }
5348 if { (eval echo configure:5349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5349 rm -rf conftest*
5350 eval "ac_cv_func_$ac_func=yes"
5351 else
5352 echo "configure: failed program was:" >&5
5353 cat conftest.$ac_ext >&5
5354 rm -rf conftest*
5355 eval "ac_cv_func_$ac_func=no"
5357 rm -f conftest*
5360 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5361 echo "$ac_t""yes" 1>&6
5362 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5363 cat >> confdefs.h <<EOF
5364 #define $ac_tr_func 1
5367 else
5368 echo "$ac_t""no" 1>&6
5370 done
5372 for ac_func in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam setlinebuf
5374 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5375 echo "configure:5376: checking for $ac_func" >&5
5376 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5377 echo $ac_n "(cached) $ac_c" 1>&6
5378 else
5379 cat > conftest.$ac_ext <<EOF
5380 #line 5381 "configure"
5381 #include "confdefs.h"
5382 /* System header to define __stub macros and hopefully few prototypes,
5383 which can conflict with char $ac_func(); below. */
5384 #include <assert.h>
5385 /* Override any gcc2 internal prototype to avoid an error. */
5386 /* We use char because int might match the return type of a gcc2
5387 builtin and then its argument prototype would still apply. */
5388 char $ac_func();
5390 int main() {
5392 /* The GNU C library defines this for functions which it implements
5393 to always fail with ENOSYS. Some functions are actually named
5394 something starting with __ and the normal name is an alias. */
5395 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5396 choke me
5397 #else
5398 $ac_func();
5399 #endif
5401 ; return 0; }
5403 if { (eval echo configure:5404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5404 rm -rf conftest*
5405 eval "ac_cv_func_$ac_func=yes"
5406 else
5407 echo "configure: failed program was:" >&5
5408 cat conftest.$ac_ext >&5
5409 rm -rf conftest*
5410 eval "ac_cv_func_$ac_func=no"
5412 rm -f conftest*
5415 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5416 echo "$ac_t""yes" 1>&6
5417 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5418 cat >> confdefs.h <<EOF
5419 #define $ac_tr_func 1
5422 else
5423 echo "$ac_t""no" 1>&6
5425 done
5427 for ac_func in srandom random srand rand setenv usleep strcasecmp fcvt fcvtl symlink readlink
5429 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5430 echo "configure:5431: checking for $ac_func" >&5
5431 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5432 echo $ac_n "(cached) $ac_c" 1>&6
5433 else
5434 cat > conftest.$ac_ext <<EOF
5435 #line 5436 "configure"
5436 #include "confdefs.h"
5437 /* System header to define __stub macros and hopefully few prototypes,
5438 which can conflict with char $ac_func(); below. */
5439 #include <assert.h>
5440 /* Override any gcc2 internal prototype to avoid an error. */
5441 /* We use char because int might match the return type of a gcc2
5442 builtin and then its argument prototype would still apply. */
5443 char $ac_func();
5445 int main() {
5447 /* The GNU C library defines this for functions which it implements
5448 to always fail with ENOSYS. Some functions are actually named
5449 something starting with __ and the normal name is an alias. */
5450 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5451 choke me
5452 #else
5453 $ac_func();
5454 #endif
5456 ; return 0; }
5458 if { (eval echo configure:5459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5459 rm -rf conftest*
5460 eval "ac_cv_func_$ac_func=yes"
5461 else
5462 echo "configure: failed program was:" >&5
5463 cat conftest.$ac_ext >&5
5464 rm -rf conftest*
5465 eval "ac_cv_func_$ac_func=no"
5467 rm -f conftest*
5470 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5471 echo "$ac_t""yes" 1>&6
5472 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5473 cat >> confdefs.h <<EOF
5474 #define $ac_tr_func 1
5477 else
5478 echo "$ac_t""no" 1>&6
5480 done
5483 # syscall() is needed for smbwrapper.
5484 for ac_func in syscall
5486 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5487 echo "configure:5488: checking for $ac_func" >&5
5488 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5489 echo $ac_n "(cached) $ac_c" 1>&6
5490 else
5491 cat > conftest.$ac_ext <<EOF
5492 #line 5493 "configure"
5493 #include "confdefs.h"
5494 /* System header to define __stub macros and hopefully few prototypes,
5495 which can conflict with char $ac_func(); below. */
5496 #include <assert.h>
5497 /* Override any gcc2 internal prototype to avoid an error. */
5498 /* We use char because int might match the return type of a gcc2
5499 builtin and then its argument prototype would still apply. */
5500 char $ac_func();
5502 int main() {
5504 /* The GNU C library defines this for functions which it implements
5505 to always fail with ENOSYS. Some functions are actually named
5506 something starting with __ and the normal name is an alias. */
5507 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5508 choke me
5509 #else
5510 $ac_func();
5511 #endif
5513 ; return 0; }
5515 if { (eval echo configure:5516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5516 rm -rf conftest*
5517 eval "ac_cv_func_$ac_func=yes"
5518 else
5519 echo "configure: failed program was:" >&5
5520 cat conftest.$ac_ext >&5
5521 rm -rf conftest*
5522 eval "ac_cv_func_$ac_func=no"
5524 rm -f conftest*
5527 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5528 echo "$ac_t""yes" 1>&6
5529 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5530 cat >> confdefs.h <<EOF
5531 #define $ac_tr_func 1
5534 else
5535 echo "$ac_t""no" 1>&6
5537 done
5540 for ac_func in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
5542 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5543 echo "configure:5544: checking for $ac_func" >&5
5544 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5545 echo $ac_n "(cached) $ac_c" 1>&6
5546 else
5547 cat > conftest.$ac_ext <<EOF
5548 #line 5549 "configure"
5549 #include "confdefs.h"
5550 /* System header to define __stub macros and hopefully few prototypes,
5551 which can conflict with char $ac_func(); below. */
5552 #include <assert.h>
5553 /* Override any gcc2 internal prototype to avoid an error. */
5554 /* We use char because int might match the return type of a gcc2
5555 builtin and then its argument prototype would still apply. */
5556 char $ac_func();
5558 int main() {
5560 /* The GNU C library defines this for functions which it implements
5561 to always fail with ENOSYS. Some functions are actually named
5562 something starting with __ and the normal name is an alias. */
5563 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5564 choke me
5565 #else
5566 $ac_func();
5567 #endif
5569 ; return 0; }
5571 if { (eval echo configure:5572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5572 rm -rf conftest*
5573 eval "ac_cv_func_$ac_func=yes"
5574 else
5575 echo "configure: failed program was:" >&5
5576 cat conftest.$ac_ext >&5
5577 rm -rf conftest*
5578 eval "ac_cv_func_$ac_func=no"
5580 rm -f conftest*
5583 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5584 echo "$ac_t""yes" 1>&6
5585 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5586 cat >> confdefs.h <<EOF
5587 #define $ac_tr_func 1
5590 else
5591 echo "$ac_t""no" 1>&6
5593 done
5595 for ac_func in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
5597 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5598 echo "configure:5599: checking for $ac_func" >&5
5599 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5600 echo $ac_n "(cached) $ac_c" 1>&6
5601 else
5602 cat > conftest.$ac_ext <<EOF
5603 #line 5604 "configure"
5604 #include "confdefs.h"
5605 /* System header to define __stub macros and hopefully few prototypes,
5606 which can conflict with char $ac_func(); below. */
5607 #include <assert.h>
5608 /* Override any gcc2 internal prototype to avoid an error. */
5609 /* We use char because int might match the return type of a gcc2
5610 builtin and then its argument prototype would still apply. */
5611 char $ac_func();
5613 int main() {
5615 /* The GNU C library defines this for functions which it implements
5616 to always fail with ENOSYS. Some functions are actually named
5617 something starting with __ and the normal name is an alias. */
5618 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5619 choke me
5620 #else
5621 $ac_func();
5622 #endif
5624 ; return 0; }
5626 if { (eval echo configure:5627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5627 rm -rf conftest*
5628 eval "ac_cv_func_$ac_func=yes"
5629 else
5630 echo "configure: failed program was:" >&5
5631 cat conftest.$ac_ext >&5
5632 rm -rf conftest*
5633 eval "ac_cv_func_$ac_func=no"
5635 rm -f conftest*
5638 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5639 echo "$ac_t""yes" 1>&6
5640 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5641 cat >> confdefs.h <<EOF
5642 #define $ac_tr_func 1
5645 else
5646 echo "$ac_t""no" 1>&6
5648 done
5650 for ac_func in __getcwd _getcwd
5652 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5653 echo "configure:5654: checking for $ac_func" >&5
5654 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5655 echo $ac_n "(cached) $ac_c" 1>&6
5656 else
5657 cat > conftest.$ac_ext <<EOF
5658 #line 5659 "configure"
5659 #include "confdefs.h"
5660 /* System header to define __stub macros and hopefully few prototypes,
5661 which can conflict with char $ac_func(); below. */
5662 #include <assert.h>
5663 /* Override any gcc2 internal prototype to avoid an error. */
5664 /* We use char because int might match the return type of a gcc2
5665 builtin and then its argument prototype would still apply. */
5666 char $ac_func();
5668 int main() {
5670 /* The GNU C library defines this for functions which it implements
5671 to always fail with ENOSYS. Some functions are actually named
5672 something starting with __ and the normal name is an alias. */
5673 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5674 choke me
5675 #else
5676 $ac_func();
5677 #endif
5679 ; return 0; }
5681 if { (eval echo configure:5682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5682 rm -rf conftest*
5683 eval "ac_cv_func_$ac_func=yes"
5684 else
5685 echo "configure: failed program was:" >&5
5686 cat conftest.$ac_ext >&5
5687 rm -rf conftest*
5688 eval "ac_cv_func_$ac_func=no"
5690 rm -f conftest*
5693 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5694 echo "$ac_t""yes" 1>&6
5695 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5696 cat >> confdefs.h <<EOF
5697 #define $ac_tr_func 1
5700 else
5701 echo "$ac_t""no" 1>&6
5703 done
5705 for ac_func in __xstat __fxstat __lxstat
5707 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5708 echo "configure:5709: checking for $ac_func" >&5
5709 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5710 echo $ac_n "(cached) $ac_c" 1>&6
5711 else
5712 cat > conftest.$ac_ext <<EOF
5713 #line 5714 "configure"
5714 #include "confdefs.h"
5715 /* System header to define __stub macros and hopefully few prototypes,
5716 which can conflict with char $ac_func(); below. */
5717 #include <assert.h>
5718 /* Override any gcc2 internal prototype to avoid an error. */
5719 /* We use char because int might match the return type of a gcc2
5720 builtin and then its argument prototype would still apply. */
5721 char $ac_func();
5723 int main() {
5725 /* The GNU C library defines this for functions which it implements
5726 to always fail with ENOSYS. Some functions are actually named
5727 something starting with __ and the normal name is an alias. */
5728 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5729 choke me
5730 #else
5731 $ac_func();
5732 #endif
5734 ; return 0; }
5736 if { (eval echo configure:5737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5737 rm -rf conftest*
5738 eval "ac_cv_func_$ac_func=yes"
5739 else
5740 echo "configure: failed program was:" >&5
5741 cat conftest.$ac_ext >&5
5742 rm -rf conftest*
5743 eval "ac_cv_func_$ac_func=no"
5745 rm -f conftest*
5748 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5749 echo "$ac_t""yes" 1>&6
5750 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5751 cat >> confdefs.h <<EOF
5752 #define $ac_tr_func 1
5755 else
5756 echo "$ac_t""no" 1>&6
5758 done
5760 for ac_func in _stat _lstat _fstat __stat __lstat __fstat
5762 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5763 echo "configure:5764: checking for $ac_func" >&5
5764 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5765 echo $ac_n "(cached) $ac_c" 1>&6
5766 else
5767 cat > conftest.$ac_ext <<EOF
5768 #line 5769 "configure"
5769 #include "confdefs.h"
5770 /* System header to define __stub macros and hopefully few prototypes,
5771 which can conflict with char $ac_func(); below. */
5772 #include <assert.h>
5773 /* Override any gcc2 internal prototype to avoid an error. */
5774 /* We use char because int might match the return type of a gcc2
5775 builtin and then its argument prototype would still apply. */
5776 char $ac_func();
5778 int main() {
5780 /* The GNU C library defines this for functions which it implements
5781 to always fail with ENOSYS. Some functions are actually named
5782 something starting with __ and the normal name is an alias. */
5783 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5784 choke me
5785 #else
5786 $ac_func();
5787 #endif
5789 ; return 0; }
5791 if { (eval echo configure:5792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5792 rm -rf conftest*
5793 eval "ac_cv_func_$ac_func=yes"
5794 else
5795 echo "configure: failed program was:" >&5
5796 cat conftest.$ac_ext >&5
5797 rm -rf conftest*
5798 eval "ac_cv_func_$ac_func=no"
5800 rm -f conftest*
5803 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5804 echo "$ac_t""yes" 1>&6
5805 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5806 cat >> confdefs.h <<EOF
5807 #define $ac_tr_func 1
5810 else
5811 echo "$ac_t""no" 1>&6
5813 done
5815 for ac_func in _acl __acl _facl __facl _open __open _chdir __chdir
5817 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5818 echo "configure:5819: checking for $ac_func" >&5
5819 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5820 echo $ac_n "(cached) $ac_c" 1>&6
5821 else
5822 cat > conftest.$ac_ext <<EOF
5823 #line 5824 "configure"
5824 #include "confdefs.h"
5825 /* System header to define __stub macros and hopefully few prototypes,
5826 which can conflict with char $ac_func(); below. */
5827 #include <assert.h>
5828 /* Override any gcc2 internal prototype to avoid an error. */
5829 /* We use char because int might match the return type of a gcc2
5830 builtin and then its argument prototype would still apply. */
5831 char $ac_func();
5833 int main() {
5835 /* The GNU C library defines this for functions which it implements
5836 to always fail with ENOSYS. Some functions are actually named
5837 something starting with __ and the normal name is an alias. */
5838 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5839 choke me
5840 #else
5841 $ac_func();
5842 #endif
5844 ; return 0; }
5846 if { (eval echo configure:5847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5847 rm -rf conftest*
5848 eval "ac_cv_func_$ac_func=yes"
5849 else
5850 echo "configure: failed program was:" >&5
5851 cat conftest.$ac_ext >&5
5852 rm -rf conftest*
5853 eval "ac_cv_func_$ac_func=no"
5855 rm -f conftest*
5858 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5859 echo "$ac_t""yes" 1>&6
5860 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5861 cat >> confdefs.h <<EOF
5862 #define $ac_tr_func 1
5865 else
5866 echo "$ac_t""no" 1>&6
5868 done
5870 for ac_func in _close __close _fchdir __fchdir _fcntl __fcntl
5872 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5873 echo "configure:5874: checking for $ac_func" >&5
5874 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5875 echo $ac_n "(cached) $ac_c" 1>&6
5876 else
5877 cat > conftest.$ac_ext <<EOF
5878 #line 5879 "configure"
5879 #include "confdefs.h"
5880 /* System header to define __stub macros and hopefully few prototypes,
5881 which can conflict with char $ac_func(); below. */
5882 #include <assert.h>
5883 /* Override any gcc2 internal prototype to avoid an error. */
5884 /* We use char because int might match the return type of a gcc2
5885 builtin and then its argument prototype would still apply. */
5886 char $ac_func();
5888 int main() {
5890 /* The GNU C library defines this for functions which it implements
5891 to always fail with ENOSYS. Some functions are actually named
5892 something starting with __ and the normal name is an alias. */
5893 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5894 choke me
5895 #else
5896 $ac_func();
5897 #endif
5899 ; return 0; }
5901 if { (eval echo configure:5902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5902 rm -rf conftest*
5903 eval "ac_cv_func_$ac_func=yes"
5904 else
5905 echo "configure: failed program was:" >&5
5906 cat conftest.$ac_ext >&5
5907 rm -rf conftest*
5908 eval "ac_cv_func_$ac_func=no"
5910 rm -f conftest*
5913 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5914 echo "$ac_t""yes" 1>&6
5915 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5916 cat >> confdefs.h <<EOF
5917 #define $ac_tr_func 1
5920 else
5921 echo "$ac_t""no" 1>&6
5923 done
5925 for ac_func in getdents _getdents __getdents _lseek __lseek _read __read
5927 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5928 echo "configure:5929: checking for $ac_func" >&5
5929 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5930 echo $ac_n "(cached) $ac_c" 1>&6
5931 else
5932 cat > conftest.$ac_ext <<EOF
5933 #line 5934 "configure"
5934 #include "confdefs.h"
5935 /* System header to define __stub macros and hopefully few prototypes,
5936 which can conflict with char $ac_func(); below. */
5937 #include <assert.h>
5938 /* Override any gcc2 internal prototype to avoid an error. */
5939 /* We use char because int might match the return type of a gcc2
5940 builtin and then its argument prototype would still apply. */
5941 char $ac_func();
5943 int main() {
5945 /* The GNU C library defines this for functions which it implements
5946 to always fail with ENOSYS. Some functions are actually named
5947 something starting with __ and the normal name is an alias. */
5948 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5949 choke me
5950 #else
5951 $ac_func();
5952 #endif
5954 ; return 0; }
5956 if { (eval echo configure:5957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5957 rm -rf conftest*
5958 eval "ac_cv_func_$ac_func=yes"
5959 else
5960 echo "configure: failed program was:" >&5
5961 cat conftest.$ac_ext >&5
5962 rm -rf conftest*
5963 eval "ac_cv_func_$ac_func=no"
5965 rm -f conftest*
5968 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5969 echo "$ac_t""yes" 1>&6
5970 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5971 cat >> confdefs.h <<EOF
5972 #define $ac_tr_func 1
5975 else
5976 echo "$ac_t""no" 1>&6
5978 done
5980 for ac_func in _write __write _fork __fork
5982 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5983 echo "configure:5984: checking for $ac_func" >&5
5984 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5985 echo $ac_n "(cached) $ac_c" 1>&6
5986 else
5987 cat > conftest.$ac_ext <<EOF
5988 #line 5989 "configure"
5989 #include "confdefs.h"
5990 /* System header to define __stub macros and hopefully few prototypes,
5991 which can conflict with char $ac_func(); below. */
5992 #include <assert.h>
5993 /* Override any gcc2 internal prototype to avoid an error. */
5994 /* We use char because int might match the return type of a gcc2
5995 builtin and then its argument prototype would still apply. */
5996 char $ac_func();
5998 int main() {
6000 /* The GNU C library defines this for functions which it implements
6001 to always fail with ENOSYS. Some functions are actually named
6002 something starting with __ and the normal name is an alias. */
6003 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6004 choke me
6005 #else
6006 $ac_func();
6007 #endif
6009 ; return 0; }
6011 if { (eval echo configure:6012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6012 rm -rf conftest*
6013 eval "ac_cv_func_$ac_func=yes"
6014 else
6015 echo "configure: failed program was:" >&5
6016 cat conftest.$ac_ext >&5
6017 rm -rf conftest*
6018 eval "ac_cv_func_$ac_func=no"
6020 rm -f conftest*
6023 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6024 echo "$ac_t""yes" 1>&6
6025 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6026 cat >> confdefs.h <<EOF
6027 #define $ac_tr_func 1
6030 else
6031 echo "$ac_t""no" 1>&6
6033 done
6035 for ac_func in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
6037 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6038 echo "configure:6039: checking for $ac_func" >&5
6039 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6040 echo $ac_n "(cached) $ac_c" 1>&6
6041 else
6042 cat > conftest.$ac_ext <<EOF
6043 #line 6044 "configure"
6044 #include "confdefs.h"
6045 /* System header to define __stub macros and hopefully few prototypes,
6046 which can conflict with char $ac_func(); below. */
6047 #include <assert.h>
6048 /* Override any gcc2 internal prototype to avoid an error. */
6049 /* We use char because int might match the return type of a gcc2
6050 builtin and then its argument prototype would still apply. */
6051 char $ac_func();
6053 int main() {
6055 /* The GNU C library defines this for functions which it implements
6056 to always fail with ENOSYS. Some functions are actually named
6057 something starting with __ and the normal name is an alias. */
6058 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6059 choke me
6060 #else
6061 $ac_func();
6062 #endif
6064 ; return 0; }
6066 if { (eval echo configure:6067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6067 rm -rf conftest*
6068 eval "ac_cv_func_$ac_func=yes"
6069 else
6070 echo "configure: failed program was:" >&5
6071 cat conftest.$ac_ext >&5
6072 rm -rf conftest*
6073 eval "ac_cv_func_$ac_func=no"
6075 rm -f conftest*
6078 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6079 echo "$ac_t""yes" 1>&6
6080 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6081 cat >> confdefs.h <<EOF
6082 #define $ac_tr_func 1
6085 else
6086 echo "$ac_t""no" 1>&6
6088 done
6090 for ac_func in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
6092 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6093 echo "configure:6094: checking for $ac_func" >&5
6094 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6095 echo $ac_n "(cached) $ac_c" 1>&6
6096 else
6097 cat > conftest.$ac_ext <<EOF
6098 #line 6099 "configure"
6099 #include "confdefs.h"
6100 /* System header to define __stub macros and hopefully few prototypes,
6101 which can conflict with char $ac_func(); below. */
6102 #include <assert.h>
6103 /* Override any gcc2 internal prototype to avoid an error. */
6104 /* We use char because int might match the return type of a gcc2
6105 builtin and then its argument prototype would still apply. */
6106 char $ac_func();
6108 int main() {
6110 /* The GNU C library defines this for functions which it implements
6111 to always fail with ENOSYS. Some functions are actually named
6112 something starting with __ and the normal name is an alias. */
6113 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6114 choke me
6115 #else
6116 $ac_func();
6117 #endif
6119 ; return 0; }
6121 if { (eval echo configure:6122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6122 rm -rf conftest*
6123 eval "ac_cv_func_$ac_func=yes"
6124 else
6125 echo "configure: failed program was:" >&5
6126 cat conftest.$ac_ext >&5
6127 rm -rf conftest*
6128 eval "ac_cv_func_$ac_func=no"
6130 rm -f conftest*
6133 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6134 echo "$ac_t""yes" 1>&6
6135 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6136 cat >> confdefs.h <<EOF
6137 #define $ac_tr_func 1
6140 else
6141 echo "$ac_t""no" 1>&6
6143 done
6145 for ac_func in pread _pread __pread pread64 _pread64 __pread64
6147 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6148 echo "configure:6149: checking for $ac_func" >&5
6149 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6150 echo $ac_n "(cached) $ac_c" 1>&6
6151 else
6152 cat > conftest.$ac_ext <<EOF
6153 #line 6154 "configure"
6154 #include "confdefs.h"
6155 /* System header to define __stub macros and hopefully few prototypes,
6156 which can conflict with char $ac_func(); below. */
6157 #include <assert.h>
6158 /* Override any gcc2 internal prototype to avoid an error. */
6159 /* We use char because int might match the return type of a gcc2
6160 builtin and then its argument prototype would still apply. */
6161 char $ac_func();
6163 int main() {
6165 /* The GNU C library defines this for functions which it implements
6166 to always fail with ENOSYS. Some functions are actually named
6167 something starting with __ and the normal name is an alias. */
6168 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6169 choke me
6170 #else
6171 $ac_func();
6172 #endif
6174 ; return 0; }
6176 if { (eval echo configure:6177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6177 rm -rf conftest*
6178 eval "ac_cv_func_$ac_func=yes"
6179 else
6180 echo "configure: failed program was:" >&5
6181 cat conftest.$ac_ext >&5
6182 rm -rf conftest*
6183 eval "ac_cv_func_$ac_func=no"
6185 rm -f conftest*
6188 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6189 echo "$ac_t""yes" 1>&6
6190 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6191 cat >> confdefs.h <<EOF
6192 #define $ac_tr_func 1
6195 else
6196 echo "$ac_t""no" 1>&6
6198 done
6200 for ac_func in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
6202 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6203 echo "configure:6204: checking for $ac_func" >&5
6204 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6205 echo $ac_n "(cached) $ac_c" 1>&6
6206 else
6207 cat > conftest.$ac_ext <<EOF
6208 #line 6209 "configure"
6209 #include "confdefs.h"
6210 /* System header to define __stub macros and hopefully few prototypes,
6211 which can conflict with char $ac_func(); below. */
6212 #include <assert.h>
6213 /* Override any gcc2 internal prototype to avoid an error. */
6214 /* We use char because int might match the return type of a gcc2
6215 builtin and then its argument prototype would still apply. */
6216 char $ac_func();
6218 int main() {
6220 /* The GNU C library defines this for functions which it implements
6221 to always fail with ENOSYS. Some functions are actually named
6222 something starting with __ and the normal name is an alias. */
6223 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6224 choke me
6225 #else
6226 $ac_func();
6227 #endif
6229 ; return 0; }
6231 if { (eval echo configure:6232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6232 rm -rf conftest*
6233 eval "ac_cv_func_$ac_func=yes"
6234 else
6235 echo "configure: failed program was:" >&5
6236 cat conftest.$ac_ext >&5
6237 rm -rf conftest*
6238 eval "ac_cv_func_$ac_func=no"
6240 rm -f conftest*
6243 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6244 echo "$ac_t""yes" 1>&6
6245 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6246 cat >> confdefs.h <<EOF
6247 #define $ac_tr_func 1
6250 else
6251 echo "$ac_t""no" 1>&6
6253 done
6255 for ac_func in open64 _open64 __open64 creat64
6257 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6258 echo "configure:6259: checking for $ac_func" >&5
6259 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6260 echo $ac_n "(cached) $ac_c" 1>&6
6261 else
6262 cat > conftest.$ac_ext <<EOF
6263 #line 6264 "configure"
6264 #include "confdefs.h"
6265 /* System header to define __stub macros and hopefully few prototypes,
6266 which can conflict with char $ac_func(); below. */
6267 #include <assert.h>
6268 /* Override any gcc2 internal prototype to avoid an error. */
6269 /* We use char because int might match the return type of a gcc2
6270 builtin and then its argument prototype would still apply. */
6271 char $ac_func();
6273 int main() {
6275 /* The GNU C library defines this for functions which it implements
6276 to always fail with ENOSYS. Some functions are actually named
6277 something starting with __ and the normal name is an alias. */
6278 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6279 choke me
6280 #else
6281 $ac_func();
6282 #endif
6284 ; return 0; }
6286 if { (eval echo configure:6287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6287 rm -rf conftest*
6288 eval "ac_cv_func_$ac_func=yes"
6289 else
6290 echo "configure: failed program was:" >&5
6291 cat conftest.$ac_ext >&5
6292 rm -rf conftest*
6293 eval "ac_cv_func_$ac_func=no"
6295 rm -f conftest*
6298 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6299 echo "$ac_t""yes" 1>&6
6300 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6301 cat >> confdefs.h <<EOF
6302 #define $ac_tr_func 1
6305 else
6306 echo "$ac_t""no" 1>&6
6308 done
6312 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
6315 if test x$ac_cv_func_stat64 = xno ; then
6316 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
6317 echo "configure:6318: checking for stat64 in <sys/stat.h>" >&5
6318 cat > conftest.$ac_ext <<EOF
6319 #line 6320 "configure"
6320 #include "confdefs.h"
6322 #if defined(HAVE_UNISTD_H)
6323 #include <unistd.h>
6324 #endif
6325 #include <sys/stat.h>
6327 int main() {
6328 struct stat64 st64; exit(stat64(".",&st64));
6329 ; return 0; }
6331 if { (eval echo configure:6332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6332 rm -rf conftest*
6333 ac_cv_func_stat64=yes
6334 else
6335 echo "configure: failed program was:" >&5
6336 cat conftest.$ac_ext >&5
6338 rm -f conftest*
6339 echo "$ac_t""$ac_cv_func_stat64" 1>&6
6340 if test x$ac_cv_func_stat64 = xyes ; then
6341 cat >> confdefs.h <<\EOF
6342 #define HAVE_STAT64 1
6348 if test x$ac_cv_func_lstat64 = xno ; then
6349 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
6350 echo "configure:6351: checking for lstat64 in <sys/stat.h>" >&5
6351 cat > conftest.$ac_ext <<EOF
6352 #line 6353 "configure"
6353 #include "confdefs.h"
6355 #if defined(HAVE_UNISTD_H)
6356 #include <unistd.h>
6357 #endif
6358 #include <sys/stat.h>
6360 int main() {
6361 struct stat64 st64; exit(lstat64(".",&st64));
6362 ; return 0; }
6364 if { (eval echo configure:6365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6365 rm -rf conftest*
6366 ac_cv_func_lstat64=yes
6367 else
6368 echo "configure: failed program was:" >&5
6369 cat conftest.$ac_ext >&5
6371 rm -f conftest*
6372 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
6373 if test x$ac_cv_func_lstat64 = xyes ; then
6374 cat >> confdefs.h <<\EOF
6375 #define HAVE_LSTAT64 1
6381 if test x$ac_cv_func_fstat64 = xno ; then
6382 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
6383 echo "configure:6384: checking for fstat64 in <sys/stat.h>" >&5
6384 cat > conftest.$ac_ext <<EOF
6385 #line 6386 "configure"
6386 #include "confdefs.h"
6388 #if defined(HAVE_UNISTD_H)
6389 #include <unistd.h>
6390 #endif
6391 #include <sys/stat.h>
6393 int main() {
6394 struct stat64 st64; exit(fstat64(0,&st64));
6395 ; return 0; }
6397 if { (eval echo configure:6398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6398 rm -rf conftest*
6399 ac_cv_func_fstat64=yes
6400 else
6401 echo "configure: failed program was:" >&5
6402 cat conftest.$ac_ext >&5
6404 rm -f conftest*
6405 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
6406 if test x$ac_cv_func_fstat64 = xyes ; then
6407 cat >> confdefs.h <<\EOF
6408 #define HAVE_FSTAT64 1
6415 # If no strcasecmp, check for it in some known places
6416 # It is in -lresolv on ReliantUNIX and UnixWare
6417 # -lresolve *must* follow -lnsl for name resolution to work properly
6420 if test x$ac_cv_func_strcasecmp = xno ; then
6421 echo $ac_n "checking for strcasecmp in -lresolv""... $ac_c" 1>&6
6422 echo "configure:6423: checking for strcasecmp in -lresolv" >&5
6423 ac_lib_var=`echo resolv'_'strcasecmp | sed 'y%./+-%__p_%'`
6424 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6425 echo $ac_n "(cached) $ac_c" 1>&6
6426 else
6427 ac_save_LIBS="$LIBS"
6428 LIBS="-lresolv $LIBS"
6429 cat > conftest.$ac_ext <<EOF
6430 #line 6431 "configure"
6431 #include "confdefs.h"
6432 /* Override any gcc2 internal prototype to avoid an error. */
6433 /* We use char because int might match the return type of a gcc2
6434 builtin and then its argument prototype would still apply. */
6435 char strcasecmp();
6437 int main() {
6438 strcasecmp()
6439 ; return 0; }
6441 if { (eval echo configure:6442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6442 rm -rf conftest*
6443 eval "ac_cv_lib_$ac_lib_var=yes"
6444 else
6445 echo "configure: failed program was:" >&5
6446 cat conftest.$ac_ext >&5
6447 rm -rf conftest*
6448 eval "ac_cv_lib_$ac_lib_var=no"
6450 rm -f conftest*
6451 LIBS="$ac_save_LIBS"
6454 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6455 echo "$ac_t""yes" 1>&6
6456 LIBS="$LIBS -lresolv"
6457 cat >> confdefs.h <<\EOF
6458 #define HAVE_STRCASECMP 1
6461 else
6462 echo "$ac_t""no" 1>&6
6468 # Check for the functions putprpwnam, set_auth_parameters,
6469 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
6470 # Needed for OSF1 and HPUX.
6473 case "$LIBS" in
6474 *-lsecurity*) for ac_func in putprpwnam
6476 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6477 echo "configure:6478: checking for $ac_func" >&5
6478 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6479 echo $ac_n "(cached) $ac_c" 1>&6
6480 else
6481 cat > conftest.$ac_ext <<EOF
6482 #line 6483 "configure"
6483 #include "confdefs.h"
6484 /* System header to define __stub macros and hopefully few prototypes,
6485 which can conflict with char $ac_func(); below. */
6486 #include <assert.h>
6487 /* Override any gcc2 internal prototype to avoid an error. */
6488 /* We use char because int might match the return type of a gcc2
6489 builtin and then its argument prototype would still apply. */
6490 char $ac_func();
6492 int main() {
6494 /* The GNU C library defines this for functions which it implements
6495 to always fail with ENOSYS. Some functions are actually named
6496 something starting with __ and the normal name is an alias. */
6497 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6498 choke me
6499 #else
6500 $ac_func();
6501 #endif
6503 ; return 0; }
6505 if { (eval echo configure:6506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6506 rm -rf conftest*
6507 eval "ac_cv_func_$ac_func=yes"
6508 else
6509 echo "configure: failed program was:" >&5
6510 cat conftest.$ac_ext >&5
6511 rm -rf conftest*
6512 eval "ac_cv_func_$ac_func=no"
6514 rm -f conftest*
6517 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6518 echo "$ac_t""yes" 1>&6
6519 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6520 cat >> confdefs.h <<EOF
6521 #define $ac_tr_func 1
6524 else
6525 echo "$ac_t""no" 1>&6
6527 done
6529 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
6530 echo "configure:6531: checking for putprpwnam in -lsecurity" >&5
6531 ac_lib_var=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
6532 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6533 echo $ac_n "(cached) $ac_c" 1>&6
6534 else
6535 ac_save_LIBS="$LIBS"
6536 LIBS="-lsecurity $LIBS"
6537 cat > conftest.$ac_ext <<EOF
6538 #line 6539 "configure"
6539 #include "confdefs.h"
6540 /* Override any gcc2 internal prototype to avoid an error. */
6541 /* We use char because int might match the return type of a gcc2
6542 builtin and then its argument prototype would still apply. */
6543 char putprpwnam();
6545 int main() {
6546 putprpwnam()
6547 ; return 0; }
6549 if { (eval echo configure:6550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6550 rm -rf conftest*
6551 eval "ac_cv_lib_$ac_lib_var=yes"
6552 else
6553 echo "configure: failed program was:" >&5
6554 cat conftest.$ac_ext >&5
6555 rm -rf conftest*
6556 eval "ac_cv_lib_$ac_lib_var=no"
6558 rm -f conftest*
6559 LIBS="$ac_save_LIBS"
6562 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6563 echo "$ac_t""yes" 1>&6
6564 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6565 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6566 cat >> confdefs.h <<EOF
6567 #define $ac_tr_lib 1
6570 LIBS="-lsecurity $LIBS"
6572 else
6573 echo "$ac_t""no" 1>&6
6576 for ac_func in putprpwnam
6578 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6579 echo "configure:6580: checking for $ac_func" >&5
6580 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6581 echo $ac_n "(cached) $ac_c" 1>&6
6582 else
6583 cat > conftest.$ac_ext <<EOF
6584 #line 6585 "configure"
6585 #include "confdefs.h"
6586 /* System header to define __stub macros and hopefully few prototypes,
6587 which can conflict with char $ac_func(); below. */
6588 #include <assert.h>
6589 /* Override any gcc2 internal prototype to avoid an error. */
6590 /* We use char because int might match the return type of a gcc2
6591 builtin and then its argument prototype would still apply. */
6592 char $ac_func();
6594 int main() {
6596 /* The GNU C library defines this for functions which it implements
6597 to always fail with ENOSYS. Some functions are actually named
6598 something starting with __ and the normal name is an alias. */
6599 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6600 choke me
6601 #else
6602 $ac_func();
6603 #endif
6605 ; return 0; }
6607 if { (eval echo configure:6608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6608 rm -rf conftest*
6609 eval "ac_cv_func_$ac_func=yes"
6610 else
6611 echo "configure: failed program was:" >&5
6612 cat conftest.$ac_ext >&5
6613 rm -rf conftest*
6614 eval "ac_cv_func_$ac_func=no"
6616 rm -f conftest*
6619 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6620 echo "$ac_t""yes" 1>&6
6621 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6622 cat >> confdefs.h <<EOF
6623 #define $ac_tr_func 1
6626 else
6627 echo "$ac_t""no" 1>&6
6629 done
6632 esac
6634 case "$LIBS" in
6635 *-lsec*) for ac_func in putprpwnam
6637 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6638 echo "configure:6639: checking for $ac_func" >&5
6639 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6640 echo $ac_n "(cached) $ac_c" 1>&6
6641 else
6642 cat > conftest.$ac_ext <<EOF
6643 #line 6644 "configure"
6644 #include "confdefs.h"
6645 /* System header to define __stub macros and hopefully few prototypes,
6646 which can conflict with char $ac_func(); below. */
6647 #include <assert.h>
6648 /* Override any gcc2 internal prototype to avoid an error. */
6649 /* We use char because int might match the return type of a gcc2
6650 builtin and then its argument prototype would still apply. */
6651 char $ac_func();
6653 int main() {
6655 /* The GNU C library defines this for functions which it implements
6656 to always fail with ENOSYS. Some functions are actually named
6657 something starting with __ and the normal name is an alias. */
6658 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6659 choke me
6660 #else
6661 $ac_func();
6662 #endif
6664 ; return 0; }
6666 if { (eval echo configure:6667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6667 rm -rf conftest*
6668 eval "ac_cv_func_$ac_func=yes"
6669 else
6670 echo "configure: failed program was:" >&5
6671 cat conftest.$ac_ext >&5
6672 rm -rf conftest*
6673 eval "ac_cv_func_$ac_func=no"
6675 rm -f conftest*
6678 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6679 echo "$ac_t""yes" 1>&6
6680 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6681 cat >> confdefs.h <<EOF
6682 #define $ac_tr_func 1
6685 else
6686 echo "$ac_t""no" 1>&6
6688 done
6690 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
6691 echo "configure:6692: checking for putprpwnam in -lsec" >&5
6692 ac_lib_var=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
6693 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6694 echo $ac_n "(cached) $ac_c" 1>&6
6695 else
6696 ac_save_LIBS="$LIBS"
6697 LIBS="-lsec $LIBS"
6698 cat > conftest.$ac_ext <<EOF
6699 #line 6700 "configure"
6700 #include "confdefs.h"
6701 /* Override any gcc2 internal prototype to avoid an error. */
6702 /* We use char because int might match the return type of a gcc2
6703 builtin and then its argument prototype would still apply. */
6704 char putprpwnam();
6706 int main() {
6707 putprpwnam()
6708 ; return 0; }
6710 if { (eval echo configure:6711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6711 rm -rf conftest*
6712 eval "ac_cv_lib_$ac_lib_var=yes"
6713 else
6714 echo "configure: failed program was:" >&5
6715 cat conftest.$ac_ext >&5
6716 rm -rf conftest*
6717 eval "ac_cv_lib_$ac_lib_var=no"
6719 rm -f conftest*
6720 LIBS="$ac_save_LIBS"
6723 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6724 echo "$ac_t""yes" 1>&6
6725 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6726 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6727 cat >> confdefs.h <<EOF
6728 #define $ac_tr_lib 1
6731 LIBS="-lsec $LIBS"
6733 else
6734 echo "$ac_t""no" 1>&6
6737 for ac_func in putprpwnam
6739 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6740 echo "configure:6741: checking for $ac_func" >&5
6741 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6742 echo $ac_n "(cached) $ac_c" 1>&6
6743 else
6744 cat > conftest.$ac_ext <<EOF
6745 #line 6746 "configure"
6746 #include "confdefs.h"
6747 /* System header to define __stub macros and hopefully few prototypes,
6748 which can conflict with char $ac_func(); below. */
6749 #include <assert.h>
6750 /* Override any gcc2 internal prototype to avoid an error. */
6751 /* We use char because int might match the return type of a gcc2
6752 builtin and then its argument prototype would still apply. */
6753 char $ac_func();
6755 int main() {
6757 /* The GNU C library defines this for functions which it implements
6758 to always fail with ENOSYS. Some functions are actually named
6759 something starting with __ and the normal name is an alias. */
6760 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6761 choke me
6762 #else
6763 $ac_func();
6764 #endif
6766 ; return 0; }
6768 if { (eval echo configure:6769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6769 rm -rf conftest*
6770 eval "ac_cv_func_$ac_func=yes"
6771 else
6772 echo "configure: failed program was:" >&5
6773 cat conftest.$ac_ext >&5
6774 rm -rf conftest*
6775 eval "ac_cv_func_$ac_func=no"
6777 rm -f conftest*
6780 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6781 echo "$ac_t""yes" 1>&6
6782 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6783 cat >> confdefs.h <<EOF
6784 #define $ac_tr_func 1
6787 else
6788 echo "$ac_t""no" 1>&6
6790 done
6793 esac
6796 case "$LIBS" in
6797 *-lsecurity*) for ac_func in set_auth_parameters
6799 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6800 echo "configure:6801: checking for $ac_func" >&5
6801 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6802 echo $ac_n "(cached) $ac_c" 1>&6
6803 else
6804 cat > conftest.$ac_ext <<EOF
6805 #line 6806 "configure"
6806 #include "confdefs.h"
6807 /* System header to define __stub macros and hopefully few prototypes,
6808 which can conflict with char $ac_func(); below. */
6809 #include <assert.h>
6810 /* Override any gcc2 internal prototype to avoid an error. */
6811 /* We use char because int might match the return type of a gcc2
6812 builtin and then its argument prototype would still apply. */
6813 char $ac_func();
6815 int main() {
6817 /* The GNU C library defines this for functions which it implements
6818 to always fail with ENOSYS. Some functions are actually named
6819 something starting with __ and the normal name is an alias. */
6820 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6821 choke me
6822 #else
6823 $ac_func();
6824 #endif
6826 ; return 0; }
6828 if { (eval echo configure:6829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6829 rm -rf conftest*
6830 eval "ac_cv_func_$ac_func=yes"
6831 else
6832 echo "configure: failed program was:" >&5
6833 cat conftest.$ac_ext >&5
6834 rm -rf conftest*
6835 eval "ac_cv_func_$ac_func=no"
6837 rm -f conftest*
6840 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6841 echo "$ac_t""yes" 1>&6
6842 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6843 cat >> confdefs.h <<EOF
6844 #define $ac_tr_func 1
6847 else
6848 echo "$ac_t""no" 1>&6
6850 done
6852 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
6853 echo "configure:6854: checking for set_auth_parameters in -lsecurity" >&5
6854 ac_lib_var=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
6855 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6856 echo $ac_n "(cached) $ac_c" 1>&6
6857 else
6858 ac_save_LIBS="$LIBS"
6859 LIBS="-lsecurity $LIBS"
6860 cat > conftest.$ac_ext <<EOF
6861 #line 6862 "configure"
6862 #include "confdefs.h"
6863 /* Override any gcc2 internal prototype to avoid an error. */
6864 /* We use char because int might match the return type of a gcc2
6865 builtin and then its argument prototype would still apply. */
6866 char set_auth_parameters();
6868 int main() {
6869 set_auth_parameters()
6870 ; return 0; }
6872 if { (eval echo configure:6873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6873 rm -rf conftest*
6874 eval "ac_cv_lib_$ac_lib_var=yes"
6875 else
6876 echo "configure: failed program was:" >&5
6877 cat conftest.$ac_ext >&5
6878 rm -rf conftest*
6879 eval "ac_cv_lib_$ac_lib_var=no"
6881 rm -f conftest*
6882 LIBS="$ac_save_LIBS"
6885 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6886 echo "$ac_t""yes" 1>&6
6887 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6888 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6889 cat >> confdefs.h <<EOF
6890 #define $ac_tr_lib 1
6893 LIBS="-lsecurity $LIBS"
6895 else
6896 echo "$ac_t""no" 1>&6
6899 for ac_func in set_auth_parameters
6901 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6902 echo "configure:6903: checking for $ac_func" >&5
6903 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6904 echo $ac_n "(cached) $ac_c" 1>&6
6905 else
6906 cat > conftest.$ac_ext <<EOF
6907 #line 6908 "configure"
6908 #include "confdefs.h"
6909 /* System header to define __stub macros and hopefully few prototypes,
6910 which can conflict with char $ac_func(); below. */
6911 #include <assert.h>
6912 /* Override any gcc2 internal prototype to avoid an error. */
6913 /* We use char because int might match the return type of a gcc2
6914 builtin and then its argument prototype would still apply. */
6915 char $ac_func();
6917 int main() {
6919 /* The GNU C library defines this for functions which it implements
6920 to always fail with ENOSYS. Some functions are actually named
6921 something starting with __ and the normal name is an alias. */
6922 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6923 choke me
6924 #else
6925 $ac_func();
6926 #endif
6928 ; return 0; }
6930 if { (eval echo configure:6931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6931 rm -rf conftest*
6932 eval "ac_cv_func_$ac_func=yes"
6933 else
6934 echo "configure: failed program was:" >&5
6935 cat conftest.$ac_ext >&5
6936 rm -rf conftest*
6937 eval "ac_cv_func_$ac_func=no"
6939 rm -f conftest*
6942 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6943 echo "$ac_t""yes" 1>&6
6944 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6945 cat >> confdefs.h <<EOF
6946 #define $ac_tr_func 1
6949 else
6950 echo "$ac_t""no" 1>&6
6952 done
6955 esac
6957 case "$LIBS" in
6958 *-lsec*) for ac_func in set_auth_parameters
6960 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6961 echo "configure:6962: checking for $ac_func" >&5
6962 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6963 echo $ac_n "(cached) $ac_c" 1>&6
6964 else
6965 cat > conftest.$ac_ext <<EOF
6966 #line 6967 "configure"
6967 #include "confdefs.h"
6968 /* System header to define __stub macros and hopefully few prototypes,
6969 which can conflict with char $ac_func(); below. */
6970 #include <assert.h>
6971 /* Override any gcc2 internal prototype to avoid an error. */
6972 /* We use char because int might match the return type of a gcc2
6973 builtin and then its argument prototype would still apply. */
6974 char $ac_func();
6976 int main() {
6978 /* The GNU C library defines this for functions which it implements
6979 to always fail with ENOSYS. Some functions are actually named
6980 something starting with __ and the normal name is an alias. */
6981 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6982 choke me
6983 #else
6984 $ac_func();
6985 #endif
6987 ; return 0; }
6989 if { (eval echo configure:6990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6990 rm -rf conftest*
6991 eval "ac_cv_func_$ac_func=yes"
6992 else
6993 echo "configure: failed program was:" >&5
6994 cat conftest.$ac_ext >&5
6995 rm -rf conftest*
6996 eval "ac_cv_func_$ac_func=no"
6998 rm -f conftest*
7001 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7002 echo "$ac_t""yes" 1>&6
7003 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7004 cat >> confdefs.h <<EOF
7005 #define $ac_tr_func 1
7008 else
7009 echo "$ac_t""no" 1>&6
7011 done
7013 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
7014 echo "configure:7015: checking for set_auth_parameters in -lsec" >&5
7015 ac_lib_var=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7016 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7017 echo $ac_n "(cached) $ac_c" 1>&6
7018 else
7019 ac_save_LIBS="$LIBS"
7020 LIBS="-lsec $LIBS"
7021 cat > conftest.$ac_ext <<EOF
7022 #line 7023 "configure"
7023 #include "confdefs.h"
7024 /* Override any gcc2 internal prototype to avoid an error. */
7025 /* We use char because int might match the return type of a gcc2
7026 builtin and then its argument prototype would still apply. */
7027 char set_auth_parameters();
7029 int main() {
7030 set_auth_parameters()
7031 ; return 0; }
7033 if { (eval echo configure:7034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7034 rm -rf conftest*
7035 eval "ac_cv_lib_$ac_lib_var=yes"
7036 else
7037 echo "configure: failed program was:" >&5
7038 cat conftest.$ac_ext >&5
7039 rm -rf conftest*
7040 eval "ac_cv_lib_$ac_lib_var=no"
7042 rm -f conftest*
7043 LIBS="$ac_save_LIBS"
7046 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7047 echo "$ac_t""yes" 1>&6
7048 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7049 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7050 cat >> confdefs.h <<EOF
7051 #define $ac_tr_lib 1
7054 LIBS="-lsec $LIBS"
7056 else
7057 echo "$ac_t""no" 1>&6
7060 for ac_func in set_auth_parameters
7062 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7063 echo "configure:7064: checking for $ac_func" >&5
7064 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7065 echo $ac_n "(cached) $ac_c" 1>&6
7066 else
7067 cat > conftest.$ac_ext <<EOF
7068 #line 7069 "configure"
7069 #include "confdefs.h"
7070 /* System header to define __stub macros and hopefully few prototypes,
7071 which can conflict with char $ac_func(); below. */
7072 #include <assert.h>
7073 /* Override any gcc2 internal prototype to avoid an error. */
7074 /* We use char because int might match the return type of a gcc2
7075 builtin and then its argument prototype would still apply. */
7076 char $ac_func();
7078 int main() {
7080 /* The GNU C library defines this for functions which it implements
7081 to always fail with ENOSYS. Some functions are actually named
7082 something starting with __ and the normal name is an alias. */
7083 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7084 choke me
7085 #else
7086 $ac_func();
7087 #endif
7089 ; return 0; }
7091 if { (eval echo configure:7092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7092 rm -rf conftest*
7093 eval "ac_cv_func_$ac_func=yes"
7094 else
7095 echo "configure: failed program was:" >&5
7096 cat conftest.$ac_ext >&5
7097 rm -rf conftest*
7098 eval "ac_cv_func_$ac_func=no"
7100 rm -f conftest*
7103 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7104 echo "$ac_t""yes" 1>&6
7105 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7106 cat >> confdefs.h <<EOF
7107 #define $ac_tr_func 1
7110 else
7111 echo "$ac_t""no" 1>&6
7113 done
7116 esac
7119 # UnixWare 7.x has its getspnam in -lgen
7120 case "$LIBS" in
7121 *-lgen*) for ac_func in getspnam
7123 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7124 echo "configure:7125: checking for $ac_func" >&5
7125 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7126 echo $ac_n "(cached) $ac_c" 1>&6
7127 else
7128 cat > conftest.$ac_ext <<EOF
7129 #line 7130 "configure"
7130 #include "confdefs.h"
7131 /* System header to define __stub macros and hopefully few prototypes,
7132 which can conflict with char $ac_func(); below. */
7133 #include <assert.h>
7134 /* Override any gcc2 internal prototype to avoid an error. */
7135 /* We use char because int might match the return type of a gcc2
7136 builtin and then its argument prototype would still apply. */
7137 char $ac_func();
7139 int main() {
7141 /* The GNU C library defines this for functions which it implements
7142 to always fail with ENOSYS. Some functions are actually named
7143 something starting with __ and the normal name is an alias. */
7144 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7145 choke me
7146 #else
7147 $ac_func();
7148 #endif
7150 ; return 0; }
7152 if { (eval echo configure:7153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7153 rm -rf conftest*
7154 eval "ac_cv_func_$ac_func=yes"
7155 else
7156 echo "configure: failed program was:" >&5
7157 cat conftest.$ac_ext >&5
7158 rm -rf conftest*
7159 eval "ac_cv_func_$ac_func=no"
7161 rm -f conftest*
7164 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7165 echo "$ac_t""yes" 1>&6
7166 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7167 cat >> confdefs.h <<EOF
7168 #define $ac_tr_func 1
7171 else
7172 echo "$ac_t""no" 1>&6
7174 done
7176 *) echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
7177 echo "configure:7178: checking for getspnam in -lgen" >&5
7178 ac_lib_var=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
7179 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7180 echo $ac_n "(cached) $ac_c" 1>&6
7181 else
7182 ac_save_LIBS="$LIBS"
7183 LIBS="-lgen $LIBS"
7184 cat > conftest.$ac_ext <<EOF
7185 #line 7186 "configure"
7186 #include "confdefs.h"
7187 /* Override any gcc2 internal prototype to avoid an error. */
7188 /* We use char because int might match the return type of a gcc2
7189 builtin and then its argument prototype would still apply. */
7190 char getspnam();
7192 int main() {
7193 getspnam()
7194 ; return 0; }
7196 if { (eval echo configure:7197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7197 rm -rf conftest*
7198 eval "ac_cv_lib_$ac_lib_var=yes"
7199 else
7200 echo "configure: failed program was:" >&5
7201 cat conftest.$ac_ext >&5
7202 rm -rf conftest*
7203 eval "ac_cv_lib_$ac_lib_var=no"
7205 rm -f conftest*
7206 LIBS="$ac_save_LIBS"
7209 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7210 echo "$ac_t""yes" 1>&6
7211 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7212 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7213 cat >> confdefs.h <<EOF
7214 #define $ac_tr_lib 1
7217 LIBS="-lgen $LIBS"
7219 else
7220 echo "$ac_t""no" 1>&6
7223 for ac_func in getspnam
7225 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7226 echo "configure:7227: checking for $ac_func" >&5
7227 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7228 echo $ac_n "(cached) $ac_c" 1>&6
7229 else
7230 cat > conftest.$ac_ext <<EOF
7231 #line 7232 "configure"
7232 #include "confdefs.h"
7233 /* System header to define __stub macros and hopefully few prototypes,
7234 which can conflict with char $ac_func(); below. */
7235 #include <assert.h>
7236 /* Override any gcc2 internal prototype to avoid an error. */
7237 /* We use char because int might match the return type of a gcc2
7238 builtin and then its argument prototype would still apply. */
7239 char $ac_func();
7241 int main() {
7243 /* The GNU C library defines this for functions which it implements
7244 to always fail with ENOSYS. Some functions are actually named
7245 something starting with __ and the normal name is an alias. */
7246 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7247 choke me
7248 #else
7249 $ac_func();
7250 #endif
7252 ; return 0; }
7254 if { (eval echo configure:7255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7255 rm -rf conftest*
7256 eval "ac_cv_func_$ac_func=yes"
7257 else
7258 echo "configure: failed program was:" >&5
7259 cat conftest.$ac_ext >&5
7260 rm -rf conftest*
7261 eval "ac_cv_func_$ac_func=no"
7263 rm -f conftest*
7266 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7267 echo "$ac_t""yes" 1>&6
7268 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7269 cat >> confdefs.h <<EOF
7270 #define $ac_tr_func 1
7273 else
7274 echo "$ac_t""no" 1>&6
7276 done
7279 esac
7282 case "$LIBS" in
7283 *-lsecurity*) for ac_func in getspnam
7285 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7286 echo "configure:7287: checking for $ac_func" >&5
7287 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7288 echo $ac_n "(cached) $ac_c" 1>&6
7289 else
7290 cat > conftest.$ac_ext <<EOF
7291 #line 7292 "configure"
7292 #include "confdefs.h"
7293 /* System header to define __stub macros and hopefully few prototypes,
7294 which can conflict with char $ac_func(); below. */
7295 #include <assert.h>
7296 /* Override any gcc2 internal prototype to avoid an error. */
7297 /* We use char because int might match the return type of a gcc2
7298 builtin and then its argument prototype would still apply. */
7299 char $ac_func();
7301 int main() {
7303 /* The GNU C library defines this for functions which it implements
7304 to always fail with ENOSYS. Some functions are actually named
7305 something starting with __ and the normal name is an alias. */
7306 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7307 choke me
7308 #else
7309 $ac_func();
7310 #endif
7312 ; return 0; }
7314 if { (eval echo configure:7315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7315 rm -rf conftest*
7316 eval "ac_cv_func_$ac_func=yes"
7317 else
7318 echo "configure: failed program was:" >&5
7319 cat conftest.$ac_ext >&5
7320 rm -rf conftest*
7321 eval "ac_cv_func_$ac_func=no"
7323 rm -f conftest*
7326 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7327 echo "$ac_t""yes" 1>&6
7328 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7329 cat >> confdefs.h <<EOF
7330 #define $ac_tr_func 1
7333 else
7334 echo "$ac_t""no" 1>&6
7336 done
7338 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
7339 echo "configure:7340: checking for getspnam in -lsecurity" >&5
7340 ac_lib_var=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
7341 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7342 echo $ac_n "(cached) $ac_c" 1>&6
7343 else
7344 ac_save_LIBS="$LIBS"
7345 LIBS="-lsecurity $LIBS"
7346 cat > conftest.$ac_ext <<EOF
7347 #line 7348 "configure"
7348 #include "confdefs.h"
7349 /* Override any gcc2 internal prototype to avoid an error. */
7350 /* We use char because int might match the return type of a gcc2
7351 builtin and then its argument prototype would still apply. */
7352 char getspnam();
7354 int main() {
7355 getspnam()
7356 ; return 0; }
7358 if { (eval echo configure:7359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7359 rm -rf conftest*
7360 eval "ac_cv_lib_$ac_lib_var=yes"
7361 else
7362 echo "configure: failed program was:" >&5
7363 cat conftest.$ac_ext >&5
7364 rm -rf conftest*
7365 eval "ac_cv_lib_$ac_lib_var=no"
7367 rm -f conftest*
7368 LIBS="$ac_save_LIBS"
7371 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7372 echo "$ac_t""yes" 1>&6
7373 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7374 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7375 cat >> confdefs.h <<EOF
7376 #define $ac_tr_lib 1
7379 LIBS="-lsecurity $LIBS"
7381 else
7382 echo "$ac_t""no" 1>&6
7385 for ac_func in getspnam
7387 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7388 echo "configure:7389: checking for $ac_func" >&5
7389 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7390 echo $ac_n "(cached) $ac_c" 1>&6
7391 else
7392 cat > conftest.$ac_ext <<EOF
7393 #line 7394 "configure"
7394 #include "confdefs.h"
7395 /* System header to define __stub macros and hopefully few prototypes,
7396 which can conflict with char $ac_func(); below. */
7397 #include <assert.h>
7398 /* Override any gcc2 internal prototype to avoid an error. */
7399 /* We use char because int might match the return type of a gcc2
7400 builtin and then its argument prototype would still apply. */
7401 char $ac_func();
7403 int main() {
7405 /* The GNU C library defines this for functions which it implements
7406 to always fail with ENOSYS. Some functions are actually named
7407 something starting with __ and the normal name is an alias. */
7408 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7409 choke me
7410 #else
7411 $ac_func();
7412 #endif
7414 ; return 0; }
7416 if { (eval echo configure:7417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7417 rm -rf conftest*
7418 eval "ac_cv_func_$ac_func=yes"
7419 else
7420 echo "configure: failed program was:" >&5
7421 cat conftest.$ac_ext >&5
7422 rm -rf conftest*
7423 eval "ac_cv_func_$ac_func=no"
7425 rm -f conftest*
7428 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7429 echo "$ac_t""yes" 1>&6
7430 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7431 cat >> confdefs.h <<EOF
7432 #define $ac_tr_func 1
7435 else
7436 echo "$ac_t""no" 1>&6
7438 done
7441 esac
7443 case "$LIBS" in
7444 *-lsec*) for ac_func in getspnam
7446 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7447 echo "configure:7448: checking for $ac_func" >&5
7448 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7449 echo $ac_n "(cached) $ac_c" 1>&6
7450 else
7451 cat > conftest.$ac_ext <<EOF
7452 #line 7453 "configure"
7453 #include "confdefs.h"
7454 /* System header to define __stub macros and hopefully few prototypes,
7455 which can conflict with char $ac_func(); below. */
7456 #include <assert.h>
7457 /* Override any gcc2 internal prototype to avoid an error. */
7458 /* We use char because int might match the return type of a gcc2
7459 builtin and then its argument prototype would still apply. */
7460 char $ac_func();
7462 int main() {
7464 /* The GNU C library defines this for functions which it implements
7465 to always fail with ENOSYS. Some functions are actually named
7466 something starting with __ and the normal name is an alias. */
7467 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7468 choke me
7469 #else
7470 $ac_func();
7471 #endif
7473 ; return 0; }
7475 if { (eval echo configure:7476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7476 rm -rf conftest*
7477 eval "ac_cv_func_$ac_func=yes"
7478 else
7479 echo "configure: failed program was:" >&5
7480 cat conftest.$ac_ext >&5
7481 rm -rf conftest*
7482 eval "ac_cv_func_$ac_func=no"
7484 rm -f conftest*
7487 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7488 echo "$ac_t""yes" 1>&6
7489 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7490 cat >> confdefs.h <<EOF
7491 #define $ac_tr_func 1
7494 else
7495 echo "$ac_t""no" 1>&6
7497 done
7499 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
7500 echo "configure:7501: checking for getspnam in -lsec" >&5
7501 ac_lib_var=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
7502 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7503 echo $ac_n "(cached) $ac_c" 1>&6
7504 else
7505 ac_save_LIBS="$LIBS"
7506 LIBS="-lsec $LIBS"
7507 cat > conftest.$ac_ext <<EOF
7508 #line 7509 "configure"
7509 #include "confdefs.h"
7510 /* Override any gcc2 internal prototype to avoid an error. */
7511 /* We use char because int might match the return type of a gcc2
7512 builtin and then its argument prototype would still apply. */
7513 char getspnam();
7515 int main() {
7516 getspnam()
7517 ; return 0; }
7519 if { (eval echo configure:7520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7520 rm -rf conftest*
7521 eval "ac_cv_lib_$ac_lib_var=yes"
7522 else
7523 echo "configure: failed program was:" >&5
7524 cat conftest.$ac_ext >&5
7525 rm -rf conftest*
7526 eval "ac_cv_lib_$ac_lib_var=no"
7528 rm -f conftest*
7529 LIBS="$ac_save_LIBS"
7532 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7533 echo "$ac_t""yes" 1>&6
7534 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7535 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7536 cat >> confdefs.h <<EOF
7537 #define $ac_tr_lib 1
7540 LIBS="-lsec $LIBS"
7542 else
7543 echo "$ac_t""no" 1>&6
7546 for ac_func in getspnam
7548 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7549 echo "configure:7550: checking for $ac_func" >&5
7550 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7551 echo $ac_n "(cached) $ac_c" 1>&6
7552 else
7553 cat > conftest.$ac_ext <<EOF
7554 #line 7555 "configure"
7555 #include "confdefs.h"
7556 /* System header to define __stub macros and hopefully few prototypes,
7557 which can conflict with char $ac_func(); below. */
7558 #include <assert.h>
7559 /* Override any gcc2 internal prototype to avoid an error. */
7560 /* We use char because int might match the return type of a gcc2
7561 builtin and then its argument prototype would still apply. */
7562 char $ac_func();
7564 int main() {
7566 /* The GNU C library defines this for functions which it implements
7567 to always fail with ENOSYS. Some functions are actually named
7568 something starting with __ and the normal name is an alias. */
7569 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7570 choke me
7571 #else
7572 $ac_func();
7573 #endif
7575 ; return 0; }
7577 if { (eval echo configure:7578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7578 rm -rf conftest*
7579 eval "ac_cv_func_$ac_func=yes"
7580 else
7581 echo "configure: failed program was:" >&5
7582 cat conftest.$ac_ext >&5
7583 rm -rf conftest*
7584 eval "ac_cv_func_$ac_func=no"
7586 rm -f conftest*
7589 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7590 echo "$ac_t""yes" 1>&6
7591 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7592 cat >> confdefs.h <<EOF
7593 #define $ac_tr_func 1
7596 else
7597 echo "$ac_t""no" 1>&6
7599 done
7602 esac
7605 case "$LIBS" in
7606 *-lsecurity*) for ac_func in bigcrypt
7608 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7609 echo "configure:7610: checking for $ac_func" >&5
7610 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7611 echo $ac_n "(cached) $ac_c" 1>&6
7612 else
7613 cat > conftest.$ac_ext <<EOF
7614 #line 7615 "configure"
7615 #include "confdefs.h"
7616 /* System header to define __stub macros and hopefully few prototypes,
7617 which can conflict with char $ac_func(); below. */
7618 #include <assert.h>
7619 /* Override any gcc2 internal prototype to avoid an error. */
7620 /* We use char because int might match the return type of a gcc2
7621 builtin and then its argument prototype would still apply. */
7622 char $ac_func();
7624 int main() {
7626 /* The GNU C library defines this for functions which it implements
7627 to always fail with ENOSYS. Some functions are actually named
7628 something starting with __ and the normal name is an alias. */
7629 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7630 choke me
7631 #else
7632 $ac_func();
7633 #endif
7635 ; return 0; }
7637 if { (eval echo configure:7638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7638 rm -rf conftest*
7639 eval "ac_cv_func_$ac_func=yes"
7640 else
7641 echo "configure: failed program was:" >&5
7642 cat conftest.$ac_ext >&5
7643 rm -rf conftest*
7644 eval "ac_cv_func_$ac_func=no"
7646 rm -f conftest*
7649 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7650 echo "$ac_t""yes" 1>&6
7651 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7652 cat >> confdefs.h <<EOF
7653 #define $ac_tr_func 1
7656 else
7657 echo "$ac_t""no" 1>&6
7659 done
7661 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
7662 echo "configure:7663: checking for bigcrypt in -lsecurity" >&5
7663 ac_lib_var=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
7664 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7665 echo $ac_n "(cached) $ac_c" 1>&6
7666 else
7667 ac_save_LIBS="$LIBS"
7668 LIBS="-lsecurity $LIBS"
7669 cat > conftest.$ac_ext <<EOF
7670 #line 7671 "configure"
7671 #include "confdefs.h"
7672 /* Override any gcc2 internal prototype to avoid an error. */
7673 /* We use char because int might match the return type of a gcc2
7674 builtin and then its argument prototype would still apply. */
7675 char bigcrypt();
7677 int main() {
7678 bigcrypt()
7679 ; return 0; }
7681 if { (eval echo configure:7682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7682 rm -rf conftest*
7683 eval "ac_cv_lib_$ac_lib_var=yes"
7684 else
7685 echo "configure: failed program was:" >&5
7686 cat conftest.$ac_ext >&5
7687 rm -rf conftest*
7688 eval "ac_cv_lib_$ac_lib_var=no"
7690 rm -f conftest*
7691 LIBS="$ac_save_LIBS"
7694 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7695 echo "$ac_t""yes" 1>&6
7696 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7697 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7698 cat >> confdefs.h <<EOF
7699 #define $ac_tr_lib 1
7702 LIBS="-lsecurity $LIBS"
7704 else
7705 echo "$ac_t""no" 1>&6
7708 for ac_func in bigcrypt
7710 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7711 echo "configure:7712: checking for $ac_func" >&5
7712 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7713 echo $ac_n "(cached) $ac_c" 1>&6
7714 else
7715 cat > conftest.$ac_ext <<EOF
7716 #line 7717 "configure"
7717 #include "confdefs.h"
7718 /* System header to define __stub macros and hopefully few prototypes,
7719 which can conflict with char $ac_func(); below. */
7720 #include <assert.h>
7721 /* Override any gcc2 internal prototype to avoid an error. */
7722 /* We use char because int might match the return type of a gcc2
7723 builtin and then its argument prototype would still apply. */
7724 char $ac_func();
7726 int main() {
7728 /* The GNU C library defines this for functions which it implements
7729 to always fail with ENOSYS. Some functions are actually named
7730 something starting with __ and the normal name is an alias. */
7731 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7732 choke me
7733 #else
7734 $ac_func();
7735 #endif
7737 ; return 0; }
7739 if { (eval echo configure:7740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7740 rm -rf conftest*
7741 eval "ac_cv_func_$ac_func=yes"
7742 else
7743 echo "configure: failed program was:" >&5
7744 cat conftest.$ac_ext >&5
7745 rm -rf conftest*
7746 eval "ac_cv_func_$ac_func=no"
7748 rm -f conftest*
7751 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7752 echo "$ac_t""yes" 1>&6
7753 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7754 cat >> confdefs.h <<EOF
7755 #define $ac_tr_func 1
7758 else
7759 echo "$ac_t""no" 1>&6
7761 done
7764 esac
7766 case "$LIBS" in
7767 *-lsec*) for ac_func in bigcrypt
7769 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7770 echo "configure:7771: checking for $ac_func" >&5
7771 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7772 echo $ac_n "(cached) $ac_c" 1>&6
7773 else
7774 cat > conftest.$ac_ext <<EOF
7775 #line 7776 "configure"
7776 #include "confdefs.h"
7777 /* System header to define __stub macros and hopefully few prototypes,
7778 which can conflict with char $ac_func(); below. */
7779 #include <assert.h>
7780 /* Override any gcc2 internal prototype to avoid an error. */
7781 /* We use char because int might match the return type of a gcc2
7782 builtin and then its argument prototype would still apply. */
7783 char $ac_func();
7785 int main() {
7787 /* The GNU C library defines this for functions which it implements
7788 to always fail with ENOSYS. Some functions are actually named
7789 something starting with __ and the normal name is an alias. */
7790 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7791 choke me
7792 #else
7793 $ac_func();
7794 #endif
7796 ; return 0; }
7798 if { (eval echo configure:7799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7799 rm -rf conftest*
7800 eval "ac_cv_func_$ac_func=yes"
7801 else
7802 echo "configure: failed program was:" >&5
7803 cat conftest.$ac_ext >&5
7804 rm -rf conftest*
7805 eval "ac_cv_func_$ac_func=no"
7807 rm -f conftest*
7810 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7811 echo "$ac_t""yes" 1>&6
7812 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7813 cat >> confdefs.h <<EOF
7814 #define $ac_tr_func 1
7817 else
7818 echo "$ac_t""no" 1>&6
7820 done
7822 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
7823 echo "configure:7824: checking for bigcrypt in -lsec" >&5
7824 ac_lib_var=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
7825 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7826 echo $ac_n "(cached) $ac_c" 1>&6
7827 else
7828 ac_save_LIBS="$LIBS"
7829 LIBS="-lsec $LIBS"
7830 cat > conftest.$ac_ext <<EOF
7831 #line 7832 "configure"
7832 #include "confdefs.h"
7833 /* Override any gcc2 internal prototype to avoid an error. */
7834 /* We use char because int might match the return type of a gcc2
7835 builtin and then its argument prototype would still apply. */
7836 char bigcrypt();
7838 int main() {
7839 bigcrypt()
7840 ; return 0; }
7842 if { (eval echo configure:7843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7843 rm -rf conftest*
7844 eval "ac_cv_lib_$ac_lib_var=yes"
7845 else
7846 echo "configure: failed program was:" >&5
7847 cat conftest.$ac_ext >&5
7848 rm -rf conftest*
7849 eval "ac_cv_lib_$ac_lib_var=no"
7851 rm -f conftest*
7852 LIBS="$ac_save_LIBS"
7855 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7856 echo "$ac_t""yes" 1>&6
7857 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7858 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7859 cat >> confdefs.h <<EOF
7860 #define $ac_tr_lib 1
7863 LIBS="-lsec $LIBS"
7865 else
7866 echo "$ac_t""no" 1>&6
7869 for ac_func in bigcrypt
7871 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7872 echo "configure:7873: checking for $ac_func" >&5
7873 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7874 echo $ac_n "(cached) $ac_c" 1>&6
7875 else
7876 cat > conftest.$ac_ext <<EOF
7877 #line 7878 "configure"
7878 #include "confdefs.h"
7879 /* System header to define __stub macros and hopefully few prototypes,
7880 which can conflict with char $ac_func(); below. */
7881 #include <assert.h>
7882 /* Override any gcc2 internal prototype to avoid an error. */
7883 /* We use char because int might match the return type of a gcc2
7884 builtin and then its argument prototype would still apply. */
7885 char $ac_func();
7887 int main() {
7889 /* The GNU C library defines this for functions which it implements
7890 to always fail with ENOSYS. Some functions are actually named
7891 something starting with __ and the normal name is an alias. */
7892 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7893 choke me
7894 #else
7895 $ac_func();
7896 #endif
7898 ; return 0; }
7900 if { (eval echo configure:7901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7901 rm -rf conftest*
7902 eval "ac_cv_func_$ac_func=yes"
7903 else
7904 echo "configure: failed program was:" >&5
7905 cat conftest.$ac_ext >&5
7906 rm -rf conftest*
7907 eval "ac_cv_func_$ac_func=no"
7909 rm -f conftest*
7912 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7913 echo "$ac_t""yes" 1>&6
7914 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7915 cat >> confdefs.h <<EOF
7916 #define $ac_tr_func 1
7919 else
7920 echo "$ac_t""no" 1>&6
7922 done
7925 esac
7928 case "$LIBS" in
7929 *-lsecurity*) for ac_func in getprpwnam
7931 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7932 echo "configure:7933: checking for $ac_func" >&5
7933 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7934 echo $ac_n "(cached) $ac_c" 1>&6
7935 else
7936 cat > conftest.$ac_ext <<EOF
7937 #line 7938 "configure"
7938 #include "confdefs.h"
7939 /* System header to define __stub macros and hopefully few prototypes,
7940 which can conflict with char $ac_func(); below. */
7941 #include <assert.h>
7942 /* Override any gcc2 internal prototype to avoid an error. */
7943 /* We use char because int might match the return type of a gcc2
7944 builtin and then its argument prototype would still apply. */
7945 char $ac_func();
7947 int main() {
7949 /* The GNU C library defines this for functions which it implements
7950 to always fail with ENOSYS. Some functions are actually named
7951 something starting with __ and the normal name is an alias. */
7952 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7953 choke me
7954 #else
7955 $ac_func();
7956 #endif
7958 ; return 0; }
7960 if { (eval echo configure:7961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7961 rm -rf conftest*
7962 eval "ac_cv_func_$ac_func=yes"
7963 else
7964 echo "configure: failed program was:" >&5
7965 cat conftest.$ac_ext >&5
7966 rm -rf conftest*
7967 eval "ac_cv_func_$ac_func=no"
7969 rm -f conftest*
7972 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7973 echo "$ac_t""yes" 1>&6
7974 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7975 cat >> confdefs.h <<EOF
7976 #define $ac_tr_func 1
7979 else
7980 echo "$ac_t""no" 1>&6
7982 done
7984 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
7985 echo "configure:7986: checking for getprpwnam in -lsecurity" >&5
7986 ac_lib_var=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
7987 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7988 echo $ac_n "(cached) $ac_c" 1>&6
7989 else
7990 ac_save_LIBS="$LIBS"
7991 LIBS="-lsecurity $LIBS"
7992 cat > conftest.$ac_ext <<EOF
7993 #line 7994 "configure"
7994 #include "confdefs.h"
7995 /* Override any gcc2 internal prototype to avoid an error. */
7996 /* We use char because int might match the return type of a gcc2
7997 builtin and then its argument prototype would still apply. */
7998 char getprpwnam();
8000 int main() {
8001 getprpwnam()
8002 ; return 0; }
8004 if { (eval echo configure:8005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8005 rm -rf conftest*
8006 eval "ac_cv_lib_$ac_lib_var=yes"
8007 else
8008 echo "configure: failed program was:" >&5
8009 cat conftest.$ac_ext >&5
8010 rm -rf conftest*
8011 eval "ac_cv_lib_$ac_lib_var=no"
8013 rm -f conftest*
8014 LIBS="$ac_save_LIBS"
8017 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8018 echo "$ac_t""yes" 1>&6
8019 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8020 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8021 cat >> confdefs.h <<EOF
8022 #define $ac_tr_lib 1
8025 LIBS="-lsecurity $LIBS"
8027 else
8028 echo "$ac_t""no" 1>&6
8031 for ac_func in getprpwnam
8033 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8034 echo "configure:8035: checking for $ac_func" >&5
8035 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8036 echo $ac_n "(cached) $ac_c" 1>&6
8037 else
8038 cat > conftest.$ac_ext <<EOF
8039 #line 8040 "configure"
8040 #include "confdefs.h"
8041 /* System header to define __stub macros and hopefully few prototypes,
8042 which can conflict with char $ac_func(); below. */
8043 #include <assert.h>
8044 /* Override any gcc2 internal prototype to avoid an error. */
8045 /* We use char because int might match the return type of a gcc2
8046 builtin and then its argument prototype would still apply. */
8047 char $ac_func();
8049 int main() {
8051 /* The GNU C library defines this for functions which it implements
8052 to always fail with ENOSYS. Some functions are actually named
8053 something starting with __ and the normal name is an alias. */
8054 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8055 choke me
8056 #else
8057 $ac_func();
8058 #endif
8060 ; return 0; }
8062 if { (eval echo configure:8063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8063 rm -rf conftest*
8064 eval "ac_cv_func_$ac_func=yes"
8065 else
8066 echo "configure: failed program was:" >&5
8067 cat conftest.$ac_ext >&5
8068 rm -rf conftest*
8069 eval "ac_cv_func_$ac_func=no"
8071 rm -f conftest*
8074 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8075 echo "$ac_t""yes" 1>&6
8076 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8077 cat >> confdefs.h <<EOF
8078 #define $ac_tr_func 1
8081 else
8082 echo "$ac_t""no" 1>&6
8084 done
8087 esac
8089 case "$LIBS" in
8090 *-lsec*) for ac_func in getprpwnam
8092 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8093 echo "configure:8094: checking for $ac_func" >&5
8094 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8095 echo $ac_n "(cached) $ac_c" 1>&6
8096 else
8097 cat > conftest.$ac_ext <<EOF
8098 #line 8099 "configure"
8099 #include "confdefs.h"
8100 /* System header to define __stub macros and hopefully few prototypes,
8101 which can conflict with char $ac_func(); below. */
8102 #include <assert.h>
8103 /* Override any gcc2 internal prototype to avoid an error. */
8104 /* We use char because int might match the return type of a gcc2
8105 builtin and then its argument prototype would still apply. */
8106 char $ac_func();
8108 int main() {
8110 /* The GNU C library defines this for functions which it implements
8111 to always fail with ENOSYS. Some functions are actually named
8112 something starting with __ and the normal name is an alias. */
8113 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8114 choke me
8115 #else
8116 $ac_func();
8117 #endif
8119 ; return 0; }
8121 if { (eval echo configure:8122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8122 rm -rf conftest*
8123 eval "ac_cv_func_$ac_func=yes"
8124 else
8125 echo "configure: failed program was:" >&5
8126 cat conftest.$ac_ext >&5
8127 rm -rf conftest*
8128 eval "ac_cv_func_$ac_func=no"
8130 rm -f conftest*
8133 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8134 echo "$ac_t""yes" 1>&6
8135 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8136 cat >> confdefs.h <<EOF
8137 #define $ac_tr_func 1
8140 else
8141 echo "$ac_t""no" 1>&6
8143 done
8145 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
8146 echo "configure:8147: checking for getprpwnam in -lsec" >&5
8147 ac_lib_var=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
8148 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8149 echo $ac_n "(cached) $ac_c" 1>&6
8150 else
8151 ac_save_LIBS="$LIBS"
8152 LIBS="-lsec $LIBS"
8153 cat > conftest.$ac_ext <<EOF
8154 #line 8155 "configure"
8155 #include "confdefs.h"
8156 /* Override any gcc2 internal prototype to avoid an error. */
8157 /* We use char because int might match the return type of a gcc2
8158 builtin and then its argument prototype would still apply. */
8159 char getprpwnam();
8161 int main() {
8162 getprpwnam()
8163 ; return 0; }
8165 if { (eval echo configure:8166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8166 rm -rf conftest*
8167 eval "ac_cv_lib_$ac_lib_var=yes"
8168 else
8169 echo "configure: failed program was:" >&5
8170 cat conftest.$ac_ext >&5
8171 rm -rf conftest*
8172 eval "ac_cv_lib_$ac_lib_var=no"
8174 rm -f conftest*
8175 LIBS="$ac_save_LIBS"
8178 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8179 echo "$ac_t""yes" 1>&6
8180 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8181 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8182 cat >> confdefs.h <<EOF
8183 #define $ac_tr_lib 1
8186 LIBS="-lsec $LIBS"
8188 else
8189 echo "$ac_t""no" 1>&6
8192 for ac_func in getprpwnam
8194 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8195 echo "configure:8196: checking for $ac_func" >&5
8196 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8197 echo $ac_n "(cached) $ac_c" 1>&6
8198 else
8199 cat > conftest.$ac_ext <<EOF
8200 #line 8201 "configure"
8201 #include "confdefs.h"
8202 /* System header to define __stub macros and hopefully few prototypes,
8203 which can conflict with char $ac_func(); below. */
8204 #include <assert.h>
8205 /* Override any gcc2 internal prototype to avoid an error. */
8206 /* We use char because int might match the return type of a gcc2
8207 builtin and then its argument prototype would still apply. */
8208 char $ac_func();
8210 int main() {
8212 /* The GNU C library defines this for functions which it implements
8213 to always fail with ENOSYS. Some functions are actually named
8214 something starting with __ and the normal name is an alias. */
8215 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8216 choke me
8217 #else
8218 $ac_func();
8219 #endif
8221 ; return 0; }
8223 if { (eval echo configure:8224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8224 rm -rf conftest*
8225 eval "ac_cv_func_$ac_func=yes"
8226 else
8227 echo "configure: failed program was:" >&5
8228 cat conftest.$ac_ext >&5
8229 rm -rf conftest*
8230 eval "ac_cv_func_$ac_func=no"
8232 rm -f conftest*
8235 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8236 echo "$ac_t""yes" 1>&6
8237 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8238 cat >> confdefs.h <<EOF
8239 #define $ac_tr_func 1
8242 else
8243 echo "$ac_t""no" 1>&6
8245 done
8248 esac
8251 # this bit needs to be modified for each OS that is suported by
8252 # smbwrapper. You need to specify how to created a shared library and
8253 # how to compile C code to produce PIC object files
8255 # these are the defaults, good for lots of systems
8256 HOST_OS="$host_os"
8257 LDSHFLAGS="-shared"
8258 PICFLAG=""
8259 PICSUFFIX="po.o"
8260 SHLIBEXT="so"
8261 # Assume non-shared by default and override below
8262 BLDSHARED="false"
8264 # and these are for particular systems
8265 case "$host_os" in
8266 *linux*) cat >> confdefs.h <<\EOF
8267 #define LINUX 1
8270 BLDSHARED="true"
8271 LDSHFLAGS="-shared"
8272 PICFLAG="-fPIC"
8274 *solaris*) cat >> confdefs.h <<\EOF
8275 #define SUNOS5 1
8279 *sunos*) cat >> confdefs.h <<\EOF
8280 #define SUNOS4 1
8284 *bsd*) LDSHFLAGS="-shared -Bshareable"
8286 *irix*) cat >> confdefs.h <<\EOF
8287 #define IRIX 1
8290 case "$host_os" in
8291 *irix6*) cat >> confdefs.h <<\EOF
8292 #define IRIX6 1
8296 esac
8297 ATTEMPT_WRAP32_BUILD=yes
8299 *aix*) cat >> confdefs.h <<\EOF
8300 #define AIX 1
8303 # AIX is too ugly for now
8305 *hpux*) cat >> confdefs.h <<\EOF
8306 #define HPUX 1
8309 SHLIBEXT="sl"
8310 # Use special PIC flags for the native HP-UX compiler.
8311 if test $ac_cv_prog_cc_Ae = yes; then
8312 LDSHFLAGS="-b"
8313 PICFLAG="+z"
8316 *qnx*) cat >> confdefs.h <<\EOF
8317 #define QNX 1
8320 *osf*) cat >> confdefs.h <<\EOF
8321 #define OSF1 1
8324 *sco*) cat >> confdefs.h <<\EOF
8325 #define SCO 1
8328 *next2*) cat >> confdefs.h <<\EOF
8329 #define NEXT2 1
8332 *dgux*) # Extract the first word of "groff", so it can be a program name with args.
8333 set dummy groff; ac_word=$2
8334 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8335 echo "configure:8336: checking for $ac_word" >&5
8336 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
8337 echo $ac_n "(cached) $ac_c" 1>&6
8338 else
8339 if test -n "$ROFF"; then
8340 ac_cv_prog_ROFF="$ROFF" # Let the user override the test.
8341 else
8342 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8343 ac_dummy="$PATH"
8344 for ac_dir in $ac_dummy; do
8345 test -z "$ac_dir" && ac_dir=.
8346 if test -f $ac_dir/$ac_word; then
8347 ac_cv_prog_ROFF="groff -etpsR -Tascii -man"
8348 break
8350 done
8351 IFS="$ac_save_ifs"
8354 ROFF="$ac_cv_prog_ROFF"
8355 if test -n "$ROFF"; then
8356 echo "$ac_t""$ROFF" 1>&6
8357 else
8358 echo "$ac_t""no" 1>&6
8361 *sysv4*)
8362 case "$host" in
8363 *-univel-*) if test "$GCC" != yes ; then
8364 cat >> confdefs.h <<\EOF
8365 #define HAVE_MEMSET 1
8369 LDSHFLAGS="-G"
8371 *mips-sni-sysv4*) cat >> confdefs.h <<\EOF
8372 #define RELIANTUNIX 1
8375 esac
8377 *sysv5*)
8378 if test "$GCC" != yes ; then
8379 cat >> confdefs.h <<\EOF
8380 #define HAVE_MEMSET 1
8384 LDSHFLAGS="-G"
8386 esac
8388 # try to work out how to produce pic code with this compiler
8389 echo $ac_n "checking whether ${CC-cc} accepts -fpic""... $ac_c" 1>&6
8390 echo "configure:8391: checking whether ${CC-cc} accepts -fpic" >&5
8391 if eval "test \"`echo '$''{'ac_cv_prog_cc_fpic'+set}'`\" = set"; then
8392 echo $ac_n "(cached) $ac_c" 1>&6
8393 else
8394 echo 'void f(){}' > conftest.c
8395 if test -z "`${CC-cc} -fpic -c conftest.c 2>&1`"; then
8396 ac_cv_prog_cc_fpic=yes
8397 else
8398 ac_cv_prog_cc_fpic=no
8400 rm -f conftest*
8404 echo "$ac_t""$ac_cv_prog_cc_fpic" 1>&6
8405 if test $ac_cv_prog_cc_fpic = yes; then
8406 PICFLAG="-fpic";
8408 if test x$PICFLAG = x; then
8409 echo $ac_n "checking whether ${CC-cc} accepts -KPIC""... $ac_c" 1>&6
8410 echo "configure:8411: checking whether ${CC-cc} accepts -KPIC" >&5
8411 if eval "test \"`echo '$''{'ac_cv_prog_cc_KPIC'+set}'`\" = set"; then
8412 echo $ac_n "(cached) $ac_c" 1>&6
8413 else
8414 echo 'void f(){}' > conftest.c
8415 if test -z "`${CC-cc} -KPIC -c conftest.c 2>&1`"; then
8416 ac_cv_prog_cc_KPIC=yes
8417 else
8418 ac_cv_prog_cc_KPIC=no
8420 rm -f conftest*
8424 echo "$ac_t""$ac_cv_prog_cc_KPIC" 1>&6
8425 if test $ac_cv_prog_cc_KPIC = yes; then
8426 PICFLAG="-KPIC";
8429 if test x$PICFLAG = x; then
8430 echo $ac_n "checking whether ${CC-cc} accepts -Kpic""... $ac_c" 1>&6
8431 echo "configure:8432: checking whether ${CC-cc} accepts -Kpic" >&5
8432 if eval "test \"`echo '$''{'ac_cv_prog_cc_Kpic'+set}'`\" = set"; then
8433 echo $ac_n "(cached) $ac_c" 1>&6
8434 else
8435 echo 'void f(){}' > conftest.c
8436 if test -z "`${CC-cc} -Kpic -c conftest.c 2>&1`"; then
8437 ac_cv_prog_cc_Kpic=yes
8438 else
8439 ac_cv_prog_cc_Kpic=no
8441 rm -f conftest*
8445 echo "$ac_t""$ac_cv_prog_cc_Kpic" 1>&6
8446 if test $ac_cv_prog_cc_Kpic = yes; then
8447 PICFLAG="-Kpic";
8451 ################
8453 echo $ac_n "checking for long long""... $ac_c" 1>&6
8454 echo "configure:8455: checking for long long" >&5
8455 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
8456 echo $ac_n "(cached) $ac_c" 1>&6
8457 else
8459 if test "$cross_compiling" = yes; then
8460 samba_cv_have_longlong=cross
8461 else
8462 cat > conftest.$ac_ext <<EOF
8463 #line 8464 "configure"
8464 #include "confdefs.h"
8465 #include <stdio.h>
8466 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
8468 if { (eval echo configure:8469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8469 then
8470 samba_cv_have_longlong=yes
8471 else
8472 echo "configure: failed program was:" >&5
8473 cat conftest.$ac_ext >&5
8474 rm -fr conftest*
8475 samba_cv_have_longlong=no
8477 rm -fr conftest*
8482 echo "$ac_t""$samba_cv_have_longlong" 1>&6
8483 if test x"$samba_cv_have_longlong" = x"yes"; then
8484 cat >> confdefs.h <<\EOF
8485 #define HAVE_LONGLONG 1
8491 # Check if the compiler supports the LL prefix on long long integers.
8492 # AIX needs this.
8494 echo $ac_n "checking for LL suffix on long long integers""... $ac_c" 1>&6
8495 echo "configure:8496: checking for LL suffix on long long integers" >&5
8496 if eval "test \"`echo '$''{'samba_cv_compiler_supports_ll'+set}'`\" = set"; then
8497 echo $ac_n "(cached) $ac_c" 1>&6
8498 else
8500 cat > conftest.$ac_ext <<EOF
8501 #line 8502 "configure"
8502 #include "confdefs.h"
8503 #include <stdio.h>
8504 int main() {
8505 long long i = 0x8000000000LL
8506 ; return 0; }
8508 if { (eval echo configure:8509: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8509 rm -rf conftest*
8510 samba_cv_compiler_supports_ll=yes
8511 else
8512 echo "configure: failed program was:" >&5
8513 cat conftest.$ac_ext >&5
8514 rm -rf conftest*
8515 samba_cv_compiler_supports_ll=no
8517 rm -f conftest*
8520 echo "$ac_t""$samba_cv_compiler_supports_ll" 1>&6
8521 if test x"$samba_cv_compiler_supports_ll" = x"yes"; then
8522 cat >> confdefs.h <<\EOF
8523 #define COMPILER_SUPPORTS_LL 1
8529 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
8530 echo "configure:8531: checking for 64 bit off_t" >&5
8531 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
8532 echo $ac_n "(cached) $ac_c" 1>&6
8533 else
8535 if test "$cross_compiling" = yes; then
8536 samba_cv_SIZEOF_OFF_T=cross
8537 else
8538 cat > conftest.$ac_ext <<EOF
8539 #line 8540 "configure"
8540 #include "confdefs.h"
8541 #include <stdio.h>
8542 #include <sys/stat.h>
8543 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
8545 if { (eval echo configure:8546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8546 then
8547 samba_cv_SIZEOF_OFF_T=yes
8548 else
8549 echo "configure: failed program was:" >&5
8550 cat conftest.$ac_ext >&5
8551 rm -fr conftest*
8552 samba_cv_SIZEOF_OFF_T=no
8554 rm -fr conftest*
8559 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
8560 if test x"$samba_cv_SIZEOF_OFF_T" = x"yes"; then
8561 cat >> confdefs.h <<\EOF
8562 #define SIZEOF_OFF_T 8
8567 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
8568 echo "configure:8569: checking for off64_t" >&5
8569 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
8570 echo $ac_n "(cached) $ac_c" 1>&6
8571 else
8573 if test "$cross_compiling" = yes; then
8574 samba_cv_HAVE_OFF64_T=cross
8575 else
8576 cat > conftest.$ac_ext <<EOF
8577 #line 8578 "configure"
8578 #include "confdefs.h"
8580 #if defined(HAVE_UNISTD_H)
8581 #include <unistd.h>
8582 #endif
8583 #include <stdio.h>
8584 #include <sys/stat.h>
8585 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8587 if { (eval echo configure:8588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8588 then
8589 samba_cv_HAVE_OFF64_T=yes
8590 else
8591 echo "configure: failed program was:" >&5
8592 cat conftest.$ac_ext >&5
8593 rm -fr conftest*
8594 samba_cv_HAVE_OFF64_T=no
8596 rm -fr conftest*
8601 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
8602 if test x"$samba_cv_HAVE_OFF64_T" = x"yes"; then
8603 cat >> confdefs.h <<\EOF
8604 #define HAVE_OFF64_T 1
8609 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
8610 echo "configure:8611: checking for 64 bit ino_t" >&5
8611 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
8612 echo $ac_n "(cached) $ac_c" 1>&6
8613 else
8615 if test "$cross_compiling" = yes; then
8616 samba_cv_SIZEOF_INO_T=cross
8617 else
8618 cat > conftest.$ac_ext <<EOF
8619 #line 8620 "configure"
8620 #include "confdefs.h"
8621 #include <stdio.h>
8622 #include <sys/stat.h>
8623 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
8625 if { (eval echo configure:8626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8626 then
8627 samba_cv_SIZEOF_INO_T=yes
8628 else
8629 echo "configure: failed program was:" >&5
8630 cat conftest.$ac_ext >&5
8631 rm -fr conftest*
8632 samba_cv_SIZEOF_INO_T=no
8634 rm -fr conftest*
8639 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
8640 if test x"$samba_cv_SIZEOF_INO_T" = x"yes"; then
8641 cat >> confdefs.h <<\EOF
8642 #define SIZEOF_INO_T 8
8647 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
8648 echo "configure:8649: checking for ino64_t" >&5
8649 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
8650 echo $ac_n "(cached) $ac_c" 1>&6
8651 else
8653 if test "$cross_compiling" = yes; then
8654 samba_cv_HAVE_INO64_T=cross
8655 else
8656 cat > conftest.$ac_ext <<EOF
8657 #line 8658 "configure"
8658 #include "confdefs.h"
8660 #if defined(HAVE_UNISTD_H)
8661 #include <unistd.h>
8662 #endif
8663 #include <stdio.h>
8664 #include <sys/stat.h>
8665 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8667 if { (eval echo configure:8668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8668 then
8669 samba_cv_HAVE_INO64_T=yes
8670 else
8671 echo "configure: failed program was:" >&5
8672 cat conftest.$ac_ext >&5
8673 rm -fr conftest*
8674 samba_cv_HAVE_INO64_T=no
8676 rm -fr conftest*
8681 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
8682 if test x"$samba_cv_HAVE_INO64_T" = x"yes"; then
8683 cat >> confdefs.h <<\EOF
8684 #define HAVE_INO64_T 1
8689 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
8690 echo "configure:8691: checking for struct dirent64" >&5
8691 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
8692 echo $ac_n "(cached) $ac_c" 1>&6
8693 else
8695 cat > conftest.$ac_ext <<EOF
8696 #line 8697 "configure"
8697 #include "confdefs.h"
8699 #if defined(HAVE_UNISTD_H)
8700 #include <unistd.h>
8701 #endif
8702 #include <sys/types.h>
8703 #include <dirent.h>
8704 int main() {
8705 struct dirent64 de;
8706 ; return 0; }
8708 if { (eval echo configure:8709: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8709 rm -rf conftest*
8710 samba_cv_HAVE_STRUCT_DIRENT64=yes
8711 else
8712 echo "configure: failed program was:" >&5
8713 cat conftest.$ac_ext >&5
8714 rm -rf conftest*
8715 samba_cv_HAVE_STRUCT_DIRENT64=no
8717 rm -f conftest*
8720 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
8721 if test x"$samba_cv_HAVE_STRUCT_DIRENT64" = x"yes"; then
8722 cat >> confdefs.h <<\EOF
8723 #define HAVE_STRUCT_DIRENT64 1
8728 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
8729 echo "configure:8730: checking for unsigned char" >&5
8730 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
8731 echo $ac_n "(cached) $ac_c" 1>&6
8732 else
8734 if test "$cross_compiling" = yes; then
8735 samba_cv_HAVE_UNSIGNED_CHAR=cross
8736 else
8737 cat > conftest.$ac_ext <<EOF
8738 #line 8739 "configure"
8739 #include "confdefs.h"
8740 #include <stdio.h>
8741 main() { char c; c=250; exit((c > 0)?0:1); }
8743 if { (eval echo configure:8744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8744 then
8745 samba_cv_HAVE_UNSIGNED_CHAR=yes
8746 else
8747 echo "configure: failed program was:" >&5
8748 cat conftest.$ac_ext >&5
8749 rm -fr conftest*
8750 samba_cv_HAVE_UNSIGNED_CHAR=no
8752 rm -fr conftest*
8757 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
8758 if test x"$samba_cv_HAVE_UNSIGNED_CHAR" = x"yes"; then
8759 cat >> confdefs.h <<\EOF
8760 #define HAVE_UNSIGNED_CHAR 1
8765 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
8766 echo "configure:8767: checking for sin_len in sock" >&5
8767 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
8768 echo $ac_n "(cached) $ac_c" 1>&6
8769 else
8771 cat > conftest.$ac_ext <<EOF
8772 #line 8773 "configure"
8773 #include "confdefs.h"
8774 #include <sys/types.h>
8775 #include <sys/socket.h>
8776 #include <netinet/in.h>
8777 int main() {
8778 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
8779 ; return 0; }
8781 if { (eval echo configure:8782: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8782 rm -rf conftest*
8783 samba_cv_HAVE_SOCK_SIN_LEN=yes
8784 else
8785 echo "configure: failed program was:" >&5
8786 cat conftest.$ac_ext >&5
8787 rm -rf conftest*
8788 samba_cv_HAVE_SOCK_SIN_LEN=no
8790 rm -f conftest*
8793 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
8794 if test x"$samba_cv_HAVE_SOCK_SIN_LEN" = x"yes"; then
8795 cat >> confdefs.h <<\EOF
8796 #define HAVE_SOCK_SIN_LEN 1
8801 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
8802 echo "configure:8803: checking whether seekdir returns void" >&5
8803 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
8804 echo $ac_n "(cached) $ac_c" 1>&6
8805 else
8807 cat > conftest.$ac_ext <<EOF
8808 #line 8809 "configure"
8809 #include "confdefs.h"
8810 #include <sys/types.h>
8811 #include <dirent.h>
8812 void seekdir(DIR *d, long loc) { return; }
8813 int main() {
8814 return 0;
8815 ; return 0; }
8817 if { (eval echo configure:8818: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8818 rm -rf conftest*
8819 samba_cv_SEEKDIR_RETURNS_VOID=yes
8820 else
8821 echo "configure: failed program was:" >&5
8822 cat conftest.$ac_ext >&5
8823 rm -rf conftest*
8824 samba_cv_SEEKDIR_RETURNS_VOID=no
8826 rm -f conftest*
8829 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
8830 if test x"$samba_cv_SEEKDIR_RETURNS_VOID" = x"yes"; then
8831 cat >> confdefs.h <<\EOF
8832 #define SEEKDIR_RETURNS_VOID 1
8837 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
8838 echo "configure:8839: checking for __FILE__ macro" >&5
8839 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
8840 echo $ac_n "(cached) $ac_c" 1>&6
8841 else
8843 cat > conftest.$ac_ext <<EOF
8844 #line 8845 "configure"
8845 #include "confdefs.h"
8846 #include <stdio.h>
8847 int main() {
8848 printf("%s\n", __FILE__);
8849 ; return 0; }
8851 if { (eval echo configure:8852: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8852 rm -rf conftest*
8853 samba_cv_HAVE_FILE_MACRO=yes
8854 else
8855 echo "configure: failed program was:" >&5
8856 cat conftest.$ac_ext >&5
8857 rm -rf conftest*
8858 samba_cv_HAVE_FILE_MACRO=no
8860 rm -f conftest*
8863 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
8864 if test x"$samba_cv_HAVE_FILE_MACRO" = x"yes"; then
8865 cat >> confdefs.h <<\EOF
8866 #define HAVE_FILE_MACRO 1
8871 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
8872 echo "configure:8873: checking for __FUNCTION__ macro" >&5
8873 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
8874 echo $ac_n "(cached) $ac_c" 1>&6
8875 else
8877 cat > conftest.$ac_ext <<EOF
8878 #line 8879 "configure"
8879 #include "confdefs.h"
8880 #include <stdio.h>
8881 int main() {
8882 printf("%s\n", __FUNCTION__);
8883 ; return 0; }
8885 if { (eval echo configure:8886: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8886 rm -rf conftest*
8887 samba_cv_HAVE_FUNCTION_MACRO=yes
8888 else
8889 echo "configure: failed program was:" >&5
8890 cat conftest.$ac_ext >&5
8891 rm -rf conftest*
8892 samba_cv_HAVE_FUNCTION_MACRO=no
8894 rm -f conftest*
8897 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
8898 if test x"$samba_cv_HAVE_FUNCTION_MACRO" = x"yes"; then
8899 cat >> confdefs.h <<\EOF
8900 #define HAVE_FUNCTION_MACRO 1
8905 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
8906 echo "configure:8907: checking if gettimeofday takes tz argument" >&5
8907 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
8908 echo $ac_n "(cached) $ac_c" 1>&6
8909 else
8911 if test "$cross_compiling" = yes; then
8912 samba_cv_HAVE_GETTIMEOFDAY_TZ=cross
8913 else
8914 cat > conftest.$ac_ext <<EOF
8915 #line 8916 "configure"
8916 #include "confdefs.h"
8918 #include <sys/time.h>
8919 #include <unistd.h>
8920 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
8922 if { (eval echo configure:8923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8923 then
8924 samba_cv_HAVE_GETTIMEOFDAY_TZ=yes
8925 else
8926 echo "configure: failed program was:" >&5
8927 cat conftest.$ac_ext >&5
8928 rm -fr conftest*
8929 samba_cv_HAVE_GETTIMEOFDAY_TZ=no
8931 rm -fr conftest*
8936 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
8937 if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
8938 cat >> confdefs.h <<\EOF
8939 #define HAVE_GETTIMEOFDAY_TZ 1
8944 echo $ac_n "checking for C99 vsnprintf""... $ac_c" 1>&6
8945 echo "configure:8946: checking for C99 vsnprintf" >&5
8946 if eval "test \"`echo '$''{'samba_cv_HAVE_C99_VSNPRINTF'+set}'`\" = set"; then
8947 echo $ac_n "(cached) $ac_c" 1>&6
8948 else
8950 if test "$cross_compiling" = yes; then
8951 samba_cv_HAVE_C99_VSNPRINTF=cross
8952 else
8953 cat > conftest.$ac_ext <<EOF
8954 #line 8955 "configure"
8955 #include "confdefs.h"
8957 #include <sys/types.h>
8958 #include <stdarg.h>
8959 void foo(const char *format, ...) {
8960 va_list ap;
8961 int len;
8962 char buf[5];
8964 va_start(ap, format);
8965 len = vsnprintf(0, 0, format, ap);
8966 va_end(ap);
8967 if (len != 5) exit(1);
8969 if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
8971 exit(0);
8973 main() { foo("hello"); }
8976 if { (eval echo configure:8977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8977 then
8978 samba_cv_HAVE_C99_VSNPRINTF=yes
8979 else
8980 echo "configure: failed program was:" >&5
8981 cat conftest.$ac_ext >&5
8982 rm -fr conftest*
8983 samba_cv_HAVE_C99_VSNPRINTF=no
8985 rm -fr conftest*
8990 echo "$ac_t""$samba_cv_HAVE_C99_VSNPRINTF" 1>&6
8991 if test x"$samba_cv_HAVE_C99_VSNPRINTF" = x"yes"; then
8992 cat >> confdefs.h <<\EOF
8993 #define HAVE_C99_VSNPRINTF 1
8998 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
8999 echo "configure:9000: checking for broken readdir" >&5
9000 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
9001 echo $ac_n "(cached) $ac_c" 1>&6
9002 else
9004 if test "$cross_compiling" = yes; then
9005 samba_cv_HAVE_BROKEN_READDIR=cross
9006 else
9007 cat > conftest.$ac_ext <<EOF
9008 #line 9009 "configure"
9009 #include "confdefs.h"
9010 #include <sys/types.h>
9011 #include <dirent.h>
9012 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
9013 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
9014 di->d_name[0] == 0) exit(0); exit(1);}
9016 if { (eval echo configure:9017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9017 then
9018 samba_cv_HAVE_BROKEN_READDIR=yes
9019 else
9020 echo "configure: failed program was:" >&5
9021 cat conftest.$ac_ext >&5
9022 rm -fr conftest*
9023 samba_cv_HAVE_BROKEN_READDIR=no
9025 rm -fr conftest*
9030 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
9031 if test x"$samba_cv_HAVE_BROKEN_READDIR" = x"yes"; then
9032 cat >> confdefs.h <<\EOF
9033 #define HAVE_BROKEN_READDIR 1
9038 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
9039 echo "configure:9040: checking for utimbuf" >&5
9040 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
9041 echo $ac_n "(cached) $ac_c" 1>&6
9042 else
9044 cat > conftest.$ac_ext <<EOF
9045 #line 9046 "configure"
9046 #include "confdefs.h"
9047 #include <sys/types.h>
9048 #include <utime.h>
9049 int main() {
9050 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
9051 ; return 0; }
9053 if { (eval echo configure:9054: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9054 rm -rf conftest*
9055 samba_cv_HAVE_UTIMBUF=yes
9056 else
9057 echo "configure: failed program was:" >&5
9058 cat conftest.$ac_ext >&5
9059 rm -rf conftest*
9060 samba_cv_HAVE_UTIMBUF=no
9062 rm -f conftest*
9065 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
9066 if test x"$samba_cv_HAVE_UTIMBUF" = x"yes"; then
9067 cat >> confdefs.h <<\EOF
9068 #define HAVE_UTIMBUF 1
9074 for ac_func in pututline pututxline updwtmp updwtmpx getutmpx
9076 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9077 echo "configure:9078: checking for $ac_func" >&5
9078 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9079 echo $ac_n "(cached) $ac_c" 1>&6
9080 else
9081 cat > conftest.$ac_ext <<EOF
9082 #line 9083 "configure"
9083 #include "confdefs.h"
9084 /* System header to define __stub macros and hopefully few prototypes,
9085 which can conflict with char $ac_func(); below. */
9086 #include <assert.h>
9087 /* Override any gcc2 internal prototype to avoid an error. */
9088 /* We use char because int might match the return type of a gcc2
9089 builtin and then its argument prototype would still apply. */
9090 char $ac_func();
9092 int main() {
9094 /* The GNU C library defines this for functions which it implements
9095 to always fail with ENOSYS. Some functions are actually named
9096 something starting with __ and the normal name is an alias. */
9097 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9098 choke me
9099 #else
9100 $ac_func();
9101 #endif
9103 ; return 0; }
9105 if { (eval echo configure:9106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9106 rm -rf conftest*
9107 eval "ac_cv_func_$ac_func=yes"
9108 else
9109 echo "configure: failed program was:" >&5
9110 cat conftest.$ac_ext >&5
9111 rm -rf conftest*
9112 eval "ac_cv_func_$ac_func=no"
9114 rm -f conftest*
9117 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9118 echo "$ac_t""yes" 1>&6
9119 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9120 cat >> confdefs.h <<EOF
9121 #define $ac_tr_func 1
9124 else
9125 echo "$ac_t""no" 1>&6
9127 done
9130 echo $ac_n "checking for ut_name in utmp""... $ac_c" 1>&6
9131 echo "configure:9132: checking for ut_name in utmp" >&5
9132 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_NAME'+set}'`\" = set"; then
9133 echo $ac_n "(cached) $ac_c" 1>&6
9134 else
9136 cat > conftest.$ac_ext <<EOF
9137 #line 9138 "configure"
9138 #include "confdefs.h"
9139 #include <sys/types.h>
9140 #include <utmp.h>
9141 int main() {
9142 struct utmp ut; ut.ut_name[0] = 'a';
9143 ; return 0; }
9145 if { (eval echo configure:9146: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9146 rm -rf conftest*
9147 samba_cv_HAVE_UT_UT_NAME=yes
9148 else
9149 echo "configure: failed program was:" >&5
9150 cat conftest.$ac_ext >&5
9151 rm -rf conftest*
9152 samba_cv_HAVE_UT_UT_NAME=no
9154 rm -f conftest*
9157 echo "$ac_t""$samba_cv_HAVE_UT_UT_NAME" 1>&6
9158 if test x"$samba_cv_HAVE_UT_UT_NAME" = x"yes"; then
9159 cat >> confdefs.h <<\EOF
9160 #define HAVE_UT_UT_NAME 1
9165 echo $ac_n "checking for ut_user in utmp""... $ac_c" 1>&6
9166 echo "configure:9167: checking for ut_user in utmp" >&5
9167 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_USER'+set}'`\" = set"; then
9168 echo $ac_n "(cached) $ac_c" 1>&6
9169 else
9171 cat > conftest.$ac_ext <<EOF
9172 #line 9173 "configure"
9173 #include "confdefs.h"
9174 #include <sys/types.h>
9175 #include <utmp.h>
9176 int main() {
9177 struct utmp ut; ut.ut_user[0] = 'a';
9178 ; return 0; }
9180 if { (eval echo configure:9181: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9181 rm -rf conftest*
9182 samba_cv_HAVE_UT_UT_USER=yes
9183 else
9184 echo "configure: failed program was:" >&5
9185 cat conftest.$ac_ext >&5
9186 rm -rf conftest*
9187 samba_cv_HAVE_UT_UT_USER=no
9189 rm -f conftest*
9192 echo "$ac_t""$samba_cv_HAVE_UT_UT_USER" 1>&6
9193 if test x"$samba_cv_HAVE_UT_UT_USER" = x"yes"; then
9194 cat >> confdefs.h <<\EOF
9195 #define HAVE_UT_UT_USER 1
9200 echo $ac_n "checking for ut_id in utmp""... $ac_c" 1>&6
9201 echo "configure:9202: checking for ut_id in utmp" >&5
9202 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ID'+set}'`\" = set"; then
9203 echo $ac_n "(cached) $ac_c" 1>&6
9204 else
9206 cat > conftest.$ac_ext <<EOF
9207 #line 9208 "configure"
9208 #include "confdefs.h"
9209 #include <sys/types.h>
9210 #include <utmp.h>
9211 int main() {
9212 struct utmp ut; ut.ut_id[0] = 'a';
9213 ; return 0; }
9215 if { (eval echo configure:9216: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9216 rm -rf conftest*
9217 samba_cv_HAVE_UT_UT_ID=yes
9218 else
9219 echo "configure: failed program was:" >&5
9220 cat conftest.$ac_ext >&5
9221 rm -rf conftest*
9222 samba_cv_HAVE_UT_UT_ID=no
9224 rm -f conftest*
9227 echo "$ac_t""$samba_cv_HAVE_UT_UT_ID" 1>&6
9228 if test x"$samba_cv_HAVE_UT_UT_ID" = x"yes"; then
9229 cat >> confdefs.h <<\EOF
9230 #define HAVE_UT_UT_ID 1
9235 echo $ac_n "checking for ut_host in utmp""... $ac_c" 1>&6
9236 echo "configure:9237: checking for ut_host in utmp" >&5
9237 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_HOST'+set}'`\" = set"; then
9238 echo $ac_n "(cached) $ac_c" 1>&6
9239 else
9241 cat > conftest.$ac_ext <<EOF
9242 #line 9243 "configure"
9243 #include "confdefs.h"
9244 #include <sys/types.h>
9245 #include <utmp.h>
9246 int main() {
9247 struct utmp ut; ut.ut_host[0] = 'a';
9248 ; return 0; }
9250 if { (eval echo configure:9251: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9251 rm -rf conftest*
9252 samba_cv_HAVE_UT_UT_HOST=yes
9253 else
9254 echo "configure: failed program was:" >&5
9255 cat conftest.$ac_ext >&5
9256 rm -rf conftest*
9257 samba_cv_HAVE_UT_UT_HOST=no
9259 rm -f conftest*
9262 echo "$ac_t""$samba_cv_HAVE_UT_UT_HOST" 1>&6
9263 if test x"$samba_cv_HAVE_UT_UT_HOST" = x"yes"; then
9264 cat >> confdefs.h <<\EOF
9265 #define HAVE_UT_UT_HOST 1
9270 echo $ac_n "checking for ut_time in utmp""... $ac_c" 1>&6
9271 echo "configure:9272: checking for ut_time in utmp" >&5
9272 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TIME'+set}'`\" = set"; then
9273 echo $ac_n "(cached) $ac_c" 1>&6
9274 else
9276 cat > conftest.$ac_ext <<EOF
9277 #line 9278 "configure"
9278 #include "confdefs.h"
9279 #include <sys/types.h>
9280 #include <utmp.h>
9281 int main() {
9282 struct utmp ut; time_t t; ut.ut_time = t;
9283 ; return 0; }
9285 if { (eval echo configure:9286: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9286 rm -rf conftest*
9287 samba_cv_HAVE_UT_UT_TIME=yes
9288 else
9289 echo "configure: failed program was:" >&5
9290 cat conftest.$ac_ext >&5
9291 rm -rf conftest*
9292 samba_cv_HAVE_UT_UT_TIME=no
9294 rm -f conftest*
9297 echo "$ac_t""$samba_cv_HAVE_UT_UT_TIME" 1>&6
9298 if test x"$samba_cv_HAVE_UT_UT_TIME" = x"yes"; then
9299 cat >> confdefs.h <<\EOF
9300 #define HAVE_UT_UT_TIME 1
9305 echo $ac_n "checking for ut_tv in utmp""... $ac_c" 1>&6
9306 echo "configure:9307: checking for ut_tv in utmp" >&5
9307 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TV'+set}'`\" = set"; then
9308 echo $ac_n "(cached) $ac_c" 1>&6
9309 else
9311 cat > conftest.$ac_ext <<EOF
9312 #line 9313 "configure"
9313 #include "confdefs.h"
9314 #include <sys/types.h>
9315 #include <utmp.h>
9316 int main() {
9317 struct utmp ut; struct timeval tv; ut.ut_tv = tv;
9318 ; return 0; }
9320 if { (eval echo configure:9321: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9321 rm -rf conftest*
9322 samba_cv_HAVE_UT_UT_TV=yes
9323 else
9324 echo "configure: failed program was:" >&5
9325 cat conftest.$ac_ext >&5
9326 rm -rf conftest*
9327 samba_cv_HAVE_UT_UT_TV=no
9329 rm -f conftest*
9332 echo "$ac_t""$samba_cv_HAVE_UT_UT_TV" 1>&6
9333 if test x"$samba_cv_HAVE_UT_UT_TV" = x"yes"; then
9334 cat >> confdefs.h <<\EOF
9335 #define HAVE_UT_UT_TV 1
9340 echo $ac_n "checking for ut_type in utmp""... $ac_c" 1>&6
9341 echo "configure:9342: checking for ut_type in utmp" >&5
9342 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TYPE'+set}'`\" = set"; then
9343 echo $ac_n "(cached) $ac_c" 1>&6
9344 else
9346 cat > conftest.$ac_ext <<EOF
9347 #line 9348 "configure"
9348 #include "confdefs.h"
9349 #include <sys/types.h>
9350 #include <utmp.h>
9351 int main() {
9352 struct utmp ut; ut.ut_type = 0;
9353 ; return 0; }
9355 if { (eval echo configure:9356: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9356 rm -rf conftest*
9357 samba_cv_HAVE_UT_UT_TYPE=yes
9358 else
9359 echo "configure: failed program was:" >&5
9360 cat conftest.$ac_ext >&5
9361 rm -rf conftest*
9362 samba_cv_HAVE_UT_UT_TYPE=no
9364 rm -f conftest*
9367 echo "$ac_t""$samba_cv_HAVE_UT_UT_TYPE" 1>&6
9368 if test x"$samba_cv_HAVE_UT_UT_TYPE" = x"yes"; then
9369 cat >> confdefs.h <<\EOF
9370 #define HAVE_UT_UT_TYPE 1
9375 echo $ac_n "checking for ut_pid in utmp""... $ac_c" 1>&6
9376 echo "configure:9377: checking for ut_pid in utmp" >&5
9377 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_PID'+set}'`\" = set"; then
9378 echo $ac_n "(cached) $ac_c" 1>&6
9379 else
9381 cat > conftest.$ac_ext <<EOF
9382 #line 9383 "configure"
9383 #include "confdefs.h"
9384 #include <sys/types.h>
9385 #include <utmp.h>
9386 int main() {
9387 struct utmp ut; ut.ut_pid = 0;
9388 ; return 0; }
9390 if { (eval echo configure:9391: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9391 rm -rf conftest*
9392 samba_cv_HAVE_UT_UT_PID=yes
9393 else
9394 echo "configure: failed program was:" >&5
9395 cat conftest.$ac_ext >&5
9396 rm -rf conftest*
9397 samba_cv_HAVE_UT_UT_PID=no
9399 rm -f conftest*
9402 echo "$ac_t""$samba_cv_HAVE_UT_UT_PID" 1>&6
9403 if test x"$samba_cv_HAVE_UT_UT_PID" = x"yes"; then
9404 cat >> confdefs.h <<\EOF
9405 #define HAVE_UT_UT_PID 1
9410 echo $ac_n "checking for ut_exit in utmp""... $ac_c" 1>&6
9411 echo "configure:9412: checking for ut_exit in utmp" >&5
9412 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_EXIT'+set}'`\" = set"; then
9413 echo $ac_n "(cached) $ac_c" 1>&6
9414 else
9416 cat > conftest.$ac_ext <<EOF
9417 #line 9418 "configure"
9418 #include "confdefs.h"
9419 #include <sys/types.h>
9420 #include <utmp.h>
9421 int main() {
9422 struct utmp ut; ut.ut_exit.e_exit = 0;
9423 ; return 0; }
9425 if { (eval echo configure:9426: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9426 rm -rf conftest*
9427 samba_cv_HAVE_UT_UT_EXIT=yes
9428 else
9429 echo "configure: failed program was:" >&5
9430 cat conftest.$ac_ext >&5
9431 rm -rf conftest*
9432 samba_cv_HAVE_UT_UT_EXIT=no
9434 rm -f conftest*
9437 echo "$ac_t""$samba_cv_HAVE_UT_UT_EXIT" 1>&6
9438 if test x"$samba_cv_HAVE_UT_UT_EXIT" = x"yes"; then
9439 cat >> confdefs.h <<\EOF
9440 #define HAVE_UT_UT_EXIT 1
9445 echo $ac_n "checking for ut_addr in utmp""... $ac_c" 1>&6
9446 echo "configure:9447: checking for ut_addr in utmp" >&5
9447 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ADDR'+set}'`\" = set"; then
9448 echo $ac_n "(cached) $ac_c" 1>&6
9449 else
9451 cat > conftest.$ac_ext <<EOF
9452 #line 9453 "configure"
9453 #include "confdefs.h"
9454 #include <sys/types.h>
9455 #include <utmp.h>
9456 int main() {
9457 struct utmp ut; ut.ut_addr = 0;
9458 ; return 0; }
9460 if { (eval echo configure:9461: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9461 rm -rf conftest*
9462 samba_cv_HAVE_UT_UT_ADDR=yes
9463 else
9464 echo "configure: failed program was:" >&5
9465 cat conftest.$ac_ext >&5
9466 rm -rf conftest*
9467 samba_cv_HAVE_UT_UT_ADDR=no
9469 rm -f conftest*
9472 echo "$ac_t""$samba_cv_HAVE_UT_UT_ADDR" 1>&6
9473 if test x"$samba_cv_HAVE_UT_UT_ADDR" = x"yes"; then
9474 cat >> confdefs.h <<\EOF
9475 #define HAVE_UT_UT_ADDR 1
9480 if test x$ac_cv_func_pututline = xyes ; then
9481 echo $ac_n "checking whether pututline returns pointer""... $ac_c" 1>&6
9482 echo "configure:9483: checking whether pututline returns pointer" >&5
9483 if eval "test \"`echo '$''{'samba_cv_PUTUTLINE_RETURNS_UTMP'+set}'`\" = set"; then
9484 echo $ac_n "(cached) $ac_c" 1>&6
9485 else
9487 cat > conftest.$ac_ext <<EOF
9488 #line 9489 "configure"
9489 #include "confdefs.h"
9490 #include <sys/types.h>
9491 #include <utmp.h>
9492 int main() {
9493 struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
9494 ; return 0; }
9496 if { (eval echo configure:9497: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9497 rm -rf conftest*
9498 samba_cv_PUTUTLINE_RETURNS_UTMP=yes
9499 else
9500 echo "configure: failed program was:" >&5
9501 cat conftest.$ac_ext >&5
9502 rm -rf conftest*
9503 samba_cv_PUTUTLINE_RETURNS_UTMP=no
9505 rm -f conftest*
9508 echo "$ac_t""$samba_cv_PUTUTLINE_RETURNS_UTMP" 1>&6
9509 if test x"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x"yes"; then
9510 cat >> confdefs.h <<\EOF
9511 #define PUTUTLINE_RETURNS_UTMP 1
9517 echo $ac_n "checking for ut_syslen in utmpx""... $ac_c" 1>&6
9518 echo "configure:9519: checking for ut_syslen in utmpx" >&5
9519 if eval "test \"`echo '$''{'samba_cv_HAVE_UX_UT_SYSLEN'+set}'`\" = set"; then
9520 echo $ac_n "(cached) $ac_c" 1>&6
9521 else
9523 cat > conftest.$ac_ext <<EOF
9524 #line 9525 "configure"
9525 #include "confdefs.h"
9526 #include <sys/types.h>
9527 #include <utmpx.h>
9528 int main() {
9529 struct utmpx ux; ux.ut_syslen = 0;
9530 ; return 0; }
9532 if { (eval echo configure:9533: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9533 rm -rf conftest*
9534 samba_cv_HAVE_UX_UT_SYSLEN=yes
9535 else
9536 echo "configure: failed program was:" >&5
9537 cat conftest.$ac_ext >&5
9538 rm -rf conftest*
9539 samba_cv_HAVE_UX_UT_SYSLEN=no
9541 rm -f conftest*
9544 echo "$ac_t""$samba_cv_HAVE_UX_UT_SYSLEN" 1>&6
9545 if test x"$samba_cv_HAVE_UX_UT_SYSLEN" = x"yes"; then
9546 cat >> confdefs.h <<\EOF
9547 #define HAVE_UX_UT_SYSLEN 1
9552 echo $ac_n "checking for Linux kernel oplocks""... $ac_c" 1>&6
9553 echo "configure:9554: checking for Linux kernel oplocks" >&5
9554 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_LINUX'+set}'`\" = set"; then
9555 echo $ac_n "(cached) $ac_c" 1>&6
9556 else
9558 if test "$cross_compiling" = yes; then
9559 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=cross
9560 else
9561 cat > conftest.$ac_ext <<EOF
9562 #line 9563 "configure"
9563 #include "confdefs.h"
9565 #include <sys/types.h>
9566 #include <fcntl.h>
9567 #ifndef F_GETLEASE
9568 #define F_GETLEASE 1025
9569 #endif
9570 main() {
9571 int fd = open("/dev/null", O_RDONLY);
9572 return fcntl(fd, F_GETLEASE, 0) == -1;
9576 if { (eval echo configure:9577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9577 then
9578 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=yes
9579 else
9580 echo "configure: failed program was:" >&5
9581 cat conftest.$ac_ext >&5
9582 rm -fr conftest*
9583 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=no
9585 rm -fr conftest*
9590 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" 1>&6
9591 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x"yes"; then
9592 cat >> confdefs.h <<\EOF
9593 #define HAVE_KERNEL_OPLOCKS_LINUX 1
9598 echo $ac_n "checking for kernel change notify support""... $ac_c" 1>&6
9599 echo "configure:9600: checking for kernel change notify support" >&5
9600 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_CHANGE_NOTIFY'+set}'`\" = set"; then
9601 echo $ac_n "(cached) $ac_c" 1>&6
9602 else
9604 if test "$cross_compiling" = yes; then
9605 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=cross
9606 else
9607 cat > conftest.$ac_ext <<EOF
9608 #line 9609 "configure"
9609 #include "confdefs.h"
9611 #include <sys/types.h>
9612 #include <fcntl.h>
9613 #include <signal.h>
9614 #ifndef F_NOTIFY
9615 #define F_NOTIFY 1026
9616 #endif
9617 main() {
9618 exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0);
9622 if { (eval echo configure:9623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9623 then
9624 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=yes
9625 else
9626 echo "configure: failed program was:" >&5
9627 cat conftest.$ac_ext >&5
9628 rm -fr conftest*
9629 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=no
9631 rm -fr conftest*
9636 echo "$ac_t""$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" 1>&6
9637 if test x"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x"yes"; then
9638 cat >> confdefs.h <<\EOF
9639 #define HAVE_KERNEL_CHANGE_NOTIFY 1
9644 echo $ac_n "checking for kernel share modes""... $ac_c" 1>&6
9645 echo "configure:9646: checking for kernel share modes" >&5
9646 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_SHARE_MODES'+set}'`\" = set"; then
9647 echo $ac_n "(cached) $ac_c" 1>&6
9648 else
9650 if test "$cross_compiling" = yes; then
9651 samba_cv_HAVE_KERNEL_SHARE_MODES=cross
9652 else
9653 cat > conftest.$ac_ext <<EOF
9654 #line 9655 "configure"
9655 #include "confdefs.h"
9657 #include <sys/types.h>
9658 #include <fcntl.h>
9659 #include <signal.h>
9660 #include <sys/file.h>
9661 #ifndef LOCK_MAND
9662 #define LOCK_MAND 32
9663 #define LOCK_READ 64
9664 #endif
9665 main() {
9666 exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
9670 if { (eval echo configure:9671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9671 then
9672 samba_cv_HAVE_KERNEL_SHARE_MODES=yes
9673 else
9674 echo "configure: failed program was:" >&5
9675 cat conftest.$ac_ext >&5
9676 rm -fr conftest*
9677 samba_cv_HAVE_KERNEL_SHARE_MODES=no
9679 rm -fr conftest*
9684 echo "$ac_t""$samba_cv_HAVE_KERNEL_SHARE_MODES" 1>&6
9685 if test x"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x"yes"; then
9686 cat >> confdefs.h <<\EOF
9687 #define HAVE_KERNEL_SHARE_MODES 1
9695 echo $ac_n "checking for IRIX kernel oplock type definitions""... $ac_c" 1>&6
9696 echo "configure:9697: checking for IRIX kernel oplock type definitions" >&5
9697 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_IRIX'+set}'`\" = set"; then
9698 echo $ac_n "(cached) $ac_c" 1>&6
9699 else
9701 cat > conftest.$ac_ext <<EOF
9702 #line 9703 "configure"
9703 #include "confdefs.h"
9704 #include <sys/types.h>
9705 #include <fcntl.h>
9706 int main() {
9707 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
9708 ; return 0; }
9710 if { (eval echo configure:9711: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9711 rm -rf conftest*
9712 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=yes
9713 else
9714 echo "configure: failed program was:" >&5
9715 cat conftest.$ac_ext >&5
9716 rm -rf conftest*
9717 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=no
9719 rm -f conftest*
9722 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" 1>&6
9723 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x"yes"; then
9724 cat >> confdefs.h <<\EOF
9725 #define HAVE_KERNEL_OPLOCKS_IRIX 1
9730 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
9731 echo "configure:9732: checking for irix specific capabilities" >&5
9732 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
9733 echo $ac_n "(cached) $ac_c" 1>&6
9734 else
9736 if test "$cross_compiling" = yes; then
9737 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=cross
9738 else
9739 cat > conftest.$ac_ext <<EOF
9740 #line 9741 "configure"
9741 #include "confdefs.h"
9742 #include <sys/types.h>
9743 #include <sys/capability.h>
9744 main() {
9745 cap_t cap;
9746 if ((cap = cap_get_proc()) == NULL)
9747 exit(1);
9748 cap->cap_effective |= CAP_NETWORK_MGT;
9749 cap->cap_inheritable |= CAP_NETWORK_MGT;
9750 cap_set_proc(cap);
9751 exit(0);
9755 if { (eval echo configure:9756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9756 then
9757 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=yes
9758 else
9759 echo "configure: failed program was:" >&5
9760 cat conftest.$ac_ext >&5
9761 rm -fr conftest*
9762 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=no
9764 rm -fr conftest*
9769 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
9770 if test x"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x"yes"; then
9771 cat >> confdefs.h <<\EOF
9772 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
9778 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
9779 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
9782 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9783 echo "configure:9784: checking for int16 typedef included by rpc/rpc.h" >&5
9784 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
9785 echo $ac_n "(cached) $ac_c" 1>&6
9786 else
9788 cat > conftest.$ac_ext <<EOF
9789 #line 9790 "configure"
9790 #include "confdefs.h"
9791 #include <sys/types.h>
9792 #if defined(HAVE_RPC_RPC_H)
9793 #include <rpc/rpc.h>
9794 #endif
9795 int main() {
9796 int16 testvar;
9797 ; return 0; }
9799 if { (eval echo configure:9800: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9800 rm -rf conftest*
9801 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=yes
9802 else
9803 echo "configure: failed program was:" >&5
9804 cat conftest.$ac_ext >&5
9805 rm -rf conftest*
9806 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=no
9808 rm -f conftest*
9811 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
9812 if test x"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x"yes"; then
9813 cat >> confdefs.h <<\EOF
9814 #define HAVE_INT16_FROM_RPC_RPC_H 1
9819 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9820 echo "configure:9821: checking for uint16 typedef included by rpc/rpc.h" >&5
9821 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
9822 echo $ac_n "(cached) $ac_c" 1>&6
9823 else
9825 cat > conftest.$ac_ext <<EOF
9826 #line 9827 "configure"
9827 #include "confdefs.h"
9828 #include <sys/types.h>
9829 #if defined(HAVE_RPC_RPC_H)
9830 #include <rpc/rpc.h>
9831 #endif
9832 int main() {
9833 uint16 testvar;
9834 ; return 0; }
9836 if { (eval echo configure:9837: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9837 rm -rf conftest*
9838 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=yes
9839 else
9840 echo "configure: failed program was:" >&5
9841 cat conftest.$ac_ext >&5
9842 rm -rf conftest*
9843 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=no
9845 rm -f conftest*
9848 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
9849 if test x"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x"yes"; then
9850 cat >> confdefs.h <<\EOF
9851 #define HAVE_UINT16_FROM_RPC_RPC_H 1
9856 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9857 echo "configure:9858: checking for int32 typedef included by rpc/rpc.h" >&5
9858 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
9859 echo $ac_n "(cached) $ac_c" 1>&6
9860 else
9862 cat > conftest.$ac_ext <<EOF
9863 #line 9864 "configure"
9864 #include "confdefs.h"
9865 #include <sys/types.h>
9866 #if defined(HAVE_RPC_RPC_H)
9867 #include <rpc/rpc.h>
9868 #endif
9869 int main() {
9870 int32 testvar;
9871 ; return 0; }
9873 if { (eval echo configure:9874: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9874 rm -rf conftest*
9875 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=yes
9876 else
9877 echo "configure: failed program was:" >&5
9878 cat conftest.$ac_ext >&5
9879 rm -rf conftest*
9880 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=no
9882 rm -f conftest*
9885 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
9886 if test x"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x"yes"; then
9887 cat >> confdefs.h <<\EOF
9888 #define HAVE_INT32_FROM_RPC_RPC_H 1
9893 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9894 echo "configure:9895: checking for uint32 typedef included by rpc/rpc.h" >&5
9895 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
9896 echo $ac_n "(cached) $ac_c" 1>&6
9897 else
9899 cat > conftest.$ac_ext <<EOF
9900 #line 9901 "configure"
9901 #include "confdefs.h"
9902 #include <sys/types.h>
9903 #if defined(HAVE_RPC_RPC_H)
9904 #include <rpc/rpc.h>
9905 #endif
9906 int main() {
9907 uint32 testvar;
9908 ; return 0; }
9910 if { (eval echo configure:9911: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9911 rm -rf conftest*
9912 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=yes
9913 else
9914 echo "configure: failed program was:" >&5
9915 cat conftest.$ac_ext >&5
9916 rm -rf conftest*
9917 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=no
9919 rm -f conftest*
9922 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
9923 if test x"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x"yes"; then
9924 cat >> confdefs.h <<\EOF
9925 #define HAVE_UINT32_FROM_RPC_RPC_H 1
9931 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
9932 echo "configure:9933: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
9933 if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
9934 echo $ac_n "(cached) $ac_c" 1>&6
9935 else
9937 cat > conftest.$ac_ext <<EOF
9938 #line 9939 "configure"
9939 #include "confdefs.h"
9940 #include <sys/types.h>
9941 #ifdef HAVE_SYS_SECURITY_H
9942 #include <sys/security.h>
9943 #include <prot.h>
9944 #endif /* HAVE_SYS_SECURITY_H */
9945 #if defined(HAVE_RPC_RPC_H)
9946 #include <rpc/rpc.h>
9947 #endif
9948 int main() {
9949 int testvar;
9950 ; return 0; }
9952 if { (eval echo configure:9953: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9953 rm -rf conftest*
9954 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=no
9955 else
9956 echo "configure: failed program was:" >&5
9957 cat conftest.$ac_ext >&5
9958 rm -rf conftest*
9959 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=yes
9961 rm -f conftest*
9964 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
9965 if test x"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x"yes"; then
9966 cat >> confdefs.h <<\EOF
9967 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
9972 echo $ac_n "checking for test routines""... $ac_c" 1>&6
9973 echo "configure:9974: checking for test routines" >&5
9974 if test "$cross_compiling" = yes; then
9975 echo "configure: warning: cannot run when cross-compiling" 1>&2
9976 else
9977 cat > conftest.$ac_ext <<EOF
9978 #line 9979 "configure"
9979 #include "confdefs.h"
9980 #include "${srcdir-.}/tests/trivial.c"
9982 if { (eval echo configure:9983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9983 then
9984 echo "$ac_t""yes" 1>&6
9985 else
9986 echo "configure: failed program was:" >&5
9987 cat conftest.$ac_ext >&5
9988 rm -fr conftest*
9989 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
9991 rm -fr conftest*
9995 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
9996 echo "configure:9997: checking for ftruncate extend" >&5
9997 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
9998 echo $ac_n "(cached) $ac_c" 1>&6
9999 else
10001 if test "$cross_compiling" = yes; then
10002 samba_cv_HAVE_FTRUNCATE_EXTEND=cross
10003 else
10004 cat > conftest.$ac_ext <<EOF
10005 #line 10006 "configure"
10006 #include "confdefs.h"
10007 #include "${srcdir-.}/tests/ftruncate.c"
10009 if { (eval echo configure:10010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10010 then
10011 samba_cv_HAVE_FTRUNCATE_EXTEND=yes
10012 else
10013 echo "configure: failed program was:" >&5
10014 cat conftest.$ac_ext >&5
10015 rm -fr conftest*
10016 samba_cv_HAVE_FTRUNCATE_EXTEND=no
10018 rm -fr conftest*
10023 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
10024 if test x"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x"yes"; then
10025 cat >> confdefs.h <<\EOF
10026 #define HAVE_FTRUNCATE_EXTEND 1
10031 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
10032 echo "configure:10033: checking for broken getgroups" >&5
10033 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
10034 echo $ac_n "(cached) $ac_c" 1>&6
10035 else
10037 if test "$cross_compiling" = yes; then
10038 samba_cv_HAVE_BROKEN_GETGROUPS=cross
10039 else
10040 cat > conftest.$ac_ext <<EOF
10041 #line 10042 "configure"
10042 #include "confdefs.h"
10043 #include "${srcdir-.}/tests/getgroups.c"
10045 if { (eval echo configure:10046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10046 then
10047 samba_cv_HAVE_BROKEN_GETGROUPS=yes
10048 else
10049 echo "configure: failed program was:" >&5
10050 cat conftest.$ac_ext >&5
10051 rm -fr conftest*
10052 samba_cv_HAVE_BROKEN_GETGROUPS=no
10054 rm -fr conftest*
10059 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
10060 if test x"$samba_cv_HAVE_BROKEN_GETGROUPS" = x"yes"; then
10061 cat >> confdefs.h <<\EOF
10062 #define HAVE_BROKEN_GETGROUPS 1
10067 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
10068 echo "configure:10069: checking whether getpass should be replaced" >&5
10069 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
10070 echo $ac_n "(cached) $ac_c" 1>&6
10071 else
10073 SAVE_CPPFLAGS="$CPPFLAGS"
10074 CPPFLAGS="$CPPFLAGS -I${srcdir-.}/ -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/smbwrapper"
10075 cat > conftest.$ac_ext <<EOF
10076 #line 10077 "configure"
10077 #include "confdefs.h"
10079 #define REPLACE_GETPASS 1
10080 #define NO_CONFIG_H 1
10081 #define main dont_declare_main
10082 #include "${srcdir-.}/lib/getsmbpass.c"
10083 #undef main
10085 int main() {
10087 ; return 0; }
10089 if { (eval echo configure:10090: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10090 rm -rf conftest*
10091 samba_cv_REPLACE_GETPASS=yes
10092 else
10093 echo "configure: failed program was:" >&5
10094 cat conftest.$ac_ext >&5
10095 rm -rf conftest*
10096 samba_cv_REPLACE_GETPASS=no
10098 rm -f conftest*
10099 CPPFLAGS="$SAVE_CPPFLAGS"
10103 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
10104 if test x"$samba_cv_REPLACE_GETPASS" = x"yes"; then
10105 cat >> confdefs.h <<\EOF
10106 #define REPLACE_GETPASS 1
10111 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
10112 echo "configure:10113: checking for broken inet_ntoa" >&5
10113 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
10114 echo $ac_n "(cached) $ac_c" 1>&6
10115 else
10117 if test "$cross_compiling" = yes; then
10118 samba_cv_REPLACE_INET_NTOA=cross
10119 else
10120 cat > conftest.$ac_ext <<EOF
10121 #line 10122 "configure"
10122 #include "confdefs.h"
10124 #include <stdio.h>
10125 #include <sys/types.h>
10126 #include <netinet/in.h>
10127 #ifdef HAVE_ARPA_INET_H
10128 #include <arpa/inet.h>
10129 #endif
10130 main() { struct in_addr ip; ip.s_addr = 0x12345678;
10131 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
10132 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
10133 exit(1);}
10135 if { (eval echo configure:10136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10136 then
10137 samba_cv_REPLACE_INET_NTOA=yes
10138 else
10139 echo "configure: failed program was:" >&5
10140 cat conftest.$ac_ext >&5
10141 rm -fr conftest*
10142 samba_cv_REPLACE_INET_NTOA=no
10144 rm -fr conftest*
10149 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
10150 if test x"$samba_cv_REPLACE_INET_NTOA" = x"yes"; then
10151 cat >> confdefs.h <<\EOF
10152 #define REPLACE_INET_NTOA 1
10157 echo $ac_n "checking for secure mkstemp""... $ac_c" 1>&6
10158 echo "configure:10159: checking for secure mkstemp" >&5
10159 if eval "test \"`echo '$''{'samba_cv_HAVE_SECURE_MKSTEMP'+set}'`\" = set"; then
10160 echo $ac_n "(cached) $ac_c" 1>&6
10161 else
10163 if test "$cross_compiling" = yes; then
10164 samba_cv_HAVE_SECURE_MKSTEMP=cross
10165 else
10166 cat > conftest.$ac_ext <<EOF
10167 #line 10168 "configure"
10168 #include "confdefs.h"
10169 #include <stdlib.h>
10170 #include <sys/types.h>
10171 #include <sys/stat.h>
10172 #include <unistd.h>
10173 main() {
10174 struct stat st;
10175 char tpl[20]="/tmp/test.XXXXXX";
10176 int fd = mkstemp(tpl);
10177 if (fd == -1) exit(1);
10178 unlink(tpl);
10179 if (fstat(fd, &st) != 0) exit(1);
10180 if ((st.st_mode & 0777) != 0600) exit(1);
10181 exit(0);
10184 if { (eval echo configure:10185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10185 then
10186 samba_cv_HAVE_SECURE_MKSTEMP=yes
10187 else
10188 echo "configure: failed program was:" >&5
10189 cat conftest.$ac_ext >&5
10190 rm -fr conftest*
10191 samba_cv_HAVE_SECURE_MKSTEMP=no
10193 rm -fr conftest*
10198 echo "$ac_t""$samba_cv_HAVE_SECURE_MKSTEMP" 1>&6
10199 if test x"$samba_cv_HAVE_SECURE_MKSTEMP" = x"yes"; then
10200 cat >> confdefs.h <<\EOF
10201 #define HAVE_SECURE_MKSTEMP 1
10206 echo $ac_n "checking for sysconf(_SC_NGROUPS_MAX)""... $ac_c" 1>&6
10207 echo "configure:10208: checking for sysconf(_SC_NGROUPS_MAX)" >&5
10208 if eval "test \"`echo '$''{'samba_cv_SYSCONF_SC_NGROUPS_MAX'+set}'`\" = set"; then
10209 echo $ac_n "(cached) $ac_c" 1>&6
10210 else
10212 if test "$cross_compiling" = yes; then
10213 samba_cv_SYSCONF_SC_NGROUPS_MAX=cross
10214 else
10215 cat > conftest.$ac_ext <<EOF
10216 #line 10217 "configure"
10217 #include "confdefs.h"
10218 #include <unistd.h>
10219 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
10221 if { (eval echo configure:10222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10222 then
10223 samba_cv_SYSCONF_SC_NGROUPS_MAX=yes
10224 else
10225 echo "configure: failed program was:" >&5
10226 cat conftest.$ac_ext >&5
10227 rm -fr conftest*
10228 samba_cv_SYSCONF_SC_NGROUPS_MAX=no
10230 rm -fr conftest*
10235 echo "$ac_t""$samba_cv_SYSCONF_SC_NGROUPS_MAX" 1>&6
10236 if test x"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x"yes"; then
10237 cat >> confdefs.h <<\EOF
10238 #define SYSCONF_SC_NGROUPS_MAX 1
10243 echo $ac_n "checking for root""... $ac_c" 1>&6
10244 echo "configure:10245: checking for root" >&5
10245 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
10246 echo $ac_n "(cached) $ac_c" 1>&6
10247 else
10249 if test "$cross_compiling" = yes; then
10250 samba_cv_HAVE_ROOT=cross
10251 else
10252 cat > conftest.$ac_ext <<EOF
10253 #line 10254 "configure"
10254 #include "confdefs.h"
10255 main() { exit(getuid() != 0); }
10257 if { (eval echo configure:10258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10258 then
10259 samba_cv_HAVE_ROOT=yes
10260 else
10261 echo "configure: failed program was:" >&5
10262 cat conftest.$ac_ext >&5
10263 rm -fr conftest*
10264 samba_cv_HAVE_ROOT=no
10266 rm -fr conftest*
10271 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
10272 if test x"$samba_cv_HAVE_ROOT" = x"yes"; then
10273 cat >> confdefs.h <<\EOF
10274 #define HAVE_ROOT 1
10277 else
10278 echo "configure: warning: running as non-root will disable some tests" 1>&2
10281 ##################
10282 # look for a method of finding the list of network interfaces
10283 iface=no;
10284 echo $ac_n "checking for iface AIX""... $ac_c" 1>&6
10285 echo "configure:10286: checking for iface AIX" >&5
10286 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_AIX'+set}'`\" = set"; then
10287 echo $ac_n "(cached) $ac_c" 1>&6
10288 else
10290 if test "$cross_compiling" = yes; then
10291 samba_cv_HAVE_IFACE_AIX=cross
10292 else
10293 cat > conftest.$ac_ext <<EOF
10294 #line 10295 "configure"
10295 #include "confdefs.h"
10297 #define HAVE_IFACE_AIX 1
10298 #define AUTOCONF_TEST 1
10299 #include "confdefs.h"
10300 #include "${srcdir-.}/lib/interfaces.c"
10302 if { (eval echo configure:10303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10303 then
10304 samba_cv_HAVE_IFACE_AIX=yes
10305 else
10306 echo "configure: failed program was:" >&5
10307 cat conftest.$ac_ext >&5
10308 rm -fr conftest*
10309 samba_cv_HAVE_IFACE_AIX=no
10311 rm -fr conftest*
10316 echo "$ac_t""$samba_cv_HAVE_IFACE_AIX" 1>&6
10317 if test x"$samba_cv_HAVE_IFACE_AIX" = x"yes"; then
10318 iface=yes;cat >> confdefs.h <<\EOF
10319 #define HAVE_IFACE_AIX 1
10324 if test $iface = no; then
10325 echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6
10326 echo "configure:10327: checking for iface ifconf" >&5
10327 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFCONF'+set}'`\" = set"; then
10328 echo $ac_n "(cached) $ac_c" 1>&6
10329 else
10331 if test "$cross_compiling" = yes; then
10332 samba_cv_HAVE_IFACE_IFCONF=cross
10333 else
10334 cat > conftest.$ac_ext <<EOF
10335 #line 10336 "configure"
10336 #include "confdefs.h"
10338 #define HAVE_IFACE_IFCONF 1
10339 #define AUTOCONF_TEST 1
10340 #include "confdefs.h"
10341 #include "${srcdir-.}/lib/interfaces.c"
10343 if { (eval echo configure:10344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10344 then
10345 samba_cv_HAVE_IFACE_IFCONF=yes
10346 else
10347 echo "configure: failed program was:" >&5
10348 cat conftest.$ac_ext >&5
10349 rm -fr conftest*
10350 samba_cv_HAVE_IFACE_IFCONF=no
10352 rm -fr conftest*
10357 echo "$ac_t""$samba_cv_HAVE_IFACE_IFCONF" 1>&6
10358 if test x"$samba_cv_HAVE_IFACE_IFCONF" = x"yes"; then
10359 iface=yes;cat >> confdefs.h <<\EOF
10360 #define HAVE_IFACE_IFCONF 1
10366 if test $iface = no; then
10367 echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6
10368 echo "configure:10369: checking for iface ifreq" >&5
10369 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFREQ'+set}'`\" = set"; then
10370 echo $ac_n "(cached) $ac_c" 1>&6
10371 else
10373 if test "$cross_compiling" = yes; then
10374 samba_cv_HAVE_IFACE_IFREQ=cross
10375 else
10376 cat > conftest.$ac_ext <<EOF
10377 #line 10378 "configure"
10378 #include "confdefs.h"
10380 #define HAVE_IFACE_IFREQ 1
10381 #define AUTOCONF_TEST 1
10382 #include "confdefs.h"
10383 #include "${srcdir-.}/lib/interfaces.c"
10385 if { (eval echo configure:10386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10386 then
10387 samba_cv_HAVE_IFACE_IFREQ=yes
10388 else
10389 echo "configure: failed program was:" >&5
10390 cat conftest.$ac_ext >&5
10391 rm -fr conftest*
10392 samba_cv_HAVE_IFACE_IFREQ=no
10394 rm -fr conftest*
10399 echo "$ac_t""$samba_cv_HAVE_IFACE_IFREQ" 1>&6
10400 if test x"$samba_cv_HAVE_IFACE_IFREQ" = x"yes"; then
10401 iface=yes;cat >> confdefs.h <<\EOF
10402 #define HAVE_IFACE_IFREQ 1
10409 ################################################
10410 # look for a method of setting the effective uid
10411 seteuid=no;
10412 if test $seteuid = no; then
10413 echo $ac_n "checking for setresuid""... $ac_c" 1>&6
10414 echo "configure:10415: checking for setresuid" >&5
10415 if eval "test \"`echo '$''{'samba_cv_USE_SETRESUID'+set}'`\" = set"; then
10416 echo $ac_n "(cached) $ac_c" 1>&6
10417 else
10419 if test "$cross_compiling" = yes; then
10420 samba_cv_USE_SETRESUID=cross
10421 else
10422 cat > conftest.$ac_ext <<EOF
10423 #line 10424 "configure"
10424 #include "confdefs.h"
10426 #define AUTOCONF_TEST 1
10427 #define USE_SETRESUID 1
10428 #include "confdefs.h"
10429 #include "${srcdir-.}/lib/util_sec.c"
10431 if { (eval echo configure:10432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10432 then
10433 samba_cv_USE_SETRESUID=yes
10434 else
10435 echo "configure: failed program was:" >&5
10436 cat conftest.$ac_ext >&5
10437 rm -fr conftest*
10438 samba_cv_USE_SETRESUID=no
10440 rm -fr conftest*
10445 echo "$ac_t""$samba_cv_USE_SETRESUID" 1>&6
10446 if test x"$samba_cv_USE_SETRESUID" = x"yes"; then
10447 seteuid=yes;cat >> confdefs.h <<\EOF
10448 #define USE_SETRESUID 1
10455 if test $seteuid = no; then
10456 echo $ac_n "checking for setreuid""... $ac_c" 1>&6
10457 echo "configure:10458: checking for setreuid" >&5
10458 if eval "test \"`echo '$''{'samba_cv_USE_SETREUID'+set}'`\" = set"; then
10459 echo $ac_n "(cached) $ac_c" 1>&6
10460 else
10462 if test "$cross_compiling" = yes; then
10463 samba_cv_USE_SETREUID=cross
10464 else
10465 cat > conftest.$ac_ext <<EOF
10466 #line 10467 "configure"
10467 #include "confdefs.h"
10469 #define AUTOCONF_TEST 1
10470 #define USE_SETREUID 1
10471 #include "confdefs.h"
10472 #include "${srcdir-.}/lib/util_sec.c"
10474 if { (eval echo configure:10475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10475 then
10476 samba_cv_USE_SETREUID=yes
10477 else
10478 echo "configure: failed program was:" >&5
10479 cat conftest.$ac_ext >&5
10480 rm -fr conftest*
10481 samba_cv_USE_SETREUID=no
10483 rm -fr conftest*
10488 echo "$ac_t""$samba_cv_USE_SETREUID" 1>&6
10489 if test x"$samba_cv_USE_SETREUID" = x"yes"; then
10490 seteuid=yes;cat >> confdefs.h <<\EOF
10491 #define USE_SETREUID 1
10497 if test $seteuid = no; then
10498 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
10499 echo "configure:10500: checking for seteuid" >&5
10500 if eval "test \"`echo '$''{'samba_cv_USE_SETEUID'+set}'`\" = set"; then
10501 echo $ac_n "(cached) $ac_c" 1>&6
10502 else
10504 if test "$cross_compiling" = yes; then
10505 samba_cv_USE_SETEUID=cross
10506 else
10507 cat > conftest.$ac_ext <<EOF
10508 #line 10509 "configure"
10509 #include "confdefs.h"
10511 #define AUTOCONF_TEST 1
10512 #define USE_SETEUID 1
10513 #include "confdefs.h"
10514 #include "${srcdir-.}/lib/util_sec.c"
10516 if { (eval echo configure:10517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10517 then
10518 samba_cv_USE_SETEUID=yes
10519 else
10520 echo "configure: failed program was:" >&5
10521 cat conftest.$ac_ext >&5
10522 rm -fr conftest*
10523 samba_cv_USE_SETEUID=no
10525 rm -fr conftest*
10530 echo "$ac_t""$samba_cv_USE_SETEUID" 1>&6
10531 if test x"$samba_cv_USE_SETEUID" = x"yes"; then
10532 seteuid=yes;cat >> confdefs.h <<\EOF
10533 #define USE_SETEUID 1
10539 if test $seteuid = no; then
10540 echo $ac_n "checking for setuidx""... $ac_c" 1>&6
10541 echo "configure:10542: checking for setuidx" >&5
10542 if eval "test \"`echo '$''{'samba_cv_USE_SETUIDX'+set}'`\" = set"; then
10543 echo $ac_n "(cached) $ac_c" 1>&6
10544 else
10546 if test "$cross_compiling" = yes; then
10547 samba_cv_USE_SETUIDX=cross
10548 else
10549 cat > conftest.$ac_ext <<EOF
10550 #line 10551 "configure"
10551 #include "confdefs.h"
10553 #define AUTOCONF_TEST 1
10554 #define USE_SETUIDX 1
10555 #include "confdefs.h"
10556 #include "${srcdir-.}/lib/util_sec.c"
10558 if { (eval echo configure:10559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10559 then
10560 samba_cv_USE_SETUIDX=yes
10561 else
10562 echo "configure: failed program was:" >&5
10563 cat conftest.$ac_ext >&5
10564 rm -fr conftest*
10565 samba_cv_USE_SETUIDX=no
10567 rm -fr conftest*
10572 echo "$ac_t""$samba_cv_USE_SETUIDX" 1>&6
10573 if test x"$samba_cv_USE_SETUIDX" = x"yes"; then
10574 seteuid=yes;cat >> confdefs.h <<\EOF
10575 #define USE_SETUIDX 1
10582 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
10583 echo "configure:10584: checking for working mmap" >&5
10584 if eval "test \"`echo '$''{'samba_cv_HAVE_MMAP'+set}'`\" = set"; then
10585 echo $ac_n "(cached) $ac_c" 1>&6
10586 else
10588 if test "$cross_compiling" = yes; then
10589 samba_cv_HAVE_MMAP=cross
10590 else
10591 cat > conftest.$ac_ext <<EOF
10592 #line 10593 "configure"
10593 #include "confdefs.h"
10594 #include "${srcdir-.}/tests/shared_mmap.c"
10596 if { (eval echo configure:10597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10597 then
10598 samba_cv_HAVE_MMAP=yes
10599 else
10600 echo "configure: failed program was:" >&5
10601 cat conftest.$ac_ext >&5
10602 rm -fr conftest*
10603 samba_cv_HAVE_MMAP=no
10605 rm -fr conftest*
10610 echo "$ac_t""$samba_cv_HAVE_MMAP" 1>&6
10611 if test x"$samba_cv_HAVE_MMAP" = x"yes"; then
10612 cat >> confdefs.h <<\EOF
10613 #define HAVE_MMAP 1
10618 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
10619 echo "configure:10620: checking for ftruncate needs root" >&5
10620 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
10621 echo $ac_n "(cached) $ac_c" 1>&6
10622 else
10624 if test "$cross_compiling" = yes; then
10625 samba_cv_FTRUNCATE_NEEDS_ROOT=cross
10626 else
10627 cat > conftest.$ac_ext <<EOF
10628 #line 10629 "configure"
10629 #include "confdefs.h"
10630 #include "${srcdir-.}/tests/ftruncroot.c"
10632 if { (eval echo configure:10633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10633 then
10634 samba_cv_FTRUNCATE_NEEDS_ROOT=yes
10635 else
10636 echo "configure: failed program was:" >&5
10637 cat conftest.$ac_ext >&5
10638 rm -fr conftest*
10639 samba_cv_FTRUNCATE_NEEDS_ROOT=no
10641 rm -fr conftest*
10646 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
10647 if test x"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x"yes"; then
10648 cat >> confdefs.h <<\EOF
10649 #define FTRUNCATE_NEEDS_ROOT 1
10654 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
10655 echo "configure:10656: checking for fcntl locking" >&5
10656 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
10657 echo $ac_n "(cached) $ac_c" 1>&6
10658 else
10660 if test "$cross_compiling" = yes; then
10661 samba_cv_HAVE_FCNTL_LOCK=cross
10662 else
10663 cat > conftest.$ac_ext <<EOF
10664 #line 10665 "configure"
10665 #include "confdefs.h"
10666 #include "${srcdir-.}/tests/fcntl_lock.c"
10668 if { (eval echo configure:10669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10669 then
10670 samba_cv_HAVE_FCNTL_LOCK=yes
10671 else
10672 echo "configure: failed program was:" >&5
10673 cat conftest.$ac_ext >&5
10674 rm -fr conftest*
10675 samba_cv_HAVE_FCNTL_LOCK=no
10677 rm -fr conftest*
10682 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
10683 if test x"$samba_cv_HAVE_FCNTL_LOCK" = x"yes"; then
10684 cat >> confdefs.h <<\EOF
10685 #define HAVE_FCNTL_LOCK 1
10690 echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6
10691 echo "configure:10692: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
10692 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_FCNTL64_LOCKS'+set}'`\" = set"; then
10693 echo $ac_n "(cached) $ac_c" 1>&6
10694 else
10696 if test "$cross_compiling" = yes; then
10697 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=cross
10698 else
10699 cat > conftest.$ac_ext <<EOF
10700 #line 10701 "configure"
10701 #include "confdefs.h"
10702 #include "${srcdir-.}/tests/fcntl_lock64.c"
10704 if { (eval echo configure:10705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10705 then
10706 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=yes
10707 else
10708 echo "configure: failed program was:" >&5
10709 cat conftest.$ac_ext >&5
10710 rm -fr conftest*
10711 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=no
10713 rm -fr conftest*
10718 echo "$ac_t""$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" 1>&6
10719 if test x"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x"yes"; then
10720 cat >> confdefs.h <<\EOF
10721 #define HAVE_BROKEN_FCNTL64_LOCKS 1
10725 else
10728 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
10729 echo "configure:10730: checking for 64 bit fcntl locking" >&5
10730 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
10731 echo $ac_n "(cached) $ac_c" 1>&6
10732 else
10734 if test "$cross_compiling" = yes; then
10735 samba_cv_HAVE_STRUCT_FLOCK64=cross
10736 else
10737 cat > conftest.$ac_ext <<EOF
10738 #line 10739 "configure"
10739 #include "confdefs.h"
10741 #if defined(HAVE_UNISTD_H)
10742 #include <unistd.h>
10743 #endif
10744 #include <stdio.h>
10745 #include <stdlib.h>
10747 #ifdef HAVE_FCNTL_H
10748 #include <fcntl.h>
10749 #endif
10751 #ifdef HAVE_SYS_FCNTL_H
10752 #include <sys/fcntl.h>
10753 #endif
10754 main() { struct flock64 fl64;
10755 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
10756 exit(0);
10757 #else
10758 exit(1);
10759 #endif
10762 if { (eval echo configure:10763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10763 then
10764 samba_cv_HAVE_STRUCT_FLOCK64=yes
10765 else
10766 echo "configure: failed program was:" >&5
10767 cat conftest.$ac_ext >&5
10768 rm -fr conftest*
10769 samba_cv_HAVE_STRUCT_FLOCK64=no
10771 rm -fr conftest*
10776 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
10778 if test x"$samba_cv_HAVE_STRUCT_FLOCK64" = x"yes"; then
10779 cat >> confdefs.h <<\EOF
10780 #define HAVE_STRUCT_FLOCK64 1
10786 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
10787 echo "configure:10788: checking for broken nisplus include files" >&5
10788 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
10789 echo $ac_n "(cached) $ac_c" 1>&6
10790 else
10792 cat > conftest.$ac_ext <<EOF
10793 #line 10794 "configure"
10794 #include "confdefs.h"
10795 #include <sys/acl.h>
10796 #if defined(HAVE_RPCSVC_NIS_H)
10797 #include <rpcsvc/nis.h>
10798 #endif
10799 int main() {
10800 return 0;
10801 ; return 0; }
10803 if { (eval echo configure:10804: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10804 rm -rf conftest*
10805 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=no
10806 else
10807 echo "configure: failed program was:" >&5
10808 cat conftest.$ac_ext >&5
10809 rm -rf conftest*
10810 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=yes
10812 rm -f conftest*
10815 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
10816 if test x"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x"yes"; then
10817 cat >> confdefs.h <<\EOF
10818 #define BROKEN_NISPLUS_INCLUDE_FILES 1
10824 #################################################
10825 # check for smbwrapper support
10826 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
10827 echo "configure:10828: checking whether to use smbwrapper" >&5
10828 # Check whether --with-smbwrapper or --without-smbwrapper was given.
10829 if test "${with_smbwrapper+set}" = set; then
10830 withval="$with_smbwrapper"
10831 case "$withval" in
10832 yes)
10833 echo "$ac_t""yes" 1>&6
10834 cat >> confdefs.h <<\EOF
10835 #define WITH_SMBWRAPPER 1
10838 WRAP="bin/smbsh bin/smbwrapper.$SHLIBEXT"
10840 if test x$ATTEMPT_WRAP32_BUILD = x; then
10841 WRAP32=""
10842 else
10843 WRAP32=bin/smbwrapper.32.$SHLIBEXT
10846 # Conditions under which smbwrapper should not be built.
10848 if test x$PICFLAG = x; then
10849 echo No support for PIC code - disabling smbwrapper and smbsh
10850 WRAP=""
10851 WRAP32=""
10852 elif test x$ac_cv_func_syscall = xno; then
10853 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
10854 WRAP=""
10855 WRAP32=""
10859 echo "$ac_t""no" 1>&6
10861 esac
10862 else
10863 echo "$ac_t""no" 1>&6
10868 #################################################
10869 # check for the AFS filesystem
10870 echo $ac_n "checking whether to use AFS""... $ac_c" 1>&6
10871 echo "configure:10872: checking whether to use AFS" >&5
10872 # Check whether --with-afs or --without-afs was given.
10873 if test "${with_afs+set}" = set; then
10874 withval="$with_afs"
10875 case "$withval" in
10876 yes)
10877 echo "$ac_t""yes" 1>&6
10878 cat >> confdefs.h <<\EOF
10879 #define WITH_AFS 1
10884 echo "$ac_t""no" 1>&6
10886 esac
10887 else
10888 echo "$ac_t""no" 1>&6
10894 #################################################
10895 # check for the DFS auth system
10896 echo $ac_n "checking whether to use DCE/DFS auth""... $ac_c" 1>&6
10897 echo "configure:10898: checking whether to use DCE/DFS auth" >&5
10898 # Check whether --with-dfs or --without-dfs was given.
10899 if test "${with_dfs+set}" = set; then
10900 withval="$with_dfs"
10901 case "$withval" in
10902 yes)
10903 echo "$ac_t""yes" 1>&6
10904 cat >> confdefs.h <<\EOF
10905 #define WITH_DFS 1
10910 echo "$ac_t""no" 1>&6
10912 esac
10913 else
10914 echo "$ac_t""no" 1>&6
10919 #################################################
10920 # check for Kerberos IV auth system
10921 echo $ac_n "checking whether to use Kerberos IV""... $ac_c" 1>&6
10922 echo "configure:10923: checking whether to use Kerberos IV" >&5
10923 # Check whether --with-krb4 or --without-krb4 was given.
10924 if test "${with_krb4+set}" = set; then
10925 withval="$with_krb4"
10926 case "$withval" in
10927 yes)
10928 echo "$ac_t""yes" 1>&6
10929 cat >> confdefs.h <<\EOF
10930 #define KRB4_AUTH 1
10933 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
10934 echo "configure:10935: checking for dn_expand in -lresolv" >&5
10935 ac_lib_var=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
10936 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10937 echo $ac_n "(cached) $ac_c" 1>&6
10938 else
10939 ac_save_LIBS="$LIBS"
10940 LIBS="-lresolv $LIBS"
10941 cat > conftest.$ac_ext <<EOF
10942 #line 10943 "configure"
10943 #include "confdefs.h"
10944 /* Override any gcc2 internal prototype to avoid an error. */
10945 /* We use char because int might match the return type of a gcc2
10946 builtin and then its argument prototype would still apply. */
10947 char dn_expand();
10949 int main() {
10950 dn_expand()
10951 ; return 0; }
10953 if { (eval echo configure:10954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10954 rm -rf conftest*
10955 eval "ac_cv_lib_$ac_lib_var=yes"
10956 else
10957 echo "configure: failed program was:" >&5
10958 cat conftest.$ac_ext >&5
10959 rm -rf conftest*
10960 eval "ac_cv_lib_$ac_lib_var=no"
10962 rm -f conftest*
10963 LIBS="$ac_save_LIBS"
10966 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10967 echo "$ac_t""yes" 1>&6
10968 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10969 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10970 cat >> confdefs.h <<EOF
10971 #define $ac_tr_lib 1
10974 LIBS="-lresolv $LIBS"
10976 else
10977 echo "$ac_t""no" 1>&6
10980 LIBS="$LIBS -lkrb -ldes"
10981 CFLAGS="$CFLAGS -I$withval/include"
10982 LDFLAGS="$LDFLAGS -L$withval/lib"
10985 echo "$ac_t""no" 1>&6
10987 esac
10988 else
10989 echo "$ac_t""no" 1>&6
10994 #################################################
10995 # check for Kerberos 5 auth system
10996 echo $ac_n "checking whether to use Kerberos 5""... $ac_c" 1>&6
10997 echo "configure:10998: checking whether to use Kerberos 5" >&5
10998 # Check whether --with-krb5 or --without-krb5 was given.
10999 if test "${with_krb5+set}" = set; then
11000 withval="$with_krb5"
11001 case "$withval" in
11002 yes)
11003 echo "$ac_t""yes" 1>&6
11004 cat >> confdefs.h <<\EOF
11005 #define KRB5_AUTH 1
11008 LIBS="$LIBS -ldes425 -lkrb5 -lcrypto -lcom_err"
11009 CFLAGS="$CFLAGS -I$withval/include"
11010 LDFLAGS="$LDFLAGS -L$withval/lib"
11013 echo "$ac_t""no" 1>&6
11015 esac
11016 else
11017 echo "$ac_t""no" 1>&6
11022 #################################################
11023 # check for automount support
11024 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
11025 echo "configure:11026: checking whether to use AUTOMOUNT" >&5
11026 # Check whether --with-automount or --without-automount was given.
11027 if test "${with_automount+set}" = set; then
11028 withval="$with_automount"
11029 case "$withval" in
11030 yes)
11031 echo "$ac_t""yes" 1>&6
11032 cat >> confdefs.h <<\EOF
11033 #define WITH_AUTOMOUNT 1
11038 echo "$ac_t""no" 1>&6
11040 esac
11041 else
11042 echo "$ac_t""no" 1>&6
11047 #################################################
11048 # check for smbmount support
11049 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
11050 echo "configure:11051: checking whether to use SMBMOUNT" >&5
11051 # Check whether --with-smbmount or --without-smbmount was given.
11052 if test "${with_smbmount+set}" = set; then
11053 withval="$with_smbmount"
11054 case "$withval" in
11055 yes)
11056 case "$host_os" in
11057 *linux*)
11058 echo "$ac_t""yes" 1>&6
11059 cat >> confdefs.h <<\EOF
11060 #define WITH_SMBMOUNT 1
11063 MPROGS="bin/smbmount bin/smbmnt bin/smbumount"
11066 { echo "configure: error: not on a linux system!" 1>&2; exit 1; }
11068 esac
11071 echo "$ac_t""no" 1>&6
11072 MPROGS=
11074 esac
11075 else
11076 echo "$ac_t""no" 1>&6
11077 MPROGS=
11083 #################################################
11084 # check for a PAM password database
11085 with_pam_for_crypt=no
11086 echo $ac_n "checking whether to use PAM password database""... $ac_c" 1>&6
11087 echo "configure:11088: checking whether to use PAM password database" >&5
11088 # Check whether --with-pam or --without-pam was given.
11089 if test "${with_pam+set}" = set; then
11090 withval="$with_pam"
11091 case "$withval" in
11092 yes)
11093 echo "$ac_t""yes" 1>&6
11094 cat >> confdefs.h <<\EOF
11095 #define WITH_PAM 1
11098 LIBS="$LIBS -lpam"
11099 with_pam_for_crypt=yes
11102 echo "$ac_t""no" 1>&6
11104 esac
11105 else
11106 echo "$ac_t""no" 1>&6
11111 # we can't build a pam module if we don't have pam.
11112 echo $ac_n "checking for pam_get_data in -lpam""... $ac_c" 1>&6
11113 echo "configure:11114: checking for pam_get_data in -lpam" >&5
11114 ac_lib_var=`echo pam'_'pam_get_data | sed 'y%./+-%__p_%'`
11115 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11116 echo $ac_n "(cached) $ac_c" 1>&6
11117 else
11118 ac_save_LIBS="$LIBS"
11119 LIBS="-lpam $LIBS"
11120 cat > conftest.$ac_ext <<EOF
11121 #line 11122 "configure"
11122 #include "confdefs.h"
11123 /* Override any gcc2 internal prototype to avoid an error. */
11124 /* We use char because int might match the return type of a gcc2
11125 builtin and then its argument prototype would still apply. */
11126 char pam_get_data();
11128 int main() {
11129 pam_get_data()
11130 ; return 0; }
11132 if { (eval echo configure:11133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11133 rm -rf conftest*
11134 eval "ac_cv_lib_$ac_lib_var=yes"
11135 else
11136 echo "configure: failed program was:" >&5
11137 cat conftest.$ac_ext >&5
11138 rm -rf conftest*
11139 eval "ac_cv_lib_$ac_lib_var=no"
11141 rm -f conftest*
11142 LIBS="$ac_save_LIBS"
11145 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11146 echo "$ac_t""yes" 1>&6
11147 cat >> confdefs.h <<\EOF
11148 #define HAVE_LIBPAM 1
11151 else
11152 echo "$ac_t""no" 1>&6
11156 #################################################
11157 # check for pam_smbpass support
11158 echo $ac_n "checking whether to use pam_smbpass""... $ac_c" 1>&6
11159 echo "configure:11160: checking whether to use pam_smbpass" >&5
11160 # Check whether --with-pam_smbpass or --without-pam_smbpass was given.
11161 if test "${with_pam_smbpass+set}" = set; then
11162 withval="$with_pam_smbpass"
11163 case "$withval" in
11164 yes)
11165 echo "$ac_t""yes" 1>&6
11167 # Conditions under which pam_smbpass should not be built.
11169 if test x$PICFLAG = x; then
11170 echo "$ac_t""No support for PIC code - disabling pam_smbpass" 1>&6
11171 PAM_MOD=""
11172 elif test x$ac_cv_lib_pam_pam_get_data = xno; then
11173 echo "$ac_t""No libpam found -- disabling pam_smbpass" 1>&6
11174 PAM_MOD=""
11175 else
11176 cat >> confdefs.h <<\EOF
11177 #define WITH_PAM_SMBPASS 1
11180 PAM_MOD="bin/pam_smbpass.so"
11184 echo "$ac_t""no" 1>&6
11186 esac
11187 else
11188 echo "$ac_t""no" 1>&6
11194 ###############################################
11195 # test for where we get crypt() from, but only
11196 # if not using PAM
11197 if test $with_pam_for_crypt = no; then
11198 for ac_func in crypt
11200 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11201 echo "configure:11202: checking for $ac_func" >&5
11202 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11203 echo $ac_n "(cached) $ac_c" 1>&6
11204 else
11205 cat > conftest.$ac_ext <<EOF
11206 #line 11207 "configure"
11207 #include "confdefs.h"
11208 /* System header to define __stub macros and hopefully few prototypes,
11209 which can conflict with char $ac_func(); below. */
11210 #include <assert.h>
11211 /* Override any gcc2 internal prototype to avoid an error. */
11212 /* We use char because int might match the return type of a gcc2
11213 builtin and then its argument prototype would still apply. */
11214 char $ac_func();
11216 int main() {
11218 /* The GNU C library defines this for functions which it implements
11219 to always fail with ENOSYS. Some functions are actually named
11220 something starting with __ and the normal name is an alias. */
11221 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11222 choke me
11223 #else
11224 $ac_func();
11225 #endif
11227 ; return 0; }
11229 if { (eval echo configure:11230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11230 rm -rf conftest*
11231 eval "ac_cv_func_$ac_func=yes"
11232 else
11233 echo "configure: failed program was:" >&5
11234 cat conftest.$ac_ext >&5
11235 rm -rf conftest*
11236 eval "ac_cv_func_$ac_func=no"
11238 rm -f conftest*
11241 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11242 echo "$ac_t""yes" 1>&6
11243 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11244 cat >> confdefs.h <<EOF
11245 #define $ac_tr_func 1
11248 else
11249 echo "$ac_t""no" 1>&6
11251 done
11253 if test x"$ac_cv_func_crypt" = x"no"; then
11254 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
11255 echo "configure:11256: checking for crypt in -lcrypt" >&5
11256 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
11257 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11258 echo $ac_n "(cached) $ac_c" 1>&6
11259 else
11260 ac_save_LIBS="$LIBS"
11261 LIBS="-lcrypt $LIBS"
11262 cat > conftest.$ac_ext <<EOF
11263 #line 11264 "configure"
11264 #include "confdefs.h"
11265 /* Override any gcc2 internal prototype to avoid an error. */
11266 /* We use char because int might match the return type of a gcc2
11267 builtin and then its argument prototype would still apply. */
11268 char crypt();
11270 int main() {
11271 crypt()
11272 ; return 0; }
11274 if { (eval echo configure:11275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11275 rm -rf conftest*
11276 eval "ac_cv_lib_$ac_lib_var=yes"
11277 else
11278 echo "configure: failed program was:" >&5
11279 cat conftest.$ac_ext >&5
11280 rm -rf conftest*
11281 eval "ac_cv_lib_$ac_lib_var=no"
11283 rm -f conftest*
11284 LIBS="$ac_save_LIBS"
11287 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11288 echo "$ac_t""yes" 1>&6
11289 LIBS="$LIBS -lcrypt";
11290 cat >> confdefs.h <<\EOF
11291 #define HAVE_CRYPT 1
11294 else
11295 echo "$ac_t""no" 1>&6
11302 ## moved after the check for -lcrypt in order to
11303 ## ensure that the necessary libraries are included
11304 ## check checking for truncated salt. Wrapped by the
11305 ## $with_pam_for_crypt variable as above --jerry
11307 if test $with_pam_for_crypt = no; then
11308 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
11309 echo "configure:11310: checking for a crypt that needs truncated salt" >&5
11310 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
11311 echo $ac_n "(cached) $ac_c" 1>&6
11312 else
11314 if test "$cross_compiling" = yes; then
11315 samba_cv_HAVE_TRUNCATED_SALT=cross
11316 else
11317 cat > conftest.$ac_ext <<EOF
11318 #line 11319 "configure"
11319 #include "confdefs.h"
11320 #include "${srcdir-.}/tests/crypttest.c"
11322 if { (eval echo configure:11323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11323 then
11324 samba_cv_HAVE_TRUNCATED_SALT=no
11325 else
11326 echo "configure: failed program was:" >&5
11327 cat conftest.$ac_ext >&5
11328 rm -fr conftest*
11329 samba_cv_HAVE_TRUNCATED_SALT=yes
11331 rm -fr conftest*
11336 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
11337 if test x"$samba_cv_HAVE_TRUNCATED_SALT" = x"yes"; then
11338 cat >> confdefs.h <<\EOF
11339 #define HAVE_TRUNCATED_SALT 1
11346 ########################################################################################
11348 ## TESTS FOR SAM BACKENDS. KEEP THESE GROUPED TOGETHER
11350 ########################################################################################
11352 ## set the with_smbpasswd_sam as the default
11353 with_smbpasswd_sam=yes
11357 #################################################
11358 # check for a TDB password database
11359 echo $ac_n "checking whether to use TDB SAM database""... $ac_c" 1>&6
11360 echo "configure:11361: checking whether to use TDB SAM database" >&5
11361 # Check whether --with-tdbsam or --without-tdbsam was given.
11362 if test "${with_tdbsam+set}" = set; then
11363 withval="$with_tdbsam"
11364 case "$withval" in
11365 yes)
11366 echo "$ac_t""yes" 1>&6
11367 cat >> confdefs.h <<\EOF
11368 #define WITH_TDB_SAM 1
11371 with_smbpasswd_sam=no
11374 echo "$ac_t""no" 1>&6
11376 esac
11377 else
11378 echo "$ac_t""no" 1>&6
11383 #################################################
11384 # check for a LDAP password database
11385 echo $ac_n "checking whether to use LDAP SAM database""... $ac_c" 1>&6
11386 echo "configure:11387: checking whether to use LDAP SAM database" >&5
11387 # Check whether --with-ldapsam or --without-ldapsam was given.
11388 if test "${with_ldapsam+set}" = set; then
11389 withval="$with_ldapsam"
11390 case "$withval" in
11391 yes)
11392 echo "$ac_t""yes" 1>&6
11393 cat >> confdefs.h <<\EOF
11394 #define WITH_LDAP_SAM 1
11397 LIBS="-lldap -llber -lresolv $LIBS"
11398 with_smbpasswd_sam=no
11401 echo "$ac_t""no" 1>&6
11403 esac
11404 else
11405 echo "$ac_t""no" 1>&6
11410 #################################################
11411 # check for a NISPLUS password database
11412 echo $ac_n "checking whether to use NISPLUS SAM database""... $ac_c" 1>&6
11413 echo "configure:11414: checking whether to use NISPLUS SAM database" >&5
11414 # Check whether --with-nisplussam or --without-nisplussam was given.
11415 if test "${with_nisplussam+set}" = set; then
11416 withval="$with_nisplussam"
11417 case "$withval" in
11418 yes)
11419 echo "$ac_t""yes" 1>&6
11420 cat >> confdefs.h <<\EOF
11421 #define WITH_NISPLUS_SAM 1
11424 with_smbpasswd_sam=no
11427 echo "$ac_t""no" 1>&6
11429 esac
11430 else
11431 echo "$ac_t""no" 1>&6
11436 ################################################
11437 # This test should come last because the
11438 # smbpasswd SAM is only used if another format
11439 # has not been defined
11440 echo $ac_n "checking whether to use traditional smbpasswd file""... $ac_c" 1>&6
11441 echo "configure:11442: checking whether to use traditional smbpasswd file" >&5
11442 if test $with_smbpasswd_sam = yes; then
11443 echo "$ac_t""yes" 1>&6
11444 cat >> confdefs.h <<\EOF
11445 #define WITH_SMBPASSWD_SAM 1
11448 else
11449 echo "$ac_t""no" 1>&6
11452 ########################################################################################
11454 ## END OF TESTS FOR SAM BACKENDS.
11456 ########################################################################################
11458 #################################################
11459 # check for a NISPLUS_HOME support
11460 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
11461 echo "configure:11462: checking whether to use NISPLUS_HOME" >&5
11462 # Check whether --with-nisplus-home or --without-nisplus-home was given.
11463 if test "${with_nisplus_home+set}" = set; then
11464 withval="$with_nisplus_home"
11465 case "$withval" in
11466 yes)
11467 echo "$ac_t""yes" 1>&6
11468 cat >> confdefs.h <<\EOF
11469 #define WITH_NISPLUS_HOME 1
11474 echo "$ac_t""no" 1>&6
11476 esac
11477 else
11478 echo "$ac_t""no" 1>&6
11483 #################################################
11484 # check for the secure socket layer
11485 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
11486 echo "configure:11487: checking whether to use SSL" >&5
11487 # Check whether --with-ssl or --without-ssl was given.
11488 if test "${with_ssl+set}" = set; then
11489 withval="$with_ssl"
11490 case "$withval" in
11491 yes)
11492 echo "$ac_t""yes" 1>&6
11493 cat >> confdefs.h <<\EOF
11494 #define WITH_SSL 1
11497 withval="/usr/local/ssl" # default
11499 if test "${with_sslinc+set}" = set; then
11501 withval="$with_sslinc"
11502 case "$withval" in
11503 yes|no)
11504 echo "configure: warning: --with-sslinc called without argument - will use default" 1>&w
11505 CFLAGS="-I/usr/local/ssl/include $CFLAGS"
11508 CFLAGS="-I${withval} $CFLAGS"
11510 esac
11512 else
11514 CFLAGS="-I/usr/local/ssl/include $CFLAGS"
11518 if test "${with_ssllib+set}" = set; then
11520 withval="$with_ssllib"
11521 case "$withval" in
11522 yes|no)
11523 echo "configure: warning: --with-ssllib called without argument - will use default" 1>&w
11524 LDFLAGS="-L/usr/local/ssl/lib $LDFLAGS"
11527 LDFLAGS="-L${withval}/lib $LDFLAGS"
11529 esac
11531 else
11533 LDFLAGS="-L/usr/local/ssl/lib $LDFLAGS"
11537 LIBS="-lssl -lcrypto $LIBS"
11539 # if test ! -d ${withval}; then
11540 # echo "configure: error: called with --with-ssl, but ssl base directory ${withval} does not exist or is not a directory. Aborting config" 1>&2
11541 # exit 1
11542 # fi
11544 CFLAGS="-DHAVE_CRYPT_DECL $CFLAGS" # Damn, SSLeay defines its own
11548 echo "$ac_t""no" 1>&6
11550 esac
11551 else
11552 echo "$ac_t""no" 1>&6
11557 #################################################
11558 # check for syslog logging
11559 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
11560 echo "configure:11561: checking whether to use syslog logging" >&5
11561 # Check whether --with-syslog or --without-syslog was given.
11562 if test "${with_syslog+set}" = set; then
11563 withval="$with_syslog"
11564 case "$withval" in
11565 yes)
11566 echo "$ac_t""yes" 1>&6
11567 cat >> confdefs.h <<\EOF
11568 #define WITH_SYSLOG 1
11573 echo "$ac_t""no" 1>&6
11575 esac
11576 else
11577 echo "$ac_t""no" 1>&6
11582 #################################################
11583 # check for a shared memory profiling support
11584 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
11585 echo "configure:11586: checking whether to use profiling" >&5
11586 # Check whether --with-profiling-data or --without-profiling-data was given.
11587 if test "${with_profiling_data+set}" = set; then
11588 withval="$with_profiling_data"
11589 case "$withval" in
11590 yes)
11591 echo "$ac_t""yes" 1>&6
11592 cat >> confdefs.h <<\EOF
11593 #define WITH_PROFILE 1
11598 echo "$ac_t""no" 1>&6
11600 esac
11601 else
11602 echo "$ac_t""no" 1>&6
11608 #################################################
11609 # check for experimental disk-quotas support
11610 QUOTAOBJS=smbd/noquotas.o
11612 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
11613 echo "configure:11614: checking whether to support disk-quotas" >&5
11614 # Check whether --with-quotas or --without-quotas was given.
11615 if test "${with_quotas+set}" = set; then
11616 withval="$with_quotas"
11617 case "$withval" in
11618 yes)
11619 echo "$ac_t""yes" 1>&6
11620 QUOTAOBJS=smbd/quotas.o
11621 case "$host_os" in
11622 *linux*)
11623 # Check for kernel 2.4.x quota braindamage...
11624 echo $ac_n "checking for linux 2.4.x quota braindamage..""... $ac_c" 1>&6
11625 echo "configure:11626: checking for linux 2.4.x quota braindamage.." >&5
11626 if eval "test \"`echo '$''{'samba_cv_linux_2_4_quota_braindamage'+set}'`\" = set"; then
11627 echo $ac_n "(cached) $ac_c" 1>&6
11628 else
11630 cat > conftest.$ac_ext <<EOF
11631 #line 11632 "configure"
11632 #include "confdefs.h"
11633 #include <stdio.h>
11634 #include <sys/types.h>
11635 #include <asm/types.h>
11636 #include <linux/quota.h>
11637 #include <mntent.h>
11638 #include <linux/unistd.h>
11639 int main() {
11640 struct mem_dqblk D;
11641 ; return 0; }
11643 if { (eval echo configure:11644: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11644 rm -rf conftest*
11645 samba_cv_linux_2_4_quota_braindamage=yes
11646 else
11647 echo "configure: failed program was:" >&5
11648 cat conftest.$ac_ext >&5
11649 rm -rf conftest*
11650 samba_cv_linux_2_4_quota_braindamage=no
11652 rm -f conftest*
11655 echo "$ac_t""$samba_cv_linux_2_4_quota_braindamage" 1>&6
11656 if test x"$samba_cv_linux_2_4_quota_braindamage" = x"yes"; then
11657 cat >> confdefs.h <<\EOF
11658 #define LINUX_QUOTAS_2 1
11661 else
11662 cat >> confdefs.h <<\EOF
11663 #define LINUX_QUOTAS_1 1
11670 esac
11673 echo "$ac_t""no" 1>&6
11675 esac
11676 else
11677 echo "$ac_t""no" 1>&6
11683 #################################################
11684 # check for experimental utmp accounting
11686 echo $ac_n "checking whether to support utmp accounting""... $ac_c" 1>&6
11687 echo "configure:11688: checking whether to support utmp accounting" >&5
11688 # Check whether --with-utmp or --without-utmp was given.
11689 if test "${with_utmp+set}" = set; then
11690 withval="$with_utmp"
11691 case "$withval" in
11692 yes)
11693 echo "$ac_t""yes" 1>&6
11694 cat >> confdefs.h <<\EOF
11695 #define WITH_UTMP 1
11700 echo "$ac_t""no" 1>&6
11702 esac
11703 else
11704 echo "$ac_t""no" 1>&6
11709 #################################################
11710 # check for MS Dfs support
11712 echo $ac_n "checking whether to support Microsoft Dfs""... $ac_c" 1>&6
11713 echo "configure:11714: checking whether to support Microsoft Dfs" >&5
11714 # Check whether --with-msdfs or --without-msdfs was given.
11715 if test "${with_msdfs+set}" = set; then
11716 withval="$with_msdfs"
11717 case "$withval" in
11718 yes)
11719 echo "$ac_t""yes" 1>&6
11720 cat >> confdefs.h <<\EOF
11721 #define WITH_MSDFS 1
11726 echo "$ac_t""no" 1>&6
11728 esac
11729 else
11730 echo "$ac_t""no" 1>&6
11735 #################################################
11736 # check for Samba VFS support
11738 echo $ac_n "checking whether to support the experimantal Samba vfs""... $ac_c" 1>&6
11739 echo "configure:11740: checking whether to support the experimantal Samba vfs" >&5
11740 # Check whether --with-vfs or --without-vfs was given.
11741 if test "${with_vfs+set}" = set; then
11742 withval="$with_vfs"
11743 case "$withval" in
11744 yes)
11745 echo "$ac_t""yes" 1>&6
11746 cat >> confdefs.h <<\EOF
11747 #define WITH_VFS 1
11752 echo "$ac_t""no" 1>&6
11754 esac
11755 else
11756 echo "$ac_t""no" 1>&6
11761 #################################################
11762 # these tests are taken from the GNU fileutils package
11763 echo "checking how to get filesystem space usage" 1>&6
11764 echo "configure:11765: checking how to get filesystem space usage" >&5
11765 space=no
11767 # Test for statvfs64.
11768 if test $space = no; then
11769 # SVR4
11770 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
11771 echo "configure:11772: checking statvfs64 function (SVR4)" >&5
11772 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
11773 echo $ac_n "(cached) $ac_c" 1>&6
11774 else
11775 if test "$cross_compiling" = yes; then
11776 fu_cv_sys_stat_statvfs64=cross
11777 else
11778 cat > conftest.$ac_ext <<EOF
11779 #line 11780 "configure"
11780 #include "confdefs.h"
11782 #if defined(HAVE_UNISTD_H)
11783 #include <unistd.h>
11784 #endif
11785 #include <sys/types.h>
11786 #include <sys/statvfs.h>
11787 main ()
11789 struct statvfs64 fsd;
11790 exit (statvfs64 (".", &fsd));
11793 if { (eval echo configure:11794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11794 then
11795 fu_cv_sys_stat_statvfs64=yes
11796 else
11797 echo "configure: failed program was:" >&5
11798 cat conftest.$ac_ext >&5
11799 rm -fr conftest*
11800 fu_cv_sys_stat_statvfs64=no
11802 rm -fr conftest*
11807 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
11808 if test $fu_cv_sys_stat_statvfs64 = yes; then
11809 space=yes
11810 cat >> confdefs.h <<\EOF
11811 #define STAT_STATVFS64 1
11817 # Perform only the link test since it seems there are no variants of the
11818 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
11819 # because that got a false positive on SCO OSR5. Adding the declaration
11820 # of a `struct statvfs' causes this test to fail (as it should) on such
11821 # systems. That system is reported to work fine with STAT_STATFS4 which
11822 # is what it gets when this test fails.
11823 if test $space = no; then
11824 # SVR4
11825 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
11826 echo "configure:11827: checking statvfs function (SVR4)" >&5
11827 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
11828 echo $ac_n "(cached) $ac_c" 1>&6
11829 else
11830 cat > conftest.$ac_ext <<EOF
11831 #line 11832 "configure"
11832 #include "confdefs.h"
11833 #include <sys/types.h>
11834 #include <sys/statvfs.h>
11835 int main() {
11836 struct statvfs fsd; statvfs (0, &fsd);
11837 ; return 0; }
11839 if { (eval echo configure:11840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11840 rm -rf conftest*
11841 fu_cv_sys_stat_statvfs=yes
11842 else
11843 echo "configure: failed program was:" >&5
11844 cat conftest.$ac_ext >&5
11845 rm -rf conftest*
11846 fu_cv_sys_stat_statvfs=no
11848 rm -f conftest*
11851 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
11852 if test $fu_cv_sys_stat_statvfs = yes; then
11853 space=yes
11854 cat >> confdefs.h <<\EOF
11855 #define STAT_STATVFS 1
11861 if test $space = no; then
11862 # DEC Alpha running OSF/1
11863 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
11864 echo "configure:11865: checking for 3-argument statfs function (DEC OSF/1)" >&5
11865 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
11866 echo $ac_n "(cached) $ac_c" 1>&6
11867 else
11868 if test "$cross_compiling" = yes; then
11869 fu_cv_sys_stat_statfs3_osf1=no
11870 else
11871 cat > conftest.$ac_ext <<EOF
11872 #line 11873 "configure"
11873 #include "confdefs.h"
11875 #include <sys/param.h>
11876 #include <sys/types.h>
11877 #include <sys/mount.h>
11878 main ()
11880 struct statfs fsd;
11881 fsd.f_fsize = 0;
11882 exit (statfs (".", &fsd, sizeof (struct statfs)));
11885 if { (eval echo configure:11886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11886 then
11887 fu_cv_sys_stat_statfs3_osf1=yes
11888 else
11889 echo "configure: failed program was:" >&5
11890 cat conftest.$ac_ext >&5
11891 rm -fr conftest*
11892 fu_cv_sys_stat_statfs3_osf1=no
11894 rm -fr conftest*
11899 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
11900 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
11901 space=yes
11902 cat >> confdefs.h <<\EOF
11903 #define STAT_STATFS3_OSF1 1
11909 if test $space = no; then
11910 # AIX
11911 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
11912 echo "configure:11913: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
11913 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
11914 echo $ac_n "(cached) $ac_c" 1>&6
11915 else
11916 if test "$cross_compiling" = yes; then
11917 fu_cv_sys_stat_statfs2_bsize=no
11918 else
11919 cat > conftest.$ac_ext <<EOF
11920 #line 11921 "configure"
11921 #include "confdefs.h"
11923 #ifdef HAVE_SYS_PARAM_H
11924 #include <sys/param.h>
11925 #endif
11926 #ifdef HAVE_SYS_MOUNT_H
11927 #include <sys/mount.h>
11928 #endif
11929 #ifdef HAVE_SYS_VFS_H
11930 #include <sys/vfs.h>
11931 #endif
11932 main ()
11934 struct statfs fsd;
11935 fsd.f_bsize = 0;
11936 exit (statfs (".", &fsd));
11939 if { (eval echo configure:11940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11940 then
11941 fu_cv_sys_stat_statfs2_bsize=yes
11942 else
11943 echo "configure: failed program was:" >&5
11944 cat conftest.$ac_ext >&5
11945 rm -fr conftest*
11946 fu_cv_sys_stat_statfs2_bsize=no
11948 rm -fr conftest*
11953 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
11954 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
11955 space=yes
11956 cat >> confdefs.h <<\EOF
11957 #define STAT_STATFS2_BSIZE 1
11963 if test $space = no; then
11964 # SVR3
11965 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
11966 echo "configure:11967: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
11967 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
11968 echo $ac_n "(cached) $ac_c" 1>&6
11969 else
11970 if test "$cross_compiling" = yes; then
11971 fu_cv_sys_stat_statfs4=no
11972 else
11973 cat > conftest.$ac_ext <<EOF
11974 #line 11975 "configure"
11975 #include "confdefs.h"
11976 #include <sys/types.h>
11977 #include <sys/statfs.h>
11978 main ()
11980 struct statfs fsd;
11981 exit (statfs (".", &fsd, sizeof fsd, 0));
11984 if { (eval echo configure:11985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11985 then
11986 fu_cv_sys_stat_statfs4=yes
11987 else
11988 echo "configure: failed program was:" >&5
11989 cat conftest.$ac_ext >&5
11990 rm -fr conftest*
11991 fu_cv_sys_stat_statfs4=no
11993 rm -fr conftest*
11998 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
11999 if test $fu_cv_sys_stat_statfs4 = yes; then
12000 space=yes
12001 cat >> confdefs.h <<\EOF
12002 #define STAT_STATFS4 1
12008 if test $space = no; then
12009 # 4.4BSD and NetBSD
12010 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
12011 echo "configure:12012: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
12012 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
12013 echo $ac_n "(cached) $ac_c" 1>&6
12014 else
12015 if test "$cross_compiling" = yes; then
12016 fu_cv_sys_stat_statfs2_fsize=no
12017 else
12018 cat > conftest.$ac_ext <<EOF
12019 #line 12020 "configure"
12020 #include "confdefs.h"
12021 #include <sys/types.h>
12022 #ifdef HAVE_SYS_PARAM_H
12023 #include <sys/param.h>
12024 #endif
12025 #ifdef HAVE_SYS_MOUNT_H
12026 #include <sys/mount.h>
12027 #endif
12028 main ()
12030 struct statfs fsd;
12031 fsd.f_fsize = 0;
12032 exit (statfs (".", &fsd));
12035 if { (eval echo configure:12036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12036 then
12037 fu_cv_sys_stat_statfs2_fsize=yes
12038 else
12039 echo "configure: failed program was:" >&5
12040 cat conftest.$ac_ext >&5
12041 rm -fr conftest*
12042 fu_cv_sys_stat_statfs2_fsize=no
12044 rm -fr conftest*
12049 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
12050 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
12051 space=yes
12052 cat >> confdefs.h <<\EOF
12053 #define STAT_STATFS2_FSIZE 1
12059 if test $space = no; then
12060 # Ultrix
12061 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
12062 echo "configure:12063: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
12063 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
12064 echo $ac_n "(cached) $ac_c" 1>&6
12065 else
12066 if test "$cross_compiling" = yes; then
12067 fu_cv_sys_stat_fs_data=no
12068 else
12069 cat > conftest.$ac_ext <<EOF
12070 #line 12071 "configure"
12071 #include "confdefs.h"
12072 #include <sys/types.h>
12073 #ifdef HAVE_SYS_PARAM_H
12074 #include <sys/param.h>
12075 #endif
12076 #ifdef HAVE_SYS_MOUNT_H
12077 #include <sys/mount.h>
12078 #endif
12079 #ifdef HAVE_SYS_FS_TYPES_H
12080 #include <sys/fs_types.h>
12081 #endif
12082 main ()
12084 struct fs_data fsd;
12085 /* Ultrix's statfs returns 1 for success,
12086 0 for not mounted, -1 for failure. */
12087 exit (statfs (".", &fsd) != 1);
12090 if { (eval echo configure:12091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12091 then
12092 fu_cv_sys_stat_fs_data=yes
12093 else
12094 echo "configure: failed program was:" >&5
12095 cat conftest.$ac_ext >&5
12096 rm -fr conftest*
12097 fu_cv_sys_stat_fs_data=no
12099 rm -fr conftest*
12104 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
12105 if test $fu_cv_sys_stat_fs_data = yes; then
12106 space=yes
12107 cat >> confdefs.h <<\EOF
12108 #define STAT_STATFS2_FS_DATA 1
12115 # As a gating factor for large file support, in order to
12116 # use <4GB files we must have the following minimal support
12117 # available.
12118 # long long, and a 64 bit off_t or off64_t.
12119 # If we don't have all of these then disable large
12120 # file support.
12122 echo $ac_n "checking checking if large file support can be enabled""... $ac_c" 1>&6
12123 echo "configure:12124: checking checking if large file support can be enabled" >&5
12124 cat > conftest.$ac_ext <<EOF
12125 #line 12126 "configure"
12126 #include "confdefs.h"
12128 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
12129 #include <sys/types.h>
12130 #else
12131 __COMPILE_ERROR_
12132 #endif
12134 int main() {
12135 int i
12136 ; return 0; }
12138 if { (eval echo configure:12139: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12139 rm -rf conftest*
12140 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=yes
12141 else
12142 echo "configure: failed program was:" >&5
12143 cat conftest.$ac_ext >&5
12144 rm -rf conftest*
12145 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=no
12147 rm -f conftest*
12148 if test x"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x"yes"; then
12149 echo "$ac_t""yes" 1>&6
12150 cat >> confdefs.h <<\EOF
12151 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
12154 else
12155 echo "$ac_t""no" 1>&6
12158 # Check whether --with-spinlocks or --without-spinlocks was given.
12159 if test "${with_spinlocks+set}" = set; then
12160 withval="$with_spinlocks"
12164 if test "x$with_spinlocks" = "xyes"; then
12165 cat >> confdefs.h <<\EOF
12166 #define USE_SPINLOCKS 1
12170 case "$host_cpu" in
12171 sparc)
12172 cat >> confdefs.h <<\EOF
12173 #define SPARC_SPINLOCKS 1
12178 i386|i486|i586|i686)
12179 cat >> confdefs.h <<\EOF
12180 #define INTEL_SPINLOCKS 1
12185 mips)
12186 cat >> confdefs.h <<\EOF
12187 #define MIPS_SPINLOCKS 1
12192 powerpc)
12193 cat >> confdefs.h <<\EOF
12194 #define POWERPC_SPINLOCKS 1
12198 esac
12201 #################################################
12202 # check for ACL support
12204 echo $ac_n "checking whether to support ACLs""... $ac_c" 1>&6
12205 echo "configure:12206: checking whether to support ACLs" >&5
12206 # Check whether --with-acl-support or --without-acl-support was given.
12207 if test "${with_acl_support+set}" = set; then
12208 withval="$with_acl_support"
12209 case "$withval" in
12210 yes)
12212 case "$host_os" in
12213 *sysv5*)
12214 echo "$ac_t""Using UnixWare ACLs" 1>&6
12215 cat >> confdefs.h <<\EOF
12216 #define HAVE_UNIXWARE_ACLS 1
12220 *solaris*)
12221 echo "$ac_t""Using solaris ACLs" 1>&6
12222 cat >> confdefs.h <<\EOF
12223 #define HAVE_SOLARIS_ACLS 1
12227 *irix*)
12228 echo "$ac_t""Using IRIX ACLs" 1>&6
12229 cat >> confdefs.h <<\EOF
12230 #define HAVE_IRIX_ACLS 1
12234 *aix*)
12235 echo "$ac_t""Using AIX ACLs" 1>&6
12236 cat >> confdefs.h <<\EOF
12237 #define HAVE_AIX_ACLS 1
12241 *osf*)
12242 echo "$ac_t""Using Tru64 ACLs" 1>&6
12243 cat >> confdefs.h <<\EOF
12244 #define HAVE_TRU64_ACLS 1
12247 LIBS="$LIBS -lpacl"
12250 echo $ac_n "checking for acl_get_file in -lacl""... $ac_c" 1>&6
12251 echo "configure:12252: checking for acl_get_file in -lacl" >&5
12252 ac_lib_var=`echo acl'_'acl_get_file | sed 'y%./+-%__p_%'`
12253 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12254 echo $ac_n "(cached) $ac_c" 1>&6
12255 else
12256 ac_save_LIBS="$LIBS"
12257 LIBS="-lacl $LIBS"
12258 cat > conftest.$ac_ext <<EOF
12259 #line 12260 "configure"
12260 #include "confdefs.h"
12261 /* Override any gcc2 internal prototype to avoid an error. */
12262 /* We use char because int might match the return type of a gcc2
12263 builtin and then its argument prototype would still apply. */
12264 char acl_get_file();
12266 int main() {
12267 acl_get_file()
12268 ; return 0; }
12270 if { (eval echo configure:12271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12271 rm -rf conftest*
12272 eval "ac_cv_lib_$ac_lib_var=yes"
12273 else
12274 echo "configure: failed program was:" >&5
12275 cat conftest.$ac_ext >&5
12276 rm -rf conftest*
12277 eval "ac_cv_lib_$ac_lib_var=no"
12279 rm -f conftest*
12280 LIBS="$ac_save_LIBS"
12283 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12284 echo "$ac_t""yes" 1>&6
12285 ac_tr_lib=HAVE_LIB`echo acl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
12286 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
12287 cat >> confdefs.h <<EOF
12288 #define $ac_tr_lib 1
12291 LIBS="-lacl $LIBS"
12293 else
12294 echo "$ac_t""no" 1>&6
12297 echo $ac_n "checking for ACL support""... $ac_c" 1>&6
12298 echo "configure:12299: checking for ACL support" >&5
12299 if eval "test \"`echo '$''{'samba_cv_HAVE_POSIX_ACLS'+set}'`\" = set"; then
12300 echo $ac_n "(cached) $ac_c" 1>&6
12301 else
12303 cat > conftest.$ac_ext <<EOF
12304 #line 12305 "configure"
12305 #include "confdefs.h"
12306 #include <sys/types.h>
12307 #include <sys/acl.h>
12308 int main() {
12309 acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
12310 ; return 0; }
12312 if { (eval echo configure:12313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12313 rm -rf conftest*
12314 samba_cv_HAVE_POSIX_ACLS=yes
12315 else
12316 echo "configure: failed program was:" >&5
12317 cat conftest.$ac_ext >&5
12318 rm -rf conftest*
12319 samba_cv_HAVE_POSIX_ACLS=no
12321 rm -f conftest*
12324 echo "$ac_t""$samba_cv_HAVE_POSIX_ACLS" 1>&6
12325 if test x"$samba_cv_HAVE_POSIX_ACLS" = x"yes"; then
12326 echo "$ac_t""Using posix ACLs" 1>&6
12327 cat >> confdefs.h <<\EOF
12328 #define HAVE_POSIX_ACLS 1
12331 echo $ac_n "checking for acl_get_perm_np""... $ac_c" 1>&6
12332 echo "configure:12333: checking for acl_get_perm_np" >&5
12333 if eval "test \"`echo '$''{'samba_cv_HAVE_ACL_GET_PERM_NP'+set}'`\" = set"; then
12334 echo $ac_n "(cached) $ac_c" 1>&6
12335 else
12337 cat > conftest.$ac_ext <<EOF
12338 #line 12339 "configure"
12339 #include "confdefs.h"
12340 #include <sys/types.h>
12341 #include <sys/acl.h>
12342 int main() {
12343 acl_permset_t permset_d; acl_perm_t perm; return acl_get_perm_np( permset_d, perm);
12344 ; return 0; }
12346 if { (eval echo configure:12347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12347 rm -rf conftest*
12348 samba_cv_HAVE_ACL_GET_PERM_NP=yes
12349 else
12350 echo "configure: failed program was:" >&5
12351 cat conftest.$ac_ext >&5
12352 rm -rf conftest*
12353 samba_cv_HAVE_ACL_GET_PERM_NP=no
12355 rm -f conftest*
12358 echo "$ac_t""$samba_cv_HAVE_ACL_GET_PERM_NP" 1>&6
12359 if test x"$samba_cv_HAVE_ACL_GET_PERM_NP" = x"yes"; then
12360 cat >> confdefs.h <<\EOF
12361 #define HAVE_ACL_GET_PERM_NP 1
12367 esac
12370 echo "$ac_t""no" 1>&6
12371 cat >> confdefs.h <<\EOF
12372 #define HAVE_NO_ACLS 1
12376 esac
12377 else
12378 cat >> confdefs.h <<\EOF
12379 #define HAVE_NO_ACLS 1
12382 echo "$ac_t""no" 1>&6
12387 #################################################
12388 # check for the historical SAMBA installation
12390 if test "x$prefix" = xNONE -a "$sbindir" = "\${exec_prefix}/sbin"; then
12391 # Put all binaries under the /usr/local/samba/bin directory.
12392 sbindir="$bindir"
12395 #################################################
12396 # Check whether winbind is supported on this platform. If so we need to
12397 # build and install client programs (WINBIND_TARGETS), sbin programs
12398 # (WINBIND_STARGETS) and shared libraries (WINBIND_LTARGETS).
12400 echo $ac_n "checking whether to build winbind""... $ac_c" 1>&6
12401 echo "configure:12402: checking whether to build winbind" >&5
12403 # Initially, the value of $host_os decides whether winbind is supported
12405 case "$host_os" in
12406 *linux*|*solaris*)
12407 HAVE_WINBIND=yes
12410 HAVE_WINBIND=no
12411 winbind_no_reason=", unsupported on $host_os"
12413 esac
12415 # Check the setting of --with-winbindd
12417 # Check whether --with-winbind or --without-winbind was given.
12418 if test "${with_winbind+set}" = set; then
12419 withval="$with_winbind"
12421 case "$withval" in
12422 yes)
12423 HAVE_WINBIND=yes
12426 HAVE_WINBIND=no
12427 winbind_reason=""
12429 esac
12433 # We need unix domain sockets for winbind
12435 if test x"$HAVE_WINBIND" = x"yes"; then
12436 if test x"$samba_cv_unixsocket" = x"no"; then
12437 winbind_no_reason=", no unix domain socket support on $host_os"
12438 HAVE_WINBIND=no
12442 # Display test results
12444 if test x"$HAVE_WINBIND" = x"yes"; then
12446 echo "$ac_t""yes" 1>&6
12448 WINBIND_TARGETS="\$(WINBIND_PROGS)"
12449 WINBIND_STARGETS="\$(WINBIND_SPROGS)"
12450 WINBIND_LTARGETS="\$(WINBIND_LPROGS)"
12452 case "$with_pam" in
12453 yes)
12454 WINBIND_PAM_PROGS="\$(WINBIND_PAM_PROGS)"
12456 esac
12457 else
12458 echo "$ac_t""no$winbind_no_reason" 1>&6
12460 WINBIND_TARGETS=""
12461 WINBIND_STARGETS=""
12462 WINBIND_LTARGETS=""
12463 WINBIND_PAM_PROGS=""
12466 # Substitution time!
12473 #################################################
12474 # final configure stuff
12475 echo "checking configure summary"
12476 if test "$cross_compiling" = yes; then
12478 else
12479 cat > conftest.$ac_ext <<EOF
12480 #line 12481 "configure"
12481 #include "confdefs.h"
12482 #include "${srcdir-.}/tests/summary.c"
12484 if { (eval echo configure:12485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12485 then
12486 echo "configure OK";
12487 else
12488 echo "configure: failed program was:" >&5
12489 cat conftest.$ac_ext >&5
12490 rm -fr conftest*
12491 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }
12493 rm -fr conftest*
12497 builddir=`pwd`
12500 trap '' 1 2 15
12501 cat > confcache <<\EOF
12502 # This file is a shell script that caches the results of configure
12503 # tests run on this system so they can be shared between configure
12504 # scripts and configure runs. It is not useful on other systems.
12505 # If it contains results you don't want to keep, you may remove or edit it.
12507 # By default, configure uses ./config.cache as the cache file,
12508 # creating it if it does not exist already. You can give configure
12509 # the --cache-file=FILE option to use a different cache file; that is
12510 # what configure does when it calls configure scripts in
12511 # subdirectories, so they share the cache.
12512 # Giving --cache-file=/dev/null disables caching, for debugging configure.
12513 # config.status only pays attention to the cache file if you give it the
12514 # --recheck option to rerun configure.
12517 # The following way of writing the cache mishandles newlines in values,
12518 # but we know of no workaround that is simple, portable, and efficient.
12519 # So, don't put newlines in cache variables' values.
12520 # Ultrix sh set writes to stderr and can't be redirected directly,
12521 # and sets the high bit in the cache file unless we assign to the vars.
12522 (set) 2>&1 |
12523 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12524 *ac_space=\ *)
12525 # `set' does not quote correctly, so add quotes (double-quote substitution
12526 # turns \\\\ into \\, and sed turns \\ into \).
12527 sed -n \
12528 -e "s/'/'\\\\''/g" \
12529 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
12532 # `set' quotes correctly as required by POSIX, so do not add quotes.
12533 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
12535 esac >> confcache
12536 if cmp -s $cache_file confcache; then
12538 else
12539 if test -w $cache_file; then
12540 echo "updating cache $cache_file"
12541 cat confcache > $cache_file
12542 else
12543 echo "not updating unwritable cache $cache_file"
12546 rm -f confcache
12548 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
12550 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12551 # Let make expand exec_prefix.
12552 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12554 # Any assignment to VPATH causes Sun make to only execute
12555 # the first set of double-colon rules, so remove it if not needed.
12556 # If there is a colon in the path, we need to keep it.
12557 if test "x$srcdir" = x.; then
12558 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
12561 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
12563 DEFS=-DHAVE_CONFIG_H
12565 # Without the "./", some shells look in PATH for config.status.
12566 : ${CONFIG_STATUS=./config.status}
12568 echo creating $CONFIG_STATUS
12569 rm -f $CONFIG_STATUS
12570 cat > $CONFIG_STATUS <<EOF
12571 #! /bin/sh
12572 # Generated automatically by configure.
12573 # Run this file to recreate the current configuration.
12574 # This directory was configured as follows,
12575 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12577 # $0 $ac_configure_args
12579 # Compiler output produced by configure, useful for debugging
12580 # configure, is in ./config.log if it exists.
12582 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
12583 for ac_option
12585 case "\$ac_option" in
12586 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12587 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
12588 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
12589 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
12590 echo "$CONFIG_STATUS generated by autoconf version 2.13"
12591 exit 0 ;;
12592 -help | --help | --hel | --he | --h)
12593 echo "\$ac_cs_usage"; exit 0 ;;
12594 *) echo "\$ac_cs_usage"; exit 1 ;;
12595 esac
12596 done
12598 ac_given_srcdir=$srcdir
12599 ac_given_INSTALL="$INSTALL"
12601 trap 'rm -fr `echo "include/stamp-h Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
12603 cat >> $CONFIG_STATUS <<EOF
12605 # Protect against being on the right side of a sed subst in config.status.
12606 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
12607 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
12608 $ac_vpsub
12609 $extrasub
12610 s%@SHELL@%$SHELL%g
12611 s%@CFLAGS@%$CFLAGS%g
12612 s%@CPPFLAGS@%$CPPFLAGS%g
12613 s%@CXXFLAGS@%$CXXFLAGS%g
12614 s%@FFLAGS@%$FFLAGS%g
12615 s%@DEFS@%$DEFS%g
12616 s%@LDFLAGS@%$LDFLAGS%g
12617 s%@LIBS@%$LIBS%g
12618 s%@exec_prefix@%$exec_prefix%g
12619 s%@prefix@%$prefix%g
12620 s%@program_transform_name@%$program_transform_name%g
12621 s%@bindir@%$bindir%g
12622 s%@sbindir@%$sbindir%g
12623 s%@libexecdir@%$libexecdir%g
12624 s%@datadir@%$datadir%g
12625 s%@sysconfdir@%$sysconfdir%g
12626 s%@sharedstatedir@%$sharedstatedir%g
12627 s%@localstatedir@%$localstatedir%g
12628 s%@libdir@%$libdir%g
12629 s%@includedir@%$includedir%g
12630 s%@oldincludedir@%$oldincludedir%g
12631 s%@infodir@%$infodir%g
12632 s%@mandir@%$mandir%g
12633 s%@codepagedir@%$codepagedir%g
12634 s%@configdir@%$configdir%g
12635 s%@lockdir@%$lockdir%g
12636 s%@logfilebase@%$logfilebase%g
12637 s%@privatedir@%$privatedir%g
12638 s%@swatdir@%$swatdir%g
12639 s%@RUNPROG@%$RUNPROG%g
12640 s%@MPROGS@%$MPROGS%g
12641 s%@LDSHFLAGS@%$LDSHFLAGS%g
12642 s%@HOST_OS@%$HOST_OS%g
12643 s%@PAM_MOD@%$PAM_MOD%g
12644 s%@WRAP@%$WRAP%g
12645 s%@WRAP32@%$WRAP32%g
12646 s%@PICFLAG@%$PICFLAG%g
12647 s%@PICSUFFIX@%$PICSUFFIX%g
12648 s%@SHLIBEXT@%$SHLIBEXT%g
12649 s%@BLDSHARED@%$BLDSHARED%g
12650 s%@CC@%$CC%g
12651 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
12652 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
12653 s%@INSTALL_DATA@%$INSTALL_DATA%g
12654 s%@AWK@%$AWK%g
12655 s%@BROKEN_CC@%$BROKEN_CC%g
12656 s%@host@%$host%g
12657 s%@host_alias@%$host_alias%g
12658 s%@host_cpu@%$host_cpu%g
12659 s%@host_vendor@%$host_vendor%g
12660 s%@host_os@%$host_os%g
12661 s%@target@%$target%g
12662 s%@target_alias@%$target_alias%g
12663 s%@target_cpu@%$target_cpu%g
12664 s%@target_vendor@%$target_vendor%g
12665 s%@target_os@%$target_os%g
12666 s%@build@%$build%g
12667 s%@build_alias@%$build_alias%g
12668 s%@build_cpu@%$build_cpu%g
12669 s%@build_vendor@%$build_vendor%g
12670 s%@build_os@%$build_os%g
12671 s%@CPP@%$CPP%g
12672 s%@LIBOBJS@%$LIBOBJS%g
12673 s%@TERMLIBS@%$TERMLIBS%g
12674 s%@TERMLDFLAGS@%$TERMLDFLAGS%g
12675 s%@ROFF@%$ROFF%g
12676 s%@QUOTAOBJS@%$QUOTAOBJS%g
12677 s%@WINBIND_TARGETS@%$WINBIND_TARGETS%g
12678 s%@WINBIND_STARGETS@%$WINBIND_STARGETS%g
12679 s%@WINBIND_LTARGETS@%$WINBIND_LTARGETS%g
12680 s%@WINBIND_PAM_PROGS@%$WINBIND_PAM_PROGS%g
12681 s%@builddir@%$builddir%g
12683 CEOF
12686 cat >> $CONFIG_STATUS <<\EOF
12688 # Split the substitutions into bite-sized pieces for seds with
12689 # small command number limits, like on Digital OSF/1 and HP-UX.
12690 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
12691 ac_file=1 # Number of current file.
12692 ac_beg=1 # First line for current file.
12693 ac_end=$ac_max_sed_cmds # Line after last line for current file.
12694 ac_more_lines=:
12695 ac_sed_cmds=""
12696 while $ac_more_lines; do
12697 if test $ac_beg -gt 1; then
12698 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
12699 else
12700 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
12702 if test ! -s conftest.s$ac_file; then
12703 ac_more_lines=false
12704 rm -f conftest.s$ac_file
12705 else
12706 if test -z "$ac_sed_cmds"; then
12707 ac_sed_cmds="sed -f conftest.s$ac_file"
12708 else
12709 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
12711 ac_file=`expr $ac_file + 1`
12712 ac_beg=$ac_end
12713 ac_end=`expr $ac_end + $ac_max_sed_cmds`
12715 done
12716 if test -z "$ac_sed_cmds"; then
12717 ac_sed_cmds=cat
12721 cat >> $CONFIG_STATUS <<EOF
12723 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile"}
12725 cat >> $CONFIG_STATUS <<\EOF
12726 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
12727 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12728 case "$ac_file" in
12729 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
12730 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12731 *) ac_file_in="${ac_file}.in" ;;
12732 esac
12734 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
12736 # Remove last slash and all that follows it. Not all systems have dirname.
12737 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
12738 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
12739 # The file is in a subdirectory.
12740 test ! -d "$ac_dir" && mkdir "$ac_dir"
12741 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
12742 # A "../" for each directory in $ac_dir_suffix.
12743 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
12744 else
12745 ac_dir_suffix= ac_dots=
12748 case "$ac_given_srcdir" in
12749 .) srcdir=.
12750 if test -z "$ac_dots"; then top_srcdir=.
12751 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
12752 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
12753 *) # Relative path.
12754 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
12755 top_srcdir="$ac_dots$ac_given_srcdir" ;;
12756 esac
12758 case "$ac_given_INSTALL" in
12759 [/$]*) INSTALL="$ac_given_INSTALL" ;;
12760 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
12761 esac
12763 echo creating "$ac_file"
12764 rm -f "$ac_file"
12765 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
12766 case "$ac_file" in
12767 *Makefile*) ac_comsub="1i\\
12768 # $configure_input" ;;
12769 *) ac_comsub= ;;
12770 esac
12772 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
12773 sed -e "$ac_comsub
12774 s%@configure_input@%$configure_input%g
12775 s%@srcdir@%$srcdir%g
12776 s%@top_srcdir@%$top_srcdir%g
12777 s%@INSTALL@%$INSTALL%g
12778 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
12779 fi; done
12780 rm -f conftest.s*
12782 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12783 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12785 # ac_d sets the value in "#define NAME VALUE" lines.
12786 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12787 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
12788 ac_dC='\3'
12789 ac_dD='%g'
12790 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
12791 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12792 ac_uB='\([ ]\)%\1#\2define\3'
12793 ac_uC=' '
12794 ac_uD='\4%g'
12795 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12796 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12797 ac_eB='$%\1#\2define\3'
12798 ac_eC=' '
12799 ac_eD='%g'
12801 if test "${CONFIG_HEADERS+set}" != set; then
12803 cat >> $CONFIG_STATUS <<EOF
12804 CONFIG_HEADERS="include/config.h"
12806 cat >> $CONFIG_STATUS <<\EOF
12808 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
12809 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12810 case "$ac_file" in
12811 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
12812 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12813 *) ac_file_in="${ac_file}.in" ;;
12814 esac
12816 echo creating $ac_file
12818 rm -f conftest.frag conftest.in conftest.out
12819 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
12820 cat $ac_file_inputs > conftest.in
12824 # Transform confdefs.h into a sed script conftest.vals that substitutes
12825 # the proper values into config.h.in to produce config.h. And first:
12826 # Protect against being on the right side of a sed subst in config.status.
12827 # Protect against being in an unquoted here document in config.status.
12828 rm -f conftest.vals
12829 cat > conftest.hdr <<\EOF
12830 s/[\\&%]/\\&/g
12831 s%[\\$`]%\\&%g
12832 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
12833 s%ac_d%ac_u%gp
12834 s%ac_u%ac_e%gp
12836 sed -n -f conftest.hdr confdefs.h > conftest.vals
12837 rm -f conftest.hdr
12839 # This sed command replaces #undef with comments. This is necessary, for
12840 # example, in the case of _POSIX_SOURCE, which is predefined and required
12841 # on some systems where configure will not decide to define it.
12842 cat >> conftest.vals <<\EOF
12843 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
12846 # Break up conftest.vals because some shells have a limit on
12847 # the size of here documents, and old seds have small limits too.
12849 rm -f conftest.tail
12850 while :
12852 ac_lines=`grep -c . conftest.vals`
12853 # grep -c gives empty output for an empty file on some AIX systems.
12854 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
12855 # Write a limited-size here document to conftest.frag.
12856 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
12857 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
12858 echo 'CEOF
12859 sed -f conftest.frag conftest.in > conftest.out
12860 rm -f conftest.in
12861 mv conftest.out conftest.in
12862 ' >> $CONFIG_STATUS
12863 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
12864 rm -f conftest.vals
12865 mv conftest.tail conftest.vals
12866 done
12867 rm -f conftest.vals
12869 cat >> $CONFIG_STATUS <<\EOF
12870 rm -f conftest.frag conftest.h
12871 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
12872 cat conftest.in >> conftest.h
12873 rm -f conftest.in
12874 if cmp -s $ac_file conftest.h 2>/dev/null; then
12875 echo "$ac_file is unchanged"
12876 rm -f conftest.h
12877 else
12878 # Remove last slash and all that follows it. Not all systems have dirname.
12879 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
12880 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
12881 # The file is in a subdirectory.
12882 test ! -d "$ac_dir" && mkdir "$ac_dir"
12884 rm -f $ac_file
12885 mv conftest.h $ac_file
12887 fi; done
12890 cat >> $CONFIG_STATUS <<EOF
12893 cat >> $CONFIG_STATUS <<\EOF
12895 exit 0
12897 chmod +x $CONFIG_STATUS
12898 rm -fr confdefs* $ac_clean_files
12899 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1