sync with SAMBA_2_2
[Samba/gbeck.git] / source / configure
bloba47dd8cbbbb5864bedafba326c97212701dc94e3
1 #! /bin/sh
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_default_prefix=/usr/local/samba
15 ac_help="$ac_help
16 --enable-debug turn on debugging [default=no]"
17 ac_help="$ac_help
18 --enable-shared[=PKGS] build shared libraries [default=yes]"
19 ac_help="$ac_help
20 --enable-static[=PKGS] build static libraries [default=yes]"
21 ac_help="$ac_help
22 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
23 ac_help="$ac_help
24 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
25 ac_help="$ac_help
26 --disable-libtool-lock avoid locking (might break parallel builds)"
27 ac_help="$ac_help
28 --with-codepagedir=DIR Where to put codepage files (\$libdir/codepages)"
29 ac_help="$ac_help
30 --with-readline[=DIR] Look for readline include/libs in DIR
31 --without-readline Don't include readline support"
32 ac_help="$ac_help
33 --with-smbwrapper Include SMB wrapper support
34 --without-smbwrapper Don't include SMB wrapper support (default)"
35 ac_help="$ac_help
36 --with-afs Include AFS support
37 --without-afs Don't include AFS support (default)"
38 ac_help="$ac_help
39 --with-dfs Include DFS support
40 --without-dfs Don't include DFS support (default)"
41 ac_help="$ac_help
42 --with-krb4=base-dir Include Kerberos IV support
43 --without-krb4 Don't include Kerberos IV support (default)"
44 ac_help="$ac_help
45 --with-krb5=base-dir Include Kerberos 5 support
46 --without-krb5 Don't include Kerberos 5 support (default)"
47 ac_help="$ac_help
48 --with-automount Include AUTOMOUNT support
49 --without-automount Don't include AUTOMOUNT support (default)"
50 ac_help="$ac_help
51 --with-smbmount Include SMBMOUNT (Linux only) support
52 --without-smbmount Don't include SMBMOUNT support (default)"
53 ac_help="$ac_help
54 --with-pam Include PAM password database support
55 --without-pam Don't include PAM password database support (default)"
56 ac_help="$ac_help
57 --with-pam_smbpass Include the smbpass PAM module
58 --without-pam_smbpass Don't include the smbpass PAM module (default)"
59 ac_help="$ac_help
60 --with-tdbsam Include experimental TDB password database
61 --without-tdbsam Don't include experimental TDB password database (default)"
62 ac_help="$ac_help
63 --with-ldap Include LDAP support
64 --without-ldap Don't include LDAP support (default)"
65 ac_help="$ac_help
66 --with-nisplus Include NISPLUS password database support
67 --without-nisplus Don't include NISPLUS password database support (default)"
68 ac_help="$ac_help
69 --with-nisplus-home Include NISPLUS_HOME support
70 --without-nisplus-home Don't include NISPLUS_HOME support (default)"
71 ac_help="$ac_help
72 --with-ssl Include SSL support
73 --without-ssl Don't include SSL support (default)
74 --with-sslinc=DIR Where the SSL includes are (defaults to /usr/local/ssl)"
75 ac_help="$ac_help
76 --with-syslog Include experimental SYSLOG support
77 --without-syslog Don't include SYSLOG support (default)"
78 ac_help="$ac_help
79 --with-profile Include profile support
80 --without-profile Don't include profile support (default)"
81 ac_help="$ac_help
82 --with-netatalk Include experimental Netatalk support
83 --without-netatalk Don't include experimental Netatalk support (default)"
84 ac_help="$ac_help
85 --with-quotas Include experimental disk-quota support
86 --without-quotas Don't include experimental disk-quota support (default)"
87 ac_help="$ac_help
88 --with-utmp Include experimental utmp accounting
89 --without-utmp Don't include experimental utmp accounting (default)"
90 ac_help="$ac_help
91 --with-msdfs Include MS Dfs support
92 --without-msdfs Don't include MS Dfs support (default)"
93 ac_help="$ac_help
94 --with-privatedir=DIR Where to put smbpasswd ($ac_default_prefix/private)"
95 ac_help="$ac_help
96 --with-lockdir=DIR Where to put lock files ($ac_default_prefix/var/locks)"
97 ac_help="$ac_help
98 --with-swatdir=DIR Where to put SWAT files ($ac_default_prefix/swat)"
99 ac_help="$ac_help
100 --with-spinlocks use spin locks instead of fcntl locks "
101 ac_help="$ac_help
102 --with-acl-support Include ACL support
103 --without-acl-support Don't include ACL support (default)"
104 ac_help="$ac_help
105 --with-winbind Build winbind library (default, if supported by OS)
106 --without-winbind Don't build winbind library"
108 # Initialize some variables set by options.
109 # The variables have the same names as the options, with
110 # dashes changed to underlines.
111 build=NONE
112 cache_file=./config.cache
113 exec_prefix=NONE
114 host=NONE
115 no_create=
116 nonopt=NONE
117 no_recursion=
118 prefix=NONE
119 program_prefix=NONE
120 program_suffix=NONE
121 program_transform_name=s,x,x,
122 silent=
123 site=
124 srcdir=
125 target=NONE
126 verbose=
127 x_includes=NONE
128 x_libraries=NONE
129 bindir='${exec_prefix}/bin'
130 sbindir='${exec_prefix}/sbin'
131 libexecdir='${exec_prefix}/libexec'
132 datadir='${prefix}/share'
133 sysconfdir='${prefix}/etc'
134 sharedstatedir='${prefix}/com'
135 localstatedir='${prefix}/var'
136 libdir='${exec_prefix}/lib'
137 includedir='${prefix}/include'
138 oldincludedir='/usr/include'
139 infodir='${prefix}/info'
140 mandir='${prefix}/man'
142 # Initialize some other variables.
143 subdirs=
144 MFLAGS= MAKEFLAGS=
145 SHELL=${CONFIG_SHELL-/bin/sh}
146 # Maximum number of lines to put in a shell here document.
147 ac_max_here_lines=12
149 ac_prev=
150 for ac_option
153 # If the previous option needs an argument, assign it.
154 if test -n "$ac_prev"; then
155 eval "$ac_prev=\$ac_option"
156 ac_prev=
157 continue
160 case "$ac_option" in
161 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
162 *) ac_optarg= ;;
163 esac
165 # Accept the important Cygnus configure options, so we can diagnose typos.
167 case "$ac_option" in
169 -bindir | --bindir | --bindi | --bind | --bin | --bi)
170 ac_prev=bindir ;;
171 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
172 bindir="$ac_optarg" ;;
174 -build | --build | --buil | --bui | --bu)
175 ac_prev=build ;;
176 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
177 build="$ac_optarg" ;;
179 -cache-file | --cache-file | --cache-fil | --cache-fi \
180 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
181 ac_prev=cache_file ;;
182 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
183 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
184 cache_file="$ac_optarg" ;;
186 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
187 ac_prev=datadir ;;
188 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
189 | --da=*)
190 datadir="$ac_optarg" ;;
192 -disable-* | --disable-*)
193 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
194 # Reject names that are not valid shell variable names.
195 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
196 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
198 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
199 eval "enable_${ac_feature}=no" ;;
201 -enable-* | --enable-*)
202 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
203 # Reject names that are not valid shell variable names.
204 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
205 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
207 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
208 case "$ac_option" in
209 *=*) ;;
210 *) ac_optarg=yes ;;
211 esac
212 eval "enable_${ac_feature}='$ac_optarg'" ;;
214 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
215 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
216 | --exec | --exe | --ex)
217 ac_prev=exec_prefix ;;
218 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
219 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
220 | --exec=* | --exe=* | --ex=*)
221 exec_prefix="$ac_optarg" ;;
223 -gas | --gas | --ga | --g)
224 # Obsolete; use --with-gas.
225 with_gas=yes ;;
227 -help | --help | --hel | --he)
228 # Omit some internal or obsolete options to make the list less imposing.
229 # This message is too long to be a string in the A/UX 3.1 sh.
230 cat << EOF
231 Usage: configure [options] [host]
232 Options: [defaults in brackets after descriptions]
233 Configuration:
234 --cache-file=FILE cache test results in FILE
235 --help print this message
236 --no-create do not create output files
237 --quiet, --silent do not print \`checking...' messages
238 --version print the version of autoconf that created configure
239 Directory and file names:
240 --prefix=PREFIX install architecture-independent files in PREFIX
241 [$ac_default_prefix]
242 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
243 [same as prefix]
244 --bindir=DIR user executables in DIR [EPREFIX/bin]
245 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
246 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
247 --datadir=DIR read-only architecture-independent data in DIR
248 [PREFIX/share]
249 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
250 --sharedstatedir=DIR modifiable architecture-independent data in DIR
251 [PREFIX/com]
252 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
253 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
254 --includedir=DIR C header files in DIR [PREFIX/include]
255 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
256 --infodir=DIR info documentation in DIR [PREFIX/info]
257 --mandir=DIR man documentation in DIR [PREFIX/man]
258 --srcdir=DIR find the sources in DIR [configure dir or ..]
259 --program-prefix=PREFIX prepend PREFIX to installed program names
260 --program-suffix=SUFFIX append SUFFIX to installed program names
261 --program-transform-name=PROGRAM
262 run sed PROGRAM on installed program names
264 cat << EOF
265 Host type:
266 --build=BUILD configure for building on BUILD [BUILD=HOST]
267 --host=HOST configure for HOST [guessed]
268 --target=TARGET configure for TARGET [TARGET=HOST]
269 Features and packages:
270 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
271 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
272 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
273 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
274 --x-includes=DIR X include files are in DIR
275 --x-libraries=DIR X library files are in DIR
277 if test -n "$ac_help"; then
278 echo "--enable and --with options recognized:$ac_help"
280 exit 0 ;;
282 -host | --host | --hos | --ho)
283 ac_prev=host ;;
284 -host=* | --host=* | --hos=* | --ho=*)
285 host="$ac_optarg" ;;
287 -includedir | --includedir | --includedi | --included | --include \
288 | --includ | --inclu | --incl | --inc)
289 ac_prev=includedir ;;
290 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
291 | --includ=* | --inclu=* | --incl=* | --inc=*)
292 includedir="$ac_optarg" ;;
294 -infodir | --infodir | --infodi | --infod | --info | --inf)
295 ac_prev=infodir ;;
296 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
297 infodir="$ac_optarg" ;;
299 -libdir | --libdir | --libdi | --libd)
300 ac_prev=libdir ;;
301 -libdir=* | --libdir=* | --libdi=* | --libd=*)
302 libdir="$ac_optarg" ;;
304 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
305 | --libexe | --libex | --libe)
306 ac_prev=libexecdir ;;
307 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
308 | --libexe=* | --libex=* | --libe=*)
309 libexecdir="$ac_optarg" ;;
311 -localstatedir | --localstatedir | --localstatedi | --localstated \
312 | --localstate | --localstat | --localsta | --localst \
313 | --locals | --local | --loca | --loc | --lo)
314 ac_prev=localstatedir ;;
315 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
316 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
317 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
318 localstatedir="$ac_optarg" ;;
320 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
321 ac_prev=mandir ;;
322 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
323 mandir="$ac_optarg" ;;
325 -nfp | --nfp | --nf)
326 # Obsolete; use --without-fp.
327 with_fp=no ;;
329 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
330 | --no-cr | --no-c)
331 no_create=yes ;;
333 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
334 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
335 no_recursion=yes ;;
337 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
338 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
339 | --oldin | --oldi | --old | --ol | --o)
340 ac_prev=oldincludedir ;;
341 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
342 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
343 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
344 oldincludedir="$ac_optarg" ;;
346 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
347 ac_prev=prefix ;;
348 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
349 prefix="$ac_optarg" ;;
351 -program-prefix | --program-prefix | --program-prefi | --program-pref \
352 | --program-pre | --program-pr | --program-p)
353 ac_prev=program_prefix ;;
354 -program-prefix=* | --program-prefix=* | --program-prefi=* \
355 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
356 program_prefix="$ac_optarg" ;;
358 -program-suffix | --program-suffix | --program-suffi | --program-suff \
359 | --program-suf | --program-su | --program-s)
360 ac_prev=program_suffix ;;
361 -program-suffix=* | --program-suffix=* | --program-suffi=* \
362 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
363 program_suffix="$ac_optarg" ;;
365 -program-transform-name | --program-transform-name \
366 | --program-transform-nam | --program-transform-na \
367 | --program-transform-n | --program-transform- \
368 | --program-transform | --program-transfor \
369 | --program-transfo | --program-transf \
370 | --program-trans | --program-tran \
371 | --progr-tra | --program-tr | --program-t)
372 ac_prev=program_transform_name ;;
373 -program-transform-name=* | --program-transform-name=* \
374 | --program-transform-nam=* | --program-transform-na=* \
375 | --program-transform-n=* | --program-transform-=* \
376 | --program-transform=* | --program-transfor=* \
377 | --program-transfo=* | --program-transf=* \
378 | --program-trans=* | --program-tran=* \
379 | --progr-tra=* | --program-tr=* | --program-t=*)
380 program_transform_name="$ac_optarg" ;;
382 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
383 | -silent | --silent | --silen | --sile | --sil)
384 silent=yes ;;
386 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
387 ac_prev=sbindir ;;
388 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
389 | --sbi=* | --sb=*)
390 sbindir="$ac_optarg" ;;
392 -sharedstatedir | --sharedstatedir | --sharedstatedi \
393 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
394 | --sharedst | --shareds | --shared | --share | --shar \
395 | --sha | --sh)
396 ac_prev=sharedstatedir ;;
397 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
398 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
399 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
400 | --sha=* | --sh=*)
401 sharedstatedir="$ac_optarg" ;;
403 -site | --site | --sit)
404 ac_prev=site ;;
405 -site=* | --site=* | --sit=*)
406 site="$ac_optarg" ;;
408 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
409 ac_prev=srcdir ;;
410 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
411 srcdir="$ac_optarg" ;;
413 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
414 | --syscon | --sysco | --sysc | --sys | --sy)
415 ac_prev=sysconfdir ;;
416 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
417 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
418 sysconfdir="$ac_optarg" ;;
420 -target | --target | --targe | --targ | --tar | --ta | --t)
421 ac_prev=target ;;
422 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
423 target="$ac_optarg" ;;
425 -v | -verbose | --verbose | --verbos | --verbo | --verb)
426 verbose=yes ;;
428 -version | --version | --versio | --versi | --vers)
429 echo "configure generated by autoconf version 2.13"
430 exit 0 ;;
432 -with-* | --with-*)
433 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
434 # Reject names that are not valid shell variable names.
435 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
436 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
438 ac_package=`echo $ac_package| sed 's/-/_/g'`
439 case "$ac_option" in
440 *=*) ;;
441 *) ac_optarg=yes ;;
442 esac
443 eval "with_${ac_package}='$ac_optarg'" ;;
445 -without-* | --without-*)
446 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
447 # Reject names that are not valid shell variable names.
448 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
449 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
451 ac_package=`echo $ac_package| sed 's/-/_/g'`
452 eval "with_${ac_package}=no" ;;
454 --x)
455 # Obsolete; use --with-x.
456 with_x=yes ;;
458 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
459 | --x-incl | --x-inc | --x-in | --x-i)
460 ac_prev=x_includes ;;
461 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
462 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
463 x_includes="$ac_optarg" ;;
465 -x-libraries | --x-libraries | --x-librarie | --x-librari \
466 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
467 ac_prev=x_libraries ;;
468 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
469 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
470 x_libraries="$ac_optarg" ;;
472 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
476 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
477 echo "configure: warning: $ac_option: invalid host type" 1>&2
479 if test "x$nonopt" != xNONE; then
480 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
482 nonopt="$ac_option"
485 esac
486 done
488 if test -n "$ac_prev"; then
489 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
492 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
494 # File descriptor usage:
495 # 0 standard input
496 # 1 file creation
497 # 2 errors and warnings
498 # 3 some systems may open it to /dev/tty
499 # 4 used on the Kubota Titan
500 # 6 checking for... messages and results
501 # 5 compiler messages saved in config.log
502 if test "$silent" = yes; then
503 exec 6>/dev/null
504 else
505 exec 6>&1
507 exec 5>./config.log
509 echo "\
510 This file contains any messages produced by compilers while
511 running configure, to aid debugging if configure makes a mistake.
512 " 1>&5
514 # Strip out --no-create and --no-recursion so they do not pile up.
515 # Also quote any args containing shell metacharacters.
516 ac_configure_args=
517 for ac_arg
519 case "$ac_arg" in
520 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
521 | --no-cr | --no-c) ;;
522 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
523 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
524 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
525 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
526 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
527 esac
528 done
530 # NLS nuisances.
531 # Only set these to C if already set. These must not be set unconditionally
532 # because not all systems understand e.g. LANG=C (notably SCO).
533 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
534 # Non-C LC_CTYPE values break the ctype check.
535 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
536 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
537 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
538 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
540 # confdefs.h avoids OS command line length limits that DEFS can exceed.
541 rm -rf conftest* confdefs.h
542 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
543 echo > confdefs.h
545 # A filename unique to this package, relative to the directory that
546 # configure is in, which we can look for to find out if srcdir is correct.
547 ac_unique_file=include/includes.h
549 # Find the source files, if location was not specified.
550 if test -z "$srcdir"; then
551 ac_srcdir_defaulted=yes
552 # Try the directory containing this script, then its parent.
553 ac_prog=$0
554 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
555 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
556 srcdir=$ac_confdir
557 if test ! -r $srcdir/$ac_unique_file; then
558 srcdir=..
560 else
561 ac_srcdir_defaulted=no
563 if test ! -r $srcdir/$ac_unique_file; then
564 if test "$ac_srcdir_defaulted" = yes; then
565 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
566 else
567 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
570 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
572 # Prefer explicitly selected file to automatically selected ones.
573 if test -z "$CONFIG_SITE"; then
574 if test "x$prefix" != xNONE; then
575 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
576 else
577 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
580 for ac_site_file in $CONFIG_SITE; do
581 if test -r "$ac_site_file"; then
582 echo "loading site script $ac_site_file"
583 . "$ac_site_file"
585 done
587 if test -r "$cache_file"; then
588 echo "loading cache $cache_file"
589 . $cache_file
590 else
591 echo "creating cache $cache_file"
592 > $cache_file
595 ac_ext=c
596 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
597 ac_cpp='$CPP $CPPFLAGS'
598 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
599 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
600 cross_compiling=$ac_cv_prog_cc_cross
602 ac_exeext=
603 ac_objext=o
604 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
605 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
606 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
607 ac_n= ac_c='
608 ' ac_t=' '
609 else
610 ac_n=-n ac_c= ac_t=
612 else
613 ac_n= ac_c='\c' ac_t=
618 # we want to be compatibe with older versions of Samba
632 # compile with optimisation and without debugging by default
633 CFLAGS="-O ${CFLAGS}"
635 # Check whether --enable-debug or --disable-debug was given.
636 if test "${enable_debug+set}" = set; then
637 enableval="$enable_debug"
638 if eval "test x$enable_debug = xyes"; then
639 CFLAGS="${CFLAGS} -g"
645 # Extract the first word of "gcc", so it can be a program name with args.
646 set dummy gcc; ac_word=$2
647 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
648 echo "configure:649: checking for $ac_word" >&5
649 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
650 echo $ac_n "(cached) $ac_c" 1>&6
651 else
652 if test -n "$CC"; then
653 ac_cv_prog_CC="$CC" # Let the user override the test.
654 else
655 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
656 ac_dummy="$PATH"
657 for ac_dir in $ac_dummy; do
658 test -z "$ac_dir" && ac_dir=.
659 if test -f $ac_dir/$ac_word; then
660 ac_cv_prog_CC="gcc"
661 break
663 done
664 IFS="$ac_save_ifs"
667 CC="$ac_cv_prog_CC"
668 if test -n "$CC"; then
669 echo "$ac_t""$CC" 1>&6
670 else
671 echo "$ac_t""no" 1>&6
674 if test -z "$CC"; then
675 # Extract the first word of "cc", so it can be a program name with args.
676 set dummy cc; ac_word=$2
677 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
678 echo "configure:679: checking for $ac_word" >&5
679 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
680 echo $ac_n "(cached) $ac_c" 1>&6
681 else
682 if test -n "$CC"; then
683 ac_cv_prog_CC="$CC" # Let the user override the test.
684 else
685 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
686 ac_prog_rejected=no
687 ac_dummy="$PATH"
688 for ac_dir in $ac_dummy; do
689 test -z "$ac_dir" && ac_dir=.
690 if test -f $ac_dir/$ac_word; then
691 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
692 ac_prog_rejected=yes
693 continue
695 ac_cv_prog_CC="cc"
696 break
698 done
699 IFS="$ac_save_ifs"
700 if test $ac_prog_rejected = yes; then
701 # We found a bogon in the path, so make sure we never use it.
702 set dummy $ac_cv_prog_CC
703 shift
704 if test $# -gt 0; then
705 # We chose a different compiler from the bogus one.
706 # However, it has the same basename, so the bogon will be chosen
707 # first if we set CC to just the basename; use the full file name.
708 shift
709 set dummy "$ac_dir/$ac_word" "$@"
710 shift
711 ac_cv_prog_CC="$@"
716 CC="$ac_cv_prog_CC"
717 if test -n "$CC"; then
718 echo "$ac_t""$CC" 1>&6
719 else
720 echo "$ac_t""no" 1>&6
723 if test -z "$CC"; then
724 case "`uname -s`" in
725 *win32* | *WIN32*)
726 # Extract the first word of "cl", so it can be a program name with args.
727 set dummy cl; ac_word=$2
728 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
729 echo "configure:730: checking for $ac_word" >&5
730 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
731 echo $ac_n "(cached) $ac_c" 1>&6
732 else
733 if test -n "$CC"; then
734 ac_cv_prog_CC="$CC" # Let the user override the test.
735 else
736 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
737 ac_dummy="$PATH"
738 for ac_dir in $ac_dummy; do
739 test -z "$ac_dir" && ac_dir=.
740 if test -f $ac_dir/$ac_word; then
741 ac_cv_prog_CC="cl"
742 break
744 done
745 IFS="$ac_save_ifs"
748 CC="$ac_cv_prog_CC"
749 if test -n "$CC"; then
750 echo "$ac_t""$CC" 1>&6
751 else
752 echo "$ac_t""no" 1>&6
755 esac
757 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
760 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
761 echo "configure:762: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
763 ac_ext=c
764 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
765 ac_cpp='$CPP $CPPFLAGS'
766 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
767 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
768 cross_compiling=$ac_cv_prog_cc_cross
770 cat > conftest.$ac_ext << EOF
772 #line 773 "configure"
773 #include "confdefs.h"
775 main(){return(0);}
777 if { (eval echo configure:778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
778 ac_cv_prog_cc_works=yes
779 # If we can't run a trivial program, we are probably using a cross compiler.
780 if (./conftest; exit) 2>/dev/null; then
781 ac_cv_prog_cc_cross=no
782 else
783 ac_cv_prog_cc_cross=yes
785 else
786 echo "configure: failed program was:" >&5
787 cat conftest.$ac_ext >&5
788 ac_cv_prog_cc_works=no
790 rm -fr conftest*
791 ac_ext=c
792 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
793 ac_cpp='$CPP $CPPFLAGS'
794 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
795 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
796 cross_compiling=$ac_cv_prog_cc_cross
798 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
799 if test $ac_cv_prog_cc_works = no; then
800 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
802 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
803 echo "configure:804: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
804 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
805 cross_compiling=$ac_cv_prog_cc_cross
807 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
808 echo "configure:809: checking whether we are using GNU C" >&5
809 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
810 echo $ac_n "(cached) $ac_c" 1>&6
811 else
812 cat > conftest.c <<EOF
813 #ifdef __GNUC__
814 yes;
815 #endif
817 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:818: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
818 ac_cv_prog_gcc=yes
819 else
820 ac_cv_prog_gcc=no
824 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
826 if test $ac_cv_prog_gcc = yes; then
827 GCC=yes
828 else
829 GCC=
832 ac_test_CFLAGS="${CFLAGS+set}"
833 ac_save_CFLAGS="$CFLAGS"
834 CFLAGS=
835 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
836 echo "configure:837: checking whether ${CC-cc} accepts -g" >&5
837 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
838 echo $ac_n "(cached) $ac_c" 1>&6
839 else
840 echo 'void f(){}' > conftest.c
841 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
842 ac_cv_prog_cc_g=yes
843 else
844 ac_cv_prog_cc_g=no
846 rm -f conftest*
850 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
851 if test "$ac_test_CFLAGS" = set; then
852 CFLAGS="$ac_save_CFLAGS"
853 elif test $ac_cv_prog_cc_g = yes; then
854 if test "$GCC" = yes; then
855 CFLAGS="-g -O2"
856 else
857 CFLAGS="-g"
859 else
860 if test "$GCC" = yes; then
861 CFLAGS="-O2"
862 else
863 CFLAGS=
867 ac_aux_dir=
868 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
869 if test -f $ac_dir/install-sh; then
870 ac_aux_dir=$ac_dir
871 ac_install_sh="$ac_aux_dir/install-sh -c"
872 break
873 elif test -f $ac_dir/install.sh; then
874 ac_aux_dir=$ac_dir
875 ac_install_sh="$ac_aux_dir/install.sh -c"
876 break
878 done
879 if test -z "$ac_aux_dir"; then
880 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
882 ac_config_guess=$ac_aux_dir/config.guess
883 ac_config_sub=$ac_aux_dir/config.sub
884 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
886 # Find a good install program. We prefer a C program (faster),
887 # so one script is as good as another. But avoid the broken or
888 # incompatible versions:
889 # SysV /etc/install, /usr/sbin/install
890 # SunOS /usr/etc/install
891 # IRIX /sbin/install
892 # AIX /bin/install
893 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
894 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
895 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
896 # ./install, which can be erroneously created by make from ./install.sh.
897 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
898 echo "configure:899: checking for a BSD compatible install" >&5
899 if test -z "$INSTALL"; then
900 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
901 echo $ac_n "(cached) $ac_c" 1>&6
902 else
903 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
904 for ac_dir in $PATH; do
905 # Account for people who put trailing slashes in PATH elements.
906 case "$ac_dir/" in
907 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
909 # OSF1 and SCO ODT 3.0 have their own names for install.
910 # Don't use installbsd from OSF since it installs stuff as root
911 # by default.
912 for ac_prog in ginstall scoinst install; do
913 if test -f $ac_dir/$ac_prog; then
914 if test $ac_prog = install &&
915 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
916 # AIX install. It has an incompatible calling convention.
918 else
919 ac_cv_path_install="$ac_dir/$ac_prog -c"
920 break 2
923 done
925 esac
926 done
927 IFS="$ac_save_IFS"
930 if test "${ac_cv_path_install+set}" = set; then
931 INSTALL="$ac_cv_path_install"
932 else
933 # As a last resort, use the slow shell script. We don't cache a
934 # path for INSTALL within a source directory, because that will
935 # break other packages using the cache if that directory is
936 # removed, or if the path is relative.
937 INSTALL="$ac_install_sh"
940 echo "$ac_t""$INSTALL" 1>&6
942 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
943 # It thinks the first close brace ends the variable substitution.
944 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
946 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
948 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
950 for ac_prog in mawk gawk nawk awk
952 # Extract the first word of "$ac_prog", so it can be a program name with args.
953 set dummy $ac_prog; ac_word=$2
954 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
955 echo "configure:956: checking for $ac_word" >&5
956 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
957 echo $ac_n "(cached) $ac_c" 1>&6
958 else
959 if test -n "$AWK"; then
960 ac_cv_prog_AWK="$AWK" # Let the user override the test.
961 else
962 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
963 ac_dummy="$PATH"
964 for ac_dir in $ac_dummy; do
965 test -z "$ac_dir" && ac_dir=.
966 if test -f $ac_dir/$ac_word; then
967 ac_cv_prog_AWK="$ac_prog"
968 break
970 done
971 IFS="$ac_save_ifs"
974 AWK="$ac_cv_prog_AWK"
975 if test -n "$AWK"; then
976 echo "$ac_t""$AWK" 1>&6
977 else
978 echo "$ac_t""no" 1>&6
981 test -n "$AWK" && break
982 done
984 # Check whether --enable-shared or --disable-shared was given.
985 if test "${enable_shared+set}" = set; then
986 enableval="$enable_shared"
987 p=${PACKAGE-default}
988 case "$enableval" in
989 yes) enable_shared=yes ;;
990 no) enable_shared=no ;;
992 enable_shared=no
993 # Look at the argument we got. We use all the common list separators.
994 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
995 for pkg in $enableval; do
996 if test "X$pkg" = "X$p"; then
997 enable_shared=yes
999 done
1000 IFS="$ac_save_ifs"
1002 esac
1003 else
1004 enable_shared=yes
1007 # Check whether --enable-static or --disable-static was given.
1008 if test "${enable_static+set}" = set; then
1009 enableval="$enable_static"
1010 p=${PACKAGE-default}
1011 case "$enableval" in
1012 yes) enable_static=yes ;;
1013 no) enable_static=no ;;
1015 enable_static=no
1016 # Look at the argument we got. We use all the common list separators.
1017 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1018 for pkg in $enableval; do
1019 if test "X$pkg" = "X$p"; then
1020 enable_static=yes
1022 done
1023 IFS="$ac_save_ifs"
1025 esac
1026 else
1027 enable_static=yes
1030 # Check whether --enable-fast-install or --disable-fast-install was given.
1031 if test "${enable_fast_install+set}" = set; then
1032 enableval="$enable_fast_install"
1033 p=${PACKAGE-default}
1034 case "$enableval" in
1035 yes) enable_fast_install=yes ;;
1036 no) enable_fast_install=no ;;
1038 enable_fast_install=no
1039 # Look at the argument we got. We use all the common list separators.
1040 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1041 for pkg in $enableval; do
1042 if test "X$pkg" = "X$p"; then
1043 enable_fast_install=yes
1045 done
1046 IFS="$ac_save_ifs"
1048 esac
1049 else
1050 enable_fast_install=yes
1054 # Make sure we can run config.sub.
1055 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1056 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1059 echo $ac_n "checking host system type""... $ac_c" 1>&6
1060 echo "configure:1061: checking host system type" >&5
1062 host_alias=$host
1063 case "$host_alias" in
1064 NONE)
1065 case $nonopt in
1066 NONE)
1067 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1068 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1069 fi ;;
1070 *) host_alias=$nonopt ;;
1071 esac ;;
1072 esac
1074 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1075 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1076 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1077 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1078 echo "$ac_t""$host" 1>&6
1080 echo $ac_n "checking build system type""... $ac_c" 1>&6
1081 echo "configure:1082: checking build system type" >&5
1083 build_alias=$build
1084 case "$build_alias" in
1085 NONE)
1086 case $nonopt in
1087 NONE) build_alias=$host_alias ;;
1088 *) build_alias=$nonopt ;;
1089 esac ;;
1090 esac
1092 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1093 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1094 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1095 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1096 echo "$ac_t""$build" 1>&6
1098 # Extract the first word of "ranlib", so it can be a program name with args.
1099 set dummy ranlib; ac_word=$2
1100 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1101 echo "configure:1102: checking for $ac_word" >&5
1102 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1103 echo $ac_n "(cached) $ac_c" 1>&6
1104 else
1105 if test -n "$RANLIB"; then
1106 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1107 else
1108 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1109 ac_dummy="$PATH"
1110 for ac_dir in $ac_dummy; do
1111 test -z "$ac_dir" && ac_dir=.
1112 if test -f $ac_dir/$ac_word; then
1113 ac_cv_prog_RANLIB="ranlib"
1114 break
1116 done
1117 IFS="$ac_save_ifs"
1118 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1121 RANLIB="$ac_cv_prog_RANLIB"
1122 if test -n "$RANLIB"; then
1123 echo "$ac_t""$RANLIB" 1>&6
1124 else
1125 echo "$ac_t""no" 1>&6
1128 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1129 if test "${with_gnu_ld+set}" = set; then
1130 withval="$with_gnu_ld"
1131 test "$withval" = no || with_gnu_ld=yes
1132 else
1133 with_gnu_ld=no
1136 ac_prog=ld
1137 if test "$ac_cv_prog_gcc" = yes; then
1138 # Check if gcc -print-prog-name=ld gives a path.
1139 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1140 echo "configure:1141: checking for ld used by GCC" >&5
1141 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1142 case "$ac_prog" in
1143 # Accept absolute paths.
1144 [\\/]* | [A-Za-z]:[\\/]*)
1145 re_direlt='/[^/][^/]*/\.\./'
1146 # Canonicalize the path of ld
1147 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1148 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1149 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1150 done
1151 test -z "$LD" && LD="$ac_prog"
1154 # If it fails, then pretend we aren't using GCC.
1155 ac_prog=ld
1158 # If it is relative, then search for the first ld in PATH.
1159 with_gnu_ld=unknown
1161 esac
1162 elif test "$with_gnu_ld" = yes; then
1163 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1164 echo "configure:1165: checking for GNU ld" >&5
1165 else
1166 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1167 echo "configure:1168: checking for non-GNU ld" >&5
1169 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1170 echo $ac_n "(cached) $ac_c" 1>&6
1171 else
1172 if test -z "$LD"; then
1173 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1174 for ac_dir in $PATH; do
1175 test -z "$ac_dir" && ac_dir=.
1176 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1177 ac_cv_path_LD="$ac_dir/$ac_prog"
1178 # Check to see if the program is GNU ld. I'd rather use --version,
1179 # but apparently some GNU ld's only accept -v.
1180 # Break only if it was the GNU/non-GNU ld that we prefer.
1181 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1182 test "$with_gnu_ld" != no && break
1183 else
1184 test "$with_gnu_ld" != yes && break
1187 done
1188 IFS="$ac_save_ifs"
1189 else
1190 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1194 LD="$ac_cv_path_LD"
1195 if test -n "$LD"; then
1196 echo "$ac_t""$LD" 1>&6
1197 else
1198 echo "$ac_t""no" 1>&6
1200 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1201 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1202 echo "configure:1203: checking if the linker ($LD) is GNU ld" >&5
1203 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1204 echo $ac_n "(cached) $ac_c" 1>&6
1205 else
1206 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1207 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1208 ac_cv_prog_gnu_ld=yes
1209 else
1210 ac_cv_prog_gnu_ld=no
1214 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1217 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1218 echo "configure:1219: checking for BSD-compatible nm" >&5
1219 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1220 echo $ac_n "(cached) $ac_c" 1>&6
1221 else
1222 if test -n "$NM"; then
1223 # Let the user override the test.
1224 ac_cv_path_NM="$NM"
1225 else
1226 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1227 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1228 test -z "$ac_dir" && ac_dir=.
1229 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
1230 # Check to see if the nm accepts a BSD-compat flag.
1231 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1232 # nm: unknown option "B" ignored
1233 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1234 ac_cv_path_NM="$ac_dir/nm -B"
1235 break
1236 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1237 ac_cv_path_NM="$ac_dir/nm -p"
1238 break
1239 else
1240 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1241 continue # so that we can try to find one that supports BSD flags
1244 done
1245 IFS="$ac_save_ifs"
1246 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1250 NM="$ac_cv_path_NM"
1251 echo "$ac_t""$NM" 1>&6
1253 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1254 echo "configure:1255: checking whether ln -s works" >&5
1255 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1256 echo $ac_n "(cached) $ac_c" 1>&6
1257 else
1258 rm -f conftestdata
1259 if ln -s X conftestdata 2>/dev/null
1260 then
1261 rm -f conftestdata
1262 ac_cv_prog_LN_S="ln -s"
1263 else
1264 ac_cv_prog_LN_S=ln
1267 LN_S="$ac_cv_prog_LN_S"
1268 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1269 echo "$ac_t""yes" 1>&6
1270 else
1271 echo "$ac_t""no" 1>&6
1275 case "$target" in
1276 NONE) lt_target="$host" ;;
1277 *) lt_target="$target" ;;
1278 esac
1280 # Check for any special flags to pass to ltconfig.
1281 libtool_flags="--cache-file=$cache_file"
1282 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1283 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1284 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1285 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1286 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1289 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1290 if test "${enable_libtool_lock+set}" = set; then
1291 enableval="$enable_libtool_lock"
1295 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1296 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1298 # Some flags need to be propagated to the compiler or linker for good
1299 # libtool support.
1300 case "$lt_target" in
1301 *-*-irix6*)
1302 # Find out which ABI we are using.
1303 echo '#line 1304 "configure"' > conftest.$ac_ext
1304 if { (eval echo configure:1305: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1305 case "`/usr/bin/file conftest.o`" in
1306 *32-bit*)
1307 LD="${LD-ld} -32"
1309 *N32*)
1310 LD="${LD-ld} -n32"
1312 *64-bit*)
1313 LD="${LD-ld} -64"
1315 esac
1317 rm -rf conftest*
1320 *-*-sco3.2v5*)
1321 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1322 SAVE_CFLAGS="$CFLAGS"
1323 CFLAGS="$CFLAGS -belf"
1324 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1325 echo "configure:1326: checking whether the C compiler needs -belf" >&5
1326 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1327 echo $ac_n "(cached) $ac_c" 1>&6
1328 else
1329 cat > conftest.$ac_ext <<EOF
1330 #line 1331 "configure"
1331 #include "confdefs.h"
1333 int main() {
1335 ; return 0; }
1337 if { (eval echo configure:1338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1338 rm -rf conftest*
1339 lt_cv_cc_needs_belf=yes
1340 else
1341 echo "configure: failed program was:" >&5
1342 cat conftest.$ac_ext >&5
1343 rm -rf conftest*
1344 lt_cv_cc_needs_belf=no
1346 rm -f conftest*
1349 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1350 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1351 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1352 CFLAGS="$SAVE_CFLAGS"
1357 esac
1360 # Save cache, so that ltconfig can load it
1361 cat > confcache <<\EOF
1362 # This file is a shell script that caches the results of configure
1363 # tests run on this system so they can be shared between configure
1364 # scripts and configure runs. It is not useful on other systems.
1365 # If it contains results you don't want to keep, you may remove or edit it.
1367 # By default, configure uses ./config.cache as the cache file,
1368 # creating it if it does not exist already. You can give configure
1369 # the --cache-file=FILE option to use a different cache file; that is
1370 # what configure does when it calls configure scripts in
1371 # subdirectories, so they share the cache.
1372 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1373 # config.status only pays attention to the cache file if you give it the
1374 # --recheck option to rerun configure.
1377 # The following way of writing the cache mishandles newlines in values,
1378 # but we know of no workaround that is simple, portable, and efficient.
1379 # So, don't put newlines in cache variables' values.
1380 # Ultrix sh set writes to stderr and can't be redirected directly,
1381 # and sets the high bit in the cache file unless we assign to the vars.
1382 (set) 2>&1 |
1383 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1384 *ac_space=\ *)
1385 # `set' does not quote correctly, so add quotes (double-quote substitution
1386 # turns \\\\ into \\, and sed turns \\ into \).
1387 sed -n \
1388 -e "s/'/'\\\\''/g" \
1389 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1392 # `set' quotes correctly as required by POSIX, so do not add quotes.
1393 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1395 esac >> confcache
1396 if cmp -s $cache_file confcache; then
1398 else
1399 if test -w $cache_file; then
1400 echo "updating cache $cache_file"
1401 cat confcache > $cache_file
1402 else
1403 echo "not updating unwritable cache $cache_file"
1406 rm -f confcache
1409 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1410 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1411 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
1412 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
1413 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
1414 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
1415 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
1416 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1418 # Reload cache, that may have been modified by ltconfig
1419 if test -r "$cache_file"; then
1420 echo "loading cache $cache_file"
1421 . $cache_file
1422 else
1423 echo "creating cache $cache_file"
1424 > $cache_file
1428 # This can be used to rebuild libtool when needed
1429 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1431 # Always use our own libtool.
1432 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1434 # Redirect the config.log output again, so that the ltconfig log is not
1435 # clobbered by the next message.
1436 exec 5>>./config.log
1440 if test "x$CC" != xcc; then
1441 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1442 echo "configure:1443: checking whether $CC and cc understand -c and -o together" >&5
1443 else
1444 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1445 echo "configure:1446: checking whether cc understands -c and -o together" >&5
1447 set dummy $CC; ac_cc="`echo $2 |
1448 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1449 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1450 echo $ac_n "(cached) $ac_c" 1>&6
1451 else
1452 echo 'foo(){}' > conftest.c
1453 # Make sure it works both with $CC and with simple cc.
1454 # We do the test twice because some compilers refuse to overwrite an
1455 # existing .o file with -o, though they will create one.
1456 ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1457 if { (eval echo configure:1458: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1458 test -f conftest.o && { (eval echo configure:1459: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1459 then
1460 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
1461 if test "x$CC" != xcc; then
1462 # Test first that cc exists at all.
1463 if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:1464: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1464 ac_try='cc -c conftest.c -o conftest.o 1>&5'
1465 if { (eval echo configure:1466: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1466 test -f conftest.o && { (eval echo configure:1467: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1467 then
1468 # cc works too.
1470 else
1471 # cc exists but doesn't like -o.
1472 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1476 else
1477 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1479 rm -f conftest*
1482 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1483 echo "$ac_t""yes" 1>&6
1484 else
1485 echo "$ac_t""no" 1>&6
1486 cat >> confdefs.h <<\EOF
1487 #define NO_MINUS_C_MINUS_O 1
1492 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1493 BROKEN_CC=
1494 else
1495 BROKEN_CC=#
1499 echo $ac_n "checking that the C compiler understands volatile""... $ac_c" 1>&6
1500 echo "configure:1501: checking that the C compiler understands volatile" >&5
1501 if eval "test \"`echo '$''{'samba_cv_volatile'+set}'`\" = set"; then
1502 echo $ac_n "(cached) $ac_c" 1>&6
1503 else
1505 cat > conftest.$ac_ext <<EOF
1506 #line 1507 "configure"
1507 #include "confdefs.h"
1508 #include <sys/types.h>
1509 int main() {
1510 volatile int i = 0
1511 ; return 0; }
1513 if { (eval echo configure:1514: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1514 rm -rf conftest*
1515 samba_cv_volatile=yes
1516 else
1517 echo "configure: failed program was:" >&5
1518 cat conftest.$ac_ext >&5
1519 rm -rf conftest*
1520 samba_cv_volatile=no
1522 rm -f conftest*
1525 echo "$ac_t""$samba_cv_volatile" 1>&6
1526 if test x"$samba_cv_volatile" = x"yes"; then
1527 cat >> confdefs.h <<\EOF
1528 #define HAVE_VOLATILE 1
1534 #################################################
1535 # set codepage directory location
1536 # Check whether --with-codepagedir or --without-codepagedir was given.
1537 if test "${with_codepagedir+set}" = set; then
1538 withval="$with_codepagedir"
1539 case "$withval" in
1540 yes|no)
1542 # Just in case anybody does it
1544 echo "configure: warning: --with-codepagedir called without argument - will use default" 1>&2
1547 codepagedir="$withval"
1549 esac
1555 # Do some error checking and defaulting for the host and target type.
1556 # The inputs are:
1557 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1559 # The rules are:
1560 # 1. You are not allowed to specify --host, --target, and nonopt at the
1561 # same time.
1562 # 2. Host defaults to nonopt.
1563 # 3. If nonopt is not specified, then host defaults to the current host,
1564 # as determined by config.guess.
1565 # 4. Target and build default to nonopt.
1566 # 5. If nonopt is not specified, then target and build default to host.
1568 # The aliases save the names the user supplied, while $host etc.
1569 # will get canonicalized.
1570 case $host---$target---$nonopt in
1571 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1572 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1573 esac
1576 # Make sure we can run config.sub.
1577 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1578 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1581 echo $ac_n "checking host system type""... $ac_c" 1>&6
1582 echo "configure:1583: checking host system type" >&5
1584 host_alias=$host
1585 case "$host_alias" in
1586 NONE)
1587 case $nonopt in
1588 NONE)
1589 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1590 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1591 fi ;;
1592 *) host_alias=$nonopt ;;
1593 esac ;;
1594 esac
1596 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1597 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1598 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1599 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1600 echo "$ac_t""$host" 1>&6
1602 echo $ac_n "checking target system type""... $ac_c" 1>&6
1603 echo "configure:1604: checking target system type" >&5
1605 target_alias=$target
1606 case "$target_alias" in
1607 NONE)
1608 case $nonopt in
1609 NONE) target_alias=$host_alias ;;
1610 *) target_alias=$nonopt ;;
1611 esac ;;
1612 esac
1614 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1615 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1616 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1617 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1618 echo "$ac_t""$target" 1>&6
1620 echo $ac_n "checking build system type""... $ac_c" 1>&6
1621 echo "configure:1622: checking build system type" >&5
1623 build_alias=$build
1624 case "$build_alias" in
1625 NONE)
1626 case $nonopt in
1627 NONE) build_alias=$host_alias ;;
1628 *) build_alias=$nonopt ;;
1629 esac ;;
1630 esac
1632 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1633 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1634 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1635 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1636 echo "$ac_t""$build" 1>&6
1638 test "$host_alias" != "$target_alias" &&
1639 test "$program_prefix$program_suffix$program_transform_name" = \
1640 NONENONEs,x,x, &&
1641 program_prefix=${target_alias}-
1644 case "$host_os" in
1645 *irix6*) cat >> confdefs.h <<\EOF
1646 #include <standards.h>
1650 esac
1654 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
1655 echo "configure:1656: checking config.cache system type" >&5
1656 if { test x"${ac_cv_host_system_type+set}" = x"set" &&
1657 test x"$ac_cv_host_system_type" != x"$host"; } ||
1658 { test x"${ac_cv_build_system_type+set}" = x"set" &&
1659 test x"$ac_cv_build_system_type" != x"$build"; } ||
1660 { test x"${ac_cv_target_system_type+set}" = x"set" &&
1661 test x"$ac_cv_target_system_type" != x"$target"; }; then
1662 echo "$ac_t""different" 1>&6
1663 { echo "configure: error: "you must remove config.cache and restart configure"" 1>&2; exit 1; }
1664 else
1665 echo "$ac_t""same" 1>&6
1667 ac_cv_host_system_type="$host"
1668 ac_cv_build_system_type="$build"
1669 ac_cv_target_system_type="$target"
1673 # Config CPPFLAG settings for strange OS's that must be set
1674 # before other tests.
1676 case "$host_os" in
1677 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1678 *hpux*)
1679 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1680 echo "configure:1681: checking whether ${CC-cc} accepts -Ae" >&5
1681 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1682 echo $ac_n "(cached) $ac_c" 1>&6
1683 else
1684 echo 'void f(){}' > conftest.c
1685 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1686 ac_cv_prog_cc_Ae=yes
1687 else
1688 ac_cv_prog_cc_Ae=no
1690 rm -f conftest*
1694 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1695 if test $ac_cv_prog_cc_Ae = yes; then
1696 CPPFLAGS="$CPPFLAGS -Ae"
1699 # Defines needed for HPUX support.
1700 # HPUX has bigcrypt but (sometimes?) doesn't use it for
1701 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
1703 case `uname -r` in
1704 *9*|*10*)
1705 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE"
1706 cat >> confdefs.h <<\EOF
1707 #define USE_BOTH_CRYPT_CALLS 1
1711 *11*)
1712 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE"
1713 cat >> confdefs.h <<\EOF
1714 #define USE_BOTH_CRYPT_CALLS 1
1718 esac
1721 # AIX4.x doesn't even admit to having large
1722 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1724 *aix4*)
1725 echo "$ac_t""enabling large file support" 1>&6
1726 CPPFLAGS="$CPPFLAGS -D_LARGE_FILES"
1729 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
1730 # to the existance of large files..
1731 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
1732 # recommendations on large file support, however it makes the
1733 # compile work using gcc 2.7 and 2.8, whereas using the Sun
1734 # recommendation makes the compile fail on gcc2.7. JRA.
1736 *solaris*)
1737 case `uname -r` in
1738 5.6*|5.7*)
1739 echo "$ac_t""enabling large file support" 1>&6
1740 if test "$ac_cv_prog_gcc" = yes; then
1741 ${CC-cc} -v >conftest.c 2>&1
1742 ac_cv_gcc_compiler_version_number=`grep 'gcc version' conftest.c`
1743 rm -fr conftest.c
1744 case "$ac_cv_gcc_compiler_version_number" in
1745 *"gcc version 2.6"*|*"gcc version 2.7"*)
1746 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
1749 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1751 esac
1752 else
1753 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1756 esac
1759 # Tests needed for SINIX large file support.
1761 *sysv4*)
1762 if test $host = mips-sni-sysv4 ; then
1763 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1764 echo "configure:1765: checking for LFS support" >&5
1765 old_CPPFLAGS="$CPPFLAGS"
1766 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1767 if test "$cross_compiling" = yes; then
1768 SINIX_LFS_SUPPORT=cross
1769 else
1770 cat > conftest.$ac_ext <<EOF
1771 #line 1772 "configure"
1772 #include "confdefs.h"
1774 #include <unistd.h>
1775 main () {
1776 #if _LFS64_LARGEFILE == 1
1777 exit(0);
1778 #else
1779 exit(1);
1780 #endif
1783 if { (eval echo configure:1784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1784 then
1785 SINIX_LFS_SUPPORT=yes
1786 else
1787 echo "configure: failed program was:" >&5
1788 cat conftest.$ac_ext >&5
1789 rm -fr conftest*
1790 SINIX_LFS_SUPPORT=no
1792 rm -fr conftest*
1795 CPPFLAGS="$old_CPPFLAGS"
1796 if test x$SINIX_LFS_SUPPORT = xyes ; then
1797 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1798 CFLAGS="`getconf LFS64_CFLAGS` $CFLAGS"
1799 LDFLAGS="`getconf LFS64_LDFLAGS` $LDFLAGS"
1800 LIBS="`getconf LFS64_LIBS` $LIBS"
1802 echo "$ac_t""$SINIX_LFS_SUPPORT" 1>&6
1806 # Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
1808 *linux*)
1809 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1810 echo "configure:1811: checking for LFS support" >&5
1811 old_CPPFLAGS="$CPPFLAGS"
1812 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1813 if test "$cross_compiling" = yes; then
1814 LINUX_LFS_SUPPORT=cross
1815 else
1816 cat > conftest.$ac_ext <<EOF
1817 #line 1818 "configure"
1818 #include "confdefs.h"
1820 #include <unistd.h>
1821 #include <sys/utsname.h>
1822 main() {
1823 #if _LFS64_LARGEFILE == 1
1824 struct utsname uts;
1825 char *release;
1826 int major, minor;
1828 /* Ensure this is glibc 2.2 or higher */
1829 #if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
1830 int libc_major = __GLIBC__;
1831 int libc_minor = __GLIBC_MINOR__;
1833 if (libc_major < 2)
1834 exit(1);
1835 if (libc_minor < 2)
1836 exit(1);
1837 #endif
1839 /* Ensure this is kernel 2.4 or higher */
1841 uname(&uts);
1842 release = uts.release;
1843 major = atoi(strsep(&release, "."));
1844 minor = atoi(strsep(&release, "."));
1846 if (major > 2 || (major == 2 && minor > 3))
1847 exit(0);
1848 exit(1);
1849 #else
1850 exit(1);
1851 #endif
1855 if { (eval echo configure:1856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1856 then
1857 LINUX_LFS_SUPPORT=yes
1858 else
1859 echo "configure: failed program was:" >&5
1860 cat conftest.$ac_ext >&5
1861 rm -fr conftest*
1862 LINUX_LFS_SUPPORT=no
1864 rm -fr conftest*
1867 CPPFLAGS="$old_CPPFLAGS"
1868 if test x$LINUX_LFS_SUPPORT = xyes ; then
1869 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1871 echo "$ac_t""$LINUX_LFS_SUPPORT" 1>&6
1874 *hurd*)
1875 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1876 echo "configure:1877: checking for LFS support" >&5
1877 old_CPPFLAGS="$CPPFLAGS"
1878 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1879 if test "$cross_compiling" = yes; then
1880 GLIBC_LFS_SUPPORT=cross
1881 else
1882 cat > conftest.$ac_ext <<EOF
1883 #line 1884 "configure"
1884 #include "confdefs.h"
1886 #include <unistd.h>
1887 main () {
1888 #if _LFS64_LARGEFILE == 1
1889 exit(0);
1890 #else
1891 exit(1);
1892 #endif
1895 if { (eval echo configure:1896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1896 then
1897 GLIBC_LFS_SUPPORT=yes
1898 else
1899 echo "configure: failed program was:" >&5
1900 cat conftest.$ac_ext >&5
1901 rm -fr conftest*
1902 GLIBC_LFS_SUPPORT=no
1904 rm -fr conftest*
1907 CPPFLAGS="$old_CPPFLAGS"
1908 if test x$GLIBC_LFS_SUPPORT = xyes ; then
1909 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1911 echo "$ac_t""$GLIBC_LFS_SUPPORT" 1>&6
1914 esac
1916 echo $ac_n "checking for inline""... $ac_c" 1>&6
1917 echo "configure:1918: checking for inline" >&5
1918 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1919 echo $ac_n "(cached) $ac_c" 1>&6
1920 else
1921 ac_cv_c_inline=no
1922 for ac_kw in inline __inline__ __inline; do
1923 cat > conftest.$ac_ext <<EOF
1924 #line 1925 "configure"
1925 #include "confdefs.h"
1927 int main() {
1928 } $ac_kw foo() {
1929 ; return 0; }
1931 if { (eval echo configure:1932: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1932 rm -rf conftest*
1933 ac_cv_c_inline=$ac_kw; break
1934 else
1935 echo "configure: failed program was:" >&5
1936 cat conftest.$ac_ext >&5
1938 rm -f conftest*
1939 done
1943 echo "$ac_t""$ac_cv_c_inline" 1>&6
1944 case "$ac_cv_c_inline" in
1945 inline | yes) ;;
1946 no) cat >> confdefs.h <<\EOF
1947 #define inline
1950 *) cat >> confdefs.h <<EOF
1951 #define inline $ac_cv_c_inline
1954 esac
1956 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1957 echo "configure:1958: checking how to run the C preprocessor" >&5
1958 # On Suns, sometimes $CPP names a directory.
1959 if test -n "$CPP" && test -d "$CPP"; then
1960 CPP=
1962 if test -z "$CPP"; then
1963 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1964 echo $ac_n "(cached) $ac_c" 1>&6
1965 else
1966 # This must be in double quotes, not single quotes, because CPP may get
1967 # substituted into the Makefile and "${CC-cc}" will confuse make.
1968 CPP="${CC-cc} -E"
1969 # On the NeXT, cc -E runs the code through the compiler's parser,
1970 # not just through cpp.
1971 cat > conftest.$ac_ext <<EOF
1972 #line 1973 "configure"
1973 #include "confdefs.h"
1974 #include <assert.h>
1975 Syntax Error
1977 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1978 { (eval echo configure:1979: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1979 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1980 if test -z "$ac_err"; then
1982 else
1983 echo "$ac_err" >&5
1984 echo "configure: failed program was:" >&5
1985 cat conftest.$ac_ext >&5
1986 rm -rf conftest*
1987 CPP="${CC-cc} -E -traditional-cpp"
1988 cat > conftest.$ac_ext <<EOF
1989 #line 1990 "configure"
1990 #include "confdefs.h"
1991 #include <assert.h>
1992 Syntax Error
1994 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1995 { (eval echo configure:1996: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1996 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1997 if test -z "$ac_err"; then
1999 else
2000 echo "$ac_err" >&5
2001 echo "configure: failed program was:" >&5
2002 cat conftest.$ac_ext >&5
2003 rm -rf conftest*
2004 CPP="${CC-cc} -nologo -E"
2005 cat > conftest.$ac_ext <<EOF
2006 #line 2007 "configure"
2007 #include "confdefs.h"
2008 #include <assert.h>
2009 Syntax Error
2011 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2012 { (eval echo configure:2013: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2013 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2014 if test -z "$ac_err"; then
2016 else
2017 echo "$ac_err" >&5
2018 echo "configure: failed program was:" >&5
2019 cat conftest.$ac_ext >&5
2020 rm -rf conftest*
2021 CPP=/lib/cpp
2023 rm -f conftest*
2025 rm -f conftest*
2027 rm -f conftest*
2028 ac_cv_prog_CPP="$CPP"
2030 CPP="$ac_cv_prog_CPP"
2031 else
2032 ac_cv_prog_CPP="$CPP"
2034 echo "$ac_t""$CPP" 1>&6
2036 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2037 echo "configure:2038: checking for ANSI C header files" >&5
2038 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2039 echo $ac_n "(cached) $ac_c" 1>&6
2040 else
2041 cat > conftest.$ac_ext <<EOF
2042 #line 2043 "configure"
2043 #include "confdefs.h"
2044 #include <stdlib.h>
2045 #include <stdarg.h>
2046 #include <string.h>
2047 #include <float.h>
2049 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2050 { (eval echo configure:2051: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2051 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2052 if test -z "$ac_err"; then
2053 rm -rf conftest*
2054 ac_cv_header_stdc=yes
2055 else
2056 echo "$ac_err" >&5
2057 echo "configure: failed program was:" >&5
2058 cat conftest.$ac_ext >&5
2059 rm -rf conftest*
2060 ac_cv_header_stdc=no
2062 rm -f conftest*
2064 if test $ac_cv_header_stdc = yes; then
2065 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2066 cat > conftest.$ac_ext <<EOF
2067 #line 2068 "configure"
2068 #include "confdefs.h"
2069 #include <string.h>
2071 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2072 egrep "memchr" >/dev/null 2>&1; then
2074 else
2075 rm -rf conftest*
2076 ac_cv_header_stdc=no
2078 rm -f conftest*
2082 if test $ac_cv_header_stdc = yes; then
2083 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2084 cat > conftest.$ac_ext <<EOF
2085 #line 2086 "configure"
2086 #include "confdefs.h"
2087 #include <stdlib.h>
2089 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2090 egrep "free" >/dev/null 2>&1; then
2092 else
2093 rm -rf conftest*
2094 ac_cv_header_stdc=no
2096 rm -f conftest*
2100 if test $ac_cv_header_stdc = yes; then
2101 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2102 if test "$cross_compiling" = yes; then
2104 else
2105 cat > conftest.$ac_ext <<EOF
2106 #line 2107 "configure"
2107 #include "confdefs.h"
2108 #include <ctype.h>
2109 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2110 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2111 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2112 int main () { int i; for (i = 0; i < 256; i++)
2113 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2114 exit (0); }
2117 if { (eval echo configure:2118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2118 then
2120 else
2121 echo "configure: failed program was:" >&5
2122 cat conftest.$ac_ext >&5
2123 rm -fr conftest*
2124 ac_cv_header_stdc=no
2126 rm -fr conftest*
2132 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2133 if test $ac_cv_header_stdc = yes; then
2134 cat >> confdefs.h <<\EOF
2135 #define STDC_HEADERS 1
2140 ac_header_dirent=no
2141 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
2143 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2144 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
2145 echo "configure:2146: checking for $ac_hdr that defines DIR" >&5
2146 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
2147 echo $ac_n "(cached) $ac_c" 1>&6
2148 else
2149 cat > conftest.$ac_ext <<EOF
2150 #line 2151 "configure"
2151 #include "confdefs.h"
2152 #include <sys/types.h>
2153 #include <$ac_hdr>
2154 int main() {
2155 DIR *dirp = 0;
2156 ; return 0; }
2158 if { (eval echo configure:2159: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2159 rm -rf conftest*
2160 eval "ac_cv_header_dirent_$ac_safe=yes"
2161 else
2162 echo "configure: failed program was:" >&5
2163 cat conftest.$ac_ext >&5
2164 rm -rf conftest*
2165 eval "ac_cv_header_dirent_$ac_safe=no"
2167 rm -f conftest*
2169 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2170 echo "$ac_t""yes" 1>&6
2171 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2172 cat >> confdefs.h <<EOF
2173 #define $ac_tr_hdr 1
2175 ac_header_dirent=$ac_hdr; break
2176 else
2177 echo "$ac_t""no" 1>&6
2179 done
2180 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2181 if test $ac_header_dirent = dirent.h; then
2182 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2183 echo "configure:2184: checking for opendir in -ldir" >&5
2184 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2185 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2186 echo $ac_n "(cached) $ac_c" 1>&6
2187 else
2188 ac_save_LIBS="$LIBS"
2189 LIBS="-ldir $LIBS"
2190 cat > conftest.$ac_ext <<EOF
2191 #line 2192 "configure"
2192 #include "confdefs.h"
2193 /* Override any gcc2 internal prototype to avoid an error. */
2194 /* We use char because int might match the return type of a gcc2
2195 builtin and then its argument prototype would still apply. */
2196 char opendir();
2198 int main() {
2199 opendir()
2200 ; return 0; }
2202 if { (eval echo configure:2203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2203 rm -rf conftest*
2204 eval "ac_cv_lib_$ac_lib_var=yes"
2205 else
2206 echo "configure: failed program was:" >&5
2207 cat conftest.$ac_ext >&5
2208 rm -rf conftest*
2209 eval "ac_cv_lib_$ac_lib_var=no"
2211 rm -f conftest*
2212 LIBS="$ac_save_LIBS"
2215 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2216 echo "$ac_t""yes" 1>&6
2217 LIBS="$LIBS -ldir"
2218 else
2219 echo "$ac_t""no" 1>&6
2222 else
2223 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2224 echo "configure:2225: checking for opendir in -lx" >&5
2225 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2226 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2227 echo $ac_n "(cached) $ac_c" 1>&6
2228 else
2229 ac_save_LIBS="$LIBS"
2230 LIBS="-lx $LIBS"
2231 cat > conftest.$ac_ext <<EOF
2232 #line 2233 "configure"
2233 #include "confdefs.h"
2234 /* Override any gcc2 internal prototype to avoid an error. */
2235 /* We use char because int might match the return type of a gcc2
2236 builtin and then its argument prototype would still apply. */
2237 char opendir();
2239 int main() {
2240 opendir()
2241 ; return 0; }
2243 if { (eval echo configure:2244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2244 rm -rf conftest*
2245 eval "ac_cv_lib_$ac_lib_var=yes"
2246 else
2247 echo "configure: failed program was:" >&5
2248 cat conftest.$ac_ext >&5
2249 rm -rf conftest*
2250 eval "ac_cv_lib_$ac_lib_var=no"
2252 rm -f conftest*
2253 LIBS="$ac_save_LIBS"
2256 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2257 echo "$ac_t""yes" 1>&6
2258 LIBS="$LIBS -lx"
2259 else
2260 echo "$ac_t""no" 1>&6
2265 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2266 echo "configure:2267: checking whether time.h and sys/time.h may both be included" >&5
2267 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2268 echo $ac_n "(cached) $ac_c" 1>&6
2269 else
2270 cat > conftest.$ac_ext <<EOF
2271 #line 2272 "configure"
2272 #include "confdefs.h"
2273 #include <sys/types.h>
2274 #include <sys/time.h>
2275 #include <time.h>
2276 int main() {
2277 struct tm *tp;
2278 ; return 0; }
2280 if { (eval echo configure:2281: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2281 rm -rf conftest*
2282 ac_cv_header_time=yes
2283 else
2284 echo "configure: failed program was:" >&5
2285 cat conftest.$ac_ext >&5
2286 rm -rf conftest*
2287 ac_cv_header_time=no
2289 rm -f conftest*
2292 echo "$ac_t""$ac_cv_header_time" 1>&6
2293 if test $ac_cv_header_time = yes; then
2294 cat >> confdefs.h <<\EOF
2295 #define TIME_WITH_SYS_TIME 1
2300 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2301 echo "configure:2302: checking for sys/wait.h that is POSIX.1 compatible" >&5
2302 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2303 echo $ac_n "(cached) $ac_c" 1>&6
2304 else
2305 cat > conftest.$ac_ext <<EOF
2306 #line 2307 "configure"
2307 #include "confdefs.h"
2308 #include <sys/types.h>
2309 #include <sys/wait.h>
2310 #ifndef WEXITSTATUS
2311 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2312 #endif
2313 #ifndef WIFEXITED
2314 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2315 #endif
2316 int main() {
2317 int s;
2318 wait (&s);
2319 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2320 ; return 0; }
2322 if { (eval echo configure:2323: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2323 rm -rf conftest*
2324 ac_cv_header_sys_wait_h=yes
2325 else
2326 echo "configure: failed program was:" >&5
2327 cat conftest.$ac_ext >&5
2328 rm -rf conftest*
2329 ac_cv_header_sys_wait_h=no
2331 rm -f conftest*
2334 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2335 if test $ac_cv_header_sys_wait_h = yes; then
2336 cat >> confdefs.h <<\EOF
2337 #define HAVE_SYS_WAIT_H 1
2342 for ac_hdr in arpa/inet.h sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h
2344 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2345 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2346 echo "configure:2347: checking for $ac_hdr" >&5
2347 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2348 echo $ac_n "(cached) $ac_c" 1>&6
2349 else
2350 cat > conftest.$ac_ext <<EOF
2351 #line 2352 "configure"
2352 #include "confdefs.h"
2353 #include <$ac_hdr>
2355 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2356 { (eval echo configure:2357: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2357 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2358 if test -z "$ac_err"; then
2359 rm -rf conftest*
2360 eval "ac_cv_header_$ac_safe=yes"
2361 else
2362 echo "$ac_err" >&5
2363 echo "configure: failed program was:" >&5
2364 cat conftest.$ac_ext >&5
2365 rm -rf conftest*
2366 eval "ac_cv_header_$ac_safe=no"
2368 rm -f conftest*
2370 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2371 echo "$ac_t""yes" 1>&6
2372 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2373 cat >> confdefs.h <<EOF
2374 #define $ac_tr_hdr 1
2377 else
2378 echo "$ac_t""no" 1>&6
2380 done
2382 for ac_hdr in unistd.h utime.h grp.h sys/id.h limits.h memory.h net/if.h
2384 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2385 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2386 echo "configure:2387: checking for $ac_hdr" >&5
2387 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2388 echo $ac_n "(cached) $ac_c" 1>&6
2389 else
2390 cat > conftest.$ac_ext <<EOF
2391 #line 2392 "configure"
2392 #include "confdefs.h"
2393 #include <$ac_hdr>
2395 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2396 { (eval echo configure:2397: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2397 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2398 if test -z "$ac_err"; then
2399 rm -rf conftest*
2400 eval "ac_cv_header_$ac_safe=yes"
2401 else
2402 echo "$ac_err" >&5
2403 echo "configure: failed program was:" >&5
2404 cat conftest.$ac_ext >&5
2405 rm -rf conftest*
2406 eval "ac_cv_header_$ac_safe=no"
2408 rm -f conftest*
2410 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2411 echo "$ac_t""yes" 1>&6
2412 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2413 cat >> confdefs.h <<EOF
2414 #define $ac_tr_hdr 1
2417 else
2418 echo "$ac_t""no" 1>&6
2420 done
2422 for ac_hdr in compat.h rpc/rpc.h rpcsvc/nis.h rpcsvc/yp_prot.h rpcsvc/ypclnt.h
2424 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2425 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2426 echo "configure:2427: checking for $ac_hdr" >&5
2427 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2428 echo $ac_n "(cached) $ac_c" 1>&6
2429 else
2430 cat > conftest.$ac_ext <<EOF
2431 #line 2432 "configure"
2432 #include "confdefs.h"
2433 #include <$ac_hdr>
2435 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2436 { (eval echo configure:2437: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2437 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2438 if test -z "$ac_err"; then
2439 rm -rf conftest*
2440 eval "ac_cv_header_$ac_safe=yes"
2441 else
2442 echo "$ac_err" >&5
2443 echo "configure: failed program was:" >&5
2444 cat conftest.$ac_ext >&5
2445 rm -rf conftest*
2446 eval "ac_cv_header_$ac_safe=no"
2448 rm -f conftest*
2450 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2451 echo "$ac_t""yes" 1>&6
2452 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2453 cat >> confdefs.h <<EOF
2454 #define $ac_tr_hdr 1
2457 else
2458 echo "$ac_t""no" 1>&6
2460 done
2462 for ac_hdr in sys/param.h ctype.h sys/un.h sys/wait.h sys/resource.h sys/ioctl.h sys/ipc.h sys/mode.h
2464 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2465 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2466 echo "configure:2467: checking for $ac_hdr" >&5
2467 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2468 echo $ac_n "(cached) $ac_c" 1>&6
2469 else
2470 cat > conftest.$ac_ext <<EOF
2471 #line 2472 "configure"
2472 #include "confdefs.h"
2473 #include <$ac_hdr>
2475 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2476 { (eval echo configure:2477: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2477 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2478 if test -z "$ac_err"; then
2479 rm -rf conftest*
2480 eval "ac_cv_header_$ac_safe=yes"
2481 else
2482 echo "$ac_err" >&5
2483 echo "configure: failed program was:" >&5
2484 cat conftest.$ac_ext >&5
2485 rm -rf conftest*
2486 eval "ac_cv_header_$ac_safe=no"
2488 rm -f conftest*
2490 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2491 echo "$ac_t""yes" 1>&6
2492 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2493 cat >> confdefs.h <<EOF
2494 #define $ac_tr_hdr 1
2497 else
2498 echo "$ac_t""no" 1>&6
2500 done
2502 for ac_hdr in sys/mman.h sys/filio.h sys/priv.h sys/shm.h string.h strings.h stdlib.h sys/socket.h
2504 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2505 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2506 echo "configure:2507: checking for $ac_hdr" >&5
2507 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2508 echo $ac_n "(cached) $ac_c" 1>&6
2509 else
2510 cat > conftest.$ac_ext <<EOF
2511 #line 2512 "configure"
2512 #include "confdefs.h"
2513 #include <$ac_hdr>
2515 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2516 { (eval echo configure:2517: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2517 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2518 if test -z "$ac_err"; then
2519 rm -rf conftest*
2520 eval "ac_cv_header_$ac_safe=yes"
2521 else
2522 echo "$ac_err" >&5
2523 echo "configure: failed program was:" >&5
2524 cat conftest.$ac_ext >&5
2525 rm -rf conftest*
2526 eval "ac_cv_header_$ac_safe=no"
2528 rm -f conftest*
2530 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2531 echo "$ac_t""yes" 1>&6
2532 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2533 cat >> confdefs.h <<EOF
2534 #define $ac_tr_hdr 1
2537 else
2538 echo "$ac_t""no" 1>&6
2540 done
2542 for ac_hdr in sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h termio.h
2544 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2545 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2546 echo "configure:2547: checking for $ac_hdr" >&5
2547 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2548 echo $ac_n "(cached) $ac_c" 1>&6
2549 else
2550 cat > conftest.$ac_ext <<EOF
2551 #line 2552 "configure"
2552 #include "confdefs.h"
2553 #include <$ac_hdr>
2555 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2556 { (eval echo configure:2557: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2557 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2558 if test -z "$ac_err"; then
2559 rm -rf conftest*
2560 eval "ac_cv_header_$ac_safe=yes"
2561 else
2562 echo "$ac_err" >&5
2563 echo "configure: failed program was:" >&5
2564 cat conftest.$ac_ext >&5
2565 rm -rf conftest*
2566 eval "ac_cv_header_$ac_safe=no"
2568 rm -f conftest*
2570 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2571 echo "$ac_t""yes" 1>&6
2572 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2573 cat >> confdefs.h <<EOF
2574 #define $ac_tr_hdr 1
2577 else
2578 echo "$ac_t""no" 1>&6
2580 done
2582 for ac_hdr in sys/termio.h sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h
2584 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2585 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2586 echo "configure:2587: checking for $ac_hdr" >&5
2587 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2588 echo $ac_n "(cached) $ac_c" 1>&6
2589 else
2590 cat > conftest.$ac_ext <<EOF
2591 #line 2592 "configure"
2592 #include "confdefs.h"
2593 #include <$ac_hdr>
2595 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2596 { (eval echo configure:2597: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2597 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2598 if test -z "$ac_err"; then
2599 rm -rf conftest*
2600 eval "ac_cv_header_$ac_safe=yes"
2601 else
2602 echo "$ac_err" >&5
2603 echo "configure: failed program was:" >&5
2604 cat conftest.$ac_ext >&5
2605 rm -rf conftest*
2606 eval "ac_cv_header_$ac_safe=no"
2608 rm -f conftest*
2610 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2611 echo "$ac_t""yes" 1>&6
2612 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2613 cat >> confdefs.h <<EOF
2614 #define $ac_tr_hdr 1
2617 else
2618 echo "$ac_t""no" 1>&6
2620 done
2622 for ac_hdr in security/pam_modules.h security/_pam_macros.h
2624 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2625 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2626 echo "configure:2627: checking for $ac_hdr" >&5
2627 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2628 echo $ac_n "(cached) $ac_c" 1>&6
2629 else
2630 cat > conftest.$ac_ext <<EOF
2631 #line 2632 "configure"
2632 #include "confdefs.h"
2633 #include <$ac_hdr>
2635 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2636 { (eval echo configure:2637: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2637 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2638 if test -z "$ac_err"; then
2639 rm -rf conftest*
2640 eval "ac_cv_header_$ac_safe=yes"
2641 else
2642 echo "$ac_err" >&5
2643 echo "configure: failed program was:" >&5
2644 cat conftest.$ac_ext >&5
2645 rm -rf conftest*
2646 eval "ac_cv_header_$ac_safe=no"
2648 rm -f conftest*
2650 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2651 echo "$ac_t""yes" 1>&6
2652 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2653 cat >> confdefs.h <<EOF
2654 #define $ac_tr_hdr 1
2657 else
2658 echo "$ac_t""no" 1>&6
2660 done
2664 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
2665 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
2667 case "$host_os" in
2668 *hpux*)
2669 cat > conftest.$ac_ext <<EOF
2670 #line 2671 "configure"
2671 #include "confdefs.h"
2672 #include <shadow.h>
2673 int main() {
2674 struct spwd testme
2675 ; return 0; }
2677 if { (eval echo configure:2678: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2678 rm -rf conftest*
2679 ac_cv_header_shadow_h=yes
2680 else
2681 echo "configure: failed program was:" >&5
2682 cat conftest.$ac_ext >&5
2683 rm -rf conftest*
2684 ac_cv_header_shadow_h=no
2686 rm -f conftest*
2687 if test x"$ac_cv_header_shadow_h" = x"yes"; then
2688 cat >> confdefs.h <<\EOF
2689 #define HAVE_SHADOW_H 1
2694 esac
2695 for ac_hdr in shadow.h netinet/ip.h netinet/tcp.h netinet/in_systm.h netinet/in_ip.h
2697 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2698 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2699 echo "configure:2700: checking for $ac_hdr" >&5
2700 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2701 echo $ac_n "(cached) $ac_c" 1>&6
2702 else
2703 cat > conftest.$ac_ext <<EOF
2704 #line 2705 "configure"
2705 #include "confdefs.h"
2706 #include <$ac_hdr>
2708 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2709 { (eval echo configure:2710: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2710 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2711 if test -z "$ac_err"; then
2712 rm -rf conftest*
2713 eval "ac_cv_header_$ac_safe=yes"
2714 else
2715 echo "$ac_err" >&5
2716 echo "configure: failed program was:" >&5
2717 cat conftest.$ac_ext >&5
2718 rm -rf conftest*
2719 eval "ac_cv_header_$ac_safe=no"
2721 rm -f conftest*
2723 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2724 echo "$ac_t""yes" 1>&6
2725 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2726 cat >> confdefs.h <<EOF
2727 #define $ac_tr_hdr 1
2730 else
2731 echo "$ac_t""no" 1>&6
2733 done
2735 for ac_hdr in nss.h sys/security.h security/pam_appl.h security/pam_modules.h
2737 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2738 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2739 echo "configure:2740: checking for $ac_hdr" >&5
2740 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2741 echo $ac_n "(cached) $ac_c" 1>&6
2742 else
2743 cat > conftest.$ac_ext <<EOF
2744 #line 2745 "configure"
2745 #include "confdefs.h"
2746 #include <$ac_hdr>
2748 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2749 { (eval echo configure:2750: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2750 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2751 if test -z "$ac_err"; then
2752 rm -rf conftest*
2753 eval "ac_cv_header_$ac_safe=yes"
2754 else
2755 echo "$ac_err" >&5
2756 echo "configure: failed program was:" >&5
2757 cat conftest.$ac_ext >&5
2758 rm -rf conftest*
2759 eval "ac_cv_header_$ac_safe=no"
2761 rm -f conftest*
2763 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2764 echo "$ac_t""yes" 1>&6
2765 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2766 cat >> confdefs.h <<EOF
2767 #define $ac_tr_hdr 1
2770 else
2771 echo "$ac_t""no" 1>&6
2773 done
2775 for ac_hdr in stropts.h poll.h
2777 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2778 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2779 echo "configure:2780: checking for $ac_hdr" >&5
2780 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2781 echo $ac_n "(cached) $ac_c" 1>&6
2782 else
2783 cat > conftest.$ac_ext <<EOF
2784 #line 2785 "configure"
2785 #include "confdefs.h"
2786 #include <$ac_hdr>
2788 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2789 { (eval echo configure:2790: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2790 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2791 if test -z "$ac_err"; then
2792 rm -rf conftest*
2793 eval "ac_cv_header_$ac_safe=yes"
2794 else
2795 echo "$ac_err" >&5
2796 echo "configure: failed program was:" >&5
2797 cat conftest.$ac_ext >&5
2798 rm -rf conftest*
2799 eval "ac_cv_header_$ac_safe=no"
2801 rm -f conftest*
2803 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2804 echo "$ac_t""yes" 1>&6
2805 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2806 cat >> confdefs.h <<EOF
2807 #define $ac_tr_hdr 1
2810 else
2811 echo "$ac_t""no" 1>&6
2813 done
2815 for ac_hdr in sys/capability.h syscall.h sys/syscall.h
2817 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2818 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2819 echo "configure:2820: checking for $ac_hdr" >&5
2820 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2821 echo $ac_n "(cached) $ac_c" 1>&6
2822 else
2823 cat > conftest.$ac_ext <<EOF
2824 #line 2825 "configure"
2825 #include "confdefs.h"
2826 #include <$ac_hdr>
2828 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2829 { (eval echo configure:2830: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2830 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2831 if test -z "$ac_err"; then
2832 rm -rf conftest*
2833 eval "ac_cv_header_$ac_safe=yes"
2834 else
2835 echo "$ac_err" >&5
2836 echo "configure: failed program was:" >&5
2837 cat conftest.$ac_ext >&5
2838 rm -rf conftest*
2839 eval "ac_cv_header_$ac_safe=no"
2841 rm -f conftest*
2843 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2844 echo "$ac_t""yes" 1>&6
2845 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2846 cat >> confdefs.h <<EOF
2847 #define $ac_tr_hdr 1
2850 else
2851 echo "$ac_t""no" 1>&6
2853 done
2855 for ac_hdr in sys/acl.h sys/cdefs.h glob.h acl/acl.h
2857 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2858 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2859 echo "configure:2860: checking for $ac_hdr" >&5
2860 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2861 echo $ac_n "(cached) $ac_c" 1>&6
2862 else
2863 cat > conftest.$ac_ext <<EOF
2864 #line 2865 "configure"
2865 #include "confdefs.h"
2866 #include <$ac_hdr>
2868 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2869 { (eval echo configure:2870: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2870 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2871 if test -z "$ac_err"; then
2872 rm -rf conftest*
2873 eval "ac_cv_header_$ac_safe=yes"
2874 else
2875 echo "$ac_err" >&5
2876 echo "configure: failed program was:" >&5
2877 cat conftest.$ac_ext >&5
2878 rm -rf conftest*
2879 eval "ac_cv_header_$ac_safe=no"
2881 rm -f conftest*
2883 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2884 echo "$ac_t""yes" 1>&6
2885 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2886 cat >> confdefs.h <<EOF
2887 #define $ac_tr_hdr 1
2890 else
2891 echo "$ac_t""no" 1>&6
2893 done
2896 # For experimental utmp support (lastlog on some BSD-like systems)
2897 for ac_hdr in utmp.h utmpx.h lastlog.h
2899 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2900 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2901 echo "configure:2902: checking for $ac_hdr" >&5
2902 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2903 echo $ac_n "(cached) $ac_c" 1>&6
2904 else
2905 cat > conftest.$ac_ext <<EOF
2906 #line 2907 "configure"
2907 #include "confdefs.h"
2908 #include <$ac_hdr>
2910 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2911 { (eval echo configure:2912: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2912 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2913 if test -z "$ac_err"; then
2914 rm -rf conftest*
2915 eval "ac_cv_header_$ac_safe=yes"
2916 else
2917 echo "$ac_err" >&5
2918 echo "configure: failed program was:" >&5
2919 cat conftest.$ac_ext >&5
2920 rm -rf conftest*
2921 eval "ac_cv_header_$ac_safe=no"
2923 rm -f conftest*
2925 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2926 echo "$ac_t""yes" 1>&6
2927 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2928 cat >> confdefs.h <<EOF
2929 #define $ac_tr_hdr 1
2932 else
2933 echo "$ac_t""no" 1>&6
2935 done
2938 # For quotas on Veritas VxFS filesystems
2939 for ac_hdr in sys/fs/vx_quota.h
2941 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2942 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2943 echo "configure:2944: checking for $ac_hdr" >&5
2944 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2945 echo $ac_n "(cached) $ac_c" 1>&6
2946 else
2947 cat > conftest.$ac_ext <<EOF
2948 #line 2949 "configure"
2949 #include "confdefs.h"
2950 #include <$ac_hdr>
2952 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2953 { (eval echo configure:2954: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2954 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2955 if test -z "$ac_err"; then
2956 rm -rf conftest*
2957 eval "ac_cv_header_$ac_safe=yes"
2958 else
2959 echo "$ac_err" >&5
2960 echo "configure: failed program was:" >&5
2961 cat conftest.$ac_ext >&5
2962 rm -rf conftest*
2963 eval "ac_cv_header_$ac_safe=no"
2965 rm -f conftest*
2967 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2968 echo "$ac_t""yes" 1>&6
2969 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2970 cat >> confdefs.h <<EOF
2971 #define $ac_tr_hdr 1
2974 else
2975 echo "$ac_t""no" 1>&6
2977 done
2980 echo $ac_n "checking size of int""... $ac_c" 1>&6
2981 echo "configure:2982: checking size of int" >&5
2982 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2983 echo $ac_n "(cached) $ac_c" 1>&6
2984 else
2985 if test "$cross_compiling" = yes; then
2986 ac_cv_sizeof_int=cross
2987 else
2988 cat > conftest.$ac_ext <<EOF
2989 #line 2990 "configure"
2990 #include "confdefs.h"
2991 #include <stdio.h>
2992 #include <sys/types.h>
2993 main()
2995 FILE *f=fopen("conftestval", "w");
2996 if (!f) exit(1);
2997 fprintf(f, "%d\n", sizeof(int));
2998 exit(0);
3001 if { (eval echo configure:3002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3002 then
3003 ac_cv_sizeof_int=`cat conftestval`
3004 else
3005 echo "configure: failed program was:" >&5
3006 cat conftest.$ac_ext >&5
3007 rm -fr conftest*
3008 ac_cv_sizeof_int=0
3010 rm -fr conftest*
3014 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
3015 cat >> confdefs.h <<EOF
3016 #define SIZEOF_INT $ac_cv_sizeof_int
3020 echo $ac_n "checking size of long""... $ac_c" 1>&6
3021 echo "configure:3022: checking size of long" >&5
3022 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
3023 echo $ac_n "(cached) $ac_c" 1>&6
3024 else
3025 if test "$cross_compiling" = yes; then
3026 ac_cv_sizeof_long=cross
3027 else
3028 cat > conftest.$ac_ext <<EOF
3029 #line 3030 "configure"
3030 #include "confdefs.h"
3031 #include <stdio.h>
3032 #include <sys/types.h>
3033 main()
3035 FILE *f=fopen("conftestval", "w");
3036 if (!f) exit(1);
3037 fprintf(f, "%d\n", sizeof(long));
3038 exit(0);
3041 if { (eval echo configure:3042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3042 then
3043 ac_cv_sizeof_long=`cat conftestval`
3044 else
3045 echo "configure: failed program was:" >&5
3046 cat conftest.$ac_ext >&5
3047 rm -fr conftest*
3048 ac_cv_sizeof_long=0
3050 rm -fr conftest*
3054 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
3055 cat >> confdefs.h <<EOF
3056 #define SIZEOF_LONG $ac_cv_sizeof_long
3060 echo $ac_n "checking size of short""... $ac_c" 1>&6
3061 echo "configure:3062: checking size of short" >&5
3062 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
3063 echo $ac_n "(cached) $ac_c" 1>&6
3064 else
3065 if test "$cross_compiling" = yes; then
3066 ac_cv_sizeof_short=cross
3067 else
3068 cat > conftest.$ac_ext <<EOF
3069 #line 3070 "configure"
3070 #include "confdefs.h"
3071 #include <stdio.h>
3072 #include <sys/types.h>
3073 main()
3075 FILE *f=fopen("conftestval", "w");
3076 if (!f) exit(1);
3077 fprintf(f, "%d\n", sizeof(short));
3078 exit(0);
3081 if { (eval echo configure:3082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3082 then
3083 ac_cv_sizeof_short=`cat conftestval`
3084 else
3085 echo "configure: failed program was:" >&5
3086 cat conftest.$ac_ext >&5
3087 rm -fr conftest*
3088 ac_cv_sizeof_short=0
3090 rm -fr conftest*
3094 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
3095 cat >> confdefs.h <<EOF
3096 #define SIZEOF_SHORT $ac_cv_sizeof_short
3101 echo $ac_n "checking for working const""... $ac_c" 1>&6
3102 echo "configure:3103: checking for working const" >&5
3103 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3104 echo $ac_n "(cached) $ac_c" 1>&6
3105 else
3106 cat > conftest.$ac_ext <<EOF
3107 #line 3108 "configure"
3108 #include "confdefs.h"
3110 int main() {
3112 /* Ultrix mips cc rejects this. */
3113 typedef int charset[2]; const charset x;
3114 /* SunOS 4.1.1 cc rejects this. */
3115 char const *const *ccp;
3116 char **p;
3117 /* NEC SVR4.0.2 mips cc rejects this. */
3118 struct point {int x, y;};
3119 static struct point const zero = {0,0};
3120 /* AIX XL C 1.02.0.0 rejects this.
3121 It does not let you subtract one const X* pointer from another in an arm
3122 of an if-expression whose if-part is not a constant expression */
3123 const char *g = "string";
3124 ccp = &g + (g ? g-g : 0);
3125 /* HPUX 7.0 cc rejects these. */
3126 ++ccp;
3127 p = (char**) ccp;
3128 ccp = (char const *const *) p;
3129 { /* SCO 3.2v4 cc rejects this. */
3130 char *t;
3131 char const *s = 0 ? (char *) 0 : (char const *) 0;
3133 *t++ = 0;
3135 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3136 int x[] = {25, 17};
3137 const int *foo = &x[0];
3138 ++foo;
3140 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3141 typedef const int *iptr;
3142 iptr p = 0;
3143 ++p;
3145 { /* AIX XL C 1.02.0.0 rejects this saying
3146 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3147 struct s { int j; const int *ap[3]; };
3148 struct s *b; b->j = 5;
3150 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3151 const int foo = 10;
3154 ; return 0; }
3156 if { (eval echo configure:3157: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3157 rm -rf conftest*
3158 ac_cv_c_const=yes
3159 else
3160 echo "configure: failed program was:" >&5
3161 cat conftest.$ac_ext >&5
3162 rm -rf conftest*
3163 ac_cv_c_const=no
3165 rm -f conftest*
3168 echo "$ac_t""$ac_cv_c_const" 1>&6
3169 if test $ac_cv_c_const = no; then
3170 cat >> confdefs.h <<\EOF
3171 #define const
3176 echo $ac_n "checking for inline""... $ac_c" 1>&6
3177 echo "configure:3178: checking for inline" >&5
3178 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3179 echo $ac_n "(cached) $ac_c" 1>&6
3180 else
3181 ac_cv_c_inline=no
3182 for ac_kw in inline __inline__ __inline; do
3183 cat > conftest.$ac_ext <<EOF
3184 #line 3185 "configure"
3185 #include "confdefs.h"
3187 int main() {
3188 } $ac_kw foo() {
3189 ; return 0; }
3191 if { (eval echo configure:3192: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3192 rm -rf conftest*
3193 ac_cv_c_inline=$ac_kw; break
3194 else
3195 echo "configure: failed program was:" >&5
3196 cat conftest.$ac_ext >&5
3198 rm -f conftest*
3199 done
3203 echo "$ac_t""$ac_cv_c_inline" 1>&6
3204 case "$ac_cv_c_inline" in
3205 inline | yes) ;;
3206 no) cat >> confdefs.h <<\EOF
3207 #define inline
3210 *) cat >> confdefs.h <<EOF
3211 #define inline $ac_cv_c_inline
3214 esac
3216 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3217 echo "configure:3218: checking whether byte ordering is bigendian" >&5
3218 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3219 echo $ac_n "(cached) $ac_c" 1>&6
3220 else
3221 ac_cv_c_bigendian=unknown
3222 # See if sys/param.h defines the BYTE_ORDER macro.
3223 cat > conftest.$ac_ext <<EOF
3224 #line 3225 "configure"
3225 #include "confdefs.h"
3226 #include <sys/types.h>
3227 #include <sys/param.h>
3228 int main() {
3230 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3231 bogus endian macros
3232 #endif
3233 ; return 0; }
3235 if { (eval echo configure:3236: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3236 rm -rf conftest*
3237 # It does; now see whether it defined to BIG_ENDIAN or not.
3238 cat > conftest.$ac_ext <<EOF
3239 #line 3240 "configure"
3240 #include "confdefs.h"
3241 #include <sys/types.h>
3242 #include <sys/param.h>
3243 int main() {
3245 #if BYTE_ORDER != BIG_ENDIAN
3246 not big endian
3247 #endif
3248 ; return 0; }
3250 if { (eval echo configure:3251: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3251 rm -rf conftest*
3252 ac_cv_c_bigendian=yes
3253 else
3254 echo "configure: failed program was:" >&5
3255 cat conftest.$ac_ext >&5
3256 rm -rf conftest*
3257 ac_cv_c_bigendian=no
3259 rm -f conftest*
3260 else
3261 echo "configure: failed program was:" >&5
3262 cat conftest.$ac_ext >&5
3264 rm -f conftest*
3265 if test $ac_cv_c_bigendian = unknown; then
3266 if test "$cross_compiling" = yes; then
3267 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3268 else
3269 cat > conftest.$ac_ext <<EOF
3270 #line 3271 "configure"
3271 #include "confdefs.h"
3272 main () {
3273 /* Are we little or big endian? From Harbison&Steele. */
3274 union
3276 long l;
3277 char c[sizeof (long)];
3278 } u;
3279 u.l = 1;
3280 exit (u.c[sizeof (long) - 1] == 1);
3283 if { (eval echo configure:3284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3284 then
3285 ac_cv_c_bigendian=no
3286 else
3287 echo "configure: failed program was:" >&5
3288 cat conftest.$ac_ext >&5
3289 rm -fr conftest*
3290 ac_cv_c_bigendian=yes
3292 rm -fr conftest*
3298 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3299 if test $ac_cv_c_bigendian = yes; then
3300 cat >> confdefs.h <<\EOF
3301 #define WORDS_BIGENDIAN 1
3306 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
3307 echo "configure:3308: checking whether char is unsigned" >&5
3308 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
3309 echo $ac_n "(cached) $ac_c" 1>&6
3310 else
3311 if test "$GCC" = yes; then
3312 # GCC predefines this symbol on systems where it applies.
3313 cat > conftest.$ac_ext <<EOF
3314 #line 3315 "configure"
3315 #include "confdefs.h"
3316 #ifdef __CHAR_UNSIGNED__
3318 #endif
3321 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3322 egrep "yes" >/dev/null 2>&1; then
3323 rm -rf conftest*
3324 ac_cv_c_char_unsigned=yes
3325 else
3326 rm -rf conftest*
3327 ac_cv_c_char_unsigned=no
3329 rm -f conftest*
3331 else
3332 if test "$cross_compiling" = yes; then
3333 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3334 else
3335 cat > conftest.$ac_ext <<EOF
3336 #line 3337 "configure"
3337 #include "confdefs.h"
3338 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
3339 #if !defined(__STDC__) || __STDC__ != 1
3340 #define volatile
3341 #endif
3342 main() {
3343 volatile char c = 255; exit(c < 0);
3346 if { (eval echo configure:3347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3347 then
3348 ac_cv_c_char_unsigned=yes
3349 else
3350 echo "configure: failed program was:" >&5
3351 cat conftest.$ac_ext >&5
3352 rm -fr conftest*
3353 ac_cv_c_char_unsigned=no
3355 rm -fr conftest*
3361 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
3362 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
3363 cat >> confdefs.h <<\EOF
3364 #define __CHAR_UNSIGNED__ 1
3370 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3371 echo "configure:3372: checking return type of signal handlers" >&5
3372 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3373 echo $ac_n "(cached) $ac_c" 1>&6
3374 else
3375 cat > conftest.$ac_ext <<EOF
3376 #line 3377 "configure"
3377 #include "confdefs.h"
3378 #include <sys/types.h>
3379 #include <signal.h>
3380 #ifdef signal
3381 #undef signal
3382 #endif
3383 #ifdef __cplusplus
3384 extern "C" void (*signal (int, void (*)(int)))(int);
3385 #else
3386 void (*signal ()) ();
3387 #endif
3389 int main() {
3390 int i;
3391 ; return 0; }
3393 if { (eval echo configure:3394: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3394 rm -rf conftest*
3395 ac_cv_type_signal=void
3396 else
3397 echo "configure: failed program was:" >&5
3398 cat conftest.$ac_ext >&5
3399 rm -rf conftest*
3400 ac_cv_type_signal=int
3402 rm -f conftest*
3405 echo "$ac_t""$ac_cv_type_signal" 1>&6
3406 cat >> confdefs.h <<EOF
3407 #define RETSIGTYPE $ac_cv_type_signal
3411 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3412 echo "configure:3413: checking for uid_t in sys/types.h" >&5
3413 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3414 echo $ac_n "(cached) $ac_c" 1>&6
3415 else
3416 cat > conftest.$ac_ext <<EOF
3417 #line 3418 "configure"
3418 #include "confdefs.h"
3419 #include <sys/types.h>
3421 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3422 egrep "uid_t" >/dev/null 2>&1; then
3423 rm -rf conftest*
3424 ac_cv_type_uid_t=yes
3425 else
3426 rm -rf conftest*
3427 ac_cv_type_uid_t=no
3429 rm -f conftest*
3433 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3434 if test $ac_cv_type_uid_t = no; then
3435 cat >> confdefs.h <<\EOF
3436 #define uid_t int
3439 cat >> confdefs.h <<\EOF
3440 #define gid_t int
3445 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3446 echo "configure:3447: checking for mode_t" >&5
3447 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3448 echo $ac_n "(cached) $ac_c" 1>&6
3449 else
3450 cat > conftest.$ac_ext <<EOF
3451 #line 3452 "configure"
3452 #include "confdefs.h"
3453 #include <sys/types.h>
3454 #if STDC_HEADERS
3455 #include <stdlib.h>
3456 #include <stddef.h>
3457 #endif
3459 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3460 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3461 rm -rf conftest*
3462 ac_cv_type_mode_t=yes
3463 else
3464 rm -rf conftest*
3465 ac_cv_type_mode_t=no
3467 rm -f conftest*
3470 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3471 if test $ac_cv_type_mode_t = no; then
3472 cat >> confdefs.h <<\EOF
3473 #define mode_t int
3478 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3479 echo "configure:3480: checking for off_t" >&5
3480 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3481 echo $ac_n "(cached) $ac_c" 1>&6
3482 else
3483 cat > conftest.$ac_ext <<EOF
3484 #line 3485 "configure"
3485 #include "confdefs.h"
3486 #include <sys/types.h>
3487 #if STDC_HEADERS
3488 #include <stdlib.h>
3489 #include <stddef.h>
3490 #endif
3492 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3493 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3494 rm -rf conftest*
3495 ac_cv_type_off_t=yes
3496 else
3497 rm -rf conftest*
3498 ac_cv_type_off_t=no
3500 rm -f conftest*
3503 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3504 if test $ac_cv_type_off_t = no; then
3505 cat >> confdefs.h <<\EOF
3506 #define off_t long
3511 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3512 echo "configure:3513: checking for size_t" >&5
3513 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3514 echo $ac_n "(cached) $ac_c" 1>&6
3515 else
3516 cat > conftest.$ac_ext <<EOF
3517 #line 3518 "configure"
3518 #include "confdefs.h"
3519 #include <sys/types.h>
3520 #if STDC_HEADERS
3521 #include <stdlib.h>
3522 #include <stddef.h>
3523 #endif
3525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3526 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3527 rm -rf conftest*
3528 ac_cv_type_size_t=yes
3529 else
3530 rm -rf conftest*
3531 ac_cv_type_size_t=no
3533 rm -f conftest*
3536 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3537 if test $ac_cv_type_size_t = no; then
3538 cat >> confdefs.h <<\EOF
3539 #define size_t unsigned
3544 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3545 echo "configure:3546: checking for pid_t" >&5
3546 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3547 echo $ac_n "(cached) $ac_c" 1>&6
3548 else
3549 cat > conftest.$ac_ext <<EOF
3550 #line 3551 "configure"
3551 #include "confdefs.h"
3552 #include <sys/types.h>
3553 #if STDC_HEADERS
3554 #include <stdlib.h>
3555 #include <stddef.h>
3556 #endif
3558 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3559 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3560 rm -rf conftest*
3561 ac_cv_type_pid_t=yes
3562 else
3563 rm -rf conftest*
3564 ac_cv_type_pid_t=no
3566 rm -f conftest*
3569 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3570 if test $ac_cv_type_pid_t = no; then
3571 cat >> confdefs.h <<\EOF
3572 #define pid_t int
3577 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3578 echo "configure:3579: checking for st_rdev in struct stat" >&5
3579 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3580 echo $ac_n "(cached) $ac_c" 1>&6
3581 else
3582 cat > conftest.$ac_ext <<EOF
3583 #line 3584 "configure"
3584 #include "confdefs.h"
3585 #include <sys/types.h>
3586 #include <sys/stat.h>
3587 int main() {
3588 struct stat s; s.st_rdev;
3589 ; return 0; }
3591 if { (eval echo configure:3592: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3592 rm -rf conftest*
3593 ac_cv_struct_st_rdev=yes
3594 else
3595 echo "configure: failed program was:" >&5
3596 cat conftest.$ac_ext >&5
3597 rm -rf conftest*
3598 ac_cv_struct_st_rdev=no
3600 rm -f conftest*
3603 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3604 if test $ac_cv_struct_st_rdev = yes; then
3605 cat >> confdefs.h <<\EOF
3606 #define HAVE_ST_RDEV 1
3611 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
3612 echo "configure:3613: checking for d_off in dirent" >&5
3613 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
3614 echo $ac_n "(cached) $ac_c" 1>&6
3615 else
3616 cat > conftest.$ac_ext <<EOF
3617 #line 3618 "configure"
3618 #include "confdefs.h"
3620 #include <unistd.h>
3621 #include <sys/types.h>
3622 #include <dirent.h>
3623 int main() {
3624 struct dirent d; d.d_off;
3625 ; return 0; }
3627 if { (eval echo configure:3628: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3628 rm -rf conftest*
3629 ac_cv_dirent_d_off=yes
3630 else
3631 echo "configure: failed program was:" >&5
3632 cat conftest.$ac_ext >&5
3633 rm -rf conftest*
3634 ac_cv_dirent_d_off=no
3636 rm -f conftest*
3639 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
3640 if test $ac_cv_dirent_d_off = yes; then
3641 cat >> confdefs.h <<\EOF
3642 #define HAVE_DIRENT_D_OFF 1
3647 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
3648 echo "configure:3649: checking for ino_t" >&5
3649 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
3650 echo $ac_n "(cached) $ac_c" 1>&6
3651 else
3652 cat > conftest.$ac_ext <<EOF
3653 #line 3654 "configure"
3654 #include "confdefs.h"
3655 #include <sys/types.h>
3656 #if STDC_HEADERS
3657 #include <stdlib.h>
3658 #include <stddef.h>
3659 #endif
3661 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3662 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3663 rm -rf conftest*
3664 ac_cv_type_ino_t=yes
3665 else
3666 rm -rf conftest*
3667 ac_cv_type_ino_t=no
3669 rm -f conftest*
3672 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
3673 if test $ac_cv_type_ino_t = no; then
3674 cat >> confdefs.h <<\EOF
3675 #define ino_t unsigned
3680 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3681 echo "configure:3682: checking for loff_t" >&5
3682 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
3683 echo $ac_n "(cached) $ac_c" 1>&6
3684 else
3685 cat > conftest.$ac_ext <<EOF
3686 #line 3687 "configure"
3687 #include "confdefs.h"
3688 #include <sys/types.h>
3689 #if STDC_HEADERS
3690 #include <stdlib.h>
3691 #include <stddef.h>
3692 #endif
3694 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3695 egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3696 rm -rf conftest*
3697 ac_cv_type_loff_t=yes
3698 else
3699 rm -rf conftest*
3700 ac_cv_type_loff_t=no
3702 rm -f conftest*
3705 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
3706 if test $ac_cv_type_loff_t = no; then
3707 cat >> confdefs.h <<\EOF
3708 #define loff_t off_t
3713 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
3714 echo "configure:3715: checking for offset_t" >&5
3715 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
3716 echo $ac_n "(cached) $ac_c" 1>&6
3717 else
3718 cat > conftest.$ac_ext <<EOF
3719 #line 3720 "configure"
3720 #include "confdefs.h"
3721 #include <sys/types.h>
3722 #if STDC_HEADERS
3723 #include <stdlib.h>
3724 #include <stddef.h>
3725 #endif
3727 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3728 egrep "(^|[^a-zA-Z_0-9])offset_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3729 rm -rf conftest*
3730 ac_cv_type_offset_t=yes
3731 else
3732 rm -rf conftest*
3733 ac_cv_type_offset_t=no
3735 rm -f conftest*
3738 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
3739 if test $ac_cv_type_offset_t = no; then
3740 cat >> confdefs.h <<\EOF
3741 #define offset_t loff_t
3746 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3747 echo "configure:3748: checking for ssize_t" >&5
3748 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3749 echo $ac_n "(cached) $ac_c" 1>&6
3750 else
3751 cat > conftest.$ac_ext <<EOF
3752 #line 3753 "configure"
3753 #include "confdefs.h"
3754 #include <sys/types.h>
3755 #if STDC_HEADERS
3756 #include <stdlib.h>
3757 #include <stddef.h>
3758 #endif
3760 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3761 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3762 rm -rf conftest*
3763 ac_cv_type_ssize_t=yes
3764 else
3765 rm -rf conftest*
3766 ac_cv_type_ssize_t=no
3768 rm -f conftest*
3771 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3772 if test $ac_cv_type_ssize_t = no; then
3773 cat >> confdefs.h <<\EOF
3774 #define ssize_t int
3779 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
3780 echo "configure:3781: checking for wchar_t" >&5
3781 if eval "test \"`echo '$''{'ac_cv_type_wchar_t'+set}'`\" = set"; then
3782 echo $ac_n "(cached) $ac_c" 1>&6
3783 else
3784 cat > conftest.$ac_ext <<EOF
3785 #line 3786 "configure"
3786 #include "confdefs.h"
3787 #include <sys/types.h>
3788 #if STDC_HEADERS
3789 #include <stdlib.h>
3790 #include <stddef.h>
3791 #endif
3793 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3794 egrep "(^|[^a-zA-Z_0-9])wchar_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3795 rm -rf conftest*
3796 ac_cv_type_wchar_t=yes
3797 else
3798 rm -rf conftest*
3799 ac_cv_type_wchar_t=no
3801 rm -f conftest*
3804 echo "$ac_t""$ac_cv_type_wchar_t" 1>&6
3805 if test $ac_cv_type_wchar_t = no; then
3806 cat >> confdefs.h <<\EOF
3807 #define wchar_t unsigned short
3813 # we need libcups for CUPS support...
3814 echo $ac_n "checking for httpConnect in -lcups""... $ac_c" 1>&6
3815 echo "configure:3816: checking for httpConnect in -lcups" >&5
3816 ac_lib_var=`echo cups'_'httpConnect | sed 'y%./+-%__p_%'`
3817 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3818 echo $ac_n "(cached) $ac_c" 1>&6
3819 else
3820 ac_save_LIBS="$LIBS"
3821 LIBS="-lcups $LIBS"
3822 cat > conftest.$ac_ext <<EOF
3823 #line 3824 "configure"
3824 #include "confdefs.h"
3825 /* Override any gcc2 internal prototype to avoid an error. */
3826 /* We use char because int might match the return type of a gcc2
3827 builtin and then its argument prototype would still apply. */
3828 char httpConnect();
3830 int main() {
3831 httpConnect()
3832 ; return 0; }
3834 if { (eval echo configure:3835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3835 rm -rf conftest*
3836 eval "ac_cv_lib_$ac_lib_var=yes"
3837 else
3838 echo "configure: failed program was:" >&5
3839 cat conftest.$ac_ext >&5
3840 rm -rf conftest*
3841 eval "ac_cv_lib_$ac_lib_var=no"
3843 rm -f conftest*
3844 LIBS="$ac_save_LIBS"
3847 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3848 echo "$ac_t""yes" 1>&6
3849 ac_tr_lib=HAVE_LIB`echo cups | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3850 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3851 cat >> confdefs.h <<EOF
3852 #define $ac_tr_lib 1
3855 LIBS="-lcups $LIBS"
3857 else
3858 echo "$ac_t""no" 1>&6
3862 # we need libdl for PAM and the new VFS code
3863 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3864 echo "configure:3865: checking for dlopen in -ldl" >&5
3865 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3866 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3867 echo $ac_n "(cached) $ac_c" 1>&6
3868 else
3869 ac_save_LIBS="$LIBS"
3870 LIBS="-ldl $LIBS"
3871 cat > conftest.$ac_ext <<EOF
3872 #line 3873 "configure"
3873 #include "confdefs.h"
3874 /* Override any gcc2 internal prototype to avoid an error. */
3875 /* We use char because int might match the return type of a gcc2
3876 builtin and then its argument prototype would still apply. */
3877 char dlopen();
3879 int main() {
3880 dlopen()
3881 ; return 0; }
3883 if { (eval echo configure:3884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3884 rm -rf conftest*
3885 eval "ac_cv_lib_$ac_lib_var=yes"
3886 else
3887 echo "configure: failed program was:" >&5
3888 cat conftest.$ac_ext >&5
3889 rm -rf conftest*
3890 eval "ac_cv_lib_$ac_lib_var=no"
3892 rm -f conftest*
3893 LIBS="$ac_save_LIBS"
3896 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3897 echo "$ac_t""yes" 1>&6
3898 LIBS="$LIBS -ldl";
3899 cat >> confdefs.h <<\EOF
3900 #define HAVE_LIBDL 1
3903 else
3904 echo "$ac_t""no" 1>&6
3908 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
3909 echo "configure:3910: checking for sig_atomic_t type" >&5
3910 if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+set}'`\" = set"; then
3911 echo $ac_n "(cached) $ac_c" 1>&6
3912 else
3914 cat > conftest.$ac_ext <<EOF
3915 #line 3916 "configure"
3916 #include "confdefs.h"
3918 #include <sys/types.h>
3919 #if STDC_HEADERS
3920 #include <stdlib.h>
3921 #include <stddef.h>
3922 #endif
3923 #include <signal.h>
3924 int main() {
3925 sig_atomic_t i = 0
3926 ; return 0; }
3928 if { (eval echo configure:3929: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3929 rm -rf conftest*
3930 samba_cv_sig_atomic_t=yes
3931 else
3932 echo "configure: failed program was:" >&5
3933 cat conftest.$ac_ext >&5
3934 rm -rf conftest*
3935 samba_cv_sig_atomic_t=no
3937 rm -f conftest*
3940 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
3941 if test x"$samba_cv_sig_atomic_t" = x"yes"; then
3942 cat >> confdefs.h <<\EOF
3943 #define HAVE_SIG_ATOMIC_T_TYPE 1
3948 # stupid headers have the functions but no declaration. grrrr.
3950 echo $ac_n "checking for errno declaration""... $ac_c" 1>&6
3951 echo "configure:3952: checking for errno declaration" >&5
3952 if eval "test \"`echo '$''{'ac_cv_have_errno_decl'+set}'`\" = set"; then
3953 echo $ac_n "(cached) $ac_c" 1>&6
3954 else
3956 cat > conftest.$ac_ext <<EOF
3957 #line 3958 "configure"
3958 #include "confdefs.h"
3959 #include <errno.h>
3960 int main() {
3961 int i = (int)errno
3962 ; return 0; }
3964 if { (eval echo configure:3965: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3965 rm -rf conftest*
3966 ac_cv_have_errno_decl=yes
3967 else
3968 echo "configure: failed program was:" >&5
3969 cat conftest.$ac_ext >&5
3970 rm -rf conftest*
3971 ac_cv_have_errno_decl=no
3973 rm -f conftest*
3976 echo "$ac_t""$ac_cv_have_errno_decl" 1>&6
3977 if test x"$ac_cv_have_errno_decl" = x"yes"; then
3978 cat >> confdefs.h <<\EOF
3979 #define HAVE_ERRNO_DECL 1
3985 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
3986 echo "configure:3987: checking for setresuid declaration" >&5
3987 if eval "test \"`echo '$''{'ac_cv_have_setresuid_decl'+set}'`\" = set"; then
3988 echo $ac_n "(cached) $ac_c" 1>&6
3989 else
3991 cat > conftest.$ac_ext <<EOF
3992 #line 3993 "configure"
3993 #include "confdefs.h"
3994 #include <unistd.h>
3995 int main() {
3996 int i = (int)setresuid
3997 ; return 0; }
3999 if { (eval echo configure:4000: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4000 rm -rf conftest*
4001 ac_cv_have_setresuid_decl=yes
4002 else
4003 echo "configure: failed program was:" >&5
4004 cat conftest.$ac_ext >&5
4005 rm -rf conftest*
4006 ac_cv_have_setresuid_decl=no
4008 rm -f conftest*
4011 echo "$ac_t""$ac_cv_have_setresuid_decl" 1>&6
4012 if test x"$ac_cv_have_setresuid_decl" = x"yes"; then
4013 cat >> confdefs.h <<\EOF
4014 #define HAVE_SETRESUID_DECL 1
4020 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
4021 echo "configure:4022: checking for setresgid declaration" >&5
4022 if eval "test \"`echo '$''{'ac_cv_have_setresgid_decl'+set}'`\" = set"; then
4023 echo $ac_n "(cached) $ac_c" 1>&6
4024 else
4026 cat > conftest.$ac_ext <<EOF
4027 #line 4028 "configure"
4028 #include "confdefs.h"
4029 #include <unistd.h>
4030 int main() {
4031 int i = (int)setresgid
4032 ; return 0; }
4034 if { (eval echo configure:4035: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4035 rm -rf conftest*
4036 ac_cv_have_setresgid_decl=yes
4037 else
4038 echo "configure: failed program was:" >&5
4039 cat conftest.$ac_ext >&5
4040 rm -rf conftest*
4041 ac_cv_have_setresgid_decl=no
4043 rm -f conftest*
4046 echo "$ac_t""$ac_cv_have_setresgid_decl" 1>&6
4047 if test x"$ac_cv_have_setresgid_decl" = x"yes"; then
4048 cat >> confdefs.h <<\EOF
4049 #define HAVE_SETRESGID_DECL 1
4055 echo $ac_n "checking for asprintf declaration""... $ac_c" 1>&6
4056 echo "configure:4057: checking for asprintf declaration" >&5
4057 if eval "test \"`echo '$''{'ac_cv_have_asprintf_decl'+set}'`\" = set"; then
4058 echo $ac_n "(cached) $ac_c" 1>&6
4059 else
4061 cat > conftest.$ac_ext <<EOF
4062 #line 4063 "configure"
4063 #include "confdefs.h"
4064 #include <stdio.h>
4065 int main() {
4066 int i = (int)asprintf
4067 ; return 0; }
4069 if { (eval echo configure:4070: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4070 rm -rf conftest*
4071 ac_cv_have_asprintf_decl=yes
4072 else
4073 echo "configure: failed program was:" >&5
4074 cat conftest.$ac_ext >&5
4075 rm -rf conftest*
4076 ac_cv_have_asprintf_decl=no
4078 rm -f conftest*
4081 echo "$ac_t""$ac_cv_have_asprintf_decl" 1>&6
4082 if test x"$ac_cv_have_asprintf_decl" = x"yes"; then
4083 cat >> confdefs.h <<\EOF
4084 #define HAVE_ASPRINTF_DECL 1
4090 echo $ac_n "checking for vasprintf declaration""... $ac_c" 1>&6
4091 echo "configure:4092: checking for vasprintf declaration" >&5
4092 if eval "test \"`echo '$''{'ac_cv_have_vasprintf_decl'+set}'`\" = set"; then
4093 echo $ac_n "(cached) $ac_c" 1>&6
4094 else
4096 cat > conftest.$ac_ext <<EOF
4097 #line 4098 "configure"
4098 #include "confdefs.h"
4099 #include <stdio.h>
4100 int main() {
4101 int i = (int)vasprintf
4102 ; return 0; }
4104 if { (eval echo configure:4105: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4105 rm -rf conftest*
4106 ac_cv_have_vasprintf_decl=yes
4107 else
4108 echo "configure: failed program was:" >&5
4109 cat conftest.$ac_ext >&5
4110 rm -rf conftest*
4111 ac_cv_have_vasprintf_decl=no
4113 rm -f conftest*
4116 echo "$ac_t""$ac_cv_have_vasprintf_decl" 1>&6
4117 if test x"$ac_cv_have_vasprintf_decl" = x"yes"; then
4118 cat >> confdefs.h <<\EOF
4119 #define HAVE_VASPRINTF_DECL 1
4125 echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6
4126 echo "configure:4127: checking for vsnprintf declaration" >&5
4127 if eval "test \"`echo '$''{'ac_cv_have_vsnprintf_decl'+set}'`\" = set"; then
4128 echo $ac_n "(cached) $ac_c" 1>&6
4129 else
4131 cat > conftest.$ac_ext <<EOF
4132 #line 4133 "configure"
4133 #include "confdefs.h"
4134 #include <stdio.h>
4135 int main() {
4136 int i = (int)vsnprintf
4137 ; return 0; }
4139 if { (eval echo configure:4140: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4140 rm -rf conftest*
4141 ac_cv_have_vsnprintf_decl=yes
4142 else
4143 echo "configure: failed program was:" >&5
4144 cat conftest.$ac_ext >&5
4145 rm -rf conftest*
4146 ac_cv_have_vsnprintf_decl=no
4148 rm -f conftest*
4151 echo "$ac_t""$ac_cv_have_vsnprintf_decl" 1>&6
4152 if test x"$ac_cv_have_vsnprintf_decl" = x"yes"; then
4153 cat >> confdefs.h <<\EOF
4154 #define HAVE_VSNPRINTF_DECL 1
4160 echo $ac_n "checking for snprintf declaration""... $ac_c" 1>&6
4161 echo "configure:4162: checking for snprintf declaration" >&5
4162 if eval "test \"`echo '$''{'ac_cv_have_snprintf_decl'+set}'`\" = set"; then
4163 echo $ac_n "(cached) $ac_c" 1>&6
4164 else
4166 cat > conftest.$ac_ext <<EOF
4167 #line 4168 "configure"
4168 #include "confdefs.h"
4169 #include <stdio.h>
4170 int main() {
4171 int i = (int)snprintf
4172 ; return 0; }
4174 if { (eval echo configure:4175: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4175 rm -rf conftest*
4176 ac_cv_have_snprintf_decl=yes
4177 else
4178 echo "configure: failed program was:" >&5
4179 cat conftest.$ac_ext >&5
4180 rm -rf conftest*
4181 ac_cv_have_snprintf_decl=no
4183 rm -f conftest*
4186 echo "$ac_t""$ac_cv_have_snprintf_decl" 1>&6
4187 if test x"$ac_cv_have_snprintf_decl" = x"yes"; then
4188 cat >> confdefs.h <<\EOF
4189 #define HAVE_SNPRINTF_DECL 1
4195 # and glibc has setresuid under linux but the function does
4196 # nothing until kernel 2.1.44! very dumb.
4197 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
4198 echo "configure:4199: checking for real setresuid" >&5
4199 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
4200 echo $ac_n "(cached) $ac_c" 1>&6
4201 else
4203 if test "$cross_compiling" = yes; then
4204 samba_cv_have_setresuid=cross
4205 else
4206 cat > conftest.$ac_ext <<EOF
4207 #line 4208 "configure"
4208 #include "confdefs.h"
4209 #include <errno.h>
4210 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
4212 if { (eval echo configure:4213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4213 then
4214 samba_cv_have_setresuid=yes
4215 else
4216 echo "configure: failed program was:" >&5
4217 cat conftest.$ac_ext >&5
4218 rm -fr conftest*
4219 samba_cv_have_setresuid=no
4221 rm -fr conftest*
4226 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
4227 if test x"$samba_cv_have_setresuid" = x"yes"; then
4228 cat >> confdefs.h <<\EOF
4229 #define HAVE_SETRESUID 1
4234 # Do the same check for setresguid...
4236 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
4237 echo "configure:4238: checking for real setresgid" >&5
4238 if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then
4239 echo $ac_n "(cached) $ac_c" 1>&6
4240 else
4242 if test "$cross_compiling" = yes; then
4243 samba_cv_have_setresgid=cross
4244 else
4245 cat > conftest.$ac_ext <<EOF
4246 #line 4247 "configure"
4247 #include "confdefs.h"
4248 #include <unistd.h>
4249 #include <errno.h>
4250 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
4252 if { (eval echo configure:4253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4253 then
4254 samba_cv_have_setresgid=yes
4255 else
4256 echo "configure: failed program was:" >&5
4257 cat conftest.$ac_ext >&5
4258 rm -fr conftest*
4259 samba_cv_have_setresgid=no
4261 rm -fr conftest*
4266 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
4267 if test x"$samba_cv_have_setresgid" = x"yes"; then
4268 cat >> confdefs.h <<\EOF
4269 #define HAVE_SETRESGID 1
4274 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
4275 echo "configure:4276: checking for 8-bit clean memcmp" >&5
4276 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
4277 echo $ac_n "(cached) $ac_c" 1>&6
4278 else
4279 if test "$cross_compiling" = yes; then
4280 ac_cv_func_memcmp_clean=no
4281 else
4282 cat > conftest.$ac_ext <<EOF
4283 #line 4284 "configure"
4284 #include "confdefs.h"
4286 main()
4288 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4289 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
4293 if { (eval echo configure:4294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4294 then
4295 ac_cv_func_memcmp_clean=yes
4296 else
4297 echo "configure: failed program was:" >&5
4298 cat conftest.$ac_ext >&5
4299 rm -fr conftest*
4300 ac_cv_func_memcmp_clean=no
4302 rm -fr conftest*
4307 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
4308 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
4311 ###############################################
4312 # test for where we get crypt() from
4313 for ac_func in crypt
4315 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4316 echo "configure:4317: checking for $ac_func" >&5
4317 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4318 echo $ac_n "(cached) $ac_c" 1>&6
4319 else
4320 cat > conftest.$ac_ext <<EOF
4321 #line 4322 "configure"
4322 #include "confdefs.h"
4323 /* System header to define __stub macros and hopefully few prototypes,
4324 which can conflict with char $ac_func(); below. */
4325 #include <assert.h>
4326 /* Override any gcc2 internal prototype to avoid an error. */
4327 /* We use char because int might match the return type of a gcc2
4328 builtin and then its argument prototype would still apply. */
4329 char $ac_func();
4331 int main() {
4333 /* The GNU C library defines this for functions which it implements
4334 to always fail with ENOSYS. Some functions are actually named
4335 something starting with __ and the normal name is an alias. */
4336 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4337 choke me
4338 #else
4339 $ac_func();
4340 #endif
4342 ; return 0; }
4344 if { (eval echo configure:4345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4345 rm -rf conftest*
4346 eval "ac_cv_func_$ac_func=yes"
4347 else
4348 echo "configure: failed program was:" >&5
4349 cat conftest.$ac_ext >&5
4350 rm -rf conftest*
4351 eval "ac_cv_func_$ac_func=no"
4353 rm -f conftest*
4356 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4357 echo "$ac_t""yes" 1>&6
4358 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4359 cat >> confdefs.h <<EOF
4360 #define $ac_tr_func 1
4363 else
4364 echo "$ac_t""no" 1>&6
4366 done
4368 if test x"$ac_cv_func_crypt" = x"no"; then
4369 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
4370 echo "configure:4371: checking for crypt in -lcrypt" >&5
4371 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
4372 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4373 echo $ac_n "(cached) $ac_c" 1>&6
4374 else
4375 ac_save_LIBS="$LIBS"
4376 LIBS="-lcrypt $LIBS"
4377 cat > conftest.$ac_ext <<EOF
4378 #line 4379 "configure"
4379 #include "confdefs.h"
4380 /* Override any gcc2 internal prototype to avoid an error. */
4381 /* We use char because int might match the return type of a gcc2
4382 builtin and then its argument prototype would still apply. */
4383 char crypt();
4385 int main() {
4386 crypt()
4387 ; return 0; }
4389 if { (eval echo configure:4390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4390 rm -rf conftest*
4391 eval "ac_cv_lib_$ac_lib_var=yes"
4392 else
4393 echo "configure: failed program was:" >&5
4394 cat conftest.$ac_ext >&5
4395 rm -rf conftest*
4396 eval "ac_cv_lib_$ac_lib_var=no"
4398 rm -f conftest*
4399 LIBS="$ac_save_LIBS"
4402 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4403 echo "$ac_t""yes" 1>&6
4404 LIBS="$LIBS -lcrypt";
4405 cat >> confdefs.h <<\EOF
4406 #define HAVE_CRYPT 1
4409 else
4410 echo "$ac_t""no" 1>&6
4416 ###############################################
4417 # Readline included by default unless explicitly asked not to
4418 test "${with_readline+set}" != "set" && with_readline=yes
4420 # test for where we get readline() from
4421 echo $ac_n "checking whether to use readline""... $ac_c" 1>&6
4422 echo "configure:4423: checking whether to use readline" >&5
4423 # Check whether --with-readline or --without-readline was given.
4424 if test "${with_readline+set}" = set; then
4425 withval="$with_readline"
4426 case "$with_readline" in
4427 yes)
4428 echo "$ac_t""yes" 1>&6
4430 for ac_hdr in readline.h history.h readline/readline.h
4432 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4433 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4434 echo "configure:4435: checking for $ac_hdr" >&5
4435 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4436 echo $ac_n "(cached) $ac_c" 1>&6
4437 else
4438 cat > conftest.$ac_ext <<EOF
4439 #line 4440 "configure"
4440 #include "confdefs.h"
4441 #include <$ac_hdr>
4443 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4444 { (eval echo configure:4445: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4445 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4446 if test -z "$ac_err"; then
4447 rm -rf conftest*
4448 eval "ac_cv_header_$ac_safe=yes"
4449 else
4450 echo "$ac_err" >&5
4451 echo "configure: failed program was:" >&5
4452 cat conftest.$ac_ext >&5
4453 rm -rf conftest*
4454 eval "ac_cv_header_$ac_safe=no"
4456 rm -f conftest*
4458 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4459 echo "$ac_t""yes" 1>&6
4460 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4461 cat >> confdefs.h <<EOF
4462 #define $ac_tr_hdr 1
4465 else
4466 echo "$ac_t""no" 1>&6
4468 done
4470 for ac_hdr in readline/history.h
4472 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4473 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4474 echo "configure:4475: checking for $ac_hdr" >&5
4475 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4476 echo $ac_n "(cached) $ac_c" 1>&6
4477 else
4478 cat > conftest.$ac_ext <<EOF
4479 #line 4480 "configure"
4480 #include "confdefs.h"
4481 #include <$ac_hdr>
4483 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4484 { (eval echo configure:4485: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4485 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4486 if test -z "$ac_err"; then
4487 rm -rf conftest*
4488 eval "ac_cv_header_$ac_safe=yes"
4489 else
4490 echo "$ac_err" >&5
4491 echo "configure: failed program was:" >&5
4492 cat conftest.$ac_ext >&5
4493 rm -rf conftest*
4494 eval "ac_cv_header_$ac_safe=no"
4496 rm -f conftest*
4498 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4499 echo "$ac_t""yes" 1>&6
4500 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4501 cat >> confdefs.h <<EOF
4502 #define $ac_tr_hdr 1
4505 else
4506 echo "$ac_t""no" 1>&6
4508 done
4511 for ac_hdr in readline.h readline/readline.h
4513 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4514 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4515 echo "configure:4516: checking for $ac_hdr" >&5
4516 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4517 echo $ac_n "(cached) $ac_c" 1>&6
4518 else
4519 cat > conftest.$ac_ext <<EOF
4520 #line 4521 "configure"
4521 #include "confdefs.h"
4522 #include <$ac_hdr>
4524 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4525 { (eval echo configure:4526: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4526 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4527 if test -z "$ac_err"; then
4528 rm -rf conftest*
4529 eval "ac_cv_header_$ac_safe=yes"
4530 else
4531 echo "$ac_err" >&5
4532 echo "configure: failed program was:" >&5
4533 cat conftest.$ac_ext >&5
4534 rm -rf conftest*
4535 eval "ac_cv_header_$ac_safe=no"
4537 rm -f conftest*
4539 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4540 echo "$ac_t""yes" 1>&6
4541 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4542 cat >> confdefs.h <<EOF
4543 #define $ac_tr_hdr 1
4546 for termlib in ncurses curses termcap terminfo termlib; do
4547 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4548 echo "configure:4549: checking for tgetent in -l${termlib}" >&5
4549 ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4550 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4551 echo $ac_n "(cached) $ac_c" 1>&6
4552 else
4553 ac_save_LIBS="$LIBS"
4554 LIBS="-l${termlib} $LIBS"
4555 cat > conftest.$ac_ext <<EOF
4556 #line 4557 "configure"
4557 #include "confdefs.h"
4558 /* Override any gcc2 internal prototype to avoid an error. */
4559 /* We use char because int might match the return type of a gcc2
4560 builtin and then its argument prototype would still apply. */
4561 char tgetent();
4563 int main() {
4564 tgetent()
4565 ; return 0; }
4567 if { (eval echo configure:4568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4568 rm -rf conftest*
4569 eval "ac_cv_lib_$ac_lib_var=yes"
4570 else
4571 echo "configure: failed program was:" >&5
4572 cat conftest.$ac_ext >&5
4573 rm -rf conftest*
4574 eval "ac_cv_lib_$ac_lib_var=no"
4576 rm -f conftest*
4577 LIBS="$ac_save_LIBS"
4580 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4581 echo "$ac_t""yes" 1>&6
4582 TERMLIBS="-l${termlib}"; break
4583 else
4584 echo "$ac_t""no" 1>&6
4587 done
4588 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4589 echo "configure:4590: checking for rl_callback_handler_install in -lreadline" >&5
4590 ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4591 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4592 echo $ac_n "(cached) $ac_c" 1>&6
4593 else
4594 ac_save_LIBS="$LIBS"
4595 LIBS="-lreadline $TERMLIBS $LIBS"
4596 cat > conftest.$ac_ext <<EOF
4597 #line 4598 "configure"
4598 #include "confdefs.h"
4599 /* Override any gcc2 internal prototype to avoid an error. */
4600 /* We use char because int might match the return type of a gcc2
4601 builtin and then its argument prototype would still apply. */
4602 char rl_callback_handler_install();
4604 int main() {
4605 rl_callback_handler_install()
4606 ; return 0; }
4608 if { (eval echo configure:4609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4609 rm -rf conftest*
4610 eval "ac_cv_lib_$ac_lib_var=yes"
4611 else
4612 echo "configure: failed program was:" >&5
4613 cat conftest.$ac_ext >&5
4614 rm -rf conftest*
4615 eval "ac_cv_lib_$ac_lib_var=no"
4617 rm -f conftest*
4618 LIBS="$ac_save_LIBS"
4621 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4622 echo "$ac_t""yes" 1>&6
4623 TERMLIBS="-lreadline $TERMLIBS"
4624 cat >> confdefs.h <<\EOF
4625 #define HAVE_LIBREADLINE 1
4628 break
4629 else
4630 echo "$ac_t""no" 1>&6
4631 TERMLIBS=
4634 else
4635 echo "$ac_t""no" 1>&6
4637 done
4641 echo "$ac_t""no" 1>&6
4644 echo "$ac_t""yes" 1>&6
4646 # Needed for AC_CHECK_HEADERS and AC_CHECK_LIB to look at
4647 # alternate readline path
4648 _ldflags=${LDFLAGS}
4649 _cppflags=${CPPFLAGS}
4651 # Add additional search path
4652 LDFLAGS="-L$with_readline/lib $LDFLAGS"
4653 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
4655 for ac_hdr in readline.h history.h readline/readline.h
4657 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4658 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4659 echo "configure:4660: checking for $ac_hdr" >&5
4660 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4661 echo $ac_n "(cached) $ac_c" 1>&6
4662 else
4663 cat > conftest.$ac_ext <<EOF
4664 #line 4665 "configure"
4665 #include "confdefs.h"
4666 #include <$ac_hdr>
4668 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4669 { (eval echo configure:4670: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4670 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4671 if test -z "$ac_err"; then
4672 rm -rf conftest*
4673 eval "ac_cv_header_$ac_safe=yes"
4674 else
4675 echo "$ac_err" >&5
4676 echo "configure: failed program was:" >&5
4677 cat conftest.$ac_ext >&5
4678 rm -rf conftest*
4679 eval "ac_cv_header_$ac_safe=no"
4681 rm -f conftest*
4683 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4684 echo "$ac_t""yes" 1>&6
4685 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4686 cat >> confdefs.h <<EOF
4687 #define $ac_tr_hdr 1
4690 else
4691 echo "$ac_t""no" 1>&6
4693 done
4695 for ac_hdr in readline/history.h
4697 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4698 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4699 echo "configure:4700: checking for $ac_hdr" >&5
4700 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4701 echo $ac_n "(cached) $ac_c" 1>&6
4702 else
4703 cat > conftest.$ac_ext <<EOF
4704 #line 4705 "configure"
4705 #include "confdefs.h"
4706 #include <$ac_hdr>
4708 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4709 { (eval echo configure:4710: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4710 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4711 if test -z "$ac_err"; then
4712 rm -rf conftest*
4713 eval "ac_cv_header_$ac_safe=yes"
4714 else
4715 echo "$ac_err" >&5
4716 echo "configure: failed program was:" >&5
4717 cat conftest.$ac_ext >&5
4718 rm -rf conftest*
4719 eval "ac_cv_header_$ac_safe=no"
4721 rm -f conftest*
4723 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4724 echo "$ac_t""yes" 1>&6
4725 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4726 cat >> confdefs.h <<EOF
4727 #define $ac_tr_hdr 1
4730 else
4731 echo "$ac_t""no" 1>&6
4733 done
4736 for ac_hdr in readline.h readline/readline.h
4738 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4739 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4740 echo "configure:4741: checking for $ac_hdr" >&5
4741 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4742 echo $ac_n "(cached) $ac_c" 1>&6
4743 else
4744 cat > conftest.$ac_ext <<EOF
4745 #line 4746 "configure"
4746 #include "confdefs.h"
4747 #include <$ac_hdr>
4749 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4750 { (eval echo configure:4751: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4751 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4752 if test -z "$ac_err"; then
4753 rm -rf conftest*
4754 eval "ac_cv_header_$ac_safe=yes"
4755 else
4756 echo "$ac_err" >&5
4757 echo "configure: failed program was:" >&5
4758 cat conftest.$ac_ext >&5
4759 rm -rf conftest*
4760 eval "ac_cv_header_$ac_safe=no"
4762 rm -f conftest*
4764 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4765 echo "$ac_t""yes" 1>&6
4766 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4767 cat >> confdefs.h <<EOF
4768 #define $ac_tr_hdr 1
4771 for termlib in ncurses curses termcap terminfo termlib; do
4772 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4773 echo "configure:4774: checking for tgetent in -l${termlib}" >&5
4774 ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4775 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4776 echo $ac_n "(cached) $ac_c" 1>&6
4777 else
4778 ac_save_LIBS="$LIBS"
4779 LIBS="-l${termlib} $LIBS"
4780 cat > conftest.$ac_ext <<EOF
4781 #line 4782 "configure"
4782 #include "confdefs.h"
4783 /* Override any gcc2 internal prototype to avoid an error. */
4784 /* We use char because int might match the return type of a gcc2
4785 builtin and then its argument prototype would still apply. */
4786 char tgetent();
4788 int main() {
4789 tgetent()
4790 ; return 0; }
4792 if { (eval echo configure:4793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4793 rm -rf conftest*
4794 eval "ac_cv_lib_$ac_lib_var=yes"
4795 else
4796 echo "configure: failed program was:" >&5
4797 cat conftest.$ac_ext >&5
4798 rm -rf conftest*
4799 eval "ac_cv_lib_$ac_lib_var=no"
4801 rm -f conftest*
4802 LIBS="$ac_save_LIBS"
4805 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4806 echo "$ac_t""yes" 1>&6
4807 TERMLIBS="-l${termlib}"; break
4808 else
4809 echo "$ac_t""no" 1>&6
4812 done
4813 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4814 echo "configure:4815: checking for rl_callback_handler_install in -lreadline" >&5
4815 ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4816 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4817 echo $ac_n "(cached) $ac_c" 1>&6
4818 else
4819 ac_save_LIBS="$LIBS"
4820 LIBS="-lreadline $TERMLIBS $LIBS"
4821 cat > conftest.$ac_ext <<EOF
4822 #line 4823 "configure"
4823 #include "confdefs.h"
4824 /* Override any gcc2 internal prototype to avoid an error. */
4825 /* We use char because int might match the return type of a gcc2
4826 builtin and then its argument prototype would still apply. */
4827 char rl_callback_handler_install();
4829 int main() {
4830 rl_callback_handler_install()
4831 ; return 0; }
4833 if { (eval echo configure:4834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4834 rm -rf conftest*
4835 eval "ac_cv_lib_$ac_lib_var=yes"
4836 else
4837 echo "configure: failed program was:" >&5
4838 cat conftest.$ac_ext >&5
4839 rm -rf conftest*
4840 eval "ac_cv_lib_$ac_lib_var=no"
4842 rm -f conftest*
4843 LIBS="$ac_save_LIBS"
4846 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4847 echo "$ac_t""yes" 1>&6
4848 TERMLDFLAGS="-L$with_readline/lib"
4849 TERMCPPFLAGS="-I$with_readline/include"
4850 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
4851 TERMLIBS="-lreadline $TERMLIBS"
4852 cat >> confdefs.h <<\EOF
4853 #define HAVE_LIBREADLINE 1
4856 break
4857 else
4858 echo "$ac_t""no" 1>&6
4859 TERMLIBS= CPPFLAGS=$_cppflags
4862 else
4863 echo "$ac_t""no" 1>&6
4865 done
4868 LDFLAGS=$_ldflags
4870 esac
4871 else
4872 echo "$ac_t""no" 1>&6
4879 # The following test taken from the cvs sources
4880 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
4881 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
4882 # libsocket.so which has a bad implementation of gethostbyname (it
4883 # only looks in /etc/hosts), so we only look for -lsocket if we need
4884 # it.
4885 for ac_func in connect
4887 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4888 echo "configure:4889: checking for $ac_func" >&5
4889 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4890 echo $ac_n "(cached) $ac_c" 1>&6
4891 else
4892 cat > conftest.$ac_ext <<EOF
4893 #line 4894 "configure"
4894 #include "confdefs.h"
4895 /* System header to define __stub macros and hopefully few prototypes,
4896 which can conflict with char $ac_func(); below. */
4897 #include <assert.h>
4898 /* Override any gcc2 internal prototype to avoid an error. */
4899 /* We use char because int might match the return type of a gcc2
4900 builtin and then its argument prototype would still apply. */
4901 char $ac_func();
4903 int main() {
4905 /* The GNU C library defines this for functions which it implements
4906 to always fail with ENOSYS. Some functions are actually named
4907 something starting with __ and the normal name is an alias. */
4908 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4909 choke me
4910 #else
4911 $ac_func();
4912 #endif
4914 ; return 0; }
4916 if { (eval echo configure:4917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4917 rm -rf conftest*
4918 eval "ac_cv_func_$ac_func=yes"
4919 else
4920 echo "configure: failed program was:" >&5
4921 cat conftest.$ac_ext >&5
4922 rm -rf conftest*
4923 eval "ac_cv_func_$ac_func=no"
4925 rm -f conftest*
4928 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4929 echo "$ac_t""yes" 1>&6
4930 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4931 cat >> confdefs.h <<EOF
4932 #define $ac_tr_func 1
4935 else
4936 echo "$ac_t""no" 1>&6
4938 done
4940 if test x"$ac_cv_func_connect" = x"no"; then
4941 case "$LIBS" in
4942 *-lnsl*) ;;
4943 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
4944 echo "configure:4945: checking for printf in -lnsl_s" >&5
4945 ac_lib_var=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
4946 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4947 echo $ac_n "(cached) $ac_c" 1>&6
4948 else
4949 ac_save_LIBS="$LIBS"
4950 LIBS="-lnsl_s $LIBS"
4951 cat > conftest.$ac_ext <<EOF
4952 #line 4953 "configure"
4953 #include "confdefs.h"
4954 /* Override any gcc2 internal prototype to avoid an error. */
4955 /* We use char because int might match the return type of a gcc2
4956 builtin and then its argument prototype would still apply. */
4957 char printf();
4959 int main() {
4960 printf()
4961 ; return 0; }
4963 if { (eval echo configure:4964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4964 rm -rf conftest*
4965 eval "ac_cv_lib_$ac_lib_var=yes"
4966 else
4967 echo "configure: failed program was:" >&5
4968 cat conftest.$ac_ext >&5
4969 rm -rf conftest*
4970 eval "ac_cv_lib_$ac_lib_var=no"
4972 rm -f conftest*
4973 LIBS="$ac_save_LIBS"
4976 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4977 echo "$ac_t""yes" 1>&6
4978 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4979 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4980 cat >> confdefs.h <<EOF
4981 #define $ac_tr_lib 1
4984 LIBS="-lnsl_s $LIBS"
4986 else
4987 echo "$ac_t""no" 1>&6
4990 esac
4991 case "$LIBS" in
4992 *-lnsl*) ;;
4993 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
4994 echo "configure:4995: checking for printf in -lnsl" >&5
4995 ac_lib_var=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
4996 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4997 echo $ac_n "(cached) $ac_c" 1>&6
4998 else
4999 ac_save_LIBS="$LIBS"
5000 LIBS="-lnsl $LIBS"
5001 cat > conftest.$ac_ext <<EOF
5002 #line 5003 "configure"
5003 #include "confdefs.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 printf();
5009 int main() {
5010 printf()
5011 ; return 0; }
5013 if { (eval echo configure:5014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5014 rm -rf conftest*
5015 eval "ac_cv_lib_$ac_lib_var=yes"
5016 else
5017 echo "configure: failed program was:" >&5
5018 cat conftest.$ac_ext >&5
5019 rm -rf conftest*
5020 eval "ac_cv_lib_$ac_lib_var=no"
5022 rm -f conftest*
5023 LIBS="$ac_save_LIBS"
5026 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5027 echo "$ac_t""yes" 1>&6
5028 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5029 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5030 cat >> confdefs.h <<EOF
5031 #define $ac_tr_lib 1
5034 LIBS="-lnsl $LIBS"
5036 else
5037 echo "$ac_t""no" 1>&6
5040 esac
5041 case "$LIBS" in
5042 *-lsocket*) ;;
5043 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
5044 echo "configure:5045: checking for connect in -lsocket" >&5
5045 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
5046 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5047 echo $ac_n "(cached) $ac_c" 1>&6
5048 else
5049 ac_save_LIBS="$LIBS"
5050 LIBS="-lsocket $LIBS"
5051 cat > conftest.$ac_ext <<EOF
5052 #line 5053 "configure"
5053 #include "confdefs.h"
5054 /* Override any gcc2 internal prototype to avoid an error. */
5055 /* We use char because int might match the return type of a gcc2
5056 builtin and then its argument prototype would still apply. */
5057 char connect();
5059 int main() {
5060 connect()
5061 ; return 0; }
5063 if { (eval echo configure:5064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5064 rm -rf conftest*
5065 eval "ac_cv_lib_$ac_lib_var=yes"
5066 else
5067 echo "configure: failed program was:" >&5
5068 cat conftest.$ac_ext >&5
5069 rm -rf conftest*
5070 eval "ac_cv_lib_$ac_lib_var=no"
5072 rm -f conftest*
5073 LIBS="$ac_save_LIBS"
5076 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5077 echo "$ac_t""yes" 1>&6
5078 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5079 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5080 cat >> confdefs.h <<EOF
5081 #define $ac_tr_lib 1
5084 LIBS="-lsocket $LIBS"
5086 else
5087 echo "$ac_t""no" 1>&6
5090 esac
5091 case "$LIBS" in
5092 *-linet*) ;;
5093 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
5094 echo "configure:5095: checking for connect in -linet" >&5
5095 ac_lib_var=`echo inet'_'connect | sed 'y%./+-%__p_%'`
5096 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5097 echo $ac_n "(cached) $ac_c" 1>&6
5098 else
5099 ac_save_LIBS="$LIBS"
5100 LIBS="-linet $LIBS"
5101 cat > conftest.$ac_ext <<EOF
5102 #line 5103 "configure"
5103 #include "confdefs.h"
5104 /* Override any gcc2 internal prototype to avoid an error. */
5105 /* We use char because int might match the return type of a gcc2
5106 builtin and then its argument prototype would still apply. */
5107 char connect();
5109 int main() {
5110 connect()
5111 ; return 0; }
5113 if { (eval echo configure:5114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5114 rm -rf conftest*
5115 eval "ac_cv_lib_$ac_lib_var=yes"
5116 else
5117 echo "configure: failed program was:" >&5
5118 cat conftest.$ac_ext >&5
5119 rm -rf conftest*
5120 eval "ac_cv_lib_$ac_lib_var=no"
5122 rm -f conftest*
5123 LIBS="$ac_save_LIBS"
5126 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5127 echo "$ac_t""yes" 1>&6
5128 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5129 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5130 cat >> confdefs.h <<EOF
5131 #define $ac_tr_lib 1
5134 LIBS="-linet $LIBS"
5136 else
5137 echo "$ac_t""no" 1>&6
5140 esac
5141 if test x"$ac_cv_lib_socket_connect" = x"yes" ||
5142 test x"$ac_cv_lib_inet_connect" = x"yes"; then
5143 # ac_cv_func_connect=yes
5144 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
5145 cat >> confdefs.h <<\EOF
5146 #define HAVE_CONNECT 1
5152 ###############################################
5153 # test for where we get get_yp_default_domain() from
5154 for ac_func in yp_get_default_domain
5156 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5157 echo "configure:5158: checking for $ac_func" >&5
5158 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5159 echo $ac_n "(cached) $ac_c" 1>&6
5160 else
5161 cat > conftest.$ac_ext <<EOF
5162 #line 5163 "configure"
5163 #include "confdefs.h"
5164 /* System header to define __stub macros and hopefully few prototypes,
5165 which can conflict with char $ac_func(); below. */
5166 #include <assert.h>
5167 /* Override any gcc2 internal prototype to avoid an error. */
5168 /* We use char because int might match the return type of a gcc2
5169 builtin and then its argument prototype would still apply. */
5170 char $ac_func();
5172 int main() {
5174 /* The GNU C library defines this for functions which it implements
5175 to always fail with ENOSYS. Some functions are actually named
5176 something starting with __ and the normal name is an alias. */
5177 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5178 choke me
5179 #else
5180 $ac_func();
5181 #endif
5183 ; return 0; }
5185 if { (eval echo configure:5186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5186 rm -rf conftest*
5187 eval "ac_cv_func_$ac_func=yes"
5188 else
5189 echo "configure: failed program was:" >&5
5190 cat conftest.$ac_ext >&5
5191 rm -rf conftest*
5192 eval "ac_cv_func_$ac_func=no"
5194 rm -f conftest*
5197 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5198 echo "$ac_t""yes" 1>&6
5199 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5200 cat >> confdefs.h <<EOF
5201 #define $ac_tr_func 1
5204 else
5205 echo "$ac_t""no" 1>&6
5207 done
5209 if test x"$ac_cv_func_yp_get_default_domain" = x"no"; then
5210 echo $ac_n "checking for yp_get_default_domain in -lnsl""... $ac_c" 1>&6
5211 echo "configure:5212: checking for yp_get_default_domain in -lnsl" >&5
5212 ac_lib_var=`echo nsl'_'yp_get_default_domain | sed 'y%./+-%__p_%'`
5213 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5214 echo $ac_n "(cached) $ac_c" 1>&6
5215 else
5216 ac_save_LIBS="$LIBS"
5217 LIBS="-lnsl $LIBS"
5218 cat > conftest.$ac_ext <<EOF
5219 #line 5220 "configure"
5220 #include "confdefs.h"
5221 /* Override any gcc2 internal prototype to avoid an error. */
5222 /* We use char because int might match the return type of a gcc2
5223 builtin and then its argument prototype would still apply. */
5224 char yp_get_default_domain();
5226 int main() {
5227 yp_get_default_domain()
5228 ; return 0; }
5230 if { (eval echo configure:5231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5231 rm -rf conftest*
5232 eval "ac_cv_lib_$ac_lib_var=yes"
5233 else
5234 echo "configure: failed program was:" >&5
5235 cat conftest.$ac_ext >&5
5236 rm -rf conftest*
5237 eval "ac_cv_lib_$ac_lib_var=no"
5239 rm -f conftest*
5240 LIBS="$ac_save_LIBS"
5243 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5244 echo "$ac_t""yes" 1>&6
5245 LIBS="$LIBS -lnsl";
5246 cat >> confdefs.h <<\EOF
5247 #define HAVE_YP_GET_DEFAULT_DOMAIN 1
5250 else
5251 echo "$ac_t""no" 1>&6
5256 # Check if we have execl, if not we need to compile smbrun.
5257 for ac_func in execl
5259 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5260 echo "configure:5261: checking for $ac_func" >&5
5261 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5262 echo $ac_n "(cached) $ac_c" 1>&6
5263 else
5264 cat > conftest.$ac_ext <<EOF
5265 #line 5266 "configure"
5266 #include "confdefs.h"
5267 /* System header to define __stub macros and hopefully few prototypes,
5268 which can conflict with char $ac_func(); below. */
5269 #include <assert.h>
5270 /* Override any gcc2 internal prototype to avoid an error. */
5271 /* We use char because int might match the return type of a gcc2
5272 builtin and then its argument prototype would still apply. */
5273 char $ac_func();
5275 int main() {
5277 /* The GNU C library defines this for functions which it implements
5278 to always fail with ENOSYS. Some functions are actually named
5279 something starting with __ and the normal name is an alias. */
5280 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5281 choke me
5282 #else
5283 $ac_func();
5284 #endif
5286 ; return 0; }
5288 if { (eval echo configure:5289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5289 rm -rf conftest*
5290 eval "ac_cv_func_$ac_func=yes"
5291 else
5292 echo "configure: failed program was:" >&5
5293 cat conftest.$ac_ext >&5
5294 rm -rf conftest*
5295 eval "ac_cv_func_$ac_func=no"
5297 rm -f conftest*
5300 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5301 echo "$ac_t""yes" 1>&6
5302 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5303 cat >> confdefs.h <<EOF
5304 #define $ac_tr_func 1
5307 else
5308 echo "$ac_t""no" 1>&6
5310 done
5312 if test x"$ac_cv_func_execl" = x"no"; then
5313 RUNPROG="bin/smbrun"
5314 else
5315 RUNPROG=""
5318 for ac_func in waitpid getcwd strdup strtoul strerror chown fchown chmod fchmod chroot
5320 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5321 echo "configure:5322: checking for $ac_func" >&5
5322 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5323 echo $ac_n "(cached) $ac_c" 1>&6
5324 else
5325 cat > conftest.$ac_ext <<EOF
5326 #line 5327 "configure"
5327 #include "confdefs.h"
5328 /* System header to define __stub macros and hopefully few prototypes,
5329 which can conflict with char $ac_func(); below. */
5330 #include <assert.h>
5331 /* Override any gcc2 internal prototype to avoid an error. */
5332 /* We use char because int might match the return type of a gcc2
5333 builtin and then its argument prototype would still apply. */
5334 char $ac_func();
5336 int main() {
5338 /* The GNU C library defines this for functions which it implements
5339 to always fail with ENOSYS. Some functions are actually named
5340 something starting with __ and the normal name is an alias. */
5341 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5342 choke me
5343 #else
5344 $ac_func();
5345 #endif
5347 ; return 0; }
5349 if { (eval echo configure:5350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5350 rm -rf conftest*
5351 eval "ac_cv_func_$ac_func=yes"
5352 else
5353 echo "configure: failed program was:" >&5
5354 cat conftest.$ac_ext >&5
5355 rm -rf conftest*
5356 eval "ac_cv_func_$ac_func=no"
5358 rm -f conftest*
5361 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5362 echo "$ac_t""yes" 1>&6
5363 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5364 cat >> confdefs.h <<EOF
5365 #define $ac_tr_func 1
5368 else
5369 echo "$ac_t""no" 1>&6
5371 done
5373 for ac_func in fstat strchr utime utimes getrlimit fsync bzero memset
5375 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5376 echo "configure:5377: checking for $ac_func" >&5
5377 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5378 echo $ac_n "(cached) $ac_c" 1>&6
5379 else
5380 cat > conftest.$ac_ext <<EOF
5381 #line 5382 "configure"
5382 #include "confdefs.h"
5383 /* System header to define __stub macros and hopefully few prototypes,
5384 which can conflict with char $ac_func(); below. */
5385 #include <assert.h>
5386 /* Override any gcc2 internal prototype to avoid an error. */
5387 /* We use char because int might match the return type of a gcc2
5388 builtin and then its argument prototype would still apply. */
5389 char $ac_func();
5391 int main() {
5393 /* The GNU C library defines this for functions which it implements
5394 to always fail with ENOSYS. Some functions are actually named
5395 something starting with __ and the normal name is an alias. */
5396 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5397 choke me
5398 #else
5399 $ac_func();
5400 #endif
5402 ; return 0; }
5404 if { (eval echo configure:5405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5405 rm -rf conftest*
5406 eval "ac_cv_func_$ac_func=yes"
5407 else
5408 echo "configure: failed program was:" >&5
5409 cat conftest.$ac_ext >&5
5410 rm -rf conftest*
5411 eval "ac_cv_func_$ac_func=no"
5413 rm -f conftest*
5416 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5417 echo "$ac_t""yes" 1>&6
5418 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5419 cat >> confdefs.h <<EOF
5420 #define $ac_tr_func 1
5423 else
5424 echo "$ac_t""no" 1>&6
5426 done
5428 for ac_func in memmove vsnprintf snprintf asprintf vasprintf setsid glob strpbrk pipe crypt16 getauthuid
5430 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5431 echo "configure:5432: checking for $ac_func" >&5
5432 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5433 echo $ac_n "(cached) $ac_c" 1>&6
5434 else
5435 cat > conftest.$ac_ext <<EOF
5436 #line 5437 "configure"
5437 #include "confdefs.h"
5438 /* System header to define __stub macros and hopefully few prototypes,
5439 which can conflict with char $ac_func(); below. */
5440 #include <assert.h>
5441 /* Override any gcc2 internal prototype to avoid an error. */
5442 /* We use char because int might match the return type of a gcc2
5443 builtin and then its argument prototype would still apply. */
5444 char $ac_func();
5446 int main() {
5448 /* The GNU C library defines this for functions which it implements
5449 to always fail with ENOSYS. Some functions are actually named
5450 something starting with __ and the normal name is an alias. */
5451 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5452 choke me
5453 #else
5454 $ac_func();
5455 #endif
5457 ; return 0; }
5459 if { (eval echo configure:5460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5460 rm -rf conftest*
5461 eval "ac_cv_func_$ac_func=yes"
5462 else
5463 echo "configure: failed program was:" >&5
5464 cat conftest.$ac_ext >&5
5465 rm -rf conftest*
5466 eval "ac_cv_func_$ac_func=no"
5468 rm -f conftest*
5471 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5472 echo "$ac_t""yes" 1>&6
5473 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5474 cat >> confdefs.h <<EOF
5475 #define $ac_tr_func 1
5478 else
5479 echo "$ac_t""no" 1>&6
5481 done
5483 for ac_func in strftime sigprocmask sigblock sigaction innetgr setnetgrent getnetgrent endnetgrent
5485 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5486 echo "configure:5487: checking for $ac_func" >&5
5487 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5488 echo $ac_n "(cached) $ac_c" 1>&6
5489 else
5490 cat > conftest.$ac_ext <<EOF
5491 #line 5492 "configure"
5492 #include "confdefs.h"
5493 /* System header to define __stub macros and hopefully few prototypes,
5494 which can conflict with char $ac_func(); below. */
5495 #include <assert.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 $ac_func();
5501 int main() {
5503 /* The GNU C library defines this for functions which it implements
5504 to always fail with ENOSYS. Some functions are actually named
5505 something starting with __ and the normal name is an alias. */
5506 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5507 choke me
5508 #else
5509 $ac_func();
5510 #endif
5512 ; return 0; }
5514 if { (eval echo configure:5515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5515 rm -rf conftest*
5516 eval "ac_cv_func_$ac_func=yes"
5517 else
5518 echo "configure: failed program was:" >&5
5519 cat conftest.$ac_ext >&5
5520 rm -rf conftest*
5521 eval "ac_cv_func_$ac_func=no"
5523 rm -f conftest*
5526 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5527 echo "$ac_t""yes" 1>&6
5528 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5529 cat >> confdefs.h <<EOF
5530 #define $ac_tr_func 1
5533 else
5534 echo "$ac_t""no" 1>&6
5536 done
5538 for ac_func in initgroups select poll rdchk getgrnam getgrent pathconf
5540 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5541 echo "configure:5542: checking for $ac_func" >&5
5542 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5543 echo $ac_n "(cached) $ac_c" 1>&6
5544 else
5545 cat > conftest.$ac_ext <<EOF
5546 #line 5547 "configure"
5547 #include "confdefs.h"
5548 /* System header to define __stub macros and hopefully few prototypes,
5549 which can conflict with char $ac_func(); below. */
5550 #include <assert.h>
5551 /* Override any gcc2 internal prototype to avoid an error. */
5552 /* We use char because int might match the return type of a gcc2
5553 builtin and then its argument prototype would still apply. */
5554 char $ac_func();
5556 int main() {
5558 /* The GNU C library defines this for functions which it implements
5559 to always fail with ENOSYS. Some functions are actually named
5560 something starting with __ and the normal name is an alias. */
5561 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5562 choke me
5563 #else
5564 $ac_func();
5565 #endif
5567 ; return 0; }
5569 if { (eval echo configure:5570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5570 rm -rf conftest*
5571 eval "ac_cv_func_$ac_func=yes"
5572 else
5573 echo "configure: failed program was:" >&5
5574 cat conftest.$ac_ext >&5
5575 rm -rf conftest*
5576 eval "ac_cv_func_$ac_func=no"
5578 rm -f conftest*
5581 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5582 echo "$ac_t""yes" 1>&6
5583 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5584 cat >> confdefs.h <<EOF
5585 #define $ac_tr_func 1
5588 else
5589 echo "$ac_t""no" 1>&6
5591 done
5593 for ac_func in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
5595 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5596 echo "configure:5597: checking for $ac_func" >&5
5597 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5598 echo $ac_n "(cached) $ac_c" 1>&6
5599 else
5600 cat > conftest.$ac_ext <<EOF
5601 #line 5602 "configure"
5602 #include "confdefs.h"
5603 /* System header to define __stub macros and hopefully few prototypes,
5604 which can conflict with char $ac_func(); below. */
5605 #include <assert.h>
5606 /* Override any gcc2 internal prototype to avoid an error. */
5607 /* We use char because int might match the return type of a gcc2
5608 builtin and then its argument prototype would still apply. */
5609 char $ac_func();
5611 int main() {
5613 /* The GNU C library defines this for functions which it implements
5614 to always fail with ENOSYS. Some functions are actually named
5615 something starting with __ and the normal name is an alias. */
5616 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5617 choke me
5618 #else
5619 $ac_func();
5620 #endif
5622 ; return 0; }
5624 if { (eval echo configure:5625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5625 rm -rf conftest*
5626 eval "ac_cv_func_$ac_func=yes"
5627 else
5628 echo "configure: failed program was:" >&5
5629 cat conftest.$ac_ext >&5
5630 rm -rf conftest*
5631 eval "ac_cv_func_$ac_func=no"
5633 rm -f conftest*
5636 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5637 echo "$ac_t""yes" 1>&6
5638 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5639 cat >> confdefs.h <<EOF
5640 #define $ac_tr_func 1
5643 else
5644 echo "$ac_t""no" 1>&6
5646 done
5648 for ac_func in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
5650 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5651 echo "configure:5652: checking for $ac_func" >&5
5652 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5653 echo $ac_n "(cached) $ac_c" 1>&6
5654 else
5655 cat > conftest.$ac_ext <<EOF
5656 #line 5657 "configure"
5657 #include "confdefs.h"
5658 /* System header to define __stub macros and hopefully few prototypes,
5659 which can conflict with char $ac_func(); below. */
5660 #include <assert.h>
5661 /* Override any gcc2 internal prototype to avoid an error. */
5662 /* We use char because int might match the return type of a gcc2
5663 builtin and then its argument prototype would still apply. */
5664 char $ac_func();
5666 int main() {
5668 /* The GNU C library defines this for functions which it implements
5669 to always fail with ENOSYS. Some functions are actually named
5670 something starting with __ and the normal name is an alias. */
5671 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5672 choke me
5673 #else
5674 $ac_func();
5675 #endif
5677 ; return 0; }
5679 if { (eval echo configure:5680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5680 rm -rf conftest*
5681 eval "ac_cv_func_$ac_func=yes"
5682 else
5683 echo "configure: failed program was:" >&5
5684 cat conftest.$ac_ext >&5
5685 rm -rf conftest*
5686 eval "ac_cv_func_$ac_func=no"
5688 rm -f conftest*
5691 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5692 echo "$ac_t""yes" 1>&6
5693 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5694 cat >> confdefs.h <<EOF
5695 #define $ac_tr_func 1
5698 else
5699 echo "$ac_t""no" 1>&6
5701 done
5703 for ac_func in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam setlinebuf
5705 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5706 echo "configure:5707: checking for $ac_func" >&5
5707 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5708 echo $ac_n "(cached) $ac_c" 1>&6
5709 else
5710 cat > conftest.$ac_ext <<EOF
5711 #line 5712 "configure"
5712 #include "confdefs.h"
5713 /* System header to define __stub macros and hopefully few prototypes,
5714 which can conflict with char $ac_func(); below. */
5715 #include <assert.h>
5716 /* Override any gcc2 internal prototype to avoid an error. */
5717 /* We use char because int might match the return type of a gcc2
5718 builtin and then its argument prototype would still apply. */
5719 char $ac_func();
5721 int main() {
5723 /* The GNU C library defines this for functions which it implements
5724 to always fail with ENOSYS. Some functions are actually named
5725 something starting with __ and the normal name is an alias. */
5726 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5727 choke me
5728 #else
5729 $ac_func();
5730 #endif
5732 ; return 0; }
5734 if { (eval echo configure:5735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5735 rm -rf conftest*
5736 eval "ac_cv_func_$ac_func=yes"
5737 else
5738 echo "configure: failed program was:" >&5
5739 cat conftest.$ac_ext >&5
5740 rm -rf conftest*
5741 eval "ac_cv_func_$ac_func=no"
5743 rm -f conftest*
5746 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5747 echo "$ac_t""yes" 1>&6
5748 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5749 cat >> confdefs.h <<EOF
5750 #define $ac_tr_func 1
5753 else
5754 echo "$ac_t""no" 1>&6
5756 done
5758 for ac_func in srandom random srand rand setenv usleep strcasecmp fcvt fcvtl
5760 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5761 echo "configure:5762: checking for $ac_func" >&5
5762 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5763 echo $ac_n "(cached) $ac_c" 1>&6
5764 else
5765 cat > conftest.$ac_ext <<EOF
5766 #line 5767 "configure"
5767 #include "confdefs.h"
5768 /* System header to define __stub macros and hopefully few prototypes,
5769 which can conflict with char $ac_func(); below. */
5770 #include <assert.h>
5771 /* Override any gcc2 internal prototype to avoid an error. */
5772 /* We use char because int might match the return type of a gcc2
5773 builtin and then its argument prototype would still apply. */
5774 char $ac_func();
5776 int main() {
5778 /* The GNU C library defines this for functions which it implements
5779 to always fail with ENOSYS. Some functions are actually named
5780 something starting with __ and the normal name is an alias. */
5781 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5782 choke me
5783 #else
5784 $ac_func();
5785 #endif
5787 ; return 0; }
5789 if { (eval echo configure:5790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5790 rm -rf conftest*
5791 eval "ac_cv_func_$ac_func=yes"
5792 else
5793 echo "configure: failed program was:" >&5
5794 cat conftest.$ac_ext >&5
5795 rm -rf conftest*
5796 eval "ac_cv_func_$ac_func=no"
5798 rm -f conftest*
5801 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5802 echo "$ac_t""yes" 1>&6
5803 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5804 cat >> confdefs.h <<EOF
5805 #define $ac_tr_func 1
5808 else
5809 echo "$ac_t""no" 1>&6
5811 done
5814 # syscall() is needed for smbwrapper.
5815 for ac_func in syscall
5817 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5818 echo "configure:5819: checking for $ac_func" >&5
5819 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5820 echo $ac_n "(cached) $ac_c" 1>&6
5821 else
5822 cat > conftest.$ac_ext <<EOF
5823 #line 5824 "configure"
5824 #include "confdefs.h"
5825 /* System header to define __stub macros and hopefully few prototypes,
5826 which can conflict with char $ac_func(); below. */
5827 #include <assert.h>
5828 /* Override any gcc2 internal prototype to avoid an error. */
5829 /* We use char because int might match the return type of a gcc2
5830 builtin and then its argument prototype would still apply. */
5831 char $ac_func();
5833 int main() {
5835 /* The GNU C library defines this for functions which it implements
5836 to always fail with ENOSYS. Some functions are actually named
5837 something starting with __ and the normal name is an alias. */
5838 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5839 choke me
5840 #else
5841 $ac_func();
5842 #endif
5844 ; return 0; }
5846 if { (eval echo configure:5847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5847 rm -rf conftest*
5848 eval "ac_cv_func_$ac_func=yes"
5849 else
5850 echo "configure: failed program was:" >&5
5851 cat conftest.$ac_ext >&5
5852 rm -rf conftest*
5853 eval "ac_cv_func_$ac_func=no"
5855 rm -f conftest*
5858 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5859 echo "$ac_t""yes" 1>&6
5860 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5861 cat >> confdefs.h <<EOF
5862 #define $ac_tr_func 1
5865 else
5866 echo "$ac_t""no" 1>&6
5868 done
5871 for ac_func in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
5873 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5874 echo "configure:5875: checking for $ac_func" >&5
5875 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5876 echo $ac_n "(cached) $ac_c" 1>&6
5877 else
5878 cat > conftest.$ac_ext <<EOF
5879 #line 5880 "configure"
5880 #include "confdefs.h"
5881 /* System header to define __stub macros and hopefully few prototypes,
5882 which can conflict with char $ac_func(); below. */
5883 #include <assert.h>
5884 /* Override any gcc2 internal prototype to avoid an error. */
5885 /* We use char because int might match the return type of a gcc2
5886 builtin and then its argument prototype would still apply. */
5887 char $ac_func();
5889 int main() {
5891 /* The GNU C library defines this for functions which it implements
5892 to always fail with ENOSYS. Some functions are actually named
5893 something starting with __ and the normal name is an alias. */
5894 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5895 choke me
5896 #else
5897 $ac_func();
5898 #endif
5900 ; return 0; }
5902 if { (eval echo configure:5903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5903 rm -rf conftest*
5904 eval "ac_cv_func_$ac_func=yes"
5905 else
5906 echo "configure: failed program was:" >&5
5907 cat conftest.$ac_ext >&5
5908 rm -rf conftest*
5909 eval "ac_cv_func_$ac_func=no"
5911 rm -f conftest*
5914 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5915 echo "$ac_t""yes" 1>&6
5916 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5917 cat >> confdefs.h <<EOF
5918 #define $ac_tr_func 1
5921 else
5922 echo "$ac_t""no" 1>&6
5924 done
5926 for ac_func in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
5928 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5929 echo "configure:5930: checking for $ac_func" >&5
5930 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5931 echo $ac_n "(cached) $ac_c" 1>&6
5932 else
5933 cat > conftest.$ac_ext <<EOF
5934 #line 5935 "configure"
5935 #include "confdefs.h"
5936 /* System header to define __stub macros and hopefully few prototypes,
5937 which can conflict with char $ac_func(); below. */
5938 #include <assert.h>
5939 /* Override any gcc2 internal prototype to avoid an error. */
5940 /* We use char because int might match the return type of a gcc2
5941 builtin and then its argument prototype would still apply. */
5942 char $ac_func();
5944 int main() {
5946 /* The GNU C library defines this for functions which it implements
5947 to always fail with ENOSYS. Some functions are actually named
5948 something starting with __ and the normal name is an alias. */
5949 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5950 choke me
5951 #else
5952 $ac_func();
5953 #endif
5955 ; return 0; }
5957 if { (eval echo configure:5958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5958 rm -rf conftest*
5959 eval "ac_cv_func_$ac_func=yes"
5960 else
5961 echo "configure: failed program was:" >&5
5962 cat conftest.$ac_ext >&5
5963 rm -rf conftest*
5964 eval "ac_cv_func_$ac_func=no"
5966 rm -f conftest*
5969 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5970 echo "$ac_t""yes" 1>&6
5971 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5972 cat >> confdefs.h <<EOF
5973 #define $ac_tr_func 1
5976 else
5977 echo "$ac_t""no" 1>&6
5979 done
5981 for ac_func in __getcwd _getcwd
5983 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5984 echo "configure:5985: checking for $ac_func" >&5
5985 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5986 echo $ac_n "(cached) $ac_c" 1>&6
5987 else
5988 cat > conftest.$ac_ext <<EOF
5989 #line 5990 "configure"
5990 #include "confdefs.h"
5991 /* System header to define __stub macros and hopefully few prototypes,
5992 which can conflict with char $ac_func(); below. */
5993 #include <assert.h>
5994 /* Override any gcc2 internal prototype to avoid an error. */
5995 /* We use char because int might match the return type of a gcc2
5996 builtin and then its argument prototype would still apply. */
5997 char $ac_func();
5999 int main() {
6001 /* The GNU C library defines this for functions which it implements
6002 to always fail with ENOSYS. Some functions are actually named
6003 something starting with __ and the normal name is an alias. */
6004 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6005 choke me
6006 #else
6007 $ac_func();
6008 #endif
6010 ; return 0; }
6012 if { (eval echo configure:6013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6013 rm -rf conftest*
6014 eval "ac_cv_func_$ac_func=yes"
6015 else
6016 echo "configure: failed program was:" >&5
6017 cat conftest.$ac_ext >&5
6018 rm -rf conftest*
6019 eval "ac_cv_func_$ac_func=no"
6021 rm -f conftest*
6024 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6025 echo "$ac_t""yes" 1>&6
6026 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6027 cat >> confdefs.h <<EOF
6028 #define $ac_tr_func 1
6031 else
6032 echo "$ac_t""no" 1>&6
6034 done
6036 for ac_func in __xstat __fxstat __lxstat
6038 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6039 echo "configure:6040: checking for $ac_func" >&5
6040 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6041 echo $ac_n "(cached) $ac_c" 1>&6
6042 else
6043 cat > conftest.$ac_ext <<EOF
6044 #line 6045 "configure"
6045 #include "confdefs.h"
6046 /* System header to define __stub macros and hopefully few prototypes,
6047 which can conflict with char $ac_func(); below. */
6048 #include <assert.h>
6049 /* Override any gcc2 internal prototype to avoid an error. */
6050 /* We use char because int might match the return type of a gcc2
6051 builtin and then its argument prototype would still apply. */
6052 char $ac_func();
6054 int main() {
6056 /* The GNU C library defines this for functions which it implements
6057 to always fail with ENOSYS. Some functions are actually named
6058 something starting with __ and the normal name is an alias. */
6059 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6060 choke me
6061 #else
6062 $ac_func();
6063 #endif
6065 ; return 0; }
6067 if { (eval echo configure:6068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6068 rm -rf conftest*
6069 eval "ac_cv_func_$ac_func=yes"
6070 else
6071 echo "configure: failed program was:" >&5
6072 cat conftest.$ac_ext >&5
6073 rm -rf conftest*
6074 eval "ac_cv_func_$ac_func=no"
6076 rm -f conftest*
6079 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6080 echo "$ac_t""yes" 1>&6
6081 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6082 cat >> confdefs.h <<EOF
6083 #define $ac_tr_func 1
6086 else
6087 echo "$ac_t""no" 1>&6
6089 done
6091 for ac_func in _stat _lstat _fstat __stat __lstat __fstat
6093 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6094 echo "configure:6095: checking for $ac_func" >&5
6095 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6096 echo $ac_n "(cached) $ac_c" 1>&6
6097 else
6098 cat > conftest.$ac_ext <<EOF
6099 #line 6100 "configure"
6100 #include "confdefs.h"
6101 /* System header to define __stub macros and hopefully few prototypes,
6102 which can conflict with char $ac_func(); below. */
6103 #include <assert.h>
6104 /* Override any gcc2 internal prototype to avoid an error. */
6105 /* We use char because int might match the return type of a gcc2
6106 builtin and then its argument prototype would still apply. */
6107 char $ac_func();
6109 int main() {
6111 /* The GNU C library defines this for functions which it implements
6112 to always fail with ENOSYS. Some functions are actually named
6113 something starting with __ and the normal name is an alias. */
6114 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6115 choke me
6116 #else
6117 $ac_func();
6118 #endif
6120 ; return 0; }
6122 if { (eval echo configure:6123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6123 rm -rf conftest*
6124 eval "ac_cv_func_$ac_func=yes"
6125 else
6126 echo "configure: failed program was:" >&5
6127 cat conftest.$ac_ext >&5
6128 rm -rf conftest*
6129 eval "ac_cv_func_$ac_func=no"
6131 rm -f conftest*
6134 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6135 echo "$ac_t""yes" 1>&6
6136 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6137 cat >> confdefs.h <<EOF
6138 #define $ac_tr_func 1
6141 else
6142 echo "$ac_t""no" 1>&6
6144 done
6146 for ac_func in _acl __acl _facl __facl _open __open _chdir __chdir
6148 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6149 echo "configure:6150: checking for $ac_func" >&5
6150 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6151 echo $ac_n "(cached) $ac_c" 1>&6
6152 else
6153 cat > conftest.$ac_ext <<EOF
6154 #line 6155 "configure"
6155 #include "confdefs.h"
6156 /* System header to define __stub macros and hopefully few prototypes,
6157 which can conflict with char $ac_func(); below. */
6158 #include <assert.h>
6159 /* Override any gcc2 internal prototype to avoid an error. */
6160 /* We use char because int might match the return type of a gcc2
6161 builtin and then its argument prototype would still apply. */
6162 char $ac_func();
6164 int main() {
6166 /* The GNU C library defines this for functions which it implements
6167 to always fail with ENOSYS. Some functions are actually named
6168 something starting with __ and the normal name is an alias. */
6169 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6170 choke me
6171 #else
6172 $ac_func();
6173 #endif
6175 ; return 0; }
6177 if { (eval echo configure:6178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6178 rm -rf conftest*
6179 eval "ac_cv_func_$ac_func=yes"
6180 else
6181 echo "configure: failed program was:" >&5
6182 cat conftest.$ac_ext >&5
6183 rm -rf conftest*
6184 eval "ac_cv_func_$ac_func=no"
6186 rm -f conftest*
6189 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6190 echo "$ac_t""yes" 1>&6
6191 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6192 cat >> confdefs.h <<EOF
6193 #define $ac_tr_func 1
6196 else
6197 echo "$ac_t""no" 1>&6
6199 done
6201 for ac_func in _close __close _fchdir __fchdir _fcntl __fcntl
6203 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6204 echo "configure:6205: checking for $ac_func" >&5
6205 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6206 echo $ac_n "(cached) $ac_c" 1>&6
6207 else
6208 cat > conftest.$ac_ext <<EOF
6209 #line 6210 "configure"
6210 #include "confdefs.h"
6211 /* System header to define __stub macros and hopefully few prototypes,
6212 which can conflict with char $ac_func(); below. */
6213 #include <assert.h>
6214 /* Override any gcc2 internal prototype to avoid an error. */
6215 /* We use char because int might match the return type of a gcc2
6216 builtin and then its argument prototype would still apply. */
6217 char $ac_func();
6219 int main() {
6221 /* The GNU C library defines this for functions which it implements
6222 to always fail with ENOSYS. Some functions are actually named
6223 something starting with __ and the normal name is an alias. */
6224 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6225 choke me
6226 #else
6227 $ac_func();
6228 #endif
6230 ; return 0; }
6232 if { (eval echo configure:6233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6233 rm -rf conftest*
6234 eval "ac_cv_func_$ac_func=yes"
6235 else
6236 echo "configure: failed program was:" >&5
6237 cat conftest.$ac_ext >&5
6238 rm -rf conftest*
6239 eval "ac_cv_func_$ac_func=no"
6241 rm -f conftest*
6244 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6245 echo "$ac_t""yes" 1>&6
6246 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6247 cat >> confdefs.h <<EOF
6248 #define $ac_tr_func 1
6251 else
6252 echo "$ac_t""no" 1>&6
6254 done
6256 for ac_func in getdents _getdents __getdents _lseek __lseek _read __read
6258 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6259 echo "configure:6260: checking for $ac_func" >&5
6260 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6261 echo $ac_n "(cached) $ac_c" 1>&6
6262 else
6263 cat > conftest.$ac_ext <<EOF
6264 #line 6265 "configure"
6265 #include "confdefs.h"
6266 /* System header to define __stub macros and hopefully few prototypes,
6267 which can conflict with char $ac_func(); below. */
6268 #include <assert.h>
6269 /* Override any gcc2 internal prototype to avoid an error. */
6270 /* We use char because int might match the return type of a gcc2
6271 builtin and then its argument prototype would still apply. */
6272 char $ac_func();
6274 int main() {
6276 /* The GNU C library defines this for functions which it implements
6277 to always fail with ENOSYS. Some functions are actually named
6278 something starting with __ and the normal name is an alias. */
6279 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6280 choke me
6281 #else
6282 $ac_func();
6283 #endif
6285 ; return 0; }
6287 if { (eval echo configure:6288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6288 rm -rf conftest*
6289 eval "ac_cv_func_$ac_func=yes"
6290 else
6291 echo "configure: failed program was:" >&5
6292 cat conftest.$ac_ext >&5
6293 rm -rf conftest*
6294 eval "ac_cv_func_$ac_func=no"
6296 rm -f conftest*
6299 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6300 echo "$ac_t""yes" 1>&6
6301 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6302 cat >> confdefs.h <<EOF
6303 #define $ac_tr_func 1
6306 else
6307 echo "$ac_t""no" 1>&6
6309 done
6311 for ac_func in _write __write _fork __fork
6313 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6314 echo "configure:6315: checking for $ac_func" >&5
6315 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6316 echo $ac_n "(cached) $ac_c" 1>&6
6317 else
6318 cat > conftest.$ac_ext <<EOF
6319 #line 6320 "configure"
6320 #include "confdefs.h"
6321 /* System header to define __stub macros and hopefully few prototypes,
6322 which can conflict with char $ac_func(); below. */
6323 #include <assert.h>
6324 /* Override any gcc2 internal prototype to avoid an error. */
6325 /* We use char because int might match the return type of a gcc2
6326 builtin and then its argument prototype would still apply. */
6327 char $ac_func();
6329 int main() {
6331 /* The GNU C library defines this for functions which it implements
6332 to always fail with ENOSYS. Some functions are actually named
6333 something starting with __ and the normal name is an alias. */
6334 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6335 choke me
6336 #else
6337 $ac_func();
6338 #endif
6340 ; return 0; }
6342 if { (eval echo configure:6343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6343 rm -rf conftest*
6344 eval "ac_cv_func_$ac_func=yes"
6345 else
6346 echo "configure: failed program was:" >&5
6347 cat conftest.$ac_ext >&5
6348 rm -rf conftest*
6349 eval "ac_cv_func_$ac_func=no"
6351 rm -f conftest*
6354 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6355 echo "$ac_t""yes" 1>&6
6356 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6357 cat >> confdefs.h <<EOF
6358 #define $ac_tr_func 1
6361 else
6362 echo "$ac_t""no" 1>&6
6364 done
6366 for ac_func in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
6368 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6369 echo "configure:6370: checking for $ac_func" >&5
6370 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6371 echo $ac_n "(cached) $ac_c" 1>&6
6372 else
6373 cat > conftest.$ac_ext <<EOF
6374 #line 6375 "configure"
6375 #include "confdefs.h"
6376 /* System header to define __stub macros and hopefully few prototypes,
6377 which can conflict with char $ac_func(); below. */
6378 #include <assert.h>
6379 /* Override any gcc2 internal prototype to avoid an error. */
6380 /* We use char because int might match the return type of a gcc2
6381 builtin and then its argument prototype would still apply. */
6382 char $ac_func();
6384 int main() {
6386 /* The GNU C library defines this for functions which it implements
6387 to always fail with ENOSYS. Some functions are actually named
6388 something starting with __ and the normal name is an alias. */
6389 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6390 choke me
6391 #else
6392 $ac_func();
6393 #endif
6395 ; return 0; }
6397 if { (eval echo configure:6398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6398 rm -rf conftest*
6399 eval "ac_cv_func_$ac_func=yes"
6400 else
6401 echo "configure: failed program was:" >&5
6402 cat conftest.$ac_ext >&5
6403 rm -rf conftest*
6404 eval "ac_cv_func_$ac_func=no"
6406 rm -f conftest*
6409 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6410 echo "$ac_t""yes" 1>&6
6411 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6412 cat >> confdefs.h <<EOF
6413 #define $ac_tr_func 1
6416 else
6417 echo "$ac_t""no" 1>&6
6419 done
6421 for ac_func in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
6423 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6424 echo "configure:6425: checking for $ac_func" >&5
6425 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6426 echo $ac_n "(cached) $ac_c" 1>&6
6427 else
6428 cat > conftest.$ac_ext <<EOF
6429 #line 6430 "configure"
6430 #include "confdefs.h"
6431 /* System header to define __stub macros and hopefully few prototypes,
6432 which can conflict with char $ac_func(); below. */
6433 #include <assert.h>
6434 /* Override any gcc2 internal prototype to avoid an error. */
6435 /* We use char because int might match the return type of a gcc2
6436 builtin and then its argument prototype would still apply. */
6437 char $ac_func();
6439 int main() {
6441 /* The GNU C library defines this for functions which it implements
6442 to always fail with ENOSYS. Some functions are actually named
6443 something starting with __ and the normal name is an alias. */
6444 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6445 choke me
6446 #else
6447 $ac_func();
6448 #endif
6450 ; return 0; }
6452 if { (eval echo configure:6453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6453 rm -rf conftest*
6454 eval "ac_cv_func_$ac_func=yes"
6455 else
6456 echo "configure: failed program was:" >&5
6457 cat conftest.$ac_ext >&5
6458 rm -rf conftest*
6459 eval "ac_cv_func_$ac_func=no"
6461 rm -f conftest*
6464 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6465 echo "$ac_t""yes" 1>&6
6466 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6467 cat >> confdefs.h <<EOF
6468 #define $ac_tr_func 1
6471 else
6472 echo "$ac_t""no" 1>&6
6474 done
6476 for ac_func in pread _pread __pread pread64 _pread64 __pread64
6478 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6479 echo "configure:6480: checking for $ac_func" >&5
6480 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6481 echo $ac_n "(cached) $ac_c" 1>&6
6482 else
6483 cat > conftest.$ac_ext <<EOF
6484 #line 6485 "configure"
6485 #include "confdefs.h"
6486 /* System header to define __stub macros and hopefully few prototypes,
6487 which can conflict with char $ac_func(); below. */
6488 #include <assert.h>
6489 /* Override any gcc2 internal prototype to avoid an error. */
6490 /* We use char because int might match the return type of a gcc2
6491 builtin and then its argument prototype would still apply. */
6492 char $ac_func();
6494 int main() {
6496 /* The GNU C library defines this for functions which it implements
6497 to always fail with ENOSYS. Some functions are actually named
6498 something starting with __ and the normal name is an alias. */
6499 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6500 choke me
6501 #else
6502 $ac_func();
6503 #endif
6505 ; return 0; }
6507 if { (eval echo configure:6508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6508 rm -rf conftest*
6509 eval "ac_cv_func_$ac_func=yes"
6510 else
6511 echo "configure: failed program was:" >&5
6512 cat conftest.$ac_ext >&5
6513 rm -rf conftest*
6514 eval "ac_cv_func_$ac_func=no"
6516 rm -f conftest*
6519 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6520 echo "$ac_t""yes" 1>&6
6521 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6522 cat >> confdefs.h <<EOF
6523 #define $ac_tr_func 1
6526 else
6527 echo "$ac_t""no" 1>&6
6529 done
6531 for ac_func in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
6533 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6534 echo "configure:6535: checking for $ac_func" >&5
6535 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6536 echo $ac_n "(cached) $ac_c" 1>&6
6537 else
6538 cat > conftest.$ac_ext <<EOF
6539 #line 6540 "configure"
6540 #include "confdefs.h"
6541 /* System header to define __stub macros and hopefully few prototypes,
6542 which can conflict with char $ac_func(); below. */
6543 #include <assert.h>
6544 /* Override any gcc2 internal prototype to avoid an error. */
6545 /* We use char because int might match the return type of a gcc2
6546 builtin and then its argument prototype would still apply. */
6547 char $ac_func();
6549 int main() {
6551 /* The GNU C library defines this for functions which it implements
6552 to always fail with ENOSYS. Some functions are actually named
6553 something starting with __ and the normal name is an alias. */
6554 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6555 choke me
6556 #else
6557 $ac_func();
6558 #endif
6560 ; return 0; }
6562 if { (eval echo configure:6563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6563 rm -rf conftest*
6564 eval "ac_cv_func_$ac_func=yes"
6565 else
6566 echo "configure: failed program was:" >&5
6567 cat conftest.$ac_ext >&5
6568 rm -rf conftest*
6569 eval "ac_cv_func_$ac_func=no"
6571 rm -f conftest*
6574 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6575 echo "$ac_t""yes" 1>&6
6576 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6577 cat >> confdefs.h <<EOF
6578 #define $ac_tr_func 1
6581 else
6582 echo "$ac_t""no" 1>&6
6584 done
6586 for ac_func in open64 _open64 __open64 creat64
6588 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6589 echo "configure:6590: checking for $ac_func" >&5
6590 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6591 echo $ac_n "(cached) $ac_c" 1>&6
6592 else
6593 cat > conftest.$ac_ext <<EOF
6594 #line 6595 "configure"
6595 #include "confdefs.h"
6596 /* System header to define __stub macros and hopefully few prototypes,
6597 which can conflict with char $ac_func(); below. */
6598 #include <assert.h>
6599 /* Override any gcc2 internal prototype to avoid an error. */
6600 /* We use char because int might match the return type of a gcc2
6601 builtin and then its argument prototype would still apply. */
6602 char $ac_func();
6604 int main() {
6606 /* The GNU C library defines this for functions which it implements
6607 to always fail with ENOSYS. Some functions are actually named
6608 something starting with __ and the normal name is an alias. */
6609 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6610 choke me
6611 #else
6612 $ac_func();
6613 #endif
6615 ; return 0; }
6617 if { (eval echo configure:6618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6618 rm -rf conftest*
6619 eval "ac_cv_func_$ac_func=yes"
6620 else
6621 echo "configure: failed program was:" >&5
6622 cat conftest.$ac_ext >&5
6623 rm -rf conftest*
6624 eval "ac_cv_func_$ac_func=no"
6626 rm -f conftest*
6629 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6630 echo "$ac_t""yes" 1>&6
6631 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6632 cat >> confdefs.h <<EOF
6633 #define $ac_tr_func 1
6636 else
6637 echo "$ac_t""no" 1>&6
6639 done
6643 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
6646 if test x$ac_cv_func_stat64 = xno ; then
6647 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
6648 echo "configure:6649: checking for stat64 in <sys/stat.h>" >&5
6649 cat > conftest.$ac_ext <<EOF
6650 #line 6651 "configure"
6651 #include "confdefs.h"
6653 #if defined(HAVE_UNISTD_H)
6654 #include <unistd.h>
6655 #endif
6656 #include <sys/stat.h>
6658 int main() {
6659 struct stat64 st64; exit(stat64(".",&st64));
6660 ; return 0; }
6662 if { (eval echo configure:6663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6663 rm -rf conftest*
6664 ac_cv_func_stat64=yes
6665 else
6666 echo "configure: failed program was:" >&5
6667 cat conftest.$ac_ext >&5
6669 rm -f conftest*
6670 echo "$ac_t""$ac_cv_func_stat64" 1>&6
6671 if test x$ac_cv_func_stat64 = xyes ; then
6672 cat >> confdefs.h <<\EOF
6673 #define HAVE_STAT64 1
6679 if test x$ac_cv_func_lstat64 = xno ; then
6680 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
6681 echo "configure:6682: checking for lstat64 in <sys/stat.h>" >&5
6682 cat > conftest.$ac_ext <<EOF
6683 #line 6684 "configure"
6684 #include "confdefs.h"
6686 #if defined(HAVE_UNISTD_H)
6687 #include <unistd.h>
6688 #endif
6689 #include <sys/stat.h>
6691 int main() {
6692 struct stat64 st64; exit(lstat64(".",&st64));
6693 ; return 0; }
6695 if { (eval echo configure:6696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6696 rm -rf conftest*
6697 ac_cv_func_lstat64=yes
6698 else
6699 echo "configure: failed program was:" >&5
6700 cat conftest.$ac_ext >&5
6702 rm -f conftest*
6703 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
6704 if test x$ac_cv_func_lstat64 = xyes ; then
6705 cat >> confdefs.h <<\EOF
6706 #define HAVE_LSTAT64 1
6712 if test x$ac_cv_func_fstat64 = xno ; then
6713 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
6714 echo "configure:6715: checking for fstat64 in <sys/stat.h>" >&5
6715 cat > conftest.$ac_ext <<EOF
6716 #line 6717 "configure"
6717 #include "confdefs.h"
6719 #if defined(HAVE_UNISTD_H)
6720 #include <unistd.h>
6721 #endif
6722 #include <sys/stat.h>
6724 int main() {
6725 struct stat64 st64; exit(fstat64(0,&st64));
6726 ; return 0; }
6728 if { (eval echo configure:6729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6729 rm -rf conftest*
6730 ac_cv_func_fstat64=yes
6731 else
6732 echo "configure: failed program was:" >&5
6733 cat conftest.$ac_ext >&5
6735 rm -f conftest*
6736 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
6737 if test x$ac_cv_func_fstat64 = xyes ; then
6738 cat >> confdefs.h <<\EOF
6739 #define HAVE_FSTAT64 1
6746 # If no strcasecmp, check for it in some known places
6747 # It is in -lresolv on ReliantUNIX and UnixWare
6748 # -lresolve *must* follow -lnsl for name resolution to work properly
6751 if test x$ac_cv_func_strcasecmp = xno ; then
6752 echo $ac_n "checking for strcasecmp in -lresolv""... $ac_c" 1>&6
6753 echo "configure:6754: checking for strcasecmp in -lresolv" >&5
6754 ac_lib_var=`echo resolv'_'strcasecmp | sed 'y%./+-%__p_%'`
6755 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6756 echo $ac_n "(cached) $ac_c" 1>&6
6757 else
6758 ac_save_LIBS="$LIBS"
6759 LIBS="-lresolv $LIBS"
6760 cat > conftest.$ac_ext <<EOF
6761 #line 6762 "configure"
6762 #include "confdefs.h"
6763 /* Override any gcc2 internal prototype to avoid an error. */
6764 /* We use char because int might match the return type of a gcc2
6765 builtin and then its argument prototype would still apply. */
6766 char strcasecmp();
6768 int main() {
6769 strcasecmp()
6770 ; return 0; }
6772 if { (eval echo configure:6773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6773 rm -rf conftest*
6774 eval "ac_cv_lib_$ac_lib_var=yes"
6775 else
6776 echo "configure: failed program was:" >&5
6777 cat conftest.$ac_ext >&5
6778 rm -rf conftest*
6779 eval "ac_cv_lib_$ac_lib_var=no"
6781 rm -f conftest*
6782 LIBS="$ac_save_LIBS"
6785 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6786 echo "$ac_t""yes" 1>&6
6787 LIBS="$LIBS -lresolv"
6788 cat >> confdefs.h <<\EOF
6789 #define HAVE_STRCASECMP 1
6792 else
6793 echo "$ac_t""no" 1>&6
6799 # Check for the functions putprpwnam, set_auth_parameters,
6800 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
6801 # Needed for OSF1 and HPUX.
6804 case "$LIBS" in
6805 *-lsecurity*) for ac_func in putprpwnam
6807 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6808 echo "configure:6809: checking for $ac_func" >&5
6809 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6810 echo $ac_n "(cached) $ac_c" 1>&6
6811 else
6812 cat > conftest.$ac_ext <<EOF
6813 #line 6814 "configure"
6814 #include "confdefs.h"
6815 /* System header to define __stub macros and hopefully few prototypes,
6816 which can conflict with char $ac_func(); below. */
6817 #include <assert.h>
6818 /* Override any gcc2 internal prototype to avoid an error. */
6819 /* We use char because int might match the return type of a gcc2
6820 builtin and then its argument prototype would still apply. */
6821 char $ac_func();
6823 int main() {
6825 /* The GNU C library defines this for functions which it implements
6826 to always fail with ENOSYS. Some functions are actually named
6827 something starting with __ and the normal name is an alias. */
6828 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6829 choke me
6830 #else
6831 $ac_func();
6832 #endif
6834 ; return 0; }
6836 if { (eval echo configure:6837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6837 rm -rf conftest*
6838 eval "ac_cv_func_$ac_func=yes"
6839 else
6840 echo "configure: failed program was:" >&5
6841 cat conftest.$ac_ext >&5
6842 rm -rf conftest*
6843 eval "ac_cv_func_$ac_func=no"
6845 rm -f conftest*
6848 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6849 echo "$ac_t""yes" 1>&6
6850 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6851 cat >> confdefs.h <<EOF
6852 #define $ac_tr_func 1
6855 else
6856 echo "$ac_t""no" 1>&6
6858 done
6860 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
6861 echo "configure:6862: checking for putprpwnam in -lsecurity" >&5
6862 ac_lib_var=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
6863 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6864 echo $ac_n "(cached) $ac_c" 1>&6
6865 else
6866 ac_save_LIBS="$LIBS"
6867 LIBS="-lsecurity $LIBS"
6868 cat > conftest.$ac_ext <<EOF
6869 #line 6870 "configure"
6870 #include "confdefs.h"
6871 /* Override any gcc2 internal prototype to avoid an error. */
6872 /* We use char because int might match the return type of a gcc2
6873 builtin and then its argument prototype would still apply. */
6874 char putprpwnam();
6876 int main() {
6877 putprpwnam()
6878 ; return 0; }
6880 if { (eval echo configure:6881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6881 rm -rf conftest*
6882 eval "ac_cv_lib_$ac_lib_var=yes"
6883 else
6884 echo "configure: failed program was:" >&5
6885 cat conftest.$ac_ext >&5
6886 rm -rf conftest*
6887 eval "ac_cv_lib_$ac_lib_var=no"
6889 rm -f conftest*
6890 LIBS="$ac_save_LIBS"
6893 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6894 echo "$ac_t""yes" 1>&6
6895 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6896 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6897 cat >> confdefs.h <<EOF
6898 #define $ac_tr_lib 1
6901 LIBS="-lsecurity $LIBS"
6903 else
6904 echo "$ac_t""no" 1>&6
6907 for ac_func in putprpwnam
6909 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6910 echo "configure:6911: checking for $ac_func" >&5
6911 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6912 echo $ac_n "(cached) $ac_c" 1>&6
6913 else
6914 cat > conftest.$ac_ext <<EOF
6915 #line 6916 "configure"
6916 #include "confdefs.h"
6917 /* System header to define __stub macros and hopefully few prototypes,
6918 which can conflict with char $ac_func(); below. */
6919 #include <assert.h>
6920 /* Override any gcc2 internal prototype to avoid an error. */
6921 /* We use char because int might match the return type of a gcc2
6922 builtin and then its argument prototype would still apply. */
6923 char $ac_func();
6925 int main() {
6927 /* The GNU C library defines this for functions which it implements
6928 to always fail with ENOSYS. Some functions are actually named
6929 something starting with __ and the normal name is an alias. */
6930 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6931 choke me
6932 #else
6933 $ac_func();
6934 #endif
6936 ; return 0; }
6938 if { (eval echo configure:6939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6939 rm -rf conftest*
6940 eval "ac_cv_func_$ac_func=yes"
6941 else
6942 echo "configure: failed program was:" >&5
6943 cat conftest.$ac_ext >&5
6944 rm -rf conftest*
6945 eval "ac_cv_func_$ac_func=no"
6947 rm -f conftest*
6950 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6951 echo "$ac_t""yes" 1>&6
6952 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6953 cat >> confdefs.h <<EOF
6954 #define $ac_tr_func 1
6957 else
6958 echo "$ac_t""no" 1>&6
6960 done
6963 esac
6965 case "$LIBS" in
6966 *-lsec*) for ac_func in putprpwnam
6968 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6969 echo "configure:6970: checking for $ac_func" >&5
6970 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6971 echo $ac_n "(cached) $ac_c" 1>&6
6972 else
6973 cat > conftest.$ac_ext <<EOF
6974 #line 6975 "configure"
6975 #include "confdefs.h"
6976 /* System header to define __stub macros and hopefully few prototypes,
6977 which can conflict with char $ac_func(); below. */
6978 #include <assert.h>
6979 /* Override any gcc2 internal prototype to avoid an error. */
6980 /* We use char because int might match the return type of a gcc2
6981 builtin and then its argument prototype would still apply. */
6982 char $ac_func();
6984 int main() {
6986 /* The GNU C library defines this for functions which it implements
6987 to always fail with ENOSYS. Some functions are actually named
6988 something starting with __ and the normal name is an alias. */
6989 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6990 choke me
6991 #else
6992 $ac_func();
6993 #endif
6995 ; return 0; }
6997 if { (eval echo configure:6998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6998 rm -rf conftest*
6999 eval "ac_cv_func_$ac_func=yes"
7000 else
7001 echo "configure: failed program was:" >&5
7002 cat conftest.$ac_ext >&5
7003 rm -rf conftest*
7004 eval "ac_cv_func_$ac_func=no"
7006 rm -f conftest*
7009 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7010 echo "$ac_t""yes" 1>&6
7011 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7012 cat >> confdefs.h <<EOF
7013 #define $ac_tr_func 1
7016 else
7017 echo "$ac_t""no" 1>&6
7019 done
7021 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
7022 echo "configure:7023: checking for putprpwnam in -lsec" >&5
7023 ac_lib_var=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
7024 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7025 echo $ac_n "(cached) $ac_c" 1>&6
7026 else
7027 ac_save_LIBS="$LIBS"
7028 LIBS="-lsec $LIBS"
7029 cat > conftest.$ac_ext <<EOF
7030 #line 7031 "configure"
7031 #include "confdefs.h"
7032 /* Override any gcc2 internal prototype to avoid an error. */
7033 /* We use char because int might match the return type of a gcc2
7034 builtin and then its argument prototype would still apply. */
7035 char putprpwnam();
7037 int main() {
7038 putprpwnam()
7039 ; return 0; }
7041 if { (eval echo configure:7042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7042 rm -rf conftest*
7043 eval "ac_cv_lib_$ac_lib_var=yes"
7044 else
7045 echo "configure: failed program was:" >&5
7046 cat conftest.$ac_ext >&5
7047 rm -rf conftest*
7048 eval "ac_cv_lib_$ac_lib_var=no"
7050 rm -f conftest*
7051 LIBS="$ac_save_LIBS"
7054 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7055 echo "$ac_t""yes" 1>&6
7056 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7057 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7058 cat >> confdefs.h <<EOF
7059 #define $ac_tr_lib 1
7062 LIBS="-lsec $LIBS"
7064 else
7065 echo "$ac_t""no" 1>&6
7068 for ac_func in putprpwnam
7070 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7071 echo "configure:7072: checking for $ac_func" >&5
7072 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7073 echo $ac_n "(cached) $ac_c" 1>&6
7074 else
7075 cat > conftest.$ac_ext <<EOF
7076 #line 7077 "configure"
7077 #include "confdefs.h"
7078 /* System header to define __stub macros and hopefully few prototypes,
7079 which can conflict with char $ac_func(); below. */
7080 #include <assert.h>
7081 /* Override any gcc2 internal prototype to avoid an error. */
7082 /* We use char because int might match the return type of a gcc2
7083 builtin and then its argument prototype would still apply. */
7084 char $ac_func();
7086 int main() {
7088 /* The GNU C library defines this for functions which it implements
7089 to always fail with ENOSYS. Some functions are actually named
7090 something starting with __ and the normal name is an alias. */
7091 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7092 choke me
7093 #else
7094 $ac_func();
7095 #endif
7097 ; return 0; }
7099 if { (eval echo configure:7100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7100 rm -rf conftest*
7101 eval "ac_cv_func_$ac_func=yes"
7102 else
7103 echo "configure: failed program was:" >&5
7104 cat conftest.$ac_ext >&5
7105 rm -rf conftest*
7106 eval "ac_cv_func_$ac_func=no"
7108 rm -f conftest*
7111 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7112 echo "$ac_t""yes" 1>&6
7113 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7114 cat >> confdefs.h <<EOF
7115 #define $ac_tr_func 1
7118 else
7119 echo "$ac_t""no" 1>&6
7121 done
7124 esac
7127 case "$LIBS" in
7128 *-lsecurity*) for ac_func in set_auth_parameters
7130 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7131 echo "configure:7132: checking for $ac_func" >&5
7132 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7133 echo $ac_n "(cached) $ac_c" 1>&6
7134 else
7135 cat > conftest.$ac_ext <<EOF
7136 #line 7137 "configure"
7137 #include "confdefs.h"
7138 /* System header to define __stub macros and hopefully few prototypes,
7139 which can conflict with char $ac_func(); below. */
7140 #include <assert.h>
7141 /* Override any gcc2 internal prototype to avoid an error. */
7142 /* We use char because int might match the return type of a gcc2
7143 builtin and then its argument prototype would still apply. */
7144 char $ac_func();
7146 int main() {
7148 /* The GNU C library defines this for functions which it implements
7149 to always fail with ENOSYS. Some functions are actually named
7150 something starting with __ and the normal name is an alias. */
7151 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7152 choke me
7153 #else
7154 $ac_func();
7155 #endif
7157 ; return 0; }
7159 if { (eval echo configure:7160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7160 rm -rf conftest*
7161 eval "ac_cv_func_$ac_func=yes"
7162 else
7163 echo "configure: failed program was:" >&5
7164 cat conftest.$ac_ext >&5
7165 rm -rf conftest*
7166 eval "ac_cv_func_$ac_func=no"
7168 rm -f conftest*
7171 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7172 echo "$ac_t""yes" 1>&6
7173 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7174 cat >> confdefs.h <<EOF
7175 #define $ac_tr_func 1
7178 else
7179 echo "$ac_t""no" 1>&6
7181 done
7183 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
7184 echo "configure:7185: checking for set_auth_parameters in -lsecurity" >&5
7185 ac_lib_var=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7186 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7187 echo $ac_n "(cached) $ac_c" 1>&6
7188 else
7189 ac_save_LIBS="$LIBS"
7190 LIBS="-lsecurity $LIBS"
7191 cat > conftest.$ac_ext <<EOF
7192 #line 7193 "configure"
7193 #include "confdefs.h"
7194 /* Override any gcc2 internal prototype to avoid an error. */
7195 /* We use char because int might match the return type of a gcc2
7196 builtin and then its argument prototype would still apply. */
7197 char set_auth_parameters();
7199 int main() {
7200 set_auth_parameters()
7201 ; return 0; }
7203 if { (eval echo configure:7204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7204 rm -rf conftest*
7205 eval "ac_cv_lib_$ac_lib_var=yes"
7206 else
7207 echo "configure: failed program was:" >&5
7208 cat conftest.$ac_ext >&5
7209 rm -rf conftest*
7210 eval "ac_cv_lib_$ac_lib_var=no"
7212 rm -f conftest*
7213 LIBS="$ac_save_LIBS"
7216 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7217 echo "$ac_t""yes" 1>&6
7218 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7219 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7220 cat >> confdefs.h <<EOF
7221 #define $ac_tr_lib 1
7224 LIBS="-lsecurity $LIBS"
7226 else
7227 echo "$ac_t""no" 1>&6
7230 for ac_func in set_auth_parameters
7232 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7233 echo "configure:7234: checking for $ac_func" >&5
7234 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7235 echo $ac_n "(cached) $ac_c" 1>&6
7236 else
7237 cat > conftest.$ac_ext <<EOF
7238 #line 7239 "configure"
7239 #include "confdefs.h"
7240 /* System header to define __stub macros and hopefully few prototypes,
7241 which can conflict with char $ac_func(); below. */
7242 #include <assert.h>
7243 /* Override any gcc2 internal prototype to avoid an error. */
7244 /* We use char because int might match the return type of a gcc2
7245 builtin and then its argument prototype would still apply. */
7246 char $ac_func();
7248 int main() {
7250 /* The GNU C library defines this for functions which it implements
7251 to always fail with ENOSYS. Some functions are actually named
7252 something starting with __ and the normal name is an alias. */
7253 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7254 choke me
7255 #else
7256 $ac_func();
7257 #endif
7259 ; return 0; }
7261 if { (eval echo configure:7262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7262 rm -rf conftest*
7263 eval "ac_cv_func_$ac_func=yes"
7264 else
7265 echo "configure: failed program was:" >&5
7266 cat conftest.$ac_ext >&5
7267 rm -rf conftest*
7268 eval "ac_cv_func_$ac_func=no"
7270 rm -f conftest*
7273 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7274 echo "$ac_t""yes" 1>&6
7275 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7276 cat >> confdefs.h <<EOF
7277 #define $ac_tr_func 1
7280 else
7281 echo "$ac_t""no" 1>&6
7283 done
7286 esac
7288 case "$LIBS" in
7289 *-lsec*) for ac_func in set_auth_parameters
7291 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7292 echo "configure:7293: checking for $ac_func" >&5
7293 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7294 echo $ac_n "(cached) $ac_c" 1>&6
7295 else
7296 cat > conftest.$ac_ext <<EOF
7297 #line 7298 "configure"
7298 #include "confdefs.h"
7299 /* System header to define __stub macros and hopefully few prototypes,
7300 which can conflict with char $ac_func(); below. */
7301 #include <assert.h>
7302 /* Override any gcc2 internal prototype to avoid an error. */
7303 /* We use char because int might match the return type of a gcc2
7304 builtin and then its argument prototype would still apply. */
7305 char $ac_func();
7307 int main() {
7309 /* The GNU C library defines this for functions which it implements
7310 to always fail with ENOSYS. Some functions are actually named
7311 something starting with __ and the normal name is an alias. */
7312 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7313 choke me
7314 #else
7315 $ac_func();
7316 #endif
7318 ; return 0; }
7320 if { (eval echo configure:7321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7321 rm -rf conftest*
7322 eval "ac_cv_func_$ac_func=yes"
7323 else
7324 echo "configure: failed program was:" >&5
7325 cat conftest.$ac_ext >&5
7326 rm -rf conftest*
7327 eval "ac_cv_func_$ac_func=no"
7329 rm -f conftest*
7332 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7333 echo "$ac_t""yes" 1>&6
7334 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7335 cat >> confdefs.h <<EOF
7336 #define $ac_tr_func 1
7339 else
7340 echo "$ac_t""no" 1>&6
7342 done
7344 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
7345 echo "configure:7346: checking for set_auth_parameters in -lsec" >&5
7346 ac_lib_var=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7347 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7348 echo $ac_n "(cached) $ac_c" 1>&6
7349 else
7350 ac_save_LIBS="$LIBS"
7351 LIBS="-lsec $LIBS"
7352 cat > conftest.$ac_ext <<EOF
7353 #line 7354 "configure"
7354 #include "confdefs.h"
7355 /* Override any gcc2 internal prototype to avoid an error. */
7356 /* We use char because int might match the return type of a gcc2
7357 builtin and then its argument prototype would still apply. */
7358 char set_auth_parameters();
7360 int main() {
7361 set_auth_parameters()
7362 ; return 0; }
7364 if { (eval echo configure:7365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7365 rm -rf conftest*
7366 eval "ac_cv_lib_$ac_lib_var=yes"
7367 else
7368 echo "configure: failed program was:" >&5
7369 cat conftest.$ac_ext >&5
7370 rm -rf conftest*
7371 eval "ac_cv_lib_$ac_lib_var=no"
7373 rm -f conftest*
7374 LIBS="$ac_save_LIBS"
7377 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7378 echo "$ac_t""yes" 1>&6
7379 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7380 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7381 cat >> confdefs.h <<EOF
7382 #define $ac_tr_lib 1
7385 LIBS="-lsec $LIBS"
7387 else
7388 echo "$ac_t""no" 1>&6
7391 for ac_func in set_auth_parameters
7393 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7394 echo "configure:7395: checking for $ac_func" >&5
7395 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7396 echo $ac_n "(cached) $ac_c" 1>&6
7397 else
7398 cat > conftest.$ac_ext <<EOF
7399 #line 7400 "configure"
7400 #include "confdefs.h"
7401 /* System header to define __stub macros and hopefully few prototypes,
7402 which can conflict with char $ac_func(); below. */
7403 #include <assert.h>
7404 /* Override any gcc2 internal prototype to avoid an error. */
7405 /* We use char because int might match the return type of a gcc2
7406 builtin and then its argument prototype would still apply. */
7407 char $ac_func();
7409 int main() {
7411 /* The GNU C library defines this for functions which it implements
7412 to always fail with ENOSYS. Some functions are actually named
7413 something starting with __ and the normal name is an alias. */
7414 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7415 choke me
7416 #else
7417 $ac_func();
7418 #endif
7420 ; return 0; }
7422 if { (eval echo configure:7423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7423 rm -rf conftest*
7424 eval "ac_cv_func_$ac_func=yes"
7425 else
7426 echo "configure: failed program was:" >&5
7427 cat conftest.$ac_ext >&5
7428 rm -rf conftest*
7429 eval "ac_cv_func_$ac_func=no"
7431 rm -f conftest*
7434 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7435 echo "$ac_t""yes" 1>&6
7436 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7437 cat >> confdefs.h <<EOF
7438 #define $ac_tr_func 1
7441 else
7442 echo "$ac_t""no" 1>&6
7444 done
7447 esac
7450 # UnixWare 7.x has its getspnam in -lgen
7451 case "$LIBS" in
7452 *-lgen*) for ac_func in getspnam
7454 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7455 echo "configure:7456: checking for $ac_func" >&5
7456 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7457 echo $ac_n "(cached) $ac_c" 1>&6
7458 else
7459 cat > conftest.$ac_ext <<EOF
7460 #line 7461 "configure"
7461 #include "confdefs.h"
7462 /* System header to define __stub macros and hopefully few prototypes,
7463 which can conflict with char $ac_func(); below. */
7464 #include <assert.h>
7465 /* Override any gcc2 internal prototype to avoid an error. */
7466 /* We use char because int might match the return type of a gcc2
7467 builtin and then its argument prototype would still apply. */
7468 char $ac_func();
7470 int main() {
7472 /* The GNU C library defines this for functions which it implements
7473 to always fail with ENOSYS. Some functions are actually named
7474 something starting with __ and the normal name is an alias. */
7475 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7476 choke me
7477 #else
7478 $ac_func();
7479 #endif
7481 ; return 0; }
7483 if { (eval echo configure:7484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7484 rm -rf conftest*
7485 eval "ac_cv_func_$ac_func=yes"
7486 else
7487 echo "configure: failed program was:" >&5
7488 cat conftest.$ac_ext >&5
7489 rm -rf conftest*
7490 eval "ac_cv_func_$ac_func=no"
7492 rm -f conftest*
7495 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7496 echo "$ac_t""yes" 1>&6
7497 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7498 cat >> confdefs.h <<EOF
7499 #define $ac_tr_func 1
7502 else
7503 echo "$ac_t""no" 1>&6
7505 done
7507 *) echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
7508 echo "configure:7509: checking for getspnam in -lgen" >&5
7509 ac_lib_var=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
7510 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7511 echo $ac_n "(cached) $ac_c" 1>&6
7512 else
7513 ac_save_LIBS="$LIBS"
7514 LIBS="-lgen $LIBS"
7515 cat > conftest.$ac_ext <<EOF
7516 #line 7517 "configure"
7517 #include "confdefs.h"
7518 /* Override any gcc2 internal prototype to avoid an error. */
7519 /* We use char because int might match the return type of a gcc2
7520 builtin and then its argument prototype would still apply. */
7521 char getspnam();
7523 int main() {
7524 getspnam()
7525 ; return 0; }
7527 if { (eval echo configure:7528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7528 rm -rf conftest*
7529 eval "ac_cv_lib_$ac_lib_var=yes"
7530 else
7531 echo "configure: failed program was:" >&5
7532 cat conftest.$ac_ext >&5
7533 rm -rf conftest*
7534 eval "ac_cv_lib_$ac_lib_var=no"
7536 rm -f conftest*
7537 LIBS="$ac_save_LIBS"
7540 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7541 echo "$ac_t""yes" 1>&6
7542 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7543 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7544 cat >> confdefs.h <<EOF
7545 #define $ac_tr_lib 1
7548 LIBS="-lgen $LIBS"
7550 else
7551 echo "$ac_t""no" 1>&6
7554 for ac_func in getspnam
7556 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7557 echo "configure:7558: checking for $ac_func" >&5
7558 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7559 echo $ac_n "(cached) $ac_c" 1>&6
7560 else
7561 cat > conftest.$ac_ext <<EOF
7562 #line 7563 "configure"
7563 #include "confdefs.h"
7564 /* System header to define __stub macros and hopefully few prototypes,
7565 which can conflict with char $ac_func(); below. */
7566 #include <assert.h>
7567 /* Override any gcc2 internal prototype to avoid an error. */
7568 /* We use char because int might match the return type of a gcc2
7569 builtin and then its argument prototype would still apply. */
7570 char $ac_func();
7572 int main() {
7574 /* The GNU C library defines this for functions which it implements
7575 to always fail with ENOSYS. Some functions are actually named
7576 something starting with __ and the normal name is an alias. */
7577 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7578 choke me
7579 #else
7580 $ac_func();
7581 #endif
7583 ; return 0; }
7585 if { (eval echo configure:7586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7586 rm -rf conftest*
7587 eval "ac_cv_func_$ac_func=yes"
7588 else
7589 echo "configure: failed program was:" >&5
7590 cat conftest.$ac_ext >&5
7591 rm -rf conftest*
7592 eval "ac_cv_func_$ac_func=no"
7594 rm -f conftest*
7597 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7598 echo "$ac_t""yes" 1>&6
7599 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7600 cat >> confdefs.h <<EOF
7601 #define $ac_tr_func 1
7604 else
7605 echo "$ac_t""no" 1>&6
7607 done
7610 esac
7613 case "$LIBS" in
7614 *-lsecurity*) for ac_func in getspnam
7616 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7617 echo "configure:7618: checking for $ac_func" >&5
7618 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7619 echo $ac_n "(cached) $ac_c" 1>&6
7620 else
7621 cat > conftest.$ac_ext <<EOF
7622 #line 7623 "configure"
7623 #include "confdefs.h"
7624 /* System header to define __stub macros and hopefully few prototypes,
7625 which can conflict with char $ac_func(); below. */
7626 #include <assert.h>
7627 /* Override any gcc2 internal prototype to avoid an error. */
7628 /* We use char because int might match the return type of a gcc2
7629 builtin and then its argument prototype would still apply. */
7630 char $ac_func();
7632 int main() {
7634 /* The GNU C library defines this for functions which it implements
7635 to always fail with ENOSYS. Some functions are actually named
7636 something starting with __ and the normal name is an alias. */
7637 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7638 choke me
7639 #else
7640 $ac_func();
7641 #endif
7643 ; return 0; }
7645 if { (eval echo configure:7646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7646 rm -rf conftest*
7647 eval "ac_cv_func_$ac_func=yes"
7648 else
7649 echo "configure: failed program was:" >&5
7650 cat conftest.$ac_ext >&5
7651 rm -rf conftest*
7652 eval "ac_cv_func_$ac_func=no"
7654 rm -f conftest*
7657 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7658 echo "$ac_t""yes" 1>&6
7659 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7660 cat >> confdefs.h <<EOF
7661 #define $ac_tr_func 1
7664 else
7665 echo "$ac_t""no" 1>&6
7667 done
7669 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
7670 echo "configure:7671: checking for getspnam in -lsecurity" >&5
7671 ac_lib_var=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
7672 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7673 echo $ac_n "(cached) $ac_c" 1>&6
7674 else
7675 ac_save_LIBS="$LIBS"
7676 LIBS="-lsecurity $LIBS"
7677 cat > conftest.$ac_ext <<EOF
7678 #line 7679 "configure"
7679 #include "confdefs.h"
7680 /* Override any gcc2 internal prototype to avoid an error. */
7681 /* We use char because int might match the return type of a gcc2
7682 builtin and then its argument prototype would still apply. */
7683 char getspnam();
7685 int main() {
7686 getspnam()
7687 ; return 0; }
7689 if { (eval echo configure:7690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7690 rm -rf conftest*
7691 eval "ac_cv_lib_$ac_lib_var=yes"
7692 else
7693 echo "configure: failed program was:" >&5
7694 cat conftest.$ac_ext >&5
7695 rm -rf conftest*
7696 eval "ac_cv_lib_$ac_lib_var=no"
7698 rm -f conftest*
7699 LIBS="$ac_save_LIBS"
7702 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7703 echo "$ac_t""yes" 1>&6
7704 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7705 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7706 cat >> confdefs.h <<EOF
7707 #define $ac_tr_lib 1
7710 LIBS="-lsecurity $LIBS"
7712 else
7713 echo "$ac_t""no" 1>&6
7716 for ac_func in getspnam
7718 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7719 echo "configure:7720: checking for $ac_func" >&5
7720 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7721 echo $ac_n "(cached) $ac_c" 1>&6
7722 else
7723 cat > conftest.$ac_ext <<EOF
7724 #line 7725 "configure"
7725 #include "confdefs.h"
7726 /* System header to define __stub macros and hopefully few prototypes,
7727 which can conflict with char $ac_func(); below. */
7728 #include <assert.h>
7729 /* Override any gcc2 internal prototype to avoid an error. */
7730 /* We use char because int might match the return type of a gcc2
7731 builtin and then its argument prototype would still apply. */
7732 char $ac_func();
7734 int main() {
7736 /* The GNU C library defines this for functions which it implements
7737 to always fail with ENOSYS. Some functions are actually named
7738 something starting with __ and the normal name is an alias. */
7739 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7740 choke me
7741 #else
7742 $ac_func();
7743 #endif
7745 ; return 0; }
7747 if { (eval echo configure:7748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7748 rm -rf conftest*
7749 eval "ac_cv_func_$ac_func=yes"
7750 else
7751 echo "configure: failed program was:" >&5
7752 cat conftest.$ac_ext >&5
7753 rm -rf conftest*
7754 eval "ac_cv_func_$ac_func=no"
7756 rm -f conftest*
7759 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7760 echo "$ac_t""yes" 1>&6
7761 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7762 cat >> confdefs.h <<EOF
7763 #define $ac_tr_func 1
7766 else
7767 echo "$ac_t""no" 1>&6
7769 done
7772 esac
7774 case "$LIBS" in
7775 *-lsec*) for ac_func in getspnam
7777 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7778 echo "configure:7779: checking for $ac_func" >&5
7779 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7780 echo $ac_n "(cached) $ac_c" 1>&6
7781 else
7782 cat > conftest.$ac_ext <<EOF
7783 #line 7784 "configure"
7784 #include "confdefs.h"
7785 /* System header to define __stub macros and hopefully few prototypes,
7786 which can conflict with char $ac_func(); below. */
7787 #include <assert.h>
7788 /* Override any gcc2 internal prototype to avoid an error. */
7789 /* We use char because int might match the return type of a gcc2
7790 builtin and then its argument prototype would still apply. */
7791 char $ac_func();
7793 int main() {
7795 /* The GNU C library defines this for functions which it implements
7796 to always fail with ENOSYS. Some functions are actually named
7797 something starting with __ and the normal name is an alias. */
7798 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7799 choke me
7800 #else
7801 $ac_func();
7802 #endif
7804 ; return 0; }
7806 if { (eval echo configure:7807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7807 rm -rf conftest*
7808 eval "ac_cv_func_$ac_func=yes"
7809 else
7810 echo "configure: failed program was:" >&5
7811 cat conftest.$ac_ext >&5
7812 rm -rf conftest*
7813 eval "ac_cv_func_$ac_func=no"
7815 rm -f conftest*
7818 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7819 echo "$ac_t""yes" 1>&6
7820 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7821 cat >> confdefs.h <<EOF
7822 #define $ac_tr_func 1
7825 else
7826 echo "$ac_t""no" 1>&6
7828 done
7830 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
7831 echo "configure:7832: checking for getspnam in -lsec" >&5
7832 ac_lib_var=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
7833 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7834 echo $ac_n "(cached) $ac_c" 1>&6
7835 else
7836 ac_save_LIBS="$LIBS"
7837 LIBS="-lsec $LIBS"
7838 cat > conftest.$ac_ext <<EOF
7839 #line 7840 "configure"
7840 #include "confdefs.h"
7841 /* Override any gcc2 internal prototype to avoid an error. */
7842 /* We use char because int might match the return type of a gcc2
7843 builtin and then its argument prototype would still apply. */
7844 char getspnam();
7846 int main() {
7847 getspnam()
7848 ; return 0; }
7850 if { (eval echo configure:7851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7851 rm -rf conftest*
7852 eval "ac_cv_lib_$ac_lib_var=yes"
7853 else
7854 echo "configure: failed program was:" >&5
7855 cat conftest.$ac_ext >&5
7856 rm -rf conftest*
7857 eval "ac_cv_lib_$ac_lib_var=no"
7859 rm -f conftest*
7860 LIBS="$ac_save_LIBS"
7863 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7864 echo "$ac_t""yes" 1>&6
7865 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7866 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7867 cat >> confdefs.h <<EOF
7868 #define $ac_tr_lib 1
7871 LIBS="-lsec $LIBS"
7873 else
7874 echo "$ac_t""no" 1>&6
7877 for ac_func in getspnam
7879 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7880 echo "configure:7881: checking for $ac_func" >&5
7881 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7882 echo $ac_n "(cached) $ac_c" 1>&6
7883 else
7884 cat > conftest.$ac_ext <<EOF
7885 #line 7886 "configure"
7886 #include "confdefs.h"
7887 /* System header to define __stub macros and hopefully few prototypes,
7888 which can conflict with char $ac_func(); below. */
7889 #include <assert.h>
7890 /* Override any gcc2 internal prototype to avoid an error. */
7891 /* We use char because int might match the return type of a gcc2
7892 builtin and then its argument prototype would still apply. */
7893 char $ac_func();
7895 int main() {
7897 /* The GNU C library defines this for functions which it implements
7898 to always fail with ENOSYS. Some functions are actually named
7899 something starting with __ and the normal name is an alias. */
7900 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7901 choke me
7902 #else
7903 $ac_func();
7904 #endif
7906 ; return 0; }
7908 if { (eval echo configure:7909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7909 rm -rf conftest*
7910 eval "ac_cv_func_$ac_func=yes"
7911 else
7912 echo "configure: failed program was:" >&5
7913 cat conftest.$ac_ext >&5
7914 rm -rf conftest*
7915 eval "ac_cv_func_$ac_func=no"
7917 rm -f conftest*
7920 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7921 echo "$ac_t""yes" 1>&6
7922 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7923 cat >> confdefs.h <<EOF
7924 #define $ac_tr_func 1
7927 else
7928 echo "$ac_t""no" 1>&6
7930 done
7933 esac
7936 case "$LIBS" in
7937 *-lsecurity*) for ac_func in bigcrypt
7939 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7940 echo "configure:7941: checking for $ac_func" >&5
7941 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7942 echo $ac_n "(cached) $ac_c" 1>&6
7943 else
7944 cat > conftest.$ac_ext <<EOF
7945 #line 7946 "configure"
7946 #include "confdefs.h"
7947 /* System header to define __stub macros and hopefully few prototypes,
7948 which can conflict with char $ac_func(); below. */
7949 #include <assert.h>
7950 /* Override any gcc2 internal prototype to avoid an error. */
7951 /* We use char because int might match the return type of a gcc2
7952 builtin and then its argument prototype would still apply. */
7953 char $ac_func();
7955 int main() {
7957 /* The GNU C library defines this for functions which it implements
7958 to always fail with ENOSYS. Some functions are actually named
7959 something starting with __ and the normal name is an alias. */
7960 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7961 choke me
7962 #else
7963 $ac_func();
7964 #endif
7966 ; return 0; }
7968 if { (eval echo configure:7969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7969 rm -rf conftest*
7970 eval "ac_cv_func_$ac_func=yes"
7971 else
7972 echo "configure: failed program was:" >&5
7973 cat conftest.$ac_ext >&5
7974 rm -rf conftest*
7975 eval "ac_cv_func_$ac_func=no"
7977 rm -f conftest*
7980 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7981 echo "$ac_t""yes" 1>&6
7982 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7983 cat >> confdefs.h <<EOF
7984 #define $ac_tr_func 1
7987 else
7988 echo "$ac_t""no" 1>&6
7990 done
7992 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
7993 echo "configure:7994: checking for bigcrypt in -lsecurity" >&5
7994 ac_lib_var=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
7995 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7996 echo $ac_n "(cached) $ac_c" 1>&6
7997 else
7998 ac_save_LIBS="$LIBS"
7999 LIBS="-lsecurity $LIBS"
8000 cat > conftest.$ac_ext <<EOF
8001 #line 8002 "configure"
8002 #include "confdefs.h"
8003 /* Override any gcc2 internal prototype to avoid an error. */
8004 /* We use char because int might match the return type of a gcc2
8005 builtin and then its argument prototype would still apply. */
8006 char bigcrypt();
8008 int main() {
8009 bigcrypt()
8010 ; return 0; }
8012 if { (eval echo configure:8013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8013 rm -rf conftest*
8014 eval "ac_cv_lib_$ac_lib_var=yes"
8015 else
8016 echo "configure: failed program was:" >&5
8017 cat conftest.$ac_ext >&5
8018 rm -rf conftest*
8019 eval "ac_cv_lib_$ac_lib_var=no"
8021 rm -f conftest*
8022 LIBS="$ac_save_LIBS"
8025 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8026 echo "$ac_t""yes" 1>&6
8027 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8028 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8029 cat >> confdefs.h <<EOF
8030 #define $ac_tr_lib 1
8033 LIBS="-lsecurity $LIBS"
8035 else
8036 echo "$ac_t""no" 1>&6
8039 for ac_func in bigcrypt
8041 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8042 echo "configure:8043: checking for $ac_func" >&5
8043 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8044 echo $ac_n "(cached) $ac_c" 1>&6
8045 else
8046 cat > conftest.$ac_ext <<EOF
8047 #line 8048 "configure"
8048 #include "confdefs.h"
8049 /* System header to define __stub macros and hopefully few prototypes,
8050 which can conflict with char $ac_func(); below. */
8051 #include <assert.h>
8052 /* Override any gcc2 internal prototype to avoid an error. */
8053 /* We use char because int might match the return type of a gcc2
8054 builtin and then its argument prototype would still apply. */
8055 char $ac_func();
8057 int main() {
8059 /* The GNU C library defines this for functions which it implements
8060 to always fail with ENOSYS. Some functions are actually named
8061 something starting with __ and the normal name is an alias. */
8062 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8063 choke me
8064 #else
8065 $ac_func();
8066 #endif
8068 ; return 0; }
8070 if { (eval echo configure:8071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8071 rm -rf conftest*
8072 eval "ac_cv_func_$ac_func=yes"
8073 else
8074 echo "configure: failed program was:" >&5
8075 cat conftest.$ac_ext >&5
8076 rm -rf conftest*
8077 eval "ac_cv_func_$ac_func=no"
8079 rm -f conftest*
8082 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8083 echo "$ac_t""yes" 1>&6
8084 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8085 cat >> confdefs.h <<EOF
8086 #define $ac_tr_func 1
8089 else
8090 echo "$ac_t""no" 1>&6
8092 done
8095 esac
8097 case "$LIBS" in
8098 *-lsec*) for ac_func in bigcrypt
8100 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8101 echo "configure:8102: checking for $ac_func" >&5
8102 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8103 echo $ac_n "(cached) $ac_c" 1>&6
8104 else
8105 cat > conftest.$ac_ext <<EOF
8106 #line 8107 "configure"
8107 #include "confdefs.h"
8108 /* System header to define __stub macros and hopefully few prototypes,
8109 which can conflict with char $ac_func(); below. */
8110 #include <assert.h>
8111 /* Override any gcc2 internal prototype to avoid an error. */
8112 /* We use char because int might match the return type of a gcc2
8113 builtin and then its argument prototype would still apply. */
8114 char $ac_func();
8116 int main() {
8118 /* The GNU C library defines this for functions which it implements
8119 to always fail with ENOSYS. Some functions are actually named
8120 something starting with __ and the normal name is an alias. */
8121 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8122 choke me
8123 #else
8124 $ac_func();
8125 #endif
8127 ; return 0; }
8129 if { (eval echo configure:8130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8130 rm -rf conftest*
8131 eval "ac_cv_func_$ac_func=yes"
8132 else
8133 echo "configure: failed program was:" >&5
8134 cat conftest.$ac_ext >&5
8135 rm -rf conftest*
8136 eval "ac_cv_func_$ac_func=no"
8138 rm -f conftest*
8141 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8142 echo "$ac_t""yes" 1>&6
8143 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8144 cat >> confdefs.h <<EOF
8145 #define $ac_tr_func 1
8148 else
8149 echo "$ac_t""no" 1>&6
8151 done
8153 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
8154 echo "configure:8155: checking for bigcrypt in -lsec" >&5
8155 ac_lib_var=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
8156 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8157 echo $ac_n "(cached) $ac_c" 1>&6
8158 else
8159 ac_save_LIBS="$LIBS"
8160 LIBS="-lsec $LIBS"
8161 cat > conftest.$ac_ext <<EOF
8162 #line 8163 "configure"
8163 #include "confdefs.h"
8164 /* Override any gcc2 internal prototype to avoid an error. */
8165 /* We use char because int might match the return type of a gcc2
8166 builtin and then its argument prototype would still apply. */
8167 char bigcrypt();
8169 int main() {
8170 bigcrypt()
8171 ; return 0; }
8173 if { (eval echo configure:8174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8174 rm -rf conftest*
8175 eval "ac_cv_lib_$ac_lib_var=yes"
8176 else
8177 echo "configure: failed program was:" >&5
8178 cat conftest.$ac_ext >&5
8179 rm -rf conftest*
8180 eval "ac_cv_lib_$ac_lib_var=no"
8182 rm -f conftest*
8183 LIBS="$ac_save_LIBS"
8186 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8187 echo "$ac_t""yes" 1>&6
8188 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8189 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8190 cat >> confdefs.h <<EOF
8191 #define $ac_tr_lib 1
8194 LIBS="-lsec $LIBS"
8196 else
8197 echo "$ac_t""no" 1>&6
8200 for ac_func in bigcrypt
8202 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8203 echo "configure:8204: checking for $ac_func" >&5
8204 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8205 echo $ac_n "(cached) $ac_c" 1>&6
8206 else
8207 cat > conftest.$ac_ext <<EOF
8208 #line 8209 "configure"
8209 #include "confdefs.h"
8210 /* System header to define __stub macros and hopefully few prototypes,
8211 which can conflict with char $ac_func(); below. */
8212 #include <assert.h>
8213 /* Override any gcc2 internal prototype to avoid an error. */
8214 /* We use char because int might match the return type of a gcc2
8215 builtin and then its argument prototype would still apply. */
8216 char $ac_func();
8218 int main() {
8220 /* The GNU C library defines this for functions which it implements
8221 to always fail with ENOSYS. Some functions are actually named
8222 something starting with __ and the normal name is an alias. */
8223 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8224 choke me
8225 #else
8226 $ac_func();
8227 #endif
8229 ; return 0; }
8231 if { (eval echo configure:8232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8232 rm -rf conftest*
8233 eval "ac_cv_func_$ac_func=yes"
8234 else
8235 echo "configure: failed program was:" >&5
8236 cat conftest.$ac_ext >&5
8237 rm -rf conftest*
8238 eval "ac_cv_func_$ac_func=no"
8240 rm -f conftest*
8243 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8244 echo "$ac_t""yes" 1>&6
8245 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8246 cat >> confdefs.h <<EOF
8247 #define $ac_tr_func 1
8250 else
8251 echo "$ac_t""no" 1>&6
8253 done
8256 esac
8259 case "$LIBS" in
8260 *-lsecurity*) for ac_func in getprpwnam
8262 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8263 echo "configure:8264: checking for $ac_func" >&5
8264 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8265 echo $ac_n "(cached) $ac_c" 1>&6
8266 else
8267 cat > conftest.$ac_ext <<EOF
8268 #line 8269 "configure"
8269 #include "confdefs.h"
8270 /* System header to define __stub macros and hopefully few prototypes,
8271 which can conflict with char $ac_func(); below. */
8272 #include <assert.h>
8273 /* Override any gcc2 internal prototype to avoid an error. */
8274 /* We use char because int might match the return type of a gcc2
8275 builtin and then its argument prototype would still apply. */
8276 char $ac_func();
8278 int main() {
8280 /* The GNU C library defines this for functions which it implements
8281 to always fail with ENOSYS. Some functions are actually named
8282 something starting with __ and the normal name is an alias. */
8283 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8284 choke me
8285 #else
8286 $ac_func();
8287 #endif
8289 ; return 0; }
8291 if { (eval echo configure:8292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8292 rm -rf conftest*
8293 eval "ac_cv_func_$ac_func=yes"
8294 else
8295 echo "configure: failed program was:" >&5
8296 cat conftest.$ac_ext >&5
8297 rm -rf conftest*
8298 eval "ac_cv_func_$ac_func=no"
8300 rm -f conftest*
8303 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8304 echo "$ac_t""yes" 1>&6
8305 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8306 cat >> confdefs.h <<EOF
8307 #define $ac_tr_func 1
8310 else
8311 echo "$ac_t""no" 1>&6
8313 done
8315 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
8316 echo "configure:8317: checking for getprpwnam in -lsecurity" >&5
8317 ac_lib_var=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
8318 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8319 echo $ac_n "(cached) $ac_c" 1>&6
8320 else
8321 ac_save_LIBS="$LIBS"
8322 LIBS="-lsecurity $LIBS"
8323 cat > conftest.$ac_ext <<EOF
8324 #line 8325 "configure"
8325 #include "confdefs.h"
8326 /* Override any gcc2 internal prototype to avoid an error. */
8327 /* We use char because int might match the return type of a gcc2
8328 builtin and then its argument prototype would still apply. */
8329 char getprpwnam();
8331 int main() {
8332 getprpwnam()
8333 ; return 0; }
8335 if { (eval echo configure:8336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8336 rm -rf conftest*
8337 eval "ac_cv_lib_$ac_lib_var=yes"
8338 else
8339 echo "configure: failed program was:" >&5
8340 cat conftest.$ac_ext >&5
8341 rm -rf conftest*
8342 eval "ac_cv_lib_$ac_lib_var=no"
8344 rm -f conftest*
8345 LIBS="$ac_save_LIBS"
8348 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8349 echo "$ac_t""yes" 1>&6
8350 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8351 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8352 cat >> confdefs.h <<EOF
8353 #define $ac_tr_lib 1
8356 LIBS="-lsecurity $LIBS"
8358 else
8359 echo "$ac_t""no" 1>&6
8362 for ac_func in getprpwnam
8364 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8365 echo "configure:8366: checking for $ac_func" >&5
8366 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8367 echo $ac_n "(cached) $ac_c" 1>&6
8368 else
8369 cat > conftest.$ac_ext <<EOF
8370 #line 8371 "configure"
8371 #include "confdefs.h"
8372 /* System header to define __stub macros and hopefully few prototypes,
8373 which can conflict with char $ac_func(); below. */
8374 #include <assert.h>
8375 /* Override any gcc2 internal prototype to avoid an error. */
8376 /* We use char because int might match the return type of a gcc2
8377 builtin and then its argument prototype would still apply. */
8378 char $ac_func();
8380 int main() {
8382 /* The GNU C library defines this for functions which it implements
8383 to always fail with ENOSYS. Some functions are actually named
8384 something starting with __ and the normal name is an alias. */
8385 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8386 choke me
8387 #else
8388 $ac_func();
8389 #endif
8391 ; return 0; }
8393 if { (eval echo configure:8394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8394 rm -rf conftest*
8395 eval "ac_cv_func_$ac_func=yes"
8396 else
8397 echo "configure: failed program was:" >&5
8398 cat conftest.$ac_ext >&5
8399 rm -rf conftest*
8400 eval "ac_cv_func_$ac_func=no"
8402 rm -f conftest*
8405 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8406 echo "$ac_t""yes" 1>&6
8407 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8408 cat >> confdefs.h <<EOF
8409 #define $ac_tr_func 1
8412 else
8413 echo "$ac_t""no" 1>&6
8415 done
8418 esac
8420 case "$LIBS" in
8421 *-lsec*) for ac_func in getprpwnam
8423 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8424 echo "configure:8425: checking for $ac_func" >&5
8425 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8426 echo $ac_n "(cached) $ac_c" 1>&6
8427 else
8428 cat > conftest.$ac_ext <<EOF
8429 #line 8430 "configure"
8430 #include "confdefs.h"
8431 /* System header to define __stub macros and hopefully few prototypes,
8432 which can conflict with char $ac_func(); below. */
8433 #include <assert.h>
8434 /* Override any gcc2 internal prototype to avoid an error. */
8435 /* We use char because int might match the return type of a gcc2
8436 builtin and then its argument prototype would still apply. */
8437 char $ac_func();
8439 int main() {
8441 /* The GNU C library defines this for functions which it implements
8442 to always fail with ENOSYS. Some functions are actually named
8443 something starting with __ and the normal name is an alias. */
8444 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8445 choke me
8446 #else
8447 $ac_func();
8448 #endif
8450 ; return 0; }
8452 if { (eval echo configure:8453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8453 rm -rf conftest*
8454 eval "ac_cv_func_$ac_func=yes"
8455 else
8456 echo "configure: failed program was:" >&5
8457 cat conftest.$ac_ext >&5
8458 rm -rf conftest*
8459 eval "ac_cv_func_$ac_func=no"
8461 rm -f conftest*
8464 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8465 echo "$ac_t""yes" 1>&6
8466 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8467 cat >> confdefs.h <<EOF
8468 #define $ac_tr_func 1
8471 else
8472 echo "$ac_t""no" 1>&6
8474 done
8476 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
8477 echo "configure:8478: checking for getprpwnam in -lsec" >&5
8478 ac_lib_var=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
8479 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8480 echo $ac_n "(cached) $ac_c" 1>&6
8481 else
8482 ac_save_LIBS="$LIBS"
8483 LIBS="-lsec $LIBS"
8484 cat > conftest.$ac_ext <<EOF
8485 #line 8486 "configure"
8486 #include "confdefs.h"
8487 /* Override any gcc2 internal prototype to avoid an error. */
8488 /* We use char because int might match the return type of a gcc2
8489 builtin and then its argument prototype would still apply. */
8490 char getprpwnam();
8492 int main() {
8493 getprpwnam()
8494 ; return 0; }
8496 if { (eval echo configure:8497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8497 rm -rf conftest*
8498 eval "ac_cv_lib_$ac_lib_var=yes"
8499 else
8500 echo "configure: failed program was:" >&5
8501 cat conftest.$ac_ext >&5
8502 rm -rf conftest*
8503 eval "ac_cv_lib_$ac_lib_var=no"
8505 rm -f conftest*
8506 LIBS="$ac_save_LIBS"
8509 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8510 echo "$ac_t""yes" 1>&6
8511 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8512 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8513 cat >> confdefs.h <<EOF
8514 #define $ac_tr_lib 1
8517 LIBS="-lsec $LIBS"
8519 else
8520 echo "$ac_t""no" 1>&6
8523 for ac_func in getprpwnam
8525 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8526 echo "configure:8527: checking for $ac_func" >&5
8527 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8528 echo $ac_n "(cached) $ac_c" 1>&6
8529 else
8530 cat > conftest.$ac_ext <<EOF
8531 #line 8532 "configure"
8532 #include "confdefs.h"
8533 /* System header to define __stub macros and hopefully few prototypes,
8534 which can conflict with char $ac_func(); below. */
8535 #include <assert.h>
8536 /* Override any gcc2 internal prototype to avoid an error. */
8537 /* We use char because int might match the return type of a gcc2
8538 builtin and then its argument prototype would still apply. */
8539 char $ac_func();
8541 int main() {
8543 /* The GNU C library defines this for functions which it implements
8544 to always fail with ENOSYS. Some functions are actually named
8545 something starting with __ and the normal name is an alias. */
8546 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8547 choke me
8548 #else
8549 $ac_func();
8550 #endif
8552 ; return 0; }
8554 if { (eval echo configure:8555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8555 rm -rf conftest*
8556 eval "ac_cv_func_$ac_func=yes"
8557 else
8558 echo "configure: failed program was:" >&5
8559 cat conftest.$ac_ext >&5
8560 rm -rf conftest*
8561 eval "ac_cv_func_$ac_func=no"
8563 rm -f conftest*
8566 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8567 echo "$ac_t""yes" 1>&6
8568 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8569 cat >> confdefs.h <<EOF
8570 #define $ac_tr_func 1
8573 else
8574 echo "$ac_t""no" 1>&6
8576 done
8579 esac
8582 # this bit needs to be modified for each OS that is suported by
8583 # smbwrapper. You need to specify how to created a shared library and
8584 # how to compile C code to produce PIC object files
8586 # these are the defaults, good for lots of systems
8587 HOST_OS="$host_os"
8588 LDSHFLAGS="-shared"
8589 PICFLAG=""
8590 SHLIBEXT="so"
8592 # and these are for particular systems
8593 case "$host_os" in
8594 *linux*) cat >> confdefs.h <<\EOF
8595 #define LINUX 1
8598 *solaris*) cat >> confdefs.h <<\EOF
8599 #define SUNOS5 1
8602 LDSHFLAGS="-G"
8604 *sunos*) cat >> confdefs.h <<\EOF
8605 #define SUNOS4 1
8608 LDSHFLAGS=""
8610 *bsd*) LDSHFLAGS="-shared -Bshareable"
8612 *irix*) cat >> confdefs.h <<\EOF
8613 #define IRIX 1
8616 case "$host_os" in
8617 *irix6*) cat >> confdefs.h <<\EOF
8618 #define IRIX6 1
8622 esac
8623 ATTEMPT_WRAP32_BUILD=yes
8625 *aix*) cat >> confdefs.h <<\EOF
8626 #define AIX 1
8629 *hpux*) cat >> confdefs.h <<\EOF
8630 #define HPUX 1
8633 SHLIBEXT="sl"
8634 # Use special PIC flags for the native HP-UX compiler.
8635 if test $ac_cv_prog_cc_Ae = yes; then
8636 LDSHFLAGS="-b"
8637 PICFLAG="+z"
8640 *qnx*) cat >> confdefs.h <<\EOF
8641 #define QNX 1
8644 *osf*) cat >> confdefs.h <<\EOF
8645 #define OSF1 1
8648 *sco*) cat >> confdefs.h <<\EOF
8649 #define SCO 1
8652 *next2*) cat >> confdefs.h <<\EOF
8653 #define NEXT2 1
8656 *dgux*) # Extract the first word of "groff", so it can be a program name with args.
8657 set dummy groff; ac_word=$2
8658 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8659 echo "configure:8660: checking for $ac_word" >&5
8660 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
8661 echo $ac_n "(cached) $ac_c" 1>&6
8662 else
8663 if test -n "$ROFF"; then
8664 ac_cv_prog_ROFF="$ROFF" # Let the user override the test.
8665 else
8666 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8667 ac_dummy="$PATH"
8668 for ac_dir in $ac_dummy; do
8669 test -z "$ac_dir" && ac_dir=.
8670 if test -f $ac_dir/$ac_word; then
8671 ac_cv_prog_ROFF="groff -etpsR -Tascii -man"
8672 break
8674 done
8675 IFS="$ac_save_ifs"
8678 ROFF="$ac_cv_prog_ROFF"
8679 if test -n "$ROFF"; then
8680 echo "$ac_t""$ROFF" 1>&6
8681 else
8682 echo "$ac_t""no" 1>&6
8685 *sysv4*)
8686 case "$host" in
8687 *-univel-*) if test "$GCC" != yes ; then
8688 cat >> confdefs.h <<\EOF
8689 #define HAVE_MEMSET 1
8693 LDSHFLAGS="-G"
8695 *mips-sni-sysv4*) cat >> confdefs.h <<\EOF
8696 #define RELIANTUNIX 1
8699 esac
8701 *sysv5*)
8702 if test "$GCC" != yes ; then
8703 cat >> confdefs.h <<\EOF
8704 #define HAVE_MEMSET 1
8708 LDSHFLAGS="-G"
8710 esac
8712 # try to work out how to produce PIC code with this compiler
8713 echo $ac_n "checking whether ${CC-cc} accepts -fPIC""... $ac_c" 1>&6
8714 echo "configure:8715: checking whether ${CC-cc} accepts -fPIC" >&5
8715 if eval "test \"`echo '$''{'ac_cv_prog_cc_fPIC'+set}'`\" = set"; then
8716 echo $ac_n "(cached) $ac_c" 1>&6
8717 else
8718 echo 'void f(){}' > conftest.c
8719 if test -z "`${CC-cc} -fPIC -c conftest.c 2>&1`"; then
8720 ac_cv_prog_cc_fPIC=yes
8721 else
8722 ac_cv_prog_cc_fPIC=no
8724 rm -f conftest*
8728 echo "$ac_t""$ac_cv_prog_cc_fPIC" 1>&6
8729 if test $ac_cv_prog_cc_fPIC = yes; then
8730 PICFLAG="-fPIC";
8732 if test x$PICFLAG = x; then
8733 echo $ac_n "checking whether ${CC-cc} accepts -KPIC""... $ac_c" 1>&6
8734 echo "configure:8735: checking whether ${CC-cc} accepts -KPIC" >&5
8735 if eval "test \"`echo '$''{'ac_cv_prog_cc_KPIC'+set}'`\" = set"; then
8736 echo $ac_n "(cached) $ac_c" 1>&6
8737 else
8738 echo 'void f(){}' > conftest.c
8739 if test -z "`${CC-cc} -KPIC -c conftest.c 2>&1`"; then
8740 ac_cv_prog_cc_KPIC=yes
8741 else
8742 ac_cv_prog_cc_KPIC=no
8744 rm -f conftest*
8748 echo "$ac_t""$ac_cv_prog_cc_KPIC" 1>&6
8749 if test $ac_cv_prog_cc_KPIC = yes; then
8750 PICFLAG="-KPIC";
8753 if test x$PICFLAG = x; then
8754 echo $ac_n "checking whether ${CC-cc} accepts -Kpic""... $ac_c" 1>&6
8755 echo "configure:8756: checking whether ${CC-cc} accepts -Kpic" >&5
8756 if eval "test \"`echo '$''{'ac_cv_prog_cc_Kpic'+set}'`\" = set"; then
8757 echo $ac_n "(cached) $ac_c" 1>&6
8758 else
8759 echo 'void f(){}' > conftest.c
8760 if test -z "`${CC-cc} -Kpic -c conftest.c 2>&1`"; then
8761 ac_cv_prog_cc_Kpic=yes
8762 else
8763 ac_cv_prog_cc_Kpic=no
8765 rm -f conftest*
8769 echo "$ac_t""$ac_cv_prog_cc_Kpic" 1>&6
8770 if test $ac_cv_prog_cc_Kpic = yes; then
8771 PICFLAG="-Kpic";
8775 ################
8777 echo $ac_n "checking for long long""... $ac_c" 1>&6
8778 echo "configure:8779: checking for long long" >&5
8779 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
8780 echo $ac_n "(cached) $ac_c" 1>&6
8781 else
8783 if test "$cross_compiling" = yes; then
8784 samba_cv_have_longlong=cross
8785 else
8786 cat > conftest.$ac_ext <<EOF
8787 #line 8788 "configure"
8788 #include "confdefs.h"
8789 #include <stdio.h>
8790 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
8792 if { (eval echo configure:8793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8793 then
8794 samba_cv_have_longlong=yes
8795 else
8796 echo "configure: failed program was:" >&5
8797 cat conftest.$ac_ext >&5
8798 rm -fr conftest*
8799 samba_cv_have_longlong=no
8801 rm -fr conftest*
8806 echo "$ac_t""$samba_cv_have_longlong" 1>&6
8807 if test x"$samba_cv_have_longlong" = x"yes"; then
8808 cat >> confdefs.h <<\EOF
8809 #define HAVE_LONGLONG 1
8815 # Check if the compiler supports the LL prefix on long long integers.
8816 # AIX needs this.
8818 echo $ac_n "checking for LL suffix on long long integers""... $ac_c" 1>&6
8819 echo "configure:8820: checking for LL suffix on long long integers" >&5
8820 if eval "test \"`echo '$''{'samba_cv_compiler_supports_ll'+set}'`\" = set"; then
8821 echo $ac_n "(cached) $ac_c" 1>&6
8822 else
8824 cat > conftest.$ac_ext <<EOF
8825 #line 8826 "configure"
8826 #include "confdefs.h"
8827 #include <stdio.h>
8828 int main() {
8829 long long i = 0x8000000000LL
8830 ; return 0; }
8832 if { (eval echo configure:8833: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8833 rm -rf conftest*
8834 samba_cv_compiler_supports_ll=yes
8835 else
8836 echo "configure: failed program was:" >&5
8837 cat conftest.$ac_ext >&5
8838 rm -rf conftest*
8839 samba_cv_compiler_supports_ll=no
8841 rm -f conftest*
8844 echo "$ac_t""$samba_cv_compiler_supports_ll" 1>&6
8845 if test x"$samba_cv_compiler_supports_ll" = x"yes"; then
8846 cat >> confdefs.h <<\EOF
8847 #define COMPILER_SUPPORTS_LL 1
8853 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
8854 echo "configure:8855: checking for 64 bit off_t" >&5
8855 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
8856 echo $ac_n "(cached) $ac_c" 1>&6
8857 else
8859 if test "$cross_compiling" = yes; then
8860 samba_cv_SIZEOF_OFF_T=cross
8861 else
8862 cat > conftest.$ac_ext <<EOF
8863 #line 8864 "configure"
8864 #include "confdefs.h"
8865 #include <stdio.h>
8866 #include <sys/stat.h>
8867 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
8869 if { (eval echo configure:8870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8870 then
8871 samba_cv_SIZEOF_OFF_T=yes
8872 else
8873 echo "configure: failed program was:" >&5
8874 cat conftest.$ac_ext >&5
8875 rm -fr conftest*
8876 samba_cv_SIZEOF_OFF_T=no
8878 rm -fr conftest*
8883 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
8884 if test x"$samba_cv_SIZEOF_OFF_T" = x"yes"; then
8885 cat >> confdefs.h <<\EOF
8886 #define SIZEOF_OFF_T 8
8891 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
8892 echo "configure:8893: checking for off64_t" >&5
8893 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
8894 echo $ac_n "(cached) $ac_c" 1>&6
8895 else
8897 if test "$cross_compiling" = yes; then
8898 samba_cv_HAVE_OFF64_T=cross
8899 else
8900 cat > conftest.$ac_ext <<EOF
8901 #line 8902 "configure"
8902 #include "confdefs.h"
8904 #if defined(HAVE_UNISTD_H)
8905 #include <unistd.h>
8906 #endif
8907 #include <stdio.h>
8908 #include <sys/stat.h>
8909 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8911 if { (eval echo configure:8912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8912 then
8913 samba_cv_HAVE_OFF64_T=yes
8914 else
8915 echo "configure: failed program was:" >&5
8916 cat conftest.$ac_ext >&5
8917 rm -fr conftest*
8918 samba_cv_HAVE_OFF64_T=no
8920 rm -fr conftest*
8925 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
8926 if test x"$samba_cv_HAVE_OFF64_T" = x"yes"; then
8927 cat >> confdefs.h <<\EOF
8928 #define HAVE_OFF64_T 1
8933 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
8934 echo "configure:8935: checking for 64 bit ino_t" >&5
8935 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
8936 echo $ac_n "(cached) $ac_c" 1>&6
8937 else
8939 if test "$cross_compiling" = yes; then
8940 samba_cv_SIZEOF_INO_T=cross
8941 else
8942 cat > conftest.$ac_ext <<EOF
8943 #line 8944 "configure"
8944 #include "confdefs.h"
8945 #include <stdio.h>
8946 #include <sys/stat.h>
8947 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
8949 if { (eval echo configure:8950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8950 then
8951 samba_cv_SIZEOF_INO_T=yes
8952 else
8953 echo "configure: failed program was:" >&5
8954 cat conftest.$ac_ext >&5
8955 rm -fr conftest*
8956 samba_cv_SIZEOF_INO_T=no
8958 rm -fr conftest*
8963 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
8964 if test x"$samba_cv_SIZEOF_INO_T" = x"yes"; then
8965 cat >> confdefs.h <<\EOF
8966 #define SIZEOF_INO_T 8
8971 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
8972 echo "configure:8973: checking for ino64_t" >&5
8973 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
8974 echo $ac_n "(cached) $ac_c" 1>&6
8975 else
8977 if test "$cross_compiling" = yes; then
8978 samba_cv_HAVE_INO64_T=cross
8979 else
8980 cat > conftest.$ac_ext <<EOF
8981 #line 8982 "configure"
8982 #include "confdefs.h"
8984 #if defined(HAVE_UNISTD_H)
8985 #include <unistd.h>
8986 #endif
8987 #include <stdio.h>
8988 #include <sys/stat.h>
8989 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8991 if { (eval echo configure:8992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8992 then
8993 samba_cv_HAVE_INO64_T=yes
8994 else
8995 echo "configure: failed program was:" >&5
8996 cat conftest.$ac_ext >&5
8997 rm -fr conftest*
8998 samba_cv_HAVE_INO64_T=no
9000 rm -fr conftest*
9005 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
9006 if test x"$samba_cv_HAVE_INO64_T" = x"yes"; then
9007 cat >> confdefs.h <<\EOF
9008 #define HAVE_INO64_T 1
9013 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
9014 echo "configure:9015: checking for struct dirent64" >&5
9015 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
9016 echo $ac_n "(cached) $ac_c" 1>&6
9017 else
9019 cat > conftest.$ac_ext <<EOF
9020 #line 9021 "configure"
9021 #include "confdefs.h"
9023 #if defined(HAVE_UNISTD_H)
9024 #include <unistd.h>
9025 #endif
9026 #include <sys/types.h>
9027 #include <dirent.h>
9028 int main() {
9029 struct dirent64 de;
9030 ; return 0; }
9032 if { (eval echo configure:9033: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9033 rm -rf conftest*
9034 samba_cv_HAVE_STRUCT_DIRENT64=yes
9035 else
9036 echo "configure: failed program was:" >&5
9037 cat conftest.$ac_ext >&5
9038 rm -rf conftest*
9039 samba_cv_HAVE_STRUCT_DIRENT64=no
9041 rm -f conftest*
9044 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
9045 if test x"$samba_cv_HAVE_STRUCT_DIRENT64" = x"yes"; then
9046 cat >> confdefs.h <<\EOF
9047 #define HAVE_STRUCT_DIRENT64 1
9052 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
9053 echo "configure:9054: checking for unsigned char" >&5
9054 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
9055 echo $ac_n "(cached) $ac_c" 1>&6
9056 else
9058 if test "$cross_compiling" = yes; then
9059 samba_cv_HAVE_UNSIGNED_CHAR=cross
9060 else
9061 cat > conftest.$ac_ext <<EOF
9062 #line 9063 "configure"
9063 #include "confdefs.h"
9064 #include <stdio.h>
9065 main() { char c; c=250; exit((c > 0)?0:1); }
9067 if { (eval echo configure:9068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9068 then
9069 samba_cv_HAVE_UNSIGNED_CHAR=yes
9070 else
9071 echo "configure: failed program was:" >&5
9072 cat conftest.$ac_ext >&5
9073 rm -fr conftest*
9074 samba_cv_HAVE_UNSIGNED_CHAR=no
9076 rm -fr conftest*
9081 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
9082 if test x"$samba_cv_HAVE_UNSIGNED_CHAR" = x"yes"; then
9083 cat >> confdefs.h <<\EOF
9084 #define HAVE_UNSIGNED_CHAR 1
9089 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
9090 echo "configure:9091: checking for sin_len in sock" >&5
9091 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
9092 echo $ac_n "(cached) $ac_c" 1>&6
9093 else
9095 cat > conftest.$ac_ext <<EOF
9096 #line 9097 "configure"
9097 #include "confdefs.h"
9098 #include <sys/types.h>
9099 #include <sys/socket.h>
9100 #include <netinet/in.h>
9101 int main() {
9102 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
9103 ; return 0; }
9105 if { (eval echo configure:9106: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9106 rm -rf conftest*
9107 samba_cv_HAVE_SOCK_SIN_LEN=yes
9108 else
9109 echo "configure: failed program was:" >&5
9110 cat conftest.$ac_ext >&5
9111 rm -rf conftest*
9112 samba_cv_HAVE_SOCK_SIN_LEN=no
9114 rm -f conftest*
9117 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
9118 if test x"$samba_cv_HAVE_SOCK_SIN_LEN" = x"yes"; then
9119 cat >> confdefs.h <<\EOF
9120 #define HAVE_SOCK_SIN_LEN 1
9125 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
9126 echo "configure:9127: checking whether seekdir returns void" >&5
9127 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
9128 echo $ac_n "(cached) $ac_c" 1>&6
9129 else
9131 cat > conftest.$ac_ext <<EOF
9132 #line 9133 "configure"
9133 #include "confdefs.h"
9134 #include <sys/types.h>
9135 #include <dirent.h>
9136 void seekdir(DIR *d, long loc) { return; }
9137 int main() {
9138 return 0;
9139 ; return 0; }
9141 if { (eval echo configure:9142: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9142 rm -rf conftest*
9143 samba_cv_SEEKDIR_RETURNS_VOID=yes
9144 else
9145 echo "configure: failed program was:" >&5
9146 cat conftest.$ac_ext >&5
9147 rm -rf conftest*
9148 samba_cv_SEEKDIR_RETURNS_VOID=no
9150 rm -f conftest*
9153 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
9154 if test x"$samba_cv_SEEKDIR_RETURNS_VOID" = x"yes"; then
9155 cat >> confdefs.h <<\EOF
9156 #define SEEKDIR_RETURNS_VOID 1
9161 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
9162 echo "configure:9163: checking for __FILE__ macro" >&5
9163 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
9164 echo $ac_n "(cached) $ac_c" 1>&6
9165 else
9167 cat > conftest.$ac_ext <<EOF
9168 #line 9169 "configure"
9169 #include "confdefs.h"
9170 #include <stdio.h>
9171 int main() {
9172 printf("%s\n", __FILE__);
9173 ; return 0; }
9175 if { (eval echo configure:9176: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9176 rm -rf conftest*
9177 samba_cv_HAVE_FILE_MACRO=yes
9178 else
9179 echo "configure: failed program was:" >&5
9180 cat conftest.$ac_ext >&5
9181 rm -rf conftest*
9182 samba_cv_HAVE_FILE_MACRO=no
9184 rm -f conftest*
9187 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
9188 if test x"$samba_cv_HAVE_FILE_MACRO" = x"yes"; then
9189 cat >> confdefs.h <<\EOF
9190 #define HAVE_FILE_MACRO 1
9195 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
9196 echo "configure:9197: checking for __FUNCTION__ macro" >&5
9197 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
9198 echo $ac_n "(cached) $ac_c" 1>&6
9199 else
9201 cat > conftest.$ac_ext <<EOF
9202 #line 9203 "configure"
9203 #include "confdefs.h"
9204 #include <stdio.h>
9205 int main() {
9206 printf("%s\n", __FUNCTION__);
9207 ; return 0; }
9209 if { (eval echo configure:9210: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9210 rm -rf conftest*
9211 samba_cv_HAVE_FUNCTION_MACRO=yes
9212 else
9213 echo "configure: failed program was:" >&5
9214 cat conftest.$ac_ext >&5
9215 rm -rf conftest*
9216 samba_cv_HAVE_FUNCTION_MACRO=no
9218 rm -f conftest*
9221 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
9222 if test x"$samba_cv_HAVE_FUNCTION_MACRO" = x"yes"; then
9223 cat >> confdefs.h <<\EOF
9224 #define HAVE_FUNCTION_MACRO 1
9229 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
9230 echo "configure:9231: checking if gettimeofday takes tz argument" >&5
9231 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
9232 echo $ac_n "(cached) $ac_c" 1>&6
9233 else
9235 if test "$cross_compiling" = yes; then
9236 samba_cv_HAVE_GETTIMEOFDAY_TZ=cross
9237 else
9238 cat > conftest.$ac_ext <<EOF
9239 #line 9240 "configure"
9240 #include "confdefs.h"
9242 #include <sys/time.h>
9243 #include <unistd.h>
9244 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
9246 if { (eval echo configure:9247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9247 then
9248 samba_cv_HAVE_GETTIMEOFDAY_TZ=yes
9249 else
9250 echo "configure: failed program was:" >&5
9251 cat conftest.$ac_ext >&5
9252 rm -fr conftest*
9253 samba_cv_HAVE_GETTIMEOFDAY_TZ=no
9255 rm -fr conftest*
9260 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
9261 if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
9262 cat >> confdefs.h <<\EOF
9263 #define HAVE_GETTIMEOFDAY_TZ 1
9268 echo $ac_n "checking for C99 vsnprintf""... $ac_c" 1>&6
9269 echo "configure:9270: checking for C99 vsnprintf" >&5
9270 if eval "test \"`echo '$''{'samba_cv_HAVE_C99_VSNPRINTF'+set}'`\" = set"; then
9271 echo $ac_n "(cached) $ac_c" 1>&6
9272 else
9274 if test "$cross_compiling" = yes; then
9275 samba_cv_HAVE_C99_VSNPRINTF=cross
9276 else
9277 cat > conftest.$ac_ext <<EOF
9278 #line 9279 "configure"
9279 #include "confdefs.h"
9281 #include <sys/types.h>
9282 #include <stdarg.h>
9283 void foo(const char *format, ...) {
9284 va_list ap;
9285 int len;
9286 char buf[5];
9288 va_start(ap, format);
9289 len = vsnprintf(0, 0, format, ap);
9290 va_end(ap);
9291 if (len != 5) exit(1);
9293 if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
9295 exit(0);
9297 main() { foo("hello"); }
9300 if { (eval echo configure:9301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9301 then
9302 samba_cv_HAVE_C99_VSNPRINTF=yes
9303 else
9304 echo "configure: failed program was:" >&5
9305 cat conftest.$ac_ext >&5
9306 rm -fr conftest*
9307 samba_cv_HAVE_C99_VSNPRINTF=no
9309 rm -fr conftest*
9314 echo "$ac_t""$samba_cv_HAVE_C99_VSNPRINTF" 1>&6
9315 if test x"$samba_cv_HAVE_C99_VSNPRINTF" = x"yes"; then
9316 cat >> confdefs.h <<\EOF
9317 #define HAVE_C99_VSNPRINTF 1
9322 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
9323 echo "configure:9324: checking for broken readdir" >&5
9324 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
9325 echo $ac_n "(cached) $ac_c" 1>&6
9326 else
9328 if test "$cross_compiling" = yes; then
9329 samba_cv_HAVE_BROKEN_READDIR=cross
9330 else
9331 cat > conftest.$ac_ext <<EOF
9332 #line 9333 "configure"
9333 #include "confdefs.h"
9334 #include <sys/types.h>
9335 #include <dirent.h>
9336 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
9337 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
9338 di->d_name[0] == 0) exit(0); exit(1);}
9340 if { (eval echo configure:9341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9341 then
9342 samba_cv_HAVE_BROKEN_READDIR=yes
9343 else
9344 echo "configure: failed program was:" >&5
9345 cat conftest.$ac_ext >&5
9346 rm -fr conftest*
9347 samba_cv_HAVE_BROKEN_READDIR=no
9349 rm -fr conftest*
9354 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
9355 if test x"$samba_cv_HAVE_BROKEN_READDIR" = x"yes"; then
9356 cat >> confdefs.h <<\EOF
9357 #define HAVE_BROKEN_READDIR 1
9362 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
9363 echo "configure:9364: checking for utimbuf" >&5
9364 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
9365 echo $ac_n "(cached) $ac_c" 1>&6
9366 else
9368 cat > conftest.$ac_ext <<EOF
9369 #line 9370 "configure"
9370 #include "confdefs.h"
9371 #include <sys/types.h>
9372 #include <utime.h>
9373 int main() {
9374 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
9375 ; return 0; }
9377 if { (eval echo configure:9378: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9378 rm -rf conftest*
9379 samba_cv_HAVE_UTIMBUF=yes
9380 else
9381 echo "configure: failed program was:" >&5
9382 cat conftest.$ac_ext >&5
9383 rm -rf conftest*
9384 samba_cv_HAVE_UTIMBUF=no
9386 rm -f conftest*
9389 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
9390 if test x"$samba_cv_HAVE_UTIMBUF" = x"yes"; then
9391 cat >> confdefs.h <<\EOF
9392 #define HAVE_UTIMBUF 1
9398 for ac_func in pututline pututxline updwtmp updwtmpx getutmpx
9400 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9401 echo "configure:9402: checking for $ac_func" >&5
9402 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9403 echo $ac_n "(cached) $ac_c" 1>&6
9404 else
9405 cat > conftest.$ac_ext <<EOF
9406 #line 9407 "configure"
9407 #include "confdefs.h"
9408 /* System header to define __stub macros and hopefully few prototypes,
9409 which can conflict with char $ac_func(); below. */
9410 #include <assert.h>
9411 /* Override any gcc2 internal prototype to avoid an error. */
9412 /* We use char because int might match the return type of a gcc2
9413 builtin and then its argument prototype would still apply. */
9414 char $ac_func();
9416 int main() {
9418 /* The GNU C library defines this for functions which it implements
9419 to always fail with ENOSYS. Some functions are actually named
9420 something starting with __ and the normal name is an alias. */
9421 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9422 choke me
9423 #else
9424 $ac_func();
9425 #endif
9427 ; return 0; }
9429 if { (eval echo configure:9430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9430 rm -rf conftest*
9431 eval "ac_cv_func_$ac_func=yes"
9432 else
9433 echo "configure: failed program was:" >&5
9434 cat conftest.$ac_ext >&5
9435 rm -rf conftest*
9436 eval "ac_cv_func_$ac_func=no"
9438 rm -f conftest*
9441 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9442 echo "$ac_t""yes" 1>&6
9443 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9444 cat >> confdefs.h <<EOF
9445 #define $ac_tr_func 1
9448 else
9449 echo "$ac_t""no" 1>&6
9451 done
9454 echo $ac_n "checking for ut_name in utmp""... $ac_c" 1>&6
9455 echo "configure:9456: checking for ut_name in utmp" >&5
9456 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_NAME'+set}'`\" = set"; then
9457 echo $ac_n "(cached) $ac_c" 1>&6
9458 else
9460 cat > conftest.$ac_ext <<EOF
9461 #line 9462 "configure"
9462 #include "confdefs.h"
9463 #include <sys/types.h>
9464 #include <utmp.h>
9465 int main() {
9466 struct utmp ut; ut.ut_name[0] = 'a';
9467 ; return 0; }
9469 if { (eval echo configure:9470: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9470 rm -rf conftest*
9471 samba_cv_HAVE_UT_UT_NAME=yes
9472 else
9473 echo "configure: failed program was:" >&5
9474 cat conftest.$ac_ext >&5
9475 rm -rf conftest*
9476 samba_cv_HAVE_UT_UT_NAME=no
9478 rm -f conftest*
9481 echo "$ac_t""$samba_cv_HAVE_UT_UT_NAME" 1>&6
9482 if test x"$samba_cv_HAVE_UT_UT_NAME" = x"yes"; then
9483 cat >> confdefs.h <<\EOF
9484 #define HAVE_UT_UT_NAME 1
9489 echo $ac_n "checking for ut_user in utmp""... $ac_c" 1>&6
9490 echo "configure:9491: checking for ut_user in utmp" >&5
9491 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_USER'+set}'`\" = set"; then
9492 echo $ac_n "(cached) $ac_c" 1>&6
9493 else
9495 cat > conftest.$ac_ext <<EOF
9496 #line 9497 "configure"
9497 #include "confdefs.h"
9498 #include <sys/types.h>
9499 #include <utmp.h>
9500 int main() {
9501 struct utmp ut; ut.ut_user[0] = 'a';
9502 ; return 0; }
9504 if { (eval echo configure:9505: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9505 rm -rf conftest*
9506 samba_cv_HAVE_UT_UT_USER=yes
9507 else
9508 echo "configure: failed program was:" >&5
9509 cat conftest.$ac_ext >&5
9510 rm -rf conftest*
9511 samba_cv_HAVE_UT_UT_USER=no
9513 rm -f conftest*
9516 echo "$ac_t""$samba_cv_HAVE_UT_UT_USER" 1>&6
9517 if test x"$samba_cv_HAVE_UT_UT_USER" = x"yes"; then
9518 cat >> confdefs.h <<\EOF
9519 #define HAVE_UT_UT_USER 1
9524 echo $ac_n "checking for ut_id in utmp""... $ac_c" 1>&6
9525 echo "configure:9526: checking for ut_id in utmp" >&5
9526 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ID'+set}'`\" = set"; then
9527 echo $ac_n "(cached) $ac_c" 1>&6
9528 else
9530 cat > conftest.$ac_ext <<EOF
9531 #line 9532 "configure"
9532 #include "confdefs.h"
9533 #include <sys/types.h>
9534 #include <utmp.h>
9535 int main() {
9536 struct utmp ut; ut.ut_id[0] = 'a';
9537 ; return 0; }
9539 if { (eval echo configure:9540: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9540 rm -rf conftest*
9541 samba_cv_HAVE_UT_UT_ID=yes
9542 else
9543 echo "configure: failed program was:" >&5
9544 cat conftest.$ac_ext >&5
9545 rm -rf conftest*
9546 samba_cv_HAVE_UT_UT_ID=no
9548 rm -f conftest*
9551 echo "$ac_t""$samba_cv_HAVE_UT_UT_ID" 1>&6
9552 if test x"$samba_cv_HAVE_UT_UT_ID" = x"yes"; then
9553 cat >> confdefs.h <<\EOF
9554 #define HAVE_UT_UT_ID 1
9559 echo $ac_n "checking for ut_host in utmp""... $ac_c" 1>&6
9560 echo "configure:9561: checking for ut_host in utmp" >&5
9561 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_HOST'+set}'`\" = set"; then
9562 echo $ac_n "(cached) $ac_c" 1>&6
9563 else
9565 cat > conftest.$ac_ext <<EOF
9566 #line 9567 "configure"
9567 #include "confdefs.h"
9568 #include <sys/types.h>
9569 #include <utmp.h>
9570 int main() {
9571 struct utmp ut; ut.ut_host[0] = 'a';
9572 ; return 0; }
9574 if { (eval echo configure:9575: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9575 rm -rf conftest*
9576 samba_cv_HAVE_UT_UT_HOST=yes
9577 else
9578 echo "configure: failed program was:" >&5
9579 cat conftest.$ac_ext >&5
9580 rm -rf conftest*
9581 samba_cv_HAVE_UT_UT_HOST=no
9583 rm -f conftest*
9586 echo "$ac_t""$samba_cv_HAVE_UT_UT_HOST" 1>&6
9587 if test x"$samba_cv_HAVE_UT_UT_HOST" = x"yes"; then
9588 cat >> confdefs.h <<\EOF
9589 #define HAVE_UT_UT_HOST 1
9594 echo $ac_n "checking for ut_time in utmp""... $ac_c" 1>&6
9595 echo "configure:9596: checking for ut_time in utmp" >&5
9596 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TIME'+set}'`\" = set"; then
9597 echo $ac_n "(cached) $ac_c" 1>&6
9598 else
9600 cat > conftest.$ac_ext <<EOF
9601 #line 9602 "configure"
9602 #include "confdefs.h"
9603 #include <sys/types.h>
9604 #include <utmp.h>
9605 int main() {
9606 struct utmp ut; time_t t; ut.ut_time = t;
9607 ; return 0; }
9609 if { (eval echo configure:9610: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9610 rm -rf conftest*
9611 samba_cv_HAVE_UT_UT_TIME=yes
9612 else
9613 echo "configure: failed program was:" >&5
9614 cat conftest.$ac_ext >&5
9615 rm -rf conftest*
9616 samba_cv_HAVE_UT_UT_TIME=no
9618 rm -f conftest*
9621 echo "$ac_t""$samba_cv_HAVE_UT_UT_TIME" 1>&6
9622 if test x"$samba_cv_HAVE_UT_UT_TIME" = x"yes"; then
9623 cat >> confdefs.h <<\EOF
9624 #define HAVE_UT_UT_TIME 1
9629 echo $ac_n "checking for ut_tv in utmp""... $ac_c" 1>&6
9630 echo "configure:9631: checking for ut_tv in utmp" >&5
9631 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TV'+set}'`\" = set"; then
9632 echo $ac_n "(cached) $ac_c" 1>&6
9633 else
9635 cat > conftest.$ac_ext <<EOF
9636 #line 9637 "configure"
9637 #include "confdefs.h"
9638 #include <sys/types.h>
9639 #include <utmp.h>
9640 int main() {
9641 struct utmp ut; struct timeval tv; ut.ut_tv = tv;
9642 ; return 0; }
9644 if { (eval echo configure:9645: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9645 rm -rf conftest*
9646 samba_cv_HAVE_UT_UT_TV=yes
9647 else
9648 echo "configure: failed program was:" >&5
9649 cat conftest.$ac_ext >&5
9650 rm -rf conftest*
9651 samba_cv_HAVE_UT_UT_TV=no
9653 rm -f conftest*
9656 echo "$ac_t""$samba_cv_HAVE_UT_UT_TV" 1>&6
9657 if test x"$samba_cv_HAVE_UT_UT_TV" = x"yes"; then
9658 cat >> confdefs.h <<\EOF
9659 #define HAVE_UT_UT_TV 1
9664 echo $ac_n "checking for ut_type in utmp""... $ac_c" 1>&6
9665 echo "configure:9666: checking for ut_type in utmp" >&5
9666 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TYPE'+set}'`\" = set"; then
9667 echo $ac_n "(cached) $ac_c" 1>&6
9668 else
9670 cat > conftest.$ac_ext <<EOF
9671 #line 9672 "configure"
9672 #include "confdefs.h"
9673 #include <sys/types.h>
9674 #include <utmp.h>
9675 int main() {
9676 struct utmp ut; ut.ut_type = 0;
9677 ; return 0; }
9679 if { (eval echo configure:9680: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9680 rm -rf conftest*
9681 samba_cv_HAVE_UT_UT_TYPE=yes
9682 else
9683 echo "configure: failed program was:" >&5
9684 cat conftest.$ac_ext >&5
9685 rm -rf conftest*
9686 samba_cv_HAVE_UT_UT_TYPE=no
9688 rm -f conftest*
9691 echo "$ac_t""$samba_cv_HAVE_UT_UT_TYPE" 1>&6
9692 if test x"$samba_cv_HAVE_UT_UT_TYPE" = x"yes"; then
9693 cat >> confdefs.h <<\EOF
9694 #define HAVE_UT_UT_TYPE 1
9699 echo $ac_n "checking for ut_pid in utmp""... $ac_c" 1>&6
9700 echo "configure:9701: checking for ut_pid in utmp" >&5
9701 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_PID'+set}'`\" = set"; then
9702 echo $ac_n "(cached) $ac_c" 1>&6
9703 else
9705 cat > conftest.$ac_ext <<EOF
9706 #line 9707 "configure"
9707 #include "confdefs.h"
9708 #include <sys/types.h>
9709 #include <utmp.h>
9710 int main() {
9711 struct utmp ut; ut.ut_pid = 0;
9712 ; return 0; }
9714 if { (eval echo configure:9715: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9715 rm -rf conftest*
9716 samba_cv_HAVE_UT_UT_PID=yes
9717 else
9718 echo "configure: failed program was:" >&5
9719 cat conftest.$ac_ext >&5
9720 rm -rf conftest*
9721 samba_cv_HAVE_UT_UT_PID=no
9723 rm -f conftest*
9726 echo "$ac_t""$samba_cv_HAVE_UT_UT_PID" 1>&6
9727 if test x"$samba_cv_HAVE_UT_UT_PID" = x"yes"; then
9728 cat >> confdefs.h <<\EOF
9729 #define HAVE_UT_UT_PID 1
9734 echo $ac_n "checking for ut_exit in utmp""... $ac_c" 1>&6
9735 echo "configure:9736: checking for ut_exit in utmp" >&5
9736 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_EXIT'+set}'`\" = set"; then
9737 echo $ac_n "(cached) $ac_c" 1>&6
9738 else
9740 cat > conftest.$ac_ext <<EOF
9741 #line 9742 "configure"
9742 #include "confdefs.h"
9743 #include <sys/types.h>
9744 #include <utmp.h>
9745 int main() {
9746 struct utmp ut; ut.ut_exit.e_exit = 0;
9747 ; return 0; }
9749 if { (eval echo configure:9750: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9750 rm -rf conftest*
9751 samba_cv_HAVE_UT_UT_EXIT=yes
9752 else
9753 echo "configure: failed program was:" >&5
9754 cat conftest.$ac_ext >&5
9755 rm -rf conftest*
9756 samba_cv_HAVE_UT_UT_EXIT=no
9758 rm -f conftest*
9761 echo "$ac_t""$samba_cv_HAVE_UT_UT_EXIT" 1>&6
9762 if test x"$samba_cv_HAVE_UT_UT_EXIT" = x"yes"; then
9763 cat >> confdefs.h <<\EOF
9764 #define HAVE_UT_UT_EXIT 1
9769 echo $ac_n "checking for ut_addr in utmp""... $ac_c" 1>&6
9770 echo "configure:9771: checking for ut_addr in utmp" >&5
9771 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ADDR'+set}'`\" = set"; then
9772 echo $ac_n "(cached) $ac_c" 1>&6
9773 else
9775 cat > conftest.$ac_ext <<EOF
9776 #line 9777 "configure"
9777 #include "confdefs.h"
9778 #include <sys/types.h>
9779 #include <utmp.h>
9780 int main() {
9781 struct utmp ut; ut.ut_addr = 0;
9782 ; return 0; }
9784 if { (eval echo configure:9785: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9785 rm -rf conftest*
9786 samba_cv_HAVE_UT_UT_ADDR=yes
9787 else
9788 echo "configure: failed program was:" >&5
9789 cat conftest.$ac_ext >&5
9790 rm -rf conftest*
9791 samba_cv_HAVE_UT_UT_ADDR=no
9793 rm -f conftest*
9796 echo "$ac_t""$samba_cv_HAVE_UT_UT_ADDR" 1>&6
9797 if test x"$samba_cv_HAVE_UT_UT_ADDR" = x"yes"; then
9798 cat >> confdefs.h <<\EOF
9799 #define HAVE_UT_UT_ADDR 1
9804 if test x$ac_cv_func_pututline = xyes ; then
9805 echo $ac_n "checking whether pututline returns pointer""... $ac_c" 1>&6
9806 echo "configure:9807: checking whether pututline returns pointer" >&5
9807 if eval "test \"`echo '$''{'samba_cv_PUTUTLINE_RETURNS_UTMP'+set}'`\" = set"; then
9808 echo $ac_n "(cached) $ac_c" 1>&6
9809 else
9811 cat > conftest.$ac_ext <<EOF
9812 #line 9813 "configure"
9813 #include "confdefs.h"
9814 #include <sys/types.h>
9815 #include <utmp.h>
9816 int main() {
9817 struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
9818 ; return 0; }
9820 if { (eval echo configure:9821: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9821 rm -rf conftest*
9822 samba_cv_PUTUTLINE_RETURNS_UTMP=yes
9823 else
9824 echo "configure: failed program was:" >&5
9825 cat conftest.$ac_ext >&5
9826 rm -rf conftest*
9827 samba_cv_PUTUTLINE_RETURNS_UTMP=no
9829 rm -f conftest*
9832 echo "$ac_t""$samba_cv_PUTUTLINE_RETURNS_UTMP" 1>&6
9833 if test x"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x"yes"; then
9834 cat >> confdefs.h <<\EOF
9835 #define PUTUTLINE_RETURNS_UTMP 1
9841 echo $ac_n "checking for ut_syslen in utmpx""... $ac_c" 1>&6
9842 echo "configure:9843: checking for ut_syslen in utmpx" >&5
9843 if eval "test \"`echo '$''{'samba_cv_HAVE_UX_UT_SYSLEN'+set}'`\" = set"; then
9844 echo $ac_n "(cached) $ac_c" 1>&6
9845 else
9847 cat > conftest.$ac_ext <<EOF
9848 #line 9849 "configure"
9849 #include "confdefs.h"
9850 #include <sys/types.h>
9851 #include <utmpx.h>
9852 int main() {
9853 struct utmpx ux; ux.ut_syslen = 0;
9854 ; return 0; }
9856 if { (eval echo configure:9857: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9857 rm -rf conftest*
9858 samba_cv_HAVE_UX_UT_SYSLEN=yes
9859 else
9860 echo "configure: failed program was:" >&5
9861 cat conftest.$ac_ext >&5
9862 rm -rf conftest*
9863 samba_cv_HAVE_UX_UT_SYSLEN=no
9865 rm -f conftest*
9868 echo "$ac_t""$samba_cv_HAVE_UX_UT_SYSLEN" 1>&6
9869 if test x"$samba_cv_HAVE_UX_UT_SYSLEN" = x"yes"; then
9870 cat >> confdefs.h <<\EOF
9871 #define HAVE_UX_UT_SYSLEN 1
9876 echo $ac_n "checking for Linux kernel oplocks""... $ac_c" 1>&6
9877 echo "configure:9878: checking for Linux kernel oplocks" >&5
9878 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_LINUX'+set}'`\" = set"; then
9879 echo $ac_n "(cached) $ac_c" 1>&6
9880 else
9882 if test "$cross_compiling" = yes; then
9883 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=cross
9884 else
9885 cat > conftest.$ac_ext <<EOF
9886 #line 9887 "configure"
9887 #include "confdefs.h"
9889 #include <sys/types.h>
9890 #include <fcntl.h>
9891 #ifndef F_GETLEASE
9892 #define F_GETLEASE 1025
9893 #endif
9894 main() {
9895 int fd = open("/dev/null", O_RDONLY);
9896 return fcntl(fd, F_GETLEASE, 0) == -1;
9900 if { (eval echo configure:9901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9901 then
9902 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=yes
9903 else
9904 echo "configure: failed program was:" >&5
9905 cat conftest.$ac_ext >&5
9906 rm -fr conftest*
9907 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=no
9909 rm -fr conftest*
9914 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" 1>&6
9915 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x"yes"; then
9916 cat >> confdefs.h <<\EOF
9917 #define HAVE_KERNEL_OPLOCKS_LINUX 1
9922 echo $ac_n "checking for kernel change notify support""... $ac_c" 1>&6
9923 echo "configure:9924: checking for kernel change notify support" >&5
9924 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_CHANGE_NOTIFY'+set}'`\" = set"; then
9925 echo $ac_n "(cached) $ac_c" 1>&6
9926 else
9928 if test "$cross_compiling" = yes; then
9929 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=cross
9930 else
9931 cat > conftest.$ac_ext <<EOF
9932 #line 9933 "configure"
9933 #include "confdefs.h"
9935 #include <sys/types.h>
9936 #include <fcntl.h>
9937 #include <signal.h>
9938 #ifndef F_NOTIFY
9939 #define F_NOTIFY 1026
9940 #endif
9941 main() {
9942 exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0);
9946 if { (eval echo configure:9947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9947 then
9948 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=yes
9949 else
9950 echo "configure: failed program was:" >&5
9951 cat conftest.$ac_ext >&5
9952 rm -fr conftest*
9953 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=no
9955 rm -fr conftest*
9960 echo "$ac_t""$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" 1>&6
9961 if test x"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x"yes"; then
9962 cat >> confdefs.h <<\EOF
9963 #define HAVE_KERNEL_CHANGE_NOTIFY 1
9968 echo $ac_n "checking for kernel share modes""... $ac_c" 1>&6
9969 echo "configure:9970: checking for kernel share modes" >&5
9970 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_SHARE_MODES'+set}'`\" = set"; then
9971 echo $ac_n "(cached) $ac_c" 1>&6
9972 else
9974 if test "$cross_compiling" = yes; then
9975 samba_cv_HAVE_KERNEL_SHARE_MODES=cross
9976 else
9977 cat > conftest.$ac_ext <<EOF
9978 #line 9979 "configure"
9979 #include "confdefs.h"
9981 #include <sys/types.h>
9982 #include <fcntl.h>
9983 #include <signal.h>
9984 #include <sys/file.h>
9985 #ifndef LOCK_MAND
9986 #define LOCK_MAND 32
9987 #define LOCK_READ 64
9988 #endif
9989 main() {
9990 exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
9994 if { (eval echo configure:9995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9995 then
9996 samba_cv_HAVE_KERNEL_SHARE_MODES=yes
9997 else
9998 echo "configure: failed program was:" >&5
9999 cat conftest.$ac_ext >&5
10000 rm -fr conftest*
10001 samba_cv_HAVE_KERNEL_SHARE_MODES=no
10003 rm -fr conftest*
10008 echo "$ac_t""$samba_cv_HAVE_KERNEL_SHARE_MODES" 1>&6
10009 if test x"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x"yes"; then
10010 cat >> confdefs.h <<\EOF
10011 #define HAVE_KERNEL_SHARE_MODES 1
10019 echo $ac_n "checking for IRIX kernel oplock type definitions""... $ac_c" 1>&6
10020 echo "configure:10021: checking for IRIX kernel oplock type definitions" >&5
10021 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_IRIX'+set}'`\" = set"; then
10022 echo $ac_n "(cached) $ac_c" 1>&6
10023 else
10025 cat > conftest.$ac_ext <<EOF
10026 #line 10027 "configure"
10027 #include "confdefs.h"
10028 #include <sys/types.h>
10029 #include <fcntl.h>
10030 int main() {
10031 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
10032 ; return 0; }
10034 if { (eval echo configure:10035: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10035 rm -rf conftest*
10036 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=yes
10037 else
10038 echo "configure: failed program was:" >&5
10039 cat conftest.$ac_ext >&5
10040 rm -rf conftest*
10041 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=no
10043 rm -f conftest*
10046 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" 1>&6
10047 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x"yes"; then
10048 cat >> confdefs.h <<\EOF
10049 #define HAVE_KERNEL_OPLOCKS_IRIX 1
10054 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
10055 echo "configure:10056: checking for irix specific capabilities" >&5
10056 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
10057 echo $ac_n "(cached) $ac_c" 1>&6
10058 else
10060 if test "$cross_compiling" = yes; then
10061 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=cross
10062 else
10063 cat > conftest.$ac_ext <<EOF
10064 #line 10065 "configure"
10065 #include "confdefs.h"
10066 #include <sys/types.h>
10067 #include <sys/capability.h>
10068 main() {
10069 cap_t cap;
10070 if ((cap = cap_get_proc()) == NULL)
10071 exit(1);
10072 cap->cap_effective |= CAP_NETWORK_MGT;
10073 cap->cap_inheritable |= CAP_NETWORK_MGT;
10074 cap_set_proc(cap);
10075 exit(0);
10079 if { (eval echo configure:10080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10080 then
10081 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=yes
10082 else
10083 echo "configure: failed program was:" >&5
10084 cat conftest.$ac_ext >&5
10085 rm -fr conftest*
10086 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=no
10088 rm -fr conftest*
10093 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
10094 if test x"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x"yes"; then
10095 cat >> confdefs.h <<\EOF
10096 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
10102 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
10103 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
10106 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10107 echo "configure:10108: checking for int16 typedef included by rpc/rpc.h" >&5
10108 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10109 echo $ac_n "(cached) $ac_c" 1>&6
10110 else
10112 cat > conftest.$ac_ext <<EOF
10113 #line 10114 "configure"
10114 #include "confdefs.h"
10115 #include <sys/types.h>
10116 #if defined(HAVE_RPC_RPC_H)
10117 #include <rpc/rpc.h>
10118 #endif
10119 int main() {
10120 int16 testvar;
10121 ; return 0; }
10123 if { (eval echo configure:10124: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10124 rm -rf conftest*
10125 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=yes
10126 else
10127 echo "configure: failed program was:" >&5
10128 cat conftest.$ac_ext >&5
10129 rm -rf conftest*
10130 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=no
10132 rm -f conftest*
10135 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
10136 if test x"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x"yes"; then
10137 cat >> confdefs.h <<\EOF
10138 #define HAVE_INT16_FROM_RPC_RPC_H 1
10143 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10144 echo "configure:10145: checking for uint16 typedef included by rpc/rpc.h" >&5
10145 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10146 echo $ac_n "(cached) $ac_c" 1>&6
10147 else
10149 cat > conftest.$ac_ext <<EOF
10150 #line 10151 "configure"
10151 #include "confdefs.h"
10152 #include <sys/types.h>
10153 #if defined(HAVE_RPC_RPC_H)
10154 #include <rpc/rpc.h>
10155 #endif
10156 int main() {
10157 uint16 testvar;
10158 ; return 0; }
10160 if { (eval echo configure:10161: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10161 rm -rf conftest*
10162 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=yes
10163 else
10164 echo "configure: failed program was:" >&5
10165 cat conftest.$ac_ext >&5
10166 rm -rf conftest*
10167 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=no
10169 rm -f conftest*
10172 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
10173 if test x"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x"yes"; then
10174 cat >> confdefs.h <<\EOF
10175 #define HAVE_UINT16_FROM_RPC_RPC_H 1
10180 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10181 echo "configure:10182: checking for int32 typedef included by rpc/rpc.h" >&5
10182 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10183 echo $ac_n "(cached) $ac_c" 1>&6
10184 else
10186 cat > conftest.$ac_ext <<EOF
10187 #line 10188 "configure"
10188 #include "confdefs.h"
10189 #include <sys/types.h>
10190 #if defined(HAVE_RPC_RPC_H)
10191 #include <rpc/rpc.h>
10192 #endif
10193 int main() {
10194 int32 testvar;
10195 ; return 0; }
10197 if { (eval echo configure:10198: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10198 rm -rf conftest*
10199 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=yes
10200 else
10201 echo "configure: failed program was:" >&5
10202 cat conftest.$ac_ext >&5
10203 rm -rf conftest*
10204 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=no
10206 rm -f conftest*
10209 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
10210 if test x"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x"yes"; then
10211 cat >> confdefs.h <<\EOF
10212 #define HAVE_INT32_FROM_RPC_RPC_H 1
10217 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10218 echo "configure:10219: checking for uint32 typedef included by rpc/rpc.h" >&5
10219 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10220 echo $ac_n "(cached) $ac_c" 1>&6
10221 else
10223 cat > conftest.$ac_ext <<EOF
10224 #line 10225 "configure"
10225 #include "confdefs.h"
10226 #include <sys/types.h>
10227 #if defined(HAVE_RPC_RPC_H)
10228 #include <rpc/rpc.h>
10229 #endif
10230 int main() {
10231 uint32 testvar;
10232 ; return 0; }
10234 if { (eval echo configure:10235: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10235 rm -rf conftest*
10236 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=yes
10237 else
10238 echo "configure: failed program was:" >&5
10239 cat conftest.$ac_ext >&5
10240 rm -rf conftest*
10241 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=no
10243 rm -f conftest*
10246 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
10247 if test x"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x"yes"; then
10248 cat >> confdefs.h <<\EOF
10249 #define HAVE_UINT32_FROM_RPC_RPC_H 1
10255 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
10256 echo "configure:10257: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
10257 if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
10258 echo $ac_n "(cached) $ac_c" 1>&6
10259 else
10261 cat > conftest.$ac_ext <<EOF
10262 #line 10263 "configure"
10263 #include "confdefs.h"
10264 #include <sys/types.h>
10265 #ifdef HAVE_SYS_SECURITY_H
10266 #include <sys/security.h>
10267 #include <prot.h>
10268 #endif /* HAVE_SYS_SECURITY_H */
10269 #if defined(HAVE_RPC_RPC_H)
10270 #include <rpc/rpc.h>
10271 #endif
10272 int main() {
10273 int testvar;
10274 ; return 0; }
10276 if { (eval echo configure:10277: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10277 rm -rf conftest*
10278 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=no
10279 else
10280 echo "configure: failed program was:" >&5
10281 cat conftest.$ac_ext >&5
10282 rm -rf conftest*
10283 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=yes
10285 rm -f conftest*
10288 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
10289 if test x"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x"yes"; then
10290 cat >> confdefs.h <<\EOF
10291 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
10296 echo $ac_n "checking for test routines""... $ac_c" 1>&6
10297 echo "configure:10298: checking for test routines" >&5
10298 if test "$cross_compiling" = yes; then
10299 echo "configure: warning: cannot run when cross-compiling" 1>&2
10300 else
10301 cat > conftest.$ac_ext <<EOF
10302 #line 10303 "configure"
10303 #include "confdefs.h"
10304 #include "${srcdir-.}/tests/trivial.c"
10306 if { (eval echo configure:10307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10307 then
10308 echo "$ac_t""yes" 1>&6
10309 else
10310 echo "configure: failed program was:" >&5
10311 cat conftest.$ac_ext >&5
10312 rm -fr conftest*
10313 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
10315 rm -fr conftest*
10319 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
10320 echo "configure:10321: checking for ftruncate extend" >&5
10321 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
10322 echo $ac_n "(cached) $ac_c" 1>&6
10323 else
10325 if test "$cross_compiling" = yes; then
10326 samba_cv_HAVE_FTRUNCATE_EXTEND=cross
10327 else
10328 cat > conftest.$ac_ext <<EOF
10329 #line 10330 "configure"
10330 #include "confdefs.h"
10331 #include "${srcdir-.}/tests/ftruncate.c"
10333 if { (eval echo configure:10334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10334 then
10335 samba_cv_HAVE_FTRUNCATE_EXTEND=yes
10336 else
10337 echo "configure: failed program was:" >&5
10338 cat conftest.$ac_ext >&5
10339 rm -fr conftest*
10340 samba_cv_HAVE_FTRUNCATE_EXTEND=no
10342 rm -fr conftest*
10347 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
10348 if test x"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x"yes"; then
10349 cat >> confdefs.h <<\EOF
10350 #define HAVE_FTRUNCATE_EXTEND 1
10355 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
10356 echo "configure:10357: checking for broken getgroups" >&5
10357 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
10358 echo $ac_n "(cached) $ac_c" 1>&6
10359 else
10361 if test "$cross_compiling" = yes; then
10362 samba_cv_HAVE_BROKEN_GETGROUPS=cross
10363 else
10364 cat > conftest.$ac_ext <<EOF
10365 #line 10366 "configure"
10366 #include "confdefs.h"
10367 #include "${srcdir-.}/tests/getgroups.c"
10369 if { (eval echo configure:10370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10370 then
10371 samba_cv_HAVE_BROKEN_GETGROUPS=yes
10372 else
10373 echo "configure: failed program was:" >&5
10374 cat conftest.$ac_ext >&5
10375 rm -fr conftest*
10376 samba_cv_HAVE_BROKEN_GETGROUPS=no
10378 rm -fr conftest*
10383 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
10384 if test x"$samba_cv_HAVE_BROKEN_GETGROUPS" = x"yes"; then
10385 cat >> confdefs.h <<\EOF
10386 #define HAVE_BROKEN_GETGROUPS 1
10391 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
10392 echo "configure:10393: checking whether getpass should be replaced" >&5
10393 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
10394 echo $ac_n "(cached) $ac_c" 1>&6
10395 else
10397 SAVE_CPPFLAGS="$CPPFLAGS"
10398 CPPFLAGS="$CPPFLAGS -I${srcdir-.}/ -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/smbwrapper"
10399 cat > conftest.$ac_ext <<EOF
10400 #line 10401 "configure"
10401 #include "confdefs.h"
10403 #define REPLACE_GETPASS 1
10404 #define NO_CONFIG_H 1
10405 #define main dont_declare_main
10406 #include "${srcdir-.}/lib/getsmbpass.c"
10407 #undef main
10409 int main() {
10411 ; return 0; }
10413 if { (eval echo configure:10414: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10414 rm -rf conftest*
10415 samba_cv_REPLACE_GETPASS=yes
10416 else
10417 echo "configure: failed program was:" >&5
10418 cat conftest.$ac_ext >&5
10419 rm -rf conftest*
10420 samba_cv_REPLACE_GETPASS=no
10422 rm -f conftest*
10423 CPPFLAGS="$SAVE_CPPFLAGS"
10427 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
10428 if test x"$samba_cv_REPLACE_GETPASS" = x"yes"; then
10429 cat >> confdefs.h <<\EOF
10430 #define REPLACE_GETPASS 1
10435 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
10436 echo "configure:10437: checking for broken inet_ntoa" >&5
10437 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
10438 echo $ac_n "(cached) $ac_c" 1>&6
10439 else
10441 if test "$cross_compiling" = yes; then
10442 samba_cv_REPLACE_INET_NTOA=cross
10443 else
10444 cat > conftest.$ac_ext <<EOF
10445 #line 10446 "configure"
10446 #include "confdefs.h"
10448 #include <stdio.h>
10449 #include <sys/types.h>
10450 #include <netinet/in.h>
10451 #ifdef HAVE_ARPA_INET_H
10452 #include <arpa/inet.h>
10453 #endif
10454 main() { struct in_addr ip; ip.s_addr = 0x12345678;
10455 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
10456 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
10457 exit(1);}
10459 if { (eval echo configure:10460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10460 then
10461 samba_cv_REPLACE_INET_NTOA=yes
10462 else
10463 echo "configure: failed program was:" >&5
10464 cat conftest.$ac_ext >&5
10465 rm -fr conftest*
10466 samba_cv_REPLACE_INET_NTOA=no
10468 rm -fr conftest*
10473 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
10474 if test x"$samba_cv_REPLACE_INET_NTOA" = x"yes"; then
10475 cat >> confdefs.h <<\EOF
10476 #define REPLACE_INET_NTOA 1
10481 echo $ac_n "checking for secure mkstemp""... $ac_c" 1>&6
10482 echo "configure:10483: checking for secure mkstemp" >&5
10483 if eval "test \"`echo '$''{'samba_cv_HAVE_SECURE_MKSTEMP'+set}'`\" = set"; then
10484 echo $ac_n "(cached) $ac_c" 1>&6
10485 else
10487 if test "$cross_compiling" = yes; then
10488 samba_cv_HAVE_SECURE_MKSTEMP=cross
10489 else
10490 cat > conftest.$ac_ext <<EOF
10491 #line 10492 "configure"
10492 #include "confdefs.h"
10493 #include <stdlib.h>
10494 #include <sys/types.h>
10495 #include <sys/stat.h>
10496 #include <unistd.h>
10497 main() {
10498 struct stat st;
10499 char tpl[20]="/tmp/test.XXXXXX";
10500 int fd = mkstemp(tpl);
10501 if (fd == -1) exit(1);
10502 unlink(tpl);
10503 if (fstat(fd, &st) != 0) exit(1);
10504 if ((st.st_mode & 0777) != 0600) exit(1);
10505 exit(0);
10508 if { (eval echo configure:10509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10509 then
10510 samba_cv_HAVE_SECURE_MKSTEMP=yes
10511 else
10512 echo "configure: failed program was:" >&5
10513 cat conftest.$ac_ext >&5
10514 rm -fr conftest*
10515 samba_cv_HAVE_SECURE_MKSTEMP=no
10517 rm -fr conftest*
10522 echo "$ac_t""$samba_cv_HAVE_SECURE_MKSTEMP" 1>&6
10523 if test x"$samba_cv_HAVE_SECURE_MKSTEMP" = x"yes"; then
10524 cat >> confdefs.h <<\EOF
10525 #define HAVE_SECURE_MKSTEMP 1
10530 echo $ac_n "checking for sysconf(_SC_NGROUPS_MAX)""... $ac_c" 1>&6
10531 echo "configure:10532: checking for sysconf(_SC_NGROUPS_MAX)" >&5
10532 if eval "test \"`echo '$''{'samba_cv_SYSCONF_SC_NGROUPS_MAX'+set}'`\" = set"; then
10533 echo $ac_n "(cached) $ac_c" 1>&6
10534 else
10536 if test "$cross_compiling" = yes; then
10537 samba_cv_SYSCONF_SC_NGROUPS_MAX=cross
10538 else
10539 cat > conftest.$ac_ext <<EOF
10540 #line 10541 "configure"
10541 #include "confdefs.h"
10542 #include <unistd.h>
10543 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
10545 if { (eval echo configure:10546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10546 then
10547 samba_cv_SYSCONF_SC_NGROUPS_MAX=yes
10548 else
10549 echo "configure: failed program was:" >&5
10550 cat conftest.$ac_ext >&5
10551 rm -fr conftest*
10552 samba_cv_SYSCONF_SC_NGROUPS_MAX=no
10554 rm -fr conftest*
10559 echo "$ac_t""$samba_cv_SYSCONF_SC_NGROUPS_MAX" 1>&6
10560 if test x"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x"yes"; then
10561 cat >> confdefs.h <<\EOF
10562 #define SYSCONF_SC_NGROUPS_MAX 1
10567 echo $ac_n "checking for root""... $ac_c" 1>&6
10568 echo "configure:10569: checking for root" >&5
10569 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
10570 echo $ac_n "(cached) $ac_c" 1>&6
10571 else
10573 if test "$cross_compiling" = yes; then
10574 samba_cv_HAVE_ROOT=cross
10575 else
10576 cat > conftest.$ac_ext <<EOF
10577 #line 10578 "configure"
10578 #include "confdefs.h"
10579 main() { exit(getuid() != 0); }
10581 if { (eval echo configure:10582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10582 then
10583 samba_cv_HAVE_ROOT=yes
10584 else
10585 echo "configure: failed program was:" >&5
10586 cat conftest.$ac_ext >&5
10587 rm -fr conftest*
10588 samba_cv_HAVE_ROOT=no
10590 rm -fr conftest*
10595 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
10596 if test x"$samba_cv_HAVE_ROOT" = x"yes"; then
10597 cat >> confdefs.h <<\EOF
10598 #define HAVE_ROOT 1
10601 else
10602 echo "configure: warning: running as non-root will disable some tests" 1>&2
10605 ##################
10606 # look for a method of finding the list of network interfaces
10607 iface=no;
10608 echo $ac_n "checking for iface AIX""... $ac_c" 1>&6
10609 echo "configure:10610: checking for iface AIX" >&5
10610 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_AIX'+set}'`\" = set"; then
10611 echo $ac_n "(cached) $ac_c" 1>&6
10612 else
10614 if test "$cross_compiling" = yes; then
10615 samba_cv_HAVE_IFACE_AIX=cross
10616 else
10617 cat > conftest.$ac_ext <<EOF
10618 #line 10619 "configure"
10619 #include "confdefs.h"
10621 #define HAVE_IFACE_AIX 1
10622 #define AUTOCONF_TEST 1
10623 #include "confdefs.h"
10624 #include "${srcdir-.}/lib/interfaces.c"
10626 if { (eval echo configure:10627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10627 then
10628 samba_cv_HAVE_IFACE_AIX=yes
10629 else
10630 echo "configure: failed program was:" >&5
10631 cat conftest.$ac_ext >&5
10632 rm -fr conftest*
10633 samba_cv_HAVE_IFACE_AIX=no
10635 rm -fr conftest*
10640 echo "$ac_t""$samba_cv_HAVE_IFACE_AIX" 1>&6
10641 if test x"$samba_cv_HAVE_IFACE_AIX" = x"yes"; then
10642 iface=yes;cat >> confdefs.h <<\EOF
10643 #define HAVE_IFACE_AIX 1
10648 if test $iface = no; then
10649 echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6
10650 echo "configure:10651: checking for iface ifconf" >&5
10651 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFCONF'+set}'`\" = set"; then
10652 echo $ac_n "(cached) $ac_c" 1>&6
10653 else
10655 if test "$cross_compiling" = yes; then
10656 samba_cv_HAVE_IFACE_IFCONF=cross
10657 else
10658 cat > conftest.$ac_ext <<EOF
10659 #line 10660 "configure"
10660 #include "confdefs.h"
10662 #define HAVE_IFACE_IFCONF 1
10663 #define AUTOCONF_TEST 1
10664 #include "confdefs.h"
10665 #include "${srcdir-.}/lib/interfaces.c"
10667 if { (eval echo configure:10668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10668 then
10669 samba_cv_HAVE_IFACE_IFCONF=yes
10670 else
10671 echo "configure: failed program was:" >&5
10672 cat conftest.$ac_ext >&5
10673 rm -fr conftest*
10674 samba_cv_HAVE_IFACE_IFCONF=no
10676 rm -fr conftest*
10681 echo "$ac_t""$samba_cv_HAVE_IFACE_IFCONF" 1>&6
10682 if test x"$samba_cv_HAVE_IFACE_IFCONF" = x"yes"; then
10683 iface=yes;cat >> confdefs.h <<\EOF
10684 #define HAVE_IFACE_IFCONF 1
10690 if test $iface = no; then
10691 echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6
10692 echo "configure:10693: checking for iface ifreq" >&5
10693 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFREQ'+set}'`\" = set"; then
10694 echo $ac_n "(cached) $ac_c" 1>&6
10695 else
10697 if test "$cross_compiling" = yes; then
10698 samba_cv_HAVE_IFACE_IFREQ=cross
10699 else
10700 cat > conftest.$ac_ext <<EOF
10701 #line 10702 "configure"
10702 #include "confdefs.h"
10704 #define HAVE_IFACE_IFREQ 1
10705 #define AUTOCONF_TEST 1
10706 #include "confdefs.h"
10707 #include "${srcdir-.}/lib/interfaces.c"
10709 if { (eval echo configure:10710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10710 then
10711 samba_cv_HAVE_IFACE_IFREQ=yes
10712 else
10713 echo "configure: failed program was:" >&5
10714 cat conftest.$ac_ext >&5
10715 rm -fr conftest*
10716 samba_cv_HAVE_IFACE_IFREQ=no
10718 rm -fr conftest*
10723 echo "$ac_t""$samba_cv_HAVE_IFACE_IFREQ" 1>&6
10724 if test x"$samba_cv_HAVE_IFACE_IFREQ" = x"yes"; then
10725 iface=yes;cat >> confdefs.h <<\EOF
10726 #define HAVE_IFACE_IFREQ 1
10733 ################################################
10734 # look for a method of setting the effective uid
10735 seteuid=no;
10736 if test $seteuid = no; then
10737 echo $ac_n "checking for setresuid""... $ac_c" 1>&6
10738 echo "configure:10739: checking for setresuid" >&5
10739 if eval "test \"`echo '$''{'samba_cv_USE_SETRESUID'+set}'`\" = set"; then
10740 echo $ac_n "(cached) $ac_c" 1>&6
10741 else
10743 if test "$cross_compiling" = yes; then
10744 samba_cv_USE_SETRESUID=cross
10745 else
10746 cat > conftest.$ac_ext <<EOF
10747 #line 10748 "configure"
10748 #include "confdefs.h"
10750 #define AUTOCONF_TEST 1
10751 #define USE_SETRESUID 1
10752 #include "confdefs.h"
10753 #include "${srcdir-.}/lib/util_sec.c"
10755 if { (eval echo configure:10756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10756 then
10757 samba_cv_USE_SETRESUID=yes
10758 else
10759 echo "configure: failed program was:" >&5
10760 cat conftest.$ac_ext >&5
10761 rm -fr conftest*
10762 samba_cv_USE_SETRESUID=no
10764 rm -fr conftest*
10769 echo "$ac_t""$samba_cv_USE_SETRESUID" 1>&6
10770 if test x"$samba_cv_USE_SETRESUID" = x"yes"; then
10771 seteuid=yes;cat >> confdefs.h <<\EOF
10772 #define USE_SETRESUID 1
10779 if test $seteuid = no; then
10780 echo $ac_n "checking for setreuid""... $ac_c" 1>&6
10781 echo "configure:10782: checking for setreuid" >&5
10782 if eval "test \"`echo '$''{'samba_cv_USE_SETREUID'+set}'`\" = set"; then
10783 echo $ac_n "(cached) $ac_c" 1>&6
10784 else
10786 if test "$cross_compiling" = yes; then
10787 samba_cv_USE_SETREUID=cross
10788 else
10789 cat > conftest.$ac_ext <<EOF
10790 #line 10791 "configure"
10791 #include "confdefs.h"
10793 #define AUTOCONF_TEST 1
10794 #define USE_SETREUID 1
10795 #include "confdefs.h"
10796 #include "${srcdir-.}/lib/util_sec.c"
10798 if { (eval echo configure:10799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10799 then
10800 samba_cv_USE_SETREUID=yes
10801 else
10802 echo "configure: failed program was:" >&5
10803 cat conftest.$ac_ext >&5
10804 rm -fr conftest*
10805 samba_cv_USE_SETREUID=no
10807 rm -fr conftest*
10812 echo "$ac_t""$samba_cv_USE_SETREUID" 1>&6
10813 if test x"$samba_cv_USE_SETREUID" = x"yes"; then
10814 seteuid=yes;cat >> confdefs.h <<\EOF
10815 #define USE_SETREUID 1
10821 if test $seteuid = no; then
10822 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
10823 echo "configure:10824: checking for seteuid" >&5
10824 if eval "test \"`echo '$''{'samba_cv_USE_SETEUID'+set}'`\" = set"; then
10825 echo $ac_n "(cached) $ac_c" 1>&6
10826 else
10828 if test "$cross_compiling" = yes; then
10829 samba_cv_USE_SETEUID=cross
10830 else
10831 cat > conftest.$ac_ext <<EOF
10832 #line 10833 "configure"
10833 #include "confdefs.h"
10835 #define AUTOCONF_TEST 1
10836 #define USE_SETEUID 1
10837 #include "confdefs.h"
10838 #include "${srcdir-.}/lib/util_sec.c"
10840 if { (eval echo configure:10841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10841 then
10842 samba_cv_USE_SETEUID=yes
10843 else
10844 echo "configure: failed program was:" >&5
10845 cat conftest.$ac_ext >&5
10846 rm -fr conftest*
10847 samba_cv_USE_SETEUID=no
10849 rm -fr conftest*
10854 echo "$ac_t""$samba_cv_USE_SETEUID" 1>&6
10855 if test x"$samba_cv_USE_SETEUID" = x"yes"; then
10856 seteuid=yes;cat >> confdefs.h <<\EOF
10857 #define USE_SETEUID 1
10863 if test $seteuid = no; then
10864 echo $ac_n "checking for setuidx""... $ac_c" 1>&6
10865 echo "configure:10866: checking for setuidx" >&5
10866 if eval "test \"`echo '$''{'samba_cv_USE_SETUIDX'+set}'`\" = set"; then
10867 echo $ac_n "(cached) $ac_c" 1>&6
10868 else
10870 if test "$cross_compiling" = yes; then
10871 samba_cv_USE_SETUIDX=cross
10872 else
10873 cat > conftest.$ac_ext <<EOF
10874 #line 10875 "configure"
10875 #include "confdefs.h"
10877 #define AUTOCONF_TEST 1
10878 #define USE_SETUIDX 1
10879 #include "confdefs.h"
10880 #include "${srcdir-.}/lib/util_sec.c"
10882 if { (eval echo configure:10883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10883 then
10884 samba_cv_USE_SETUIDX=yes
10885 else
10886 echo "configure: failed program was:" >&5
10887 cat conftest.$ac_ext >&5
10888 rm -fr conftest*
10889 samba_cv_USE_SETUIDX=no
10891 rm -fr conftest*
10896 echo "$ac_t""$samba_cv_USE_SETUIDX" 1>&6
10897 if test x"$samba_cv_USE_SETUIDX" = x"yes"; then
10898 seteuid=yes;cat >> confdefs.h <<\EOF
10899 #define USE_SETUIDX 1
10906 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
10907 echo "configure:10908: checking for working mmap" >&5
10908 if eval "test \"`echo '$''{'samba_cv_HAVE_MMAP'+set}'`\" = set"; then
10909 echo $ac_n "(cached) $ac_c" 1>&6
10910 else
10912 if test "$cross_compiling" = yes; then
10913 samba_cv_HAVE_MMAP=cross
10914 else
10915 cat > conftest.$ac_ext <<EOF
10916 #line 10917 "configure"
10917 #include "confdefs.h"
10918 #include "${srcdir-.}/tests/shared_mmap.c"
10920 if { (eval echo configure:10921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10921 then
10922 samba_cv_HAVE_MMAP=yes
10923 else
10924 echo "configure: failed program was:" >&5
10925 cat conftest.$ac_ext >&5
10926 rm -fr conftest*
10927 samba_cv_HAVE_MMAP=no
10929 rm -fr conftest*
10934 echo "$ac_t""$samba_cv_HAVE_MMAP" 1>&6
10935 if test x"$samba_cv_HAVE_MMAP" = x"yes"; then
10936 cat >> confdefs.h <<\EOF
10937 #define HAVE_MMAP 1
10942 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
10943 echo "configure:10944: checking for ftruncate needs root" >&5
10944 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
10945 echo $ac_n "(cached) $ac_c" 1>&6
10946 else
10948 if test "$cross_compiling" = yes; then
10949 samba_cv_FTRUNCATE_NEEDS_ROOT=cross
10950 else
10951 cat > conftest.$ac_ext <<EOF
10952 #line 10953 "configure"
10953 #include "confdefs.h"
10954 #include "${srcdir-.}/tests/ftruncroot.c"
10956 if { (eval echo configure:10957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10957 then
10958 samba_cv_FTRUNCATE_NEEDS_ROOT=yes
10959 else
10960 echo "configure: failed program was:" >&5
10961 cat conftest.$ac_ext >&5
10962 rm -fr conftest*
10963 samba_cv_FTRUNCATE_NEEDS_ROOT=no
10965 rm -fr conftest*
10970 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
10971 if test x"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x"yes"; then
10972 cat >> confdefs.h <<\EOF
10973 #define FTRUNCATE_NEEDS_ROOT 1
10978 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
10979 echo "configure:10980: checking for fcntl locking" >&5
10980 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
10981 echo $ac_n "(cached) $ac_c" 1>&6
10982 else
10984 if test "$cross_compiling" = yes; then
10985 samba_cv_HAVE_FCNTL_LOCK=cross
10986 else
10987 cat > conftest.$ac_ext <<EOF
10988 #line 10989 "configure"
10989 #include "confdefs.h"
10990 #include "${srcdir-.}/tests/fcntl_lock.c"
10992 if { (eval echo configure:10993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10993 then
10994 samba_cv_HAVE_FCNTL_LOCK=yes
10995 else
10996 echo "configure: failed program was:" >&5
10997 cat conftest.$ac_ext >&5
10998 rm -fr conftest*
10999 samba_cv_HAVE_FCNTL_LOCK=no
11001 rm -fr conftest*
11006 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
11007 if test x"$samba_cv_HAVE_FCNTL_LOCK" = x"yes"; then
11008 cat >> confdefs.h <<\EOF
11009 #define HAVE_FCNTL_LOCK 1
11014 echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6
11015 echo "configure:11016: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
11016 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_FCNTL64_LOCKS'+set}'`\" = set"; then
11017 echo $ac_n "(cached) $ac_c" 1>&6
11018 else
11020 if test "$cross_compiling" = yes; then
11021 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=cross
11022 else
11023 cat > conftest.$ac_ext <<EOF
11024 #line 11025 "configure"
11025 #include "confdefs.h"
11026 #include "${srcdir-.}/tests/fcntl_lock64.c"
11028 if { (eval echo configure:11029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11029 then
11030 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=yes
11031 else
11032 echo "configure: failed program was:" >&5
11033 cat conftest.$ac_ext >&5
11034 rm -fr conftest*
11035 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=no
11037 rm -fr conftest*
11042 echo "$ac_t""$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" 1>&6
11043 if test x"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x"yes"; then
11044 cat >> confdefs.h <<\EOF
11045 #define HAVE_BROKEN_FCNTL64_LOCKS 1
11049 else
11052 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
11053 echo "configure:11054: checking for 64 bit fcntl locking" >&5
11054 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
11055 echo $ac_n "(cached) $ac_c" 1>&6
11056 else
11058 if test "$cross_compiling" = yes; then
11059 samba_cv_HAVE_STRUCT_FLOCK64=cross
11060 else
11061 cat > conftest.$ac_ext <<EOF
11062 #line 11063 "configure"
11063 #include "confdefs.h"
11065 #if defined(HAVE_UNISTD_H)
11066 #include <unistd.h>
11067 #endif
11068 #include <stdio.h>
11069 #include <stdlib.h>
11071 #ifdef HAVE_FCNTL_H
11072 #include <fcntl.h>
11073 #endif
11075 #ifdef HAVE_SYS_FCNTL_H
11076 #include <sys/fcntl.h>
11077 #endif
11078 main() { struct flock64 fl64;
11079 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
11080 exit(0);
11081 #else
11082 exit(1);
11083 #endif
11086 if { (eval echo configure:11087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11087 then
11088 samba_cv_HAVE_STRUCT_FLOCK64=yes
11089 else
11090 echo "configure: failed program was:" >&5
11091 cat conftest.$ac_ext >&5
11092 rm -fr conftest*
11093 samba_cv_HAVE_STRUCT_FLOCK64=no
11095 rm -fr conftest*
11100 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
11102 if test x"$samba_cv_HAVE_STRUCT_FLOCK64" = x"yes"; then
11103 cat >> confdefs.h <<\EOF
11104 #define HAVE_STRUCT_FLOCK64 1
11110 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
11111 echo "configure:11112: checking for a crypt that needs truncated salt" >&5
11112 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
11113 echo $ac_n "(cached) $ac_c" 1>&6
11114 else
11116 if test "$cross_compiling" = yes; then
11117 samba_cv_HAVE_TRUNCATED_SALT=cross
11118 else
11119 cat > conftest.$ac_ext <<EOF
11120 #line 11121 "configure"
11121 #include "confdefs.h"
11122 #include "${srcdir-.}/tests/crypttest.c"
11124 if { (eval echo configure:11125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11125 then
11126 samba_cv_HAVE_TRUNCATED_SALT=no
11127 else
11128 echo "configure: failed program was:" >&5
11129 cat conftest.$ac_ext >&5
11130 rm -fr conftest*
11131 samba_cv_HAVE_TRUNCATED_SALT=yes
11133 rm -fr conftest*
11138 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
11139 if test x"$samba_cv_HAVE_TRUNCATED_SALT" = x"yes"; then
11140 cat >> confdefs.h <<\EOF
11141 #define HAVE_TRUNCATED_SALT 1
11146 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
11147 echo "configure:11148: checking for broken nisplus include files" >&5
11148 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
11149 echo $ac_n "(cached) $ac_c" 1>&6
11150 else
11152 cat > conftest.$ac_ext <<EOF
11153 #line 11154 "configure"
11154 #include "confdefs.h"
11155 #include <sys/acl.h>
11156 #if defined(HAVE_RPCSVC_NIS_H)
11157 #include <rpcsvc/nis.h>
11158 #endif
11159 int main() {
11160 return 0;
11161 ; return 0; }
11163 if { (eval echo configure:11164: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11164 rm -rf conftest*
11165 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=no
11166 else
11167 echo "configure: failed program was:" >&5
11168 cat conftest.$ac_ext >&5
11169 rm -rf conftest*
11170 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=yes
11172 rm -f conftest*
11175 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
11176 if test x"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x"yes"; then
11177 cat >> confdefs.h <<\EOF
11178 #define BROKEN_NISPLUS_INCLUDE_FILES 1
11184 #################################################
11185 # check for smbwrapper support
11186 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
11187 echo "configure:11188: checking whether to use smbwrapper" >&5
11188 # Check whether --with-smbwrapper or --without-smbwrapper was given.
11189 if test "${with_smbwrapper+set}" = set; then
11190 withval="$with_smbwrapper"
11191 case "$withval" in
11192 yes)
11193 echo "$ac_t""yes" 1>&6
11194 cat >> confdefs.h <<\EOF
11195 #define WITH_SMBWRAPPER 1
11198 WRAP="bin/smbsh bin/smbwrapper.$SHLIBEXT"
11200 if test x$ATTEMPT_WRAP32_BUILD = x; then
11201 WRAP32=""
11202 else
11203 WRAP32=bin/smbwrapper.32.$SHLIBEXT
11206 # Conditions under which smbwrapper should not be built.
11208 if test x$PICFLAG = x; then
11209 echo No support for PIC code - disabling smbwrapper and smbsh
11210 WRAP=""
11211 WRAP32=""
11212 elif test x$ac_cv_func_syscall = xno; then
11213 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
11214 WRAP=""
11215 WRAP32=""
11219 echo "$ac_t""no" 1>&6
11221 esac
11222 else
11223 echo "$ac_t""no" 1>&6
11228 #################################################
11229 # check for the AFS filesystem
11230 echo $ac_n "checking whether to use AFS""... $ac_c" 1>&6
11231 echo "configure:11232: checking whether to use AFS" >&5
11232 # Check whether --with-afs or --without-afs was given.
11233 if test "${with_afs+set}" = set; then
11234 withval="$with_afs"
11235 case "$withval" in
11236 yes)
11237 echo "$ac_t""yes" 1>&6
11238 cat >> confdefs.h <<\EOF
11239 #define WITH_AFS 1
11244 echo "$ac_t""no" 1>&6
11246 esac
11247 else
11248 echo "$ac_t""no" 1>&6
11254 #################################################
11255 # check for the DFS auth system
11256 echo $ac_n "checking whether to use DFS auth""... $ac_c" 1>&6
11257 echo "configure:11258: checking whether to use DFS auth" >&5
11258 # Check whether --with-dfs or --without-dfs was given.
11259 if test "${with_dfs+set}" = set; then
11260 withval="$with_dfs"
11261 case "$withval" in
11262 yes)
11263 echo "$ac_t""yes" 1>&6
11264 cat >> confdefs.h <<\EOF
11265 #define WITH_DFS 1
11270 echo "$ac_t""no" 1>&6
11272 esac
11273 else
11274 echo "$ac_t""no" 1>&6
11279 #################################################
11280 # check for Kerberos IV auth system
11281 echo $ac_n "checking whether to use Kerberos IV""... $ac_c" 1>&6
11282 echo "configure:11283: checking whether to use Kerberos IV" >&5
11283 # Check whether --with-krb4 or --without-krb4 was given.
11284 if test "${with_krb4+set}" = set; then
11285 withval="$with_krb4"
11286 echo "$ac_t""yes" 1>&6
11287 cat >> confdefs.h <<\EOF
11288 #define KRB4_AUTH 1
11291 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
11292 echo "configure:11293: checking for dn_expand in -lresolv" >&5
11293 ac_lib_var=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
11294 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11295 echo $ac_n "(cached) $ac_c" 1>&6
11296 else
11297 ac_save_LIBS="$LIBS"
11298 LIBS="-lresolv $LIBS"
11299 cat > conftest.$ac_ext <<EOF
11300 #line 11301 "configure"
11301 #include "confdefs.h"
11302 /* Override any gcc2 internal prototype to avoid an error. */
11303 /* We use char because int might match the return type of a gcc2
11304 builtin and then its argument prototype would still apply. */
11305 char dn_expand();
11307 int main() {
11308 dn_expand()
11309 ; return 0; }
11311 if { (eval echo configure:11312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11312 rm -rf conftest*
11313 eval "ac_cv_lib_$ac_lib_var=yes"
11314 else
11315 echo "configure: failed program was:" >&5
11316 cat conftest.$ac_ext >&5
11317 rm -rf conftest*
11318 eval "ac_cv_lib_$ac_lib_var=no"
11320 rm -f conftest*
11321 LIBS="$ac_save_LIBS"
11324 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11325 echo "$ac_t""yes" 1>&6
11326 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11327 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11328 cat >> confdefs.h <<EOF
11329 #define $ac_tr_lib 1
11332 LIBS="-lresolv $LIBS"
11334 else
11335 echo "$ac_t""no" 1>&6
11338 LIBS="$LIBS -lkrb -ldes"
11339 CFLAGS="$CFLAGS -I$withval/include"
11340 LDFLAGS="$LDFLAGS -L$withval/lib"
11341 else
11342 echo "$ac_t""no" 1>&6
11347 #################################################
11348 # check for Kerberos 5 auth system
11349 echo $ac_n "checking whether to use Kerberos 5""... $ac_c" 1>&6
11350 echo "configure:11351: checking whether to use Kerberos 5" >&5
11351 # Check whether --with-krb5 or --without-krb5 was given.
11352 if test "${with_krb5+set}" = set; then
11353 withval="$with_krb5"
11354 echo "$ac_t""yes" 1>&6
11355 cat >> confdefs.h <<\EOF
11356 #define KRB5_AUTH 1
11359 LIBS="$LIBS -ldes425 -lkrb5 -lcrypto -lcom_err"
11360 CFLAGS="$CFLAGS -I$withval/include"
11361 LDFLAGS="$LDFLAGS -L$withval/lib"
11362 else
11363 echo "$ac_t""no" 1>&6
11368 #################################################
11369 # check for automount support
11370 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
11371 echo "configure:11372: checking whether to use AUTOMOUNT" >&5
11372 # Check whether --with-automount or --without-automount was given.
11373 if test "${with_automount+set}" = set; then
11374 withval="$with_automount"
11375 case "$withval" in
11376 yes)
11377 echo "$ac_t""yes" 1>&6
11378 cat >> confdefs.h <<\EOF
11379 #define WITH_AUTOMOUNT 1
11384 echo "$ac_t""no" 1>&6
11386 esac
11387 else
11388 echo "$ac_t""no" 1>&6
11393 #################################################
11394 # check for smbmount support
11395 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
11396 echo "configure:11397: checking whether to use SMBMOUNT" >&5
11397 # Check whether --with-smbmount or --without-smbmount was given.
11398 if test "${with_smbmount+set}" = set; then
11399 withval="$with_smbmount"
11400 case "$withval" in
11401 yes)
11402 echo "$ac_t""yes" 1>&6
11403 cat >> confdefs.h <<\EOF
11404 #define WITH_SMBMOUNT 1
11407 MPROGS="bin/smbmount bin/smbmnt bin/smbumount"
11410 echo "$ac_t""no" 1>&6
11411 MPROGS=
11413 esac
11414 else
11415 echo "$ac_t""no" 1>&6
11416 MPROGS=
11422 #################################################
11423 # check for a PAM password database
11424 with_pam_for_crypt=no
11425 echo $ac_n "checking whether to use PAM password database""... $ac_c" 1>&6
11426 echo "configure:11427: checking whether to use PAM password database" >&5
11427 # Check whether --with-pam or --without-pam was given.
11428 if test "${with_pam+set}" = set; then
11429 withval="$with_pam"
11430 case "$withval" in
11431 yes)
11432 echo "$ac_t""yes" 1>&6
11433 cat >> confdefs.h <<\EOF
11434 #define WITH_PAM 1
11437 LIBS="$LIBS -lpam"
11438 with_pam_for_crypt=yes
11441 echo "$ac_t""no" 1>&6
11443 esac
11444 else
11445 echo "$ac_t""no" 1>&6
11450 # we can't build a pam module if we don't have pam.
11451 echo $ac_n "checking for pam_get_data in -lpam""... $ac_c" 1>&6
11452 echo "configure:11453: checking for pam_get_data in -lpam" >&5
11453 ac_lib_var=`echo pam'_'pam_get_data | sed 'y%./+-%__p_%'`
11454 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11455 echo $ac_n "(cached) $ac_c" 1>&6
11456 else
11457 ac_save_LIBS="$LIBS"
11458 LIBS="-lpam $LIBS"
11459 cat > conftest.$ac_ext <<EOF
11460 #line 11461 "configure"
11461 #include "confdefs.h"
11462 /* Override any gcc2 internal prototype to avoid an error. */
11463 /* We use char because int might match the return type of a gcc2
11464 builtin and then its argument prototype would still apply. */
11465 char pam_get_data();
11467 int main() {
11468 pam_get_data()
11469 ; return 0; }
11471 if { (eval echo configure:11472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11472 rm -rf conftest*
11473 eval "ac_cv_lib_$ac_lib_var=yes"
11474 else
11475 echo "configure: failed program was:" >&5
11476 cat conftest.$ac_ext >&5
11477 rm -rf conftest*
11478 eval "ac_cv_lib_$ac_lib_var=no"
11480 rm -f conftest*
11481 LIBS="$ac_save_LIBS"
11484 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11485 echo "$ac_t""yes" 1>&6
11486 cat >> confdefs.h <<\EOF
11487 #define HAVE_LIBPAM 1
11490 else
11491 echo "$ac_t""no" 1>&6
11495 #################################################
11496 # check for pam_smbpass support
11497 echo $ac_n "checking whether to use pam_smbpass""... $ac_c" 1>&6
11498 echo "configure:11499: checking whether to use pam_smbpass" >&5
11499 # Check whether --with-pam_smbpass or --without-pam_smbpass was given.
11500 if test "${with_pam_smbpass+set}" = set; then
11501 withval="$with_pam_smbpass"
11502 case "$withval" in
11503 yes)
11504 echo "$ac_t""yes" 1>&6
11506 # Conditions under which pam_smbpass should not be built.
11508 if test x$PICFLAG = x; then
11509 echo "$ac_t""No support for PIC code - disabling pam_smbpass" 1>&6
11510 PAM_MOD=""
11511 elif test x$ac_cv_lib_pam_pam_get_data = xno; then
11512 echo "$ac_t""No libpam found -- disabling pam_smbpass" 1>&6
11513 PAM_MOD=""
11514 else
11515 cat >> confdefs.h <<\EOF
11516 #define WITH_PAM_SMBPASS 1
11519 PAM_MOD="bin/pam_smbpass.so"
11523 echo "$ac_t""no" 1>&6
11525 esac
11526 else
11527 echo "$ac_t""no" 1>&6
11533 ###############################################
11534 # test for where we get crypt() from, but only
11535 # if not using PAM
11536 if test $with_pam_for_crypt = no; then
11537 for ac_func in crypt
11539 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11540 echo "configure:11541: checking for $ac_func" >&5
11541 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11542 echo $ac_n "(cached) $ac_c" 1>&6
11543 else
11544 cat > conftest.$ac_ext <<EOF
11545 #line 11546 "configure"
11546 #include "confdefs.h"
11547 /* System header to define __stub macros and hopefully few prototypes,
11548 which can conflict with char $ac_func(); below. */
11549 #include <assert.h>
11550 /* Override any gcc2 internal prototype to avoid an error. */
11551 /* We use char because int might match the return type of a gcc2
11552 builtin and then its argument prototype would still apply. */
11553 char $ac_func();
11555 int main() {
11557 /* The GNU C library defines this for functions which it implements
11558 to always fail with ENOSYS. Some functions are actually named
11559 something starting with __ and the normal name is an alias. */
11560 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11561 choke me
11562 #else
11563 $ac_func();
11564 #endif
11566 ; return 0; }
11568 if { (eval echo configure:11569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11569 rm -rf conftest*
11570 eval "ac_cv_func_$ac_func=yes"
11571 else
11572 echo "configure: failed program was:" >&5
11573 cat conftest.$ac_ext >&5
11574 rm -rf conftest*
11575 eval "ac_cv_func_$ac_func=no"
11577 rm -f conftest*
11580 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11581 echo "$ac_t""yes" 1>&6
11582 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11583 cat >> confdefs.h <<EOF
11584 #define $ac_tr_func 1
11587 else
11588 echo "$ac_t""no" 1>&6
11590 done
11592 if test x"$ac_cv_func_crypt" = x"no"; then
11593 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
11594 echo "configure:11595: checking for crypt in -lcrypt" >&5
11595 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
11596 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11597 echo $ac_n "(cached) $ac_c" 1>&6
11598 else
11599 ac_save_LIBS="$LIBS"
11600 LIBS="-lcrypt $LIBS"
11601 cat > conftest.$ac_ext <<EOF
11602 #line 11603 "configure"
11603 #include "confdefs.h"
11604 /* Override any gcc2 internal prototype to avoid an error. */
11605 /* We use char because int might match the return type of a gcc2
11606 builtin and then its argument prototype would still apply. */
11607 char crypt();
11609 int main() {
11610 crypt()
11611 ; return 0; }
11613 if { (eval echo configure:11614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11614 rm -rf conftest*
11615 eval "ac_cv_lib_$ac_lib_var=yes"
11616 else
11617 echo "configure: failed program was:" >&5
11618 cat conftest.$ac_ext >&5
11619 rm -rf conftest*
11620 eval "ac_cv_lib_$ac_lib_var=no"
11622 rm -f conftest*
11623 LIBS="$ac_save_LIBS"
11626 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11627 echo "$ac_t""yes" 1>&6
11628 LIBS="$LIBS -lcrypt";
11629 cat >> confdefs.h <<\EOF
11630 #define HAVE_CRYPT 1
11633 else
11634 echo "$ac_t""no" 1>&6
11641 #################################################
11642 # check for a TDB password database
11643 echo $ac_n "checking whether to use TDB password database""... $ac_c" 1>&6
11644 echo "configure:11645: checking whether to use TDB password database" >&5
11645 # Check whether --with-tdbsam or --without-tdbsam was given.
11646 if test "${with_tdbsam+set}" = set; then
11647 withval="$with_tdbsam"
11648 case "$withval" in
11649 yes)
11650 echo "$ac_t""yes" 1>&6
11651 cat >> confdefs.h <<\EOF
11652 #define WITH_TDBPWD 1
11655 # AC_MSG_ERROR([TDB password database not supported in this version.])
11658 echo "$ac_t""no" 1>&6
11660 esac
11661 else
11662 echo "$ac_t""no" 1>&6
11667 #################################################
11668 # check for a LDAP password database
11669 echo $ac_n "checking whether to use LDAP password database""... $ac_c" 1>&6
11670 echo "configure:11671: checking whether to use LDAP password database" >&5
11671 # Check whether --with-ldap or --without-ldap was given.
11672 if test "${with_ldap+set}" = set; then
11673 withval="$with_ldap"
11674 case "$withval" in
11675 yes)
11676 echo "$ac_t""yes" 1>&6
11677 cat >> confdefs.h <<\EOF
11678 #define WITH_LDAP 1
11681 { echo "configure: error: LDAP password database not supported in this version." 1>&2; exit 1; }
11684 echo "$ac_t""no" 1>&6
11686 esac
11687 else
11688 echo "$ac_t""no" 1>&6
11693 #################################################
11694 # check for a NISPLUS password database
11695 echo $ac_n "checking whether to use NISPLUS password database""... $ac_c" 1>&6
11696 echo "configure:11697: checking whether to use NISPLUS password database" >&5
11697 # Check whether --with-nisplus or --without-nisplus was given.
11698 if test "${with_nisplus+set}" = set; then
11699 withval="$with_nisplus"
11700 case "$withval" in
11701 yes)
11702 echo "$ac_t""yes" 1>&6
11703 cat >> confdefs.h <<\EOF
11704 #define WITH_NISPLUS 1
11709 echo "$ac_t""no" 1>&6
11711 esac
11712 else
11713 echo "$ac_t""no" 1>&6
11718 #################################################
11719 # check for a NISPLUS_HOME support
11720 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
11721 echo "configure:11722: checking whether to use NISPLUS_HOME" >&5
11722 # Check whether --with-nisplus-home or --without-nisplus-home was given.
11723 if test "${with_nisplus_home+set}" = set; then
11724 withval="$with_nisplus_home"
11725 case "$withval" in
11726 yes)
11727 echo "$ac_t""yes" 1>&6
11728 cat >> confdefs.h <<\EOF
11729 #define WITH_NISPLUS_HOME 1
11734 echo "$ac_t""no" 1>&6
11736 esac
11737 else
11738 echo "$ac_t""no" 1>&6
11743 #################################################
11744 # check for the secure socket layer
11745 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
11746 echo "configure:11747: checking whether to use SSL" >&5
11747 # Check whether --with-ssl or --without-ssl was given.
11748 if test "${with_ssl+set}" = set; then
11749 withval="$with_ssl"
11750 case "$withval" in
11751 yes)
11752 echo "$ac_t""yes" 1>&6
11753 cat >> confdefs.h <<\EOF
11754 #define WITH_SSL 1
11757 withval="/usr/local/ssl" # default
11759 if test "${with_sslinc+set}" = set; then
11761 withval="$with_sslinc"
11762 case "$withval" in
11763 yes|no)
11764 echo "configure: warning: --with-sslinc called without argument - will use default" 1>&w
11765 CFLAGS="-I/usr/local/ssl/include $CFLAGS"
11766 LIBS="-lssl -lcrypto $LIBS"
11767 LDFLAGS="=L/usr/local/ssl/lib $LDFLAGS"
11770 CFLAGS="-I${withval}/include $CFLAGS"
11771 LIBS="-lssl -lcrypto $LIBS"
11772 LDFLAGS="-L${withval}/lib $LDFLAGS"
11774 esac
11776 else
11778 CFLAGS="-I/usr/local/ssl/include $CFLAGS"
11779 LIBS="-lssl -lcrypto $LIBS"
11780 LDFLAGS="-L/usr/local/ssl/lib $LDFLAGS"
11784 if test ! -d ${withval}; then
11785 echo "configure: error: called with --with-ssl, but ssl base directory ${withval} does not exist or is not a directory. Aborting config" 1>&2
11786 exit 1
11789 CFLAGS="-DHAVE_CRYPT_DECL $CFLAGS" # Damn, SSLeay defines its own
11793 echo "$ac_t""no" 1>&6
11795 esac
11796 else
11797 echo "$ac_t""no" 1>&6
11802 #################################################
11803 # check for syslog logging
11804 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
11805 echo "configure:11806: checking whether to use syslog logging" >&5
11806 # Check whether --with-syslog or --without-syslog was given.
11807 if test "${with_syslog+set}" = set; then
11808 withval="$with_syslog"
11809 case "$withval" in
11810 yes)
11811 echo "$ac_t""yes" 1>&6
11812 cat >> confdefs.h <<\EOF
11813 #define WITH_SYSLOG 1
11818 echo "$ac_t""no" 1>&6
11820 esac
11821 else
11822 echo "$ac_t""no" 1>&6
11827 #################################################
11828 # check for a shared memory profiling support
11829 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
11830 echo "configure:11831: checking whether to use profiling" >&5
11831 # Check whether --with-profile or --without-profile was given.
11832 if test "${with_profile+set}" = set; then
11833 withval="$with_profile"
11834 case "$withval" in
11835 yes)
11836 echo "$ac_t""yes" 1>&6
11837 cat >> confdefs.h <<\EOF
11838 #define WITH_PROFILE 1
11843 echo "$ac_t""no" 1>&6
11845 esac
11846 else
11847 echo "$ac_t""no" 1>&6
11853 #################################################
11854 # check for experimental netatalk resource fork support
11855 echo $ac_n "checking whether to support netatalk""... $ac_c" 1>&6
11856 echo "configure:11857: checking whether to support netatalk" >&5
11857 # Check whether --with-netatalk or --without-netatalk was given.
11858 if test "${with_netatalk+set}" = set; then
11859 withval="$with_netatalk"
11860 case "$withval" in
11861 yes)
11862 echo "$ac_t""yes" 1>&6
11863 cat >> confdefs.h <<\EOF
11864 #define WITH_NETATALK 1
11869 echo "$ac_t""no" 1>&6
11871 esac
11872 else
11873 echo "$ac_t""no" 1>&6
11878 #################################################
11879 # check for experimental disk-quotas support
11880 QUOTAOBJS=smbd/noquotas.o
11882 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
11883 echo "configure:11884: checking whether to support disk-quotas" >&5
11884 # Check whether --with-quotas or --without-quotas was given.
11885 if test "${with_quotas+set}" = set; then
11886 withval="$with_quotas"
11887 case "$withval" in
11888 yes)
11889 echo "$ac_t""yes" 1>&6
11890 QUOTAOBJS=smbd/quotas.o
11893 echo "$ac_t""no" 1>&6
11895 esac
11896 else
11897 echo "$ac_t""no" 1>&6
11903 #################################################
11904 # check for experimental utmp accounting
11906 echo $ac_n "checking whether to support utmp accounting""... $ac_c" 1>&6
11907 echo "configure:11908: checking whether to support utmp accounting" >&5
11908 # Check whether --with-utmp or --without-utmp was given.
11909 if test "${with_utmp+set}" = set; then
11910 withval="$with_utmp"
11911 case "$withval" in
11912 yes)
11913 echo "$ac_t""yes" 1>&6
11914 cat >> confdefs.h <<\EOF
11915 #define WITH_UTMP 1
11920 echo "$ac_t""no" 1>&6
11922 esac
11923 else
11924 echo "$ac_t""no" 1>&6
11929 #################################################
11930 # check for MS Dfs support
11932 echo $ac_n "checking whether to support Microsoft Dfs""... $ac_c" 1>&6
11933 echo "configure:11934: checking whether to support Microsoft Dfs" >&5
11934 # Check whether --with-msdfs or --without-msdfs was given.
11935 if test "${with_msdfs+set}" = set; then
11936 withval="$with_msdfs"
11937 case "$withval" in
11938 yes)
11939 echo "$ac_t""yes" 1>&6
11940 cat >> confdefs.h <<\EOF
11941 #define WITH_MSDFS 1
11946 echo "$ac_t""no" 1>&6
11948 esac
11949 else
11950 echo "$ac_t""no" 1>&6
11955 #################################################
11956 # set private directory location
11957 # Check whether --with-privatedir or --without-privatedir was given.
11958 if test "${with_privatedir+set}" = set; then
11959 withval="$with_privatedir"
11960 case "$withval" in
11961 yes|no)
11963 # Just in case anybody calls it without argument
11965 echo "configure: warning: --with-privatedir called without argument - will use default" 1>&2
11966 privatedir='${prefix}/private'
11969 privatedir="$withval"
11971 esac
11973 else
11974 privatedir='${prefix}/private'
11980 #################################################
11981 # set lock directory location
11982 # Check whether --with-lockdir or --without-lockdir was given.
11983 if test "${with_lockdir+set}" = set; then
11984 withval="$with_lockdir"
11985 case "$withval" in
11986 yes|no)
11988 # Just in case anybody calls it without argument
11990 echo "configure: warning: --with-lockdir called without argument - will use default" 1>&2
11991 lockdir='$(VARDIR)/locks'
11994 lockdir="$withval"
11996 esac
11998 else
11999 lockdir='$(VARDIR)/locks'
12005 #################################################
12006 # set SWAT directory location
12007 # Check whether --with-swatdir or --without-swatdir was given.
12008 if test "${with_swatdir+set}" = set; then
12009 withval="$with_swatdir"
12010 case "$withval" in
12011 yes|no)
12013 # Just in case anybody does it
12015 echo "configure: warning: --with-swatdir called without argument - will use default" 1>&2
12016 swatdir='${prefix}/swat'
12019 swatdir="$withval"
12021 esac
12023 else
12024 swatdir='${prefix}/swat'
12030 #################################################
12031 # these tests are taken from the GNU fileutils package
12032 echo "checking how to get filesystem space usage" 1>&6
12033 echo "configure:12034: checking how to get filesystem space usage" >&5
12034 space=no
12036 # Test for statvfs64.
12037 if test $space = no; then
12038 # SVR4
12039 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
12040 echo "configure:12041: checking statvfs64 function (SVR4)" >&5
12041 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
12042 echo $ac_n "(cached) $ac_c" 1>&6
12043 else
12044 if test "$cross_compiling" = yes; then
12045 fu_cv_sys_stat_statvfs64=cross
12046 else
12047 cat > conftest.$ac_ext <<EOF
12048 #line 12049 "configure"
12049 #include "confdefs.h"
12051 #if defined(HAVE_UNISTD_H)
12052 #include <unistd.h>
12053 #endif
12054 #include <sys/types.h>
12055 #include <sys/statvfs.h>
12056 main ()
12058 struct statvfs64 fsd;
12059 exit (statvfs64 (".", &fsd));
12062 if { (eval echo configure:12063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12063 then
12064 fu_cv_sys_stat_statvfs64=yes
12065 else
12066 echo "configure: failed program was:" >&5
12067 cat conftest.$ac_ext >&5
12068 rm -fr conftest*
12069 fu_cv_sys_stat_statvfs64=no
12071 rm -fr conftest*
12076 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
12077 if test $fu_cv_sys_stat_statvfs64 = yes; then
12078 space=yes
12079 cat >> confdefs.h <<\EOF
12080 #define STAT_STATVFS64 1
12086 # Perform only the link test since it seems there are no variants of the
12087 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
12088 # because that got a false positive on SCO OSR5. Adding the declaration
12089 # of a `struct statvfs' causes this test to fail (as it should) on such
12090 # systems. That system is reported to work fine with STAT_STATFS4 which
12091 # is what it gets when this test fails.
12092 if test $space = no; then
12093 # SVR4
12094 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
12095 echo "configure:12096: checking statvfs function (SVR4)" >&5
12096 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
12097 echo $ac_n "(cached) $ac_c" 1>&6
12098 else
12099 cat > conftest.$ac_ext <<EOF
12100 #line 12101 "configure"
12101 #include "confdefs.h"
12102 #include <sys/types.h>
12103 #include <sys/statvfs.h>
12104 int main() {
12105 struct statvfs fsd; statvfs (0, &fsd);
12106 ; return 0; }
12108 if { (eval echo configure:12109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12109 rm -rf conftest*
12110 fu_cv_sys_stat_statvfs=yes
12111 else
12112 echo "configure: failed program was:" >&5
12113 cat conftest.$ac_ext >&5
12114 rm -rf conftest*
12115 fu_cv_sys_stat_statvfs=no
12117 rm -f conftest*
12120 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
12121 if test $fu_cv_sys_stat_statvfs = yes; then
12122 space=yes
12123 cat >> confdefs.h <<\EOF
12124 #define STAT_STATVFS 1
12130 if test $space = no; then
12131 # DEC Alpha running OSF/1
12132 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
12133 echo "configure:12134: checking for 3-argument statfs function (DEC OSF/1)" >&5
12134 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
12135 echo $ac_n "(cached) $ac_c" 1>&6
12136 else
12137 if test "$cross_compiling" = yes; then
12138 fu_cv_sys_stat_statfs3_osf1=no
12139 else
12140 cat > conftest.$ac_ext <<EOF
12141 #line 12142 "configure"
12142 #include "confdefs.h"
12144 #include <sys/param.h>
12145 #include <sys/types.h>
12146 #include <sys/mount.h>
12147 main ()
12149 struct statfs fsd;
12150 fsd.f_fsize = 0;
12151 exit (statfs (".", &fsd, sizeof (struct statfs)));
12154 if { (eval echo configure:12155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12155 then
12156 fu_cv_sys_stat_statfs3_osf1=yes
12157 else
12158 echo "configure: failed program was:" >&5
12159 cat conftest.$ac_ext >&5
12160 rm -fr conftest*
12161 fu_cv_sys_stat_statfs3_osf1=no
12163 rm -fr conftest*
12168 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
12169 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
12170 space=yes
12171 cat >> confdefs.h <<\EOF
12172 #define STAT_STATFS3_OSF1 1
12178 if test $space = no; then
12179 # AIX
12180 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
12181 echo "configure:12182: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
12182 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
12183 echo $ac_n "(cached) $ac_c" 1>&6
12184 else
12185 if test "$cross_compiling" = yes; then
12186 fu_cv_sys_stat_statfs2_bsize=no
12187 else
12188 cat > conftest.$ac_ext <<EOF
12189 #line 12190 "configure"
12190 #include "confdefs.h"
12192 #ifdef HAVE_SYS_PARAM_H
12193 #include <sys/param.h>
12194 #endif
12195 #ifdef HAVE_SYS_MOUNT_H
12196 #include <sys/mount.h>
12197 #endif
12198 #ifdef HAVE_SYS_VFS_H
12199 #include <sys/vfs.h>
12200 #endif
12201 main ()
12203 struct statfs fsd;
12204 fsd.f_bsize = 0;
12205 exit (statfs (".", &fsd));
12208 if { (eval echo configure:12209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12209 then
12210 fu_cv_sys_stat_statfs2_bsize=yes
12211 else
12212 echo "configure: failed program was:" >&5
12213 cat conftest.$ac_ext >&5
12214 rm -fr conftest*
12215 fu_cv_sys_stat_statfs2_bsize=no
12217 rm -fr conftest*
12222 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
12223 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
12224 space=yes
12225 cat >> confdefs.h <<\EOF
12226 #define STAT_STATFS2_BSIZE 1
12232 if test $space = no; then
12233 # SVR3
12234 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
12235 echo "configure:12236: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
12236 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
12237 echo $ac_n "(cached) $ac_c" 1>&6
12238 else
12239 if test "$cross_compiling" = yes; then
12240 fu_cv_sys_stat_statfs4=no
12241 else
12242 cat > conftest.$ac_ext <<EOF
12243 #line 12244 "configure"
12244 #include "confdefs.h"
12245 #include <sys/types.h>
12246 #include <sys/statfs.h>
12247 main ()
12249 struct statfs fsd;
12250 exit (statfs (".", &fsd, sizeof fsd, 0));
12253 if { (eval echo configure:12254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12254 then
12255 fu_cv_sys_stat_statfs4=yes
12256 else
12257 echo "configure: failed program was:" >&5
12258 cat conftest.$ac_ext >&5
12259 rm -fr conftest*
12260 fu_cv_sys_stat_statfs4=no
12262 rm -fr conftest*
12267 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
12268 if test $fu_cv_sys_stat_statfs4 = yes; then
12269 space=yes
12270 cat >> confdefs.h <<\EOF
12271 #define STAT_STATFS4 1
12277 if test $space = no; then
12278 # 4.4BSD and NetBSD
12279 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
12280 echo "configure:12281: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
12281 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
12282 echo $ac_n "(cached) $ac_c" 1>&6
12283 else
12284 if test "$cross_compiling" = yes; then
12285 fu_cv_sys_stat_statfs2_fsize=no
12286 else
12287 cat > conftest.$ac_ext <<EOF
12288 #line 12289 "configure"
12289 #include "confdefs.h"
12290 #include <sys/types.h>
12291 #ifdef HAVE_SYS_PARAM_H
12292 #include <sys/param.h>
12293 #endif
12294 #ifdef HAVE_SYS_MOUNT_H
12295 #include <sys/mount.h>
12296 #endif
12297 main ()
12299 struct statfs fsd;
12300 fsd.f_fsize = 0;
12301 exit (statfs (".", &fsd));
12304 if { (eval echo configure:12305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12305 then
12306 fu_cv_sys_stat_statfs2_fsize=yes
12307 else
12308 echo "configure: failed program was:" >&5
12309 cat conftest.$ac_ext >&5
12310 rm -fr conftest*
12311 fu_cv_sys_stat_statfs2_fsize=no
12313 rm -fr conftest*
12318 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
12319 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
12320 space=yes
12321 cat >> confdefs.h <<\EOF
12322 #define STAT_STATFS2_FSIZE 1
12328 if test $space = no; then
12329 # Ultrix
12330 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
12331 echo "configure:12332: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
12332 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
12333 echo $ac_n "(cached) $ac_c" 1>&6
12334 else
12335 if test "$cross_compiling" = yes; then
12336 fu_cv_sys_stat_fs_data=no
12337 else
12338 cat > conftest.$ac_ext <<EOF
12339 #line 12340 "configure"
12340 #include "confdefs.h"
12341 #include <sys/types.h>
12342 #ifdef HAVE_SYS_PARAM_H
12343 #include <sys/param.h>
12344 #endif
12345 #ifdef HAVE_SYS_MOUNT_H
12346 #include <sys/mount.h>
12347 #endif
12348 #ifdef HAVE_SYS_FS_TYPES_H
12349 #include <sys/fs_types.h>
12350 #endif
12351 main ()
12353 struct fs_data fsd;
12354 /* Ultrix's statfs returns 1 for success,
12355 0 for not mounted, -1 for failure. */
12356 exit (statfs (".", &fsd) != 1);
12359 if { (eval echo configure:12360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12360 then
12361 fu_cv_sys_stat_fs_data=yes
12362 else
12363 echo "configure: failed program was:" >&5
12364 cat conftest.$ac_ext >&5
12365 rm -fr conftest*
12366 fu_cv_sys_stat_fs_data=no
12368 rm -fr conftest*
12373 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
12374 if test $fu_cv_sys_stat_fs_data = yes; then
12375 space=yes
12376 cat >> confdefs.h <<\EOF
12377 #define STAT_STATFS2_FS_DATA 1
12384 # As a gating factor for large file support, in order to
12385 # use <4GB files we must have the following minimal support
12386 # available.
12387 # long long, and a 64 bit off_t or off64_t.
12388 # If we don't have all of these then disable large
12389 # file support.
12391 echo $ac_n "checking if large file support can be enabled""... $ac_c" 1>&6
12392 echo "configure:12393: checking if large file support can be enabled" >&5
12393 cat > conftest.$ac_ext <<EOF
12394 #line 12395 "configure"
12395 #include "confdefs.h"
12397 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
12398 #include <sys/types.h>
12399 #else
12400 __COMPILE_ERROR_
12401 #endif
12403 int main() {
12404 int i
12405 ; return 0; }
12407 if { (eval echo configure:12408: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12408 rm -rf conftest*
12409 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=yes
12410 else
12411 echo "configure: failed program was:" >&5
12412 cat conftest.$ac_ext >&5
12413 rm -rf conftest*
12414 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=no
12416 rm -f conftest*
12417 if test x"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x"yes"; then
12418 cat >> confdefs.h <<\EOF
12419 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
12423 echo "$ac_t""$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" 1>&6
12425 # Check whether --with-spinlocks or --without-spinlocks was given.
12426 if test "${with_spinlocks+set}" = set; then
12427 withval="$with_spinlocks"
12431 if test "x$with_spinlocks" = "xyes"; then
12432 cat >> confdefs.h <<\EOF
12433 #define USE_SPINLOCKS 1
12437 case "$host_cpu" in
12438 sparc)
12439 cat >> confdefs.h <<\EOF
12440 #define SPARC_SPINLOCKS 1
12445 i386|i486|i586|i686)
12446 cat >> confdefs.h <<\EOF
12447 #define INTEL_SPINLOCKS 1
12452 mips)
12453 cat >> confdefs.h <<\EOF
12454 #define MIPS_SPINLOCKS 1
12459 powerpc)
12460 cat >> confdefs.h <<\EOF
12461 #define POWERPC_SPINLOCKS 1
12465 esac
12468 #################################################
12469 # check for ACL support
12471 echo $ac_n "checking whether to support ACLs""... $ac_c" 1>&6
12472 echo "configure:12473: checking whether to support ACLs" >&5
12473 # Check whether --with-acl-support or --without-acl-support was given.
12474 if test "${with_acl_support+set}" = set; then
12475 withval="$with_acl_support"
12476 case "$withval" in
12477 yes)
12479 case "$host_os" in
12480 *sysv5*)
12481 echo "$ac_t""Using UnixWare ACLs" 1>&6
12482 cat >> confdefs.h <<\EOF
12483 #define HAVE_UNIXWARE_ACLS 1
12487 *solaris*)
12488 echo "$ac_t""Using solaris ACLs" 1>&6
12489 cat >> confdefs.h <<\EOF
12490 #define HAVE_SOLARIS_ACLS 1
12494 *irix*)
12495 echo "$ac_t""Using IRIX ACLs" 1>&6
12496 cat >> confdefs.h <<\EOF
12497 #define HAVE_IRIX_ACLS 1
12501 *aix*)
12502 echo "$ac_t""Using AIX ACLs" 1>&6
12503 cat >> confdefs.h <<\EOF
12504 #define HAVE_AIX_ACLS 1
12509 echo $ac_n "checking for acl_get_file in -lacl""... $ac_c" 1>&6
12510 echo "configure:12511: checking for acl_get_file in -lacl" >&5
12511 ac_lib_var=`echo acl'_'acl_get_file | sed 'y%./+-%__p_%'`
12512 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12513 echo $ac_n "(cached) $ac_c" 1>&6
12514 else
12515 ac_save_LIBS="$LIBS"
12516 LIBS="-lacl $LIBS"
12517 cat > conftest.$ac_ext <<EOF
12518 #line 12519 "configure"
12519 #include "confdefs.h"
12520 /* Override any gcc2 internal prototype to avoid an error. */
12521 /* We use char because int might match the return type of a gcc2
12522 builtin and then its argument prototype would still apply. */
12523 char acl_get_file();
12525 int main() {
12526 acl_get_file()
12527 ; return 0; }
12529 if { (eval echo configure:12530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12530 rm -rf conftest*
12531 eval "ac_cv_lib_$ac_lib_var=yes"
12532 else
12533 echo "configure: failed program was:" >&5
12534 cat conftest.$ac_ext >&5
12535 rm -rf conftest*
12536 eval "ac_cv_lib_$ac_lib_var=no"
12538 rm -f conftest*
12539 LIBS="$ac_save_LIBS"
12542 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12543 echo "$ac_t""yes" 1>&6
12544 ac_tr_lib=HAVE_LIB`echo acl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
12545 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
12546 cat >> confdefs.h <<EOF
12547 #define $ac_tr_lib 1
12550 LIBS="-lacl $LIBS"
12552 else
12553 echo "$ac_t""no" 1>&6
12556 echo $ac_n "checking for ACL support""... $ac_c" 1>&6
12557 echo "configure:12558: checking for ACL support" >&5
12558 if eval "test \"`echo '$''{'samba_cv_HAVE_POSIX_ACLS'+set}'`\" = set"; then
12559 echo $ac_n "(cached) $ac_c" 1>&6
12560 else
12562 cat > conftest.$ac_ext <<EOF
12563 #line 12564 "configure"
12564 #include "confdefs.h"
12565 #include <sys/types.h>
12566 #include <sys/acl.h>
12567 int main() {
12568 acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
12569 ; return 0; }
12571 if { (eval echo configure:12572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12572 rm -rf conftest*
12573 samba_cv_HAVE_POSIX_ACLS=yes
12574 else
12575 echo "configure: failed program was:" >&5
12576 cat conftest.$ac_ext >&5
12577 rm -rf conftest*
12578 samba_cv_HAVE_POSIX_ACLS=no
12580 rm -f conftest*
12583 echo "$ac_t""$samba_cv_HAVE_POSIX_ACLS" 1>&6
12584 if test x"$samba_cv_HAVE_POSIX_ACLS" = x"yes"; then
12585 echo "$ac_t""Using posix ACLs" 1>&6
12586 cat >> confdefs.h <<\EOF
12587 #define HAVE_POSIX_ACLS 1
12590 echo $ac_n "checking for acl_get_perm_np""... $ac_c" 1>&6
12591 echo "configure:12592: checking for acl_get_perm_np" >&5
12592 if eval "test \"`echo '$''{'samba_cv_HAVE_ACL_GET_PERM_NP'+set}'`\" = set"; then
12593 echo $ac_n "(cached) $ac_c" 1>&6
12594 else
12596 cat > conftest.$ac_ext <<EOF
12597 #line 12598 "configure"
12598 #include "confdefs.h"
12599 #include <sys/types.h>
12600 #include <sys/acl.h>
12601 int main() {
12602 acl_permset_t permset_d; acl_perm_t perm; return acl_get_perm_np( permset_d, perm);
12603 ; return 0; }
12605 if { (eval echo configure:12606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12606 rm -rf conftest*
12607 samba_cv_HAVE_ACL_GET_PERM_NP=yes
12608 else
12609 echo "configure: failed program was:" >&5
12610 cat conftest.$ac_ext >&5
12611 rm -rf conftest*
12612 samba_cv_HAVE_ACL_GET_PERM_NP=no
12614 rm -f conftest*
12617 echo "$ac_t""$samba_cv_HAVE_ACL_GET_PERM_NP" 1>&6
12618 if test x"$samba_cv_HAVE_ACL_GET_PERM_NP" = x"yes"; then
12619 cat >> confdefs.h <<\EOF
12620 #define HAVE_ACL_GET_PERM_NP 1
12625 echo $ac_n "checking for XFS ACL support""... $ac_c" 1>&6
12626 echo "configure:12627: checking for XFS ACL support" >&5
12627 if eval "test \"`echo '$''{'samba_cv_HAVE_XFS_ACLS'+set}'`\" = set"; then
12628 echo $ac_n "(cached) $ac_c" 1>&6
12629 else
12631 cat > conftest.$ac_ext <<EOF
12632 #line 12633 "configure"
12633 #include "confdefs.h"
12634 #include <sys/types.h>
12635 #include <acl/acl.h>
12636 int main() {
12637 char test_str[13] = SGI_ACL_FILE;
12638 ; return 0; }
12640 if { (eval echo configure:12641: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12641 rm -rf conftest*
12642 samba_cv_HAVE_XFS_ACLS=yes
12643 else
12644 echo "configure: failed program was:" >&5
12645 cat conftest.$ac_ext >&5
12646 rm -rf conftest*
12647 samba_cv_XFS_POSIX_ACLS=no
12649 rm -f conftest*
12652 echo "$ac_t""$samba_cv_HAVE_XFS_ACLS" 1>&6
12653 if test x"$samba_cv_HAVE_XFS_ACLS" = x"yes"; then
12654 echo "$ac_t""Using XFS ACLs" 1>&6
12655 cat >> confdefs.h <<\EOF
12656 #define HAVE_XFS_ACLS 1
12661 esac
12664 echo "$ac_t""no" 1>&6
12665 cat >> confdefs.h <<\EOF
12666 #define HAVE_NO_ACLS 1
12670 esac
12671 else
12672 cat >> confdefs.h <<\EOF
12673 #define HAVE_NO_ACLS 1
12676 echo "$ac_t""no" 1>&6
12681 #################################################
12682 # check whether winbind is supported on this platform
12684 echo $ac_n "checking whether to compile winbind""... $ac_c" 1>&6
12685 echo "configure:12686: checking whether to compile winbind" >&5
12687 case "$host_os" in
12688 *linux*|*solaris*)
12689 WINBIND_TARGETS="$WINBIND_TARGETS \$(WINBIND_PROGS)"
12692 winbind_no_reason=", unsupported on $host_os"
12694 esac
12696 # Check whether --with-winbind or --without-winbind was given.
12697 if test "${with_winbind+set}" = set; then
12698 withval="$with_winbind"
12700 case "$withval" in
12702 WINBIND_TARGETS=""
12703 winbind_reason=""
12705 esac
12709 if test x"$WINBIND_TARGETS" = x; then
12710 echo "$ac_t""no$winbind_no_reason" 1>&6
12711 else
12712 echo "$ac_t""yes" 1>&6
12717 #################################################
12718 # final configure stuff
12720 echo "checking configure summary"
12721 if test "$cross_compiling" = yes; then
12723 else
12724 cat > conftest.$ac_ext <<EOF
12725 #line 12726 "configure"
12726 #include "confdefs.h"
12727 #include "${srcdir-.}/tests/summary.c"
12729 if { (eval echo configure:12730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12730 then
12731 echo "configure OK";
12732 else
12733 echo "configure: failed program was:" >&5
12734 cat conftest.$ac_ext >&5
12735 rm -fr conftest*
12736 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }
12738 rm -fr conftest*
12742 builddir=`pwd`
12745 trap '' 1 2 15
12746 cat > confcache <<\EOF
12747 # This file is a shell script that caches the results of configure
12748 # tests run on this system so they can be shared between configure
12749 # scripts and configure runs. It is not useful on other systems.
12750 # If it contains results you don't want to keep, you may remove or edit it.
12752 # By default, configure uses ./config.cache as the cache file,
12753 # creating it if it does not exist already. You can give configure
12754 # the --cache-file=FILE option to use a different cache file; that is
12755 # what configure does when it calls configure scripts in
12756 # subdirectories, so they share the cache.
12757 # Giving --cache-file=/dev/null disables caching, for debugging configure.
12758 # config.status only pays attention to the cache file if you give it the
12759 # --recheck option to rerun configure.
12762 # The following way of writing the cache mishandles newlines in values,
12763 # but we know of no workaround that is simple, portable, and efficient.
12764 # So, don't put newlines in cache variables' values.
12765 # Ultrix sh set writes to stderr and can't be redirected directly,
12766 # and sets the high bit in the cache file unless we assign to the vars.
12767 (set) 2>&1 |
12768 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12769 *ac_space=\ *)
12770 # `set' does not quote correctly, so add quotes (double-quote substitution
12771 # turns \\\\ into \\, and sed turns \\ into \).
12772 sed -n \
12773 -e "s/'/'\\\\''/g" \
12774 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
12777 # `set' quotes correctly as required by POSIX, so do not add quotes.
12778 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
12780 esac >> confcache
12781 if cmp -s $cache_file confcache; then
12783 else
12784 if test -w $cache_file; then
12785 echo "updating cache $cache_file"
12786 cat confcache > $cache_file
12787 else
12788 echo "not updating unwritable cache $cache_file"
12791 rm -f confcache
12793 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
12795 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12796 # Let make expand exec_prefix.
12797 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12799 # Any assignment to VPATH causes Sun make to only execute
12800 # the first set of double-colon rules, so remove it if not needed.
12801 # If there is a colon in the path, we need to keep it.
12802 if test "x$srcdir" = x.; then
12803 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
12806 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
12808 DEFS=-DHAVE_CONFIG_H
12810 # Without the "./", some shells look in PATH for config.status.
12811 : ${CONFIG_STATUS=./config.status}
12813 echo creating $CONFIG_STATUS
12814 rm -f $CONFIG_STATUS
12815 cat > $CONFIG_STATUS <<EOF
12816 #! /bin/sh
12817 # Generated automatically by configure.
12818 # Run this file to recreate the current configuration.
12819 # This directory was configured as follows,
12820 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12822 # $0 $ac_configure_args
12824 # Compiler output produced by configure, useful for debugging
12825 # configure, is in ./config.log if it exists.
12827 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
12828 for ac_option
12830 case "\$ac_option" in
12831 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12832 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
12833 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
12834 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
12835 echo "$CONFIG_STATUS generated by autoconf version 2.13"
12836 exit 0 ;;
12837 -help | --help | --hel | --he | --h)
12838 echo "\$ac_cs_usage"; exit 0 ;;
12839 *) echo "\$ac_cs_usage"; exit 1 ;;
12840 esac
12841 done
12843 ac_given_srcdir=$srcdir
12844 ac_given_INSTALL="$INSTALL"
12846 trap 'rm -fr `echo "include/stamp-h Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
12848 cat >> $CONFIG_STATUS <<EOF
12850 # Protect against being on the right side of a sed subst in config.status.
12851 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
12852 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
12853 $ac_vpsub
12854 $extrasub
12855 s%@SHELL@%$SHELL%g
12856 s%@CFLAGS@%$CFLAGS%g
12857 s%@CPPFLAGS@%$CPPFLAGS%g
12858 s%@CXXFLAGS@%$CXXFLAGS%g
12859 s%@FFLAGS@%$FFLAGS%g
12860 s%@DEFS@%$DEFS%g
12861 s%@LDFLAGS@%$LDFLAGS%g
12862 s%@LIBS@%$LIBS%g
12863 s%@exec_prefix@%$exec_prefix%g
12864 s%@prefix@%$prefix%g
12865 s%@program_transform_name@%$program_transform_name%g
12866 s%@bindir@%$bindir%g
12867 s%@sbindir@%$sbindir%g
12868 s%@libexecdir@%$libexecdir%g
12869 s%@datadir@%$datadir%g
12870 s%@sysconfdir@%$sysconfdir%g
12871 s%@sharedstatedir@%$sharedstatedir%g
12872 s%@localstatedir@%$localstatedir%g
12873 s%@libdir@%$libdir%g
12874 s%@includedir@%$includedir%g
12875 s%@oldincludedir@%$oldincludedir%g
12876 s%@infodir@%$infodir%g
12877 s%@mandir@%$mandir%g
12878 s%@RUNPROG@%$RUNPROG%g
12879 s%@MPROGS@%$MPROGS%g
12880 s%@LDSHFLAGS@%$LDSHFLAGS%g
12881 s%@HOST_OS@%$HOST_OS%g
12882 s%@PAM_MOD@%$PAM_MOD%g
12883 s%@WRAP@%$WRAP%g
12884 s%@WRAP32@%$WRAP32%g
12885 s%@PICFLAG@%$PICFLAG%g
12886 s%@SHLIBEXT@%$SHLIBEXT%g
12887 s%@CC@%$CC%g
12888 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
12889 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
12890 s%@INSTALL_DATA@%$INSTALL_DATA%g
12891 s%@AWK@%$AWK%g
12892 s%@host@%$host%g
12893 s%@host_alias@%$host_alias%g
12894 s%@host_cpu@%$host_cpu%g
12895 s%@host_vendor@%$host_vendor%g
12896 s%@host_os@%$host_os%g
12897 s%@build@%$build%g
12898 s%@build_alias@%$build_alias%g
12899 s%@build_cpu@%$build_cpu%g
12900 s%@build_vendor@%$build_vendor%g
12901 s%@build_os@%$build_os%g
12902 s%@RANLIB@%$RANLIB%g
12903 s%@LN_S@%$LN_S%g
12904 s%@LIBTOOL@%$LIBTOOL%g
12905 s%@LIBTOOL_DEPS@%$LIBTOOL_DEPS%g
12906 s%@BROKEN_CC@%$BROKEN_CC%g
12907 s%@target@%$target%g
12908 s%@target_alias@%$target_alias%g
12909 s%@target_cpu@%$target_cpu%g
12910 s%@target_vendor@%$target_vendor%g
12911 s%@target_os@%$target_os%g
12912 s%@CPP@%$CPP%g
12913 s%@LIBOBJS@%$LIBOBJS%g
12914 s%@TERMLIBS@%$TERMLIBS%g
12915 s%@TERMLDFLAGS@%$TERMLDFLAGS%g
12916 s%@ROFF@%$ROFF%g
12917 s%@QUOTAOBJS@%$QUOTAOBJS%g
12918 s%@privatedir@%$privatedir%g
12919 s%@lockdir@%$lockdir%g
12920 s%@swatdir@%$swatdir%g
12921 s%@WINBIND_TARGETS@%$WINBIND_TARGETS%g
12922 s%@builddir@%$builddir%g
12924 CEOF
12927 cat >> $CONFIG_STATUS <<\EOF
12929 # Split the substitutions into bite-sized pieces for seds with
12930 # small command number limits, like on Digital OSF/1 and HP-UX.
12931 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
12932 ac_file=1 # Number of current file.
12933 ac_beg=1 # First line for current file.
12934 ac_end=$ac_max_sed_cmds # Line after last line for current file.
12935 ac_more_lines=:
12936 ac_sed_cmds=""
12937 while $ac_more_lines; do
12938 if test $ac_beg -gt 1; then
12939 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
12940 else
12941 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
12943 if test ! -s conftest.s$ac_file; then
12944 ac_more_lines=false
12945 rm -f conftest.s$ac_file
12946 else
12947 if test -z "$ac_sed_cmds"; then
12948 ac_sed_cmds="sed -f conftest.s$ac_file"
12949 else
12950 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
12952 ac_file=`expr $ac_file + 1`
12953 ac_beg=$ac_end
12954 ac_end=`expr $ac_end + $ac_max_sed_cmds`
12956 done
12957 if test -z "$ac_sed_cmds"; then
12958 ac_sed_cmds=cat
12962 cat >> $CONFIG_STATUS <<EOF
12964 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile"}
12966 cat >> $CONFIG_STATUS <<\EOF
12967 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
12968 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12969 case "$ac_file" in
12970 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
12971 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12972 *) ac_file_in="${ac_file}.in" ;;
12973 esac
12975 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
12977 # Remove last slash and all that follows it. Not all systems have dirname.
12978 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
12979 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
12980 # The file is in a subdirectory.
12981 test ! -d "$ac_dir" && mkdir "$ac_dir"
12982 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
12983 # A "../" for each directory in $ac_dir_suffix.
12984 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
12985 else
12986 ac_dir_suffix= ac_dots=
12989 case "$ac_given_srcdir" in
12990 .) srcdir=.
12991 if test -z "$ac_dots"; then top_srcdir=.
12992 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
12993 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
12994 *) # Relative path.
12995 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
12996 top_srcdir="$ac_dots$ac_given_srcdir" ;;
12997 esac
12999 case "$ac_given_INSTALL" in
13000 [/$]*) INSTALL="$ac_given_INSTALL" ;;
13001 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
13002 esac
13004 echo creating "$ac_file"
13005 rm -f "$ac_file"
13006 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
13007 case "$ac_file" in
13008 *Makefile*) ac_comsub="1i\\
13009 # $configure_input" ;;
13010 *) ac_comsub= ;;
13011 esac
13013 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13014 sed -e "$ac_comsub
13015 s%@configure_input@%$configure_input%g
13016 s%@srcdir@%$srcdir%g
13017 s%@top_srcdir@%$top_srcdir%g
13018 s%@INSTALL@%$INSTALL%g
13019 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
13020 fi; done
13021 rm -f conftest.s*
13023 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13024 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13026 # ac_d sets the value in "#define NAME VALUE" lines.
13027 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13028 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
13029 ac_dC='\3'
13030 ac_dD='%g'
13031 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
13032 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13033 ac_uB='\([ ]\)%\1#\2define\3'
13034 ac_uC=' '
13035 ac_uD='\4%g'
13036 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13037 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13038 ac_eB='$%\1#\2define\3'
13039 ac_eC=' '
13040 ac_eD='%g'
13042 if test "${CONFIG_HEADERS+set}" != set; then
13044 cat >> $CONFIG_STATUS <<EOF
13045 CONFIG_HEADERS="include/config.h"
13047 cat >> $CONFIG_STATUS <<\EOF
13049 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
13050 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13051 case "$ac_file" in
13052 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13053 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13054 *) ac_file_in="${ac_file}.in" ;;
13055 esac
13057 echo creating $ac_file
13059 rm -f conftest.frag conftest.in conftest.out
13060 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13061 cat $ac_file_inputs > conftest.in
13065 # Transform confdefs.h into a sed script conftest.vals that substitutes
13066 # the proper values into config.h.in to produce config.h. And first:
13067 # Protect against being on the right side of a sed subst in config.status.
13068 # Protect against being in an unquoted here document in config.status.
13069 rm -f conftest.vals
13070 cat > conftest.hdr <<\EOF
13071 s/[\\&%]/\\&/g
13072 s%[\\$`]%\\&%g
13073 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
13074 s%ac_d%ac_u%gp
13075 s%ac_u%ac_e%gp
13077 sed -n -f conftest.hdr confdefs.h > conftest.vals
13078 rm -f conftest.hdr
13080 # This sed command replaces #undef with comments. This is necessary, for
13081 # example, in the case of _POSIX_SOURCE, which is predefined and required
13082 # on some systems where configure will not decide to define it.
13083 cat >> conftest.vals <<\EOF
13084 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
13087 # Break up conftest.vals because some shells have a limit on
13088 # the size of here documents, and old seds have small limits too.
13090 rm -f conftest.tail
13091 while :
13093 ac_lines=`grep -c . conftest.vals`
13094 # grep -c gives empty output for an empty file on some AIX systems.
13095 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
13096 # Write a limited-size here document to conftest.frag.
13097 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
13098 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
13099 echo 'CEOF
13100 sed -f conftest.frag conftest.in > conftest.out
13101 rm -f conftest.in
13102 mv conftest.out conftest.in
13103 ' >> $CONFIG_STATUS
13104 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
13105 rm -f conftest.vals
13106 mv conftest.tail conftest.vals
13107 done
13108 rm -f conftest.vals
13110 cat >> $CONFIG_STATUS <<\EOF
13111 rm -f conftest.frag conftest.h
13112 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
13113 cat conftest.in >> conftest.h
13114 rm -f conftest.in
13115 if cmp -s $ac_file conftest.h 2>/dev/null; then
13116 echo "$ac_file is unchanged"
13117 rm -f conftest.h
13118 else
13119 # Remove last slash and all that follows it. Not all systems have dirname.
13120 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13121 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13122 # The file is in a subdirectory.
13123 test ! -d "$ac_dir" && mkdir "$ac_dir"
13125 rm -f $ac_file
13126 mv conftest.h $ac_file
13128 fi; done
13131 cat >> $CONFIG_STATUS <<EOF
13134 cat >> $CONFIG_STATUS <<\EOF
13136 exit 0
13138 chmod +x $CONFIG_STATUS
13139 rm -fr confdefs* $ac_clean_files
13140 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1