Fixed interface code so that a UUID is transmitted as the following fields :
[Samba/ekacnet.git] / source / configure
blob2cb0c2ccc5d13c0c15b47117bd459b08fafb92ee
1 #! /bin/sh
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12
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 --enable-maintainer-mode enable some make rules for maintainers"
17 ac_help="$ac_help
18 --with-smbwrapper Include SMB wrapper support
19 --without-smbwrapper Don't include SMB wrapper support (default)"
20 ac_help="$ac_help
21 --with-afs Include AFS support
22 --without-afs Don't include AFS support (default)"
23 ac_help="$ac_help
24 --with-dfs Include DFS support
25 --without-dfs Don't include DFS support (default)"
26 ac_help="$ac_help
27 --with-krb4=base-dir Include Kerberos IV support
28 --whithout-krb4 Don't include Kerbers IV support (default)"
29 ac_help="$ac_help
30 --with-krb5=base-dir Include Kerberos 5 support
31 --whithout-krb5 Don't include Kerbers 5 support (default)"
32 ac_help="$ac_help
33 --with-automount Include AUTOMOUNT support
34 --without-automount Don't include AUTOMOUNT support (default)"
35 ac_help="$ac_help
36 --with-smbmount Include SMBMOUNT (Linux only) support
37 --without-smbmount Don't include SMBMOUNT support (default)"
38 ac_help="$ac_help
39 --with-ldap Include LDAP support
40 --without-ldap Don't include LDAP support (default)"
41 ac_help="$ac_help
42 --with-nisplus Include NISPLUS password database support
43 --without-nisplus Don't include NISPLUS password database support (default)"
44 ac_help="$ac_help
45 --with-nisplus-home Include NISPLUS_HOME support
46 --without-nisplus-home Don't include NISPLUS_HOME support (default)"
47 ac_help="$ac_help
48 --with-ssl Include SSL support
49 --without-ssl Don't include SSL support (default)
50 --with-sslinc=DIR Where the SSL includes are (defaults to /usr/local/ssl)"
51 ac_help="$ac_help
52 --with-mmap Include experimental MMAP support
53 --without-mmap Don't include MMAP support (default)"
54 ac_help="$ac_help
55 --with-syslog Include experimental SYSLOG support
56 --without-syslog Don't include SYSLOG support (default)"
57 ac_help="$ac_help
58 --with-netatalk Include experimental Netatalk support
59 --without-netatalk Don't include experimental Netatalk support (default)"
60 ac_help="$ac_help
61 --with-quotas Include experimental disk-quota support
62 --without-quotas Don't include experimental disk-quota support (default)"
63 ac_help="$ac_help
64 --with-privatedir=DIR Where to put smbpasswd ($ac_default_prefix/private)"
65 ac_help="$ac_help
66 --with-lockdir=DIR Where to put lock files ($ac_default_prefix/var/locks)"
67 ac_help="$ac_help
68 --with-swatdir=DIR Where to put SWAT files ($ac_default_prefix/swat)"
70 # Initialize some variables set by options.
71 # The variables have the same names as the options, with
72 # dashes changed to underlines.
73 build=NONE
74 cache_file=./config.cache
75 exec_prefix=NONE
76 host=NONE
77 no_create=
78 nonopt=NONE
79 no_recursion=
80 prefix=NONE
81 program_prefix=NONE
82 program_suffix=NONE
83 program_transform_name=s,x,x,
84 silent=
85 site=
86 srcdir=
87 target=NONE
88 verbose=
89 x_includes=NONE
90 x_libraries=NONE
91 bindir='${exec_prefix}/bin'
92 sbindir='${exec_prefix}/sbin'
93 libexecdir='${exec_prefix}/libexec'
94 datadir='${prefix}/share'
95 sysconfdir='${prefix}/etc'
96 sharedstatedir='${prefix}/com'
97 localstatedir='${prefix}/var'
98 libdir='${exec_prefix}/lib'
99 includedir='${prefix}/include'
100 oldincludedir='/usr/include'
101 infodir='${prefix}/info'
102 mandir='${prefix}/man'
104 # Initialize some other variables.
105 subdirs=
106 MFLAGS= MAKEFLAGS=
107 # Maximum number of lines to put in a shell here document.
108 ac_max_here_lines=12
110 ac_prev=
111 for ac_option
114 # If the previous option needs an argument, assign it.
115 if test -n "$ac_prev"; then
116 eval "$ac_prev=\$ac_option"
117 ac_prev=
118 continue
121 case "$ac_option" in
122 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
123 *) ac_optarg= ;;
124 esac
126 # Accept the important Cygnus configure options, so we can diagnose typos.
128 case "$ac_option" in
130 -bindir | --bindir | --bindi | --bind | --bin | --bi)
131 ac_prev=bindir ;;
132 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
133 bindir="$ac_optarg" ;;
135 -build | --build | --buil | --bui | --bu)
136 ac_prev=build ;;
137 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
138 build="$ac_optarg" ;;
140 -cache-file | --cache-file | --cache-fil | --cache-fi \
141 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
142 ac_prev=cache_file ;;
143 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
144 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
145 cache_file="$ac_optarg" ;;
147 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
148 ac_prev=datadir ;;
149 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
150 | --da=*)
151 datadir="$ac_optarg" ;;
153 -disable-* | --disable-*)
154 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
155 # Reject names that are not valid shell variable names.
156 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
157 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
159 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
160 eval "enable_${ac_feature}=no" ;;
162 -enable-* | --enable-*)
163 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
164 # Reject names that are not valid shell variable names.
165 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
166 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
168 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
169 case "$ac_option" in
170 *=*) ;;
171 *) ac_optarg=yes ;;
172 esac
173 eval "enable_${ac_feature}='$ac_optarg'" ;;
175 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
176 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
177 | --exec | --exe | --ex)
178 ac_prev=exec_prefix ;;
179 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
180 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
181 | --exec=* | --exe=* | --ex=*)
182 exec_prefix="$ac_optarg" ;;
184 -gas | --gas | --ga | --g)
185 # Obsolete; use --with-gas.
186 with_gas=yes ;;
188 -help | --help | --hel | --he)
189 # Omit some internal or obsolete options to make the list less imposing.
190 # This message is too long to be a string in the A/UX 3.1 sh.
191 cat << EOF
192 Usage: configure [options] [host]
193 Options: [defaults in brackets after descriptions]
194 Configuration:
195 --cache-file=FILE cache test results in FILE
196 --help print this message
197 --no-create do not create output files
198 --quiet, --silent do not print \`checking...' messages
199 --version print the version of autoconf that created configure
200 Directory and file names:
201 --prefix=PREFIX install architecture-independent files in PREFIX
202 [$ac_default_prefix]
203 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
204 [same as prefix]
205 --bindir=DIR user executables in DIR [EPREFIX/bin]
206 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
207 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
208 --datadir=DIR read-only architecture-independent data in DIR
209 [PREFIX/share]
210 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
211 --sharedstatedir=DIR modifiable architecture-independent data in DIR
212 [PREFIX/com]
213 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
214 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
215 --includedir=DIR C header files in DIR [PREFIX/include]
216 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
217 --infodir=DIR info documentation in DIR [PREFIX/info]
218 --mandir=DIR man documentation in DIR [PREFIX/man]
219 --srcdir=DIR find the sources in DIR [configure dir or ..]
220 --program-prefix=PREFIX prepend PREFIX to installed program names
221 --program-suffix=SUFFIX append SUFFIX to installed program names
222 --program-transform-name=PROGRAM
223 run sed PROGRAM on installed program names
225 cat << EOF
226 Host type:
227 --build=BUILD configure for building on BUILD [BUILD=HOST]
228 --host=HOST configure for HOST [guessed]
229 --target=TARGET configure for TARGET [TARGET=HOST]
230 Features and packages:
231 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
232 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
233 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
234 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
235 --x-includes=DIR X include files are in DIR
236 --x-libraries=DIR X library files are in DIR
238 if test -n "$ac_help"; then
239 echo "--enable and --with options recognized:$ac_help"
241 exit 0 ;;
243 -host | --host | --hos | --ho)
244 ac_prev=host ;;
245 -host=* | --host=* | --hos=* | --ho=*)
246 host="$ac_optarg" ;;
248 -includedir | --includedir | --includedi | --included | --include \
249 | --includ | --inclu | --incl | --inc)
250 ac_prev=includedir ;;
251 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
252 | --includ=* | --inclu=* | --incl=* | --inc=*)
253 includedir="$ac_optarg" ;;
255 -infodir | --infodir | --infodi | --infod | --info | --inf)
256 ac_prev=infodir ;;
257 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
258 infodir="$ac_optarg" ;;
260 -libdir | --libdir | --libdi | --libd)
261 ac_prev=libdir ;;
262 -libdir=* | --libdir=* | --libdi=* | --libd=*)
263 libdir="$ac_optarg" ;;
265 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
266 | --libexe | --libex | --libe)
267 ac_prev=libexecdir ;;
268 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
269 | --libexe=* | --libex=* | --libe=*)
270 libexecdir="$ac_optarg" ;;
272 -localstatedir | --localstatedir | --localstatedi | --localstated \
273 | --localstate | --localstat | --localsta | --localst \
274 | --locals | --local | --loca | --loc | --lo)
275 ac_prev=localstatedir ;;
276 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
277 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
278 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
279 localstatedir="$ac_optarg" ;;
281 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
282 ac_prev=mandir ;;
283 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
284 mandir="$ac_optarg" ;;
286 -nfp | --nfp | --nf)
287 # Obsolete; use --without-fp.
288 with_fp=no ;;
290 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
291 | --no-cr | --no-c)
292 no_create=yes ;;
294 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
295 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
296 no_recursion=yes ;;
298 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
299 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
300 | --oldin | --oldi | --old | --ol | --o)
301 ac_prev=oldincludedir ;;
302 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
303 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
304 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
305 oldincludedir="$ac_optarg" ;;
307 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
308 ac_prev=prefix ;;
309 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
310 prefix="$ac_optarg" ;;
312 -program-prefix | --program-prefix | --program-prefi | --program-pref \
313 | --program-pre | --program-pr | --program-p)
314 ac_prev=program_prefix ;;
315 -program-prefix=* | --program-prefix=* | --program-prefi=* \
316 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
317 program_prefix="$ac_optarg" ;;
319 -program-suffix | --program-suffix | --program-suffi | --program-suff \
320 | --program-suf | --program-su | --program-s)
321 ac_prev=program_suffix ;;
322 -program-suffix=* | --program-suffix=* | --program-suffi=* \
323 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
324 program_suffix="$ac_optarg" ;;
326 -program-transform-name | --program-transform-name \
327 | --program-transform-nam | --program-transform-na \
328 | --program-transform-n | --program-transform- \
329 | --program-transform | --program-transfor \
330 | --program-transfo | --program-transf \
331 | --program-trans | --program-tran \
332 | --progr-tra | --program-tr | --program-t)
333 ac_prev=program_transform_name ;;
334 -program-transform-name=* | --program-transform-name=* \
335 | --program-transform-nam=* | --program-transform-na=* \
336 | --program-transform-n=* | --program-transform-=* \
337 | --program-transform=* | --program-transfor=* \
338 | --program-transfo=* | --program-transf=* \
339 | --program-trans=* | --program-tran=* \
340 | --progr-tra=* | --program-tr=* | --program-t=*)
341 program_transform_name="$ac_optarg" ;;
343 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
344 | -silent | --silent | --silen | --sile | --sil)
345 silent=yes ;;
347 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
348 ac_prev=sbindir ;;
349 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
350 | --sbi=* | --sb=*)
351 sbindir="$ac_optarg" ;;
353 -sharedstatedir | --sharedstatedir | --sharedstatedi \
354 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
355 | --sharedst | --shareds | --shared | --share | --shar \
356 | --sha | --sh)
357 ac_prev=sharedstatedir ;;
358 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
359 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
360 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
361 | --sha=* | --sh=*)
362 sharedstatedir="$ac_optarg" ;;
364 -site | --site | --sit)
365 ac_prev=site ;;
366 -site=* | --site=* | --sit=*)
367 site="$ac_optarg" ;;
369 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
370 ac_prev=srcdir ;;
371 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
372 srcdir="$ac_optarg" ;;
374 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
375 | --syscon | --sysco | --sysc | --sys | --sy)
376 ac_prev=sysconfdir ;;
377 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
378 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
379 sysconfdir="$ac_optarg" ;;
381 -target | --target | --targe | --targ | --tar | --ta | --t)
382 ac_prev=target ;;
383 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
384 target="$ac_optarg" ;;
386 -v | -verbose | --verbose | --verbos | --verbo | --verb)
387 verbose=yes ;;
389 -version | --version | --versio | --versi | --vers)
390 echo "configure generated by autoconf version 2.12"
391 exit 0 ;;
393 -with-* | --with-*)
394 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
395 # Reject names that are not valid shell variable names.
396 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
397 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
399 ac_package=`echo $ac_package| sed 's/-/_/g'`
400 case "$ac_option" in
401 *=*) ;;
402 *) ac_optarg=yes ;;
403 esac
404 eval "with_${ac_package}='$ac_optarg'" ;;
406 -without-* | --without-*)
407 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
408 # Reject names that are not valid shell variable names.
409 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
410 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
412 ac_package=`echo $ac_package| sed 's/-/_/g'`
413 eval "with_${ac_package}=no" ;;
415 --x)
416 # Obsolete; use --with-x.
417 with_x=yes ;;
419 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
420 | --x-incl | --x-inc | --x-in | --x-i)
421 ac_prev=x_includes ;;
422 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
423 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
424 x_includes="$ac_optarg" ;;
426 -x-libraries | --x-libraries | --x-librarie | --x-librari \
427 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
428 ac_prev=x_libraries ;;
429 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
430 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
431 x_libraries="$ac_optarg" ;;
433 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
437 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
438 echo "configure: warning: $ac_option: invalid host type" 1>&2
440 if test "x$nonopt" != xNONE; then
441 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
443 nonopt="$ac_option"
446 esac
447 done
449 if test -n "$ac_prev"; then
450 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
453 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
455 # File descriptor usage:
456 # 0 standard input
457 # 1 file creation
458 # 2 errors and warnings
459 # 3 some systems may open it to /dev/tty
460 # 4 used on the Kubota Titan
461 # 6 checking for... messages and results
462 # 5 compiler messages saved in config.log
463 if test "$silent" = yes; then
464 exec 6>/dev/null
465 else
466 exec 6>&1
468 exec 5>./config.log
470 echo "\
471 This file contains any messages produced by compilers while
472 running configure, to aid debugging if configure makes a mistake.
473 " 1>&5
475 # Strip out --no-create and --no-recursion so they do not pile up.
476 # Also quote any args containing shell metacharacters.
477 ac_configure_args=
478 for ac_arg
480 case "$ac_arg" in
481 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
482 | --no-cr | --no-c) ;;
483 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
484 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
485 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
486 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
487 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
488 esac
489 done
491 # NLS nuisances.
492 # Only set these to C if already set. These must not be set unconditionally
493 # because not all systems understand e.g. LANG=C (notably SCO).
494 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
495 # Non-C LC_CTYPE values break the ctype check.
496 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
497 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
498 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
499 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
501 # confdefs.h avoids OS command line length limits that DEFS can exceed.
502 rm -rf conftest* confdefs.h
503 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
504 echo > confdefs.h
506 # A filename unique to this package, relative to the directory that
507 # configure is in, which we can look for to find out if srcdir is correct.
508 ac_unique_file=include/includes.h
510 # Find the source files, if location was not specified.
511 if test -z "$srcdir"; then
512 ac_srcdir_defaulted=yes
513 # Try the directory containing this script, then its parent.
514 ac_prog=$0
515 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
516 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
517 srcdir=$ac_confdir
518 if test ! -r $srcdir/$ac_unique_file; then
519 srcdir=..
521 else
522 ac_srcdir_defaulted=no
524 if test ! -r $srcdir/$ac_unique_file; then
525 if test "$ac_srcdir_defaulted" = yes; then
526 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
527 else
528 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
531 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
533 # Prefer explicitly selected file to automatically selected ones.
534 if test -z "$CONFIG_SITE"; then
535 if test "x$prefix" != xNONE; then
536 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
537 else
538 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
541 for ac_site_file in $CONFIG_SITE; do
542 if test -r "$ac_site_file"; then
543 echo "loading site script $ac_site_file"
544 . "$ac_site_file"
546 done
548 if test -r "$cache_file"; then
549 echo "loading cache $cache_file"
550 . $cache_file
551 else
552 echo "creating cache $cache_file"
553 > $cache_file
556 ac_ext=c
557 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
558 ac_cpp='$CPP $CPPFLAGS'
559 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
560 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
561 cross_compiling=$ac_cv_prog_cc_cross
563 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
564 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
565 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
566 ac_n= ac_c='
567 ' ac_t=' '
568 else
569 ac_n=-n ac_c= ac_t=
571 else
572 ac_n= ac_c='\c' ac_t=
577 # we want to be compatibe with older versions of Samba
589 # compile with optimisation and without debugging by default
590 CFLAGS=${CFLAGS-"-O"}
592 # Extract the first word of "gcc", so it can be a program name with args.
593 set dummy gcc; ac_word=$2
594 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
595 echo "configure:596: checking for $ac_word" >&5
596 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
597 echo $ac_n "(cached) $ac_c" 1>&6
598 else
599 if test -n "$CC"; then
600 ac_cv_prog_CC="$CC" # Let the user override the test.
601 else
602 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
603 for ac_dir in $PATH; do
604 test -z "$ac_dir" && ac_dir=.
605 if test -f $ac_dir/$ac_word; then
606 ac_cv_prog_CC="gcc"
607 break
609 done
610 IFS="$ac_save_ifs"
613 CC="$ac_cv_prog_CC"
614 if test -n "$CC"; then
615 echo "$ac_t""$CC" 1>&6
616 else
617 echo "$ac_t""no" 1>&6
620 if test -z "$CC"; then
621 # Extract the first word of "cc", so it can be a program name with args.
622 set dummy cc; ac_word=$2
623 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
624 echo "configure:625: checking for $ac_word" >&5
625 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
626 echo $ac_n "(cached) $ac_c" 1>&6
627 else
628 if test -n "$CC"; then
629 ac_cv_prog_CC="$CC" # Let the user override the test.
630 else
631 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
632 ac_prog_rejected=no
633 for ac_dir in $PATH; do
634 test -z "$ac_dir" && ac_dir=.
635 if test -f $ac_dir/$ac_word; then
636 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
637 ac_prog_rejected=yes
638 continue
640 ac_cv_prog_CC="cc"
641 break
643 done
644 IFS="$ac_save_ifs"
645 if test $ac_prog_rejected = yes; then
646 # We found a bogon in the path, so make sure we never use it.
647 set dummy $ac_cv_prog_CC
648 shift
649 if test $# -gt 0; then
650 # We chose a different compiler from the bogus one.
651 # However, it has the same basename, so the bogon will be chosen
652 # first if we set CC to just the basename; use the full file name.
653 shift
654 set dummy "$ac_dir/$ac_word" "$@"
655 shift
656 ac_cv_prog_CC="$@"
661 CC="$ac_cv_prog_CC"
662 if test -n "$CC"; then
663 echo "$ac_t""$CC" 1>&6
664 else
665 echo "$ac_t""no" 1>&6
668 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
671 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
672 echo "configure:673: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
674 ac_ext=c
675 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
676 ac_cpp='$CPP $CPPFLAGS'
677 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
678 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
679 cross_compiling=$ac_cv_prog_cc_cross
681 cat > conftest.$ac_ext <<EOF
682 #line 683 "configure"
683 #include "confdefs.h"
684 main(){return(0);}
686 if { (eval echo configure:687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
687 ac_cv_prog_cc_works=yes
688 # If we can't run a trivial program, we are probably using a cross compiler.
689 if (./conftest; exit) 2>/dev/null; then
690 ac_cv_prog_cc_cross=no
691 else
692 ac_cv_prog_cc_cross=yes
694 else
695 echo "configure: failed program was:" >&5
696 cat conftest.$ac_ext >&5
697 ac_cv_prog_cc_works=no
699 rm -fr conftest*
701 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
702 if test $ac_cv_prog_cc_works = no; then
703 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
705 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
706 echo "configure:707: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
707 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
708 cross_compiling=$ac_cv_prog_cc_cross
710 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
711 echo "configure:712: checking whether we are using GNU C" >&5
712 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
713 echo $ac_n "(cached) $ac_c" 1>&6
714 else
715 cat > conftest.c <<EOF
716 #ifdef __GNUC__
717 yes;
718 #endif
720 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:721: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
721 ac_cv_prog_gcc=yes
722 else
723 ac_cv_prog_gcc=no
727 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
729 if test $ac_cv_prog_gcc = yes; then
730 GCC=yes
731 ac_test_CFLAGS="${CFLAGS+set}"
732 ac_save_CFLAGS="$CFLAGS"
733 CFLAGS=
734 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
735 echo "configure:736: checking whether ${CC-cc} accepts -g" >&5
736 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
737 echo $ac_n "(cached) $ac_c" 1>&6
738 else
739 echo 'void f(){}' > conftest.c
740 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
741 ac_cv_prog_cc_g=yes
742 else
743 ac_cv_prog_cc_g=no
745 rm -f conftest*
749 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
750 if test "$ac_test_CFLAGS" = set; then
751 CFLAGS="$ac_save_CFLAGS"
752 elif test $ac_cv_prog_cc_g = yes; then
753 CFLAGS="-g -O2"
754 else
755 CFLAGS="-O2"
757 else
758 GCC=
759 test "${CFLAGS+set}" = set || CFLAGS="-g"
762 ac_aux_dir=
763 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
764 if test -f $ac_dir/install-sh; then
765 ac_aux_dir=$ac_dir
766 ac_install_sh="$ac_aux_dir/install-sh -c"
767 break
768 elif test -f $ac_dir/install.sh; then
769 ac_aux_dir=$ac_dir
770 ac_install_sh="$ac_aux_dir/install.sh -c"
771 break
773 done
774 if test -z "$ac_aux_dir"; then
775 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
777 ac_config_guess=$ac_aux_dir/config.guess
778 ac_config_sub=$ac_aux_dir/config.sub
779 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
781 # Find a good install program. We prefer a C program (faster),
782 # so one script is as good as another. But avoid the broken or
783 # incompatible versions:
784 # SysV /etc/install, /usr/sbin/install
785 # SunOS /usr/etc/install
786 # IRIX /sbin/install
787 # AIX /bin/install
788 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
789 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
790 # ./install, which can be erroneously created by make from ./install.sh.
791 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
792 echo "configure:793: checking for a BSD compatible install" >&5
793 if test -z "$INSTALL"; then
794 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
795 echo $ac_n "(cached) $ac_c" 1>&6
796 else
797 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
798 for ac_dir in $PATH; do
799 # Account for people who put trailing slashes in PATH elements.
800 case "$ac_dir/" in
801 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
803 # OSF1 and SCO ODT 3.0 have their own names for install.
804 for ac_prog in ginstall installbsd scoinst install; do
805 if test -f $ac_dir/$ac_prog; then
806 if test $ac_prog = install &&
807 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
808 # AIX install. It has an incompatible calling convention.
809 # OSF/1 installbsd also uses dspmsg, but is usable.
811 else
812 ac_cv_path_install="$ac_dir/$ac_prog -c"
813 break 2
816 done
818 esac
819 done
820 IFS="$ac_save_IFS"
823 if test "${ac_cv_path_install+set}" = set; then
824 INSTALL="$ac_cv_path_install"
825 else
826 # As a last resort, use the slow shell script. We don't cache a
827 # path for INSTALL within a source directory, because that will
828 # break other packages using the cache if that directory is
829 # removed, or if the path is relative.
830 INSTALL="$ac_install_sh"
833 echo "$ac_t""$INSTALL" 1>&6
835 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
836 # It thinks the first close brace ends the variable substitution.
837 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
839 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
841 for ac_prog in mawk gawk nawk awk
843 # Extract the first word of "$ac_prog", so it can be a program name with args.
844 set dummy $ac_prog; ac_word=$2
845 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
846 echo "configure:847: checking for $ac_word" >&5
847 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
848 echo $ac_n "(cached) $ac_c" 1>&6
849 else
850 if test -n "$AWK"; then
851 ac_cv_prog_AWK="$AWK" # Let the user override the test.
852 else
853 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
854 for ac_dir in $PATH; do
855 test -z "$ac_dir" && ac_dir=.
856 if test -f $ac_dir/$ac_word; then
857 ac_cv_prog_AWK="$ac_prog"
858 break
860 done
861 IFS="$ac_save_ifs"
864 AWK="$ac_cv_prog_AWK"
865 if test -n "$AWK"; then
866 echo "$ac_t""$AWK" 1>&6
867 else
868 echo "$ac_t""no" 1>&6
871 test -n "$AWK" && break
872 done
875 if test "x$CC" != xcc; then
876 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
877 echo "configure:878: checking whether $CC and cc understand -c and -o together" >&5
878 else
879 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
880 echo "configure:881: checking whether cc understands -c and -o together" >&5
882 set dummy $CC; ac_cc="`echo $2 |
883 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
884 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
885 echo $ac_n "(cached) $ac_c" 1>&6
886 else
887 echo 'foo(){}' > conftest.c
888 # Make sure it works both with $CC and with simple cc.
889 # We do the test twice because some compilers refuse to overwrite an
890 # existing .o file with -o, though they will create one.
891 ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5'
892 if { (eval echo configure:893: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
893 test -f conftest.o && { (eval echo configure:894: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
894 then
895 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
896 if test "x$CC" != xcc; then
897 # Test first that cc exists at all.
898 if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:899: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
899 ac_try='cc -c conftest.c -o conftest.o 1>&5'
900 if { (eval echo configure:901: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
901 test -f conftest.o && { (eval echo configure:902: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
902 then
903 # cc works too.
905 else
906 # cc exists but doesn't like -o.
907 eval ac_cv_prog_cc_${ac_cc}_c_o=no
911 else
912 eval ac_cv_prog_cc_${ac_cc}_c_o=no
914 rm -f conftest*
917 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
918 echo "$ac_t""yes" 1>&6
919 else
920 echo "$ac_t""no" 1>&6
921 cat >> confdefs.h <<\EOF
922 #define NO_MINUS_C_MINUS_O 1
927 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
928 BROKEN_CC=
929 else
930 BROKEN_CC=#
934 echo $ac_n "checking that the C compiler understands volatile""... $ac_c" 1>&6
935 echo "configure:936: checking that the C compiler understands volatile" >&5
936 if eval "test \"`echo '$''{'samba_cv_volatile'+set}'`\" = set"; then
937 echo $ac_n "(cached) $ac_c" 1>&6
938 else
940 cat > conftest.$ac_ext <<EOF
941 #line 942 "configure"
942 #include "confdefs.h"
943 #include <sys/types.h>
944 int main() {
945 volatile int i = 0
946 ; return 0; }
948 if { (eval echo configure:949: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
949 rm -rf conftest*
950 samba_cv_volatile=yes
951 else
952 echo "configure: failed program was:" >&5
953 cat conftest.$ac_ext >&5
954 rm -rf conftest*
955 samba_cv_volatile=no
957 rm -f conftest*
960 echo "$ac_t""$samba_cv_volatile" 1>&6
961 if test x"$samba_cv_volatile" = x"yes"; then
962 cat >> confdefs.h <<\EOF
963 #define HAVE_VOLATILE 1
971 # Do some error checking and defaulting for the host and target type.
972 # The inputs are:
973 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
975 # The rules are:
976 # 1. You are not allowed to specify --host, --target, and nonopt at the
977 # same time.
978 # 2. Host defaults to nonopt.
979 # 3. If nonopt is not specified, then host defaults to the current host,
980 # as determined by config.guess.
981 # 4. Target and build default to nonopt.
982 # 5. If nonopt is not specified, then target and build default to host.
984 # The aliases save the names the user supplied, while $host etc.
985 # will get canonicalized.
986 case $host---$target---$nonopt in
987 NONE---*---* | *---NONE---* | *---*---NONE) ;;
988 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
989 esac
992 # Make sure we can run config.sub.
993 if $ac_config_sub sun4 >/dev/null 2>&1; then :
994 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
997 echo $ac_n "checking host system type""... $ac_c" 1>&6
998 echo "configure:999: checking host system type" >&5
1000 host_alias=$host
1001 case "$host_alias" in
1002 NONE)
1003 case $nonopt in
1004 NONE)
1005 if host_alias=`$ac_config_guess`; then :
1006 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1007 fi ;;
1008 *) host_alias=$nonopt ;;
1009 esac ;;
1010 esac
1012 host=`$ac_config_sub $host_alias`
1013 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1014 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1015 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1016 echo "$ac_t""$host" 1>&6
1018 echo $ac_n "checking target system type""... $ac_c" 1>&6
1019 echo "configure:1020: checking target system type" >&5
1021 target_alias=$target
1022 case "$target_alias" in
1023 NONE)
1024 case $nonopt in
1025 NONE) target_alias=$host_alias ;;
1026 *) target_alias=$nonopt ;;
1027 esac ;;
1028 esac
1030 target=`$ac_config_sub $target_alias`
1031 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1032 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1033 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1034 echo "$ac_t""$target" 1>&6
1036 echo $ac_n "checking build system type""... $ac_c" 1>&6
1037 echo "configure:1038: checking build system type" >&5
1039 build_alias=$build
1040 case "$build_alias" in
1041 NONE)
1042 case $nonopt in
1043 NONE) build_alias=$host_alias ;;
1044 *) build_alias=$nonopt ;;
1045 esac ;;
1046 esac
1048 build=`$ac_config_sub $build_alias`
1049 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1050 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1051 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1052 echo "$ac_t""$build" 1>&6
1054 test "$host_alias" != "$target_alias" &&
1055 test "$program_prefix$program_suffix$program_transform_name" = \
1056 NONENONEs,x,x, &&
1057 program_prefix=${target_alias}-
1061 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
1062 echo "configure:1063: checking config.cache system type" >&5
1063 if { test x"${ac_cv_host_system_type+set}" = x"set" &&
1064 test x"$ac_cv_host_system_type" != x"$host"; } ||
1065 { test x"${ac_cv_build_system_type+set}" = x"set" &&
1066 test x"$ac_cv_build_system_type" != x"$build"; } ||
1067 { test x"${ac_cv_target_system_type+set}" = x"set" &&
1068 test x"$ac_cv_target_system_type" != x"$target"; }; then
1069 echo "$ac_t""different" 1>&6
1070 { echo "configure: error: "you must remove config.cache and restart configure"" 1>&2; exit 1; }
1071 else
1072 echo "$ac_t""same" 1>&6
1074 ac_cv_host_system_type="$host"
1075 ac_cv_build_system_type="$build"
1076 ac_cv_target_system_type="$target"
1079 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1080 if test "${enable_maintainer_mode+set}" = set; then
1081 enableval="$enable_maintainer_mode"
1082 maint_mode=$enableval
1083 else
1084 maint_mode=no
1087 if test x"$maint_mode" = x"yes"; then MAINT=; else MAINT='#'; fi
1089 # Extract the first word of "autoconf", so it can be a program name with args.
1090 set dummy autoconf; ac_word=$2
1091 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1092 echo "configure:1093: checking for $ac_word" >&5
1093 if eval "test \"`echo '$''{'ac_cv_path_AUTOCONF'+set}'`\" = set"; then
1094 echo $ac_n "(cached) $ac_c" 1>&6
1095 else
1096 case "$AUTOCONF" in
1098 ac_cv_path_AUTOCONF="$AUTOCONF" # Let the user override the test with a path.
1101 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1102 for ac_dir in $PATH; do
1103 test -z "$ac_dir" && ac_dir=.
1104 if test -f $ac_dir/$ac_word; then
1105 ac_cv_path_AUTOCONF="$ac_dir/$ac_word"
1106 break
1108 done
1109 IFS="$ac_save_ifs"
1110 test -z "$ac_cv_path_AUTOCONF" && ac_cv_path_AUTOCONF="autoconf"
1112 esac
1114 AUTOCONF="$ac_cv_path_AUTOCONF"
1115 if test -n "$AUTOCONF"; then
1116 echo "$ac_t""$AUTOCONF" 1>&6
1117 else
1118 echo "$ac_t""no" 1>&6
1122 # Extract the first word of "autoheader", so it can be a program name with args.
1123 set dummy autoheader; ac_word=$2
1124 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1125 echo "configure:1126: checking for $ac_word" >&5
1126 if eval "test \"`echo '$''{'ac_cv_path_AUTOHEADER'+set}'`\" = set"; then
1127 echo $ac_n "(cached) $ac_c" 1>&6
1128 else
1129 case "$AUTOHEADER" in
1131 ac_cv_path_AUTOHEADER="$AUTOHEADER" # Let the user override the test with a path.
1134 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1135 for ac_dir in $PATH; do
1136 test -z "$ac_dir" && ac_dir=.
1137 if test -f $ac_dir/$ac_word; then
1138 ac_cv_path_AUTOHEADER="$ac_dir/$ac_word"
1139 break
1141 done
1142 IFS="$ac_save_ifs"
1143 test -z "$ac_cv_path_AUTOHEADER" && ac_cv_path_AUTOHEADER="autoheader"
1145 esac
1147 AUTOHEADER="$ac_cv_path_AUTOHEADER"
1148 if test -n "$AUTOHEADER"; then
1149 echo "$ac_t""$AUTOHEADER" 1>&6
1150 else
1151 echo "$ac_t""no" 1>&6
1158 # Config CPPFLAG settings for strange OS's that must be set
1159 # before other tests.
1161 case "$host_os" in
1162 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1163 *hpux*)
1164 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1165 echo "configure:1166: checking whether ${CC-cc} accepts -Ae" >&5
1166 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1167 echo $ac_n "(cached) $ac_c" 1>&6
1168 else
1169 echo 'void f(){}' > conftest.c
1170 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1171 ac_cv_prog_cc_Ae=yes
1172 else
1173 ac_cv_prog_cc_Ae=no
1175 rm -f conftest*
1179 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1180 if test $ac_cv_prog_cc_Ae = yes; then
1181 CPPFLAGS="$CPPFLAGS -Ae"
1184 # Defines needed for HPUX support.
1186 case `uname -r` in
1187 *9*|*10*)
1188 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE"
1190 *11*)
1191 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE"
1193 esac
1196 # AIX4.x doesn't even admit to having large
1197 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1199 *aix4*)
1200 echo "$ac_t""enabling large file support" 1>&6
1201 CPPFLAGS="$CPPFLAGS -D_LARGE_FILES"
1204 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
1205 # to the existance of large files..
1206 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
1207 # recommendations on large file support, however it makes the
1208 # compile work using gcc 2.7 and 2.8, whereas using the Sun
1209 # recommendation makes the compile fail on gcc2.7. JRA.
1211 *solaris*)
1212 case `uname -r` in
1213 5.6*|5.7*)
1214 echo "$ac_t""enabling large file support" 1>&6
1215 if test "$ac_cv_prog_gcc" = yes; then
1216 ${CC-cc} -v >conftest.c 2>&1
1217 ac_cv_gcc_compiler_version_number=`grep 'gcc version' conftest.c`
1218 rm -fr conftest.c
1219 case "$ac_cv_gcc_compiler_version_number" in
1220 *"gcc version 2.6"*|*"gcc version 2.7"*)
1221 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
1224 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1226 esac
1227 else
1228 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1231 esac
1234 # Tests needed for SINIX large file support.
1236 *sysv4*)
1237 if test $host = mips-sni-sysv4 ; then
1238 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1239 echo "configure:1240: checking for LFS support" >&5
1240 old_CPPFLAGS="$CPPFLAGS"
1241 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1242 if test "$cross_compiling" = yes; then
1243 SINIX_LFS_SUPPORT=cross
1244 else
1245 cat > conftest.$ac_ext <<EOF
1246 #line 1247 "configure"
1247 #include "confdefs.h"
1249 #include <unistd.h>
1250 main () {
1251 #if _LFS64_LARGEFILE == 1
1252 exit(0);
1253 #else
1254 exit(1);
1255 #endif
1258 if { (eval echo configure:1259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1259 then
1260 SINIX_LFS_SUPPORT=yes
1261 else
1262 echo "configure: failed program was:" >&5
1263 cat conftest.$ac_ext >&5
1264 rm -fr conftest*
1265 SINIX_LFS_SUPPORT=no
1267 rm -fr conftest*
1270 CPPFLAGS="$old_CPPFLAGS"
1271 if test x$SINIX_LFS_SUPPORT = xyes ; then
1272 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1273 CFLAGS="`getconf LFS64_CFLAGS` $CFLAGS"
1274 LDFLAGS="`getconf LFS64_LDFLAGS` $LDFLAGS"
1275 LIBS="`getconf LFS64_LIBS` $LIBS"
1277 echo "$ac_t""$SINIX_LFS_SUPPORT" 1>&6
1282 # Tests needed for glibc 2.1 large file support.
1284 *linux*|*hurd*)
1285 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1286 echo "configure:1287: checking for LFS support" >&5
1287 old_CPPFLAGS="$CPPFLAGS"
1288 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1289 if test "$cross_compiling" = yes; then
1290 GLIBC_LFS_SUPPORT=cross
1291 else
1292 cat > conftest.$ac_ext <<EOF
1293 #line 1294 "configure"
1294 #include "confdefs.h"
1296 #include <unistd.h>
1297 main () {
1298 #if _LFS64_LARGEFILE == 1
1299 exit(0);
1300 #else
1301 exit(1);
1302 #endif
1305 if { (eval echo configure:1306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1306 then
1307 GLIBC_LFS_SUPPORT=yes
1308 else
1309 echo "configure: failed program was:" >&5
1310 cat conftest.$ac_ext >&5
1311 rm -fr conftest*
1312 GLIBC_LFS_SUPPORT=no
1314 rm -fr conftest*
1317 CPPFLAGS="$old_CPPFLAGS"
1318 if test x$GLIBC_LFS_SUPPORT = xyes ; then
1319 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1321 echo "$ac_t""$GLIBC_LFS_SUPPORT" 1>&6
1324 esac
1326 echo $ac_n "checking for inline""... $ac_c" 1>&6
1327 echo "configure:1328: checking for inline" >&5
1328 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1329 echo $ac_n "(cached) $ac_c" 1>&6
1330 else
1331 ac_cv_c_inline=no
1332 for ac_kw in inline __inline__ __inline; do
1333 cat > conftest.$ac_ext <<EOF
1334 #line 1335 "configure"
1335 #include "confdefs.h"
1337 int main() {
1338 } $ac_kw foo() {
1339 ; return 0; }
1341 if { (eval echo configure:1342: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1342 rm -rf conftest*
1343 ac_cv_c_inline=$ac_kw; break
1344 else
1345 echo "configure: failed program was:" >&5
1346 cat conftest.$ac_ext >&5
1348 rm -f conftest*
1349 done
1353 echo "$ac_t""$ac_cv_c_inline" 1>&6
1354 case "$ac_cv_c_inline" in
1355 inline | yes) ;;
1356 no) cat >> confdefs.h <<\EOF
1357 #define inline
1360 *) cat >> confdefs.h <<EOF
1361 #define inline $ac_cv_c_inline
1364 esac
1366 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1367 echo "configure:1368: checking how to run the C preprocessor" >&5
1368 # On Suns, sometimes $CPP names a directory.
1369 if test -n "$CPP" && test -d "$CPP"; then
1370 CPP=
1372 if test -z "$CPP"; then
1373 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1374 echo $ac_n "(cached) $ac_c" 1>&6
1375 else
1376 # This must be in double quotes, not single quotes, because CPP may get
1377 # substituted into the Makefile and "${CC-cc}" will confuse make.
1378 CPP="${CC-cc} -E"
1379 # On the NeXT, cc -E runs the code through the compiler's parser,
1380 # not just through cpp.
1381 cat > conftest.$ac_ext <<EOF
1382 #line 1383 "configure"
1383 #include "confdefs.h"
1384 #include <assert.h>
1385 Syntax Error
1387 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1388 { (eval echo configure:1389: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1389 ac_err=`grep -v '^ *+' conftest.out`
1390 if test -z "$ac_err"; then
1392 else
1393 echo "$ac_err" >&5
1394 echo "configure: failed program was:" >&5
1395 cat conftest.$ac_ext >&5
1396 rm -rf conftest*
1397 CPP="${CC-cc} -E -traditional-cpp"
1398 cat > conftest.$ac_ext <<EOF
1399 #line 1400 "configure"
1400 #include "confdefs.h"
1401 #include <assert.h>
1402 Syntax Error
1404 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1405 { (eval echo configure:1406: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1406 ac_err=`grep -v '^ *+' conftest.out`
1407 if test -z "$ac_err"; then
1409 else
1410 echo "$ac_err" >&5
1411 echo "configure: failed program was:" >&5
1412 cat conftest.$ac_ext >&5
1413 rm -rf conftest*
1414 CPP=/lib/cpp
1416 rm -f conftest*
1418 rm -f conftest*
1419 ac_cv_prog_CPP="$CPP"
1421 CPP="$ac_cv_prog_CPP"
1422 else
1423 ac_cv_prog_CPP="$CPP"
1425 echo "$ac_t""$CPP" 1>&6
1427 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1428 echo "configure:1429: checking for ANSI C header files" >&5
1429 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1430 echo $ac_n "(cached) $ac_c" 1>&6
1431 else
1432 cat > conftest.$ac_ext <<EOF
1433 #line 1434 "configure"
1434 #include "confdefs.h"
1435 #include <stdlib.h>
1436 #include <stdarg.h>
1437 #include <string.h>
1438 #include <float.h>
1440 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1441 { (eval echo configure:1442: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1442 ac_err=`grep -v '^ *+' conftest.out`
1443 if test -z "$ac_err"; then
1444 rm -rf conftest*
1445 ac_cv_header_stdc=yes
1446 else
1447 echo "$ac_err" >&5
1448 echo "configure: failed program was:" >&5
1449 cat conftest.$ac_ext >&5
1450 rm -rf conftest*
1451 ac_cv_header_stdc=no
1453 rm -f conftest*
1455 if test $ac_cv_header_stdc = yes; then
1456 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1457 cat > conftest.$ac_ext <<EOF
1458 #line 1459 "configure"
1459 #include "confdefs.h"
1460 #include <string.h>
1462 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1463 egrep "memchr" >/dev/null 2>&1; then
1465 else
1466 rm -rf conftest*
1467 ac_cv_header_stdc=no
1469 rm -f conftest*
1473 if test $ac_cv_header_stdc = yes; then
1474 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1475 cat > conftest.$ac_ext <<EOF
1476 #line 1477 "configure"
1477 #include "confdefs.h"
1478 #include <stdlib.h>
1480 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1481 egrep "free" >/dev/null 2>&1; then
1483 else
1484 rm -rf conftest*
1485 ac_cv_header_stdc=no
1487 rm -f conftest*
1491 if test $ac_cv_header_stdc = yes; then
1492 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1493 if test "$cross_compiling" = yes; then
1495 else
1496 cat > conftest.$ac_ext <<EOF
1497 #line 1498 "configure"
1498 #include "confdefs.h"
1499 #include <ctype.h>
1500 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1501 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1502 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1503 int main () { int i; for (i = 0; i < 256; i++)
1504 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1505 exit (0); }
1508 if { (eval echo configure:1509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1509 then
1511 else
1512 echo "configure: failed program was:" >&5
1513 cat conftest.$ac_ext >&5
1514 rm -fr conftest*
1515 ac_cv_header_stdc=no
1517 rm -fr conftest*
1523 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1524 if test $ac_cv_header_stdc = yes; then
1525 cat >> confdefs.h <<\EOF
1526 #define STDC_HEADERS 1
1531 ac_header_dirent=no
1532 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1534 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1535 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1536 echo "configure:1537: checking for $ac_hdr that defines DIR" >&5
1537 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1538 echo $ac_n "(cached) $ac_c" 1>&6
1539 else
1540 cat > conftest.$ac_ext <<EOF
1541 #line 1542 "configure"
1542 #include "confdefs.h"
1543 #include <sys/types.h>
1544 #include <$ac_hdr>
1545 int main() {
1546 DIR *dirp = 0;
1547 ; return 0; }
1549 if { (eval echo configure:1550: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1550 rm -rf conftest*
1551 eval "ac_cv_header_dirent_$ac_safe=yes"
1552 else
1553 echo "configure: failed program was:" >&5
1554 cat conftest.$ac_ext >&5
1555 rm -rf conftest*
1556 eval "ac_cv_header_dirent_$ac_safe=no"
1558 rm -f conftest*
1560 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1561 echo "$ac_t""yes" 1>&6
1562 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1563 cat >> confdefs.h <<EOF
1564 #define $ac_tr_hdr 1
1566 ac_header_dirent=$ac_hdr; break
1567 else
1568 echo "$ac_t""no" 1>&6
1570 done
1571 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1572 if test $ac_header_dirent = dirent.h; then
1573 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1574 echo "configure:1575: checking for opendir in -ldir" >&5
1575 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1576 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1577 echo $ac_n "(cached) $ac_c" 1>&6
1578 else
1579 ac_save_LIBS="$LIBS"
1580 LIBS="-ldir $LIBS"
1581 cat > conftest.$ac_ext <<EOF
1582 #line 1583 "configure"
1583 #include "confdefs.h"
1584 /* Override any gcc2 internal prototype to avoid an error. */
1585 /* We use char because int might match the return type of a gcc2
1586 builtin and then its argument prototype would still apply. */
1587 char opendir();
1589 int main() {
1590 opendir()
1591 ; return 0; }
1593 if { (eval echo configure:1594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1594 rm -rf conftest*
1595 eval "ac_cv_lib_$ac_lib_var=yes"
1596 else
1597 echo "configure: failed program was:" >&5
1598 cat conftest.$ac_ext >&5
1599 rm -rf conftest*
1600 eval "ac_cv_lib_$ac_lib_var=no"
1602 rm -f conftest*
1603 LIBS="$ac_save_LIBS"
1606 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1607 echo "$ac_t""yes" 1>&6
1608 LIBS="$LIBS -ldir"
1609 else
1610 echo "$ac_t""no" 1>&6
1613 else
1614 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1615 echo "configure:1616: checking for opendir in -lx" >&5
1616 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1617 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1618 echo $ac_n "(cached) $ac_c" 1>&6
1619 else
1620 ac_save_LIBS="$LIBS"
1621 LIBS="-lx $LIBS"
1622 cat > conftest.$ac_ext <<EOF
1623 #line 1624 "configure"
1624 #include "confdefs.h"
1625 /* Override any gcc2 internal prototype to avoid an error. */
1626 /* We use char because int might match the return type of a gcc2
1627 builtin and then its argument prototype would still apply. */
1628 char opendir();
1630 int main() {
1631 opendir()
1632 ; return 0; }
1634 if { (eval echo configure:1635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1635 rm -rf conftest*
1636 eval "ac_cv_lib_$ac_lib_var=yes"
1637 else
1638 echo "configure: failed program was:" >&5
1639 cat conftest.$ac_ext >&5
1640 rm -rf conftest*
1641 eval "ac_cv_lib_$ac_lib_var=no"
1643 rm -f conftest*
1644 LIBS="$ac_save_LIBS"
1647 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1648 echo "$ac_t""yes" 1>&6
1649 LIBS="$LIBS -lx"
1650 else
1651 echo "$ac_t""no" 1>&6
1656 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1657 echo "configure:1658: checking whether time.h and sys/time.h may both be included" >&5
1658 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1659 echo $ac_n "(cached) $ac_c" 1>&6
1660 else
1661 cat > conftest.$ac_ext <<EOF
1662 #line 1663 "configure"
1663 #include "confdefs.h"
1664 #include <sys/types.h>
1665 #include <sys/time.h>
1666 #include <time.h>
1667 int main() {
1668 struct tm *tp;
1669 ; return 0; }
1671 if { (eval echo configure:1672: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1672 rm -rf conftest*
1673 ac_cv_header_time=yes
1674 else
1675 echo "configure: failed program was:" >&5
1676 cat conftest.$ac_ext >&5
1677 rm -rf conftest*
1678 ac_cv_header_time=no
1680 rm -f conftest*
1683 echo "$ac_t""$ac_cv_header_time" 1>&6
1684 if test $ac_cv_header_time = yes; then
1685 cat >> confdefs.h <<\EOF
1686 #define TIME_WITH_SYS_TIME 1
1691 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1692 echo "configure:1693: checking for sys/wait.h that is POSIX.1 compatible" >&5
1693 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1694 echo $ac_n "(cached) $ac_c" 1>&6
1695 else
1696 cat > conftest.$ac_ext <<EOF
1697 #line 1698 "configure"
1698 #include "confdefs.h"
1699 #include <sys/types.h>
1700 #include <sys/wait.h>
1701 #ifndef WEXITSTATUS
1702 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1703 #endif
1704 #ifndef WIFEXITED
1705 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1706 #endif
1707 int main() {
1708 int s;
1709 wait (&s);
1710 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1711 ; return 0; }
1713 if { (eval echo configure:1714: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1714 rm -rf conftest*
1715 ac_cv_header_sys_wait_h=yes
1716 else
1717 echo "configure: failed program was:" >&5
1718 cat conftest.$ac_ext >&5
1719 rm -rf conftest*
1720 ac_cv_header_sys_wait_h=no
1722 rm -f conftest*
1725 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1726 if test $ac_cv_header_sys_wait_h = yes; then
1727 cat >> confdefs.h <<\EOF
1728 #define HAVE_SYS_WAIT_H 1
1733 for ac_hdr in arpa/inet.h sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h
1735 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1736 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1737 echo "configure:1738: checking for $ac_hdr" >&5
1738 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1739 echo $ac_n "(cached) $ac_c" 1>&6
1740 else
1741 cat > conftest.$ac_ext <<EOF
1742 #line 1743 "configure"
1743 #include "confdefs.h"
1744 #include <$ac_hdr>
1746 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1747 { (eval echo configure:1748: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1748 ac_err=`grep -v '^ *+' conftest.out`
1749 if test -z "$ac_err"; then
1750 rm -rf conftest*
1751 eval "ac_cv_header_$ac_safe=yes"
1752 else
1753 echo "$ac_err" >&5
1754 echo "configure: failed program was:" >&5
1755 cat conftest.$ac_ext >&5
1756 rm -rf conftest*
1757 eval "ac_cv_header_$ac_safe=no"
1759 rm -f conftest*
1761 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1762 echo "$ac_t""yes" 1>&6
1763 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1764 cat >> confdefs.h <<EOF
1765 #define $ac_tr_hdr 1
1768 else
1769 echo "$ac_t""no" 1>&6
1771 done
1773 for ac_hdr in unistd.h utime.h grp.h sys/id.h limits.h memory.h net/if.h
1775 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1776 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1777 echo "configure:1778: checking for $ac_hdr" >&5
1778 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1779 echo $ac_n "(cached) $ac_c" 1>&6
1780 else
1781 cat > conftest.$ac_ext <<EOF
1782 #line 1783 "configure"
1783 #include "confdefs.h"
1784 #include <$ac_hdr>
1786 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1787 { (eval echo configure:1788: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1788 ac_err=`grep -v '^ *+' conftest.out`
1789 if test -z "$ac_err"; then
1790 rm -rf conftest*
1791 eval "ac_cv_header_$ac_safe=yes"
1792 else
1793 echo "$ac_err" >&5
1794 echo "configure: failed program was:" >&5
1795 cat conftest.$ac_ext >&5
1796 rm -rf conftest*
1797 eval "ac_cv_header_$ac_safe=no"
1799 rm -f conftest*
1801 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1802 echo "$ac_t""yes" 1>&6
1803 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1804 cat >> confdefs.h <<EOF
1805 #define $ac_tr_hdr 1
1808 else
1809 echo "$ac_t""no" 1>&6
1811 done
1813 for ac_hdr in compat.h rpc/rpc.h rpcsvc/nis.h rpcsvc/yp_prot.h rpcsvc/ypclnt.h
1815 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1816 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1817 echo "configure:1818: checking for $ac_hdr" >&5
1818 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1819 echo $ac_n "(cached) $ac_c" 1>&6
1820 else
1821 cat > conftest.$ac_ext <<EOF
1822 #line 1823 "configure"
1823 #include "confdefs.h"
1824 #include <$ac_hdr>
1826 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1827 { (eval echo configure:1828: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1828 ac_err=`grep -v '^ *+' conftest.out`
1829 if test -z "$ac_err"; then
1830 rm -rf conftest*
1831 eval "ac_cv_header_$ac_safe=yes"
1832 else
1833 echo "$ac_err" >&5
1834 echo "configure: failed program was:" >&5
1835 cat conftest.$ac_ext >&5
1836 rm -rf conftest*
1837 eval "ac_cv_header_$ac_safe=no"
1839 rm -f conftest*
1841 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1842 echo "$ac_t""yes" 1>&6
1843 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1844 cat >> confdefs.h <<EOF
1845 #define $ac_tr_hdr 1
1848 else
1849 echo "$ac_t""no" 1>&6
1851 done
1853 for ac_hdr in sys/param.h ctype.h sys/wait.h sys/resource.h sys/ioctl.h sys/mode.h
1855 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1856 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1857 echo "configure:1858: checking for $ac_hdr" >&5
1858 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1859 echo $ac_n "(cached) $ac_c" 1>&6
1860 else
1861 cat > conftest.$ac_ext <<EOF
1862 #line 1863 "configure"
1863 #include "confdefs.h"
1864 #include <$ac_hdr>
1866 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1867 { (eval echo configure:1868: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1868 ac_err=`grep -v '^ *+' conftest.out`
1869 if test -z "$ac_err"; then
1870 rm -rf conftest*
1871 eval "ac_cv_header_$ac_safe=yes"
1872 else
1873 echo "$ac_err" >&5
1874 echo "configure: failed program was:" >&5
1875 cat conftest.$ac_ext >&5
1876 rm -rf conftest*
1877 eval "ac_cv_header_$ac_safe=no"
1879 rm -f conftest*
1881 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1882 echo "$ac_t""yes" 1>&6
1883 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1884 cat >> confdefs.h <<EOF
1885 #define $ac_tr_hdr 1
1888 else
1889 echo "$ac_t""no" 1>&6
1891 done
1893 for ac_hdr in sys/mman.h sys/filio.h sys/priv.h string.h strings.h stdlib.h sys/socket.h
1895 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1896 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1897 echo "configure:1898: checking for $ac_hdr" >&5
1898 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1899 echo $ac_n "(cached) $ac_c" 1>&6
1900 else
1901 cat > conftest.$ac_ext <<EOF
1902 #line 1903 "configure"
1903 #include "confdefs.h"
1904 #include <$ac_hdr>
1906 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1907 { (eval echo configure:1908: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1908 ac_err=`grep -v '^ *+' conftest.out`
1909 if test -z "$ac_err"; then
1910 rm -rf conftest*
1911 eval "ac_cv_header_$ac_safe=yes"
1912 else
1913 echo "$ac_err" >&5
1914 echo "configure: failed program was:" >&5
1915 cat conftest.$ac_ext >&5
1916 rm -rf conftest*
1917 eval "ac_cv_header_$ac_safe=no"
1919 rm -f conftest*
1921 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1922 echo "$ac_t""yes" 1>&6
1923 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1924 cat >> confdefs.h <<EOF
1925 #define $ac_tr_hdr 1
1928 else
1929 echo "$ac_t""no" 1>&6
1931 done
1933 for ac_hdr in sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h termio.h
1935 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1936 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1937 echo "configure:1938: checking for $ac_hdr" >&5
1938 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1939 echo $ac_n "(cached) $ac_c" 1>&6
1940 else
1941 cat > conftest.$ac_ext <<EOF
1942 #line 1943 "configure"
1943 #include "confdefs.h"
1944 #include <$ac_hdr>
1946 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1947 { (eval echo configure:1948: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1948 ac_err=`grep -v '^ *+' conftest.out`
1949 if test -z "$ac_err"; then
1950 rm -rf conftest*
1951 eval "ac_cv_header_$ac_safe=yes"
1952 else
1953 echo "$ac_err" >&5
1954 echo "configure: failed program was:" >&5
1955 cat conftest.$ac_ext >&5
1956 rm -rf conftest*
1957 eval "ac_cv_header_$ac_safe=no"
1959 rm -f conftest*
1961 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1962 echo "$ac_t""yes" 1>&6
1963 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1964 cat >> confdefs.h <<EOF
1965 #define $ac_tr_hdr 1
1968 else
1969 echo "$ac_t""no" 1>&6
1971 done
1973 for ac_hdr in sys/termio.h sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h
1975 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1976 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1977 echo "configure:1978: checking for $ac_hdr" >&5
1978 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1979 echo $ac_n "(cached) $ac_c" 1>&6
1980 else
1981 cat > conftest.$ac_ext <<EOF
1982 #line 1983 "configure"
1983 #include "confdefs.h"
1984 #include <$ac_hdr>
1986 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1987 { (eval echo configure:1988: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1988 ac_err=`grep -v '^ *+' conftest.out`
1989 if test -z "$ac_err"; then
1990 rm -rf conftest*
1991 eval "ac_cv_header_$ac_safe=yes"
1992 else
1993 echo "$ac_err" >&5
1994 echo "configure: failed program was:" >&5
1995 cat conftest.$ac_ext >&5
1996 rm -rf conftest*
1997 eval "ac_cv_header_$ac_safe=no"
1999 rm -f conftest*
2001 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2002 echo "$ac_t""yes" 1>&6
2003 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2004 cat >> confdefs.h <<EOF
2005 #define $ac_tr_hdr 1
2008 else
2009 echo "$ac_t""no" 1>&6
2011 done
2014 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
2015 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
2017 case "$host_os" in
2018 *hpux*)
2019 cat > conftest.$ac_ext <<EOF
2020 #line 2021 "configure"
2021 #include "confdefs.h"
2022 #include <shadow.h>
2023 int main() {
2024 struct spwd testme
2025 ; return 0; }
2027 if { (eval echo configure:2028: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2028 rm -rf conftest*
2029 ac_cv_header_shadow_h=yes
2030 else
2031 echo "configure: failed program was:" >&5
2032 cat conftest.$ac_ext >&5
2033 rm -rf conftest*
2034 ac_cv_header_shadow_h=no
2036 rm -f conftest*
2037 if test x"$ac_cv_header_shadow_h" = x"yes"; then
2038 cat >> confdefs.h <<\EOF
2039 #define HAVE_SHADOW_H 1
2044 esac
2045 for ac_hdr in shadow.h netinet/tcp.h sys/security.h security/pam_appl.h
2047 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2048 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2049 echo "configure:2050: checking for $ac_hdr" >&5
2050 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2051 echo $ac_n "(cached) $ac_c" 1>&6
2052 else
2053 cat > conftest.$ac_ext <<EOF
2054 #line 2055 "configure"
2055 #include "confdefs.h"
2056 #include <$ac_hdr>
2058 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2059 { (eval echo configure:2060: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2060 ac_err=`grep -v '^ *+' conftest.out`
2061 if test -z "$ac_err"; then
2062 rm -rf conftest*
2063 eval "ac_cv_header_$ac_safe=yes"
2064 else
2065 echo "$ac_err" >&5
2066 echo "configure: failed program was:" >&5
2067 cat conftest.$ac_ext >&5
2068 rm -rf conftest*
2069 eval "ac_cv_header_$ac_safe=no"
2071 rm -f conftest*
2073 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2074 echo "$ac_t""yes" 1>&6
2075 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2076 cat >> confdefs.h <<EOF
2077 #define $ac_tr_hdr 1
2080 else
2081 echo "$ac_t""no" 1>&6
2083 done
2085 for ac_hdr in stropts.h poll.h readline.h history.h readline/readline.h
2087 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2088 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2089 echo "configure:2090: checking for $ac_hdr" >&5
2090 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2091 echo $ac_n "(cached) $ac_c" 1>&6
2092 else
2093 cat > conftest.$ac_ext <<EOF
2094 #line 2095 "configure"
2095 #include "confdefs.h"
2096 #include <$ac_hdr>
2098 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2099 { (eval echo configure:2100: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2100 ac_err=`grep -v '^ *+' conftest.out`
2101 if test -z "$ac_err"; then
2102 rm -rf conftest*
2103 eval "ac_cv_header_$ac_safe=yes"
2104 else
2105 echo "$ac_err" >&5
2106 echo "configure: failed program was:" >&5
2107 cat conftest.$ac_ext >&5
2108 rm -rf conftest*
2109 eval "ac_cv_header_$ac_safe=no"
2111 rm -f conftest*
2113 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2114 echo "$ac_t""yes" 1>&6
2115 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2116 cat >> confdefs.h <<EOF
2117 #define $ac_tr_hdr 1
2120 else
2121 echo "$ac_t""no" 1>&6
2123 done
2125 for ac_hdr in readline/history.h sys/capability.h syscall.h sys/syscall.h
2127 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2128 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2129 echo "configure:2130: checking for $ac_hdr" >&5
2130 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2131 echo $ac_n "(cached) $ac_c" 1>&6
2132 else
2133 cat > conftest.$ac_ext <<EOF
2134 #line 2135 "configure"
2135 #include "confdefs.h"
2136 #include <$ac_hdr>
2138 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2139 { (eval echo configure:2140: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2140 ac_err=`grep -v '^ *+' conftest.out`
2141 if test -z "$ac_err"; then
2142 rm -rf conftest*
2143 eval "ac_cv_header_$ac_safe=yes"
2144 else
2145 echo "$ac_err" >&5
2146 echo "configure: failed program was:" >&5
2147 cat conftest.$ac_ext >&5
2148 rm -rf conftest*
2149 eval "ac_cv_header_$ac_safe=no"
2151 rm -f conftest*
2153 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2154 echo "$ac_t""yes" 1>&6
2155 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2156 cat >> confdefs.h <<EOF
2157 #define $ac_tr_hdr 1
2160 else
2161 echo "$ac_t""no" 1>&6
2163 done
2165 for ac_hdr in sys/acl.h sys/cdefs.h glob.h
2167 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2168 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2169 echo "configure:2170: checking for $ac_hdr" >&5
2170 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2171 echo $ac_n "(cached) $ac_c" 1>&6
2172 else
2173 cat > conftest.$ac_ext <<EOF
2174 #line 2175 "configure"
2175 #include "confdefs.h"
2176 #include <$ac_hdr>
2178 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2179 { (eval echo configure:2180: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2180 ac_err=`grep -v '^ *+' conftest.out`
2181 if test -z "$ac_err"; then
2182 rm -rf conftest*
2183 eval "ac_cv_header_$ac_safe=yes"
2184 else
2185 echo "$ac_err" >&5
2186 echo "configure: failed program was:" >&5
2187 cat conftest.$ac_ext >&5
2188 rm -rf conftest*
2189 eval "ac_cv_header_$ac_safe=no"
2191 rm -f conftest*
2193 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2194 echo "$ac_t""yes" 1>&6
2195 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2196 cat >> confdefs.h <<EOF
2197 #define $ac_tr_hdr 1
2200 else
2201 echo "$ac_t""no" 1>&6
2203 done
2206 echo $ac_n "checking size of int""... $ac_c" 1>&6
2207 echo "configure:2208: checking size of int" >&5
2208 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2209 echo $ac_n "(cached) $ac_c" 1>&6
2210 else
2211 if test "$cross_compiling" = yes; then
2212 ac_cv_sizeof_int=cross
2213 else
2214 cat > conftest.$ac_ext <<EOF
2215 #line 2216 "configure"
2216 #include "confdefs.h"
2217 #include <stdio.h>
2218 main()
2220 FILE *f=fopen("conftestval", "w");
2221 if (!f) exit(1);
2222 fprintf(f, "%d\n", sizeof(int));
2223 exit(0);
2226 if { (eval echo configure:2227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2227 then
2228 ac_cv_sizeof_int=`cat conftestval`
2229 else
2230 echo "configure: failed program was:" >&5
2231 cat conftest.$ac_ext >&5
2232 rm -fr conftest*
2233 ac_cv_sizeof_int=0
2235 rm -fr conftest*
2239 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2240 cat >> confdefs.h <<EOF
2241 #define SIZEOF_INT $ac_cv_sizeof_int
2245 echo $ac_n "checking size of long""... $ac_c" 1>&6
2246 echo "configure:2247: checking size of long" >&5
2247 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2248 echo $ac_n "(cached) $ac_c" 1>&6
2249 else
2250 if test "$cross_compiling" = yes; then
2251 ac_cv_sizeof_long=cross
2252 else
2253 cat > conftest.$ac_ext <<EOF
2254 #line 2255 "configure"
2255 #include "confdefs.h"
2256 #include <stdio.h>
2257 main()
2259 FILE *f=fopen("conftestval", "w");
2260 if (!f) exit(1);
2261 fprintf(f, "%d\n", sizeof(long));
2262 exit(0);
2265 if { (eval echo configure:2266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2266 then
2267 ac_cv_sizeof_long=`cat conftestval`
2268 else
2269 echo "configure: failed program was:" >&5
2270 cat conftest.$ac_ext >&5
2271 rm -fr conftest*
2272 ac_cv_sizeof_long=0
2274 rm -fr conftest*
2278 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2279 cat >> confdefs.h <<EOF
2280 #define SIZEOF_LONG $ac_cv_sizeof_long
2284 echo $ac_n "checking size of short""... $ac_c" 1>&6
2285 echo "configure:2286: checking size of short" >&5
2286 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2287 echo $ac_n "(cached) $ac_c" 1>&6
2288 else
2289 if test "$cross_compiling" = yes; then
2290 ac_cv_sizeof_short=cross
2291 else
2292 cat > conftest.$ac_ext <<EOF
2293 #line 2294 "configure"
2294 #include "confdefs.h"
2295 #include <stdio.h>
2296 main()
2298 FILE *f=fopen("conftestval", "w");
2299 if (!f) exit(1);
2300 fprintf(f, "%d\n", sizeof(short));
2301 exit(0);
2304 if { (eval echo configure:2305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2305 then
2306 ac_cv_sizeof_short=`cat conftestval`
2307 else
2308 echo "configure: failed program was:" >&5
2309 cat conftest.$ac_ext >&5
2310 rm -fr conftest*
2311 ac_cv_sizeof_short=0
2313 rm -fr conftest*
2317 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2318 cat >> confdefs.h <<EOF
2319 #define SIZEOF_SHORT $ac_cv_sizeof_short
2324 echo $ac_n "checking for working const""... $ac_c" 1>&6
2325 echo "configure:2326: checking for working const" >&5
2326 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2327 echo $ac_n "(cached) $ac_c" 1>&6
2328 else
2329 cat > conftest.$ac_ext <<EOF
2330 #line 2331 "configure"
2331 #include "confdefs.h"
2333 int main() {
2335 /* Ultrix mips cc rejects this. */
2336 typedef int charset[2]; const charset x;
2337 /* SunOS 4.1.1 cc rejects this. */
2338 char const *const *ccp;
2339 char **p;
2340 /* NEC SVR4.0.2 mips cc rejects this. */
2341 struct point {int x, y;};
2342 static struct point const zero = {0,0};
2343 /* AIX XL C 1.02.0.0 rejects this.
2344 It does not let you subtract one const X* pointer from another in an arm
2345 of an if-expression whose if-part is not a constant expression */
2346 const char *g = "string";
2347 ccp = &g + (g ? g-g : 0);
2348 /* HPUX 7.0 cc rejects these. */
2349 ++ccp;
2350 p = (char**) ccp;
2351 ccp = (char const *const *) p;
2352 { /* SCO 3.2v4 cc rejects this. */
2353 char *t;
2354 char const *s = 0 ? (char *) 0 : (char const *) 0;
2356 *t++ = 0;
2358 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2359 int x[] = {25, 17};
2360 const int *foo = &x[0];
2361 ++foo;
2363 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2364 typedef const int *iptr;
2365 iptr p = 0;
2366 ++p;
2368 { /* AIX XL C 1.02.0.0 rejects this saying
2369 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2370 struct s { int j; const int *ap[3]; };
2371 struct s *b; b->j = 5;
2373 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2374 const int foo = 10;
2377 ; return 0; }
2379 if { (eval echo configure:2380: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2380 rm -rf conftest*
2381 ac_cv_c_const=yes
2382 else
2383 echo "configure: failed program was:" >&5
2384 cat conftest.$ac_ext >&5
2385 rm -rf conftest*
2386 ac_cv_c_const=no
2388 rm -f conftest*
2391 echo "$ac_t""$ac_cv_c_const" 1>&6
2392 if test $ac_cv_c_const = no; then
2393 cat >> confdefs.h <<\EOF
2394 #define const
2399 echo $ac_n "checking for inline""... $ac_c" 1>&6
2400 echo "configure:2401: checking for inline" >&5
2401 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2402 echo $ac_n "(cached) $ac_c" 1>&6
2403 else
2404 ac_cv_c_inline=no
2405 for ac_kw in inline __inline__ __inline; do
2406 cat > conftest.$ac_ext <<EOF
2407 #line 2408 "configure"
2408 #include "confdefs.h"
2410 int main() {
2411 } $ac_kw foo() {
2412 ; return 0; }
2414 if { (eval echo configure:2415: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2415 rm -rf conftest*
2416 ac_cv_c_inline=$ac_kw; break
2417 else
2418 echo "configure: failed program was:" >&5
2419 cat conftest.$ac_ext >&5
2421 rm -f conftest*
2422 done
2426 echo "$ac_t""$ac_cv_c_inline" 1>&6
2427 case "$ac_cv_c_inline" in
2428 inline | yes) ;;
2429 no) cat >> confdefs.h <<\EOF
2430 #define inline
2433 *) cat >> confdefs.h <<EOF
2434 #define inline $ac_cv_c_inline
2437 esac
2439 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
2440 echo "configure:2441: checking whether byte ordering is bigendian" >&5
2441 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
2442 echo $ac_n "(cached) $ac_c" 1>&6
2443 else
2444 ac_cv_c_bigendian=unknown
2445 # See if sys/param.h defines the BYTE_ORDER macro.
2446 cat > conftest.$ac_ext <<EOF
2447 #line 2448 "configure"
2448 #include "confdefs.h"
2449 #include <sys/types.h>
2450 #include <sys/param.h>
2451 int main() {
2453 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2454 bogus endian macros
2455 #endif
2456 ; return 0; }
2458 if { (eval echo configure:2459: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2459 rm -rf conftest*
2460 # It does; now see whether it defined to BIG_ENDIAN or not.
2461 cat > conftest.$ac_ext <<EOF
2462 #line 2463 "configure"
2463 #include "confdefs.h"
2464 #include <sys/types.h>
2465 #include <sys/param.h>
2466 int main() {
2468 #if BYTE_ORDER != BIG_ENDIAN
2469 not big endian
2470 #endif
2471 ; return 0; }
2473 if { (eval echo configure:2474: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2474 rm -rf conftest*
2475 ac_cv_c_bigendian=yes
2476 else
2477 echo "configure: failed program was:" >&5
2478 cat conftest.$ac_ext >&5
2479 rm -rf conftest*
2480 ac_cv_c_bigendian=no
2482 rm -f conftest*
2483 else
2484 echo "configure: failed program was:" >&5
2485 cat conftest.$ac_ext >&5
2487 rm -f conftest*
2488 if test $ac_cv_c_bigendian = unknown; then
2489 if test "$cross_compiling" = yes; then
2490 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2491 else
2492 cat > conftest.$ac_ext <<EOF
2493 #line 2494 "configure"
2494 #include "confdefs.h"
2495 main () {
2496 /* Are we little or big endian? From Harbison&Steele. */
2497 union
2499 long l;
2500 char c[sizeof (long)];
2501 } u;
2502 u.l = 1;
2503 exit (u.c[sizeof (long) - 1] == 1);
2506 if { (eval echo configure:2507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2507 then
2508 ac_cv_c_bigendian=no
2509 else
2510 echo "configure: failed program was:" >&5
2511 cat conftest.$ac_ext >&5
2512 rm -fr conftest*
2513 ac_cv_c_bigendian=yes
2515 rm -fr conftest*
2521 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
2522 if test $ac_cv_c_bigendian = yes; then
2523 cat >> confdefs.h <<\EOF
2524 #define WORDS_BIGENDIAN 1
2529 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
2530 echo "configure:2531: checking whether char is unsigned" >&5
2531 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
2532 echo $ac_n "(cached) $ac_c" 1>&6
2533 else
2534 if test "$GCC" = yes; then
2535 # GCC predefines this symbol on systems where it applies.
2536 cat > conftest.$ac_ext <<EOF
2537 #line 2538 "configure"
2538 #include "confdefs.h"
2539 #ifdef __CHAR_UNSIGNED__
2541 #endif
2544 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2545 egrep "yes" >/dev/null 2>&1; then
2546 rm -rf conftest*
2547 ac_cv_c_char_unsigned=yes
2548 else
2549 rm -rf conftest*
2550 ac_cv_c_char_unsigned=no
2552 rm -f conftest*
2554 else
2555 if test "$cross_compiling" = yes; then
2556 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2557 else
2558 cat > conftest.$ac_ext <<EOF
2559 #line 2560 "configure"
2560 #include "confdefs.h"
2561 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
2562 #if !defined(__STDC__) || __STDC__ != 1
2563 #define volatile
2564 #endif
2565 main() {
2566 volatile char c = 255; exit(c < 0);
2569 if { (eval echo configure:2570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2570 then
2571 ac_cv_c_char_unsigned=yes
2572 else
2573 echo "configure: failed program was:" >&5
2574 cat conftest.$ac_ext >&5
2575 rm -fr conftest*
2576 ac_cv_c_char_unsigned=no
2578 rm -fr conftest*
2584 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
2585 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
2586 cat >> confdefs.h <<\EOF
2587 #define __CHAR_UNSIGNED__ 1
2593 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2594 echo "configure:2595: checking return type of signal handlers" >&5
2595 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2596 echo $ac_n "(cached) $ac_c" 1>&6
2597 else
2598 cat > conftest.$ac_ext <<EOF
2599 #line 2600 "configure"
2600 #include "confdefs.h"
2601 #include <sys/types.h>
2602 #include <signal.h>
2603 #ifdef signal
2604 #undef signal
2605 #endif
2606 #ifdef __cplusplus
2607 extern "C" void (*signal (int, void (*)(int)))(int);
2608 #else
2609 void (*signal ()) ();
2610 #endif
2612 int main() {
2613 int i;
2614 ; return 0; }
2616 if { (eval echo configure:2617: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2617 rm -rf conftest*
2618 ac_cv_type_signal=void
2619 else
2620 echo "configure: failed program was:" >&5
2621 cat conftest.$ac_ext >&5
2622 rm -rf conftest*
2623 ac_cv_type_signal=int
2625 rm -f conftest*
2628 echo "$ac_t""$ac_cv_type_signal" 1>&6
2629 cat >> confdefs.h <<EOF
2630 #define RETSIGTYPE $ac_cv_type_signal
2634 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2635 echo "configure:2636: checking for uid_t in sys/types.h" >&5
2636 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
2637 echo $ac_n "(cached) $ac_c" 1>&6
2638 else
2639 cat > conftest.$ac_ext <<EOF
2640 #line 2641 "configure"
2641 #include "confdefs.h"
2642 #include <sys/types.h>
2644 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2645 egrep "uid_t" >/dev/null 2>&1; then
2646 rm -rf conftest*
2647 ac_cv_type_uid_t=yes
2648 else
2649 rm -rf conftest*
2650 ac_cv_type_uid_t=no
2652 rm -f conftest*
2656 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
2657 if test $ac_cv_type_uid_t = no; then
2658 cat >> confdefs.h <<\EOF
2659 #define uid_t int
2662 cat >> confdefs.h <<\EOF
2663 #define gid_t int
2668 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
2669 echo "configure:2670: checking for mode_t" >&5
2670 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
2671 echo $ac_n "(cached) $ac_c" 1>&6
2672 else
2673 cat > conftest.$ac_ext <<EOF
2674 #line 2675 "configure"
2675 #include "confdefs.h"
2676 #include <sys/types.h>
2677 #if STDC_HEADERS
2678 #include <stdlib.h>
2679 #include <stddef.h>
2680 #endif
2682 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2683 egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2684 rm -rf conftest*
2685 ac_cv_type_mode_t=yes
2686 else
2687 rm -rf conftest*
2688 ac_cv_type_mode_t=no
2690 rm -f conftest*
2693 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
2694 if test $ac_cv_type_mode_t = no; then
2695 cat >> confdefs.h <<\EOF
2696 #define mode_t int
2701 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2702 echo "configure:2703: checking for off_t" >&5
2703 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2704 echo $ac_n "(cached) $ac_c" 1>&6
2705 else
2706 cat > conftest.$ac_ext <<EOF
2707 #line 2708 "configure"
2708 #include "confdefs.h"
2709 #include <sys/types.h>
2710 #if STDC_HEADERS
2711 #include <stdlib.h>
2712 #include <stddef.h>
2713 #endif
2715 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2716 egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2717 rm -rf conftest*
2718 ac_cv_type_off_t=yes
2719 else
2720 rm -rf conftest*
2721 ac_cv_type_off_t=no
2723 rm -f conftest*
2726 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2727 if test $ac_cv_type_off_t = no; then
2728 cat >> confdefs.h <<\EOF
2729 #define off_t long
2734 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2735 echo "configure:2736: checking for size_t" >&5
2736 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2737 echo $ac_n "(cached) $ac_c" 1>&6
2738 else
2739 cat > conftest.$ac_ext <<EOF
2740 #line 2741 "configure"
2741 #include "confdefs.h"
2742 #include <sys/types.h>
2743 #if STDC_HEADERS
2744 #include <stdlib.h>
2745 #include <stddef.h>
2746 #endif
2748 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2749 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2750 rm -rf conftest*
2751 ac_cv_type_size_t=yes
2752 else
2753 rm -rf conftest*
2754 ac_cv_type_size_t=no
2756 rm -f conftest*
2759 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2760 if test $ac_cv_type_size_t = no; then
2761 cat >> confdefs.h <<\EOF
2762 #define size_t unsigned
2767 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2768 echo "configure:2769: checking for pid_t" >&5
2769 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2770 echo $ac_n "(cached) $ac_c" 1>&6
2771 else
2772 cat > conftest.$ac_ext <<EOF
2773 #line 2774 "configure"
2774 #include "confdefs.h"
2775 #include <sys/types.h>
2776 #if STDC_HEADERS
2777 #include <stdlib.h>
2778 #include <stddef.h>
2779 #endif
2781 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2782 egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2783 rm -rf conftest*
2784 ac_cv_type_pid_t=yes
2785 else
2786 rm -rf conftest*
2787 ac_cv_type_pid_t=no
2789 rm -f conftest*
2792 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2793 if test $ac_cv_type_pid_t = no; then
2794 cat >> confdefs.h <<\EOF
2795 #define pid_t int
2800 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
2801 echo "configure:2802: checking for st_rdev in struct stat" >&5
2802 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
2803 echo $ac_n "(cached) $ac_c" 1>&6
2804 else
2805 cat > conftest.$ac_ext <<EOF
2806 #line 2807 "configure"
2807 #include "confdefs.h"
2808 #include <sys/types.h>
2809 #include <sys/stat.h>
2810 int main() {
2811 struct stat s; s.st_rdev;
2812 ; return 0; }
2814 if { (eval echo configure:2815: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2815 rm -rf conftest*
2816 ac_cv_struct_st_rdev=yes
2817 else
2818 echo "configure: failed program was:" >&5
2819 cat conftest.$ac_ext >&5
2820 rm -rf conftest*
2821 ac_cv_struct_st_rdev=no
2823 rm -f conftest*
2826 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
2827 if test $ac_cv_struct_st_rdev = yes; then
2828 cat >> confdefs.h <<\EOF
2829 #define HAVE_ST_RDEV 1
2834 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
2835 echo "configure:2836: checking for d_off in dirent" >&5
2836 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
2837 echo $ac_n "(cached) $ac_c" 1>&6
2838 else
2839 cat > conftest.$ac_ext <<EOF
2840 #line 2841 "configure"
2841 #include "confdefs.h"
2843 #include <unistd.h>
2844 #include <sys/types.h>
2845 #include <dirent.h>
2846 int main() {
2847 struct dirent d; d.d_off;
2848 ; return 0; }
2850 if { (eval echo configure:2851: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2851 rm -rf conftest*
2852 ac_cv_dirent_d_off=yes
2853 else
2854 echo "configure: failed program was:" >&5
2855 cat conftest.$ac_ext >&5
2856 rm -rf conftest*
2857 ac_cv_dirent_d_off=no
2859 rm -f conftest*
2862 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
2863 if test $ac_cv_dirent_d_off = yes; then
2864 cat >> confdefs.h <<\EOF
2865 #define HAVE_DIRENT_D_OFF 1
2870 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
2871 echo "configure:2872: checking for ino_t" >&5
2872 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
2873 echo $ac_n "(cached) $ac_c" 1>&6
2874 else
2875 cat > conftest.$ac_ext <<EOF
2876 #line 2877 "configure"
2877 #include "confdefs.h"
2878 #include <sys/types.h>
2879 #if STDC_HEADERS
2880 #include <stdlib.h>
2881 #include <stddef.h>
2882 #endif
2884 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2885 egrep "ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2886 rm -rf conftest*
2887 ac_cv_type_ino_t=yes
2888 else
2889 rm -rf conftest*
2890 ac_cv_type_ino_t=no
2892 rm -f conftest*
2895 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
2896 if test $ac_cv_type_ino_t = no; then
2897 cat >> confdefs.h <<\EOF
2898 #define ino_t unsigned
2903 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
2904 echo "configure:2905: checking for loff_t" >&5
2905 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
2906 echo $ac_n "(cached) $ac_c" 1>&6
2907 else
2908 cat > conftest.$ac_ext <<EOF
2909 #line 2910 "configure"
2910 #include "confdefs.h"
2911 #include <sys/types.h>
2912 #if STDC_HEADERS
2913 #include <stdlib.h>
2914 #include <stddef.h>
2915 #endif
2917 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2918 egrep "loff_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2919 rm -rf conftest*
2920 ac_cv_type_loff_t=yes
2921 else
2922 rm -rf conftest*
2923 ac_cv_type_loff_t=no
2925 rm -f conftest*
2928 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
2929 if test $ac_cv_type_loff_t = no; then
2930 cat >> confdefs.h <<\EOF
2931 #define loff_t off_t
2936 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
2937 echo "configure:2938: checking for offset_t" >&5
2938 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
2939 echo $ac_n "(cached) $ac_c" 1>&6
2940 else
2941 cat > conftest.$ac_ext <<EOF
2942 #line 2943 "configure"
2943 #include "confdefs.h"
2944 #include <sys/types.h>
2945 #if STDC_HEADERS
2946 #include <stdlib.h>
2947 #include <stddef.h>
2948 #endif
2950 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2951 egrep "offset_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2952 rm -rf conftest*
2953 ac_cv_type_offset_t=yes
2954 else
2955 rm -rf conftest*
2956 ac_cv_type_offset_t=no
2958 rm -f conftest*
2961 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
2962 if test $ac_cv_type_offset_t = no; then
2963 cat >> confdefs.h <<\EOF
2964 #define offset_t loff_t
2969 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
2970 echo "configure:2971: checking for ssize_t" >&5
2971 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
2972 echo $ac_n "(cached) $ac_c" 1>&6
2973 else
2974 cat > conftest.$ac_ext <<EOF
2975 #line 2976 "configure"
2976 #include "confdefs.h"
2977 #include <sys/types.h>
2978 #if STDC_HEADERS
2979 #include <stdlib.h>
2980 #include <stddef.h>
2981 #endif
2983 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2984 egrep "ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2985 rm -rf conftest*
2986 ac_cv_type_ssize_t=yes
2987 else
2988 rm -rf conftest*
2989 ac_cv_type_ssize_t=no
2991 rm -f conftest*
2994 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
2995 if test $ac_cv_type_ssize_t = no; then
2996 cat >> confdefs.h <<\EOF
2997 #define ssize_t int
3003 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
3004 echo "configure:3005: checking for sig_atomic_t type" >&5
3005 if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+set}'`\" = set"; then
3006 echo $ac_n "(cached) $ac_c" 1>&6
3007 else
3009 cat > conftest.$ac_ext <<EOF
3010 #line 3011 "configure"
3011 #include "confdefs.h"
3013 #include <sys/types.h>
3014 #if STDC_HEADERS
3015 #include <stdlib.h>
3016 #include <stddef.h>
3017 #endif
3018 #include <signal.h>
3019 int main() {
3020 sig_atomic_t i = 0
3021 ; return 0; }
3023 if { (eval echo configure:3024: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3024 rm -rf conftest*
3025 samba_cv_sig_atomic_t=yes
3026 else
3027 echo "configure: failed program was:" >&5
3028 cat conftest.$ac_ext >&5
3029 rm -rf conftest*
3030 samba_cv_sig_atomic_t=no
3032 rm -f conftest*
3035 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
3036 if test x"$samba_cv_sig_atomic_t" = x"yes"; then
3037 cat >> confdefs.h <<\EOF
3038 #define HAVE_SIG_ATOMIC_T_TYPE 1
3043 echo $ac_n "checking for errno in errno.h""... $ac_c" 1>&6
3044 echo "configure:3045: checking for errno in errno.h" >&5
3045 if eval "test \"`echo '$''{'samba_cv_errno'+set}'`\" = set"; then
3046 echo $ac_n "(cached) $ac_c" 1>&6
3047 else
3049 cat > conftest.$ac_ext <<EOF
3050 #line 3051 "configure"
3051 #include "confdefs.h"
3052 #include <errno.h>
3053 int main() {
3054 int i = errno
3055 ; return 0; }
3057 if { (eval echo configure:3058: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3058 rm -rf conftest*
3059 samba_cv_errno=yes
3060 else
3061 echo "configure: failed program was:" >&5
3062 cat conftest.$ac_ext >&5
3063 rm -rf conftest*
3064 samba_cv_have_errno=no
3066 rm -f conftest*
3069 echo "$ac_t""$samba_cv_errno" 1>&6
3070 if test x"$samba_cv_errno" = x"yes"; then
3071 cat >> confdefs.h <<\EOF
3072 #define HAVE_ERRNO_DECL 1
3077 # stupid glibc has the functions but no declaration. grrrr.
3078 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
3079 echo "configure:3080: checking for setresuid declaration" >&5
3080 if eval "test \"`echo '$''{'samba_cv_have_setresuid_decl'+set}'`\" = set"; then
3081 echo $ac_n "(cached) $ac_c" 1>&6
3082 else
3084 cat > conftest.$ac_ext <<EOF
3085 #line 3086 "configure"
3086 #include "confdefs.h"
3087 #include <unistd.h>
3088 int main() {
3089 int i = (int)setresuid
3090 ; return 0; }
3092 if { (eval echo configure:3093: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3093 rm -rf conftest*
3094 samba_cv_have_setresuid_decl=yes
3095 else
3096 echo "configure: failed program was:" >&5
3097 cat conftest.$ac_ext >&5
3098 rm -rf conftest*
3099 samba_cv_have_setresuid_decl=no
3101 rm -f conftest*
3104 echo "$ac_t""$samba_cv_have_setresuid_decl" 1>&6
3105 if test x"$samba_cv_have_setresuid_decl" = x"yes"; then
3106 cat >> confdefs.h <<\EOF
3107 #define HAVE_SETRESUID_DECL 1
3112 # stupid glibc has the functions but no declaration. grrrr.
3113 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
3114 echo "configure:3115: checking for setresgid declaration" >&5
3115 if eval "test \"`echo '$''{'samba_cv_have_setresgid_decl'+set}'`\" = set"; then
3116 echo $ac_n "(cached) $ac_c" 1>&6
3117 else
3119 cat > conftest.$ac_ext <<EOF
3120 #line 3121 "configure"
3121 #include "confdefs.h"
3122 #include <unistd.h>
3123 int main() {
3124 int i = (int)setresgid
3125 ; return 0; }
3127 if { (eval echo configure:3128: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3128 rm -rf conftest*
3129 samba_cv_have_setresgid_decl=yes
3130 else
3131 echo "configure: failed program was:" >&5
3132 cat conftest.$ac_ext >&5
3133 rm -rf conftest*
3134 samba_cv_have_setresgid_decl=no
3136 rm -f conftest*
3139 echo "$ac_t""$samba_cv_have_setresgid_decl" 1>&6
3140 if test x"$samba_cv_have_setresgid_decl" = x"yes"; then
3141 cat >> confdefs.h <<\EOF
3142 #define HAVE_SETRESGID_DECL 1
3147 # stupid glibc has the functions but no declaration. grrrr.
3148 echo $ac_n "checking for crypt declaration""... $ac_c" 1>&6
3149 echo "configure:3150: checking for crypt declaration" >&5
3150 if eval "test \"`echo '$''{'samba_cv_have_crypt_decl'+set}'`\" = set"; then
3151 echo $ac_n "(cached) $ac_c" 1>&6
3152 else
3154 cat > conftest.$ac_ext <<EOF
3155 #line 3156 "configure"
3156 #include "confdefs.h"
3157 #include <unistd.h>
3158 int main() {
3159 int i = (int)crypt
3160 ; return 0; }
3162 if { (eval echo configure:3163: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3163 rm -rf conftest*
3164 samba_cv_have_crypt_decl=yes
3165 else
3166 echo "configure: failed program was:" >&5
3167 cat conftest.$ac_ext >&5
3168 rm -rf conftest*
3169 samba_cv_have_crypt_decl=no
3171 rm -f conftest*
3174 echo "$ac_t""$samba_cv_have_crypt_decl" 1>&6
3175 if test x"$samba_cv_have_crypt_decl" = x"yes"; then
3176 cat >> confdefs.h <<\EOF
3177 #define HAVE_CRYPT_DECL 1
3182 # and glibc has setresuid under linux but the function does
3183 # nothing until kernel 2.1.44! very dumb.
3184 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
3185 echo "configure:3186: checking for real setresuid" >&5
3186 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
3187 echo $ac_n "(cached) $ac_c" 1>&6
3188 else
3190 if test "$cross_compiling" = yes; then
3191 samba_cv_have_setresuid=cross
3192 else
3193 cat > conftest.$ac_ext <<EOF
3194 #line 3195 "configure"
3195 #include "confdefs.h"
3196 #include <errno.h>
3197 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
3199 if { (eval echo configure:3200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3200 then
3201 samba_cv_have_setresuid=yes
3202 else
3203 echo "configure: failed program was:" >&5
3204 cat conftest.$ac_ext >&5
3205 rm -fr conftest*
3206 samba_cv_have_setresuid=no
3208 rm -fr conftest*
3213 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
3214 if test x"$samba_cv_have_setresuid" = x"yes"; then
3215 cat >> confdefs.h <<\EOF
3216 #define HAVE_SETRESUID 1
3221 # Do the same check for setresguid...
3223 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
3224 echo "configure:3225: checking for real setresgid" >&5
3225 if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then
3226 echo $ac_n "(cached) $ac_c" 1>&6
3227 else
3229 if test "$cross_compiling" = yes; then
3230 samba_cv_have_setresgid=cross
3231 else
3232 cat > conftest.$ac_ext <<EOF
3233 #line 3234 "configure"
3234 #include "confdefs.h"
3235 #include <unistd.h>
3236 #include <errno.h>
3237 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
3239 if { (eval echo configure:3240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3240 then
3241 samba_cv_have_setresgid=yes
3242 else
3243 echo "configure: failed program was:" >&5
3244 cat conftest.$ac_ext >&5
3245 rm -fr conftest*
3246 samba_cv_have_setresgid=no
3248 rm -fr conftest*
3253 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
3254 if test x"$samba_cv_have_setresgid" = x"yes"; then
3255 cat >> confdefs.h <<\EOF
3256 #define HAVE_SETRESGID 1
3261 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
3262 echo "configure:3263: checking for 8-bit clean memcmp" >&5
3263 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
3264 echo $ac_n "(cached) $ac_c" 1>&6
3265 else
3266 if test "$cross_compiling" = yes; then
3267 ac_cv_func_memcmp_clean=no
3268 else
3269 cat > conftest.$ac_ext <<EOF
3270 #line 3271 "configure"
3271 #include "confdefs.h"
3273 main()
3275 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
3276 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
3280 if { (eval echo configure:3281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3281 then
3282 ac_cv_func_memcmp_clean=yes
3283 else
3284 echo "configure: failed program was:" >&5
3285 cat conftest.$ac_ext >&5
3286 rm -fr conftest*
3287 ac_cv_func_memcmp_clean=no
3289 rm -fr conftest*
3294 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
3295 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.o"
3298 ###############################################
3299 # test for where we get crypt() from
3300 for ac_func in crypt
3302 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3303 echo "configure:3304: checking for $ac_func" >&5
3304 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3305 echo $ac_n "(cached) $ac_c" 1>&6
3306 else
3307 cat > conftest.$ac_ext <<EOF
3308 #line 3309 "configure"
3309 #include "confdefs.h"
3310 /* System header to define __stub macros and hopefully few prototypes,
3311 which can conflict with char $ac_func(); below. */
3312 #include <assert.h>
3313 /* Override any gcc2 internal prototype to avoid an error. */
3314 /* We use char because int might match the return type of a gcc2
3315 builtin and then its argument prototype would still apply. */
3316 char $ac_func();
3318 int main() {
3320 /* The GNU C library defines this for functions which it implements
3321 to always fail with ENOSYS. Some functions are actually named
3322 something starting with __ and the normal name is an alias. */
3323 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3324 choke me
3325 #else
3326 $ac_func();
3327 #endif
3329 ; return 0; }
3331 if { (eval echo configure:3332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3332 rm -rf conftest*
3333 eval "ac_cv_func_$ac_func=yes"
3334 else
3335 echo "configure: failed program was:" >&5
3336 cat conftest.$ac_ext >&5
3337 rm -rf conftest*
3338 eval "ac_cv_func_$ac_func=no"
3340 rm -f conftest*
3343 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3344 echo "$ac_t""yes" 1>&6
3345 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3346 cat >> confdefs.h <<EOF
3347 #define $ac_tr_func 1
3350 else
3351 echo "$ac_t""no" 1>&6
3353 done
3355 if test x"$ac_cv_func_crypt" = x"no"; then
3356 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
3357 echo "configure:3358: checking for crypt in -lcrypt" >&5
3358 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
3359 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3360 echo $ac_n "(cached) $ac_c" 1>&6
3361 else
3362 ac_save_LIBS="$LIBS"
3363 LIBS="-lcrypt $LIBS"
3364 cat > conftest.$ac_ext <<EOF
3365 #line 3366 "configure"
3366 #include "confdefs.h"
3367 /* Override any gcc2 internal prototype to avoid an error. */
3368 /* We use char because int might match the return type of a gcc2
3369 builtin and then its argument prototype would still apply. */
3370 char crypt();
3372 int main() {
3373 crypt()
3374 ; return 0; }
3376 if { (eval echo configure:3377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3377 rm -rf conftest*
3378 eval "ac_cv_lib_$ac_lib_var=yes"
3379 else
3380 echo "configure: failed program was:" >&5
3381 cat conftest.$ac_ext >&5
3382 rm -rf conftest*
3383 eval "ac_cv_lib_$ac_lib_var=no"
3385 rm -f conftest*
3386 LIBS="$ac_save_LIBS"
3389 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3390 echo "$ac_t""yes" 1>&6
3391 LIBS="$LIBS -lcrypt";
3392 cat >> confdefs.h <<\EOF
3393 #define HAVE_CRYPT 1
3396 else
3397 echo "$ac_t""no" 1>&6
3403 ###############################################
3404 # test for where we get pam_authenticate() from
3405 # might need libdl for this to work
3406 if test "$ac_cv_header_security_pam_appl_h" = "yes"; then
3407 echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
3408 echo "configure:3409: checking for main in -ldl" >&5
3409 ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
3410 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3411 echo $ac_n "(cached) $ac_c" 1>&6
3412 else
3413 ac_save_LIBS="$LIBS"
3414 LIBS="-ldl $LIBS"
3415 cat > conftest.$ac_ext <<EOF
3416 #line 3417 "configure"
3417 #include "confdefs.h"
3419 int main() {
3420 main()
3421 ; return 0; }
3423 if { (eval echo configure:3424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3424 rm -rf conftest*
3425 eval "ac_cv_lib_$ac_lib_var=yes"
3426 else
3427 echo "configure: failed program was:" >&5
3428 cat conftest.$ac_ext >&5
3429 rm -rf conftest*
3430 eval "ac_cv_lib_$ac_lib_var=no"
3432 rm -f conftest*
3433 LIBS="$ac_save_LIBS"
3436 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3437 echo "$ac_t""yes" 1>&6
3438 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3439 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3440 cat >> confdefs.h <<EOF
3441 #define $ac_tr_lib 1
3444 LIBS="-ldl $LIBS"
3446 else
3447 echo "$ac_t""no" 1>&6
3451 for ac_func in pam_authenticate
3453 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3454 echo "configure:3455: checking for $ac_func" >&5
3455 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3456 echo $ac_n "(cached) $ac_c" 1>&6
3457 else
3458 cat > conftest.$ac_ext <<EOF
3459 #line 3460 "configure"
3460 #include "confdefs.h"
3461 /* System header to define __stub macros and hopefully few prototypes,
3462 which can conflict with char $ac_func(); below. */
3463 #include <assert.h>
3464 /* Override any gcc2 internal prototype to avoid an error. */
3465 /* We use char because int might match the return type of a gcc2
3466 builtin and then its argument prototype would still apply. */
3467 char $ac_func();
3469 int main() {
3471 /* The GNU C library defines this for functions which it implements
3472 to always fail with ENOSYS. Some functions are actually named
3473 something starting with __ and the normal name is an alias. */
3474 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3475 choke me
3476 #else
3477 $ac_func();
3478 #endif
3480 ; return 0; }
3482 if { (eval echo configure:3483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3483 rm -rf conftest*
3484 eval "ac_cv_func_$ac_func=yes"
3485 else
3486 echo "configure: failed program was:" >&5
3487 cat conftest.$ac_ext >&5
3488 rm -rf conftest*
3489 eval "ac_cv_func_$ac_func=no"
3491 rm -f conftest*
3494 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3495 echo "$ac_t""yes" 1>&6
3496 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3497 cat >> confdefs.h <<EOF
3498 #define $ac_tr_func 1
3501 else
3502 echo "$ac_t""no" 1>&6
3504 done
3506 if test x"$ac_cv_func_pam_authenticate" = x"no"; then
3507 echo $ac_n "checking for pam_authenticate in -lpam""... $ac_c" 1>&6
3508 echo "configure:3509: checking for pam_authenticate in -lpam" >&5
3509 ac_lib_var=`echo pam'_'pam_authenticate | sed 'y%./+-%__p_%'`
3510 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3511 echo $ac_n "(cached) $ac_c" 1>&6
3512 else
3513 ac_save_LIBS="$LIBS"
3514 LIBS="-lpam $LIBS"
3515 cat > conftest.$ac_ext <<EOF
3516 #line 3517 "configure"
3517 #include "confdefs.h"
3518 /* Override any gcc2 internal prototype to avoid an error. */
3519 /* We use char because int might match the return type of a gcc2
3520 builtin and then its argument prototype would still apply. */
3521 char pam_authenticate();
3523 int main() {
3524 pam_authenticate()
3525 ; return 0; }
3527 if { (eval echo configure:3528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3528 rm -rf conftest*
3529 eval "ac_cv_lib_$ac_lib_var=yes"
3530 else
3531 echo "configure: failed program was:" >&5
3532 cat conftest.$ac_ext >&5
3533 rm -rf conftest*
3534 eval "ac_cv_lib_$ac_lib_var=no"
3536 rm -f conftest*
3537 LIBS="$ac_save_LIBS"
3540 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3541 echo "$ac_t""yes" 1>&6
3542 LIBS="$LIBS -lpam"
3543 cat >> confdefs.h <<\EOF
3544 #define HAVE_PAM_AUTHENTICATE 1
3547 else
3548 echo "$ac_t""no" 1>&6
3554 ###############################################
3555 # test for where we get readline() from
3556 if test "$ac_cv_header_readline_h" = "yes" ||
3557 test "$ac_cv_header_readline_readline_h" = "yes"; then
3558 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
3559 echo "configure:3560: checking for readline in -lreadline" >&5
3560 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
3561 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3562 echo $ac_n "(cached) $ac_c" 1>&6
3563 else
3564 ac_save_LIBS="$LIBS"
3565 LIBS="-lreadline $LIBS"
3566 cat > conftest.$ac_ext <<EOF
3567 #line 3568 "configure"
3568 #include "confdefs.h"
3569 /* Override any gcc2 internal prototype to avoid an error. */
3570 /* We use char because int might match the return type of a gcc2
3571 builtin and then its argument prototype would still apply. */
3572 char readline();
3574 int main() {
3575 readline()
3576 ; return 0; }
3578 if { (eval echo configure:3579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3579 rm -rf conftest*
3580 eval "ac_cv_lib_$ac_lib_var=yes"
3581 else
3582 echo "configure: failed program was:" >&5
3583 cat conftest.$ac_ext >&5
3584 rm -rf conftest*
3585 eval "ac_cv_lib_$ac_lib_var=no"
3587 rm -f conftest*
3588 LIBS="$ac_save_LIBS"
3591 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3592 echo "$ac_t""yes" 1>&6
3593 ac_tr_lib=HAVE_LIB`echo readline | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3594 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3595 cat >> confdefs.h <<EOF
3596 #define $ac_tr_lib 1
3599 LIBS="-lreadline $LIBS"
3601 else
3602 echo "$ac_t""no" 1>&6
3608 # The following test taken from the cvs sources
3609 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
3610 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
3611 # libsocket.so which has a bad implementation of gethostbyname (it
3612 # only looks in /etc/hosts), so we only look for -lsocket if we need
3613 # it.
3614 for ac_func in connect
3616 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3617 echo "configure:3618: checking for $ac_func" >&5
3618 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3619 echo $ac_n "(cached) $ac_c" 1>&6
3620 else
3621 cat > conftest.$ac_ext <<EOF
3622 #line 3623 "configure"
3623 #include "confdefs.h"
3624 /* System header to define __stub macros and hopefully few prototypes,
3625 which can conflict with char $ac_func(); below. */
3626 #include <assert.h>
3627 /* Override any gcc2 internal prototype to avoid an error. */
3628 /* We use char because int might match the return type of a gcc2
3629 builtin and then its argument prototype would still apply. */
3630 char $ac_func();
3632 int main() {
3634 /* The GNU C library defines this for functions which it implements
3635 to always fail with ENOSYS. Some functions are actually named
3636 something starting with __ and the normal name is an alias. */
3637 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3638 choke me
3639 #else
3640 $ac_func();
3641 #endif
3643 ; return 0; }
3645 if { (eval echo configure:3646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3646 rm -rf conftest*
3647 eval "ac_cv_func_$ac_func=yes"
3648 else
3649 echo "configure: failed program was:" >&5
3650 cat conftest.$ac_ext >&5
3651 rm -rf conftest*
3652 eval "ac_cv_func_$ac_func=no"
3654 rm -f conftest*
3657 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3658 echo "$ac_t""yes" 1>&6
3659 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3660 cat >> confdefs.h <<EOF
3661 #define $ac_tr_func 1
3664 else
3665 echo "$ac_t""no" 1>&6
3667 done
3669 if test x"$ac_cv_func_connect" = x"no"; then
3670 case "$LIBS" in
3671 *-lnsl*) ;;
3672 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
3673 echo "configure:3674: checking for printf in -lnsl_s" >&5
3674 ac_lib_var=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
3675 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3676 echo $ac_n "(cached) $ac_c" 1>&6
3677 else
3678 ac_save_LIBS="$LIBS"
3679 LIBS="-lnsl_s $LIBS"
3680 cat > conftest.$ac_ext <<EOF
3681 #line 3682 "configure"
3682 #include "confdefs.h"
3683 /* Override any gcc2 internal prototype to avoid an error. */
3684 /* We use char because int might match the return type of a gcc2
3685 builtin and then its argument prototype would still apply. */
3686 char printf();
3688 int main() {
3689 printf()
3690 ; return 0; }
3692 if { (eval echo configure:3693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3693 rm -rf conftest*
3694 eval "ac_cv_lib_$ac_lib_var=yes"
3695 else
3696 echo "configure: failed program was:" >&5
3697 cat conftest.$ac_ext >&5
3698 rm -rf conftest*
3699 eval "ac_cv_lib_$ac_lib_var=no"
3701 rm -f conftest*
3702 LIBS="$ac_save_LIBS"
3705 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3706 echo "$ac_t""yes" 1>&6
3707 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3708 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3709 cat >> confdefs.h <<EOF
3710 #define $ac_tr_lib 1
3713 LIBS="-lnsl_s $LIBS"
3715 else
3716 echo "$ac_t""no" 1>&6
3719 esac
3720 case "$LIBS" in
3721 *-lnsl*) ;;
3722 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
3723 echo "configure:3724: checking for printf in -lnsl" >&5
3724 ac_lib_var=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
3725 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3726 echo $ac_n "(cached) $ac_c" 1>&6
3727 else
3728 ac_save_LIBS="$LIBS"
3729 LIBS="-lnsl $LIBS"
3730 cat > conftest.$ac_ext <<EOF
3731 #line 3732 "configure"
3732 #include "confdefs.h"
3733 /* Override any gcc2 internal prototype to avoid an error. */
3734 /* We use char because int might match the return type of a gcc2
3735 builtin and then its argument prototype would still apply. */
3736 char printf();
3738 int main() {
3739 printf()
3740 ; return 0; }
3742 if { (eval echo configure:3743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3743 rm -rf conftest*
3744 eval "ac_cv_lib_$ac_lib_var=yes"
3745 else
3746 echo "configure: failed program was:" >&5
3747 cat conftest.$ac_ext >&5
3748 rm -rf conftest*
3749 eval "ac_cv_lib_$ac_lib_var=no"
3751 rm -f conftest*
3752 LIBS="$ac_save_LIBS"
3755 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3756 echo "$ac_t""yes" 1>&6
3757 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3758 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3759 cat >> confdefs.h <<EOF
3760 #define $ac_tr_lib 1
3763 LIBS="-lnsl $LIBS"
3765 else
3766 echo "$ac_t""no" 1>&6
3769 esac
3770 case "$LIBS" in
3771 *-lsocket*) ;;
3772 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3773 echo "configure:3774: checking for connect in -lsocket" >&5
3774 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3775 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3776 echo $ac_n "(cached) $ac_c" 1>&6
3777 else
3778 ac_save_LIBS="$LIBS"
3779 LIBS="-lsocket $LIBS"
3780 cat > conftest.$ac_ext <<EOF
3781 #line 3782 "configure"
3782 #include "confdefs.h"
3783 /* Override any gcc2 internal prototype to avoid an error. */
3784 /* We use char because int might match the return type of a gcc2
3785 builtin and then its argument prototype would still apply. */
3786 char connect();
3788 int main() {
3789 connect()
3790 ; return 0; }
3792 if { (eval echo configure:3793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3793 rm -rf conftest*
3794 eval "ac_cv_lib_$ac_lib_var=yes"
3795 else
3796 echo "configure: failed program was:" >&5
3797 cat conftest.$ac_ext >&5
3798 rm -rf conftest*
3799 eval "ac_cv_lib_$ac_lib_var=no"
3801 rm -f conftest*
3802 LIBS="$ac_save_LIBS"
3805 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3806 echo "$ac_t""yes" 1>&6
3807 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3808 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3809 cat >> confdefs.h <<EOF
3810 #define $ac_tr_lib 1
3813 LIBS="-lsocket $LIBS"
3815 else
3816 echo "$ac_t""no" 1>&6
3819 esac
3820 case "$LIBS" in
3821 *-linet*) ;;
3822 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
3823 echo "configure:3824: checking for connect in -linet" >&5
3824 ac_lib_var=`echo inet'_'connect | sed 'y%./+-%__p_%'`
3825 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3826 echo $ac_n "(cached) $ac_c" 1>&6
3827 else
3828 ac_save_LIBS="$LIBS"
3829 LIBS="-linet $LIBS"
3830 cat > conftest.$ac_ext <<EOF
3831 #line 3832 "configure"
3832 #include "confdefs.h"
3833 /* Override any gcc2 internal prototype to avoid an error. */
3834 /* We use char because int might match the return type of a gcc2
3835 builtin and then its argument prototype would still apply. */
3836 char connect();
3838 int main() {
3839 connect()
3840 ; return 0; }
3842 if { (eval echo configure:3843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3843 rm -rf conftest*
3844 eval "ac_cv_lib_$ac_lib_var=yes"
3845 else
3846 echo "configure: failed program was:" >&5
3847 cat conftest.$ac_ext >&5
3848 rm -rf conftest*
3849 eval "ac_cv_lib_$ac_lib_var=no"
3851 rm -f conftest*
3852 LIBS="$ac_save_LIBS"
3855 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3856 echo "$ac_t""yes" 1>&6
3857 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3858 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3859 cat >> confdefs.h <<EOF
3860 #define $ac_tr_lib 1
3863 LIBS="-linet $LIBS"
3865 else
3866 echo "$ac_t""no" 1>&6
3869 esac
3870 if test x"$ac_cv_lib_socket_connect" = x"yes" ||
3871 test x"$ac_cv_lib_inet_connect" = x"yes"; then
3872 # ac_cv_func_connect=yes
3873 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
3874 cat >> confdefs.h <<\EOF
3875 #define HAVE_CONNECT 1
3881 # Check if we have execl, if not we need to compile smbrun.
3882 for ac_func in execl
3884 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3885 echo "configure:3886: checking for $ac_func" >&5
3886 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3887 echo $ac_n "(cached) $ac_c" 1>&6
3888 else
3889 cat > conftest.$ac_ext <<EOF
3890 #line 3891 "configure"
3891 #include "confdefs.h"
3892 /* System header to define __stub macros and hopefully few prototypes,
3893 which can conflict with char $ac_func(); below. */
3894 #include <assert.h>
3895 /* Override any gcc2 internal prototype to avoid an error. */
3896 /* We use char because int might match the return type of a gcc2
3897 builtin and then its argument prototype would still apply. */
3898 char $ac_func();
3900 int main() {
3902 /* The GNU C library defines this for functions which it implements
3903 to always fail with ENOSYS. Some functions are actually named
3904 something starting with __ and the normal name is an alias. */
3905 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3906 choke me
3907 #else
3908 $ac_func();
3909 #endif
3911 ; return 0; }
3913 if { (eval echo configure:3914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3914 rm -rf conftest*
3915 eval "ac_cv_func_$ac_func=yes"
3916 else
3917 echo "configure: failed program was:" >&5
3918 cat conftest.$ac_ext >&5
3919 rm -rf conftest*
3920 eval "ac_cv_func_$ac_func=no"
3922 rm -f conftest*
3925 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3926 echo "$ac_t""yes" 1>&6
3927 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3928 cat >> confdefs.h <<EOF
3929 #define $ac_tr_func 1
3932 else
3933 echo "$ac_t""no" 1>&6
3935 done
3937 if test x"$ac_cv_func_execl" = x"no"; then
3938 RUNPROG="bin/smbrun"
3939 else
3940 RUNPROG=""
3943 for ac_func in waitpid getcwd strdup strtoul strerror chown chmod chroot
3945 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3946 echo "configure:3947: checking for $ac_func" >&5
3947 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3948 echo $ac_n "(cached) $ac_c" 1>&6
3949 else
3950 cat > conftest.$ac_ext <<EOF
3951 #line 3952 "configure"
3952 #include "confdefs.h"
3953 /* System header to define __stub macros and hopefully few prototypes,
3954 which can conflict with char $ac_func(); below. */
3955 #include <assert.h>
3956 /* Override any gcc2 internal prototype to avoid an error. */
3957 /* We use char because int might match the return type of a gcc2
3958 builtin and then its argument prototype would still apply. */
3959 char $ac_func();
3961 int main() {
3963 /* The GNU C library defines this for functions which it implements
3964 to always fail with ENOSYS. Some functions are actually named
3965 something starting with __ and the normal name is an alias. */
3966 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3967 choke me
3968 #else
3969 $ac_func();
3970 #endif
3972 ; return 0; }
3974 if { (eval echo configure:3975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3975 rm -rf conftest*
3976 eval "ac_cv_func_$ac_func=yes"
3977 else
3978 echo "configure: failed program was:" >&5
3979 cat conftest.$ac_ext >&5
3980 rm -rf conftest*
3981 eval "ac_cv_func_$ac_func=no"
3983 rm -f conftest*
3986 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3987 echo "$ac_t""yes" 1>&6
3988 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3989 cat >> confdefs.h <<EOF
3990 #define $ac_tr_func 1
3993 else
3994 echo "$ac_t""no" 1>&6
3996 done
3998 for ac_func in fstat strchr utime utimes getrlimit fsync bzero memset
4000 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4001 echo "configure:4002: checking for $ac_func" >&5
4002 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4003 echo $ac_n "(cached) $ac_c" 1>&6
4004 else
4005 cat > conftest.$ac_ext <<EOF
4006 #line 4007 "configure"
4007 #include "confdefs.h"
4008 /* System header to define __stub macros and hopefully few prototypes,
4009 which can conflict with char $ac_func(); below. */
4010 #include <assert.h>
4011 /* Override any gcc2 internal prototype to avoid an error. */
4012 /* We use char because int might match the return type of a gcc2
4013 builtin and then its argument prototype would still apply. */
4014 char $ac_func();
4016 int main() {
4018 /* The GNU C library defines this for functions which it implements
4019 to always fail with ENOSYS. Some functions are actually named
4020 something starting with __ and the normal name is an alias. */
4021 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4022 choke me
4023 #else
4024 $ac_func();
4025 #endif
4027 ; return 0; }
4029 if { (eval echo configure:4030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4030 rm -rf conftest*
4031 eval "ac_cv_func_$ac_func=yes"
4032 else
4033 echo "configure: failed program was:" >&5
4034 cat conftest.$ac_ext >&5
4035 rm -rf conftest*
4036 eval "ac_cv_func_$ac_func=no"
4038 rm -f conftest*
4041 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4042 echo "$ac_t""yes" 1>&6
4043 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4044 cat >> confdefs.h <<EOF
4045 #define $ac_tr_func 1
4048 else
4049 echo "$ac_t""no" 1>&6
4051 done
4053 for ac_func in memmove vsnprintf snprintf setsid glob strpbrk pipe crypt16 getauthuid
4055 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4056 echo "configure:4057: checking for $ac_func" >&5
4057 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4058 echo $ac_n "(cached) $ac_c" 1>&6
4059 else
4060 cat > conftest.$ac_ext <<EOF
4061 #line 4062 "configure"
4062 #include "confdefs.h"
4063 /* System header to define __stub macros and hopefully few prototypes,
4064 which can conflict with char $ac_func(); below. */
4065 #include <assert.h>
4066 /* Override any gcc2 internal prototype to avoid an error. */
4067 /* We use char because int might match the return type of a gcc2
4068 builtin and then its argument prototype would still apply. */
4069 char $ac_func();
4071 int main() {
4073 /* The GNU C library defines this for functions which it implements
4074 to always fail with ENOSYS. Some functions are actually named
4075 something starting with __ and the normal name is an alias. */
4076 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4077 choke me
4078 #else
4079 $ac_func();
4080 #endif
4082 ; return 0; }
4084 if { (eval echo configure:4085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4085 rm -rf conftest*
4086 eval "ac_cv_func_$ac_func=yes"
4087 else
4088 echo "configure: failed program was:" >&5
4089 cat conftest.$ac_ext >&5
4090 rm -rf conftest*
4091 eval "ac_cv_func_$ac_func=no"
4093 rm -f conftest*
4096 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4097 echo "$ac_t""yes" 1>&6
4098 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4099 cat >> confdefs.h <<EOF
4100 #define $ac_tr_func 1
4103 else
4104 echo "$ac_t""no" 1>&6
4106 done
4108 for ac_func in strftime sigprocmask sigblock sigaction innetgr setnetgrent getnetgrent endnetgrent
4110 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4111 echo "configure:4112: checking for $ac_func" >&5
4112 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4113 echo $ac_n "(cached) $ac_c" 1>&6
4114 else
4115 cat > conftest.$ac_ext <<EOF
4116 #line 4117 "configure"
4117 #include "confdefs.h"
4118 /* System header to define __stub macros and hopefully few prototypes,
4119 which can conflict with char $ac_func(); below. */
4120 #include <assert.h>
4121 /* Override any gcc2 internal prototype to avoid an error. */
4122 /* We use char because int might match the return type of a gcc2
4123 builtin and then its argument prototype would still apply. */
4124 char $ac_func();
4126 int main() {
4128 /* The GNU C library defines this for functions which it implements
4129 to always fail with ENOSYS. Some functions are actually named
4130 something starting with __ and the normal name is an alias. */
4131 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4132 choke me
4133 #else
4134 $ac_func();
4135 #endif
4137 ; return 0; }
4139 if { (eval echo configure:4140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4140 rm -rf conftest*
4141 eval "ac_cv_func_$ac_func=yes"
4142 else
4143 echo "configure: failed program was:" >&5
4144 cat conftest.$ac_ext >&5
4145 rm -rf conftest*
4146 eval "ac_cv_func_$ac_func=no"
4148 rm -f conftest*
4151 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4152 echo "$ac_t""yes" 1>&6
4153 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4154 cat >> confdefs.h <<EOF
4155 #define $ac_tr_func 1
4158 else
4159 echo "$ac_t""no" 1>&6
4161 done
4163 for ac_func in initgroups select rdchk getgrnam pathconf setreuid setregid seteuid setegid
4165 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4166 echo "configure:4167: checking for $ac_func" >&5
4167 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4168 echo $ac_n "(cached) $ac_c" 1>&6
4169 else
4170 cat > conftest.$ac_ext <<EOF
4171 #line 4172 "configure"
4172 #include "confdefs.h"
4173 /* System header to define __stub macros and hopefully few prototypes,
4174 which can conflict with char $ac_func(); below. */
4175 #include <assert.h>
4176 /* Override any gcc2 internal prototype to avoid an error. */
4177 /* We use char because int might match the return type of a gcc2
4178 builtin and then its argument prototype would still apply. */
4179 char $ac_func();
4181 int main() {
4183 /* The GNU C library defines this for functions which it implements
4184 to always fail with ENOSYS. Some functions are actually named
4185 something starting with __ and the normal name is an alias. */
4186 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4187 choke me
4188 #else
4189 $ac_func();
4190 #endif
4192 ; return 0; }
4194 if { (eval echo configure:4195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4195 rm -rf conftest*
4196 eval "ac_cv_func_$ac_func=yes"
4197 else
4198 echo "configure: failed program was:" >&5
4199 cat conftest.$ac_ext >&5
4200 rm -rf conftest*
4201 eval "ac_cv_func_$ac_func=no"
4203 rm -f conftest*
4206 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4207 echo "$ac_t""yes" 1>&6
4208 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4209 cat >> confdefs.h <<EOF
4210 #define $ac_tr_func 1
4213 else
4214 echo "$ac_t""no" 1>&6
4216 done
4218 for ac_func in setpriv setgidx setuidx setgroups mktime rename ftruncate stat64 fstat64
4220 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4221 echo "configure:4222: checking for $ac_func" >&5
4222 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4223 echo $ac_n "(cached) $ac_c" 1>&6
4224 else
4225 cat > conftest.$ac_ext <<EOF
4226 #line 4227 "configure"
4227 #include "confdefs.h"
4228 /* System header to define __stub macros and hopefully few prototypes,
4229 which can conflict with char $ac_func(); below. */
4230 #include <assert.h>
4231 /* Override any gcc2 internal prototype to avoid an error. */
4232 /* We use char because int might match the return type of a gcc2
4233 builtin and then its argument prototype would still apply. */
4234 char $ac_func();
4236 int main() {
4238 /* The GNU C library defines this for functions which it implements
4239 to always fail with ENOSYS. Some functions are actually named
4240 something starting with __ and the normal name is an alias. */
4241 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4242 choke me
4243 #else
4244 $ac_func();
4245 #endif
4247 ; return 0; }
4249 if { (eval echo configure:4250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4250 rm -rf conftest*
4251 eval "ac_cv_func_$ac_func=yes"
4252 else
4253 echo "configure: failed program was:" >&5
4254 cat conftest.$ac_ext >&5
4255 rm -rf conftest*
4256 eval "ac_cv_func_$ac_func=no"
4258 rm -f conftest*
4261 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4262 echo "$ac_t""yes" 1>&6
4263 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4264 cat >> confdefs.h <<EOF
4265 #define $ac_tr_func 1
4268 else
4269 echo "$ac_t""no" 1>&6
4271 done
4273 for ac_func in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
4275 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4276 echo "configure:4277: checking for $ac_func" >&5
4277 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4278 echo $ac_n "(cached) $ac_c" 1>&6
4279 else
4280 cat > conftest.$ac_ext <<EOF
4281 #line 4282 "configure"
4282 #include "confdefs.h"
4283 /* System header to define __stub macros and hopefully few prototypes,
4284 which can conflict with char $ac_func(); below. */
4285 #include <assert.h>
4286 /* Override any gcc2 internal prototype to avoid an error. */
4287 /* We use char because int might match the return type of a gcc2
4288 builtin and then its argument prototype would still apply. */
4289 char $ac_func();
4291 int main() {
4293 /* The GNU C library defines this for functions which it implements
4294 to always fail with ENOSYS. Some functions are actually named
4295 something starting with __ and the normal name is an alias. */
4296 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4297 choke me
4298 #else
4299 $ac_func();
4300 #endif
4302 ; return 0; }
4304 if { (eval echo configure:4305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4305 rm -rf conftest*
4306 eval "ac_cv_func_$ac_func=yes"
4307 else
4308 echo "configure: failed program was:" >&5
4309 cat conftest.$ac_ext >&5
4310 rm -rf conftest*
4311 eval "ac_cv_func_$ac_func=no"
4313 rm -f conftest*
4316 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4317 echo "$ac_t""yes" 1>&6
4318 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4319 cat >> confdefs.h <<EOF
4320 #define $ac_tr_func 1
4323 else
4324 echo "$ac_t""no" 1>&6
4326 done
4328 for ac_func in fseek64 fseeko64 ftell64 ftello64 setluid yp_get_default_domain getpwanam
4330 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4331 echo "configure:4332: checking for $ac_func" >&5
4332 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4333 echo $ac_n "(cached) $ac_c" 1>&6
4334 else
4335 cat > conftest.$ac_ext <<EOF
4336 #line 4337 "configure"
4337 #include "confdefs.h"
4338 /* System header to define __stub macros and hopefully few prototypes,
4339 which can conflict with char $ac_func(); below. */
4340 #include <assert.h>
4341 /* Override any gcc2 internal prototype to avoid an error. */
4342 /* We use char because int might match the return type of a gcc2
4343 builtin and then its argument prototype would still apply. */
4344 char $ac_func();
4346 int main() {
4348 /* The GNU C library defines this for functions which it implements
4349 to always fail with ENOSYS. Some functions are actually named
4350 something starting with __ and the normal name is an alias. */
4351 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4352 choke me
4353 #else
4354 $ac_func();
4355 #endif
4357 ; return 0; }
4359 if { (eval echo configure:4360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4360 rm -rf conftest*
4361 eval "ac_cv_func_$ac_func=yes"
4362 else
4363 echo "configure: failed program was:" >&5
4364 cat conftest.$ac_ext >&5
4365 rm -rf conftest*
4366 eval "ac_cv_func_$ac_func=no"
4368 rm -f conftest*
4371 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4372 echo "$ac_t""yes" 1>&6
4373 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4374 cat >> confdefs.h <<EOF
4375 #define $ac_tr_func 1
4378 else
4379 echo "$ac_t""no" 1>&6
4381 done
4383 for ac_func in srandom random srand rand setenv mmap64 strcasecmp
4385 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4386 echo "configure:4387: checking for $ac_func" >&5
4387 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4388 echo $ac_n "(cached) $ac_c" 1>&6
4389 else
4390 cat > conftest.$ac_ext <<EOF
4391 #line 4392 "configure"
4392 #include "confdefs.h"
4393 /* System header to define __stub macros and hopefully few prototypes,
4394 which can conflict with char $ac_func(); below. */
4395 #include <assert.h>
4396 /* Override any gcc2 internal prototype to avoid an error. */
4397 /* We use char because int might match the return type of a gcc2
4398 builtin and then its argument prototype would still apply. */
4399 char $ac_func();
4401 int main() {
4403 /* The GNU C library defines this for functions which it implements
4404 to always fail with ENOSYS. Some functions are actually named
4405 something starting with __ and the normal name is an alias. */
4406 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4407 choke me
4408 #else
4409 $ac_func();
4410 #endif
4412 ; return 0; }
4414 if { (eval echo configure:4415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4415 rm -rf conftest*
4416 eval "ac_cv_func_$ac_func=yes"
4417 else
4418 echo "configure: failed program was:" >&5
4419 cat conftest.$ac_ext >&5
4420 rm -rf conftest*
4421 eval "ac_cv_func_$ac_func=no"
4423 rm -f conftest*
4426 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4427 echo "$ac_t""yes" 1>&6
4428 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4429 cat >> confdefs.h <<EOF
4430 #define $ac_tr_func 1
4433 else
4434 echo "$ac_t""no" 1>&6
4436 done
4439 # syscall() is needed for smbwrapper.
4440 for ac_func in syscall
4442 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4443 echo "configure:4444: checking for $ac_func" >&5
4444 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4445 echo $ac_n "(cached) $ac_c" 1>&6
4446 else
4447 cat > conftest.$ac_ext <<EOF
4448 #line 4449 "configure"
4449 #include "confdefs.h"
4450 /* System header to define __stub macros and hopefully few prototypes,
4451 which can conflict with char $ac_func(); below. */
4452 #include <assert.h>
4453 /* Override any gcc2 internal prototype to avoid an error. */
4454 /* We use char because int might match the return type of a gcc2
4455 builtin and then its argument prototype would still apply. */
4456 char $ac_func();
4458 int main() {
4460 /* The GNU C library defines this for functions which it implements
4461 to always fail with ENOSYS. Some functions are actually named
4462 something starting with __ and the normal name is an alias. */
4463 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4464 choke me
4465 #else
4466 $ac_func();
4467 #endif
4469 ; return 0; }
4471 if { (eval echo configure:4472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4472 rm -rf conftest*
4473 eval "ac_cv_func_$ac_func=yes"
4474 else
4475 echo "configure: failed program was:" >&5
4476 cat conftest.$ac_ext >&5
4477 rm -rf conftest*
4478 eval "ac_cv_func_$ac_func=no"
4480 rm -f conftest*
4483 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4484 echo "$ac_t""yes" 1>&6
4485 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4486 cat >> confdefs.h <<EOF
4487 #define $ac_tr_func 1
4490 else
4491 echo "$ac_t""no" 1>&6
4493 done
4496 for ac_func in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
4498 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4499 echo "configure:4500: checking for $ac_func" >&5
4500 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4501 echo $ac_n "(cached) $ac_c" 1>&6
4502 else
4503 cat > conftest.$ac_ext <<EOF
4504 #line 4505 "configure"
4505 #include "confdefs.h"
4506 /* System header to define __stub macros and hopefully few prototypes,
4507 which can conflict with char $ac_func(); below. */
4508 #include <assert.h>
4509 /* Override any gcc2 internal prototype to avoid an error. */
4510 /* We use char because int might match the return type of a gcc2
4511 builtin and then its argument prototype would still apply. */
4512 char $ac_func();
4514 int main() {
4516 /* The GNU C library defines this for functions which it implements
4517 to always fail with ENOSYS. Some functions are actually named
4518 something starting with __ and the normal name is an alias. */
4519 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4520 choke me
4521 #else
4522 $ac_func();
4523 #endif
4525 ; return 0; }
4527 if { (eval echo configure:4528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4528 rm -rf conftest*
4529 eval "ac_cv_func_$ac_func=yes"
4530 else
4531 echo "configure: failed program was:" >&5
4532 cat conftest.$ac_ext >&5
4533 rm -rf conftest*
4534 eval "ac_cv_func_$ac_func=no"
4536 rm -f conftest*
4539 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4540 echo "$ac_t""yes" 1>&6
4541 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4542 cat >> confdefs.h <<EOF
4543 #define $ac_tr_func 1
4546 else
4547 echo "$ac_t""no" 1>&6
4549 done
4551 for ac_func in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
4553 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4554 echo "configure:4555: checking for $ac_func" >&5
4555 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4556 echo $ac_n "(cached) $ac_c" 1>&6
4557 else
4558 cat > conftest.$ac_ext <<EOF
4559 #line 4560 "configure"
4560 #include "confdefs.h"
4561 /* System header to define __stub macros and hopefully few prototypes,
4562 which can conflict with char $ac_func(); below. */
4563 #include <assert.h>
4564 /* Override any gcc2 internal prototype to avoid an error. */
4565 /* We use char because int might match the return type of a gcc2
4566 builtin and then its argument prototype would still apply. */
4567 char $ac_func();
4569 int main() {
4571 /* The GNU C library defines this for functions which it implements
4572 to always fail with ENOSYS. Some functions are actually named
4573 something starting with __ and the normal name is an alias. */
4574 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4575 choke me
4576 #else
4577 $ac_func();
4578 #endif
4580 ; return 0; }
4582 if { (eval echo configure:4583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4583 rm -rf conftest*
4584 eval "ac_cv_func_$ac_func=yes"
4585 else
4586 echo "configure: failed program was:" >&5
4587 cat conftest.$ac_ext >&5
4588 rm -rf conftest*
4589 eval "ac_cv_func_$ac_func=no"
4591 rm -f conftest*
4594 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4595 echo "$ac_t""yes" 1>&6
4596 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4597 cat >> confdefs.h <<EOF
4598 #define $ac_tr_func 1
4601 else
4602 echo "$ac_t""no" 1>&6
4604 done
4606 for ac_func in __getcwd _getcwd
4608 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4609 echo "configure:4610: checking for $ac_func" >&5
4610 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4611 echo $ac_n "(cached) $ac_c" 1>&6
4612 else
4613 cat > conftest.$ac_ext <<EOF
4614 #line 4615 "configure"
4615 #include "confdefs.h"
4616 /* System header to define __stub macros and hopefully few prototypes,
4617 which can conflict with char $ac_func(); below. */
4618 #include <assert.h>
4619 /* Override any gcc2 internal prototype to avoid an error. */
4620 /* We use char because int might match the return type of a gcc2
4621 builtin and then its argument prototype would still apply. */
4622 char $ac_func();
4624 int main() {
4626 /* The GNU C library defines this for functions which it implements
4627 to always fail with ENOSYS. Some functions are actually named
4628 something starting with __ and the normal name is an alias. */
4629 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4630 choke me
4631 #else
4632 $ac_func();
4633 #endif
4635 ; return 0; }
4637 if { (eval echo configure:4638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4638 rm -rf conftest*
4639 eval "ac_cv_func_$ac_func=yes"
4640 else
4641 echo "configure: failed program was:" >&5
4642 cat conftest.$ac_ext >&5
4643 rm -rf conftest*
4644 eval "ac_cv_func_$ac_func=no"
4646 rm -f conftest*
4649 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4650 echo "$ac_t""yes" 1>&6
4651 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4652 cat >> confdefs.h <<EOF
4653 #define $ac_tr_func 1
4656 else
4657 echo "$ac_t""no" 1>&6
4659 done
4661 for ac_func in __xstat __fxstat __lxstat
4663 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4664 echo "configure:4665: checking for $ac_func" >&5
4665 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4666 echo $ac_n "(cached) $ac_c" 1>&6
4667 else
4668 cat > conftest.$ac_ext <<EOF
4669 #line 4670 "configure"
4670 #include "confdefs.h"
4671 /* System header to define __stub macros and hopefully few prototypes,
4672 which can conflict with char $ac_func(); below. */
4673 #include <assert.h>
4674 /* Override any gcc2 internal prototype to avoid an error. */
4675 /* We use char because int might match the return type of a gcc2
4676 builtin and then its argument prototype would still apply. */
4677 char $ac_func();
4679 int main() {
4681 /* The GNU C library defines this for functions which it implements
4682 to always fail with ENOSYS. Some functions are actually named
4683 something starting with __ and the normal name is an alias. */
4684 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4685 choke me
4686 #else
4687 $ac_func();
4688 #endif
4690 ; return 0; }
4692 if { (eval echo configure:4693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4693 rm -rf conftest*
4694 eval "ac_cv_func_$ac_func=yes"
4695 else
4696 echo "configure: failed program was:" >&5
4697 cat conftest.$ac_ext >&5
4698 rm -rf conftest*
4699 eval "ac_cv_func_$ac_func=no"
4701 rm -f conftest*
4704 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4705 echo "$ac_t""yes" 1>&6
4706 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4707 cat >> confdefs.h <<EOF
4708 #define $ac_tr_func 1
4711 else
4712 echo "$ac_t""no" 1>&6
4714 done
4716 for ac_func in _stat _lstat _fstat __stat __lstat __fstat
4718 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4719 echo "configure:4720: checking for $ac_func" >&5
4720 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4721 echo $ac_n "(cached) $ac_c" 1>&6
4722 else
4723 cat > conftest.$ac_ext <<EOF
4724 #line 4725 "configure"
4725 #include "confdefs.h"
4726 /* System header to define __stub macros and hopefully few prototypes,
4727 which can conflict with char $ac_func(); below. */
4728 #include <assert.h>
4729 /* Override any gcc2 internal prototype to avoid an error. */
4730 /* We use char because int might match the return type of a gcc2
4731 builtin and then its argument prototype would still apply. */
4732 char $ac_func();
4734 int main() {
4736 /* The GNU C library defines this for functions which it implements
4737 to always fail with ENOSYS. Some functions are actually named
4738 something starting with __ and the normal name is an alias. */
4739 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4740 choke me
4741 #else
4742 $ac_func();
4743 #endif
4745 ; return 0; }
4747 if { (eval echo configure:4748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4748 rm -rf conftest*
4749 eval "ac_cv_func_$ac_func=yes"
4750 else
4751 echo "configure: failed program was:" >&5
4752 cat conftest.$ac_ext >&5
4753 rm -rf conftest*
4754 eval "ac_cv_func_$ac_func=no"
4756 rm -f conftest*
4759 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4760 echo "$ac_t""yes" 1>&6
4761 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4762 cat >> confdefs.h <<EOF
4763 #define $ac_tr_func 1
4766 else
4767 echo "$ac_t""no" 1>&6
4769 done
4771 for ac_func in _acl __acl _facl __facl _open __open _chdir __chdir
4773 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4774 echo "configure:4775: checking for $ac_func" >&5
4775 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4776 echo $ac_n "(cached) $ac_c" 1>&6
4777 else
4778 cat > conftest.$ac_ext <<EOF
4779 #line 4780 "configure"
4780 #include "confdefs.h"
4781 /* System header to define __stub macros and hopefully few prototypes,
4782 which can conflict with char $ac_func(); below. */
4783 #include <assert.h>
4784 /* Override any gcc2 internal prototype to avoid an error. */
4785 /* We use char because int might match the return type of a gcc2
4786 builtin and then its argument prototype would still apply. */
4787 char $ac_func();
4789 int main() {
4791 /* The GNU C library defines this for functions which it implements
4792 to always fail with ENOSYS. Some functions are actually named
4793 something starting with __ and the normal name is an alias. */
4794 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4795 choke me
4796 #else
4797 $ac_func();
4798 #endif
4800 ; return 0; }
4802 if { (eval echo configure:4803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4803 rm -rf conftest*
4804 eval "ac_cv_func_$ac_func=yes"
4805 else
4806 echo "configure: failed program was:" >&5
4807 cat conftest.$ac_ext >&5
4808 rm -rf conftest*
4809 eval "ac_cv_func_$ac_func=no"
4811 rm -f conftest*
4814 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4815 echo "$ac_t""yes" 1>&6
4816 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4817 cat >> confdefs.h <<EOF
4818 #define $ac_tr_func 1
4821 else
4822 echo "$ac_t""no" 1>&6
4824 done
4826 for ac_func in _close __close _fchdir __fchdir _fcntl __fcntl
4828 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4829 echo "configure:4830: checking for $ac_func" >&5
4830 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4831 echo $ac_n "(cached) $ac_c" 1>&6
4832 else
4833 cat > conftest.$ac_ext <<EOF
4834 #line 4835 "configure"
4835 #include "confdefs.h"
4836 /* System header to define __stub macros and hopefully few prototypes,
4837 which can conflict with char $ac_func(); below. */
4838 #include <assert.h>
4839 /* Override any gcc2 internal prototype to avoid an error. */
4840 /* We use char because int might match the return type of a gcc2
4841 builtin and then its argument prototype would still apply. */
4842 char $ac_func();
4844 int main() {
4846 /* The GNU C library defines this for functions which it implements
4847 to always fail with ENOSYS. Some functions are actually named
4848 something starting with __ and the normal name is an alias. */
4849 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4850 choke me
4851 #else
4852 $ac_func();
4853 #endif
4855 ; return 0; }
4857 if { (eval echo configure:4858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4858 rm -rf conftest*
4859 eval "ac_cv_func_$ac_func=yes"
4860 else
4861 echo "configure: failed program was:" >&5
4862 cat conftest.$ac_ext >&5
4863 rm -rf conftest*
4864 eval "ac_cv_func_$ac_func=no"
4866 rm -f conftest*
4869 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4870 echo "$ac_t""yes" 1>&6
4871 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4872 cat >> confdefs.h <<EOF
4873 #define $ac_tr_func 1
4876 else
4877 echo "$ac_t""no" 1>&6
4879 done
4881 for ac_func in getdents _getdents __getdents _lseek __lseek _read __read
4883 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4884 echo "configure:4885: checking for $ac_func" >&5
4885 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4886 echo $ac_n "(cached) $ac_c" 1>&6
4887 else
4888 cat > conftest.$ac_ext <<EOF
4889 #line 4890 "configure"
4890 #include "confdefs.h"
4891 /* System header to define __stub macros and hopefully few prototypes,
4892 which can conflict with char $ac_func(); below. */
4893 #include <assert.h>
4894 /* Override any gcc2 internal prototype to avoid an error. */
4895 /* We use char because int might match the return type of a gcc2
4896 builtin and then its argument prototype would still apply. */
4897 char $ac_func();
4899 int main() {
4901 /* The GNU C library defines this for functions which it implements
4902 to always fail with ENOSYS. Some functions are actually named
4903 something starting with __ and the normal name is an alias. */
4904 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4905 choke me
4906 #else
4907 $ac_func();
4908 #endif
4910 ; return 0; }
4912 if { (eval echo configure:4913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4913 rm -rf conftest*
4914 eval "ac_cv_func_$ac_func=yes"
4915 else
4916 echo "configure: failed program was:" >&5
4917 cat conftest.$ac_ext >&5
4918 rm -rf conftest*
4919 eval "ac_cv_func_$ac_func=no"
4921 rm -f conftest*
4924 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4925 echo "$ac_t""yes" 1>&6
4926 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4927 cat >> confdefs.h <<EOF
4928 #define $ac_tr_func 1
4931 else
4932 echo "$ac_t""no" 1>&6
4934 done
4936 for ac_func in _write __write _fork __fork
4938 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4939 echo "configure:4940: checking for $ac_func" >&5
4940 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4941 echo $ac_n "(cached) $ac_c" 1>&6
4942 else
4943 cat > conftest.$ac_ext <<EOF
4944 #line 4945 "configure"
4945 #include "confdefs.h"
4946 /* System header to define __stub macros and hopefully few prototypes,
4947 which can conflict with char $ac_func(); below. */
4948 #include <assert.h>
4949 /* Override any gcc2 internal prototype to avoid an error. */
4950 /* We use char because int might match the return type of a gcc2
4951 builtin and then its argument prototype would still apply. */
4952 char $ac_func();
4954 int main() {
4956 /* The GNU C library defines this for functions which it implements
4957 to always fail with ENOSYS. Some functions are actually named
4958 something starting with __ and the normal name is an alias. */
4959 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4960 choke me
4961 #else
4962 $ac_func();
4963 #endif
4965 ; return 0; }
4967 if { (eval echo configure:4968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4968 rm -rf conftest*
4969 eval "ac_cv_func_$ac_func=yes"
4970 else
4971 echo "configure: failed program was:" >&5
4972 cat conftest.$ac_ext >&5
4973 rm -rf conftest*
4974 eval "ac_cv_func_$ac_func=no"
4976 rm -f conftest*
4979 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4980 echo "$ac_t""yes" 1>&6
4981 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4982 cat >> confdefs.h <<EOF
4983 #define $ac_tr_func 1
4986 else
4987 echo "$ac_t""no" 1>&6
4989 done
4991 for ac_func in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
4993 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4994 echo "configure:4995: checking for $ac_func" >&5
4995 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4996 echo $ac_n "(cached) $ac_c" 1>&6
4997 else
4998 cat > conftest.$ac_ext <<EOF
4999 #line 5000 "configure"
5000 #include "confdefs.h"
5001 /* System header to define __stub macros and hopefully few prototypes,
5002 which can conflict with char $ac_func(); below. */
5003 #include <assert.h>
5004 /* Override any gcc2 internal prototype to avoid an error. */
5005 /* We use char because int might match the return type of a gcc2
5006 builtin and then its argument prototype would still apply. */
5007 char $ac_func();
5009 int main() {
5011 /* The GNU C library defines this for functions which it implements
5012 to always fail with ENOSYS. Some functions are actually named
5013 something starting with __ and the normal name is an alias. */
5014 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5015 choke me
5016 #else
5017 $ac_func();
5018 #endif
5020 ; return 0; }
5022 if { (eval echo configure:5023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5023 rm -rf conftest*
5024 eval "ac_cv_func_$ac_func=yes"
5025 else
5026 echo "configure: failed program was:" >&5
5027 cat conftest.$ac_ext >&5
5028 rm -rf conftest*
5029 eval "ac_cv_func_$ac_func=no"
5031 rm -f conftest*
5034 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5035 echo "$ac_t""yes" 1>&6
5036 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5037 cat >> confdefs.h <<EOF
5038 #define $ac_tr_func 1
5041 else
5042 echo "$ac_t""no" 1>&6
5044 done
5046 for ac_func in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
5048 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5049 echo "configure:5050: checking for $ac_func" >&5
5050 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5051 echo $ac_n "(cached) $ac_c" 1>&6
5052 else
5053 cat > conftest.$ac_ext <<EOF
5054 #line 5055 "configure"
5055 #include "confdefs.h"
5056 /* System header to define __stub macros and hopefully few prototypes,
5057 which can conflict with char $ac_func(); below. */
5058 #include <assert.h>
5059 /* Override any gcc2 internal prototype to avoid an error. */
5060 /* We use char because int might match the return type of a gcc2
5061 builtin and then its argument prototype would still apply. */
5062 char $ac_func();
5064 int main() {
5066 /* The GNU C library defines this for functions which it implements
5067 to always fail with ENOSYS. Some functions are actually named
5068 something starting with __ and the normal name is an alias. */
5069 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5070 choke me
5071 #else
5072 $ac_func();
5073 #endif
5075 ; return 0; }
5077 if { (eval echo configure:5078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5078 rm -rf conftest*
5079 eval "ac_cv_func_$ac_func=yes"
5080 else
5081 echo "configure: failed program was:" >&5
5082 cat conftest.$ac_ext >&5
5083 rm -rf conftest*
5084 eval "ac_cv_func_$ac_func=no"
5086 rm -f conftest*
5089 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5090 echo "$ac_t""yes" 1>&6
5091 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5092 cat >> confdefs.h <<EOF
5093 #define $ac_tr_func 1
5096 else
5097 echo "$ac_t""no" 1>&6
5099 done
5101 for ac_func in pread _pread __pread pread64 _pread64 __pread64
5103 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5104 echo "configure:5105: checking for $ac_func" >&5
5105 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5106 echo $ac_n "(cached) $ac_c" 1>&6
5107 else
5108 cat > conftest.$ac_ext <<EOF
5109 #line 5110 "configure"
5110 #include "confdefs.h"
5111 /* System header to define __stub macros and hopefully few prototypes,
5112 which can conflict with char $ac_func(); below. */
5113 #include <assert.h>
5114 /* Override any gcc2 internal prototype to avoid an error. */
5115 /* We use char because int might match the return type of a gcc2
5116 builtin and then its argument prototype would still apply. */
5117 char $ac_func();
5119 int main() {
5121 /* The GNU C library defines this for functions which it implements
5122 to always fail with ENOSYS. Some functions are actually named
5123 something starting with __ and the normal name is an alias. */
5124 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5125 choke me
5126 #else
5127 $ac_func();
5128 #endif
5130 ; return 0; }
5132 if { (eval echo configure:5133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5133 rm -rf conftest*
5134 eval "ac_cv_func_$ac_func=yes"
5135 else
5136 echo "configure: failed program was:" >&5
5137 cat conftest.$ac_ext >&5
5138 rm -rf conftest*
5139 eval "ac_cv_func_$ac_func=no"
5141 rm -f conftest*
5144 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5145 echo "$ac_t""yes" 1>&6
5146 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5147 cat >> confdefs.h <<EOF
5148 #define $ac_tr_func 1
5151 else
5152 echo "$ac_t""no" 1>&6
5154 done
5156 for ac_func in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
5158 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5159 echo "configure:5160: checking for $ac_func" >&5
5160 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5161 echo $ac_n "(cached) $ac_c" 1>&6
5162 else
5163 cat > conftest.$ac_ext <<EOF
5164 #line 5165 "configure"
5165 #include "confdefs.h"
5166 /* System header to define __stub macros and hopefully few prototypes,
5167 which can conflict with char $ac_func(); below. */
5168 #include <assert.h>
5169 /* Override any gcc2 internal prototype to avoid an error. */
5170 /* We use char because int might match the return type of a gcc2
5171 builtin and then its argument prototype would still apply. */
5172 char $ac_func();
5174 int main() {
5176 /* The GNU C library defines this for functions which it implements
5177 to always fail with ENOSYS. Some functions are actually named
5178 something starting with __ and the normal name is an alias. */
5179 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5180 choke me
5181 #else
5182 $ac_func();
5183 #endif
5185 ; return 0; }
5187 if { (eval echo configure:5188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5188 rm -rf conftest*
5189 eval "ac_cv_func_$ac_func=yes"
5190 else
5191 echo "configure: failed program was:" >&5
5192 cat conftest.$ac_ext >&5
5193 rm -rf conftest*
5194 eval "ac_cv_func_$ac_func=no"
5196 rm -f conftest*
5199 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5200 echo "$ac_t""yes" 1>&6
5201 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5202 cat >> confdefs.h <<EOF
5203 #define $ac_tr_func 1
5206 else
5207 echo "$ac_t""no" 1>&6
5209 done
5211 for ac_func in open64 _open64 __open64 creat64
5213 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5214 echo "configure:5215: checking for $ac_func" >&5
5215 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5216 echo $ac_n "(cached) $ac_c" 1>&6
5217 else
5218 cat > conftest.$ac_ext <<EOF
5219 #line 5220 "configure"
5220 #include "confdefs.h"
5221 /* System header to define __stub macros and hopefully few prototypes,
5222 which can conflict with char $ac_func(); below. */
5223 #include <assert.h>
5224 /* Override any gcc2 internal prototype to avoid an error. */
5225 /* We use char because int might match the return type of a gcc2
5226 builtin and then its argument prototype would still apply. */
5227 char $ac_func();
5229 int main() {
5231 /* The GNU C library defines this for functions which it implements
5232 to always fail with ENOSYS. Some functions are actually named
5233 something starting with __ and the normal name is an alias. */
5234 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5235 choke me
5236 #else
5237 $ac_func();
5238 #endif
5240 ; return 0; }
5242 if { (eval echo configure:5243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5243 rm -rf conftest*
5244 eval "ac_cv_func_$ac_func=yes"
5245 else
5246 echo "configure: failed program was:" >&5
5247 cat conftest.$ac_ext >&5
5248 rm -rf conftest*
5249 eval "ac_cv_func_$ac_func=no"
5251 rm -f conftest*
5254 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5255 echo "$ac_t""yes" 1>&6
5256 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5257 cat >> confdefs.h <<EOF
5258 #define $ac_tr_func 1
5261 else
5262 echo "$ac_t""no" 1>&6
5264 done
5268 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
5271 if test x$ac_cv_func_stat64 = xno ; then
5272 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
5273 echo "configure:5274: checking for stat64 in <sys/stat.h>" >&5
5274 cat > conftest.$ac_ext <<EOF
5275 #line 5276 "configure"
5276 #include "confdefs.h"
5278 #if defined(HAVE_UNISTD_H)
5279 #include <unistd.h>
5280 #endif
5281 #include <sys/stat.h>
5283 int main() {
5284 struct stat64 st64; exit(stat64(".",&st64));
5285 ; return 0; }
5287 if { (eval echo configure:5288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5288 rm -rf conftest*
5289 ac_cv_func_stat64=yes
5290 else
5291 echo "configure: failed program was:" >&5
5292 cat conftest.$ac_ext >&5
5294 rm -f conftest*
5295 echo "$ac_t""$ac_cv_func_stat64" 1>&6
5296 if test x$ac_cv_func_stat64 = xyes ; then
5297 cat >> confdefs.h <<\EOF
5298 #define HAVE_STAT64 1
5304 if test x$ac_cv_func_lstat64 = xno ; then
5305 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
5306 echo "configure:5307: checking for lstat64 in <sys/stat.h>" >&5
5307 cat > conftest.$ac_ext <<EOF
5308 #line 5309 "configure"
5309 #include "confdefs.h"
5311 #if defined(HAVE_UNISTD_H)
5312 #include <unistd.h>
5313 #endif
5314 #include <sys/stat.h>
5316 int main() {
5317 struct stat64 st64; exit(lstat64(".",&st64));
5318 ; return 0; }
5320 if { (eval echo configure:5321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5321 rm -rf conftest*
5322 ac_cv_func_lstat64=yes
5323 else
5324 echo "configure: failed program was:" >&5
5325 cat conftest.$ac_ext >&5
5327 rm -f conftest*
5328 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
5329 if test x$ac_cv_func_lstat64 = xyes ; then
5330 cat >> confdefs.h <<\EOF
5331 #define HAVE_LSTAT64 1
5337 if test x$ac_cv_func_fstat64 = xno ; then
5338 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
5339 echo "configure:5340: checking for fstat64 in <sys/stat.h>" >&5
5340 cat > conftest.$ac_ext <<EOF
5341 #line 5342 "configure"
5342 #include "confdefs.h"
5344 #if defined(HAVE_UNISTD_H)
5345 #include <unistd.h>
5346 #endif
5347 #include <sys/stat.h>
5349 int main() {
5350 struct stat64 st64; exit(fstat64(0,&st64));
5351 ; return 0; }
5353 if { (eval echo configure:5354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5354 rm -rf conftest*
5355 ac_cv_func_fstat64=yes
5356 else
5357 echo "configure: failed program was:" >&5
5358 cat conftest.$ac_ext >&5
5360 rm -f conftest*
5361 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
5362 if test x$ac_cv_func_fstat64 = xyes ; then
5363 cat >> confdefs.h <<\EOF
5364 #define HAVE_FSTAT64 1
5371 # If no strcasecmp, check for it in some known places
5372 # It is in -lresolv on ReliantUNIX and UnixWare
5373 # -lresolve *must* follow -lnsl for name resolution to work properly
5376 if test x$ac_cv_func_strcasecmp = xno ; then
5377 echo $ac_n "checking for strcasecmp in -lresolv""... $ac_c" 1>&6
5378 echo "configure:5379: checking for strcasecmp in -lresolv" >&5
5379 ac_lib_var=`echo resolv'_'strcasecmp | sed 'y%./+-%__p_%'`
5380 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5381 echo $ac_n "(cached) $ac_c" 1>&6
5382 else
5383 ac_save_LIBS="$LIBS"
5384 LIBS="-lresolv $LIBS"
5385 cat > conftest.$ac_ext <<EOF
5386 #line 5387 "configure"
5387 #include "confdefs.h"
5388 /* Override any gcc2 internal prototype to avoid an error. */
5389 /* We use char because int might match the return type of a gcc2
5390 builtin and then its argument prototype would still apply. */
5391 char strcasecmp();
5393 int main() {
5394 strcasecmp()
5395 ; return 0; }
5397 if { (eval echo configure:5398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5398 rm -rf conftest*
5399 eval "ac_cv_lib_$ac_lib_var=yes"
5400 else
5401 echo "configure: failed program was:" >&5
5402 cat conftest.$ac_ext >&5
5403 rm -rf conftest*
5404 eval "ac_cv_lib_$ac_lib_var=no"
5406 rm -f conftest*
5407 LIBS="$ac_save_LIBS"
5410 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5411 echo "$ac_t""yes" 1>&6
5412 LIBS="$LIBS -lresolv"
5413 cat >> confdefs.h <<\EOF
5414 #define HAVE_STRCASECMP 1
5417 else
5418 echo "$ac_t""no" 1>&6
5424 # Check for the functions putprpwnam, set_auth_parameters,
5425 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
5426 # Needed for OSF1 and HPUX.
5429 case "$LIBS" in
5430 *-lsecurity*) for ac_func in putprpwnam
5432 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5433 echo "configure:5434: checking for $ac_func" >&5
5434 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5435 echo $ac_n "(cached) $ac_c" 1>&6
5436 else
5437 cat > conftest.$ac_ext <<EOF
5438 #line 5439 "configure"
5439 #include "confdefs.h"
5440 /* System header to define __stub macros and hopefully few prototypes,
5441 which can conflict with char $ac_func(); below. */
5442 #include <assert.h>
5443 /* Override any gcc2 internal prototype to avoid an error. */
5444 /* We use char because int might match the return type of a gcc2
5445 builtin and then its argument prototype would still apply. */
5446 char $ac_func();
5448 int main() {
5450 /* The GNU C library defines this for functions which it implements
5451 to always fail with ENOSYS. Some functions are actually named
5452 something starting with __ and the normal name is an alias. */
5453 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5454 choke me
5455 #else
5456 $ac_func();
5457 #endif
5459 ; return 0; }
5461 if { (eval echo configure:5462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5462 rm -rf conftest*
5463 eval "ac_cv_func_$ac_func=yes"
5464 else
5465 echo "configure: failed program was:" >&5
5466 cat conftest.$ac_ext >&5
5467 rm -rf conftest*
5468 eval "ac_cv_func_$ac_func=no"
5470 rm -f conftest*
5473 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5474 echo "$ac_t""yes" 1>&6
5475 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5476 cat >> confdefs.h <<EOF
5477 #define $ac_tr_func 1
5480 else
5481 echo "$ac_t""no" 1>&6
5483 done
5485 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
5486 echo "configure:5487: checking for putprpwnam in -lsecurity" >&5
5487 ac_lib_var=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
5488 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5489 echo $ac_n "(cached) $ac_c" 1>&6
5490 else
5491 ac_save_LIBS="$LIBS"
5492 LIBS="-lsecurity $LIBS"
5493 cat > conftest.$ac_ext <<EOF
5494 #line 5495 "configure"
5495 #include "confdefs.h"
5496 /* Override any gcc2 internal prototype to avoid an error. */
5497 /* We use char because int might match the return type of a gcc2
5498 builtin and then its argument prototype would still apply. */
5499 char putprpwnam();
5501 int main() {
5502 putprpwnam()
5503 ; return 0; }
5505 if { (eval echo configure:5506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5506 rm -rf conftest*
5507 eval "ac_cv_lib_$ac_lib_var=yes"
5508 else
5509 echo "configure: failed program was:" >&5
5510 cat conftest.$ac_ext >&5
5511 rm -rf conftest*
5512 eval "ac_cv_lib_$ac_lib_var=no"
5514 rm -f conftest*
5515 LIBS="$ac_save_LIBS"
5518 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5519 echo "$ac_t""yes" 1>&6
5520 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5521 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5522 cat >> confdefs.h <<EOF
5523 #define $ac_tr_lib 1
5526 LIBS="-lsecurity $LIBS"
5528 else
5529 echo "$ac_t""no" 1>&6
5532 for ac_func in putprpwnam
5534 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5535 echo "configure:5536: checking for $ac_func" >&5
5536 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5537 echo $ac_n "(cached) $ac_c" 1>&6
5538 else
5539 cat > conftest.$ac_ext <<EOF
5540 #line 5541 "configure"
5541 #include "confdefs.h"
5542 /* System header to define __stub macros and hopefully few prototypes,
5543 which can conflict with char $ac_func(); below. */
5544 #include <assert.h>
5545 /* Override any gcc2 internal prototype to avoid an error. */
5546 /* We use char because int might match the return type of a gcc2
5547 builtin and then its argument prototype would still apply. */
5548 char $ac_func();
5550 int main() {
5552 /* The GNU C library defines this for functions which it implements
5553 to always fail with ENOSYS. Some functions are actually named
5554 something starting with __ and the normal name is an alias. */
5555 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5556 choke me
5557 #else
5558 $ac_func();
5559 #endif
5561 ; return 0; }
5563 if { (eval echo configure:5564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5564 rm -rf conftest*
5565 eval "ac_cv_func_$ac_func=yes"
5566 else
5567 echo "configure: failed program was:" >&5
5568 cat conftest.$ac_ext >&5
5569 rm -rf conftest*
5570 eval "ac_cv_func_$ac_func=no"
5572 rm -f conftest*
5575 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5576 echo "$ac_t""yes" 1>&6
5577 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5578 cat >> confdefs.h <<EOF
5579 #define $ac_tr_func 1
5582 else
5583 echo "$ac_t""no" 1>&6
5585 done
5588 esac
5590 case "$LIBS" in
5591 *-lsec*) for ac_func in putprpwnam
5593 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5594 echo "configure:5595: checking for $ac_func" >&5
5595 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5596 echo $ac_n "(cached) $ac_c" 1>&6
5597 else
5598 cat > conftest.$ac_ext <<EOF
5599 #line 5600 "configure"
5600 #include "confdefs.h"
5601 /* System header to define __stub macros and hopefully few prototypes,
5602 which can conflict with char $ac_func(); below. */
5603 #include <assert.h>
5604 /* Override any gcc2 internal prototype to avoid an error. */
5605 /* We use char because int might match the return type of a gcc2
5606 builtin and then its argument prototype would still apply. */
5607 char $ac_func();
5609 int main() {
5611 /* The GNU C library defines this for functions which it implements
5612 to always fail with ENOSYS. Some functions are actually named
5613 something starting with __ and the normal name is an alias. */
5614 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5615 choke me
5616 #else
5617 $ac_func();
5618 #endif
5620 ; return 0; }
5622 if { (eval echo configure:5623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5623 rm -rf conftest*
5624 eval "ac_cv_func_$ac_func=yes"
5625 else
5626 echo "configure: failed program was:" >&5
5627 cat conftest.$ac_ext >&5
5628 rm -rf conftest*
5629 eval "ac_cv_func_$ac_func=no"
5631 rm -f conftest*
5634 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5635 echo "$ac_t""yes" 1>&6
5636 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5637 cat >> confdefs.h <<EOF
5638 #define $ac_tr_func 1
5641 else
5642 echo "$ac_t""no" 1>&6
5644 done
5646 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
5647 echo "configure:5648: checking for putprpwnam in -lsec" >&5
5648 ac_lib_var=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
5649 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5650 echo $ac_n "(cached) $ac_c" 1>&6
5651 else
5652 ac_save_LIBS="$LIBS"
5653 LIBS="-lsec $LIBS"
5654 cat > conftest.$ac_ext <<EOF
5655 #line 5656 "configure"
5656 #include "confdefs.h"
5657 /* Override any gcc2 internal prototype to avoid an error. */
5658 /* We use char because int might match the return type of a gcc2
5659 builtin and then its argument prototype would still apply. */
5660 char putprpwnam();
5662 int main() {
5663 putprpwnam()
5664 ; return 0; }
5666 if { (eval echo configure:5667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5667 rm -rf conftest*
5668 eval "ac_cv_lib_$ac_lib_var=yes"
5669 else
5670 echo "configure: failed program was:" >&5
5671 cat conftest.$ac_ext >&5
5672 rm -rf conftest*
5673 eval "ac_cv_lib_$ac_lib_var=no"
5675 rm -f conftest*
5676 LIBS="$ac_save_LIBS"
5679 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5680 echo "$ac_t""yes" 1>&6
5681 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5682 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5683 cat >> confdefs.h <<EOF
5684 #define $ac_tr_lib 1
5687 LIBS="-lsec $LIBS"
5689 else
5690 echo "$ac_t""no" 1>&6
5693 for ac_func in putprpwnam
5695 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5696 echo "configure:5697: checking for $ac_func" >&5
5697 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5698 echo $ac_n "(cached) $ac_c" 1>&6
5699 else
5700 cat > conftest.$ac_ext <<EOF
5701 #line 5702 "configure"
5702 #include "confdefs.h"
5703 /* System header to define __stub macros and hopefully few prototypes,
5704 which can conflict with char $ac_func(); below. */
5705 #include <assert.h>
5706 /* Override any gcc2 internal prototype to avoid an error. */
5707 /* We use char because int might match the return type of a gcc2
5708 builtin and then its argument prototype would still apply. */
5709 char $ac_func();
5711 int main() {
5713 /* The GNU C library defines this for functions which it implements
5714 to always fail with ENOSYS. Some functions are actually named
5715 something starting with __ and the normal name is an alias. */
5716 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5717 choke me
5718 #else
5719 $ac_func();
5720 #endif
5722 ; return 0; }
5724 if { (eval echo configure:5725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5725 rm -rf conftest*
5726 eval "ac_cv_func_$ac_func=yes"
5727 else
5728 echo "configure: failed program was:" >&5
5729 cat conftest.$ac_ext >&5
5730 rm -rf conftest*
5731 eval "ac_cv_func_$ac_func=no"
5733 rm -f conftest*
5736 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5737 echo "$ac_t""yes" 1>&6
5738 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5739 cat >> confdefs.h <<EOF
5740 #define $ac_tr_func 1
5743 else
5744 echo "$ac_t""no" 1>&6
5746 done
5749 esac
5752 case "$LIBS" in
5753 *-lsecurity*) for ac_func in set_auth_parameters
5755 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5756 echo "configure:5757: checking for $ac_func" >&5
5757 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5758 echo $ac_n "(cached) $ac_c" 1>&6
5759 else
5760 cat > conftest.$ac_ext <<EOF
5761 #line 5762 "configure"
5762 #include "confdefs.h"
5763 /* System header to define __stub macros and hopefully few prototypes,
5764 which can conflict with char $ac_func(); below. */
5765 #include <assert.h>
5766 /* Override any gcc2 internal prototype to avoid an error. */
5767 /* We use char because int might match the return type of a gcc2
5768 builtin and then its argument prototype would still apply. */
5769 char $ac_func();
5771 int main() {
5773 /* The GNU C library defines this for functions which it implements
5774 to always fail with ENOSYS. Some functions are actually named
5775 something starting with __ and the normal name is an alias. */
5776 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5777 choke me
5778 #else
5779 $ac_func();
5780 #endif
5782 ; return 0; }
5784 if { (eval echo configure:5785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5785 rm -rf conftest*
5786 eval "ac_cv_func_$ac_func=yes"
5787 else
5788 echo "configure: failed program was:" >&5
5789 cat conftest.$ac_ext >&5
5790 rm -rf conftest*
5791 eval "ac_cv_func_$ac_func=no"
5793 rm -f conftest*
5796 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5797 echo "$ac_t""yes" 1>&6
5798 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5799 cat >> confdefs.h <<EOF
5800 #define $ac_tr_func 1
5803 else
5804 echo "$ac_t""no" 1>&6
5806 done
5808 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
5809 echo "configure:5810: checking for set_auth_parameters in -lsecurity" >&5
5810 ac_lib_var=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
5811 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5812 echo $ac_n "(cached) $ac_c" 1>&6
5813 else
5814 ac_save_LIBS="$LIBS"
5815 LIBS="-lsecurity $LIBS"
5816 cat > conftest.$ac_ext <<EOF
5817 #line 5818 "configure"
5818 #include "confdefs.h"
5819 /* Override any gcc2 internal prototype to avoid an error. */
5820 /* We use char because int might match the return type of a gcc2
5821 builtin and then its argument prototype would still apply. */
5822 char set_auth_parameters();
5824 int main() {
5825 set_auth_parameters()
5826 ; return 0; }
5828 if { (eval echo configure:5829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5829 rm -rf conftest*
5830 eval "ac_cv_lib_$ac_lib_var=yes"
5831 else
5832 echo "configure: failed program was:" >&5
5833 cat conftest.$ac_ext >&5
5834 rm -rf conftest*
5835 eval "ac_cv_lib_$ac_lib_var=no"
5837 rm -f conftest*
5838 LIBS="$ac_save_LIBS"
5841 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5842 echo "$ac_t""yes" 1>&6
5843 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5844 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5845 cat >> confdefs.h <<EOF
5846 #define $ac_tr_lib 1
5849 LIBS="-lsecurity $LIBS"
5851 else
5852 echo "$ac_t""no" 1>&6
5855 for ac_func in set_auth_parameters
5857 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5858 echo "configure:5859: checking for $ac_func" >&5
5859 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5860 echo $ac_n "(cached) $ac_c" 1>&6
5861 else
5862 cat > conftest.$ac_ext <<EOF
5863 #line 5864 "configure"
5864 #include "confdefs.h"
5865 /* System header to define __stub macros and hopefully few prototypes,
5866 which can conflict with char $ac_func(); below. */
5867 #include <assert.h>
5868 /* Override any gcc2 internal prototype to avoid an error. */
5869 /* We use char because int might match the return type of a gcc2
5870 builtin and then its argument prototype would still apply. */
5871 char $ac_func();
5873 int main() {
5875 /* The GNU C library defines this for functions which it implements
5876 to always fail with ENOSYS. Some functions are actually named
5877 something starting with __ and the normal name is an alias. */
5878 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5879 choke me
5880 #else
5881 $ac_func();
5882 #endif
5884 ; return 0; }
5886 if { (eval echo configure:5887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5887 rm -rf conftest*
5888 eval "ac_cv_func_$ac_func=yes"
5889 else
5890 echo "configure: failed program was:" >&5
5891 cat conftest.$ac_ext >&5
5892 rm -rf conftest*
5893 eval "ac_cv_func_$ac_func=no"
5895 rm -f conftest*
5898 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5899 echo "$ac_t""yes" 1>&6
5900 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5901 cat >> confdefs.h <<EOF
5902 #define $ac_tr_func 1
5905 else
5906 echo "$ac_t""no" 1>&6
5908 done
5911 esac
5913 case "$LIBS" in
5914 *-lsec*) for ac_func in set_auth_parameters
5916 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5917 echo "configure:5918: checking for $ac_func" >&5
5918 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5919 echo $ac_n "(cached) $ac_c" 1>&6
5920 else
5921 cat > conftest.$ac_ext <<EOF
5922 #line 5923 "configure"
5923 #include "confdefs.h"
5924 /* System header to define __stub macros and hopefully few prototypes,
5925 which can conflict with char $ac_func(); below. */
5926 #include <assert.h>
5927 /* Override any gcc2 internal prototype to avoid an error. */
5928 /* We use char because int might match the return type of a gcc2
5929 builtin and then its argument prototype would still apply. */
5930 char $ac_func();
5932 int main() {
5934 /* The GNU C library defines this for functions which it implements
5935 to always fail with ENOSYS. Some functions are actually named
5936 something starting with __ and the normal name is an alias. */
5937 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5938 choke me
5939 #else
5940 $ac_func();
5941 #endif
5943 ; return 0; }
5945 if { (eval echo configure:5946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5946 rm -rf conftest*
5947 eval "ac_cv_func_$ac_func=yes"
5948 else
5949 echo "configure: failed program was:" >&5
5950 cat conftest.$ac_ext >&5
5951 rm -rf conftest*
5952 eval "ac_cv_func_$ac_func=no"
5954 rm -f conftest*
5957 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5958 echo "$ac_t""yes" 1>&6
5959 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5960 cat >> confdefs.h <<EOF
5961 #define $ac_tr_func 1
5964 else
5965 echo "$ac_t""no" 1>&6
5967 done
5969 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
5970 echo "configure:5971: checking for set_auth_parameters in -lsec" >&5
5971 ac_lib_var=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
5972 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5973 echo $ac_n "(cached) $ac_c" 1>&6
5974 else
5975 ac_save_LIBS="$LIBS"
5976 LIBS="-lsec $LIBS"
5977 cat > conftest.$ac_ext <<EOF
5978 #line 5979 "configure"
5979 #include "confdefs.h"
5980 /* Override any gcc2 internal prototype to avoid an error. */
5981 /* We use char because int might match the return type of a gcc2
5982 builtin and then its argument prototype would still apply. */
5983 char set_auth_parameters();
5985 int main() {
5986 set_auth_parameters()
5987 ; return 0; }
5989 if { (eval echo configure:5990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5990 rm -rf conftest*
5991 eval "ac_cv_lib_$ac_lib_var=yes"
5992 else
5993 echo "configure: failed program was:" >&5
5994 cat conftest.$ac_ext >&5
5995 rm -rf conftest*
5996 eval "ac_cv_lib_$ac_lib_var=no"
5998 rm -f conftest*
5999 LIBS="$ac_save_LIBS"
6002 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6003 echo "$ac_t""yes" 1>&6
6004 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6005 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6006 cat >> confdefs.h <<EOF
6007 #define $ac_tr_lib 1
6010 LIBS="-lsec $LIBS"
6012 else
6013 echo "$ac_t""no" 1>&6
6016 for ac_func in set_auth_parameters
6018 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6019 echo "configure:6020: checking for $ac_func" >&5
6020 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6021 echo $ac_n "(cached) $ac_c" 1>&6
6022 else
6023 cat > conftest.$ac_ext <<EOF
6024 #line 6025 "configure"
6025 #include "confdefs.h"
6026 /* System header to define __stub macros and hopefully few prototypes,
6027 which can conflict with char $ac_func(); below. */
6028 #include <assert.h>
6029 /* Override any gcc2 internal prototype to avoid an error. */
6030 /* We use char because int might match the return type of a gcc2
6031 builtin and then its argument prototype would still apply. */
6032 char $ac_func();
6034 int main() {
6036 /* The GNU C library defines this for functions which it implements
6037 to always fail with ENOSYS. Some functions are actually named
6038 something starting with __ and the normal name is an alias. */
6039 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6040 choke me
6041 #else
6042 $ac_func();
6043 #endif
6045 ; return 0; }
6047 if { (eval echo configure:6048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6048 rm -rf conftest*
6049 eval "ac_cv_func_$ac_func=yes"
6050 else
6051 echo "configure: failed program was:" >&5
6052 cat conftest.$ac_ext >&5
6053 rm -rf conftest*
6054 eval "ac_cv_func_$ac_func=no"
6056 rm -f conftest*
6059 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6060 echo "$ac_t""yes" 1>&6
6061 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6062 cat >> confdefs.h <<EOF
6063 #define $ac_tr_func 1
6066 else
6067 echo "$ac_t""no" 1>&6
6069 done
6072 esac
6075 case "$LIBS" in
6076 *-lsecurity*) for ac_func in getspnam
6078 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6079 echo "configure:6080: checking for $ac_func" >&5
6080 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6081 echo $ac_n "(cached) $ac_c" 1>&6
6082 else
6083 cat > conftest.$ac_ext <<EOF
6084 #line 6085 "configure"
6085 #include "confdefs.h"
6086 /* System header to define __stub macros and hopefully few prototypes,
6087 which can conflict with char $ac_func(); below. */
6088 #include <assert.h>
6089 /* Override any gcc2 internal prototype to avoid an error. */
6090 /* We use char because int might match the return type of a gcc2
6091 builtin and then its argument prototype would still apply. */
6092 char $ac_func();
6094 int main() {
6096 /* The GNU C library defines this for functions which it implements
6097 to always fail with ENOSYS. Some functions are actually named
6098 something starting with __ and the normal name is an alias. */
6099 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6100 choke me
6101 #else
6102 $ac_func();
6103 #endif
6105 ; return 0; }
6107 if { (eval echo configure:6108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6108 rm -rf conftest*
6109 eval "ac_cv_func_$ac_func=yes"
6110 else
6111 echo "configure: failed program was:" >&5
6112 cat conftest.$ac_ext >&5
6113 rm -rf conftest*
6114 eval "ac_cv_func_$ac_func=no"
6116 rm -f conftest*
6119 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6120 echo "$ac_t""yes" 1>&6
6121 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6122 cat >> confdefs.h <<EOF
6123 #define $ac_tr_func 1
6126 else
6127 echo "$ac_t""no" 1>&6
6129 done
6131 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
6132 echo "configure:6133: checking for getspnam in -lsecurity" >&5
6133 ac_lib_var=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
6134 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6135 echo $ac_n "(cached) $ac_c" 1>&6
6136 else
6137 ac_save_LIBS="$LIBS"
6138 LIBS="-lsecurity $LIBS"
6139 cat > conftest.$ac_ext <<EOF
6140 #line 6141 "configure"
6141 #include "confdefs.h"
6142 /* Override any gcc2 internal prototype to avoid an error. */
6143 /* We use char because int might match the return type of a gcc2
6144 builtin and then its argument prototype would still apply. */
6145 char getspnam();
6147 int main() {
6148 getspnam()
6149 ; return 0; }
6151 if { (eval echo configure:6152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6152 rm -rf conftest*
6153 eval "ac_cv_lib_$ac_lib_var=yes"
6154 else
6155 echo "configure: failed program was:" >&5
6156 cat conftest.$ac_ext >&5
6157 rm -rf conftest*
6158 eval "ac_cv_lib_$ac_lib_var=no"
6160 rm -f conftest*
6161 LIBS="$ac_save_LIBS"
6164 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6165 echo "$ac_t""yes" 1>&6
6166 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6167 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6168 cat >> confdefs.h <<EOF
6169 #define $ac_tr_lib 1
6172 LIBS="-lsecurity $LIBS"
6174 else
6175 echo "$ac_t""no" 1>&6
6178 for ac_func in getspnam
6180 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6181 echo "configure:6182: checking for $ac_func" >&5
6182 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6183 echo $ac_n "(cached) $ac_c" 1>&6
6184 else
6185 cat > conftest.$ac_ext <<EOF
6186 #line 6187 "configure"
6187 #include "confdefs.h"
6188 /* System header to define __stub macros and hopefully few prototypes,
6189 which can conflict with char $ac_func(); below. */
6190 #include <assert.h>
6191 /* Override any gcc2 internal prototype to avoid an error. */
6192 /* We use char because int might match the return type of a gcc2
6193 builtin and then its argument prototype would still apply. */
6194 char $ac_func();
6196 int main() {
6198 /* The GNU C library defines this for functions which it implements
6199 to always fail with ENOSYS. Some functions are actually named
6200 something starting with __ and the normal name is an alias. */
6201 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6202 choke me
6203 #else
6204 $ac_func();
6205 #endif
6207 ; return 0; }
6209 if { (eval echo configure:6210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6210 rm -rf conftest*
6211 eval "ac_cv_func_$ac_func=yes"
6212 else
6213 echo "configure: failed program was:" >&5
6214 cat conftest.$ac_ext >&5
6215 rm -rf conftest*
6216 eval "ac_cv_func_$ac_func=no"
6218 rm -f conftest*
6221 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6222 echo "$ac_t""yes" 1>&6
6223 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6224 cat >> confdefs.h <<EOF
6225 #define $ac_tr_func 1
6228 else
6229 echo "$ac_t""no" 1>&6
6231 done
6234 esac
6236 case "$LIBS" in
6237 *-lsec*) for ac_func in getspnam
6239 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6240 echo "configure:6241: checking for $ac_func" >&5
6241 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6242 echo $ac_n "(cached) $ac_c" 1>&6
6243 else
6244 cat > conftest.$ac_ext <<EOF
6245 #line 6246 "configure"
6246 #include "confdefs.h"
6247 /* System header to define __stub macros and hopefully few prototypes,
6248 which can conflict with char $ac_func(); below. */
6249 #include <assert.h>
6250 /* Override any gcc2 internal prototype to avoid an error. */
6251 /* We use char because int might match the return type of a gcc2
6252 builtin and then its argument prototype would still apply. */
6253 char $ac_func();
6255 int main() {
6257 /* The GNU C library defines this for functions which it implements
6258 to always fail with ENOSYS. Some functions are actually named
6259 something starting with __ and the normal name is an alias. */
6260 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6261 choke me
6262 #else
6263 $ac_func();
6264 #endif
6266 ; return 0; }
6268 if { (eval echo configure:6269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6269 rm -rf conftest*
6270 eval "ac_cv_func_$ac_func=yes"
6271 else
6272 echo "configure: failed program was:" >&5
6273 cat conftest.$ac_ext >&5
6274 rm -rf conftest*
6275 eval "ac_cv_func_$ac_func=no"
6277 rm -f conftest*
6280 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6281 echo "$ac_t""yes" 1>&6
6282 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6283 cat >> confdefs.h <<EOF
6284 #define $ac_tr_func 1
6287 else
6288 echo "$ac_t""no" 1>&6
6290 done
6292 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
6293 echo "configure:6294: checking for getspnam in -lsec" >&5
6294 ac_lib_var=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
6295 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6296 echo $ac_n "(cached) $ac_c" 1>&6
6297 else
6298 ac_save_LIBS="$LIBS"
6299 LIBS="-lsec $LIBS"
6300 cat > conftest.$ac_ext <<EOF
6301 #line 6302 "configure"
6302 #include "confdefs.h"
6303 /* Override any gcc2 internal prototype to avoid an error. */
6304 /* We use char because int might match the return type of a gcc2
6305 builtin and then its argument prototype would still apply. */
6306 char getspnam();
6308 int main() {
6309 getspnam()
6310 ; return 0; }
6312 if { (eval echo configure:6313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6313 rm -rf conftest*
6314 eval "ac_cv_lib_$ac_lib_var=yes"
6315 else
6316 echo "configure: failed program was:" >&5
6317 cat conftest.$ac_ext >&5
6318 rm -rf conftest*
6319 eval "ac_cv_lib_$ac_lib_var=no"
6321 rm -f conftest*
6322 LIBS="$ac_save_LIBS"
6325 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6326 echo "$ac_t""yes" 1>&6
6327 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6328 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6329 cat >> confdefs.h <<EOF
6330 #define $ac_tr_lib 1
6333 LIBS="-lsec $LIBS"
6335 else
6336 echo "$ac_t""no" 1>&6
6339 for ac_func in getspnam
6341 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6342 echo "configure:6343: checking for $ac_func" >&5
6343 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6344 echo $ac_n "(cached) $ac_c" 1>&6
6345 else
6346 cat > conftest.$ac_ext <<EOF
6347 #line 6348 "configure"
6348 #include "confdefs.h"
6349 /* System header to define __stub macros and hopefully few prototypes,
6350 which can conflict with char $ac_func(); below. */
6351 #include <assert.h>
6352 /* Override any gcc2 internal prototype to avoid an error. */
6353 /* We use char because int might match the return type of a gcc2
6354 builtin and then its argument prototype would still apply. */
6355 char $ac_func();
6357 int main() {
6359 /* The GNU C library defines this for functions which it implements
6360 to always fail with ENOSYS. Some functions are actually named
6361 something starting with __ and the normal name is an alias. */
6362 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6363 choke me
6364 #else
6365 $ac_func();
6366 #endif
6368 ; return 0; }
6370 if { (eval echo configure:6371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6371 rm -rf conftest*
6372 eval "ac_cv_func_$ac_func=yes"
6373 else
6374 echo "configure: failed program was:" >&5
6375 cat conftest.$ac_ext >&5
6376 rm -rf conftest*
6377 eval "ac_cv_func_$ac_func=no"
6379 rm -f conftest*
6382 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6383 echo "$ac_t""yes" 1>&6
6384 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6385 cat >> confdefs.h <<EOF
6386 #define $ac_tr_func 1
6389 else
6390 echo "$ac_t""no" 1>&6
6392 done
6395 esac
6398 case "$LIBS" in
6399 *-lsecurity*) for ac_func in bigcrypt
6401 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6402 echo "configure:6403: checking for $ac_func" >&5
6403 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6404 echo $ac_n "(cached) $ac_c" 1>&6
6405 else
6406 cat > conftest.$ac_ext <<EOF
6407 #line 6408 "configure"
6408 #include "confdefs.h"
6409 /* System header to define __stub macros and hopefully few prototypes,
6410 which can conflict with char $ac_func(); below. */
6411 #include <assert.h>
6412 /* Override any gcc2 internal prototype to avoid an error. */
6413 /* We use char because int might match the return type of a gcc2
6414 builtin and then its argument prototype would still apply. */
6415 char $ac_func();
6417 int main() {
6419 /* The GNU C library defines this for functions which it implements
6420 to always fail with ENOSYS. Some functions are actually named
6421 something starting with __ and the normal name is an alias. */
6422 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6423 choke me
6424 #else
6425 $ac_func();
6426 #endif
6428 ; return 0; }
6430 if { (eval echo configure:6431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6431 rm -rf conftest*
6432 eval "ac_cv_func_$ac_func=yes"
6433 else
6434 echo "configure: failed program was:" >&5
6435 cat conftest.$ac_ext >&5
6436 rm -rf conftest*
6437 eval "ac_cv_func_$ac_func=no"
6439 rm -f conftest*
6442 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6443 echo "$ac_t""yes" 1>&6
6444 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6445 cat >> confdefs.h <<EOF
6446 #define $ac_tr_func 1
6449 else
6450 echo "$ac_t""no" 1>&6
6452 done
6454 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
6455 echo "configure:6456: checking for bigcrypt in -lsecurity" >&5
6456 ac_lib_var=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
6457 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6458 echo $ac_n "(cached) $ac_c" 1>&6
6459 else
6460 ac_save_LIBS="$LIBS"
6461 LIBS="-lsecurity $LIBS"
6462 cat > conftest.$ac_ext <<EOF
6463 #line 6464 "configure"
6464 #include "confdefs.h"
6465 /* Override any gcc2 internal prototype to avoid an error. */
6466 /* We use char because int might match the return type of a gcc2
6467 builtin and then its argument prototype would still apply. */
6468 char bigcrypt();
6470 int main() {
6471 bigcrypt()
6472 ; return 0; }
6474 if { (eval echo configure:6475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6475 rm -rf conftest*
6476 eval "ac_cv_lib_$ac_lib_var=yes"
6477 else
6478 echo "configure: failed program was:" >&5
6479 cat conftest.$ac_ext >&5
6480 rm -rf conftest*
6481 eval "ac_cv_lib_$ac_lib_var=no"
6483 rm -f conftest*
6484 LIBS="$ac_save_LIBS"
6487 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6488 echo "$ac_t""yes" 1>&6
6489 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6490 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6491 cat >> confdefs.h <<EOF
6492 #define $ac_tr_lib 1
6495 LIBS="-lsecurity $LIBS"
6497 else
6498 echo "$ac_t""no" 1>&6
6501 for ac_func in bigcrypt
6503 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6504 echo "configure:6505: checking for $ac_func" >&5
6505 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6506 echo $ac_n "(cached) $ac_c" 1>&6
6507 else
6508 cat > conftest.$ac_ext <<EOF
6509 #line 6510 "configure"
6510 #include "confdefs.h"
6511 /* System header to define __stub macros and hopefully few prototypes,
6512 which can conflict with char $ac_func(); below. */
6513 #include <assert.h>
6514 /* Override any gcc2 internal prototype to avoid an error. */
6515 /* We use char because int might match the return type of a gcc2
6516 builtin and then its argument prototype would still apply. */
6517 char $ac_func();
6519 int main() {
6521 /* The GNU C library defines this for functions which it implements
6522 to always fail with ENOSYS. Some functions are actually named
6523 something starting with __ and the normal name is an alias. */
6524 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6525 choke me
6526 #else
6527 $ac_func();
6528 #endif
6530 ; return 0; }
6532 if { (eval echo configure:6533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6533 rm -rf conftest*
6534 eval "ac_cv_func_$ac_func=yes"
6535 else
6536 echo "configure: failed program was:" >&5
6537 cat conftest.$ac_ext >&5
6538 rm -rf conftest*
6539 eval "ac_cv_func_$ac_func=no"
6541 rm -f conftest*
6544 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6545 echo "$ac_t""yes" 1>&6
6546 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6547 cat >> confdefs.h <<EOF
6548 #define $ac_tr_func 1
6551 else
6552 echo "$ac_t""no" 1>&6
6554 done
6557 esac
6559 case "$LIBS" in
6560 *-lsec*) for ac_func in bigcrypt
6562 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6563 echo "configure:6564: checking for $ac_func" >&5
6564 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6565 echo $ac_n "(cached) $ac_c" 1>&6
6566 else
6567 cat > conftest.$ac_ext <<EOF
6568 #line 6569 "configure"
6569 #include "confdefs.h"
6570 /* System header to define __stub macros and hopefully few prototypes,
6571 which can conflict with char $ac_func(); below. */
6572 #include <assert.h>
6573 /* Override any gcc2 internal prototype to avoid an error. */
6574 /* We use char because int might match the return type of a gcc2
6575 builtin and then its argument prototype would still apply. */
6576 char $ac_func();
6578 int main() {
6580 /* The GNU C library defines this for functions which it implements
6581 to always fail with ENOSYS. Some functions are actually named
6582 something starting with __ and the normal name is an alias. */
6583 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6584 choke me
6585 #else
6586 $ac_func();
6587 #endif
6589 ; return 0; }
6591 if { (eval echo configure:6592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6592 rm -rf conftest*
6593 eval "ac_cv_func_$ac_func=yes"
6594 else
6595 echo "configure: failed program was:" >&5
6596 cat conftest.$ac_ext >&5
6597 rm -rf conftest*
6598 eval "ac_cv_func_$ac_func=no"
6600 rm -f conftest*
6603 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6604 echo "$ac_t""yes" 1>&6
6605 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6606 cat >> confdefs.h <<EOF
6607 #define $ac_tr_func 1
6610 else
6611 echo "$ac_t""no" 1>&6
6613 done
6615 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
6616 echo "configure:6617: checking for bigcrypt in -lsec" >&5
6617 ac_lib_var=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
6618 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6619 echo $ac_n "(cached) $ac_c" 1>&6
6620 else
6621 ac_save_LIBS="$LIBS"
6622 LIBS="-lsec $LIBS"
6623 cat > conftest.$ac_ext <<EOF
6624 #line 6625 "configure"
6625 #include "confdefs.h"
6626 /* Override any gcc2 internal prototype to avoid an error. */
6627 /* We use char because int might match the return type of a gcc2
6628 builtin and then its argument prototype would still apply. */
6629 char bigcrypt();
6631 int main() {
6632 bigcrypt()
6633 ; return 0; }
6635 if { (eval echo configure:6636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6636 rm -rf conftest*
6637 eval "ac_cv_lib_$ac_lib_var=yes"
6638 else
6639 echo "configure: failed program was:" >&5
6640 cat conftest.$ac_ext >&5
6641 rm -rf conftest*
6642 eval "ac_cv_lib_$ac_lib_var=no"
6644 rm -f conftest*
6645 LIBS="$ac_save_LIBS"
6648 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6649 echo "$ac_t""yes" 1>&6
6650 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6651 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6652 cat >> confdefs.h <<EOF
6653 #define $ac_tr_lib 1
6656 LIBS="-lsec $LIBS"
6658 else
6659 echo "$ac_t""no" 1>&6
6662 for ac_func in bigcrypt
6664 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6665 echo "configure:6666: checking for $ac_func" >&5
6666 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6667 echo $ac_n "(cached) $ac_c" 1>&6
6668 else
6669 cat > conftest.$ac_ext <<EOF
6670 #line 6671 "configure"
6671 #include "confdefs.h"
6672 /* System header to define __stub macros and hopefully few prototypes,
6673 which can conflict with char $ac_func(); below. */
6674 #include <assert.h>
6675 /* Override any gcc2 internal prototype to avoid an error. */
6676 /* We use char because int might match the return type of a gcc2
6677 builtin and then its argument prototype would still apply. */
6678 char $ac_func();
6680 int main() {
6682 /* The GNU C library defines this for functions which it implements
6683 to always fail with ENOSYS. Some functions are actually named
6684 something starting with __ and the normal name is an alias. */
6685 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6686 choke me
6687 #else
6688 $ac_func();
6689 #endif
6691 ; return 0; }
6693 if { (eval echo configure:6694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6694 rm -rf conftest*
6695 eval "ac_cv_func_$ac_func=yes"
6696 else
6697 echo "configure: failed program was:" >&5
6698 cat conftest.$ac_ext >&5
6699 rm -rf conftest*
6700 eval "ac_cv_func_$ac_func=no"
6702 rm -f conftest*
6705 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6706 echo "$ac_t""yes" 1>&6
6707 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6708 cat >> confdefs.h <<EOF
6709 #define $ac_tr_func 1
6712 else
6713 echo "$ac_t""no" 1>&6
6715 done
6718 esac
6721 case "$LIBS" in
6722 *-lsecurity*) for ac_func in getprpwnam
6724 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6725 echo "configure:6726: checking for $ac_func" >&5
6726 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6727 echo $ac_n "(cached) $ac_c" 1>&6
6728 else
6729 cat > conftest.$ac_ext <<EOF
6730 #line 6731 "configure"
6731 #include "confdefs.h"
6732 /* System header to define __stub macros and hopefully few prototypes,
6733 which can conflict with char $ac_func(); below. */
6734 #include <assert.h>
6735 /* Override any gcc2 internal prototype to avoid an error. */
6736 /* We use char because int might match the return type of a gcc2
6737 builtin and then its argument prototype would still apply. */
6738 char $ac_func();
6740 int main() {
6742 /* The GNU C library defines this for functions which it implements
6743 to always fail with ENOSYS. Some functions are actually named
6744 something starting with __ and the normal name is an alias. */
6745 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6746 choke me
6747 #else
6748 $ac_func();
6749 #endif
6751 ; return 0; }
6753 if { (eval echo configure:6754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6754 rm -rf conftest*
6755 eval "ac_cv_func_$ac_func=yes"
6756 else
6757 echo "configure: failed program was:" >&5
6758 cat conftest.$ac_ext >&5
6759 rm -rf conftest*
6760 eval "ac_cv_func_$ac_func=no"
6762 rm -f conftest*
6765 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6766 echo "$ac_t""yes" 1>&6
6767 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6768 cat >> confdefs.h <<EOF
6769 #define $ac_tr_func 1
6772 else
6773 echo "$ac_t""no" 1>&6
6775 done
6777 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
6778 echo "configure:6779: checking for getprpwnam in -lsecurity" >&5
6779 ac_lib_var=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
6780 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6781 echo $ac_n "(cached) $ac_c" 1>&6
6782 else
6783 ac_save_LIBS="$LIBS"
6784 LIBS="-lsecurity $LIBS"
6785 cat > conftest.$ac_ext <<EOF
6786 #line 6787 "configure"
6787 #include "confdefs.h"
6788 /* Override any gcc2 internal prototype to avoid an error. */
6789 /* We use char because int might match the return type of a gcc2
6790 builtin and then its argument prototype would still apply. */
6791 char getprpwnam();
6793 int main() {
6794 getprpwnam()
6795 ; return 0; }
6797 if { (eval echo configure:6798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6798 rm -rf conftest*
6799 eval "ac_cv_lib_$ac_lib_var=yes"
6800 else
6801 echo "configure: failed program was:" >&5
6802 cat conftest.$ac_ext >&5
6803 rm -rf conftest*
6804 eval "ac_cv_lib_$ac_lib_var=no"
6806 rm -f conftest*
6807 LIBS="$ac_save_LIBS"
6810 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6811 echo "$ac_t""yes" 1>&6
6812 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6813 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6814 cat >> confdefs.h <<EOF
6815 #define $ac_tr_lib 1
6818 LIBS="-lsecurity $LIBS"
6820 else
6821 echo "$ac_t""no" 1>&6
6824 for ac_func in getprpwnam
6826 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6827 echo "configure:6828: checking for $ac_func" >&5
6828 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6829 echo $ac_n "(cached) $ac_c" 1>&6
6830 else
6831 cat > conftest.$ac_ext <<EOF
6832 #line 6833 "configure"
6833 #include "confdefs.h"
6834 /* System header to define __stub macros and hopefully few prototypes,
6835 which can conflict with char $ac_func(); below. */
6836 #include <assert.h>
6837 /* Override any gcc2 internal prototype to avoid an error. */
6838 /* We use char because int might match the return type of a gcc2
6839 builtin and then its argument prototype would still apply. */
6840 char $ac_func();
6842 int main() {
6844 /* The GNU C library defines this for functions which it implements
6845 to always fail with ENOSYS. Some functions are actually named
6846 something starting with __ and the normal name is an alias. */
6847 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6848 choke me
6849 #else
6850 $ac_func();
6851 #endif
6853 ; return 0; }
6855 if { (eval echo configure:6856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6856 rm -rf conftest*
6857 eval "ac_cv_func_$ac_func=yes"
6858 else
6859 echo "configure: failed program was:" >&5
6860 cat conftest.$ac_ext >&5
6861 rm -rf conftest*
6862 eval "ac_cv_func_$ac_func=no"
6864 rm -f conftest*
6867 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6868 echo "$ac_t""yes" 1>&6
6869 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6870 cat >> confdefs.h <<EOF
6871 #define $ac_tr_func 1
6874 else
6875 echo "$ac_t""no" 1>&6
6877 done
6880 esac
6882 case "$LIBS" in
6883 *-lsec*) for ac_func in getprpwnam
6885 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6886 echo "configure:6887: checking for $ac_func" >&5
6887 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6888 echo $ac_n "(cached) $ac_c" 1>&6
6889 else
6890 cat > conftest.$ac_ext <<EOF
6891 #line 6892 "configure"
6892 #include "confdefs.h"
6893 /* System header to define __stub macros and hopefully few prototypes,
6894 which can conflict with char $ac_func(); below. */
6895 #include <assert.h>
6896 /* Override any gcc2 internal prototype to avoid an error. */
6897 /* We use char because int might match the return type of a gcc2
6898 builtin and then its argument prototype would still apply. */
6899 char $ac_func();
6901 int main() {
6903 /* The GNU C library defines this for functions which it implements
6904 to always fail with ENOSYS. Some functions are actually named
6905 something starting with __ and the normal name is an alias. */
6906 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6907 choke me
6908 #else
6909 $ac_func();
6910 #endif
6912 ; return 0; }
6914 if { (eval echo configure:6915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6915 rm -rf conftest*
6916 eval "ac_cv_func_$ac_func=yes"
6917 else
6918 echo "configure: failed program was:" >&5
6919 cat conftest.$ac_ext >&5
6920 rm -rf conftest*
6921 eval "ac_cv_func_$ac_func=no"
6923 rm -f conftest*
6926 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6927 echo "$ac_t""yes" 1>&6
6928 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6929 cat >> confdefs.h <<EOF
6930 #define $ac_tr_func 1
6933 else
6934 echo "$ac_t""no" 1>&6
6936 done
6938 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
6939 echo "configure:6940: checking for getprpwnam in -lsec" >&5
6940 ac_lib_var=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
6941 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6942 echo $ac_n "(cached) $ac_c" 1>&6
6943 else
6944 ac_save_LIBS="$LIBS"
6945 LIBS="-lsec $LIBS"
6946 cat > conftest.$ac_ext <<EOF
6947 #line 6948 "configure"
6948 #include "confdefs.h"
6949 /* Override any gcc2 internal prototype to avoid an error. */
6950 /* We use char because int might match the return type of a gcc2
6951 builtin and then its argument prototype would still apply. */
6952 char getprpwnam();
6954 int main() {
6955 getprpwnam()
6956 ; return 0; }
6958 if { (eval echo configure:6959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6959 rm -rf conftest*
6960 eval "ac_cv_lib_$ac_lib_var=yes"
6961 else
6962 echo "configure: failed program was:" >&5
6963 cat conftest.$ac_ext >&5
6964 rm -rf conftest*
6965 eval "ac_cv_lib_$ac_lib_var=no"
6967 rm -f conftest*
6968 LIBS="$ac_save_LIBS"
6971 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6972 echo "$ac_t""yes" 1>&6
6973 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6974 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6975 cat >> confdefs.h <<EOF
6976 #define $ac_tr_lib 1
6979 LIBS="-lsec $LIBS"
6981 else
6982 echo "$ac_t""no" 1>&6
6985 for ac_func in getprpwnam
6987 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6988 echo "configure:6989: checking for $ac_func" >&5
6989 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6990 echo $ac_n "(cached) $ac_c" 1>&6
6991 else
6992 cat > conftest.$ac_ext <<EOF
6993 #line 6994 "configure"
6994 #include "confdefs.h"
6995 /* System header to define __stub macros and hopefully few prototypes,
6996 which can conflict with char $ac_func(); below. */
6997 #include <assert.h>
6998 /* Override any gcc2 internal prototype to avoid an error. */
6999 /* We use char because int might match the return type of a gcc2
7000 builtin and then its argument prototype would still apply. */
7001 char $ac_func();
7003 int main() {
7005 /* The GNU C library defines this for functions which it implements
7006 to always fail with ENOSYS. Some functions are actually named
7007 something starting with __ and the normal name is an alias. */
7008 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7009 choke me
7010 #else
7011 $ac_func();
7012 #endif
7014 ; return 0; }
7016 if { (eval echo configure:7017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7017 rm -rf conftest*
7018 eval "ac_cv_func_$ac_func=yes"
7019 else
7020 echo "configure: failed program was:" >&5
7021 cat conftest.$ac_ext >&5
7022 rm -rf conftest*
7023 eval "ac_cv_func_$ac_func=no"
7025 rm -f conftest*
7028 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7029 echo "$ac_t""yes" 1>&6
7030 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7031 cat >> confdefs.h <<EOF
7032 #define $ac_tr_func 1
7035 else
7036 echo "$ac_t""no" 1>&6
7038 done
7041 esac
7044 # this bit needs to be modified for each OS that is suported by
7045 # smbwrapper. You need to specify how to created a shared library and
7046 # how to compile C code to produce PIC object files
7048 # these are the defaults, good for lots of systems
7049 HOST_OS="$host_os"
7050 LDSHFLAGS="-shared"
7052 # and these are for particular systems
7053 case "$host_os" in
7054 *linux*) cat >> confdefs.h <<\EOF
7055 #define LINUX 1
7058 *solaris*) cat >> confdefs.h <<\EOF
7059 #define SUNOS5 1
7062 LDSHFLAGS="-G"
7064 *sunos*) cat >> confdefs.h <<\EOF
7065 #define SUNOS4 1
7068 LDSHFLAGS=""
7070 *bsd*) LDSHFLAGS="-shared -Bshareable"
7072 *irix*) cat >> confdefs.h <<\EOF
7073 #define IRIX 1
7076 case "$host_os" in
7077 *irix6*) cat >> confdefs.h <<\EOF
7078 #define IRIX6 1
7082 esac
7083 ATTEMPT_WRAP32_BUILD=yes
7085 *aix*) cat >> confdefs.h <<\EOF
7086 #define AIX 1
7089 *hpux*) cat >> confdefs.h <<\EOF
7090 #define HPUX 1
7093 *qnx*) cat >> confdefs.h <<\EOF
7094 #define QNX 1
7097 *osf*) cat >> confdefs.h <<\EOF
7098 #define OSF1 1
7101 *sco*) cat >> confdefs.h <<\EOF
7102 #define SCO 1
7105 *next2*) cat >> confdefs.h <<\EOF
7106 #define NEXT2 1
7109 *dgux*) # Extract the first word of "groff", so it can be a program name with args.
7110 set dummy groff; ac_word=$2
7111 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7112 echo "configure:7113: checking for $ac_word" >&5
7113 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
7114 echo $ac_n "(cached) $ac_c" 1>&6
7115 else
7116 if test -n "$ROFF"; then
7117 ac_cv_prog_ROFF="$ROFF" # Let the user override the test.
7118 else
7119 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7120 for ac_dir in $PATH; do
7121 test -z "$ac_dir" && ac_dir=.
7122 if test -f $ac_dir/$ac_word; then
7123 ac_cv_prog_ROFF="groff -etpsR -Tascii -man"
7124 break
7126 done
7127 IFS="$ac_save_ifs"
7130 ROFF="$ac_cv_prog_ROFF"
7131 if test -n "$ROFF"; then
7132 echo "$ac_t""$ROFF" 1>&6
7133 else
7134 echo "$ac_t""no" 1>&6
7137 *sysv4*)
7138 case "$host" in
7139 *-univel-*) if test "$GCC" != yes ; then
7140 cat >> confdefs.h <<\EOF
7141 #define HAVE_MEMSET 1
7145 LDSHFLAGS="-G"
7147 *mips-sni-sysv4*) cat >> confdefs.h <<\EOF
7148 #define RELIANTUNIX 1
7151 esac
7153 *sysv5*)
7154 if test "$GCC" != yes ; then
7155 cat >> confdefs.h <<\EOF
7156 #define HAVE_MEMSET 1
7160 LDSHFLAGS="-G"
7162 esac
7164 # try to work out how to produce pic code with this compiler
7165 PICFLAG=""
7166 echo $ac_n "checking whether ${CC-cc} accepts -fpic""... $ac_c" 1>&6
7167 echo "configure:7168: checking whether ${CC-cc} accepts -fpic" >&5
7168 if eval "test \"`echo '$''{'ac_cv_prog_cc_fpic'+set}'`\" = set"; then
7169 echo $ac_n "(cached) $ac_c" 1>&6
7170 else
7171 echo 'void f(){}' > conftest.c
7172 if test -z "`${CC-cc} -fpic -c conftest.c 2>&1`"; then
7173 ac_cv_prog_cc_fpic=yes
7174 else
7175 ac_cv_prog_cc_fpic=no
7177 rm -f conftest*
7181 echo "$ac_t""$ac_cv_prog_cc_fpic" 1>&6
7182 if test $ac_cv_prog_cc_fpic = yes; then
7183 PICFLAG="-fpic";
7185 if test x$PICFLAG = x; then
7186 echo $ac_n "checking whether ${CC-cc} accepts -Kpic""... $ac_c" 1>&6
7187 echo "configure:7188: checking whether ${CC-cc} accepts -Kpic" >&5
7188 if eval "test \"`echo '$''{'ac_cv_prog_cc_Kpic'+set}'`\" = set"; then
7189 echo $ac_n "(cached) $ac_c" 1>&6
7190 else
7191 echo 'void f(){}' > conftest.c
7192 if test -z "`${CC-cc} -Kpic -c conftest.c 2>&1`"; then
7193 ac_cv_prog_cc_Kpic=yes
7194 else
7195 ac_cv_prog_cc_Kpic=no
7197 rm -f conftest*
7201 echo "$ac_t""$ac_cv_prog_cc_Kpic" 1>&6
7202 if test $ac_cv_prog_cc_Kpic = yes; then
7203 PICFLAG="-Kpic";
7206 if test x$PICFLAG = x; then
7207 echo $ac_n "checking whether ${CC-cc} accepts -KPIC""... $ac_c" 1>&6
7208 echo "configure:7209: checking whether ${CC-cc} accepts -KPIC" >&5
7209 if eval "test \"`echo '$''{'ac_cv_prog_cc_KPIC'+set}'`\" = set"; then
7210 echo $ac_n "(cached) $ac_c" 1>&6
7211 else
7212 echo 'void f(){}' > conftest.c
7213 if test -z "`${CC-cc} -KPIC -c conftest.c 2>&1`"; then
7214 ac_cv_prog_cc_KPIC=yes
7215 else
7216 ac_cv_prog_cc_KPIC=no
7218 rm -f conftest*
7222 echo "$ac_t""$ac_cv_prog_cc_KPIC" 1>&6
7223 if test $ac_cv_prog_cc_KPIC = yes; then
7224 PICFLAG="-KPIC";
7228 ################
7230 echo $ac_n "checking for long long""... $ac_c" 1>&6
7231 echo "configure:7232: checking for long long" >&5
7232 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
7233 echo $ac_n "(cached) $ac_c" 1>&6
7234 else
7236 if test "$cross_compiling" = yes; then
7237 samba_cv_have_longlong=cross
7238 else
7239 cat > conftest.$ac_ext <<EOF
7240 #line 7241 "configure"
7241 #include "confdefs.h"
7242 #include <stdio.h>
7243 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
7245 if { (eval echo configure:7246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7246 then
7247 samba_cv_have_longlong=yes
7248 else
7249 echo "configure: failed program was:" >&5
7250 cat conftest.$ac_ext >&5
7251 rm -fr conftest*
7252 samba_cv_have_longlong=no
7254 rm -fr conftest*
7259 echo "$ac_t""$samba_cv_have_longlong" 1>&6
7260 if test x"$samba_cv_have_longlong" = x"yes"; then
7261 cat >> confdefs.h <<\EOF
7262 #define HAVE_LONGLONG 1
7267 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
7268 echo "configure:7269: checking for 64 bit off_t" >&5
7269 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
7270 echo $ac_n "(cached) $ac_c" 1>&6
7271 else
7273 if test "$cross_compiling" = yes; then
7274 samba_cv_SIZEOF_OFF_T=cross
7275 else
7276 cat > conftest.$ac_ext <<EOF
7277 #line 7278 "configure"
7278 #include "confdefs.h"
7279 #include <stdio.h>
7280 #include <sys/stat.h>
7281 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
7283 if { (eval echo configure:7284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7284 then
7285 samba_cv_SIZEOF_OFF_T=yes
7286 else
7287 echo "configure: failed program was:" >&5
7288 cat conftest.$ac_ext >&5
7289 rm -fr conftest*
7290 samba_cv_SIZEOF_OFF_T=no
7292 rm -fr conftest*
7297 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
7298 if test x"$samba_cv_SIZEOF_OFF_T" = x"yes"; then
7299 cat >> confdefs.h <<\EOF
7300 #define SIZEOF_OFF_T 8
7305 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
7306 echo "configure:7307: checking for off64_t" >&5
7307 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
7308 echo $ac_n "(cached) $ac_c" 1>&6
7309 else
7311 if test "$cross_compiling" = yes; then
7312 samba_cv_HAVE_OFF64_T=cross
7313 else
7314 cat > conftest.$ac_ext <<EOF
7315 #line 7316 "configure"
7316 #include "confdefs.h"
7318 #if defined(HAVE_UNISTD_H)
7319 #include <unistd.h>
7320 #endif
7321 #include <stdio.h>
7322 #include <sys/stat.h>
7323 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
7325 if { (eval echo configure:7326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7326 then
7327 samba_cv_HAVE_OFF64_T=yes
7328 else
7329 echo "configure: failed program was:" >&5
7330 cat conftest.$ac_ext >&5
7331 rm -fr conftest*
7332 samba_cv_HAVE_OFF64_T=no
7334 rm -fr conftest*
7339 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
7340 if test x"$samba_cv_HAVE_OFF64_T" = x"yes"; then
7341 cat >> confdefs.h <<\EOF
7342 #define HAVE_OFF64_T 1
7347 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
7348 echo "configure:7349: checking for 64 bit ino_t" >&5
7349 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
7350 echo $ac_n "(cached) $ac_c" 1>&6
7351 else
7353 if test "$cross_compiling" = yes; then
7354 samba_cv_SIZEOF_INO_T=cross
7355 else
7356 cat > conftest.$ac_ext <<EOF
7357 #line 7358 "configure"
7358 #include "confdefs.h"
7359 #include <stdio.h>
7360 #include <sys/stat.h>
7361 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
7363 if { (eval echo configure:7364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7364 then
7365 samba_cv_SIZEOF_INO_T=yes
7366 else
7367 echo "configure: failed program was:" >&5
7368 cat conftest.$ac_ext >&5
7369 rm -fr conftest*
7370 samba_cv_SIZEOF_INO_T=no
7372 rm -fr conftest*
7377 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
7378 if test x"$samba_cv_SIZEOF_INO_T" = x"yes"; then
7379 cat >> confdefs.h <<\EOF
7380 #define SIZEOF_INO_T 8
7385 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
7386 echo "configure:7387: checking for ino64_t" >&5
7387 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
7388 echo $ac_n "(cached) $ac_c" 1>&6
7389 else
7391 if test "$cross_compiling" = yes; then
7392 samba_cv_HAVE_INO64_T=cross
7393 else
7394 cat > conftest.$ac_ext <<EOF
7395 #line 7396 "configure"
7396 #include "confdefs.h"
7398 #if defined(HAVE_UNISTD_H)
7399 #include <unistd.h>
7400 #endif
7401 #include <stdio.h>
7402 #include <sys/stat.h>
7403 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
7405 if { (eval echo configure:7406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7406 then
7407 samba_cv_HAVE_INO64_T=yes
7408 else
7409 echo "configure: failed program was:" >&5
7410 cat conftest.$ac_ext >&5
7411 rm -fr conftest*
7412 samba_cv_HAVE_INO64_T=no
7414 rm -fr conftest*
7419 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
7420 if test x"$samba_cv_HAVE_INO64_T" = x"yes"; then
7421 cat >> confdefs.h <<\EOF
7422 #define HAVE_INO64_T 1
7427 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
7428 echo "configure:7429: checking for struct dirent64" >&5
7429 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
7430 echo $ac_n "(cached) $ac_c" 1>&6
7431 else
7433 cat > conftest.$ac_ext <<EOF
7434 #line 7435 "configure"
7435 #include "confdefs.h"
7437 #if defined(HAVE_UNISTD_H)
7438 #include <unistd.h>
7439 #endif
7440 #include <sys/types.h>
7441 #include <dirent.h>
7442 int main() {
7443 struct dirent64 de;
7444 ; return 0; }
7446 if { (eval echo configure:7447: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7447 rm -rf conftest*
7448 samba_cv_HAVE_STRUCT_DIRENT64=yes
7449 else
7450 echo "configure: failed program was:" >&5
7451 cat conftest.$ac_ext >&5
7452 rm -rf conftest*
7453 samba_cv_HAVE_STRUCT_DIRENT64=no
7455 rm -f conftest*
7458 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
7459 if test x"$samba_cv_HAVE_STRUCT_DIRENT64" = x"yes"; then
7460 cat >> confdefs.h <<\EOF
7461 #define HAVE_STRUCT_DIRENT64 1
7466 echo $ac_n "checking for union semun""... $ac_c" 1>&6
7467 echo "configure:7468: checking for union semun" >&5
7468 if eval "test \"`echo '$''{'samba_cv_HAVE_UNION_SEMUN'+set}'`\" = set"; then
7469 echo $ac_n "(cached) $ac_c" 1>&6
7470 else
7472 if test "$cross_compiling" = yes; then
7473 samba_cv_HAVE_UNION_SEMUN=cross
7474 else
7475 cat > conftest.$ac_ext <<EOF
7476 #line 7477 "configure"
7477 #include "confdefs.h"
7479 #include <sys/types.h>
7480 #include <sys/ipc.h>
7481 #include <sys/sem.h>
7482 main() { union semun ss; exit(0); }
7484 if { (eval echo configure:7485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7485 then
7486 samba_cv_HAVE_UNION_SEMUN=yes
7487 else
7488 echo "configure: failed program was:" >&5
7489 cat conftest.$ac_ext >&5
7490 rm -fr conftest*
7491 samba_cv_HAVE_UNION_SEMUN=no
7493 rm -fr conftest*
7498 echo "$ac_t""$samba_cv_HAVE_UNION_SEMUN" 1>&6
7499 if test x"$samba_cv_HAVE_UNION_SEMUN" = x"yes"; then
7500 cat >> confdefs.h <<\EOF
7501 #define HAVE_UNION_SEMUN 1
7506 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
7507 echo "configure:7508: checking for unsigned char" >&5
7508 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
7509 echo $ac_n "(cached) $ac_c" 1>&6
7510 else
7512 if test "$cross_compiling" = yes; then
7513 samba_cv_HAVE_UNSIGNED_CHAR=cross
7514 else
7515 cat > conftest.$ac_ext <<EOF
7516 #line 7517 "configure"
7517 #include "confdefs.h"
7518 #include <stdio.h>
7519 main() { char c; c=250; exit((c > 0)?0:1); }
7521 if { (eval echo configure:7522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7522 then
7523 samba_cv_HAVE_UNSIGNED_CHAR=yes
7524 else
7525 echo "configure: failed program was:" >&5
7526 cat conftest.$ac_ext >&5
7527 rm -fr conftest*
7528 samba_cv_HAVE_UNSIGNED_CHAR=no
7530 rm -fr conftest*
7535 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
7536 if test x"$samba_cv_HAVE_UNSIGNED_CHAR" = x"yes"; then
7537 cat >> confdefs.h <<\EOF
7538 #define HAVE_UNSIGNED_CHAR 1
7543 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
7544 echo "configure:7545: checking for sin_len in sock" >&5
7545 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
7546 echo $ac_n "(cached) $ac_c" 1>&6
7547 else
7549 cat > conftest.$ac_ext <<EOF
7550 #line 7551 "configure"
7551 #include "confdefs.h"
7552 #include <sys/types.h>
7553 #include <sys/socket.h>
7554 #include <netinet/in.h>
7555 int main() {
7556 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
7557 ; return 0; }
7559 if { (eval echo configure:7560: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7560 rm -rf conftest*
7561 samba_cv_HAVE_SOCK_SIN_LEN=yes
7562 else
7563 echo "configure: failed program was:" >&5
7564 cat conftest.$ac_ext >&5
7565 rm -rf conftest*
7566 samba_cv_HAVE_SOCK_SIN_LEN=no
7568 rm -f conftest*
7571 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
7572 if test x"$samba_cv_HAVE_SOCK_SIN_LEN" = x"yes"; then
7573 cat >> confdefs.h <<\EOF
7574 #define HAVE_SOCK_SIN_LEN 1
7579 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
7580 echo "configure:7581: checking whether seekdir returns void" >&5
7581 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
7582 echo $ac_n "(cached) $ac_c" 1>&6
7583 else
7585 cat > conftest.$ac_ext <<EOF
7586 #line 7587 "configure"
7587 #include "confdefs.h"
7588 #include <sys/types.h>
7589 #include <dirent.h>
7590 void seekdir(DIR *d, long loc) { return; }
7591 int main() {
7592 return 0;
7593 ; return 0; }
7595 if { (eval echo configure:7596: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7596 rm -rf conftest*
7597 samba_cv_SEEKDIR_RETURNS_VOID=yes
7598 else
7599 echo "configure: failed program was:" >&5
7600 cat conftest.$ac_ext >&5
7601 rm -rf conftest*
7602 samba_cv_SEEKDIR_RETURNS_VOID=no
7604 rm -f conftest*
7607 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
7608 if test x"$samba_cv_SEEKDIR_RETURNS_VOID" = x"yes"; then
7609 cat >> confdefs.h <<\EOF
7610 #define SEEKDIR_RETURNS_VOID 1
7615 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
7616 echo "configure:7617: checking for __FILE__ macro" >&5
7617 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
7618 echo $ac_n "(cached) $ac_c" 1>&6
7619 else
7621 cat > conftest.$ac_ext <<EOF
7622 #line 7623 "configure"
7623 #include "confdefs.h"
7624 #include <stdio.h>
7625 int main() {
7626 printf("%s\n", __FILE__);
7627 ; return 0; }
7629 if { (eval echo configure:7630: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7630 rm -rf conftest*
7631 samba_cv_HAVE_FILE_MACRO=yes
7632 else
7633 echo "configure: failed program was:" >&5
7634 cat conftest.$ac_ext >&5
7635 rm -rf conftest*
7636 samba_cv_HAVE_FILE_MACRO=no
7638 rm -f conftest*
7641 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
7642 if test x"$samba_cv_HAVE_FILE_MACRO" = x"yes"; then
7643 cat >> confdefs.h <<\EOF
7644 #define HAVE_FILE_MACRO 1
7649 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
7650 echo "configure:7651: checking for __FUNCTION__ macro" >&5
7651 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
7652 echo $ac_n "(cached) $ac_c" 1>&6
7653 else
7655 cat > conftest.$ac_ext <<EOF
7656 #line 7657 "configure"
7657 #include "confdefs.h"
7658 #include <stdio.h>
7659 int main() {
7660 printf("%s\n", __FUNCTION__);
7661 ; return 0; }
7663 if { (eval echo configure:7664: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7664 rm -rf conftest*
7665 samba_cv_HAVE_FUNCTION_MACRO=yes
7666 else
7667 echo "configure: failed program was:" >&5
7668 cat conftest.$ac_ext >&5
7669 rm -rf conftest*
7670 samba_cv_HAVE_FUNCTION_MACRO=no
7672 rm -f conftest*
7675 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
7676 if test x"$samba_cv_HAVE_FUNCTION_MACRO" = x"yes"; then
7677 cat >> confdefs.h <<\EOF
7678 #define HAVE_FUNCTION_MACRO 1
7683 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
7684 echo "configure:7685: checking if gettimeofday takes tz argument" >&5
7685 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
7686 echo $ac_n "(cached) $ac_c" 1>&6
7687 else
7689 if test "$cross_compiling" = yes; then
7690 samba_cv_HAVE_GETTIMEOFDAY_TZ=cross
7691 else
7692 cat > conftest.$ac_ext <<EOF
7693 #line 7694 "configure"
7694 #include "confdefs.h"
7696 #include <sys/time.h>
7697 #include <unistd.h>
7698 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
7700 if { (eval echo configure:7701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7701 then
7702 samba_cv_HAVE_GETTIMEOFDAY_TZ=yes
7703 else
7704 echo "configure: failed program was:" >&5
7705 cat conftest.$ac_ext >&5
7706 rm -fr conftest*
7707 samba_cv_HAVE_GETTIMEOFDAY_TZ=no
7709 rm -fr conftest*
7714 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
7715 if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
7716 cat >> confdefs.h <<\EOF
7717 #define HAVE_GETTIMEOFDAY_TZ 1
7723 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
7724 echo "configure:7725: checking for broken readdir" >&5
7725 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
7726 echo $ac_n "(cached) $ac_c" 1>&6
7727 else
7729 if test "$cross_compiling" = yes; then
7730 samba_cv_HAVE_BROKEN_READDIR=cross
7731 else
7732 cat > conftest.$ac_ext <<EOF
7733 #line 7734 "configure"
7734 #include "confdefs.h"
7735 #include <sys/types.h>
7736 #include <dirent.h>
7737 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
7738 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
7739 di->d_name[0] == 0) exit(0); exit(1);}
7741 if { (eval echo configure:7742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7742 then
7743 samba_cv_HAVE_BROKEN_READDIR=yes
7744 else
7745 echo "configure: failed program was:" >&5
7746 cat conftest.$ac_ext >&5
7747 rm -fr conftest*
7748 samba_cv_HAVE_BROKEN_READDIR=no
7750 rm -fr conftest*
7755 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
7756 if test x"$samba_cv_HAVE_BROKEN_READDIR" = x"yes"; then
7757 cat >> confdefs.h <<\EOF
7758 #define HAVE_BROKEN_READDIR 1
7763 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
7764 echo "configure:7765: checking for utimbuf" >&5
7765 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
7766 echo $ac_n "(cached) $ac_c" 1>&6
7767 else
7769 cat > conftest.$ac_ext <<EOF
7770 #line 7771 "configure"
7771 #include "confdefs.h"
7772 #include <sys/types.h>
7773 #include <utime.h>
7774 int main() {
7775 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
7776 ; return 0; }
7778 if { (eval echo configure:7779: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7779 rm -rf conftest*
7780 samba_cv_HAVE_UTIMBUF=yes
7781 else
7782 echo "configure: failed program was:" >&5
7783 cat conftest.$ac_ext >&5
7784 rm -rf conftest*
7785 samba_cv_HAVE_UTIMBUF=no
7787 rm -f conftest*
7790 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
7791 if test x"$samba_cv_HAVE_UTIMBUF" = x"yes"; then
7792 cat >> confdefs.h <<\EOF
7793 #define HAVE_UTIMBUF 1
7798 echo $ac_n "checking for kernel oplock type definitions""... $ac_c" 1>&6
7799 echo "configure:7800: checking for kernel oplock type definitions" >&5
7800 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS'+set}'`\" = set"; then
7801 echo $ac_n "(cached) $ac_c" 1>&6
7802 else
7804 cat > conftest.$ac_ext <<EOF
7805 #line 7806 "configure"
7806 #include "confdefs.h"
7807 #include <sys/types.h>
7808 #include <fcntl.h>
7809 int main() {
7810 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
7811 ; return 0; }
7813 if { (eval echo configure:7814: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7814 rm -rf conftest*
7815 samba_cv_HAVE_KERNEL_OPLOCKS=yes
7816 else
7817 echo "configure: failed program was:" >&5
7818 cat conftest.$ac_ext >&5
7819 rm -rf conftest*
7820 samba_cv_HAVE_KERNEL_OPLOCKS=no
7822 rm -f conftest*
7825 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS" 1>&6
7826 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS" = x"yes"; then
7827 cat >> confdefs.h <<\EOF
7828 #define HAVE_KERNEL_OPLOCKS 1
7833 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
7834 echo "configure:7835: checking for irix specific capabilities" >&5
7835 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
7836 echo $ac_n "(cached) $ac_c" 1>&6
7837 else
7839 if test "$cross_compiling" = yes; then
7840 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=cross
7841 else
7842 cat > conftest.$ac_ext <<EOF
7843 #line 7844 "configure"
7844 #include "confdefs.h"
7845 #include <sys/types.h>
7846 #include <sys/capability.h>
7847 main() {
7848 cap_t cap;
7849 if ((cap = cap_get_proc()) == NULL)
7850 exit(1);
7851 cap->cap_effective |= CAP_NETWORK_MGT;
7852 cap->cap_inheritable |= CAP_NETWORK_MGT;
7853 cap_set_proc(cap);
7854 exit(0);
7858 if { (eval echo configure:7859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7859 then
7860 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=yes
7861 else
7862 echo "configure: failed program was:" >&5
7863 cat conftest.$ac_ext >&5
7864 rm -fr conftest*
7865 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=no
7867 rm -fr conftest*
7872 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
7873 if test x"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x"yes"; then
7874 cat >> confdefs.h <<\EOF
7875 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
7881 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
7882 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
7885 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
7886 echo "configure:7887: checking for int16 typedef included by rpc/rpc.h" >&5
7887 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
7888 echo $ac_n "(cached) $ac_c" 1>&6
7889 else
7891 cat > conftest.$ac_ext <<EOF
7892 #line 7893 "configure"
7893 #include "confdefs.h"
7894 #include <sys/types.h>
7895 #if defined(HAVE_RPC_RPC_H)
7896 #include <rpc/rpc.h>
7897 #endif
7898 int main() {
7899 int16 testvar;
7900 ; return 0; }
7902 if { (eval echo configure:7903: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7903 rm -rf conftest*
7904 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=yes
7905 else
7906 echo "configure: failed program was:" >&5
7907 cat conftest.$ac_ext >&5
7908 rm -rf conftest*
7909 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=no
7911 rm -f conftest*
7914 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
7915 if test x"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x"yes"; then
7916 cat >> confdefs.h <<\EOF
7917 #define HAVE_INT16_FROM_RPC_RPC_H 1
7922 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
7923 echo "configure:7924: checking for uint16 typedef included by rpc/rpc.h" >&5
7924 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
7925 echo $ac_n "(cached) $ac_c" 1>&6
7926 else
7928 cat > conftest.$ac_ext <<EOF
7929 #line 7930 "configure"
7930 #include "confdefs.h"
7931 #include <sys/types.h>
7932 #if defined(HAVE_RPC_RPC_H)
7933 #include <rpc/rpc.h>
7934 #endif
7935 int main() {
7936 uint16 testvar;
7937 ; return 0; }
7939 if { (eval echo configure:7940: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7940 rm -rf conftest*
7941 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=yes
7942 else
7943 echo "configure: failed program was:" >&5
7944 cat conftest.$ac_ext >&5
7945 rm -rf conftest*
7946 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=no
7948 rm -f conftest*
7951 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
7952 if test x"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x"yes"; then
7953 cat >> confdefs.h <<\EOF
7954 #define HAVE_UINT16_FROM_RPC_RPC_H 1
7959 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
7960 echo "configure:7961: checking for int32 typedef included by rpc/rpc.h" >&5
7961 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
7962 echo $ac_n "(cached) $ac_c" 1>&6
7963 else
7965 cat > conftest.$ac_ext <<EOF
7966 #line 7967 "configure"
7967 #include "confdefs.h"
7968 #include <sys/types.h>
7969 #if defined(HAVE_RPC_RPC_H)
7970 #include <rpc/rpc.h>
7971 #endif
7972 int main() {
7973 int32 testvar;
7974 ; return 0; }
7976 if { (eval echo configure:7977: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7977 rm -rf conftest*
7978 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=yes
7979 else
7980 echo "configure: failed program was:" >&5
7981 cat conftest.$ac_ext >&5
7982 rm -rf conftest*
7983 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=no
7985 rm -f conftest*
7988 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
7989 if test x"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x"yes"; then
7990 cat >> confdefs.h <<\EOF
7991 #define HAVE_INT32_FROM_RPC_RPC_H 1
7996 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
7997 echo "configure:7998: checking for uint32 typedef included by rpc/rpc.h" >&5
7998 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
7999 echo $ac_n "(cached) $ac_c" 1>&6
8000 else
8002 cat > conftest.$ac_ext <<EOF
8003 #line 8004 "configure"
8004 #include "confdefs.h"
8005 #include <sys/types.h>
8006 #if defined(HAVE_RPC_RPC_H)
8007 #include <rpc/rpc.h>
8008 #endif
8009 int main() {
8010 uint32 testvar;
8011 ; return 0; }
8013 if { (eval echo configure:8014: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8014 rm -rf conftest*
8015 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=yes
8016 else
8017 echo "configure: failed program was:" >&5
8018 cat conftest.$ac_ext >&5
8019 rm -rf conftest*
8020 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=no
8022 rm -f conftest*
8025 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
8026 if test x"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x"yes"; then
8027 cat >> confdefs.h <<\EOF
8028 #define HAVE_UINT32_FROM_RPC_RPC_H 1
8034 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
8035 echo "configure:8036: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
8036 if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
8037 echo $ac_n "(cached) $ac_c" 1>&6
8038 else
8040 cat > conftest.$ac_ext <<EOF
8041 #line 8042 "configure"
8042 #include "confdefs.h"
8043 #include <sys/types.h>
8044 #ifdef HAVE_SYS_SECURITY_H
8045 #include <sys/security.h>
8046 #include <prot.h>
8047 #endif /* HAVE_SYS_SECURITY_H */
8048 #if defined(HAVE_RPC_RPC_H)
8049 #include <rpc/rpc.h>
8050 #endif
8051 int main() {
8052 int testvar;
8053 ; return 0; }
8055 if { (eval echo configure:8056: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8056 rm -rf conftest*
8057 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=no
8058 else
8059 echo "configure: failed program was:" >&5
8060 cat conftest.$ac_ext >&5
8061 rm -rf conftest*
8062 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=yes
8064 rm -f conftest*
8067 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
8068 if test x"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x"yes"; then
8069 cat >> confdefs.h <<\EOF
8070 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
8075 echo $ac_n "checking for test routines""... $ac_c" 1>&6
8076 echo "configure:8077: checking for test routines" >&5
8077 if test "$cross_compiling" = yes; then
8078 echo "configure: warning: cannot run when cross-compiling" 1>&2
8079 else
8080 cat > conftest.$ac_ext <<EOF
8081 #line 8082 "configure"
8082 #include "confdefs.h"
8083 #include "${srcdir-.}/tests/trivial.c"
8085 if { (eval echo configure:8086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
8086 then
8087 echo "$ac_t""yes" 1>&6
8088 else
8089 echo "configure: failed program was:" >&5
8090 cat conftest.$ac_ext >&5
8091 rm -fr conftest*
8092 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
8094 rm -fr conftest*
8098 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
8099 echo "configure:8100: checking for ftruncate extend" >&5
8100 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
8101 echo $ac_n "(cached) $ac_c" 1>&6
8102 else
8104 if test "$cross_compiling" = yes; then
8105 samba_cv_HAVE_FTRUNCATE_EXTEND=cross
8106 else
8107 cat > conftest.$ac_ext <<EOF
8108 #line 8109 "configure"
8109 #include "confdefs.h"
8110 #include "${srcdir-.}/tests/ftruncate.c"
8112 if { (eval echo configure:8113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
8113 then
8114 samba_cv_HAVE_FTRUNCATE_EXTEND=yes
8115 else
8116 echo "configure: failed program was:" >&5
8117 cat conftest.$ac_ext >&5
8118 rm -fr conftest*
8119 samba_cv_HAVE_FTRUNCATE_EXTEND=no
8121 rm -fr conftest*
8126 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
8127 if test x"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x"yes"; then
8128 cat >> confdefs.h <<\EOF
8129 #define HAVE_FTRUNCATE_EXTEND 1
8134 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
8135 echo "configure:8136: checking for broken getgroups" >&5
8136 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
8137 echo $ac_n "(cached) $ac_c" 1>&6
8138 else
8140 if test "$cross_compiling" = yes; then
8141 samba_cv_HAVE_BROKEN_GETGROUPS=cross
8142 else
8143 cat > conftest.$ac_ext <<EOF
8144 #line 8145 "configure"
8145 #include "confdefs.h"
8146 #include "${srcdir-.}/tests/getgroups.c"
8148 if { (eval echo configure:8149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
8149 then
8150 samba_cv_HAVE_BROKEN_GETGROUPS=yes
8151 else
8152 echo "configure: failed program was:" >&5
8153 cat conftest.$ac_ext >&5
8154 rm -fr conftest*
8155 samba_cv_HAVE_BROKEN_GETGROUPS=no
8157 rm -fr conftest*
8162 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
8163 if test x"$samba_cv_HAVE_BROKEN_GETGROUPS" = x"yes"; then
8164 cat >> confdefs.h <<\EOF
8165 #define HAVE_BROKEN_GETGROUPS 1
8170 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
8171 echo "configure:8172: checking whether getpass should be replaced" >&5
8172 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
8173 echo $ac_n "(cached) $ac_c" 1>&6
8174 else
8176 SAVE_CPPFLAGS="$CPPFLAGS"
8177 CPPFLAGS="$CPPFLAGS -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/smbwrapper"
8178 cat > conftest.$ac_ext <<EOF
8179 #line 8180 "configure"
8180 #include "confdefs.h"
8182 #define REPLACE_GETPASS 1
8183 #define NO_CONFIG_H 1
8184 #define main dont_declare_main
8185 #include "${srcdir-.}/lib/getsmbpass.c"
8186 #undef main
8188 int main() {
8190 ; return 0; }
8192 if { (eval echo configure:8193: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8193 rm -rf conftest*
8194 samba_cv_REPLACE_GETPASS=yes
8195 else
8196 echo "configure: failed program was:" >&5
8197 cat conftest.$ac_ext >&5
8198 rm -rf conftest*
8199 samba_cv_REPLACE_GETPASS=no
8201 rm -f conftest*
8202 CPPFLAGS="$SAVE_CPPFLAGS"
8206 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
8207 if test x"$samba_cv_REPLACE_GETPASS" = x"yes"; then
8208 cat >> confdefs.h <<\EOF
8209 #define REPLACE_GETPASS 1
8214 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
8215 echo "configure:8216: checking for broken inet_ntoa" >&5
8216 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
8217 echo $ac_n "(cached) $ac_c" 1>&6
8218 else
8220 if test "$cross_compiling" = yes; then
8221 samba_cv_REPLACE_INET_NTOA=cross
8222 else
8223 cat > conftest.$ac_ext <<EOF
8224 #line 8225 "configure"
8225 #include "confdefs.h"
8227 #include <stdio.h>
8228 #include <sys/types.h>
8229 #include <netinet/in.h>
8230 #ifdef HAVE_ARPA_INET_H
8231 #include <arpa/inet.h>
8232 #endif
8233 main() { struct in_addr ip; ip.s_addr = 0x12345678;
8234 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
8235 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
8236 exit(1);}
8238 if { (eval echo configure:8239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
8239 then
8240 samba_cv_REPLACE_INET_NTOA=yes
8241 else
8242 echo "configure: failed program was:" >&5
8243 cat conftest.$ac_ext >&5
8244 rm -fr conftest*
8245 samba_cv_REPLACE_INET_NTOA=no
8247 rm -fr conftest*
8252 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
8253 if test x"$samba_cv_REPLACE_INET_NTOA" = x"yes"; then
8254 cat >> confdefs.h <<\EOF
8255 #define REPLACE_INET_NTOA 1
8260 echo $ac_n "checking for root""... $ac_c" 1>&6
8261 echo "configure:8262: checking for root" >&5
8262 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
8263 echo $ac_n "(cached) $ac_c" 1>&6
8264 else
8266 if test "$cross_compiling" = yes; then
8267 samba_cv_HAVE_ROOT=cross
8268 else
8269 cat > conftest.$ac_ext <<EOF
8270 #line 8271 "configure"
8271 #include "confdefs.h"
8272 main() { exit(getuid() != 0); }
8274 if { (eval echo configure:8275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
8275 then
8276 samba_cv_HAVE_ROOT=yes
8277 else
8278 echo "configure: failed program was:" >&5
8279 cat conftest.$ac_ext >&5
8280 rm -fr conftest*
8281 samba_cv_HAVE_ROOT=no
8283 rm -fr conftest*
8288 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
8289 if test x"$samba_cv_HAVE_ROOT" = x"yes"; then
8290 cat >> confdefs.h <<\EOF
8291 #define HAVE_ROOT 1
8294 else
8295 echo "configure: warning: running as non-root will disable some tests" 1>&2
8298 netmask=no;
8299 echo $ac_n "checking for netmask ifconf""... $ac_c" 1>&6
8300 echo "configure:8301: checking for netmask ifconf" >&5
8301 if eval "test \"`echo '$''{'samba_cv_HAVE_NETMASK_IFCONF'+set}'`\" = set"; then
8302 echo $ac_n "(cached) $ac_c" 1>&6
8303 else
8305 if test "$cross_compiling" = yes; then
8306 samba_cv_HAVE_NETMASK_IFCONF=cross
8307 else
8308 cat > conftest.$ac_ext <<EOF
8309 #line 8310 "configure"
8310 #include "confdefs.h"
8312 #define HAVE_NETMASK_IFCONF 1
8313 #define AUTOCONF 1
8314 #include "confdefs.h"
8315 #include "${srcdir-.}/lib/netmask.c"
8317 if { (eval echo configure:8318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
8318 then
8319 samba_cv_HAVE_NETMASK_IFCONF=yes
8320 else
8321 echo "configure: failed program was:" >&5
8322 cat conftest.$ac_ext >&5
8323 rm -fr conftest*
8324 samba_cv_HAVE_NETMASK_IFCONF=no
8326 rm -fr conftest*
8331 echo "$ac_t""$samba_cv_HAVE_NETMASK_IFCONF" 1>&6
8332 if test x"$samba_cv_HAVE_NETMASK_IFCONF" = x"yes"; then
8333 netmask=yes;cat >> confdefs.h <<\EOF
8334 #define HAVE_NETMASK_IFCONF 1
8339 if test $netmask = no; then
8340 echo $ac_n "checking for netmask ifreq""... $ac_c" 1>&6
8341 echo "configure:8342: checking for netmask ifreq" >&5
8342 if eval "test \"`echo '$''{'samba_cv_HAVE_NETMASK_IFREQ'+set}'`\" = set"; then
8343 echo $ac_n "(cached) $ac_c" 1>&6
8344 else
8346 if test "$cross_compiling" = yes; then
8347 samba_cv_HAVE_NETMASK_IFREQ=cross
8348 else
8349 cat > conftest.$ac_ext <<EOF
8350 #line 8351 "configure"
8351 #include "confdefs.h"
8353 #define HAVE_NETMASK_IFREQ 1
8354 #define AUTOCONF 1
8355 #include "confdefs.h"
8356 #include "${srcdir-.}/lib/netmask.c"
8358 if { (eval echo configure:8359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
8359 then
8360 samba_cv_HAVE_NETMASK_IFREQ=yes
8361 else
8362 echo "configure: failed program was:" >&5
8363 cat conftest.$ac_ext >&5
8364 rm -fr conftest*
8365 samba_cv_HAVE_NETMASK_IFREQ=no
8367 rm -fr conftest*
8372 echo "$ac_t""$samba_cv_HAVE_NETMASK_IFREQ" 1>&6
8373 if test x"$samba_cv_HAVE_NETMASK_IFREQ" = x"yes"; then
8374 netmask=yes;cat >> confdefs.h <<\EOF
8375 #define HAVE_NETMASK_IFREQ 1
8381 if test $netmask = no; then
8382 echo $ac_n "checking for netmask AIX""... $ac_c" 1>&6
8383 echo "configure:8384: checking for netmask AIX" >&5
8384 if eval "test \"`echo '$''{'samba_cv_HAVE_NETMASK_AIX'+set}'`\" = set"; then
8385 echo $ac_n "(cached) $ac_c" 1>&6
8386 else
8388 if test "$cross_compiling" = yes; then
8389 samba_cv_HAVE_NETMASK_AIX=cross
8390 else
8391 cat > conftest.$ac_ext <<EOF
8392 #line 8393 "configure"
8393 #include "confdefs.h"
8395 #define HAVE_NETMASK_AIX 1
8396 #define AUTOCONF 1
8397 #include "confdefs.h"
8398 #include "${srcdir-.}/lib/netmask.c"
8400 if { (eval echo configure:8401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
8401 then
8402 samba_cv_HAVE_NETMASK_AIX=yes
8403 else
8404 echo "configure: failed program was:" >&5
8405 cat conftest.$ac_ext >&5
8406 rm -fr conftest*
8407 samba_cv_HAVE_NETMASK_AIX=no
8409 rm -fr conftest*
8414 echo "$ac_t""$samba_cv_HAVE_NETMASK_AIX" 1>&6
8415 if test x"$samba_cv_HAVE_NETMASK_AIX" = x"yes"; then
8416 netmask=yes;cat >> confdefs.h <<\EOF
8417 #define HAVE_NETMASK_AIX 1
8423 echo $ac_n "checking for trapdoor seteuid""... $ac_c" 1>&6
8424 echo "configure:8425: checking for trapdoor seteuid" >&5
8425 if eval "test \"`echo '$''{'samba_cv_HAVE_TRAPDOOR_UID'+set}'`\" = set"; then
8426 echo $ac_n "(cached) $ac_c" 1>&6
8427 else
8429 if test "$cross_compiling" = yes; then
8431 else
8432 cat > conftest.$ac_ext <<EOF
8433 #line 8434 "configure"
8434 #include "confdefs.h"
8435 #include "${srcdir-.}/tests/trapdoor.c"
8437 if { (eval echo configure:8438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
8438 then
8439 samba_cv_HAVE_TRAPDOOR_UID=no
8440 else
8441 echo "configure: failed program was:" >&5
8442 cat conftest.$ac_ext >&5
8443 rm -fr conftest*
8444 samba_cv_HAVE_TRAPDOOR_UID=yes
8446 rm -fr conftest*
8451 echo "$ac_t""$samba_cv_HAVE_TRAPDOOR_UID" 1>&6
8452 if test x"$samba_cv_HAVE_TRAPDOOR_UID" = x"yes"; then
8453 cat >> confdefs.h <<\EOF
8454 #define HAVE_TRAPDOOR_UID 1
8459 echo $ac_n "checking for shared mmap""... $ac_c" 1>&6
8460 echo "configure:8461: checking for shared mmap" >&5
8461 if eval "test \"`echo '$''{'samba_cv_HAVE_SHARED_MMAP'+set}'`\" = set"; then
8462 echo $ac_n "(cached) $ac_c" 1>&6
8463 else
8465 if test "$cross_compiling" = yes; then
8466 samba_cv_HAVE_SHARED_MMAP=cross
8467 else
8468 cat > conftest.$ac_ext <<EOF
8469 #line 8470 "configure"
8470 #include "confdefs.h"
8471 #include "${srcdir-.}/tests/shared_mmap.c"
8473 if { (eval echo configure:8474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
8474 then
8475 samba_cv_HAVE_SHARED_MMAP=yes
8476 else
8477 echo "configure: failed program was:" >&5
8478 cat conftest.$ac_ext >&5
8479 rm -fr conftest*
8480 samba_cv_HAVE_SHARED_MMAP=no
8482 rm -fr conftest*
8487 echo "$ac_t""$samba_cv_HAVE_SHARED_MMAP" 1>&6
8488 if test x"$samba_cv_HAVE_SHARED_MMAP" = x"yes"; then
8489 cat >> confdefs.h <<\EOF
8490 #define HAVE_SHARED_MMAP 1
8493 cat >> confdefs.h <<\EOF
8494 #define HAVE_MMAP 1
8499 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
8500 echo "configure:8501: checking for ftruncate needs root" >&5
8501 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
8502 echo $ac_n "(cached) $ac_c" 1>&6
8503 else
8505 if test "$cross_compiling" = yes; then
8506 samba_cv_FTRUNCATE_NEEDS_ROOT=cross
8507 else
8508 cat > conftest.$ac_ext <<EOF
8509 #line 8510 "configure"
8510 #include "confdefs.h"
8511 #include "${srcdir-.}/tests/ftruncroot.c"
8513 if { (eval echo configure:8514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
8514 then
8515 samba_cv_FTRUNCATE_NEEDS_ROOT=yes
8516 else
8517 echo "configure: failed program was:" >&5
8518 cat conftest.$ac_ext >&5
8519 rm -fr conftest*
8520 samba_cv_FTRUNCATE_NEEDS_ROOT=no
8522 rm -fr conftest*
8527 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
8528 if test x"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x"yes"; then
8529 cat >> confdefs.h <<\EOF
8530 #define FTRUNCATE_NEEDS_ROOT 1
8535 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
8536 echo "configure:8537: checking for fcntl locking" >&5
8537 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
8538 echo $ac_n "(cached) $ac_c" 1>&6
8539 else
8541 if test "$cross_compiling" = yes; then
8542 samba_cv_HAVE_FCNTL_LOCK=cross
8543 else
8544 cat > conftest.$ac_ext <<EOF
8545 #line 8546 "configure"
8546 #include "confdefs.h"
8547 #include "${srcdir-.}/tests/fcntl_lock.c"
8549 if { (eval echo configure:8550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
8550 then
8551 samba_cv_HAVE_FCNTL_LOCK=yes
8552 else
8553 echo "configure: failed program was:" >&5
8554 cat conftest.$ac_ext >&5
8555 rm -fr conftest*
8556 samba_cv_HAVE_FCNTL_LOCK=no
8558 rm -fr conftest*
8563 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
8564 if test x"$samba_cv_HAVE_FCNTL_LOCK" = x"yes"; then
8565 cat >> confdefs.h <<\EOF
8566 #define HAVE_FCNTL_LOCK 1
8571 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
8572 echo "configure:8573: checking for 64 bit fcntl locking" >&5
8573 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
8574 echo $ac_n "(cached) $ac_c" 1>&6
8575 else
8577 if test "$cross_compiling" = yes; then
8578 samba_cv_HAVE_STRUCT_FLOCK64=cross
8579 else
8580 cat > conftest.$ac_ext <<EOF
8581 #line 8582 "configure"
8582 #include "confdefs.h"
8584 #if defined(HAVE_UNISTD_H)
8585 #include <unistd.h>
8586 #endif
8587 #include <stdio.h>
8588 #include <stdlib.h>
8590 #ifdef HAVE_FCNTL_H
8591 #include <fcntl.h>
8592 #endif
8594 #ifdef HAVE_SYS_FCNTL_H
8595 #include <sys/fcntl.h>
8596 #endif
8597 main() { struct flock64 fl64;
8598 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
8599 exit(0);
8600 #else
8601 exit(1);
8602 #endif
8605 if { (eval echo configure:8606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
8606 then
8607 samba_cv_HAVE_STRUCT_FLOCK64=yes
8608 else
8609 echo "configure: failed program was:" >&5
8610 cat conftest.$ac_ext >&5
8611 rm -fr conftest*
8612 samba_cv_HAVE_STRUCT_FLOCK64=no
8614 rm -fr conftest*
8619 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
8620 if test x"$samba_cv_HAVE_STRUCT_FLOCK64" = x"yes"; then
8621 cat >> confdefs.h <<\EOF
8622 #define HAVE_STRUCT_FLOCK64 1
8627 echo $ac_n "checking for sysv ipc""... $ac_c" 1>&6
8628 echo "configure:8629: checking for sysv ipc" >&5
8629 if eval "test \"`echo '$''{'samba_cv_HAVE_SYSV_IPC'+set}'`\" = set"; then
8630 echo $ac_n "(cached) $ac_c" 1>&6
8631 else
8633 if test "$cross_compiling" = yes; then
8634 samba_cv_HAVE_SYSV_IPC=cross
8635 else
8636 cat > conftest.$ac_ext <<EOF
8637 #line 8638 "configure"
8638 #include "confdefs.h"
8639 #include "${srcdir-.}/tests/sysv_ipc.c"
8641 if { (eval echo configure:8642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
8642 then
8643 samba_cv_HAVE_SYSV_IPC=yes
8644 else
8645 echo "configure: failed program was:" >&5
8646 cat conftest.$ac_ext >&5
8647 rm -fr conftest*
8648 samba_cv_HAVE_SYSV_IPC=no
8650 rm -fr conftest*
8655 echo "$ac_t""$samba_cv_HAVE_SYSV_IPC" 1>&6
8656 if test x"$samba_cv_HAVE_SYSV_IPC" = x"yes"; then
8657 cat >> confdefs.h <<\EOF
8658 #define HAVE_SYSV_IPC 1
8663 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
8664 echo "configure:8665: checking for a crypt that needs truncated salt" >&5
8665 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
8666 echo $ac_n "(cached) $ac_c" 1>&6
8667 else
8669 if test "$cross_compiling" = yes; then
8670 samba_cv_HAVE_TRUNCATED_SALT=cross
8671 else
8672 cat > conftest.$ac_ext <<EOF
8673 #line 8674 "configure"
8674 #include "confdefs.h"
8675 #include "${srcdir-.}/tests/crypttest.c"
8677 if { (eval echo configure:8678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
8678 then
8679 samba_cv_HAVE_TRUNCATED_SALT=no
8680 else
8681 echo "configure: failed program was:" >&5
8682 cat conftest.$ac_ext >&5
8683 rm -fr conftest*
8684 samba_cv_HAVE_TRUNCATED_SALT=yes
8686 rm -fr conftest*
8691 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
8692 if test x"$samba_cv_HAVE_TRUNCATED_SALT" = x"yes"; then
8693 cat >> confdefs.h <<\EOF
8694 #define HAVE_TRUNCATED_SALT 1
8699 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
8700 echo "configure:8701: checking for broken nisplus include files" >&5
8701 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
8702 echo $ac_n "(cached) $ac_c" 1>&6
8703 else
8705 cat > conftest.$ac_ext <<EOF
8706 #line 8707 "configure"
8707 #include "confdefs.h"
8708 #include <sys/acl.h>
8709 #if defined(HAVE_RPCSVC_NIS_H)
8710 #include <rpcsvc/nis.h>
8711 #endif
8712 int main() {
8713 return 0;
8714 ; return 0; }
8716 if { (eval echo configure:8717: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8717 rm -rf conftest*
8718 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=no
8719 else
8720 echo "configure: failed program was:" >&5
8721 cat conftest.$ac_ext >&5
8722 rm -rf conftest*
8723 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=yes
8725 rm -f conftest*
8728 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
8729 if test x"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x"yes"; then
8730 cat >> confdefs.h <<\EOF
8731 #define BROKEN_NISPLUS_INCLUDE_FILES 1
8737 #################################################
8738 # check for smbwrapper support
8739 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
8740 echo "configure:8741: checking whether to use smbwrapper" >&5
8741 # Check whether --with-smbwrapper or --without-smbwrapper was given.
8742 if test "${with_smbwrapper+set}" = set; then
8743 withval="$with_smbwrapper"
8744 case "$withval" in
8745 yes)
8746 echo "$ac_t""yes" 1>&6
8747 cat >> confdefs.h <<\EOF
8748 #define WITH_SMBWRAPPER 1
8751 WRAP="bin/smbsh bin/smbwrapper.so"
8753 if test x$ATTEMPT_WRAP32_BUILD = x; then
8754 WRAP32=""
8755 else
8756 WRAP32=bin/smbwrapper.32.so
8759 # Conditions under which smbwrapper should not be built.
8761 if test x$PICFLAG = x; then
8762 echo No support for PIC code - disabling smbwrapper and smbsh
8763 WRAP=""
8764 WRAP32=""
8765 elif test x$ac_cv_func_syscall = xno; then
8766 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
8767 WRAP=""
8768 WRAP32=""
8772 echo "$ac_t""no" 1>&6
8774 esac
8775 else
8776 echo "$ac_t""no" 1>&6
8781 #################################################
8782 # check for the AFS filesystem
8783 echo $ac_n "checking whether to use AFS""... $ac_c" 1>&6
8784 echo "configure:8785: checking whether to use AFS" >&5
8785 # Check whether --with-afs or --without-afs was given.
8786 if test "${with_afs+set}" = set; then
8787 withval="$with_afs"
8788 case "$withval" in
8789 yes)
8790 echo "$ac_t""yes" 1>&6
8791 cat >> confdefs.h <<\EOF
8792 #define WITH_AFS 1
8797 echo "$ac_t""no" 1>&6
8799 esac
8800 else
8801 echo "$ac_t""no" 1>&6
8807 #################################################
8808 # check for the DFS auth system
8809 echo $ac_n "checking whether to use DFS auth""... $ac_c" 1>&6
8810 echo "configure:8811: checking whether to use DFS auth" >&5
8811 # Check whether --with-dfs or --without-dfs was given.
8812 if test "${with_dfs+set}" = set; then
8813 withval="$with_dfs"
8814 case "$withval" in
8815 yes)
8816 echo "$ac_t""yes" 1>&6
8817 cat >> confdefs.h <<\EOF
8818 #define WITH_DFS 1
8823 echo "$ac_t""no" 1>&6
8825 esac
8826 else
8827 echo "$ac_t""no" 1>&6
8832 #################################################
8833 # check for Kerberos IV auth system
8834 echo $ac_n "checking whether to use Kerberos IV""... $ac_c" 1>&6
8835 echo "configure:8836: checking whether to use Kerberos IV" >&5
8836 # Check whether --with-krb4 or --without-krb4 was given.
8837 if test "${with_krb4+set}" = set; then
8838 withval="$with_krb4"
8839 echo "$ac_t""yes" 1>&6
8840 cat >> confdefs.h <<\EOF
8841 #define KRB4_AUTH 1
8844 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
8845 echo "configure:8846: checking for dn_expand in -lresolv" >&5
8846 ac_lib_var=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
8847 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8848 echo $ac_n "(cached) $ac_c" 1>&6
8849 else
8850 ac_save_LIBS="$LIBS"
8851 LIBS="-lresolv $LIBS"
8852 cat > conftest.$ac_ext <<EOF
8853 #line 8854 "configure"
8854 #include "confdefs.h"
8855 /* Override any gcc2 internal prototype to avoid an error. */
8856 /* We use char because int might match the return type of a gcc2
8857 builtin and then its argument prototype would still apply. */
8858 char dn_expand();
8860 int main() {
8861 dn_expand()
8862 ; return 0; }
8864 if { (eval echo configure:8865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8865 rm -rf conftest*
8866 eval "ac_cv_lib_$ac_lib_var=yes"
8867 else
8868 echo "configure: failed program was:" >&5
8869 cat conftest.$ac_ext >&5
8870 rm -rf conftest*
8871 eval "ac_cv_lib_$ac_lib_var=no"
8873 rm -f conftest*
8874 LIBS="$ac_save_LIBS"
8877 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8878 echo "$ac_t""yes" 1>&6
8879 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8880 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8881 cat >> confdefs.h <<EOF
8882 #define $ac_tr_lib 1
8885 LIBS="-lresolv $LIBS"
8887 else
8888 echo "$ac_t""no" 1>&6
8891 LIBS="$LIBS -lkrb -ldes"
8892 CFLAGS="$CFLAGS -I$withval/include"
8893 LDFLAGS="$LDFLAGS -L$withval/lib"
8894 else
8895 echo "$ac_t""no" 1>&6
8900 #################################################
8901 # check for Kerberos 5 auth system
8902 echo $ac_n "checking whether to use Kerberos 5""... $ac_c" 1>&6
8903 echo "configure:8904: checking whether to use Kerberos 5" >&5
8904 # Check whether --with-krb5 or --without-krb5 was given.
8905 if test "${with_krb5+set}" = set; then
8906 withval="$with_krb5"
8907 echo "$ac_t""yes" 1>&6
8908 cat >> confdefs.h <<\EOF
8909 #define KRB5_AUTH 1
8912 LIBS="$LIBS -ldes425 -lkrb5 -lcrypto -lcom_err"
8913 CFLAGS="$CFLAGS -I$withval/include"
8914 LDFLAGS="$LDFLAGS -L$withval/lib"
8915 else
8916 echo "$ac_t""no" 1>&6
8921 #################################################
8922 # check for automount support
8923 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
8924 echo "configure:8925: checking whether to use AUTOMOUNT" >&5
8925 # Check whether --with-automount or --without-automount was given.
8926 if test "${with_automount+set}" = set; then
8927 withval="$with_automount"
8928 case "$withval" in
8929 yes)
8930 echo "$ac_t""yes" 1>&6
8931 cat >> confdefs.h <<\EOF
8932 #define WITH_AUTOMOUNT 1
8937 echo "$ac_t""no" 1>&6
8939 esac
8940 else
8941 echo "$ac_t""no" 1>&6
8946 #################################################
8947 # check for smbmount support
8948 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
8949 echo "configure:8950: checking whether to use SMBMOUNT" >&5
8950 # Check whether --with-smbmount or --without-smbmount was given.
8951 if test "${with_smbmount+set}" = set; then
8952 withval="$with_smbmount"
8953 case "$withval" in
8954 yes)
8955 echo "$ac_t""yes" 1>&6
8956 cat >> confdefs.h <<\EOF
8957 #define WITH_SMBMOUNT 1
8960 MPROGS="bin/smbmount bin/smbmnt bin/smbumount"
8963 echo "$ac_t""no" 1>&6
8964 MPROGS=
8966 esac
8967 else
8968 echo "$ac_t""no" 1>&6
8969 MPROGS=
8974 #################################################
8975 # check for a LDAP password database
8976 echo $ac_n "checking whether to use LDAP password database""... $ac_c" 1>&6
8977 echo "configure:8978: checking whether to use LDAP password database" >&5
8978 # Check whether --with-ldap or --without-ldap was given.
8979 if test "${with_ldap+set}" = set; then
8980 withval="$with_ldap"
8981 case "$withval" in
8982 yes)
8983 echo "$ac_t""yes" 1>&6
8984 cat >> confdefs.h <<\EOF
8985 #define WITH_LDAP 1
8990 echo "$ac_t""no" 1>&6
8992 esac
8993 else
8994 echo "$ac_t""no" 1>&6
8999 #################################################
9000 # check for a NISPLUS password database
9001 echo $ac_n "checking whether to use NISPLUS password database""... $ac_c" 1>&6
9002 echo "configure:9003: checking whether to use NISPLUS password database" >&5
9003 # Check whether --with-nisplus or --without-nisplus was given.
9004 if test "${with_nisplus+set}" = set; then
9005 withval="$with_nisplus"
9006 case "$withval" in
9007 yes)
9008 echo "$ac_t""yes" 1>&6
9009 cat >> confdefs.h <<\EOF
9010 #define WITH_NISPLUS 1
9015 echo "$ac_t""no" 1>&6
9017 esac
9018 else
9019 echo "$ac_t""no" 1>&6
9024 #################################################
9025 # check for a NISPLUS_HOME support
9026 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
9027 echo "configure:9028: checking whether to use NISPLUS_HOME" >&5
9028 # Check whether --with-nisplus-home or --without-nisplus-home was given.
9029 if test "${with_nisplus_home+set}" = set; then
9030 withval="$with_nisplus_home"
9031 case "$withval" in
9032 yes)
9033 echo "$ac_t""yes" 1>&6
9034 cat >> confdefs.h <<\EOF
9035 #define WITH_NISPLUS_HOME 1
9040 echo "$ac_t""no" 1>&6
9042 esac
9043 else
9044 echo "$ac_t""no" 1>&6
9049 #################################################
9050 # check for the secure socket layer
9051 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
9052 echo "configure:9053: checking whether to use SSL" >&5
9053 # Check whether --with-ssl or --without-ssl was given.
9054 if test "${with_ssl+set}" = set; then
9055 withval="$with_ssl"
9056 case "$withval" in
9057 yes)
9058 echo "$ac_t""yes" 1>&6
9059 cat >> confdefs.h <<\EOF
9060 #define WITH_SSL 1
9063 withval="/usr/local/ssl" # default
9065 if test "${with_sslinc+set}" = set; then
9067 withval="$with_sslinc"
9068 case "$withval" in
9069 yes|no)
9070 echo "configure: warning: --with-sslinc called without argument - will use default" 1>&w
9071 CFLAGS="-I/usr/local/ssl/include $CFLAGS"
9072 LIBS="-lssl -lcrypto $LIBS"
9073 LDFLAGS="=L/usr/local/ssl/lib $LDFLAGS"
9076 CFLAGS="-I${withval}/include $CFLAGS"
9077 LIBS="-lssl -l crypto $LIBS"
9078 LDFLAGS="-L${withval}/lib $LDFLAGS"
9080 esac
9082 else
9084 CFLAGS="-I/usr/local/ssl/include $CFLAGS"
9085 LIBS="-lssl -lcrypto $LIBS"
9086 LDFLAGS="-L/usr/local/ssl/lib $LDFLAGS"
9090 if test ! -d ${withval}; then
9091 echo "configure: error: called with --with-ssl, but ssl base directory ${withval} does not exist or is not a directory. Aborting config" 1>&2
9092 exit 1
9095 CFLAGS="-DHAVE_CRYPT_DECL $CFLAGS" # Damn, SSLeay defines its own
9099 echo "$ac_t""no" 1>&6
9101 esac
9102 else
9103 echo "$ac_t""no" 1>&6
9108 #################################################
9109 # check for experimental mmap support
9110 echo $ac_n "checking whether to use MMAP""... $ac_c" 1>&6
9111 echo "configure:9112: checking whether to use MMAP" >&5
9112 # Check whether --with-mmap or --without-mmap was given.
9113 if test "${with_mmap+set}" = set; then
9114 withval="$with_mmap"
9115 case "$withval" in
9116 yes)
9117 echo "$ac_t""yes" 1>&6
9118 cat >> confdefs.h <<\EOF
9119 #define WITH_MMAP 1
9124 echo "$ac_t""no" 1>&6
9126 esac
9127 else
9128 echo "$ac_t""no" 1>&6
9133 #################################################
9134 # check for syslog logging
9135 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
9136 echo "configure:9137: checking whether to use syslog logging" >&5
9137 # Check whether --with-syslog or --without-syslog was given.
9138 if test "${with_syslog+set}" = set; then
9139 withval="$with_syslog"
9140 case "$withval" in
9141 yes)
9142 echo "$ac_t""yes" 1>&6
9143 cat >> confdefs.h <<\EOF
9144 #define WITH_SYSLOG 1
9149 echo "$ac_t""no" 1>&6
9151 esac
9152 else
9153 echo "$ac_t""no" 1>&6
9158 #################################################
9159 # check for experimental netatalk resource fork support
9160 echo $ac_n "checking whether to support netatalk""... $ac_c" 1>&6
9161 echo "configure:9162: checking whether to support netatalk" >&5
9162 # Check whether --with-netatalk or --without-netatalk was given.
9163 if test "${with_netatalk+set}" = set; then
9164 withval="$with_netatalk"
9165 case "$withval" in
9166 yes)
9167 echo "$ac_t""yes" 1>&6
9168 cat >> confdefs.h <<\EOF
9169 #define WITH_NETATALK 1
9174 echo "$ac_t""no" 1>&6
9176 esac
9177 else
9178 echo "$ac_t""no" 1>&6
9183 #################################################
9184 # check for experimental disk-quotas support
9185 QUOTAOBJS=noquotas.o
9187 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
9188 echo "configure:9189: checking whether to support disk-quotas" >&5
9189 # Check whether --with-quotas or --without-quotas was given.
9190 if test "${with_quotas+set}" = set; then
9191 withval="$with_quotas"
9192 case "$withval" in
9193 yes)
9194 echo "$ac_t""yes" 1>&6
9195 QUOTAOBJS=quotas.o
9198 echo "$ac_t""no" 1>&6
9200 esac
9201 else
9202 echo "$ac_t""no" 1>&6
9208 #################################################
9209 # set private directory location
9210 # Check whether --with-privatedir or --without-privatedir was given.
9211 if test "${with_privatedir+set}" = set; then
9212 withval="$with_privatedir"
9213 case "$withval" in
9214 yes|no)
9216 # Just in case anybody calls it without argument
9218 echo "configure: warning: --with-privatedir called without argument - will use default" 1>&2
9219 privatedir='${prefix}/private'
9222 privatedir="$withval"
9224 esac
9226 else
9227 privatedir='${prefix}/private'
9233 #################################################
9234 # set lock directory location
9235 # Check whether --with-lockdir or --without-lockdir was given.
9236 if test "${with_lockdir+set}" = set; then
9237 withval="$with_lockdir"
9238 case "$withval" in
9239 yes|no)
9241 # Just in case anybody calls it without argument
9243 echo "configure: warning: --with-lockdir called without argument - will use default" 1>&2
9244 lockdir='$(VARDIR)/locks'
9247 lockdir="$withval"
9249 esac
9251 else
9252 lockdir='$(VARDIR)/locks'
9258 #################################################
9259 # set SWAT directory location
9260 # Check whether --with-swatdir or --without-swatdir was given.
9261 if test "${with_swatdir+set}" = set; then
9262 withval="$with_swatdir"
9263 case "$withval" in
9264 yes|no)
9266 # Just in case anybody does it
9268 echo "configure: warning: --with-swatdir called without argument - will use default" 1>&2
9269 swatdir='${prefix}/swat'
9272 swatdir="$withval"
9274 esac
9276 else
9277 swatdir='${prefix}/swat'
9283 #################################################
9284 # these tests are taken from the GNU fileutils package
9285 echo "checking how to get filesystem space usage" 1>&6
9286 echo "configure:9287: checking how to get filesystem space usage" >&5
9287 space=no
9289 # Test for statvfs64.
9290 if test $space = no; then
9291 # SVR4
9292 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
9293 echo "configure:9294: checking statvfs64 function (SVR4)" >&5
9294 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
9295 echo $ac_n "(cached) $ac_c" 1>&6
9296 else
9297 if test "$cross_compiling" = yes; then
9298 fu_cv_sys_stat_statvfs64=cross
9299 else
9300 cat > conftest.$ac_ext <<EOF
9301 #line 9302 "configure"
9302 #include "confdefs.h"
9304 #if defined(HAVE_UNISTD_H)
9305 #include <unistd.h>
9306 #endif
9307 #include <sys/types.h>
9308 #include <sys/statvfs.h>
9309 main ()
9311 struct statvfs64 fsd;
9312 exit (statvfs64 (".", &fsd));
9315 if { (eval echo configure:9316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
9316 then
9317 fu_cv_sys_stat_statvfs64=yes
9318 else
9319 echo "configure: failed program was:" >&5
9320 cat conftest.$ac_ext >&5
9321 rm -fr conftest*
9322 fu_cv_sys_stat_statvfs64=no
9324 rm -fr conftest*
9329 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
9330 if test $fu_cv_sys_stat_statvfs64 = yes; then
9331 space=yes
9332 cat >> confdefs.h <<\EOF
9333 #define STAT_STATVFS64 1
9339 # Perform only the link test since it seems there are no variants of the
9340 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
9341 # because that got a false positive on SCO OSR5. Adding the declaration
9342 # of a `struct statvfs' causes this test to fail (as it should) on such
9343 # systems. That system is reported to work fine with STAT_STATFS4 which
9344 # is what it gets when this test fails.
9345 if test $space = no; then
9346 # SVR4
9347 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
9348 echo "configure:9349: checking statvfs function (SVR4)" >&5
9349 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
9350 echo $ac_n "(cached) $ac_c" 1>&6
9351 else
9352 cat > conftest.$ac_ext <<EOF
9353 #line 9354 "configure"
9354 #include "confdefs.h"
9355 #include <sys/types.h>
9356 #include <sys/statvfs.h>
9357 int main() {
9358 struct statvfs fsd; statvfs (0, &fsd);
9359 ; return 0; }
9361 if { (eval echo configure:9362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9362 rm -rf conftest*
9363 fu_cv_sys_stat_statvfs=yes
9364 else
9365 echo "configure: failed program was:" >&5
9366 cat conftest.$ac_ext >&5
9367 rm -rf conftest*
9368 fu_cv_sys_stat_statvfs=no
9370 rm -f conftest*
9373 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
9374 if test $fu_cv_sys_stat_statvfs = yes; then
9375 space=yes
9376 cat >> confdefs.h <<\EOF
9377 #define STAT_STATVFS 1
9383 if test $space = no; then
9384 # DEC Alpha running OSF/1
9385 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
9386 echo "configure:9387: checking for 3-argument statfs function (DEC OSF/1)" >&5
9387 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
9388 echo $ac_n "(cached) $ac_c" 1>&6
9389 else
9390 if test "$cross_compiling" = yes; then
9391 fu_cv_sys_stat_statfs3_osf1=no
9392 else
9393 cat > conftest.$ac_ext <<EOF
9394 #line 9395 "configure"
9395 #include "confdefs.h"
9397 #include <sys/param.h>
9398 #include <sys/types.h>
9399 #include <sys/mount.h>
9400 main ()
9402 struct statfs fsd;
9403 fsd.f_fsize = 0;
9404 exit (statfs (".", &fsd, sizeof (struct statfs)));
9407 if { (eval echo configure:9408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
9408 then
9409 fu_cv_sys_stat_statfs3_osf1=yes
9410 else
9411 echo "configure: failed program was:" >&5
9412 cat conftest.$ac_ext >&5
9413 rm -fr conftest*
9414 fu_cv_sys_stat_statfs3_osf1=no
9416 rm -fr conftest*
9421 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
9422 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
9423 space=yes
9424 cat >> confdefs.h <<\EOF
9425 #define STAT_STATFS3_OSF1 1
9431 if test $space = no; then
9432 # AIX
9433 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
9434 echo "configure:9435: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
9435 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
9436 echo $ac_n "(cached) $ac_c" 1>&6
9437 else
9438 if test "$cross_compiling" = yes; then
9439 fu_cv_sys_stat_statfs2_bsize=no
9440 else
9441 cat > conftest.$ac_ext <<EOF
9442 #line 9443 "configure"
9443 #include "confdefs.h"
9445 #ifdef HAVE_SYS_PARAM_H
9446 #include <sys/param.h>
9447 #endif
9448 #ifdef HAVE_SYS_MOUNT_H
9449 #include <sys/mount.h>
9450 #endif
9451 #ifdef HAVE_SYS_VFS_H
9452 #include <sys/vfs.h>
9453 #endif
9454 main ()
9456 struct statfs fsd;
9457 fsd.f_bsize = 0;
9458 exit (statfs (".", &fsd));
9461 if { (eval echo configure:9462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
9462 then
9463 fu_cv_sys_stat_statfs2_bsize=yes
9464 else
9465 echo "configure: failed program was:" >&5
9466 cat conftest.$ac_ext >&5
9467 rm -fr conftest*
9468 fu_cv_sys_stat_statfs2_bsize=no
9470 rm -fr conftest*
9475 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
9476 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
9477 space=yes
9478 cat >> confdefs.h <<\EOF
9479 #define STAT_STATFS2_BSIZE 1
9485 if test $space = no; then
9486 # SVR3
9487 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
9488 echo "configure:9489: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
9489 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
9490 echo $ac_n "(cached) $ac_c" 1>&6
9491 else
9492 if test "$cross_compiling" = yes; then
9493 fu_cv_sys_stat_statfs4=no
9494 else
9495 cat > conftest.$ac_ext <<EOF
9496 #line 9497 "configure"
9497 #include "confdefs.h"
9498 #include <sys/types.h>
9499 #include <sys/statfs.h>
9500 main ()
9502 struct statfs fsd;
9503 exit (statfs (".", &fsd, sizeof fsd, 0));
9506 if { (eval echo configure:9507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
9507 then
9508 fu_cv_sys_stat_statfs4=yes
9509 else
9510 echo "configure: failed program was:" >&5
9511 cat conftest.$ac_ext >&5
9512 rm -fr conftest*
9513 fu_cv_sys_stat_statfs4=no
9515 rm -fr conftest*
9520 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
9521 if test $fu_cv_sys_stat_statfs4 = yes; then
9522 space=yes
9523 cat >> confdefs.h <<\EOF
9524 #define STAT_STATFS4 1
9530 if test $space = no; then
9531 # 4.4BSD and NetBSD
9532 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
9533 echo "configure:9534: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
9534 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
9535 echo $ac_n "(cached) $ac_c" 1>&6
9536 else
9537 if test "$cross_compiling" = yes; then
9538 fu_cv_sys_stat_statfs2_fsize=no
9539 else
9540 cat > conftest.$ac_ext <<EOF
9541 #line 9542 "configure"
9542 #include "confdefs.h"
9543 #include <sys/types.h>
9544 #ifdef HAVE_SYS_PARAM_H
9545 #include <sys/param.h>
9546 #endif
9547 #ifdef HAVE_SYS_MOUNT_H
9548 #include <sys/mount.h>
9549 #endif
9550 main ()
9552 struct statfs fsd;
9553 fsd.f_fsize = 0;
9554 exit (statfs (".", &fsd));
9557 if { (eval echo configure:9558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
9558 then
9559 fu_cv_sys_stat_statfs2_fsize=yes
9560 else
9561 echo "configure: failed program was:" >&5
9562 cat conftest.$ac_ext >&5
9563 rm -fr conftest*
9564 fu_cv_sys_stat_statfs2_fsize=no
9566 rm -fr conftest*
9571 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
9572 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
9573 space=yes
9574 cat >> confdefs.h <<\EOF
9575 #define STAT_STATFS2_FSIZE 1
9581 if test $space = no; then
9582 # Ultrix
9583 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
9584 echo "configure:9585: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
9585 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
9586 echo $ac_n "(cached) $ac_c" 1>&6
9587 else
9588 if test "$cross_compiling" = yes; then
9589 fu_cv_sys_stat_fs_data=no
9590 else
9591 cat > conftest.$ac_ext <<EOF
9592 #line 9593 "configure"
9593 #include "confdefs.h"
9594 #include <sys/types.h>
9595 #ifdef HAVE_SYS_PARAM_H
9596 #include <sys/param.h>
9597 #endif
9598 #ifdef HAVE_SYS_MOUNT_H
9599 #include <sys/mount.h>
9600 #endif
9601 #ifdef HAVE_SYS_FS_TYPES_H
9602 #include <sys/fs_types.h>
9603 #endif
9604 main ()
9606 struct fs_data fsd;
9607 /* Ultrix's statfs returns 1 for success,
9608 0 for not mounted, -1 for failure. */
9609 exit (statfs (".", &fsd) != 1);
9612 if { (eval echo configure:9613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
9613 then
9614 fu_cv_sys_stat_fs_data=yes
9615 else
9616 echo "configure: failed program was:" >&5
9617 cat conftest.$ac_ext >&5
9618 rm -fr conftest*
9619 fu_cv_sys_stat_fs_data=no
9621 rm -fr conftest*
9626 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
9627 if test $fu_cv_sys_stat_fs_data = yes; then
9628 space=yes
9629 cat >> confdefs.h <<\EOF
9630 #define STAT_STATFS2_FS_DATA 1
9637 # As a gating factor for large file support, in order to
9638 # use <4GB files we must have the following minimal support
9639 # available.
9640 # long long, and a 64 bit off_t or off64_t.
9641 # If we don't have all of these then disable large
9642 # file support.
9644 echo "checking if large file support can be enabled"
9645 cat > conftest.$ac_ext <<EOF
9646 #line 9647 "configure"
9647 #include "confdefs.h"
9649 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
9650 #include <sys/types.h>
9651 #else
9652 __COMPILE_ERROR_
9653 #endif
9655 int main() {
9656 int i
9657 ; return 0; }
9659 if { (eval echo configure:9660: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9660 rm -rf conftest*
9661 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=yes
9662 else
9663 echo "configure: failed program was:" >&5
9664 cat conftest.$ac_ext >&5
9665 rm -rf conftest*
9666 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=no
9668 rm -f conftest*
9669 if test x"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x"yes"; then
9670 echo "yes"
9671 cat >> confdefs.h <<\EOF
9672 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
9675 else
9676 echo "no"
9679 echo "checking configure summary"
9680 if test "$cross_compiling" = yes; then
9682 else
9683 cat > conftest.$ac_ext <<EOF
9684 #line 9685 "configure"
9685 #include "confdefs.h"
9686 #include "${srcdir-.}/tests/summary.c"
9688 if { (eval echo configure:9689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
9689 then
9690 echo "configure OK";
9691 else
9692 echo "configure: failed program was:" >&5
9693 cat conftest.$ac_ext >&5
9694 rm -fr conftest*
9695 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }
9697 rm -fr conftest*
9701 builddir=`pwd`
9704 trap '' 1 2 15
9705 cat > confcache <<\EOF
9706 # This file is a shell script that caches the results of configure
9707 # tests run on this system so they can be shared between configure
9708 # scripts and configure runs. It is not useful on other systems.
9709 # If it contains results you don't want to keep, you may remove or edit it.
9711 # By default, configure uses ./config.cache as the cache file,
9712 # creating it if it does not exist already. You can give configure
9713 # the --cache-file=FILE option to use a different cache file; that is
9714 # what configure does when it calls configure scripts in
9715 # subdirectories, so they share the cache.
9716 # Giving --cache-file=/dev/null disables caching, for debugging configure.
9717 # config.status only pays attention to the cache file if you give it the
9718 # --recheck option to rerun configure.
9721 # The following way of writing the cache mishandles newlines in values,
9722 # but we know of no workaround that is simple, portable, and efficient.
9723 # So, don't put newlines in cache variables' values.
9724 # Ultrix sh set writes to stderr and can't be redirected directly,
9725 # and sets the high bit in the cache file unless we assign to the vars.
9726 (set) 2>&1 |
9727 case `(ac_space=' '; set) 2>&1` in
9728 *ac_space=\ *)
9729 # `set' does not quote correctly, so add quotes (double-quote substitution
9730 # turns \\\\ into \\, and sed turns \\ into \).
9731 sed -n \
9732 -e "s/'/'\\\\''/g" \
9733 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9736 # `set' quotes correctly as required by POSIX, so do not add quotes.
9737 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9739 esac >> confcache
9740 if cmp -s $cache_file confcache; then
9742 else
9743 if test -w $cache_file; then
9744 echo "updating cache $cache_file"
9745 cat confcache > $cache_file
9746 else
9747 echo "not updating unwritable cache $cache_file"
9750 rm -f confcache
9752 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
9754 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9755 # Let make expand exec_prefix.
9756 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9758 # Any assignment to VPATH causes Sun make to only execute
9759 # the first set of double-colon rules, so remove it if not needed.
9760 # If there is a colon in the path, we need to keep it.
9761 if test "x$srcdir" = x.; then
9762 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
9765 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
9767 DEFS=-DHAVE_CONFIG_H
9769 # Without the "./", some shells look in PATH for config.status.
9770 : ${CONFIG_STATUS=./config.status}
9772 echo creating $CONFIG_STATUS
9773 rm -f $CONFIG_STATUS
9774 cat > $CONFIG_STATUS <<EOF
9775 #! /bin/sh
9776 # Generated automatically by configure.
9777 # Run this file to recreate the current configuration.
9778 # This directory was configured as follows,
9779 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9781 # $0 $ac_configure_args
9783 # Compiler output produced by configure, useful for debugging
9784 # configure, is in ./config.log if it exists.
9786 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
9787 for ac_option
9789 case "\$ac_option" in
9790 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9791 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
9792 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
9793 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
9794 echo "$CONFIG_STATUS generated by autoconf version 2.12"
9795 exit 0 ;;
9796 -help | --help | --hel | --he | --h)
9797 echo "\$ac_cs_usage"; exit 0 ;;
9798 *) echo "\$ac_cs_usage"; exit 1 ;;
9799 esac
9800 done
9802 ac_given_srcdir=$srcdir
9803 ac_given_INSTALL="$INSTALL"
9805 trap 'rm -fr `echo "include/stamp-h Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
9807 cat >> $CONFIG_STATUS <<EOF
9809 # Protect against being on the right side of a sed subst in config.status.
9810 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
9811 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
9812 $ac_vpsub
9813 $extrasub
9814 s%@CFLAGS@%$CFLAGS%g
9815 s%@CPPFLAGS@%$CPPFLAGS%g
9816 s%@CXXFLAGS@%$CXXFLAGS%g
9817 s%@DEFS@%$DEFS%g
9818 s%@LDFLAGS@%$LDFLAGS%g
9819 s%@LIBS@%$LIBS%g
9820 s%@exec_prefix@%$exec_prefix%g
9821 s%@prefix@%$prefix%g
9822 s%@program_transform_name@%$program_transform_name%g
9823 s%@bindir@%$bindir%g
9824 s%@sbindir@%$sbindir%g
9825 s%@libexecdir@%$libexecdir%g
9826 s%@datadir@%$datadir%g
9827 s%@sysconfdir@%$sysconfdir%g
9828 s%@sharedstatedir@%$sharedstatedir%g
9829 s%@localstatedir@%$localstatedir%g
9830 s%@libdir@%$libdir%g
9831 s%@includedir@%$includedir%g
9832 s%@oldincludedir@%$oldincludedir%g
9833 s%@infodir@%$infodir%g
9834 s%@mandir@%$mandir%g
9835 s%@SHELL@%$SHELL%g
9836 s%@RUNPROG@%$RUNPROG%g
9837 s%@MPROGS@%$MPROGS%g
9838 s%@LDSHFLAGS@%$LDSHFLAGS%g
9839 s%@HOST_OS@%$HOST_OS%g
9840 s%@WRAP@%$WRAP%g
9841 s%@WRAP32@%$WRAP32%g
9842 s%@PICFLAG@%$PICFLAG%g
9843 s%@CC@%$CC%g
9844 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
9845 s%@INSTALL_DATA@%$INSTALL_DATA%g
9846 s%@AWK@%$AWK%g
9847 s%@BROKEN_CC@%$BROKEN_CC%g
9848 s%@host@%$host%g
9849 s%@host_alias@%$host_alias%g
9850 s%@host_cpu@%$host_cpu%g
9851 s%@host_vendor@%$host_vendor%g
9852 s%@host_os@%$host_os%g
9853 s%@target@%$target%g
9854 s%@target_alias@%$target_alias%g
9855 s%@target_cpu@%$target_cpu%g
9856 s%@target_vendor@%$target_vendor%g
9857 s%@target_os@%$target_os%g
9858 s%@build@%$build%g
9859 s%@build_alias@%$build_alias%g
9860 s%@build_cpu@%$build_cpu%g
9861 s%@build_vendor@%$build_vendor%g
9862 s%@build_os@%$build_os%g
9863 s%@MAINT@%$MAINT%g
9864 s%@AUTOCONF@%$AUTOCONF%g
9865 s%@AUTOHEADER@%$AUTOHEADER%g
9866 s%@CPP@%$CPP%g
9867 s%@LIBOBJS@%$LIBOBJS%g
9868 s%@ROFF@%$ROFF%g
9869 s%@QUOTAOBJS@%$QUOTAOBJS%g
9870 s%@privatedir@%$privatedir%g
9871 s%@lockdir@%$lockdir%g
9872 s%@swatdir@%$swatdir%g
9873 s%@builddir@%$builddir%g
9875 CEOF
9878 cat >> $CONFIG_STATUS <<\EOF
9880 # Split the substitutions into bite-sized pieces for seds with
9881 # small command number limits, like on Digital OSF/1 and HP-UX.
9882 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
9883 ac_file=1 # Number of current file.
9884 ac_beg=1 # First line for current file.
9885 ac_end=$ac_max_sed_cmds # Line after last line for current file.
9886 ac_more_lines=:
9887 ac_sed_cmds=""
9888 while $ac_more_lines; do
9889 if test $ac_beg -gt 1; then
9890 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
9891 else
9892 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
9894 if test ! -s conftest.s$ac_file; then
9895 ac_more_lines=false
9896 rm -f conftest.s$ac_file
9897 else
9898 if test -z "$ac_sed_cmds"; then
9899 ac_sed_cmds="sed -f conftest.s$ac_file"
9900 else
9901 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
9903 ac_file=`expr $ac_file + 1`
9904 ac_beg=$ac_end
9905 ac_end=`expr $ac_end + $ac_max_sed_cmds`
9907 done
9908 if test -z "$ac_sed_cmds"; then
9909 ac_sed_cmds=cat
9913 cat >> $CONFIG_STATUS <<EOF
9915 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile"}
9917 cat >> $CONFIG_STATUS <<\EOF
9918 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
9919 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9920 case "$ac_file" in
9921 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9922 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9923 *) ac_file_in="${ac_file}.in" ;;
9924 esac
9926 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
9928 # Remove last slash and all that follows it. Not all systems have dirname.
9929 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9930 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9931 # The file is in a subdirectory.
9932 test ! -d "$ac_dir" && mkdir "$ac_dir"
9933 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
9934 # A "../" for each directory in $ac_dir_suffix.
9935 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
9936 else
9937 ac_dir_suffix= ac_dots=
9940 case "$ac_given_srcdir" in
9941 .) srcdir=.
9942 if test -z "$ac_dots"; then top_srcdir=.
9943 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
9944 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
9945 *) # Relative path.
9946 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
9947 top_srcdir="$ac_dots$ac_given_srcdir" ;;
9948 esac
9950 case "$ac_given_INSTALL" in
9951 [/$]*) INSTALL="$ac_given_INSTALL" ;;
9952 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
9953 esac
9955 echo creating "$ac_file"
9956 rm -f "$ac_file"
9957 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
9958 case "$ac_file" in
9959 *Makefile*) ac_comsub="1i\\
9960 # $configure_input" ;;
9961 *) ac_comsub= ;;
9962 esac
9964 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9965 sed -e "$ac_comsub
9966 s%@configure_input@%$configure_input%g
9967 s%@srcdir@%$srcdir%g
9968 s%@top_srcdir@%$top_srcdir%g
9969 s%@INSTALL@%$INSTALL%g
9970 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
9971 fi; done
9972 rm -f conftest.s*
9974 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9975 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9977 # ac_d sets the value in "#define NAME VALUE" lines.
9978 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9979 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
9980 ac_dC='\3'
9981 ac_dD='%g'
9982 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9983 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9984 ac_uB='\([ ]\)%\1#\2define\3'
9985 ac_uC=' '
9986 ac_uD='\4%g'
9987 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9988 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9989 ac_eB='$%\1#\2define\3'
9990 ac_eC=' '
9991 ac_eD='%g'
9993 if test "${CONFIG_HEADERS+set}" != set; then
9995 cat >> $CONFIG_STATUS <<EOF
9996 CONFIG_HEADERS="include/config.h"
9998 cat >> $CONFIG_STATUS <<\EOF
10000 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
10001 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10002 case "$ac_file" in
10003 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
10004 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10005 *) ac_file_in="${ac_file}.in" ;;
10006 esac
10008 echo creating $ac_file
10010 rm -f conftest.frag conftest.in conftest.out
10011 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
10012 cat $ac_file_inputs > conftest.in
10016 # Transform confdefs.h into a sed script conftest.vals that substitutes
10017 # the proper values into config.h.in to produce config.h. And first:
10018 # Protect against being on the right side of a sed subst in config.status.
10019 # Protect against being in an unquoted here document in config.status.
10020 rm -f conftest.vals
10021 cat > conftest.hdr <<\EOF
10022 s/[\\&%]/\\&/g
10023 s%[\\$`]%\\&%g
10024 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
10025 s%ac_d%ac_u%gp
10026 s%ac_u%ac_e%gp
10028 sed -n -f conftest.hdr confdefs.h > conftest.vals
10029 rm -f conftest.hdr
10031 # This sed command replaces #undef with comments. This is necessary, for
10032 # example, in the case of _POSIX_SOURCE, which is predefined and required
10033 # on some systems where configure will not decide to define it.
10034 cat >> conftest.vals <<\EOF
10035 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
10038 # Break up conftest.vals because some shells have a limit on
10039 # the size of here documents, and old seds have small limits too.
10041 rm -f conftest.tail
10042 while :
10044 ac_lines=`grep -c . conftest.vals`
10045 # grep -c gives empty output for an empty file on some AIX systems.
10046 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
10047 # Write a limited-size here document to conftest.frag.
10048 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
10049 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10050 echo 'CEOF
10051 sed -f conftest.frag conftest.in > conftest.out
10052 rm -f conftest.in
10053 mv conftest.out conftest.in
10054 ' >> $CONFIG_STATUS
10055 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
10056 rm -f conftest.vals
10057 mv conftest.tail conftest.vals
10058 done
10059 rm -f conftest.vals
10061 cat >> $CONFIG_STATUS <<\EOF
10062 rm -f conftest.frag conftest.h
10063 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
10064 cat conftest.in >> conftest.h
10065 rm -f conftest.in
10066 if cmp -s $ac_file conftest.h 2>/dev/null; then
10067 echo "$ac_file is unchanged"
10068 rm -f conftest.h
10069 else
10070 # Remove last slash and all that follows it. Not all systems have dirname.
10071 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10072 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
10073 # The file is in a subdirectory.
10074 test ! -d "$ac_dir" && mkdir "$ac_dir"
10076 rm -f $ac_file
10077 mv conftest.h $ac_file
10079 fi; done
10082 cat >> $CONFIG_STATUS <<EOF
10085 cat >> $CONFIG_STATUS <<\EOF
10087 exit 0
10089 chmod +x $CONFIG_STATUS
10090 rm -fr confdefs* $ac_clean_files
10091 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1