3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.14.1
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.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
14 ac_default_prefix
=/usr
/local
/samba
16 --enable-shared[=PKGS] build shared libraries [default=yes]"
18 --enable-static[=PKGS] build static libraries [default=yes]"
20 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
22 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
24 --disable-libtool-lock avoid locking (might break parallel builds)"
26 --enable-maintainer-mode enable some make rules for maintainers"
28 --with-smbwrapper Include SMB wrapper support
29 --without-smbwrapper Don't include SMB wrapper support (default)"
31 --with-afs Include AFS support
32 --without-afs Don't include AFS support (default)"
34 --with-srvtab[=instance] Include renewable AFS tickets
35 --without-srvtab Don't renewable AFS tickets (default)"
37 --with-dfs Include DFS support
38 --without-dfs Don't include DFS support (default)"
40 --with-krb4=base-dir Include Kerberos IV support
41 --without-krb4 Don't include Kerberos IV support (default)"
43 --with-krb5=base-dir Include Kerberos 5 support
44 --without-krb5 Don't include Kerberos 5 support (default)"
46 --with-automount Include AUTOMOUNT support
47 --without-automount Don't include AUTOMOUNT support (default)"
49 --with-smbmount Include SMBMOUNT (Linux only) support
50 --without-smbmount Don't include SMBMOUNT support (default)"
52 --with-pam Include PAM password database support
53 --without-pam Don't include PAM password database support (default)"
55 --with-ldap Include LDAP support
56 --without-ldap Don't include LDAP support (default)"
58 --with-nt5ldap Include NT5 LDAP support
59 --without-nt5ldap Don't include NT5 LDAP support (default)"
61 --with-nt5ldap Include NT5 LDAP support
62 --without-nt5ldap Don't include NT5 LDAP support (default)"
64 --with-nisplus Include NISPLUS password database support
65 --without-nisplus Don't include NISPLUS password database support (default)"
67 --with-sam-pwdb={passdb,tdb,nt5ldap}
68 which password-database to use (passdb)"
70 --with-surstdb Use SURS tdb database
71 --without-surstdb Don't use SURS tdb database (default)"
73 --with-nisplus-home Include NISPLUS_HOME support
74 --without-nisplus-home Don't include NISPLUS_HOME support (default)"
76 --with-ssl Include SSL support
77 --without-ssl Don't include SSL support (default)
78 --with-sslinc=DIR Where the SSL includes are (defaults to /usr/local/ssl)"
80 --with-syslog Include experimental SYSLOG support
81 --without-syslog Don't include SYSLOG support (default)"
83 --with-profile Include profile support
84 --without-profile Don't include profile support (default)"
86 --with-netatalk Include experimental Netatalk support
87 --without-netatalk Don't include experimental Netatalk support (default)"
89 --with-quotas Include experimental disk-quota support
90 --without-quotas Don't include experimental disk-quota support (default)"
92 --with-utmp Include experimental utmp accounting
93 --without-utmp Don't include experimental utmp accounting (default)"
95 --with-msdfs Include MS Dfs support
96 --without-msdfs Don't include MS Dfs support (default)"
98 --with-privatedir=DIR Where to put smbpasswd ($ac_default_prefix/private)"
100 --with-lockdir=DIR Where to put lock files ($ac_default_prefix/var/locks)"
102 --with-swatdir=DIR Where to put SWAT files ($ac_default_prefix/swat)"
104 # Initialize some variables set by options.
105 # The variables have the same names as the options, with
106 # dashes changed to underlines.
108 cache_file
=.
/config.cache
117 program_transform_name
=s
,x
,x
,
125 bindir
='${exec_prefix}/bin'
126 sbindir
='${exec_prefix}/sbin'
127 libexecdir
='${exec_prefix}/libexec'
128 datadir
='${prefix}/share'
129 sysconfdir
='${prefix}/etc'
130 sharedstatedir
='${prefix}/com'
131 localstatedir
='${prefix}/var'
132 libdir
='${exec_prefix}/lib'
133 includedir
='${prefix}/include'
134 oldincludedir
='/usr/include'
135 infodir
='${prefix}/info'
136 mandir
='${prefix}/man'
138 # Initialize some other variables.
141 SHELL
=${CONFIG_SHELL-/bin/sh}
142 # Maximum number of lines to put in a shell here document.
149 # If the previous option needs an argument, assign it.
150 if test -n "$ac_prev"; then
151 eval "$ac_prev=\$ac_option"
157 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
161 # Accept the important Cygnus configure options, so we can diagnose typos.
165 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
167 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
168 bindir
="$ac_optarg" ;;
170 -build |
--build |
--buil |
--bui |
--bu)
172 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
173 build
="$ac_optarg" ;;
175 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
176 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
177 ac_prev
=cache_file
;;
178 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
179 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
180 cache_file
="$ac_optarg" ;;
182 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
184 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
186 datadir
="$ac_optarg" ;;
188 -disable-* |
--disable-*)
189 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
190 # Reject names that are not valid shell variable names.
191 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
192 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
194 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
195 eval "enable_${ac_feature}=no" ;;
197 -enable-* |
--enable-*)
198 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
199 # Reject names that are not valid shell variable names.
200 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
201 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
203 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
208 eval "enable_${ac_feature}='$ac_optarg'" ;;
210 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
211 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
212 |
--exec |
--exe |
--ex)
213 ac_prev
=exec_prefix
;;
214 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
215 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
216 |
--exec=* |
--exe=* |
--ex=*)
217 exec_prefix
="$ac_optarg" ;;
219 -gas |
--gas |
--ga |
--g)
220 # Obsolete; use --with-gas.
223 -help |
--help |
--hel |
--he)
224 # Omit some internal or obsolete options to make the list less imposing.
225 # This message is too long to be a string in the A/UX 3.1 sh.
227 Usage: configure [options] [host]
228 Options: [defaults in brackets after descriptions]
230 --cache-file=FILE cache test results in FILE
231 --help print this message
232 --no-create do not create output files
233 --quiet, --silent do not print \`checking...' messages
234 --version print the version of autoconf that created configure
235 Directory and file names:
236 --prefix=PREFIX install architecture-independent files in PREFIX
238 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
240 --bindir=DIR user executables in DIR [EPREFIX/bin]
241 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
242 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
243 --datadir=DIR read-only architecture-independent data in DIR
245 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
246 --sharedstatedir=DIR modifiable architecture-independent data in DIR
248 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
249 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
250 --includedir=DIR C header files in DIR [PREFIX/include]
251 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
252 --infodir=DIR info documentation in DIR [PREFIX/info]
253 --mandir=DIR man documentation in DIR [PREFIX/man]
254 --srcdir=DIR find the sources in DIR [configure dir or ..]
255 --program-prefix=PREFIX prepend PREFIX to installed program names
256 --program-suffix=SUFFIX append SUFFIX to installed program names
257 --program-transform-name=PROGRAM
258 run sed PROGRAM on installed program names
262 --build=BUILD configure for building on BUILD [BUILD=HOST]
263 --host=HOST configure for HOST [guessed]
264 --target=TARGET configure for TARGET [TARGET=HOST]
265 Features and packages:
266 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
267 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
268 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
269 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
270 --x-includes=DIR X include files are in DIR
271 --x-libraries=DIR X library files are in DIR
273 if test -n "$ac_help"; then
274 echo "--enable and --with options recognized:$ac_help"
278 -host |
--host |
--hos |
--ho)
280 -host=* |
--host=* |
--hos=* |
--ho=*)
283 -includedir |
--includedir |
--includedi |
--included |
--include \
284 |
--includ |
--inclu |
--incl |
--inc)
285 ac_prev
=includedir
;;
286 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
287 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
288 includedir
="$ac_optarg" ;;
290 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
292 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
293 infodir
="$ac_optarg" ;;
295 -libdir |
--libdir |
--libdi |
--libd)
297 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
298 libdir
="$ac_optarg" ;;
300 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
301 |
--libexe |
--libex |
--libe)
302 ac_prev
=libexecdir
;;
303 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
304 |
--libexe=* |
--libex=* |
--libe=*)
305 libexecdir
="$ac_optarg" ;;
307 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
308 |
--localstate |
--localstat |
--localsta |
--localst \
309 |
--locals |
--local |
--loca |
--loc |
--lo)
310 ac_prev
=localstatedir
;;
311 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
312 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
313 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
314 localstatedir
="$ac_optarg" ;;
316 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
318 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
319 mandir
="$ac_optarg" ;;
322 # Obsolete; use --without-fp.
325 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
329 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
330 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
333 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
334 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
335 |
--oldin |
--oldi |
--old |
--ol |
--o)
336 ac_prev
=oldincludedir
;;
337 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
338 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
339 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
340 oldincludedir
="$ac_optarg" ;;
342 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
344 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
345 prefix
="$ac_optarg" ;;
347 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
348 |
--program-pre |
--program-pr |
--program-p)
349 ac_prev
=program_prefix
;;
350 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
351 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
352 program_prefix
="$ac_optarg" ;;
354 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
355 |
--program-suf |
--program-su |
--program-s)
356 ac_prev
=program_suffix
;;
357 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
358 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
359 program_suffix
="$ac_optarg" ;;
361 -program-transform-name |
--program-transform-name \
362 |
--program-transform-nam |
--program-transform-na \
363 |
--program-transform-n |
--program-transform- \
364 |
--program-transform |
--program-transfor \
365 |
--program-transfo |
--program-transf \
366 |
--program-trans |
--program-tran \
367 |
--progr-tra |
--program-tr |
--program-t)
368 ac_prev
=program_transform_name
;;
369 -program-transform-name=* |
--program-transform-name=* \
370 |
--program-transform-nam=* |
--program-transform-na=* \
371 |
--program-transform-n=* |
--program-transform-=* \
372 |
--program-transform=* |
--program-transfor=* \
373 |
--program-transfo=* |
--program-transf=* \
374 |
--program-trans=* |
--program-tran=* \
375 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
376 program_transform_name
="$ac_optarg" ;;
378 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
379 |
-silent |
--silent |
--silen |
--sile |
--sil)
382 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
384 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
386 sbindir
="$ac_optarg" ;;
388 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
389 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
390 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
392 ac_prev
=sharedstatedir
;;
393 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
394 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
395 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
397 sharedstatedir
="$ac_optarg" ;;
399 -site |
--site |
--sit)
401 -site=* |
--site=* |
--sit=*)
404 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
406 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
407 srcdir
="$ac_optarg" ;;
409 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
410 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
411 ac_prev
=sysconfdir
;;
412 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
413 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
414 sysconfdir
="$ac_optarg" ;;
416 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
418 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
419 target
="$ac_optarg" ;;
421 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
424 -version |
--version |
--versio |
--versi |
--vers)
425 echo "configure generated by autoconf version 2.14.1"
429 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
430 # Reject names that are not valid shell variable names.
431 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
432 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
434 ac_package
=`echo $ac_package| sed 's/-/_/g'`
439 eval "with_${ac_package}='$ac_optarg'" ;;
441 -without-* |
--without-*)
442 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
443 # Reject names that are not valid shell variable names.
444 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
445 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
447 ac_package
=`echo $ac_package| sed 's/-/_/g'`
448 eval "with_${ac_package}=no" ;;
451 # Obsolete; use --with-x.
454 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
455 |
--x-incl |
--x-inc |
--x-in |
--x-i)
456 ac_prev
=x_includes
;;
457 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
458 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
459 x_includes
="$ac_optarg" ;;
461 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
462 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
463 ac_prev
=x_libraries
;;
464 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
465 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
466 x_libraries
="$ac_optarg" ;;
468 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
472 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
473 echo "configure: warning: $ac_option: invalid host type" 1>&2
475 if test "x$nonopt" != xNONE
; then
476 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
484 if test -n "$ac_prev"; then
485 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
488 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
490 # File descriptor usage:
493 # 2 errors and warnings
494 # 3 some systems may open it to /dev/tty
495 # 4 used on the Kubota Titan
496 # 6 checking for... messages and results
497 # 5 compiler messages saved in config.log
498 if test "$silent" = yes; then
506 This file contains any messages produced by compilers while
507 running configure, to aid debugging if configure makes a mistake.
510 # Strip out --no-create and --no-recursion so they do not pile up.
511 # Also quote any args containing shell metacharacters.
516 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
517 |
--no-cr |
--no-c) ;;
518 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
519 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
520 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
521 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
522 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
527 # Only set these to C if already set. These must not be set unconditionally
528 # because not all systems understand e.g. LANG=C (notably SCO).
529 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
530 # Non-C LC_CTYPE values break the ctype check.
531 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
532 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
533 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
534 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
536 # confdefs.h avoids OS command line length limits that DEFS can exceed.
537 rm -rf conftest
* confdefs.h
538 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
541 # A filename unique to this package, relative to the directory that
542 # configure is in, which we can look for to find out if srcdir is correct.
543 ac_unique_file
=include
/includes.h
545 # Find the source files, if location was not specified.
546 if test -z "$srcdir"; then
547 ac_srcdir_defaulted
=yes
548 # Try the directory containing this script, then its parent.
550 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
551 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
553 if test ! -r $srcdir/$ac_unique_file; then
557 ac_srcdir_defaulted
=no
559 if test ! -r $srcdir/$ac_unique_file; then
560 if test "$ac_srcdir_defaulted" = yes; then
561 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
563 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
566 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
568 # Prefer explicitly selected file to automatically selected ones.
569 if test -z "$CONFIG_SITE"; then
570 if test "x$prefix" != xNONE
; then
571 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
573 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
576 for ac_site_file
in $CONFIG_SITE; do
577 if test -r "$ac_site_file"; then
578 echo "loading site script $ac_site_file"
583 if test -r "$cache_file"; then
584 echo "loading cache $cache_file"
585 test -f "$cache_file" && .
$cache_file
587 echo "creating cache $cache_file"
592 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
593 ac_cpp
='$CPP $CPPFLAGS'
594 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
595 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
596 cross_compiling
=$ac_cv_prog_cc_cross
600 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
601 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
602 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
609 ac_n
= ac_c
='\c' ac_t
=
614 # we want to be compatibe with older versions of Samba
627 # compile with optimisation and without debugging by default
628 CFLAGS
=${CFLAGS-"-O"}
630 # Extract the first word of "gcc", so it can be a program name with args.
631 set dummy gcc
; ac_word
=$2
632 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
633 echo "configure:634: checking for $ac_word" >&5
634 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
635 echo $ac_n "(cached) $ac_c" 1>&6
637 if test -n "$CC"; then
638 ac_cv_prog_CC
="$CC" # Let the user override the test.
640 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
642 for ac_dir
in $ac_dummy; do
643 test -z "$ac_dir" && ac_dir
=.
644 if test -f $ac_dir/$ac_word; then
653 if test -n "$CC"; then
654 echo "$ac_t""$CC" 1>&6
656 echo "$ac_t""no" 1>&6
659 if test -z "$CC"; then
660 # Extract the first word of "cc", so it can be a program name with args.
661 set dummy cc
; ac_word
=$2
662 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
663 echo "configure:664: checking for $ac_word" >&5
664 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
665 echo $ac_n "(cached) $ac_c" 1>&6
667 if test -n "$CC"; then
668 ac_cv_prog_CC
="$CC" # Let the user override the test.
670 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
673 for ac_dir
in $ac_dummy; do
674 test -z "$ac_dir" && ac_dir
=.
675 if test -f $ac_dir/$ac_word; then
676 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
685 if test $ac_prog_rejected = yes; then
686 # We found a bogon in the path, so make sure we never use it.
687 set dummy
$ac_cv_prog_CC
689 if test $# -gt 0; then
690 # We chose a different compiler from the bogus one.
691 # However, it has the same basename, so the bogon will be chosen
692 # first if we set CC to just the basename; use the full file name.
694 set dummy
"$ac_dir/$ac_word" "$@"
702 if test -n "$CC"; then
703 echo "$ac_t""$CC" 1>&6
705 echo "$ac_t""no" 1>&6
708 if test -z "$CC"; then
710 *win32
* |
*WIN32
* |
*CYGWIN
*)
711 # Extract the first word of "cl", so it can be a program name with args.
712 set dummy cl
; ac_word
=$2
713 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
714 echo "configure:715: checking for $ac_word" >&5
715 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
716 echo $ac_n "(cached) $ac_c" 1>&6
718 if test -n "$CC"; then
719 ac_cv_prog_CC
="$CC" # Let the user override the test.
721 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
723 for ac_dir
in $ac_dummy; do
724 test -z "$ac_dir" && ac_dir
=.
725 if test -f $ac_dir/$ac_word; then
734 if test -n "$CC"; then
735 echo "$ac_t""$CC" 1>&6
737 echo "$ac_t""no" 1>&6
742 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
745 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
746 echo "configure:747: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
749 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
750 ac_cpp
='$CPP $CPPFLAGS'
751 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
752 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
753 cross_compiling
=$ac_cv_prog_cc_cross
755 cat > conftest.
$ac_ext << EOF
757 #line 758 "configure"
758 #include "confdefs.h"
762 if { (eval echo configure
:763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
763 ac_cv_prog_cc_works
=yes
764 # If we can't run a trivial program, we are probably using a cross compiler.
765 if (.
/conftest
; exit) 2>/dev
/null
; then
766 ac_cv_prog_cc_cross
=no
768 ac_cv_prog_cc_cross
=yes
771 echo "configure: failed program was:" >&5
772 cat conftest.
$ac_ext >&5
773 ac_cv_prog_cc_works
=no
777 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
778 ac_cpp
='$CPP $CPPFLAGS'
779 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
780 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
781 cross_compiling
=$ac_cv_prog_cc_cross
783 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
784 if test $ac_cv_prog_cc_works = no
; then
785 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
787 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
788 echo "configure:789: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
789 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
790 cross_compiling
=$ac_cv_prog_cc_cross
792 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
793 echo "configure:794: checking whether we are using GNU C" >&5
794 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
795 echo $ac_n "(cached) $ac_c" 1>&6
797 cat > conftest.c
<<EOF
802 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:803: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
809 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
811 if test $ac_cv_prog_gcc = yes; then
817 ac_test_CFLAGS
="${CFLAGS+set}"
818 ac_save_CFLAGS
="$CFLAGS"
820 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
821 echo "configure:822: checking whether ${CC-cc} accepts -g" >&5
822 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
823 echo $ac_n "(cached) $ac_c" 1>&6
825 echo 'void f(){}' > conftest.c
826 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
835 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
836 if test "$ac_test_CFLAGS" = set; then
837 CFLAGS
="$ac_save_CFLAGS"
838 elif test $ac_cv_prog_cc_g = yes; then
839 if test "$GCC" = yes; then
845 if test "$GCC" = yes; then
853 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
854 if test -f $ac_dir/install-sh
; then
856 ac_install_sh
="$ac_aux_dir/install-sh -c"
858 elif test -f $ac_dir/install.sh
; then
860 ac_install_sh
="$ac_aux_dir/install.sh -c"
864 if test -z "$ac_aux_dir"; then
865 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
867 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
868 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
869 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
871 # Find a good install program. We prefer a C program (faster),
872 # so one script is as good as another. But avoid the broken or
873 # incompatible versions:
874 # SysV /etc/install, /usr/sbin/install
875 # SunOS /usr/etc/install
878 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
879 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
880 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
881 # ./install, which can be erroneously created by make from ./install.sh.
882 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
883 echo "configure:884: checking for a BSD compatible install" >&5
884 if test -z "$INSTALL"; then
885 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
886 echo $ac_n "(cached) $ac_c" 1>&6
888 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
889 for ac_dir
in $PATH; do
890 # Account for people who put trailing slashes in PATH elements.
892 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
894 # OSF1 and SCO ODT 3.0 have their own names for install.
895 # Don't use installbsd from OSF since it installs stuff as root
897 for ac_prog
in ginstall scoinst
install; do
898 if test -f $ac_dir/$ac_prog; then
899 if test $ac_prog = install &&
900 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
901 # AIX install. It has an incompatible calling convention.
903 elif test $ac_prog = install &&
904 grep pwplus
$ac_dir/$ac_prog >/dev
/null
2>&1; then
905 # program-specific install script used by HP pwplus--don't use.
908 ac_cv_path_install
="$ac_dir/$ac_prog -c"
919 if test "${ac_cv_path_install+set}" = set; then
920 INSTALL
="$ac_cv_path_install"
922 # As a last resort, use the slow shell script. We don't cache a
923 # path for INSTALL within a source directory, because that will
924 # break other packages using the cache if that directory is
925 # removed, or if the path is relative.
926 INSTALL
="$ac_install_sh"
929 echo "$ac_t""$INSTALL" 1>&6
931 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
932 # It thinks the first close brace ends the variable substitution.
933 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
935 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
937 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
939 for ac_prog
in gawk mawk nawk
awk
941 # Extract the first word of "$ac_prog", so it can be a program name with args.
942 set dummy
$ac_prog; ac_word
=$2
943 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
944 echo "configure:945: checking for $ac_word" >&5
945 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
946 echo $ac_n "(cached) $ac_c" 1>&6
948 if test -n "$AWK"; then
949 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
951 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
953 for ac_dir
in $ac_dummy; do
954 test -z "$ac_dir" && ac_dir
=.
955 if test -f $ac_dir/$ac_word; then
956 ac_cv_prog_AWK
="$ac_prog"
963 AWK
="$ac_cv_prog_AWK"
964 if test -n "$AWK"; then
965 echo "$ac_t""$AWK" 1>&6
967 echo "$ac_t""no" 1>&6
970 test -n "$AWK" && break
973 # Check whether --enable-shared or --disable-shared was given.
974 if test "${enable_shared+set}" = set; then
975 enableval
="$enable_shared"
978 yes) enable_shared
=yes ;;
979 no
) enable_shared
=no
;;
982 # Look at the argument we got. We use all the common list separators.
983 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
984 for pkg
in $enableval; do
985 if test "X$pkg" = "X$p"; then
996 # Check whether --enable-static or --disable-static was given.
997 if test "${enable_static+set}" = set; then
998 enableval
="$enable_static"
1000 case "$enableval" in
1001 yes) enable_static
=yes ;;
1002 no
) enable_static
=no
;;
1005 # Look at the argument we got. We use all the common list separators.
1006 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1007 for pkg
in $enableval; do
1008 if test "X$pkg" = "X$p"; then
1019 # Check whether --enable-fast-install or --disable-fast-install was given.
1020 if test "${enable_fast_install+set}" = set; then
1021 enableval
="$enable_fast_install"
1022 p
=${PACKAGE-default}
1023 case "$enableval" in
1024 yes) enable_fast_install
=yes ;;
1025 no
) enable_fast_install
=no
;;
1027 enable_fast_install
=no
1028 # Look at the argument we got. We use all the common list separators.
1029 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1030 for pkg
in $enableval; do
1031 if test "X$pkg" = "X$p"; then
1032 enable_fast_install
=yes
1039 enable_fast_install
=yes
1043 echo $ac_n "checking host system type""... $ac_c" 1>&6
1044 echo "configure:1045: checking host system type" >&5
1045 if test "x$ac_cv_host" = "x" ||
(test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
1047 # Make sure we can run config.sub.
1048 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
1049 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1052 ac_cv_host_alias
=$host
1053 case "$ac_cv_host_alias" in
1057 if ac_cv_host_alias
=`$ac_config_guess`; then :
1058 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1060 *) ac_cv_host_alias
=$nonopt ;;
1064 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias`
1065 ac_cv_host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1066 ac_cv_host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1067 ac_cv_host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1069 echo $ac_n "(cached) $ac_c" 1>&6
1072 echo "$ac_t""$ac_cv_host" 1>&6
1075 host_alias
=$ac_cv_host_alias
1076 host_cpu
=$ac_cv_host_cpu
1077 host_vendor
=$ac_cv_host_vendor
1078 host_os
=$ac_cv_host_os
1084 echo $ac_n "checking build system type""... $ac_c" 1>&6
1085 echo "configure:1086: checking build system type" >&5
1086 if test "x$ac_cv_build" = "x" ||
(test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
1088 # Make sure we can run config.sub.
1089 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
1090 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1093 ac_cv_build_alias
=$build
1094 case "$ac_cv_build_alias" in
1098 ac_cv_build_alias
=$host_alias ;;
1100 *) ac_cv_build_alias
=$nonopt ;;
1104 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias`
1105 ac_cv_build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1106 ac_cv_build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1107 ac_cv_build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1109 echo $ac_n "(cached) $ac_c" 1>&6
1112 echo "$ac_t""$ac_cv_build" 1>&6
1115 build_alias
=$ac_cv_build_alias
1116 build_cpu
=$ac_cv_build_cpu
1117 build_vendor
=$ac_cv_build_vendor
1118 build_os
=$ac_cv_build_os
1123 # Extract the first word of "ranlib", so it can be a program name with args.
1124 set dummy ranlib
; ac_word
=$2
1125 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1126 echo "configure:1127: checking for $ac_word" >&5
1127 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
1128 echo $ac_n "(cached) $ac_c" 1>&6
1130 if test -n "$RANLIB"; then
1131 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1133 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1135 for ac_dir
in $ac_dummy; do
1136 test -z "$ac_dir" && ac_dir
=.
1137 if test -f $ac_dir/$ac_word; then
1138 ac_cv_prog_RANLIB
="ranlib"
1143 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1146 RANLIB
="$ac_cv_prog_RANLIB"
1147 if test -n "$RANLIB"; then
1148 echo "$ac_t""$RANLIB" 1>&6
1150 echo "$ac_t""no" 1>&6
1153 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1154 if test "${with_gnu_ld+set}" = set; then
1155 withval
="$with_gnu_ld"
1156 test "$withval" = no || with_gnu_ld
=yes
1162 if test "$ac_cv_prog_gcc" = yes; then
1163 # Check if gcc -print-prog-name=ld gives a path.
1164 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1165 echo "configure:1166: checking for ld used by GCC" >&5
1166 ac_prog
=`($CC -print-prog-name=ld) 2>&5`
1168 # Accept absolute paths.
1169 [\\/]* |
[A-Za-z
]:[\\/]*)
1170 re_direlt
='/[^/][^/]*/\.\./'
1171 # Canonicalize the path of ld
1172 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
1173 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
1174 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
1176 test -z "$LD" && LD
="$ac_prog"
1179 # If it fails, then pretend we aren't using GCC.
1183 # If it is relative, then search for the first ld in PATH.
1187 elif test "$with_gnu_ld" = yes; then
1188 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1189 echo "configure:1190: checking for GNU ld" >&5
1191 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1192 echo "configure:1193: checking for non-GNU ld" >&5
1194 if eval "test \"\${ac_cv_path_LD+set}\" = set"; then
1195 echo $ac_n "(cached) $ac_c" 1>&6
1197 if test -z "$LD"; then
1198 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1199 for ac_dir
in $PATH; do
1200 test -z "$ac_dir" && ac_dir
=.
1201 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
1202 ac_cv_path_LD
="$ac_dir/$ac_prog"
1203 # Check to see if the program is GNU ld. I'd rather use --version,
1204 # but apparently some GNU ld's only accept -v.
1205 # Break only if it was the GNU/non-GNU ld that we prefer.
1206 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
1207 test "$with_gnu_ld" != no
&& break
1209 test "$with_gnu_ld" != yes && break
1215 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
1220 if test -n "$LD"; then
1221 echo "$ac_t""$LD" 1>&6
1223 echo "$ac_t""no" 1>&6
1225 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1226 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1227 echo "configure:1228: checking if the linker ($LD) is GNU ld" >&5
1228 if eval "test \"\${ac_cv_prog_gnu_ld+set}\" = set"; then
1229 echo $ac_n "(cached) $ac_c" 1>&6
1231 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1232 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1233 ac_cv_prog_gnu_ld
=yes
1235 ac_cv_prog_gnu_ld
=no
1239 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1242 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1243 echo "configure:1244: checking for BSD-compatible nm" >&5
1244 if eval "test \"\${ac_cv_path_NM+set}\" = set"; then
1245 echo $ac_n "(cached) $ac_c" 1>&6
1247 if test -n "$NM"; then
1248 # Let the user override the test.
1251 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1252 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
1253 test -z "$ac_dir" && ac_dir
=.
1254 if test -f $ac_dir/nm ||
test -f $ac_dir/nm
$ac_exeext ; then
1255 # Check to see if the nm accepts a BSD-compat flag.
1256 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1257 # nm: unknown option "B" ignored
1258 if ($ac_dir/nm
-B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1259 ac_cv_path_NM
="$ac_dir/nm -B"
1261 elif ($ac_dir/nm
-p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1262 ac_cv_path_NM
="$ac_dir/nm -p"
1265 ac_cv_path_NM
=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1266 continue # so that we can try to find one that supports BSD flags
1271 test -z "$ac_cv_path_NM" && ac_cv_path_NM
=nm
1276 echo "$ac_t""$NM" 1>&6
1278 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1279 echo "configure:1280: checking whether ln -s works" >&5
1280 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
1281 echo $ac_n "(cached) $ac_c" 1>&6
1284 if ln -s X conftestdata
2>/dev
/null
1287 ac_cv_prog_LN_S
="ln -s"
1292 LN_S
="$ac_cv_prog_LN_S"
1293 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1294 echo "$ac_t""yes" 1>&6
1296 echo "$ac_t""no" 1>&6
1301 NONE
) lt_target
="$host" ;;
1302 *) lt_target
="$target" ;;
1305 # Check for any special flags to pass to ltconfig.
1306 libtool_flags
="--cache-file=$cache_file"
1307 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
1308 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
1309 test "$enable_fast_install" = no
&& libtool_flags
="$libtool_flags --disable-fast-install"
1310 test "$ac_cv_prog_gcc" = yes && libtool_flags
="$libtool_flags --with-gcc"
1311 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
1314 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1315 if test "${enable_libtool_lock+set}" = set; then
1316 enableval
="$enable_libtool_lock"
1320 test "x$enable_libtool_lock" = xno
&& libtool_flags
="$libtool_flags --disable-lock"
1321 test x
"$silent" = xyes
&& libtool_flags
="$libtool_flags --silent"
1323 # Some flags need to be propagated to the compiler or linker for good
1325 case "$lt_target" in
1327 # Find out which ABI we are using.
1328 echo '#line 1329 "configure"' > conftest.
$ac_ext
1329 if { (eval echo configure
:1330: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1330 case "`/usr/bin/file conftest.o`" in
1346 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1347 SAVE_CFLAGS
="$CFLAGS"
1348 CFLAGS
="$CFLAGS -belf"
1349 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1350 echo "configure:1351: checking whether the C compiler needs -belf" >&5
1351 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
1352 echo $ac_n "(cached) $ac_c" 1>&6
1354 cat > conftest.
$ac_ext <<EOF
1355 #line 1356 "configure"
1356 #include "confdefs.h"
1362 if { (eval echo configure
:1363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1364 lt_cv_cc_needs_belf
=yes
1366 echo "configure: failed program was:" >&5
1367 cat conftest.
$ac_ext >&5
1369 lt_cv_cc_needs_belf
=no
1374 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1375 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
1376 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1377 CFLAGS
="$SAVE_CFLAGS"
1385 # Save cache, so that ltconfig can load it
1386 cat > confcache
<<\EOF
1387 # This file is a shell script that caches the results of configure
1388 # tests run on this system so they can be shared between configure
1389 # scripts and configure runs. It is not useful on other systems.
1390 # If it contains results you don't want to keep, you may remove or edit it.
1392 # By default, configure uses ./config.cache as the cache file,
1393 # creating it if it does not exist already. You can give configure
1394 # the --cache-file=FILE option to use a different cache file; that is
1395 # what configure does when it calls configure scripts in
1396 # subdirectories, so they share the cache.
1397 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1398 # config.status only pays attention to the cache file if you give it the
1399 # --recheck option to rerun configure.
1402 # The following way of writing the cache mishandles newlines in values,
1403 # but we know of no workaround that is simple, portable, and efficient.
1404 # So, don't put newlines in cache variables' values.
1405 # Ultrix sh set writes to stderr and can't be redirected directly,
1406 # and sets the high bit in the cache file unless we assign to the vars.
1408 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1410 # `set' does not quote correctly, so add quotes (double-quote substitution
1411 # turns \\\\ into \\, and sed turns \\ into \).
1413 -e "s/'/'\\\\''/g" \
1414 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1417 # `set' quotes correctly as required by POSIX, so do not add quotes.
1418 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1421 if cmp -s $cache_file confcache
; then
1424 if test -w $cache_file; then
1425 echo "updating cache $cache_file"
1426 cat confcache
> $cache_file
1428 echo "not updating unwritable cache $cache_file"
1434 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1435 CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
1436 LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
1437 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" \
1438 DLLTOOL
="$DLLTOOL" AS
="$AS" OBJDUMP
="$OBJDUMP" \
1439 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
1440 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh
$lt_target \
1441 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1443 # Reload cache, that may have been modified by ltconfig
1444 if test -r "$cache_file"; then
1445 echo "loading cache $cache_file"
1446 test -f "$cache_file" && .
$cache_file
1448 echo "creating cache $cache_file"
1453 # This can be used to rebuild libtool when needed
1454 LIBTOOL_DEPS
="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1456 # Always use our own libtool.
1457 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
1459 # Redirect the config.log output again, so that the ltconfig log is not
1460 # clobbered by the next message.
1461 exec 5>>.
/config.log
1465 if test "x$CC" != xcc
; then
1466 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1467 echo "configure:1468: checking whether $CC and cc understand -c and -o together" >&5
1469 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1470 echo "configure:1471: checking whether cc understands -c and -o together" >&5
1472 set dummy
$CC; ac_cc
="`echo $2 |
1473 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1474 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
1475 echo $ac_n "(cached) $ac_c" 1>&6
1477 echo 'foo(){}' > conftest.c
1478 # Make sure it works both with $CC and with simple cc.
1479 # We do the test twice because some compilers refuse to overwrite an
1480 # existing .o file with -o, though they will create one.
1481 ac_try
='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1482 if { (eval echo configure
:1483: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1483 test -f conftest.o
&& { (eval echo configure
:1484: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1485 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
1486 if test "x$CC" != xcc
; then
1487 # Test first that cc exists at all.
1488 if { ac_try
='cc -c conftest.c 1>&5'; { (eval echo configure
:1489: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1489 ac_try
='cc -c conftest.c -o conftest.o 1>&5'
1490 if { (eval echo configure
:1491: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1491 test -f conftest.o
&& { (eval echo configure
:1492: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1496 # cc exists but doesn't like -o.
1497 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1502 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1507 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1508 echo "$ac_t""yes" 1>&6
1510 echo "$ac_t""no" 1>&6
1511 cat >> confdefs.h
<<\EOF
1512 #define NO_MINUS_C_MINUS_O 1
1517 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1524 echo $ac_n "checking that the C compiler understands volatile""... $ac_c" 1>&6
1525 echo "configure:1526: checking that the C compiler understands volatile" >&5
1526 if eval "test \"\${samba_cv_volatile+set}\" = set"; then
1527 echo $ac_n "(cached) $ac_c" 1>&6
1530 cat > conftest.
$ac_ext <<EOF
1531 #line 1532 "configure"
1532 #include "confdefs.h"
1533 #include <sys/types.h>
1538 if { (eval echo configure
:1539: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1540 samba_cv_volatile
=yes
1542 echo "configure: failed program was:" >&5
1543 cat conftest.
$ac_ext >&5
1545 samba_cv_volatile
=no
1550 echo "$ac_t""$samba_cv_volatile" 1>&6
1551 if test x
"$samba_cv_volatile" = x
"yes"; then
1552 cat >> confdefs.h
<<\EOF
1553 #define HAVE_VOLATILE 1
1561 echo $ac_n "checking target system type""... $ac_c" 1>&6
1562 echo "configure:1563: checking target system type" >&5
1563 if test "x$ac_cv_target" = "x" ||
(test "x$target" != "xNONE" && test "x$target" != "x$ac_cv_target_alias"); then
1565 # Make sure we can run config.sub.
1566 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
1567 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1570 ac_cv_target_alias
=$target
1571 case "$ac_cv_target_alias" in
1575 ac_cv_target_alias
=$host_alias ;;
1577 *) ac_cv_target_alias
=$nonopt ;;
1581 ac_cv_target
=`$ac_config_sub $ac_cv_target_alias`
1582 ac_cv_target_cpu
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1583 ac_cv_target_vendor
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1584 ac_cv_target_os
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1586 echo $ac_n "(cached) $ac_c" 1>&6
1589 echo "$ac_t""$ac_cv_target" 1>&6
1591 target
=$ac_cv_target
1592 target_alias
=$ac_cv_target_alias
1593 target_cpu
=$ac_cv_target_cpu
1594 target_vendor
=$ac_cv_target_vendor
1595 target_os
=$ac_cv_target_os
1601 # Do some error checking and defaulting for the host and target type.
1603 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1606 # 1. You are not allowed to specify --host, --target, and nonopt at the
1608 # 2. Host defaults to nonopt.
1609 # 3. If nonopt is not specified, then host defaults to the current host,
1610 # as determined by config.guess.
1611 # 4. Target and build default to nonopt.
1612 # 5. If nonopt is not specified, then target and build default to host.
1614 # The aliases save the names the user supplied, while $host etc.
1615 # will get canonicalized.
1616 case $host---$target---$nonopt in
1617 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1618 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1621 test "$host_alias" != "$target_alias" &&
1622 test "$program_prefix$program_suffix$program_transform_name" = \
1624 program_prefix
=${target_alias}-
1628 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
1629 echo "configure:1630: checking config.cache system type" >&5
1630 if { test x
"${ac_cv_host_system_type+set}" = x
"set" &&
1631 test x
"$ac_cv_host_system_type" != x
"$host"; } ||
1632 { test x
"${ac_cv_build_system_type+set}" = x
"set" &&
1633 test x
"$ac_cv_build_system_type" != x
"$build"; } ||
1634 { test x
"${ac_cv_target_system_type+set}" = x
"set" &&
1635 test x
"$ac_cv_target_system_type" != x
"$target"; }; then
1636 echo "$ac_t""different" 1>&6
1637 { echo "configure: error: "you must remove config.cache and restart configure
"" 1>&2; exit 1; }
1639 echo "$ac_t""same" 1>&6
1641 ac_cv_host_system_type
="$host"
1642 ac_cv_build_system_type
="$build"
1643 ac_cv_target_system_type
="$target"
1646 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1647 if test "${enable_maintainer_mode+set}" = set; then
1648 enableval
="$enable_maintainer_mode"
1649 maint_mode
=$enableval
1654 if test x
"$maint_mode" = x
"yes"; then MAINT
=; else MAINT
='#'; fi
1656 # Extract the first word of "autoconf", so it can be a program name with args.
1657 set dummy autoconf
; ac_word
=$2
1658 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1659 echo "configure:1660: checking for $ac_word" >&5
1660 if eval "test \"\${ac_cv_path_AUTOCONF+set}\" = set"; then
1661 echo $ac_n "(cached) $ac_c" 1>&6
1665 ac_cv_path_AUTOCONF
="$AUTOCONF" # Let the user override the test with a path.
1668 ac_cv_path_AUTOCONF
="$AUTOCONF" # Let the user override the test with a dos path.
1671 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1673 for ac_dir
in $ac_dummy; do
1674 test -z "$ac_dir" && ac_dir
=.
1675 if test -f $ac_dir/$ac_word; then
1676 ac_cv_path_AUTOCONF
="$ac_dir/$ac_word"
1681 test -z "$ac_cv_path_AUTOCONF" && ac_cv_path_AUTOCONF
="autoconf"
1685 AUTOCONF
="$ac_cv_path_AUTOCONF"
1686 if test -n "$AUTOCONF"; then
1687 echo "$ac_t""$AUTOCONF" 1>&6
1689 echo "$ac_t""no" 1>&6
1693 # Extract the first word of "autoheader", so it can be a program name with args.
1694 set dummy autoheader
; ac_word
=$2
1695 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1696 echo "configure:1697: checking for $ac_word" >&5
1697 if eval "test \"\${ac_cv_path_AUTOHEADER+set}\" = set"; then
1698 echo $ac_n "(cached) $ac_c" 1>&6
1700 case "$AUTOHEADER" in
1702 ac_cv_path_AUTOHEADER
="$AUTOHEADER" # Let the user override the test with a path.
1705 ac_cv_path_AUTOHEADER
="$AUTOHEADER" # Let the user override the test with a dos path.
1708 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1710 for ac_dir
in $ac_dummy; do
1711 test -z "$ac_dir" && ac_dir
=.
1712 if test -f $ac_dir/$ac_word; then
1713 ac_cv_path_AUTOHEADER
="$ac_dir/$ac_word"
1718 test -z "$ac_cv_path_AUTOHEADER" && ac_cv_path_AUTOHEADER
="autoheader"
1722 AUTOHEADER
="$ac_cv_path_AUTOHEADER"
1723 if test -n "$AUTOHEADER"; then
1724 echo "$ac_t""$AUTOHEADER" 1>&6
1726 echo "$ac_t""no" 1>&6
1733 # Config CPPFLAG settings for strange OS's that must be set
1734 # before other tests.
1737 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1739 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1740 echo "configure:1741: checking whether ${CC-cc} accepts -Ae" >&5
1741 if eval "test \"\${ac_cv_prog_cc_Ae+set}\" = set"; then
1742 echo $ac_n "(cached) $ac_c" 1>&6
1744 echo 'void f(){}' > conftest.c
1745 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1746 ac_cv_prog_cc_Ae
=yes
1754 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1755 if test $ac_cv_prog_cc_Ae = yes; then
1756 CPPFLAGS
="$CPPFLAGS -Ae"
1759 # Defines needed for HPUX support.
1760 # HPUX has bigcrypt but (sometimes?) doesn't use it for
1761 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
1765 CPPFLAGS
="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE"
1766 cat >> confdefs.h
<<\EOF
1767 #define USE_BOTH_CRYPT_CALLS 1
1772 CPPFLAGS
="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE"
1773 cat >> confdefs.h
<<\EOF
1774 #define USE_BOTH_CRYPT_CALLS 1
1781 # AIX4.x doesn't even admit to having large
1782 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1785 echo "$ac_t""enabling large file support" 1>&6
1786 CPPFLAGS
="$CPPFLAGS -D_LARGE_FILES"
1789 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
1790 # to the existance of large files..
1791 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
1792 # recommendations on large file support, however it makes the
1793 # compile work using gcc 2.7 and 2.8, whereas using the Sun
1794 # recommendation makes the compile fail on gcc2.7. JRA.
1799 echo "$ac_t""enabling large file support" 1>&6
1800 if test "$ac_cv_prog_gcc" = yes; then
1801 ${CC-cc} -v >conftest.c
2>&1
1802 ac_cv_gcc_compiler_version_number
=`grep 'gcc version' conftest.c`
1804 case "$ac_cv_gcc_compiler_version_number" in
1805 *"gcc version 2.6"*|
*"gcc version 2.7"*)
1806 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE64_SOURCE"
1809 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1813 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1819 # Tests needed for SINIX large file support.
1822 if test $host = mips-sni-sysv4
; then
1823 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1824 echo "configure:1825: checking for LFS support" >&5
1825 old_CPPFLAGS
="$CPPFLAGS"
1826 CPPFLAGS
="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1827 if test "$cross_compiling" = yes; then
1828 SINIX_LFS_SUPPORT
=cross
1830 cat > conftest.
$ac_ext <<EOF
1831 #line 1832 "configure"
1832 #include "confdefs.h"
1836 #if _LFS64_LARGEFILE == 1
1843 if { (eval echo configure
:1844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1845 SINIX_LFS_SUPPORT
=yes
1847 echo "configure: failed program was:" >&5
1848 cat conftest.
$ac_ext >&5
1850 SINIX_LFS_SUPPORT
=no
1855 CPPFLAGS
="$old_CPPFLAGS"
1856 if test x
$SINIX_LFS_SUPPORT = xyes
; then
1857 CPPFLAGS
="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1858 CFLAGS
="`getconf LFS64_CFLAGS` $CFLAGS"
1859 LDFLAGS
="`getconf LFS64_LDFLAGS` $LDFLAGS"
1860 LIBS
="`getconf LFS64_LIBS` $LIBS"
1862 echo "$ac_t""$SINIX_LFS_SUPPORT" 1>&6
1867 # Tests needed for glibc 2.1 large file support.
1870 echo "$ac_t""disabling large file support for glibc2.1 on Linux" 1>&6
1873 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1874 echo "configure:1875: checking for LFS support" >&5
1875 old_CPPFLAGS
="$CPPFLAGS"
1876 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1877 if test "$cross_compiling" = yes; then
1878 GLIBC_LFS_SUPPORT
=cross
1880 cat > conftest.
$ac_ext <<EOF
1881 #line 1882 "configure"
1882 #include "confdefs.h"
1886 #if _LFS64_LARGEFILE == 1
1893 if { (eval echo configure
:1894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1895 GLIBC_LFS_SUPPORT
=yes
1897 echo "configure: failed program was:" >&5
1898 cat conftest.
$ac_ext >&5
1900 GLIBC_LFS_SUPPORT
=no
1905 CPPFLAGS
="$old_CPPFLAGS"
1906 if test x
$GLIBC_LFS_SUPPORT = xyes
; then
1907 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1909 echo "$ac_t""$GLIBC_LFS_SUPPORT" 1>&6
1914 echo $ac_n "checking for inline""... $ac_c" 1>&6
1915 echo "configure:1916: checking for inline" >&5
1916 if eval "test \"\${ac_cv_c_inline+set}\" = set"; then
1917 echo $ac_n "(cached) $ac_c" 1>&6
1920 for ac_kw
in inline __inline__ __inline
; do
1921 cat > conftest.
$ac_ext <<EOF
1922 #line 1923 "configure"
1923 #include "confdefs.h"
1929 if { (eval echo configure
:1930: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1931 ac_cv_c_inline
=$ac_kw; break
1933 echo "configure: failed program was:" >&5
1934 cat conftest.
$ac_ext >&5
1941 echo "$ac_t""$ac_cv_c_inline" 1>&6
1942 case "$ac_cv_c_inline" in
1944 no
) cat >> confdefs.h
<<\EOF
1948 *) cat >> confdefs.h
<<EOF
1949 #define inline $ac_cv_c_inline
1954 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1955 echo "configure:1956: checking how to run the C preprocessor" >&5
1956 # On Suns, sometimes $CPP names a directory.
1957 if test -n "$CPP" && test -d "$CPP"; then
1960 if test -z "$CPP"; then
1961 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
1962 echo $ac_n "(cached) $ac_c" 1>&6
1964 # This must be in double quotes, not single quotes, because CPP may get
1965 # substituted into the Makefile and "${CC-cc}" will confuse make.
1967 # On the NeXT, cc -E runs the code through the compiler's parser,
1968 # not just through cpp.
1969 cat > conftest.
$ac_ext <<EOF
1970 #line 1971 "configure"
1971 #include "confdefs.h"
1975 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1976 { (eval echo configure
:1977: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1977 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1978 if test -z "$ac_err"; then
1982 echo "configure: failed program was:" >&5
1983 cat conftest.
$ac_ext >&5
1985 CPP
="${CC-cc} -E -traditional-cpp"
1986 cat > conftest.
$ac_ext <<EOF
1987 #line 1988 "configure"
1988 #include "confdefs.h"
1992 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1993 { (eval echo configure
:1994: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1994 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1995 if test -z "$ac_err"; then
1999 echo "configure: failed program was:" >&5
2000 cat conftest.
$ac_ext >&5
2002 CPP
="${CC-cc} -nologo -E"
2003 cat > conftest.
$ac_ext <<EOF
2004 #line 2005 "configure"
2005 #include "confdefs.h"
2009 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2010 { (eval echo configure
:2011: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2011 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2012 if test -z "$ac_err"; then
2016 echo "configure: failed program was:" >&5
2017 cat conftest.
$ac_ext >&5
2026 ac_cv_prog_CPP
="$CPP"
2028 CPP
="$ac_cv_prog_CPP"
2030 ac_cv_prog_CPP
="$CPP"
2032 echo "$ac_t""$CPP" 1>&6
2034 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2035 echo "configure:2036: checking for ANSI C header files" >&5
2036 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
2037 echo $ac_n "(cached) $ac_c" 1>&6
2039 cat > conftest.
$ac_ext <<EOF
2040 #line 2041 "configure"
2041 #include "confdefs.h"
2047 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2048 { (eval echo configure
:2049: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2049 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2050 if test -z "$ac_err"; then
2052 ac_cv_header_stdc
=yes
2055 echo "configure: failed program was:" >&5
2056 cat conftest.
$ac_ext >&5
2058 ac_cv_header_stdc
=no
2062 if test $ac_cv_header_stdc = yes; then
2063 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2064 cat > conftest.
$ac_ext <<EOF
2065 #line 2066 "configure"
2066 #include "confdefs.h"
2069 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2070 egrep "memchr" >/dev
/null
2>&1; then
2074 ac_cv_header_stdc
=no
2080 if test $ac_cv_header_stdc = yes; then
2081 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2082 cat > conftest.
$ac_ext <<EOF
2083 #line 2084 "configure"
2084 #include "confdefs.h"
2087 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2088 egrep "free" >/dev
/null
2>&1; then
2092 ac_cv_header_stdc
=no
2098 if test $ac_cv_header_stdc = yes; then
2099 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2100 if test "$cross_compiling" = yes; then
2103 cat > conftest.
$ac_ext <<EOF
2104 #line 2105 "configure"
2105 #include "confdefs.h"
2107 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2108 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2109 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2110 int main () { int i; for (i = 0; i < 256; i++)
2111 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2115 if { (eval echo configure
:2116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2119 echo "configure: failed program was:" >&5
2120 cat conftest.
$ac_ext >&5
2122 ac_cv_header_stdc
=no
2130 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2131 if test $ac_cv_header_stdc = yes; then
2132 cat >> confdefs.h
<<\EOF
2133 #define STDC_HEADERS 1
2139 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
2141 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2142 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
2143 echo "configure:2144: checking for $ac_hdr that defines DIR" >&5
2144 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
2145 echo $ac_n "(cached) $ac_c" 1>&6
2147 cat > conftest.
$ac_ext <<EOF
2148 #line 2149 "configure"
2149 #include "confdefs.h"
2150 #include <sys/types.h>
2156 if { (eval echo configure
:2157: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2158 eval "ac_cv_header_dirent_$ac_safe=yes"
2160 echo "configure: failed program was:" >&5
2161 cat conftest.
$ac_ext >&5
2163 eval "ac_cv_header_dirent_$ac_safe=no"
2167 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2168 echo "$ac_t""yes" 1>&6
2169 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2170 cat >> confdefs.h
<<EOF
2171 #define $ac_tr_hdr 1
2173 ac_header_dirent
=$ac_hdr; break
2175 echo "$ac_t""no" 1>&6
2178 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2179 if test $ac_header_dirent = dirent.h
; then
2180 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2181 echo "configure:2182: checking for opendir in -ldir" >&5
2182 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2183 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
2184 echo $ac_n "(cached) $ac_c" 1>&6
2186 ac_save_LIBS
="$LIBS"
2188 cat > conftest.
$ac_ext <<EOF
2189 #line 2190 "configure"
2190 #include "confdefs.h"
2191 /* Override any gcc2 internal prototype to avoid an error. */
2192 /* We use char because int might match the return type of a gcc2
2193 builtin and then its argument prototype would still apply. */
2200 if { (eval echo configure
:2201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2202 eval "ac_cv_lib_$ac_lib_var=yes"
2204 echo "configure: failed program was:" >&5
2205 cat conftest.
$ac_ext >&5
2207 eval "ac_cv_lib_$ac_lib_var=no"
2210 LIBS
="$ac_save_LIBS"
2213 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2214 echo "$ac_t""yes" 1>&6
2217 echo "$ac_t""no" 1>&6
2221 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2222 echo "configure:2223: checking for opendir in -lx" >&5
2223 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2224 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
2225 echo $ac_n "(cached) $ac_c" 1>&6
2227 ac_save_LIBS
="$LIBS"
2229 cat > conftest.
$ac_ext <<EOF
2230 #line 2231 "configure"
2231 #include "confdefs.h"
2232 /* Override any gcc2 internal prototype to avoid an error. */
2233 /* We use char because int might match the return type of a gcc2
2234 builtin and then its argument prototype would still apply. */
2241 if { (eval echo configure
:2242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2243 eval "ac_cv_lib_$ac_lib_var=yes"
2245 echo "configure: failed program was:" >&5
2246 cat conftest.
$ac_ext >&5
2248 eval "ac_cv_lib_$ac_lib_var=no"
2251 LIBS
="$ac_save_LIBS"
2254 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2255 echo "$ac_t""yes" 1>&6
2258 echo "$ac_t""no" 1>&6
2263 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2264 echo "configure:2265: checking whether time.h and sys/time.h may both be included" >&5
2265 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
2266 echo $ac_n "(cached) $ac_c" 1>&6
2268 cat > conftest.
$ac_ext <<EOF
2269 #line 2270 "configure"
2270 #include "confdefs.h"
2271 #include <sys/types.h>
2272 #include <sys/time.h>
2278 if { (eval echo configure
:2279: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2280 ac_cv_header_time
=yes
2282 echo "configure: failed program was:" >&5
2283 cat conftest.
$ac_ext >&5
2285 ac_cv_header_time
=no
2290 echo "$ac_t""$ac_cv_header_time" 1>&6
2291 if test $ac_cv_header_time = yes; then
2292 cat >> confdefs.h
<<\EOF
2293 #define TIME_WITH_SYS_TIME 1
2298 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2299 echo "configure:2300: checking for sys/wait.h that is POSIX.1 compatible" >&5
2300 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
2301 echo $ac_n "(cached) $ac_c" 1>&6
2303 cat > conftest.
$ac_ext <<EOF
2304 #line 2305 "configure"
2305 #include "confdefs.h"
2306 #include <sys/types.h>
2307 #include <sys/wait.h>
2309 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2312 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2317 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2320 if { (eval echo configure
:2321: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2322 ac_cv_header_sys_wait_h
=yes
2324 echo "configure: failed program was:" >&5
2325 cat conftest.
$ac_ext >&5
2327 ac_cv_header_sys_wait_h
=no
2332 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2333 if test $ac_cv_header_sys_wait_h = yes; then
2334 cat >> confdefs.h
<<\EOF
2335 #define HAVE_SYS_WAIT_H 1
2340 for ac_hdr
in arpa
/inet.h sys
/fcntl.h sys
/select.h fcntl.h sys
/time.h sys
/unistd.h
2342 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2343 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2344 echo "configure:2345: checking for $ac_hdr" >&5
2345 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
2346 echo $ac_n "(cached) $ac_c" 1>&6
2348 cat > conftest.
$ac_ext <<EOF
2349 #line 2350 "configure"
2350 #include "confdefs.h"
2353 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2354 { (eval echo configure
:2355: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2355 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2356 if test -z "$ac_err"; then
2358 eval "ac_cv_header_$ac_safe=yes"
2361 echo "configure: failed program was:" >&5
2362 cat conftest.
$ac_ext >&5
2364 eval "ac_cv_header_$ac_safe=no"
2368 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2369 echo "$ac_t""yes" 1>&6
2370 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2371 cat >> confdefs.h
<<EOF
2372 #define $ac_tr_hdr 1
2376 echo "$ac_t""no" 1>&6
2380 for ac_hdr
in unistd.h utime.h grp.h sys
/id.h limits.h memory.h net
/if.h
2382 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2383 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2384 echo "configure:2385: checking for $ac_hdr" >&5
2385 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
2386 echo $ac_n "(cached) $ac_c" 1>&6
2388 cat > conftest.
$ac_ext <<EOF
2389 #line 2390 "configure"
2390 #include "confdefs.h"
2393 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2394 { (eval echo configure
:2395: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2395 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2396 if test -z "$ac_err"; then
2398 eval "ac_cv_header_$ac_safe=yes"
2401 echo "configure: failed program was:" >&5
2402 cat conftest.
$ac_ext >&5
2404 eval "ac_cv_header_$ac_safe=no"
2408 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2409 echo "$ac_t""yes" 1>&6
2410 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2411 cat >> confdefs.h
<<EOF
2412 #define $ac_tr_hdr 1
2416 echo "$ac_t""no" 1>&6
2420 for ac_hdr
in compat.h rpc
/rpc.h rpcsvc
/nis.h rpcsvc
/yp_prot.h rpcsvc
/ypclnt.h
2422 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2423 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2424 echo "configure:2425: checking for $ac_hdr" >&5
2425 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
2426 echo $ac_n "(cached) $ac_c" 1>&6
2428 cat > conftest.
$ac_ext <<EOF
2429 #line 2430 "configure"
2430 #include "confdefs.h"
2433 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2434 { (eval echo configure
:2435: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2435 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2436 if test -z "$ac_err"; then
2438 eval "ac_cv_header_$ac_safe=yes"
2441 echo "configure: failed program was:" >&5
2442 cat conftest.
$ac_ext >&5
2444 eval "ac_cv_header_$ac_safe=no"
2448 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2449 echo "$ac_t""yes" 1>&6
2450 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2451 cat >> confdefs.h
<<EOF
2452 #define $ac_tr_hdr 1
2456 echo "$ac_t""no" 1>&6
2460 for ac_hdr
in sys
/param.h ctype.h sys
/un.h sys
/wait.h sys
/resource.h sys
/ioctl.h sys
/mode.h
2462 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2463 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2464 echo "configure:2465: checking for $ac_hdr" >&5
2465 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
2466 echo $ac_n "(cached) $ac_c" 1>&6
2468 cat > conftest.
$ac_ext <<EOF
2469 #line 2470 "configure"
2470 #include "confdefs.h"
2473 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2474 { (eval echo configure
:2475: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2475 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2476 if test -z "$ac_err"; then
2478 eval "ac_cv_header_$ac_safe=yes"
2481 echo "configure: failed program was:" >&5
2482 cat conftest.
$ac_ext >&5
2484 eval "ac_cv_header_$ac_safe=no"
2488 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2489 echo "$ac_t""yes" 1>&6
2490 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2491 cat >> confdefs.h
<<EOF
2492 #define $ac_tr_hdr 1
2496 echo "$ac_t""no" 1>&6
2500 for ac_hdr
in sys
/mman.h sys
/filio.h sys
/priv.h string.h
strings.h stdlib.h sys
/socket.h
2502 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2503 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2504 echo "configure:2505: checking for $ac_hdr" >&5
2505 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
2506 echo $ac_n "(cached) $ac_c" 1>&6
2508 cat > conftest.
$ac_ext <<EOF
2509 #line 2510 "configure"
2510 #include "confdefs.h"
2513 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2514 { (eval echo configure
:2515: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2515 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2516 if test -z "$ac_err"; then
2518 eval "ac_cv_header_$ac_safe=yes"
2521 echo "configure: failed program was:" >&5
2522 cat conftest.
$ac_ext >&5
2524 eval "ac_cv_header_$ac_safe=no"
2528 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2529 echo "$ac_t""yes" 1>&6
2530 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2531 cat >> confdefs.h
<<EOF
2532 #define $ac_tr_hdr 1
2536 echo "$ac_t""no" 1>&6
2540 for ac_hdr
in sys
/mount.h sys
/vfs.h sys
/fs
/s5param.h sys
/filsys.h termios.h termio.h
2542 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2543 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2544 echo "configure:2545: checking for $ac_hdr" >&5
2545 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
2546 echo $ac_n "(cached) $ac_c" 1>&6
2548 cat > conftest.
$ac_ext <<EOF
2549 #line 2550 "configure"
2550 #include "confdefs.h"
2553 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2554 { (eval echo configure
:2555: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2555 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2556 if test -z "$ac_err"; then
2558 eval "ac_cv_header_$ac_safe=yes"
2561 echo "configure: failed program was:" >&5
2562 cat conftest.
$ac_ext >&5
2564 eval "ac_cv_header_$ac_safe=no"
2568 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2569 echo "$ac_t""yes" 1>&6
2570 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2571 cat >> confdefs.h
<<EOF
2572 #define $ac_tr_hdr 1
2576 echo "$ac_t""no" 1>&6
2580 for ac_hdr
in sys
/termio.h sys
/statfs.h sys
/dustat.h sys
/statvfs.h stdarg.h sys
/sockio.h
2582 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2583 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2584 echo "configure:2585: checking for $ac_hdr" >&5
2585 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
2586 echo $ac_n "(cached) $ac_c" 1>&6
2588 cat > conftest.
$ac_ext <<EOF
2589 #line 2590 "configure"
2590 #include "confdefs.h"
2593 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2594 { (eval echo configure
:2595: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2595 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2596 if test -z "$ac_err"; then
2598 eval "ac_cv_header_$ac_safe=yes"
2601 echo "configure: failed program was:" >&5
2602 cat conftest.
$ac_ext >&5
2604 eval "ac_cv_header_$ac_safe=no"
2608 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2609 echo "$ac_t""yes" 1>&6
2610 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2611 cat >> confdefs.h
<<EOF
2612 #define $ac_tr_hdr 1
2616 echo "$ac_t""no" 1>&6
2620 for ac_hdr
in getopt.h
2622 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2623 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2624 echo "configure:2625: checking for $ac_hdr" >&5
2625 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
2626 echo $ac_n "(cached) $ac_c" 1>&6
2628 cat > conftest.
$ac_ext <<EOF
2629 #line 2630 "configure"
2630 #include "confdefs.h"
2633 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2634 { (eval echo configure
:2635: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2635 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2636 if test -z "$ac_err"; then
2638 eval "ac_cv_header_$ac_safe=yes"
2641 echo "configure: failed program was:" >&5
2642 cat conftest.
$ac_ext >&5
2644 eval "ac_cv_header_$ac_safe=no"
2648 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2649 echo "$ac_t""yes" 1>&6
2650 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2651 cat >> confdefs.h
<<EOF
2652 #define $ac_tr_hdr 1
2656 echo "$ac_t""no" 1>&6
2661 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
2662 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
2666 cat > conftest.
$ac_ext <<EOF
2667 #line 2668 "configure"
2668 #include "confdefs.h"
2674 if { (eval echo configure
:2675: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2676 ac_cv_header_shadow_h
=yes
2678 echo "configure: failed program was:" >&5
2679 cat conftest.
$ac_ext >&5
2681 ac_cv_header_shadow_h
=no
2684 if test x
"$ac_cv_header_shadow_h" = x
"yes"; then
2685 cat >> confdefs.h
<<\EOF
2686 #define HAVE_SHADOW_H 1
2692 for ac_hdr
in shadow.h netinet
/ip.h netinet
/tcp.h netinet
/in_systm.h netinet
/in_ip.h
2694 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2695 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2696 echo "configure:2697: checking for $ac_hdr" >&5
2697 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
2698 echo $ac_n "(cached) $ac_c" 1>&6
2700 cat > conftest.
$ac_ext <<EOF
2701 #line 2702 "configure"
2702 #include "confdefs.h"
2705 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2706 { (eval echo configure
:2707: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2707 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2708 if test -z "$ac_err"; then
2710 eval "ac_cv_header_$ac_safe=yes"
2713 echo "configure: failed program was:" >&5
2714 cat conftest.
$ac_ext >&5
2716 eval "ac_cv_header_$ac_safe=no"
2720 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2721 echo "$ac_t""yes" 1>&6
2722 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2723 cat >> confdefs.h
<<EOF
2724 #define $ac_tr_hdr 1
2728 echo "$ac_t""no" 1>&6
2732 for ac_hdr
in sys
/security.h security
/pam_appl.h
2734 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2735 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2736 echo "configure:2737: checking for $ac_hdr" >&5
2737 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
2738 echo $ac_n "(cached) $ac_c" 1>&6
2740 cat > conftest.
$ac_ext <<EOF
2741 #line 2742 "configure"
2742 #include "confdefs.h"
2745 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2746 { (eval echo configure
:2747: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2747 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2748 if test -z "$ac_err"; then
2750 eval "ac_cv_header_$ac_safe=yes"
2753 echo "configure: failed program was:" >&5
2754 cat conftest.
$ac_ext >&5
2756 eval "ac_cv_header_$ac_safe=no"
2760 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2761 echo "$ac_t""yes" 1>&6
2762 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2763 cat >> confdefs.h
<<EOF
2764 #define $ac_tr_hdr 1
2768 echo "$ac_t""no" 1>&6
2772 for ac_hdr
in stropts.h poll.h readline.h
history.h readline
/readline.h
2774 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2775 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2776 echo "configure:2777: checking for $ac_hdr" >&5
2777 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
2778 echo $ac_n "(cached) $ac_c" 1>&6
2780 cat > conftest.
$ac_ext <<EOF
2781 #line 2782 "configure"
2782 #include "confdefs.h"
2785 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2786 { (eval echo configure
:2787: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2787 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2788 if test -z "$ac_err"; then
2790 eval "ac_cv_header_$ac_safe=yes"
2793 echo "configure: failed program was:" >&5
2794 cat conftest.
$ac_ext >&5
2796 eval "ac_cv_header_$ac_safe=no"
2800 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2801 echo "$ac_t""yes" 1>&6
2802 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2803 cat >> confdefs.h
<<EOF
2804 #define $ac_tr_hdr 1
2808 echo "$ac_t""no" 1>&6
2812 for ac_hdr
in readline
/history.h sys
/capability.h syscall.h sys
/syscall.h
2814 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2815 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2816 echo "configure:2817: checking for $ac_hdr" >&5
2817 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
2818 echo $ac_n "(cached) $ac_c" 1>&6
2820 cat > conftest.
$ac_ext <<EOF
2821 #line 2822 "configure"
2822 #include "confdefs.h"
2825 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2826 { (eval echo configure
:2827: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2827 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2828 if test -z "$ac_err"; then
2830 eval "ac_cv_header_$ac_safe=yes"
2833 echo "configure: failed program was:" >&5
2834 cat conftest.
$ac_ext >&5
2836 eval "ac_cv_header_$ac_safe=no"
2840 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2841 echo "$ac_t""yes" 1>&6
2842 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2843 cat >> confdefs.h
<<EOF
2844 #define $ac_tr_hdr 1
2848 echo "$ac_t""no" 1>&6
2852 for ac_hdr
in sys
/acl.h sys
/cdefs.h glob.h
2854 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2855 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2856 echo "configure:2857: checking for $ac_hdr" >&5
2857 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
2858 echo $ac_n "(cached) $ac_c" 1>&6
2860 cat > conftest.
$ac_ext <<EOF
2861 #line 2862 "configure"
2862 #include "confdefs.h"
2865 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2866 { (eval echo configure
:2867: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2867 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2868 if test -z "$ac_err"; then
2870 eval "ac_cv_header_$ac_safe=yes"
2873 echo "configure: failed program was:" >&5
2874 cat conftest.
$ac_ext >&5
2876 eval "ac_cv_header_$ac_safe=no"
2880 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2881 echo "$ac_t""yes" 1>&6
2882 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2883 cat >> confdefs.h
<<EOF
2884 #define $ac_tr_hdr 1
2888 echo "$ac_t""no" 1>&6
2893 # For experimental utmp support
2894 for ac_hdr
in utmp.h utmpx.h
2896 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2897 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2898 echo "configure:2899: checking for $ac_hdr" >&5
2899 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
2900 echo $ac_n "(cached) $ac_c" 1>&6
2902 cat > conftest.
$ac_ext <<EOF
2903 #line 2904 "configure"
2904 #include "confdefs.h"
2907 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2908 { (eval echo configure
:2909: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2909 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2910 if test -z "$ac_err"; then
2912 eval "ac_cv_header_$ac_safe=yes"
2915 echo "configure: failed program was:" >&5
2916 cat conftest.
$ac_ext >&5
2918 eval "ac_cv_header_$ac_safe=no"
2922 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2923 echo "$ac_t""yes" 1>&6
2924 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2925 cat >> confdefs.h
<<EOF
2926 #define $ac_tr_hdr 1
2930 echo "$ac_t""no" 1>&6
2935 echo $ac_n "checking size of int""... $ac_c" 1>&6
2936 echo "configure:2937: checking size of int" >&5
2937 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
2938 echo $ac_n "(cached) $ac_c" 1>&6
2940 if test "$cross_compiling" = yes; then
2941 ac_cv_sizeof_int
=cross
2943 cat > conftest.
$ac_ext <<EOF
2944 #line 2945 "configure"
2945 #include "confdefs.h"
2949 FILE *f=fopen("conftestval", "w");
2951 fprintf(f, "%d\n", sizeof(int));
2955 if { (eval echo configure
:2956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2957 ac_cv_sizeof_int
=`cat conftestval`
2959 echo "configure: failed program was:" >&5
2960 cat conftest.
$ac_ext >&5
2968 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2969 cat >> confdefs.h
<<EOF
2970 #define SIZEOF_INT $ac_cv_sizeof_int
2974 echo $ac_n "checking size of long""... $ac_c" 1>&6
2975 echo "configure:2976: checking size of long" >&5
2976 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
2977 echo $ac_n "(cached) $ac_c" 1>&6
2979 if test "$cross_compiling" = yes; then
2980 ac_cv_sizeof_long
=cross
2982 cat > conftest.
$ac_ext <<EOF
2983 #line 2984 "configure"
2984 #include "confdefs.h"
2988 FILE *f=fopen("conftestval", "w");
2990 fprintf(f, "%d\n", sizeof(long));
2994 if { (eval echo configure
:2995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2996 ac_cv_sizeof_long
=`cat conftestval`
2998 echo "configure: failed program was:" >&5
2999 cat conftest.
$ac_ext >&5
3007 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
3008 cat >> confdefs.h
<<EOF
3009 #define SIZEOF_LONG $ac_cv_sizeof_long
3013 echo $ac_n "checking size of short""... $ac_c" 1>&6
3014 echo "configure:3015: checking size of short" >&5
3015 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
3016 echo $ac_n "(cached) $ac_c" 1>&6
3018 if test "$cross_compiling" = yes; then
3019 ac_cv_sizeof_short
=cross
3021 cat > conftest.
$ac_ext <<EOF
3022 #line 3023 "configure"
3023 #include "confdefs.h"
3027 FILE *f=fopen("conftestval", "w");
3029 fprintf(f, "%d\n", sizeof(short));
3033 if { (eval echo configure
:3034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3035 ac_cv_sizeof_short
=`cat conftestval`
3037 echo "configure: failed program was:" >&5
3038 cat conftest.
$ac_ext >&5
3040 ac_cv_sizeof_short
=0
3046 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
3047 cat >> confdefs.h
<<EOF
3048 #define SIZEOF_SHORT $ac_cv_sizeof_short
3053 echo $ac_n "checking for working const""... $ac_c" 1>&6
3054 echo "configure:3055: checking for working const" >&5
3055 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
3056 echo $ac_n "(cached) $ac_c" 1>&6
3058 cat > conftest.
$ac_ext <<EOF
3059 #line 3060 "configure"
3060 #include "confdefs.h"
3064 /* Ultrix mips cc rejects this. */
3065 typedef int charset[2]; const charset x;
3066 /* SunOS 4.1.1 cc rejects this. */
3067 char const *const *ccp;
3069 /* NEC SVR4.0.2 mips cc rejects this. */
3070 struct point {int x, y;};
3071 static struct point const zero = {0,0};
3072 /* AIX XL C 1.02.0.0 rejects this.
3073 It does not let you subtract one const X* pointer from another in an arm
3074 of an if-expression whose if-part is not a constant expression */
3075 const char *g = "string";
3076 ccp = &g + (g ? g-g : 0);
3077 /* HPUX 7.0 cc rejects these. */
3080 ccp = (char const *const *) p;
3081 { /* SCO 3.2v4 cc rejects this. */
3083 char const *s = 0 ? (char *) 0 : (char const *) 0;
3087 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3089 const int *foo = &x[0];
3092 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3093 typedef const int *iptr;
3097 { /* AIX XL C 1.02.0.0 rejects this saying
3098 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3099 struct s { int j; const int *ap[3]; };
3100 struct s *b; b->j = 5;
3102 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3108 if { (eval echo configure
:3109: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3112 echo "configure: failed program was:" >&5
3113 cat conftest.
$ac_ext >&5
3120 echo "$ac_t""$ac_cv_c_const" 1>&6
3121 if test $ac_cv_c_const = no
; then
3122 cat >> confdefs.h
<<\EOF
3128 echo $ac_n "checking for inline""... $ac_c" 1>&6
3129 echo "configure:3130: checking for inline" >&5
3130 if eval "test \"\${ac_cv_c_inline+set}\" = set"; then
3131 echo $ac_n "(cached) $ac_c" 1>&6
3134 for ac_kw
in inline __inline__ __inline
; do
3135 cat > conftest.
$ac_ext <<EOF
3136 #line 3137 "configure"
3137 #include "confdefs.h"
3143 if { (eval echo configure
:3144: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3145 ac_cv_c_inline
=$ac_kw; break
3147 echo "configure: failed program was:" >&5
3148 cat conftest.
$ac_ext >&5
3155 echo "$ac_t""$ac_cv_c_inline" 1>&6
3156 case "$ac_cv_c_inline" in
3158 no
) cat >> confdefs.h
<<\EOF
3162 *) cat >> confdefs.h
<<EOF
3163 #define inline $ac_cv_c_inline
3168 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3169 echo "configure:3170: checking whether byte ordering is bigendian" >&5
3170 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
3171 echo $ac_n "(cached) $ac_c" 1>&6
3173 ac_cv_c_bigendian
=unknown
3174 # See if sys/param.h defines the BYTE_ORDER macro.
3175 cat > conftest.
$ac_ext <<EOF
3176 #line 3177 "configure"
3177 #include "confdefs.h"
3178 #include <sys/types.h>
3179 #include <sys/param.h>
3182 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3187 if { (eval echo configure
:3188: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3189 # It does; now see whether it defined to BIG_ENDIAN or not.
3190 cat > conftest.
$ac_ext <<EOF
3191 #line 3192 "configure"
3192 #include "confdefs.h"
3193 #include <sys/types.h>
3194 #include <sys/param.h>
3197 #if BYTE_ORDER != BIG_ENDIAN
3202 if { (eval echo configure
:3203: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3204 ac_cv_c_bigendian
=yes
3206 echo "configure: failed program was:" >&5
3207 cat conftest.
$ac_ext >&5
3209 ac_cv_c_bigendian
=no
3213 echo "configure: failed program was:" >&5
3214 cat conftest.
$ac_ext >&5
3217 if test $ac_cv_c_bigendian = unknown
; then
3218 if test "$cross_compiling" = yes; then
3219 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3221 cat > conftest.
$ac_ext <<EOF
3222 #line 3223 "configure"
3223 #include "confdefs.h"
3225 /* Are we little or big endian? From Harbison&Steele. */
3229 char c[sizeof (long)];
3232 exit (u.c[sizeof (long) - 1] == 1);
3235 if { (eval echo configure
:3236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3237 ac_cv_c_bigendian
=no
3239 echo "configure: failed program was:" >&5
3240 cat conftest.
$ac_ext >&5
3242 ac_cv_c_bigendian
=yes
3250 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3251 if test $ac_cv_c_bigendian = yes; then
3252 cat >> confdefs.h
<<\EOF
3253 #define WORDS_BIGENDIAN 1
3258 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
3259 echo "configure:3260: checking whether char is unsigned" >&5
3260 if eval "test \"\${ac_cv_c_char_unsigned+set}\" = set"; then
3261 echo $ac_n "(cached) $ac_c" 1>&6
3263 if test "$GCC" = yes; then
3264 # GCC predefines this symbol on systems where it applies.
3265 cat > conftest.
$ac_ext <<EOF
3266 #line 3267 "configure"
3267 #include "confdefs.h"
3268 #ifdef __CHAR_UNSIGNED__
3273 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3274 egrep "yes" >/dev
/null
2>&1; then
3276 ac_cv_c_char_unsigned
=yes
3279 ac_cv_c_char_unsigned
=no
3284 if test "$cross_compiling" = yes; then
3285 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3287 cat > conftest.
$ac_ext <<EOF
3288 #line 3289 "configure"
3289 #include "confdefs.h"
3290 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
3291 #if !defined(__STDC__) || __STDC__ != 1
3295 volatile char c = 255; exit(c < 0);
3298 if { (eval echo configure
:3299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3300 ac_cv_c_char_unsigned
=yes
3302 echo "configure: failed program was:" >&5
3303 cat conftest.
$ac_ext >&5
3305 ac_cv_c_char_unsigned
=no
3313 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
3314 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
3315 cat >> confdefs.h
<<\EOF
3316 #define __CHAR_UNSIGNED__ 1
3322 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3323 echo "configure:3324: checking return type of signal handlers" >&5
3324 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
3325 echo $ac_n "(cached) $ac_c" 1>&6
3327 cat > conftest.
$ac_ext <<EOF
3328 #line 3329 "configure"
3329 #include "confdefs.h"
3330 #include <sys/types.h>
3336 extern "C" void (*signal (int, void (*)(int)))(int);
3338 void (*signal ()) ();
3345 if { (eval echo configure
:3346: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3347 ac_cv_type_signal
=void
3349 echo "configure: failed program was:" >&5
3350 cat conftest.
$ac_ext >&5
3352 ac_cv_type_signal
=int
3357 echo "$ac_t""$ac_cv_type_signal" 1>&6
3358 cat >> confdefs.h
<<EOF
3359 #define RETSIGTYPE $ac_cv_type_signal
3363 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3364 echo "configure:3365: checking for uid_t in sys/types.h" >&5
3365 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
3366 echo $ac_n "(cached) $ac_c" 1>&6
3368 cat > conftest.
$ac_ext <<EOF
3369 #line 3370 "configure"
3370 #include "confdefs.h"
3371 #include <sys/types.h>
3373 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3374 egrep "uid_t" >/dev
/null
2>&1; then
3376 ac_cv_type_uid_t
=yes
3385 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3386 if test $ac_cv_type_uid_t = no
; then
3387 cat >> confdefs.h
<<\EOF
3391 cat >> confdefs.h
<<\EOF
3397 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3398 echo "configure:3399: checking for mode_t" >&5
3399 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
3400 echo $ac_n "(cached) $ac_c" 1>&6
3402 cat > conftest.
$ac_ext <<EOF
3403 #line 3404 "configure"
3404 #include "confdefs.h"
3405 #include <sys/types.h>
3411 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3412 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3414 eval "ac_cv_type_mode_t=yes"
3417 eval "ac_cv_type_mode_t=no"
3422 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
3423 echo "$ac_t""yes" 1>&6
3425 echo "$ac_t""no" 1>&6
3426 cat >> confdefs.h
<<EOF
3432 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3433 echo "configure:3434: checking for off_t" >&5
3434 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
3435 echo $ac_n "(cached) $ac_c" 1>&6
3437 cat > conftest.
$ac_ext <<EOF
3438 #line 3439 "configure"
3439 #include "confdefs.h"
3440 #include <sys/types.h>
3446 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3447 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3449 eval "ac_cv_type_off_t=yes"
3452 eval "ac_cv_type_off_t=no"
3457 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
3458 echo "$ac_t""yes" 1>&6
3460 echo "$ac_t""no" 1>&6
3461 cat >> confdefs.h
<<EOF
3467 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3468 echo "configure:3469: checking for size_t" >&5
3469 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
3470 echo $ac_n "(cached) $ac_c" 1>&6
3472 cat > conftest.
$ac_ext <<EOF
3473 #line 3474 "configure"
3474 #include "confdefs.h"
3475 #include <sys/types.h>
3481 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3482 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3484 eval "ac_cv_type_size_t=yes"
3487 eval "ac_cv_type_size_t=no"
3492 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
3493 echo "$ac_t""yes" 1>&6
3495 echo "$ac_t""no" 1>&6
3496 cat >> confdefs.h
<<EOF
3497 #define size_t unsigned
3502 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3503 echo "configure:3504: checking for pid_t" >&5
3504 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
3505 echo $ac_n "(cached) $ac_c" 1>&6
3507 cat > conftest.
$ac_ext <<EOF
3508 #line 3509 "configure"
3509 #include "confdefs.h"
3510 #include <sys/types.h>
3516 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3517 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3519 eval "ac_cv_type_pid_t=yes"
3522 eval "ac_cv_type_pid_t=no"
3527 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
3528 echo "$ac_t""yes" 1>&6
3530 echo "$ac_t""no" 1>&6
3531 cat >> confdefs.h
<<EOF
3537 echo $ac_n "checking for member st_rdev in aggregate type struct stat""... $ac_c" 1>&6
3538 echo "configure:3539: checking for member st_rdev in aggregate type struct stat" >&5
3539 if eval "test \"\${ac_cv_c_struct_member_st_rdev+set}\" = set"; then
3540 echo $ac_n "(cached) $ac_c" 1>&6
3542 cat > conftest.
$ac_ext <<EOF
3543 #line 3544 "configure"
3544 #include "confdefs.h"
3545 #include <sys/types.h>
3546 #include <sys/stat.h>
3548 struct stat foo; foo.st_rdev;
3551 if { (eval echo configure
:3552: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3553 ac_cv_c_struct_member_st_rdev
=yes
3555 echo "configure: failed program was:" >&5
3556 cat conftest.
$ac_ext >&5
3558 ac_cv_c_struct_member_st_rdev
=no
3563 echo "$ac_t""$ac_cv_c_struct_member_st_rdev" 1>&6
3564 st_rdev
="$ac_cv_c_struct_member_st_rdev"
3565 if test $ac_cv_c_struct_member_st_rdev = yes; then
3566 cat >> confdefs.h
<<\EOF
3567 #define HAVE_ST_RDEV 1
3572 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
3573 echo "configure:3574: checking for d_off in dirent" >&5
3574 if eval "test \"\${ac_cv_dirent_d_off+set}\" = set"; then
3575 echo $ac_n "(cached) $ac_c" 1>&6
3577 cat > conftest.
$ac_ext <<EOF
3578 #line 3579 "configure"
3579 #include "confdefs.h"
3582 #include <sys/types.h>
3585 struct dirent d; d.d_off;
3588 if { (eval echo configure
:3589: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3590 ac_cv_dirent_d_off
=yes
3592 echo "configure: failed program was:" >&5
3593 cat conftest.
$ac_ext >&5
3595 ac_cv_dirent_d_off
=no
3600 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
3601 if test $ac_cv_dirent_d_off = yes; then
3602 cat >> confdefs.h
<<\EOF
3603 #define HAVE_DIRENT_D_OFF 1
3608 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
3609 echo "configure:3610: checking for ino_t" >&5
3610 if eval "test \"\${ac_cv_type_ino_t+set}\" = set"; then
3611 echo $ac_n "(cached) $ac_c" 1>&6
3613 cat > conftest.
$ac_ext <<EOF
3614 #line 3615 "configure"
3615 #include "confdefs.h"
3616 #include <sys/types.h>
3622 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3623 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3625 eval "ac_cv_type_ino_t=yes"
3628 eval "ac_cv_type_ino_t=no"
3633 if eval "test \"`echo '$ac_cv_type_'ino_t`\" = yes"; then
3634 echo "$ac_t""yes" 1>&6
3636 echo "$ac_t""no" 1>&6
3637 cat >> confdefs.h
<<EOF
3638 #define ino_t unsigned
3643 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3644 echo "configure:3645: checking for loff_t" >&5
3645 if eval "test \"\${ac_cv_type_loff_t+set}\" = set"; then
3646 echo $ac_n "(cached) $ac_c" 1>&6
3648 cat > conftest.
$ac_ext <<EOF
3649 #line 3650 "configure"
3650 #include "confdefs.h"
3651 #include <sys/types.h>
3657 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3658 egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3660 eval "ac_cv_type_loff_t=yes"
3663 eval "ac_cv_type_loff_t=no"
3668 if eval "test \"`echo '$ac_cv_type_'loff_t`\" = yes"; then
3669 echo "$ac_t""yes" 1>&6
3671 echo "$ac_t""no" 1>&6
3672 cat >> confdefs.h
<<EOF
3673 #define loff_t off_t
3678 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
3679 echo "configure:3680: checking for offset_t" >&5
3680 if eval "test \"\${ac_cv_type_offset_t+set}\" = set"; then
3681 echo $ac_n "(cached) $ac_c" 1>&6
3683 cat > conftest.
$ac_ext <<EOF
3684 #line 3685 "configure"
3685 #include "confdefs.h"
3686 #include <sys/types.h>
3692 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3693 egrep "(^|[^a-zA-Z_0-9])offset_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3695 eval "ac_cv_type_offset_t=yes"
3698 eval "ac_cv_type_offset_t=no"
3703 if eval "test \"`echo '$ac_cv_type_'offset_t`\" = yes"; then
3704 echo "$ac_t""yes" 1>&6
3706 echo "$ac_t""no" 1>&6
3707 cat >> confdefs.h
<<EOF
3708 #define offset_t loff_t
3713 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3714 echo "configure:3715: checking for ssize_t" >&5
3715 if eval "test \"\${ac_cv_type_ssize_t+set}\" = set"; then
3716 echo $ac_n "(cached) $ac_c" 1>&6
3718 cat > conftest.
$ac_ext <<EOF
3719 #line 3720 "configure"
3720 #include "confdefs.h"
3721 #include <sys/types.h>
3727 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3728 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3730 eval "ac_cv_type_ssize_t=yes"
3733 eval "ac_cv_type_ssize_t=no"
3738 if eval "test \"`echo '$ac_cv_type_'ssize_t`\" = yes"; then
3739 echo "$ac_t""yes" 1>&6
3741 echo "$ac_t""no" 1>&6
3742 cat >> confdefs.h
<<EOF
3748 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
3749 echo "configure:3750: checking for wchar_t" >&5
3750 if eval "test \"\${ac_cv_type_wchar_t+set}\" = set"; then
3751 echo $ac_n "(cached) $ac_c" 1>&6
3753 cat > conftest.
$ac_ext <<EOF
3754 #line 3755 "configure"
3755 #include "confdefs.h"
3756 #include <sys/types.h>
3762 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3763 egrep "(^|[^a-zA-Z_0-9])wchar_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3765 eval "ac_cv_type_wchar_t=yes"
3768 eval "ac_cv_type_wchar_t=no"
3773 if eval "test \"`echo '$ac_cv_type_'wchar_t`\" = yes"; then
3774 echo "$ac_t""yes" 1>&6
3776 echo "$ac_t""no" 1>&6
3777 cat >> confdefs.h
<<EOF
3778 #define wchar_t unsigned short
3784 # we need libcups for CUPS support...
3785 echo $ac_n "checking for httpConnect in -lcups""... $ac_c" 1>&6
3786 echo "configure:3787: checking for httpConnect in -lcups" >&5
3787 ac_lib_var
=`echo cups'_'httpConnect | sed 'y%./+-%__p_%'`
3788 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3789 echo $ac_n "(cached) $ac_c" 1>&6
3791 ac_save_LIBS
="$LIBS"
3793 cat > conftest.
$ac_ext <<EOF
3794 #line 3795 "configure"
3795 #include "confdefs.h"
3796 /* Override any gcc2 internal prototype to avoid an error. */
3797 /* We use char because int might match the return type of a gcc2
3798 builtin and then its argument prototype would still apply. */
3805 if { (eval echo configure
:3806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3807 eval "ac_cv_lib_$ac_lib_var=yes"
3809 echo "configure: failed program was:" >&5
3810 cat conftest.
$ac_ext >&5
3812 eval "ac_cv_lib_$ac_lib_var=no"
3815 LIBS
="$ac_save_LIBS"
3818 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3819 echo "$ac_t""yes" 1>&6
3820 ac_tr_lib
=HAVE_LIB
`echo cups | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3821 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3822 cat >> confdefs.h
<<EOF
3823 #define $ac_tr_lib 1
3829 echo "$ac_t""no" 1>&6
3833 # we need libdl for PAM and the new VFS code
3834 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3835 echo "configure:3836: checking for dlopen in -ldl" >&5
3836 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3837 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3838 echo $ac_n "(cached) $ac_c" 1>&6
3840 ac_save_LIBS
="$LIBS"
3842 cat > conftest.
$ac_ext <<EOF
3843 #line 3844 "configure"
3844 #include "confdefs.h"
3845 /* Override any gcc2 internal prototype to avoid an error. */
3846 /* We use char because int might match the return type of a gcc2
3847 builtin and then its argument prototype would still apply. */
3854 if { (eval echo configure
:3855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3856 eval "ac_cv_lib_$ac_lib_var=yes"
3858 echo "configure: failed program was:" >&5
3859 cat conftest.
$ac_ext >&5
3861 eval "ac_cv_lib_$ac_lib_var=no"
3864 LIBS
="$ac_save_LIBS"
3867 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3868 echo "$ac_t""yes" 1>&6
3870 cat >> confdefs.h
<<\EOF
3871 #define HAVE_LIBDL 1
3875 echo "$ac_t""no" 1>&6
3879 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
3880 echo "configure:3881: checking for sig_atomic_t type" >&5
3881 if eval "test \"\${samba_cv_sig_atomic_t+set}\" = set"; then
3882 echo $ac_n "(cached) $ac_c" 1>&6
3885 cat > conftest.
$ac_ext <<EOF
3886 #line 3887 "configure"
3887 #include "confdefs.h"
3889 #include <sys/types.h>
3899 if { (eval echo configure
:3900: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3901 samba_cv_sig_atomic_t
=yes
3903 echo "configure: failed program was:" >&5
3904 cat conftest.
$ac_ext >&5
3906 samba_cv_sig_atomic_t
=no
3911 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
3912 if test x
"$samba_cv_sig_atomic_t" = x
"yes"; then
3913 cat >> confdefs.h
<<\EOF
3914 #define HAVE_SIG_ATOMIC_T_TYPE 1
3919 echo $ac_n "checking for errno in errno.h""... $ac_c" 1>&6
3920 echo "configure:3921: checking for errno in errno.h" >&5
3921 if eval "test \"\${samba_cv_errno+set}\" = set"; then
3922 echo $ac_n "(cached) $ac_c" 1>&6
3925 cat > conftest.
$ac_ext <<EOF
3926 #line 3927 "configure"
3927 #include "confdefs.h"
3933 if { (eval echo configure
:3934: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3937 echo "configure: failed program was:" >&5
3938 cat conftest.
$ac_ext >&5
3940 samba_cv_have_errno
=no
3945 echo "$ac_t""$samba_cv_errno" 1>&6
3946 if test x
"$samba_cv_errno" = x
"yes"; then
3947 cat >> confdefs.h
<<\EOF
3948 #define HAVE_ERRNO_DECL 1
3953 # stupid glibc has the functions but no declaration. grrrr.
3954 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
3955 echo "configure:3956: checking for setresuid declaration" >&5
3956 if eval "test \"\${samba_cv_have_setresuid_decl+set}\" = set"; then
3957 echo $ac_n "(cached) $ac_c" 1>&6
3960 cat > conftest.
$ac_ext <<EOF
3961 #line 3962 "configure"
3962 #include "confdefs.h"
3965 int i = (int)setresuid
3968 if { (eval echo configure
:3969: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3970 samba_cv_have_setresuid_decl
=yes
3972 echo "configure: failed program was:" >&5
3973 cat conftest.
$ac_ext >&5
3975 samba_cv_have_setresuid_decl
=no
3980 echo "$ac_t""$samba_cv_have_setresuid_decl" 1>&6
3981 if test x
"$samba_cv_have_setresuid_decl" = x
"yes"; then
3982 cat >> confdefs.h
<<\EOF
3983 #define HAVE_SETRESUID_DECL 1
3988 # stupid glibc has the functions but no declaration. grrrr.
3989 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
3990 echo "configure:3991: checking for setresgid declaration" >&5
3991 if eval "test \"\${samba_cv_have_setresgid_decl+set}\" = set"; then
3992 echo $ac_n "(cached) $ac_c" 1>&6
3995 cat > conftest.
$ac_ext <<EOF
3996 #line 3997 "configure"
3997 #include "confdefs.h"
4000 int i = (int)setresgid
4003 if { (eval echo configure
:4004: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4005 samba_cv_have_setresgid_decl
=yes
4007 echo "configure: failed program was:" >&5
4008 cat conftest.
$ac_ext >&5
4010 samba_cv_have_setresgid_decl
=no
4015 echo "$ac_t""$samba_cv_have_setresgid_decl" 1>&6
4016 if test x
"$samba_cv_have_setresgid_decl" = x
"yes"; then
4017 cat >> confdefs.h
<<\EOF
4018 #define HAVE_SETRESGID_DECL 1
4023 # and glibc has setresuid under linux but the function does
4024 # nothing until kernel 2.1.44! very dumb.
4025 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
4026 echo "configure:4027: checking for real setresuid" >&5
4027 if eval "test \"\${samba_cv_have_setresuid+set}\" = set"; then
4028 echo $ac_n "(cached) $ac_c" 1>&6
4031 if test "$cross_compiling" = yes; then
4032 samba_cv_have_setresuid
=cross
4034 cat > conftest.
$ac_ext <<EOF
4035 #line 4036 "configure"
4036 #include "confdefs.h"
4038 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
4040 if { (eval echo configure
:4041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4042 samba_cv_have_setresuid
=yes
4044 echo "configure: failed program was:" >&5
4045 cat conftest.
$ac_ext >&5
4047 samba_cv_have_setresuid
=no
4054 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
4055 if test x
"$samba_cv_have_setresuid" = x
"yes"; then
4056 cat >> confdefs.h
<<\EOF
4057 #define HAVE_SETRESUID 1
4062 # Do the same check for setresguid...
4064 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
4065 echo "configure:4066: checking for real setresgid" >&5
4066 if eval "test \"\${samba_cv_have_setresgid+set}\" = set"; then
4067 echo $ac_n "(cached) $ac_c" 1>&6
4070 if test "$cross_compiling" = yes; then
4071 samba_cv_have_setresgid
=cross
4073 cat > conftest.
$ac_ext <<EOF
4074 #line 4075 "configure"
4075 #include "confdefs.h"
4078 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
4080 if { (eval echo configure
:4081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4082 samba_cv_have_setresgid
=yes
4084 echo "configure: failed program was:" >&5
4085 cat conftest.
$ac_ext >&5
4087 samba_cv_have_setresgid
=no
4094 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
4095 if test x
"$samba_cv_have_setresgid" = x
"yes"; then
4096 cat >> confdefs.h
<<\EOF
4097 #define HAVE_SETRESGID 1
4102 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
4103 echo "configure:4104: checking for 8-bit clean memcmp" >&5
4104 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
4105 echo $ac_n "(cached) $ac_c" 1>&6
4107 if test "$cross_compiling" = yes; then
4108 ac_cv_func_memcmp_clean
=no
4110 cat > conftest.
$ac_ext <<EOF
4111 #line 4112 "configure"
4112 #include "confdefs.h"
4116 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4117 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
4121 if { (eval echo configure
:4122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4123 ac_cv_func_memcmp_clean
=yes
4125 echo "configure: failed program was:" >&5
4126 cat conftest.
$ac_ext >&5
4128 ac_cv_func_memcmp_clean
=no
4135 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
4136 test $ac_cv_func_memcmp_clean = no
&& LIBOBJS
="$LIBOBJS memcmp.${ac_objext}"
4139 ###############################################
4140 # test for where we get crypt() from
4141 for ac_func
in crypt
4143 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4144 echo "configure:4145: checking for $ac_func" >&5
4145 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
4146 echo $ac_n "(cached) $ac_c" 1>&6
4148 cat > conftest.
$ac_ext <<EOF
4149 #line 4150 "configure"
4150 #include "confdefs.h"
4151 /* System header to define __stub macros and hopefully few prototypes,
4152 which can conflict with char $ac_func(); below. */
4154 /* Override any gcc2 internal prototype to avoid an error. */
4155 /* We use char because int might match the return type of a gcc2
4156 builtin and then its argument prototype would still apply. */
4162 /* The GNU C library defines this for functions which it implements
4163 to always fail with ENOSYS. Some functions are actually named
4164 something starting with __ and the normal name is an alias. */
4165 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4173 if { (eval echo configure
:4174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4175 eval "ac_cv_func_$ac_func=yes"
4177 echo "configure: failed program was:" >&5
4178 cat conftest.
$ac_ext >&5
4180 eval "ac_cv_func_$ac_func=no"
4185 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4186 echo "$ac_t""yes" 1>&6
4187 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4188 cat >> confdefs.h
<<EOF
4189 #define $ac_tr_func 1
4193 echo "$ac_t""no" 1>&6
4197 if test x
"$ac_cv_func_crypt" = x
"no"; then
4198 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
4199 echo "configure:4200: checking for crypt in -lcrypt" >&5
4200 ac_lib_var
=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
4201 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4202 echo $ac_n "(cached) $ac_c" 1>&6
4204 ac_save_LIBS
="$LIBS"
4205 LIBS
="-lcrypt $LIBS"
4206 cat > conftest.
$ac_ext <<EOF
4207 #line 4208 "configure"
4208 #include "confdefs.h"
4209 /* Override any gcc2 internal prototype to avoid an error. */
4210 /* We use char because int might match the return type of a gcc2
4211 builtin and then its argument prototype would still apply. */
4218 if { (eval echo configure
:4219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4220 eval "ac_cv_lib_$ac_lib_var=yes"
4222 echo "configure: failed program was:" >&5
4223 cat conftest.
$ac_ext >&5
4225 eval "ac_cv_lib_$ac_lib_var=no"
4228 LIBS
="$ac_save_LIBS"
4231 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4232 echo "$ac_t""yes" 1>&6
4233 LIBS
="$LIBS -lcrypt";
4234 cat >> confdefs.h
<<\EOF
4235 #define HAVE_CRYPT 1
4239 echo "$ac_t""no" 1>&6
4245 ###############################################
4246 # test for where we get readline() from
4247 if test "$ac_cv_header_readline_h" = "yes" ||
4248 test "$ac_cv_header_readline_readline_h" = "yes"; then
4249 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
4250 echo "configure:4251: checking for readline in -lreadline" >&5
4251 ac_lib_var
=`echo readline'_'readline | sed 'y%./+-%__p_%'`
4252 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4253 echo $ac_n "(cached) $ac_c" 1>&6
4255 ac_save_LIBS
="$LIBS"
4256 LIBS
="-lreadline $LIBS"
4257 cat > conftest.
$ac_ext <<EOF
4258 #line 4259 "configure"
4259 #include "confdefs.h"
4260 /* Override any gcc2 internal prototype to avoid an error. */
4261 /* We use char because int might match the return type of a gcc2
4262 builtin and then its argument prototype would still apply. */
4269 if { (eval echo configure
:4270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4271 eval "ac_cv_lib_$ac_lib_var=yes"
4273 echo "configure: failed program was:" >&5
4274 cat conftest.
$ac_ext >&5
4276 eval "ac_cv_lib_$ac_lib_var=no"
4279 LIBS
="$ac_save_LIBS"
4282 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4283 echo "$ac_t""yes" 1>&6
4284 ac_tr_lib
=HAVE_LIB
`echo readline | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4285 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4286 cat >> confdefs.h
<<EOF
4287 #define $ac_tr_lib 1
4290 LIBS
="-lreadline $LIBS"
4293 echo "$ac_t""no" 1>&6
4299 # The following test taken from the cvs sources
4300 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
4301 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
4302 # libsocket.so which has a bad implementation of gethostbyname (it
4303 # only looks in /etc/hosts), so we only look for -lsocket if we need
4305 for ac_func
in connect
4307 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4308 echo "configure:4309: checking for $ac_func" >&5
4309 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
4310 echo $ac_n "(cached) $ac_c" 1>&6
4312 cat > conftest.
$ac_ext <<EOF
4313 #line 4314 "configure"
4314 #include "confdefs.h"
4315 /* System header to define __stub macros and hopefully few prototypes,
4316 which can conflict with char $ac_func(); below. */
4318 /* Override any gcc2 internal prototype to avoid an error. */
4319 /* We use char because int might match the return type of a gcc2
4320 builtin and then its argument prototype would still apply. */
4326 /* The GNU C library defines this for functions which it implements
4327 to always fail with ENOSYS. Some functions are actually named
4328 something starting with __ and the normal name is an alias. */
4329 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4337 if { (eval echo configure
:4338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4339 eval "ac_cv_func_$ac_func=yes"
4341 echo "configure: failed program was:" >&5
4342 cat conftest.
$ac_ext >&5
4344 eval "ac_cv_func_$ac_func=no"
4349 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4350 echo "$ac_t""yes" 1>&6
4351 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4352 cat >> confdefs.h
<<EOF
4353 #define $ac_tr_func 1
4357 echo "$ac_t""no" 1>&6
4361 if test x
"$ac_cv_func_connect" = x
"no"; then
4364 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
4365 echo "configure:4366: checking for printf in -lnsl_s" >&5
4366 ac_lib_var
=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
4367 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4368 echo $ac_n "(cached) $ac_c" 1>&6
4370 ac_save_LIBS
="$LIBS"
4371 LIBS
="-lnsl_s $LIBS"
4372 cat > conftest.
$ac_ext <<EOF
4373 #line 4374 "configure"
4374 #include "confdefs.h"
4375 /* Override any gcc2 internal prototype to avoid an error. */
4376 /* We use char because int might match the return type of a gcc2
4377 builtin and then its argument prototype would still apply. */
4384 if { (eval echo configure
:4385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4386 eval "ac_cv_lib_$ac_lib_var=yes"
4388 echo "configure: failed program was:" >&5
4389 cat conftest.
$ac_ext >&5
4391 eval "ac_cv_lib_$ac_lib_var=no"
4394 LIBS
="$ac_save_LIBS"
4397 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4398 echo "$ac_t""yes" 1>&6
4399 ac_tr_lib
=HAVE_LIB
`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4400 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4401 cat >> confdefs.h
<<EOF
4402 #define $ac_tr_lib 1
4405 LIBS
="-lnsl_s $LIBS"
4408 echo "$ac_t""no" 1>&6
4414 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
4415 echo "configure:4416: checking for printf in -lnsl" >&5
4416 ac_lib_var
=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
4417 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4418 echo $ac_n "(cached) $ac_c" 1>&6
4420 ac_save_LIBS
="$LIBS"
4422 cat > conftest.
$ac_ext <<EOF
4423 #line 4424 "configure"
4424 #include "confdefs.h"
4425 /* Override any gcc2 internal prototype to avoid an error. */
4426 /* We use char because int might match the return type of a gcc2
4427 builtin and then its argument prototype would still apply. */
4434 if { (eval echo configure
:4435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4436 eval "ac_cv_lib_$ac_lib_var=yes"
4438 echo "configure: failed program was:" >&5
4439 cat conftest.
$ac_ext >&5
4441 eval "ac_cv_lib_$ac_lib_var=no"
4444 LIBS
="$ac_save_LIBS"
4447 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4448 echo "$ac_t""yes" 1>&6
4449 ac_tr_lib
=HAVE_LIB
`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4450 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4451 cat >> confdefs.h
<<EOF
4452 #define $ac_tr_lib 1
4458 echo "$ac_t""no" 1>&6
4464 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
4465 echo "configure:4466: checking for connect in -lsocket" >&5
4466 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
4467 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4468 echo $ac_n "(cached) $ac_c" 1>&6
4470 ac_save_LIBS
="$LIBS"
4471 LIBS
="-lsocket $LIBS"
4472 cat > conftest.
$ac_ext <<EOF
4473 #line 4474 "configure"
4474 #include "confdefs.h"
4475 /* Override any gcc2 internal prototype to avoid an error. */
4476 /* We use char because int might match the return type of a gcc2
4477 builtin and then its argument prototype would still apply. */
4484 if { (eval echo configure
:4485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4486 eval "ac_cv_lib_$ac_lib_var=yes"
4488 echo "configure: failed program was:" >&5
4489 cat conftest.
$ac_ext >&5
4491 eval "ac_cv_lib_$ac_lib_var=no"
4494 LIBS
="$ac_save_LIBS"
4497 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4498 echo "$ac_t""yes" 1>&6
4499 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4500 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4501 cat >> confdefs.h
<<EOF
4502 #define $ac_tr_lib 1
4505 LIBS
="-lsocket $LIBS"
4508 echo "$ac_t""no" 1>&6
4514 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
4515 echo "configure:4516: checking for connect in -linet" >&5
4516 ac_lib_var
=`echo inet'_'connect | sed 'y%./+-%__p_%'`
4517 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4518 echo $ac_n "(cached) $ac_c" 1>&6
4520 ac_save_LIBS
="$LIBS"
4522 cat > conftest.
$ac_ext <<EOF
4523 #line 4524 "configure"
4524 #include "confdefs.h"
4525 /* Override any gcc2 internal prototype to avoid an error. */
4526 /* We use char because int might match the return type of a gcc2
4527 builtin and then its argument prototype would still apply. */
4534 if { (eval echo configure
:4535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4536 eval "ac_cv_lib_$ac_lib_var=yes"
4538 echo "configure: failed program was:" >&5
4539 cat conftest.
$ac_ext >&5
4541 eval "ac_cv_lib_$ac_lib_var=no"
4544 LIBS
="$ac_save_LIBS"
4547 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4548 echo "$ac_t""yes" 1>&6
4549 ac_tr_lib
=HAVE_LIB
`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4550 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4551 cat >> confdefs.h
<<EOF
4552 #define $ac_tr_lib 1
4558 echo "$ac_t""no" 1>&6
4562 if test x
"$ac_cv_lib_socket_connect" = x
"yes" ||
4563 test x
"$ac_cv_lib_inet_connect" = x
"yes"; then
4564 # ac_cv_func_connect=yes
4565 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
4566 cat >> confdefs.h
<<\EOF
4567 #define HAVE_CONNECT 1
4573 # Check if we have execl, if not we need to compile smbrun.
4574 for ac_func
in execl
4576 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4577 echo "configure:4578: checking for $ac_func" >&5
4578 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
4579 echo $ac_n "(cached) $ac_c" 1>&6
4581 cat > conftest.
$ac_ext <<EOF
4582 #line 4583 "configure"
4583 #include "confdefs.h"
4584 /* System header to define __stub macros and hopefully few prototypes,
4585 which can conflict with char $ac_func(); below. */
4587 /* Override any gcc2 internal prototype to avoid an error. */
4588 /* We use char because int might match the return type of a gcc2
4589 builtin and then its argument prototype would still apply. */
4595 /* The GNU C library defines this for functions which it implements
4596 to always fail with ENOSYS. Some functions are actually named
4597 something starting with __ and the normal name is an alias. */
4598 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4606 if { (eval echo configure
:4607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4608 eval "ac_cv_func_$ac_func=yes"
4610 echo "configure: failed program was:" >&5
4611 cat conftest.
$ac_ext >&5
4613 eval "ac_cv_func_$ac_func=no"
4618 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4619 echo "$ac_t""yes" 1>&6
4620 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4621 cat >> confdefs.h
<<EOF
4622 #define $ac_tr_func 1
4626 echo "$ac_t""no" 1>&6
4630 if test x
"$ac_cv_func_execl" = x
"no"; then
4631 RUNPROG
="bin/smbrun"
4636 for ac_func
in waitpid getcwd strdup strtoul strerror chown
chmod chroot
4638 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4639 echo "configure:4640: checking for $ac_func" >&5
4640 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
4641 echo $ac_n "(cached) $ac_c" 1>&6
4643 cat > conftest.
$ac_ext <<EOF
4644 #line 4645 "configure"
4645 #include "confdefs.h"
4646 /* System header to define __stub macros and hopefully few prototypes,
4647 which can conflict with char $ac_func(); below. */
4649 /* Override any gcc2 internal prototype to avoid an error. */
4650 /* We use char because int might match the return type of a gcc2
4651 builtin and then its argument prototype would still apply. */
4657 /* The GNU C library defines this for functions which it implements
4658 to always fail with ENOSYS. Some functions are actually named
4659 something starting with __ and the normal name is an alias. */
4660 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4668 if { (eval echo configure
:4669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4670 eval "ac_cv_func_$ac_func=yes"
4672 echo "configure: failed program was:" >&5
4673 cat conftest.
$ac_ext >&5
4675 eval "ac_cv_func_$ac_func=no"
4680 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4681 echo "$ac_t""yes" 1>&6
4682 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4683 cat >> confdefs.h
<<EOF
4684 #define $ac_tr_func 1
4688 echo "$ac_t""no" 1>&6
4692 for ac_func
in fstat strchr utime utimes getrlimit fsync bzero memset
4694 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4695 echo "configure:4696: checking for $ac_func" >&5
4696 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
4697 echo $ac_n "(cached) $ac_c" 1>&6
4699 cat > conftest.
$ac_ext <<EOF
4700 #line 4701 "configure"
4701 #include "confdefs.h"
4702 /* System header to define __stub macros and hopefully few prototypes,
4703 which can conflict with char $ac_func(); below. */
4705 /* Override any gcc2 internal prototype to avoid an error. */
4706 /* We use char because int might match the return type of a gcc2
4707 builtin and then its argument prototype would still apply. */
4713 /* The GNU C library defines this for functions which it implements
4714 to always fail with ENOSYS. Some functions are actually named
4715 something starting with __ and the normal name is an alias. */
4716 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4724 if { (eval echo configure
:4725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4726 eval "ac_cv_func_$ac_func=yes"
4728 echo "configure: failed program was:" >&5
4729 cat conftest.
$ac_ext >&5
4731 eval "ac_cv_func_$ac_func=no"
4736 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4737 echo "$ac_t""yes" 1>&6
4738 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4739 cat >> confdefs.h
<<EOF
4740 #define $ac_tr_func 1
4744 echo "$ac_t""no" 1>&6
4748 for ac_func
in memmove vsnprintf snprintf setsid glob strpbrk pipe crypt16 getauthuid
4750 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4751 echo "configure:4752: checking for $ac_func" >&5
4752 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
4753 echo $ac_n "(cached) $ac_c" 1>&6
4755 cat > conftest.
$ac_ext <<EOF
4756 #line 4757 "configure"
4757 #include "confdefs.h"
4758 /* System header to define __stub macros and hopefully few prototypes,
4759 which can conflict with char $ac_func(); below. */
4761 /* Override any gcc2 internal prototype to avoid an error. */
4762 /* We use char because int might match the return type of a gcc2
4763 builtin and then its argument prototype would still apply. */
4769 /* The GNU C library defines this for functions which it implements
4770 to always fail with ENOSYS. Some functions are actually named
4771 something starting with __ and the normal name is an alias. */
4772 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4780 if { (eval echo configure
:4781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4782 eval "ac_cv_func_$ac_func=yes"
4784 echo "configure: failed program was:" >&5
4785 cat conftest.
$ac_ext >&5
4787 eval "ac_cv_func_$ac_func=no"
4792 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4793 echo "$ac_t""yes" 1>&6
4794 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4795 cat >> confdefs.h
<<EOF
4796 #define $ac_tr_func 1
4800 echo "$ac_t""no" 1>&6
4804 for ac_func
in strftime sigprocmask sigblock sigaction innetgr setnetgrent getnetgrent endnetgrent
4806 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4807 echo "configure:4808: checking for $ac_func" >&5
4808 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
4809 echo $ac_n "(cached) $ac_c" 1>&6
4811 cat > conftest.
$ac_ext <<EOF
4812 #line 4813 "configure"
4813 #include "confdefs.h"
4814 /* System header to define __stub macros and hopefully few prototypes,
4815 which can conflict with char $ac_func(); below. */
4817 /* Override any gcc2 internal prototype to avoid an error. */
4818 /* We use char because int might match the return type of a gcc2
4819 builtin and then its argument prototype would still apply. */
4825 /* The GNU C library defines this for functions which it implements
4826 to always fail with ENOSYS. Some functions are actually named
4827 something starting with __ and the normal name is an alias. */
4828 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4836 if { (eval echo configure
:4837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4838 eval "ac_cv_func_$ac_func=yes"
4840 echo "configure: failed program was:" >&5
4841 cat conftest.
$ac_ext >&5
4843 eval "ac_cv_func_$ac_func=no"
4848 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4849 echo "$ac_t""yes" 1>&6
4850 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4851 cat >> confdefs.h
<<EOF
4852 #define $ac_tr_func 1
4856 echo "$ac_t""no" 1>&6
4860 for ac_func
in initgroups
select rdchk getgrnam getgrent pathconf
4862 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4863 echo "configure:4864: checking for $ac_func" >&5
4864 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
4865 echo $ac_n "(cached) $ac_c" 1>&6
4867 cat > conftest.
$ac_ext <<EOF
4868 #line 4869 "configure"
4869 #include "confdefs.h"
4870 /* System header to define __stub macros and hopefully few prototypes,
4871 which can conflict with char $ac_func(); below. */
4873 /* Override any gcc2 internal prototype to avoid an error. */
4874 /* We use char because int might match the return type of a gcc2
4875 builtin and then its argument prototype would still apply. */
4881 /* The GNU C library defines this for functions which it implements
4882 to always fail with ENOSYS. Some functions are actually named
4883 something starting with __ and the normal name is an alias. */
4884 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4892 if { (eval echo configure
:4893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4894 eval "ac_cv_func_$ac_func=yes"
4896 echo "configure: failed program was:" >&5
4897 cat conftest.
$ac_ext >&5
4899 eval "ac_cv_func_$ac_func=no"
4904 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4905 echo "$ac_t""yes" 1>&6
4906 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4907 cat >> confdefs.h
<<EOF
4908 #define $ac_tr_func 1
4912 echo "$ac_t""no" 1>&6
4916 for ac_func
in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
4918 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4919 echo "configure:4920: checking for $ac_func" >&5
4920 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
4921 echo $ac_n "(cached) $ac_c" 1>&6
4923 cat > conftest.
$ac_ext <<EOF
4924 #line 4925 "configure"
4925 #include "confdefs.h"
4926 /* System header to define __stub macros and hopefully few prototypes,
4927 which can conflict with char $ac_func(); below. */
4929 /* Override any gcc2 internal prototype to avoid an error. */
4930 /* We use char because int might match the return type of a gcc2
4931 builtin and then its argument prototype would still apply. */
4937 /* The GNU C library defines this for functions which it implements
4938 to always fail with ENOSYS. Some functions are actually named
4939 something starting with __ and the normal name is an alias. */
4940 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4948 if { (eval echo configure
:4949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4950 eval "ac_cv_func_$ac_func=yes"
4952 echo "configure: failed program was:" >&5
4953 cat conftest.
$ac_ext >&5
4955 eval "ac_cv_func_$ac_func=no"
4960 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4961 echo "$ac_t""yes" 1>&6
4962 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4963 cat >> confdefs.h
<<EOF
4964 #define $ac_tr_func 1
4968 echo "$ac_t""no" 1>&6
4972 for ac_func
in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
4974 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4975 echo "configure:4976: checking for $ac_func" >&5
4976 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
4977 echo $ac_n "(cached) $ac_c" 1>&6
4979 cat > conftest.
$ac_ext <<EOF
4980 #line 4981 "configure"
4981 #include "confdefs.h"
4982 /* System header to define __stub macros and hopefully few prototypes,
4983 which can conflict with char $ac_func(); below. */
4985 /* Override any gcc2 internal prototype to avoid an error. */
4986 /* We use char because int might match the return type of a gcc2
4987 builtin and then its argument prototype would still apply. */
4993 /* The GNU C library defines this for functions which it implements
4994 to always fail with ENOSYS. Some functions are actually named
4995 something starting with __ and the normal name is an alias. */
4996 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5004 if { (eval echo configure
:5005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5006 eval "ac_cv_func_$ac_func=yes"
5008 echo "configure: failed program was:" >&5
5009 cat conftest.
$ac_ext >&5
5011 eval "ac_cv_func_$ac_func=no"
5016 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5017 echo "$ac_t""yes" 1>&6
5018 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5019 cat >> confdefs.h
<<EOF
5020 #define $ac_tr_func 1
5024 echo "$ac_t""no" 1>&6
5028 for ac_func
in fseek64 fseeko64 ftell64 ftello64 setluid yp_get_default_domain getpwanam
5030 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5031 echo "configure:5032: checking for $ac_func" >&5
5032 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
5033 echo $ac_n "(cached) $ac_c" 1>&6
5035 cat > conftest.
$ac_ext <<EOF
5036 #line 5037 "configure"
5037 #include "confdefs.h"
5038 /* System header to define __stub macros and hopefully few prototypes,
5039 which can conflict with char $ac_func(); below. */
5041 /* Override any gcc2 internal prototype to avoid an error. */
5042 /* We use char because int might match the return type of a gcc2
5043 builtin and then its argument prototype would still apply. */
5049 /* The GNU C library defines this for functions which it implements
5050 to always fail with ENOSYS. Some functions are actually named
5051 something starting with __ and the normal name is an alias. */
5052 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5060 if { (eval echo configure
:5061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5062 eval "ac_cv_func_$ac_func=yes"
5064 echo "configure: failed program was:" >&5
5065 cat conftest.
$ac_ext >&5
5067 eval "ac_cv_func_$ac_func=no"
5072 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5073 echo "$ac_t""yes" 1>&6
5074 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5075 cat >> confdefs.h
<<EOF
5076 #define $ac_tr_func 1
5080 echo "$ac_t""no" 1>&6
5084 for ac_func
in srandom random srand rand setenv
usleep mmap64 strcasecmp fcvt fcvtl
5086 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5087 echo "configure:5088: checking for $ac_func" >&5
5088 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
5089 echo $ac_n "(cached) $ac_c" 1>&6
5091 cat > conftest.
$ac_ext <<EOF
5092 #line 5093 "configure"
5093 #include "confdefs.h"
5094 /* System header to define __stub macros and hopefully few prototypes,
5095 which can conflict with char $ac_func(); below. */
5097 /* Override any gcc2 internal prototype to avoid an error. */
5098 /* We use char because int might match the return type of a gcc2
5099 builtin and then its argument prototype would still apply. */
5105 /* The GNU C library defines this for functions which it implements
5106 to always fail with ENOSYS. Some functions are actually named
5107 something starting with __ and the normal name is an alias. */
5108 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5116 if { (eval echo configure
:5117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5118 eval "ac_cv_func_$ac_func=yes"
5120 echo "configure: failed program was:" >&5
5121 cat conftest.
$ac_ext >&5
5123 eval "ac_cv_func_$ac_func=no"
5128 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5129 echo "$ac_t""yes" 1>&6
5130 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5131 cat >> confdefs.h
<<EOF
5132 #define $ac_tr_func 1
5136 echo "$ac_t""no" 1>&6
5141 # syscall() is needed for smbwrapper.
5142 for ac_func
in syscall
5144 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5145 echo "configure:5146: checking for $ac_func" >&5
5146 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
5147 echo $ac_n "(cached) $ac_c" 1>&6
5149 cat > conftest.
$ac_ext <<EOF
5150 #line 5151 "configure"
5151 #include "confdefs.h"
5152 /* System header to define __stub macros and hopefully few prototypes,
5153 which can conflict with char $ac_func(); below. */
5155 /* Override any gcc2 internal prototype to avoid an error. */
5156 /* We use char because int might match the return type of a gcc2
5157 builtin and then its argument prototype would still apply. */
5163 /* The GNU C library defines this for functions which it implements
5164 to always fail with ENOSYS. Some functions are actually named
5165 something starting with __ and the normal name is an alias. */
5166 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5174 if { (eval echo configure
:5175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5176 eval "ac_cv_func_$ac_func=yes"
5178 echo "configure: failed program was:" >&5
5179 cat conftest.
$ac_ext >&5
5181 eval "ac_cv_func_$ac_func=no"
5186 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5187 echo "$ac_t""yes" 1>&6
5188 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5189 cat >> confdefs.h
<<EOF
5190 #define $ac_tr_func 1
5194 echo "$ac_t""no" 1>&6
5199 for ac_func
in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
5201 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5202 echo "configure:5203: checking for $ac_func" >&5
5203 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
5204 echo $ac_n "(cached) $ac_c" 1>&6
5206 cat > conftest.
$ac_ext <<EOF
5207 #line 5208 "configure"
5208 #include "confdefs.h"
5209 /* System header to define __stub macros and hopefully few prototypes,
5210 which can conflict with char $ac_func(); below. */
5212 /* Override any gcc2 internal prototype to avoid an error. */
5213 /* We use char because int might match the return type of a gcc2
5214 builtin and then its argument prototype would still apply. */
5220 /* The GNU C library defines this for functions which it implements
5221 to always fail with ENOSYS. Some functions are actually named
5222 something starting with __ and the normal name is an alias. */
5223 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5231 if { (eval echo configure
:5232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5233 eval "ac_cv_func_$ac_func=yes"
5235 echo "configure: failed program was:" >&5
5236 cat conftest.
$ac_ext >&5
5238 eval "ac_cv_func_$ac_func=no"
5243 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5244 echo "$ac_t""yes" 1>&6
5245 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5246 cat >> confdefs.h
<<EOF
5247 #define $ac_tr_func 1
5251 echo "$ac_t""no" 1>&6
5255 for ac_func
in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
5257 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5258 echo "configure:5259: checking for $ac_func" >&5
5259 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
5260 echo $ac_n "(cached) $ac_c" 1>&6
5262 cat > conftest.
$ac_ext <<EOF
5263 #line 5264 "configure"
5264 #include "confdefs.h"
5265 /* System header to define __stub macros and hopefully few prototypes,
5266 which can conflict with char $ac_func(); below. */
5268 /* Override any gcc2 internal prototype to avoid an error. */
5269 /* We use char because int might match the return type of a gcc2
5270 builtin and then its argument prototype would still apply. */
5276 /* The GNU C library defines this for functions which it implements
5277 to always fail with ENOSYS. Some functions are actually named
5278 something starting with __ and the normal name is an alias. */
5279 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5287 if { (eval echo configure
:5288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5289 eval "ac_cv_func_$ac_func=yes"
5291 echo "configure: failed program was:" >&5
5292 cat conftest.
$ac_ext >&5
5294 eval "ac_cv_func_$ac_func=no"
5299 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5300 echo "$ac_t""yes" 1>&6
5301 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5302 cat >> confdefs.h
<<EOF
5303 #define $ac_tr_func 1
5307 echo "$ac_t""no" 1>&6
5311 for ac_func
in __getcwd _getcwd
5313 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5314 echo "configure:5315: checking for $ac_func" >&5
5315 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
5316 echo $ac_n "(cached) $ac_c" 1>&6
5318 cat > conftest.
$ac_ext <<EOF
5319 #line 5320 "configure"
5320 #include "confdefs.h"
5321 /* System header to define __stub macros and hopefully few prototypes,
5322 which can conflict with char $ac_func(); below. */
5324 /* Override any gcc2 internal prototype to avoid an error. */
5325 /* We use char because int might match the return type of a gcc2
5326 builtin and then its argument prototype would still apply. */
5332 /* The GNU C library defines this for functions which it implements
5333 to always fail with ENOSYS. Some functions are actually named
5334 something starting with __ and the normal name is an alias. */
5335 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5343 if { (eval echo configure
:5344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5345 eval "ac_cv_func_$ac_func=yes"
5347 echo "configure: failed program was:" >&5
5348 cat conftest.
$ac_ext >&5
5350 eval "ac_cv_func_$ac_func=no"
5355 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5356 echo "$ac_t""yes" 1>&6
5357 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5358 cat >> confdefs.h
<<EOF
5359 #define $ac_tr_func 1
5363 echo "$ac_t""no" 1>&6
5367 for ac_func
in __xstat __fxstat __lxstat
5369 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5370 echo "configure:5371: checking for $ac_func" >&5
5371 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
5372 echo $ac_n "(cached) $ac_c" 1>&6
5374 cat > conftest.
$ac_ext <<EOF
5375 #line 5376 "configure"
5376 #include "confdefs.h"
5377 /* System header to define __stub macros and hopefully few prototypes,
5378 which can conflict with char $ac_func(); below. */
5380 /* Override any gcc2 internal prototype to avoid an error. */
5381 /* We use char because int might match the return type of a gcc2
5382 builtin and then its argument prototype would still apply. */
5388 /* The GNU C library defines this for functions which it implements
5389 to always fail with ENOSYS. Some functions are actually named
5390 something starting with __ and the normal name is an alias. */
5391 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5399 if { (eval echo configure
:5400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5401 eval "ac_cv_func_$ac_func=yes"
5403 echo "configure: failed program was:" >&5
5404 cat conftest.
$ac_ext >&5
5406 eval "ac_cv_func_$ac_func=no"
5411 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5412 echo "$ac_t""yes" 1>&6
5413 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5414 cat >> confdefs.h
<<EOF
5415 #define $ac_tr_func 1
5419 echo "$ac_t""no" 1>&6
5423 for ac_func
in _stat _lstat _fstat __stat __lstat __fstat
5425 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5426 echo "configure:5427: checking for $ac_func" >&5
5427 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
5428 echo $ac_n "(cached) $ac_c" 1>&6
5430 cat > conftest.
$ac_ext <<EOF
5431 #line 5432 "configure"
5432 #include "confdefs.h"
5433 /* System header to define __stub macros and hopefully few prototypes,
5434 which can conflict with char $ac_func(); below. */
5436 /* Override any gcc2 internal prototype to avoid an error. */
5437 /* We use char because int might match the return type of a gcc2
5438 builtin and then its argument prototype would still apply. */
5444 /* The GNU C library defines this for functions which it implements
5445 to always fail with ENOSYS. Some functions are actually named
5446 something starting with __ and the normal name is an alias. */
5447 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5455 if { (eval echo configure
:5456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5457 eval "ac_cv_func_$ac_func=yes"
5459 echo "configure: failed program was:" >&5
5460 cat conftest.
$ac_ext >&5
5462 eval "ac_cv_func_$ac_func=no"
5467 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5468 echo "$ac_t""yes" 1>&6
5469 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5470 cat >> confdefs.h
<<EOF
5471 #define $ac_tr_func 1
5475 echo "$ac_t""no" 1>&6
5479 for ac_func
in _acl __acl _facl __facl _open __open _chdir __chdir
5481 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5482 echo "configure:5483: checking for $ac_func" >&5
5483 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
5484 echo $ac_n "(cached) $ac_c" 1>&6
5486 cat > conftest.
$ac_ext <<EOF
5487 #line 5488 "configure"
5488 #include "confdefs.h"
5489 /* System header to define __stub macros and hopefully few prototypes,
5490 which can conflict with char $ac_func(); below. */
5492 /* Override any gcc2 internal prototype to avoid an error. */
5493 /* We use char because int might match the return type of a gcc2
5494 builtin and then its argument prototype would still apply. */
5500 /* The GNU C library defines this for functions which it implements
5501 to always fail with ENOSYS. Some functions are actually named
5502 something starting with __ and the normal name is an alias. */
5503 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5511 if { (eval echo configure
:5512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5513 eval "ac_cv_func_$ac_func=yes"
5515 echo "configure: failed program was:" >&5
5516 cat conftest.
$ac_ext >&5
5518 eval "ac_cv_func_$ac_func=no"
5523 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5524 echo "$ac_t""yes" 1>&6
5525 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5526 cat >> confdefs.h
<<EOF
5527 #define $ac_tr_func 1
5531 echo "$ac_t""no" 1>&6
5535 for ac_func
in _close __close _fchdir __fchdir _fcntl __fcntl
5537 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5538 echo "configure:5539: checking for $ac_func" >&5
5539 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
5540 echo $ac_n "(cached) $ac_c" 1>&6
5542 cat > conftest.
$ac_ext <<EOF
5543 #line 5544 "configure"
5544 #include "confdefs.h"
5545 /* System header to define __stub macros and hopefully few prototypes,
5546 which can conflict with char $ac_func(); below. */
5548 /* Override any gcc2 internal prototype to avoid an error. */
5549 /* We use char because int might match the return type of a gcc2
5550 builtin and then its argument prototype would still apply. */
5556 /* The GNU C library defines this for functions which it implements
5557 to always fail with ENOSYS. Some functions are actually named
5558 something starting with __ and the normal name is an alias. */
5559 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5567 if { (eval echo configure
:5568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5569 eval "ac_cv_func_$ac_func=yes"
5571 echo "configure: failed program was:" >&5
5572 cat conftest.
$ac_ext >&5
5574 eval "ac_cv_func_$ac_func=no"
5579 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5580 echo "$ac_t""yes" 1>&6
5581 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5582 cat >> confdefs.h
<<EOF
5583 #define $ac_tr_func 1
5587 echo "$ac_t""no" 1>&6
5591 for ac_func
in getdents _getdents __getdents _lseek __lseek _read __read
5593 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5594 echo "configure:5595: checking for $ac_func" >&5
5595 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
5596 echo $ac_n "(cached) $ac_c" 1>&6
5598 cat > conftest.
$ac_ext <<EOF
5599 #line 5600 "configure"
5600 #include "confdefs.h"
5601 /* System header to define __stub macros and hopefully few prototypes,
5602 which can conflict with char $ac_func(); below. */
5604 /* Override any gcc2 internal prototype to avoid an error. */
5605 /* We use char because int might match the return type of a gcc2
5606 builtin and then its argument prototype would still apply. */
5612 /* The GNU C library defines this for functions which it implements
5613 to always fail with ENOSYS. Some functions are actually named
5614 something starting with __ and the normal name is an alias. */
5615 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5623 if { (eval echo configure
:5624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5625 eval "ac_cv_func_$ac_func=yes"
5627 echo "configure: failed program was:" >&5
5628 cat conftest.
$ac_ext >&5
5630 eval "ac_cv_func_$ac_func=no"
5635 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5636 echo "$ac_t""yes" 1>&6
5637 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5638 cat >> confdefs.h
<<EOF
5639 #define $ac_tr_func 1
5643 echo "$ac_t""no" 1>&6
5647 for ac_func
in _write __write _fork __fork
5649 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5650 echo "configure:5651: checking for $ac_func" >&5
5651 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
5652 echo $ac_n "(cached) $ac_c" 1>&6
5654 cat > conftest.
$ac_ext <<EOF
5655 #line 5656 "configure"
5656 #include "confdefs.h"
5657 /* System header to define __stub macros and hopefully few prototypes,
5658 which can conflict with char $ac_func(); below. */
5660 /* Override any gcc2 internal prototype to avoid an error. */
5661 /* We use char because int might match the return type of a gcc2
5662 builtin and then its argument prototype would still apply. */
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)
5679 if { (eval echo configure
:5680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5681 eval "ac_cv_func_$ac_func=yes"
5683 echo "configure: failed program was:" >&5
5684 cat conftest.
$ac_ext >&5
5686 eval "ac_cv_func_$ac_func=no"
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
5699 echo "$ac_t""no" 1>&6
5703 for ac_func
in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
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 \"\${ac_cv_func_$ac_func+set}\" = set"; then
5708 echo $ac_n "(cached) $ac_c" 1>&6
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. */
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. */
5724 /* The GNU C library defines this for functions which it implements
5725 to always fail with ENOSYS. Some functions are actually named
5726 something starting with __ and the normal name is an alias. */
5727 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5735 if { (eval echo configure
:5736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5737 eval "ac_cv_func_$ac_func=yes"
5739 echo "configure: failed program was:" >&5
5740 cat conftest.
$ac_ext >&5
5742 eval "ac_cv_func_$ac_func=no"
5747 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5748 echo "$ac_t""yes" 1>&6
5749 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5750 cat >> confdefs.h
<<EOF
5751 #define $ac_tr_func 1
5755 echo "$ac_t""no" 1>&6
5759 for ac_func
in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
5761 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5762 echo "configure:5763: checking for $ac_func" >&5
5763 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
5764 echo $ac_n "(cached) $ac_c" 1>&6
5766 cat > conftest.
$ac_ext <<EOF
5767 #line 5768 "configure"
5768 #include "confdefs.h"
5769 /* System header to define __stub macros and hopefully few prototypes,
5770 which can conflict with char $ac_func(); below. */
5772 /* Override any gcc2 internal prototype to avoid an error. */
5773 /* We use char because int might match the return type of a gcc2
5774 builtin and then its argument prototype would still apply. */
5780 /* The GNU C library defines this for functions which it implements
5781 to always fail with ENOSYS. Some functions are actually named
5782 something starting with __ and the normal name is an alias. */
5783 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5791 if { (eval echo configure
:5792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5793 eval "ac_cv_func_$ac_func=yes"
5795 echo "configure: failed program was:" >&5
5796 cat conftest.
$ac_ext >&5
5798 eval "ac_cv_func_$ac_func=no"
5803 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5804 echo "$ac_t""yes" 1>&6
5805 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5806 cat >> confdefs.h
<<EOF
5807 #define $ac_tr_func 1
5811 echo "$ac_t""no" 1>&6
5815 for ac_func
in pread _pread __pread pread64 _pread64 __pread64
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 \"\${ac_cv_func_$ac_func+set}\" = set"; then
5820 echo $ac_n "(cached) $ac_c" 1>&6
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. */
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. */
5836 /* The GNU C library defines this for functions which it implements
5837 to always fail with ENOSYS. Some functions are actually named
5838 something starting with __ and the normal name is an alias. */
5839 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5847 if { (eval echo configure
:5848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5849 eval "ac_cv_func_$ac_func=yes"
5851 echo "configure: failed program was:" >&5
5852 cat conftest.
$ac_ext >&5
5854 eval "ac_cv_func_$ac_func=no"
5859 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5860 echo "$ac_t""yes" 1>&6
5861 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5862 cat >> confdefs.h
<<EOF
5863 #define $ac_tr_func 1
5867 echo "$ac_t""no" 1>&6
5871 for ac_func
in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
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 \"\${ac_cv_func_$ac_func+set}\" = set"; then
5876 echo $ac_n "(cached) $ac_c" 1>&6
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. */
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. */
5892 /* The GNU C library defines this for functions which it implements
5893 to always fail with ENOSYS. Some functions are actually named
5894 something starting with __ and the normal name is an alias. */
5895 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5903 if { (eval echo configure
:5904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5905 eval "ac_cv_func_$ac_func=yes"
5907 echo "configure: failed program was:" >&5
5908 cat conftest.
$ac_ext >&5
5910 eval "ac_cv_func_$ac_func=no"
5915 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5916 echo "$ac_t""yes" 1>&6
5917 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5918 cat >> confdefs.h
<<EOF
5919 #define $ac_tr_func 1
5923 echo "$ac_t""no" 1>&6
5927 for ac_func
in open64 _open64 __open64 creat64
5929 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5930 echo "configure:5931: checking for $ac_func" >&5
5931 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
5932 echo $ac_n "(cached) $ac_c" 1>&6
5934 cat > conftest.
$ac_ext <<EOF
5935 #line 5936 "configure"
5936 #include "confdefs.h"
5937 /* System header to define __stub macros and hopefully few prototypes,
5938 which can conflict with char $ac_func(); below. */
5940 /* Override any gcc2 internal prototype to avoid an error. */
5941 /* We use char because int might match the return type of a gcc2
5942 builtin and then its argument prototype would still apply. */
5948 /* The GNU C library defines this for functions which it implements
5949 to always fail with ENOSYS. Some functions are actually named
5950 something starting with __ and the normal name is an alias. */
5951 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5959 if { (eval echo configure
:5960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5961 eval "ac_cv_func_$ac_func=yes"
5963 echo "configure: failed program was:" >&5
5964 cat conftest.
$ac_ext >&5
5966 eval "ac_cv_func_$ac_func=no"
5971 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5972 echo "$ac_t""yes" 1>&6
5973 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5974 cat >> confdefs.h
<<EOF
5975 #define $ac_tr_func 1
5979 echo "$ac_t""no" 1>&6
5985 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
5988 if test x
$ac_cv_func_stat64 = xno
; then
5989 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
5990 echo "configure:5991: checking for stat64 in <sys/stat.h>" >&5
5991 cat > conftest.
$ac_ext <<EOF
5992 #line 5993 "configure"
5993 #include "confdefs.h"
5995 #if defined(HAVE_UNISTD_H)
5998 #include <sys/stat.h>
6001 struct stat64 st64; exit(stat64(".",&st64));
6004 if { (eval echo configure
:6005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6006 ac_cv_func_stat64
=yes
6008 echo "configure: failed program was:" >&5
6009 cat conftest.
$ac_ext >&5
6012 echo "$ac_t""$ac_cv_func_stat64" 1>&6
6013 if test x
$ac_cv_func_stat64 = xyes
; then
6014 cat >> confdefs.h
<<\EOF
6015 #define HAVE_STAT64 1
6021 if test x
$ac_cv_func_lstat64 = xno
; then
6022 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
6023 echo "configure:6024: checking for lstat64 in <sys/stat.h>" >&5
6024 cat > conftest.
$ac_ext <<EOF
6025 #line 6026 "configure"
6026 #include "confdefs.h"
6028 #if defined(HAVE_UNISTD_H)
6031 #include <sys/stat.h>
6034 struct stat64 st64; exit(lstat64(".",&st64));
6037 if { (eval echo configure
:6038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6039 ac_cv_func_lstat64
=yes
6041 echo "configure: failed program was:" >&5
6042 cat conftest.
$ac_ext >&5
6045 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
6046 if test x
$ac_cv_func_lstat64 = xyes
; then
6047 cat >> confdefs.h
<<\EOF
6048 #define HAVE_LSTAT64 1
6054 if test x
$ac_cv_func_fstat64 = xno
; then
6055 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
6056 echo "configure:6057: checking for fstat64 in <sys/stat.h>" >&5
6057 cat > conftest.
$ac_ext <<EOF
6058 #line 6059 "configure"
6059 #include "confdefs.h"
6061 #if defined(HAVE_UNISTD_H)
6064 #include <sys/stat.h>
6067 struct stat64 st64; exit(fstat64(0,&st64));
6070 if { (eval echo configure
:6071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6072 ac_cv_func_fstat64
=yes
6074 echo "configure: failed program was:" >&5
6075 cat conftest.
$ac_ext >&5
6078 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
6079 if test x
$ac_cv_func_fstat64 = xyes
; then
6080 cat >> confdefs.h
<<\EOF
6081 #define HAVE_FSTAT64 1
6088 # If no strcasecmp, check for it in some known places
6089 # It is in -lresolv on ReliantUNIX and UnixWare
6090 # -lresolve *must* follow -lnsl for name resolution to work properly
6093 if test x
$ac_cv_func_strcasecmp = xno
; then
6094 echo $ac_n "checking for strcasecmp in -lresolv""... $ac_c" 1>&6
6095 echo "configure:6096: checking for strcasecmp in -lresolv" >&5
6096 ac_lib_var
=`echo resolv'_'strcasecmp | sed 'y%./+-%__p_%'`
6097 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6098 echo $ac_n "(cached) $ac_c" 1>&6
6100 ac_save_LIBS
="$LIBS"
6101 LIBS
="-lresolv $LIBS"
6102 cat > conftest.
$ac_ext <<EOF
6103 #line 6104 "configure"
6104 #include "confdefs.h"
6105 /* Override any gcc2 internal prototype to avoid an error. */
6106 /* We use char because int might match the return type of a gcc2
6107 builtin and then its argument prototype would still apply. */
6114 if { (eval echo configure
:6115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6116 eval "ac_cv_lib_$ac_lib_var=yes"
6118 echo "configure: failed program was:" >&5
6119 cat conftest.
$ac_ext >&5
6121 eval "ac_cv_lib_$ac_lib_var=no"
6124 LIBS
="$ac_save_LIBS"
6127 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6128 echo "$ac_t""yes" 1>&6
6129 LIBS
="$LIBS -lresolv"
6130 cat >> confdefs.h
<<\EOF
6131 #define HAVE_STRCASECMP 1
6135 echo "$ac_t""no" 1>&6
6141 # Check for the functions putprpwnam, set_auth_parameters,
6142 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
6143 # Needed for OSF1 and HPUX.
6147 *-lsecurity*) for ac_func
in putprpwnam
6149 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6150 echo "configure:6151: checking for $ac_func" >&5
6151 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
6152 echo $ac_n "(cached) $ac_c" 1>&6
6154 cat > conftest.
$ac_ext <<EOF
6155 #line 6156 "configure"
6156 #include "confdefs.h"
6157 /* System header to define __stub macros and hopefully few prototypes,
6158 which can conflict with char $ac_func(); below. */
6160 /* Override any gcc2 internal prototype to avoid an error. */
6161 /* We use char because int might match the return type of a gcc2
6162 builtin and then its argument prototype would still apply. */
6168 /* The GNU C library defines this for functions which it implements
6169 to always fail with ENOSYS. Some functions are actually named
6170 something starting with __ and the normal name is an alias. */
6171 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6179 if { (eval echo configure
:6180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6181 eval "ac_cv_func_$ac_func=yes"
6183 echo "configure: failed program was:" >&5
6184 cat conftest.
$ac_ext >&5
6186 eval "ac_cv_func_$ac_func=no"
6191 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6192 echo "$ac_t""yes" 1>&6
6193 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6194 cat >> confdefs.h
<<EOF
6195 #define $ac_tr_func 1
6199 echo "$ac_t""no" 1>&6
6203 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
6204 echo "configure:6205: checking for putprpwnam in -lsecurity" >&5
6205 ac_lib_var
=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
6206 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6207 echo $ac_n "(cached) $ac_c" 1>&6
6209 ac_save_LIBS
="$LIBS"
6210 LIBS
="-lsecurity $LIBS"
6211 cat > conftest.
$ac_ext <<EOF
6212 #line 6213 "configure"
6213 #include "confdefs.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. */
6223 if { (eval echo configure
:6224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6225 eval "ac_cv_lib_$ac_lib_var=yes"
6227 echo "configure: failed program was:" >&5
6228 cat conftest.
$ac_ext >&5
6230 eval "ac_cv_lib_$ac_lib_var=no"
6233 LIBS
="$ac_save_LIBS"
6236 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6237 echo "$ac_t""yes" 1>&6
6238 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6239 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6240 cat >> confdefs.h
<<EOF
6241 #define $ac_tr_lib 1
6244 LIBS
="-lsecurity $LIBS"
6247 echo "$ac_t""no" 1>&6
6250 for ac_func
in putprpwnam
6252 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6253 echo "configure:6254: checking for $ac_func" >&5
6254 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
6255 echo $ac_n "(cached) $ac_c" 1>&6
6257 cat > conftest.
$ac_ext <<EOF
6258 #line 6259 "configure"
6259 #include "confdefs.h"
6260 /* System header to define __stub macros and hopefully few prototypes,
6261 which can conflict with char $ac_func(); below. */
6263 /* Override any gcc2 internal prototype to avoid an error. */
6264 /* We use char because int might match the return type of a gcc2
6265 builtin and then its argument prototype would still apply. */
6271 /* The GNU C library defines this for functions which it implements
6272 to always fail with ENOSYS. Some functions are actually named
6273 something starting with __ and the normal name is an alias. */
6274 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6282 if { (eval echo configure
:6283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6284 eval "ac_cv_func_$ac_func=yes"
6286 echo "configure: failed program was:" >&5
6287 cat conftest.
$ac_ext >&5
6289 eval "ac_cv_func_$ac_func=no"
6294 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6295 echo "$ac_t""yes" 1>&6
6296 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6297 cat >> confdefs.h
<<EOF
6298 #define $ac_tr_func 1
6302 echo "$ac_t""no" 1>&6
6310 *-lsec*) for ac_func
in putprpwnam
6312 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6313 echo "configure:6314: checking for $ac_func" >&5
6314 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
6315 echo $ac_n "(cached) $ac_c" 1>&6
6317 cat > conftest.
$ac_ext <<EOF
6318 #line 6319 "configure"
6319 #include "confdefs.h"
6320 /* System header to define __stub macros and hopefully few prototypes,
6321 which can conflict with char $ac_func(); below. */
6323 /* Override any gcc2 internal prototype to avoid an error. */
6324 /* We use char because int might match the return type of a gcc2
6325 builtin and then its argument prototype would still apply. */
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)
6342 if { (eval echo configure
:6343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6344 eval "ac_cv_func_$ac_func=yes"
6346 echo "configure: failed program was:" >&5
6347 cat conftest.
$ac_ext >&5
6349 eval "ac_cv_func_$ac_func=no"
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
6362 echo "$ac_t""no" 1>&6
6366 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
6367 echo "configure:6368: checking for putprpwnam in -lsec" >&5
6368 ac_lib_var
=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
6369 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6370 echo $ac_n "(cached) $ac_c" 1>&6
6372 ac_save_LIBS
="$LIBS"
6374 cat > conftest.
$ac_ext <<EOF
6375 #line 6376 "configure"
6376 #include "confdefs.h"
6377 /* Override any gcc2 internal prototype to avoid an error. */
6378 /* We use char because int might match the return type of a gcc2
6379 builtin and then its argument prototype would still apply. */
6386 if { (eval echo configure
:6387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6388 eval "ac_cv_lib_$ac_lib_var=yes"
6390 echo "configure: failed program was:" >&5
6391 cat conftest.
$ac_ext >&5
6393 eval "ac_cv_lib_$ac_lib_var=no"
6396 LIBS
="$ac_save_LIBS"
6399 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6400 echo "$ac_t""yes" 1>&6
6401 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6402 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6403 cat >> confdefs.h
<<EOF
6404 #define $ac_tr_lib 1
6410 echo "$ac_t""no" 1>&6
6413 for ac_func
in putprpwnam
6415 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6416 echo "configure:6417: checking for $ac_func" >&5
6417 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
6418 echo $ac_n "(cached) $ac_c" 1>&6
6420 cat > conftest.
$ac_ext <<EOF
6421 #line 6422 "configure"
6422 #include "confdefs.h"
6423 /* System header to define __stub macros and hopefully few prototypes,
6424 which can conflict with char $ac_func(); below. */
6426 /* Override any gcc2 internal prototype to avoid an error. */
6427 /* We use char because int might match the return type of a gcc2
6428 builtin and then its argument prototype would still apply. */
6434 /* The GNU C library defines this for functions which it implements
6435 to always fail with ENOSYS. Some functions are actually named
6436 something starting with __ and the normal name is an alias. */
6437 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6445 if { (eval echo configure
:6446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6447 eval "ac_cv_func_$ac_func=yes"
6449 echo "configure: failed program was:" >&5
6450 cat conftest.
$ac_ext >&5
6452 eval "ac_cv_func_$ac_func=no"
6457 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6458 echo "$ac_t""yes" 1>&6
6459 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6460 cat >> confdefs.h
<<EOF
6461 #define $ac_tr_func 1
6465 echo "$ac_t""no" 1>&6
6474 *-lsecurity*) for ac_func
in set_auth_parameters
6476 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6477 echo "configure:6478: checking for $ac_func" >&5
6478 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
6479 echo $ac_n "(cached) $ac_c" 1>&6
6481 cat > conftest.
$ac_ext <<EOF
6482 #line 6483 "configure"
6483 #include "confdefs.h"
6484 /* System header to define __stub macros and hopefully few prototypes,
6485 which can conflict with char $ac_func(); below. */
6487 /* Override any gcc2 internal prototype to avoid an error. */
6488 /* We use char because int might match the return type of a gcc2
6489 builtin and then its argument prototype would still apply. */
6495 /* The GNU C library defines this for functions which it implements
6496 to always fail with ENOSYS. Some functions are actually named
6497 something starting with __ and the normal name is an alias. */
6498 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6506 if { (eval echo configure
:6507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6508 eval "ac_cv_func_$ac_func=yes"
6510 echo "configure: failed program was:" >&5
6511 cat conftest.
$ac_ext >&5
6513 eval "ac_cv_func_$ac_func=no"
6518 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6519 echo "$ac_t""yes" 1>&6
6520 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6521 cat >> confdefs.h
<<EOF
6522 #define $ac_tr_func 1
6526 echo "$ac_t""no" 1>&6
6530 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
6531 echo "configure:6532: checking for set_auth_parameters in -lsecurity" >&5
6532 ac_lib_var
=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
6533 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6534 echo $ac_n "(cached) $ac_c" 1>&6
6536 ac_save_LIBS
="$LIBS"
6537 LIBS
="-lsecurity $LIBS"
6538 cat > conftest.
$ac_ext <<EOF
6539 #line 6540 "configure"
6540 #include "confdefs.h"
6541 /* Override any gcc2 internal prototype to avoid an error. */
6542 /* We use char because int might match the return type of a gcc2
6543 builtin and then its argument prototype would still apply. */
6544 char set_auth_parameters();
6547 set_auth_parameters()
6550 if { (eval echo configure
:6551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6552 eval "ac_cv_lib_$ac_lib_var=yes"
6554 echo "configure: failed program was:" >&5
6555 cat conftest.
$ac_ext >&5
6557 eval "ac_cv_lib_$ac_lib_var=no"
6560 LIBS
="$ac_save_LIBS"
6563 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6564 echo "$ac_t""yes" 1>&6
6565 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6566 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6567 cat >> confdefs.h
<<EOF
6568 #define $ac_tr_lib 1
6571 LIBS
="-lsecurity $LIBS"
6574 echo "$ac_t""no" 1>&6
6577 for ac_func
in set_auth_parameters
6579 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6580 echo "configure:6581: checking for $ac_func" >&5
6581 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
6582 echo $ac_n "(cached) $ac_c" 1>&6
6584 cat > conftest.
$ac_ext <<EOF
6585 #line 6586 "configure"
6586 #include "confdefs.h"
6587 /* System header to define __stub macros and hopefully few prototypes,
6588 which can conflict with char $ac_func(); below. */
6590 /* Override any gcc2 internal prototype to avoid an error. */
6591 /* We use char because int might match the return type of a gcc2
6592 builtin and then its argument prototype would still apply. */
6598 /* The GNU C library defines this for functions which it implements
6599 to always fail with ENOSYS. Some functions are actually named
6600 something starting with __ and the normal name is an alias. */
6601 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6609 if { (eval echo configure
:6610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6611 eval "ac_cv_func_$ac_func=yes"
6613 echo "configure: failed program was:" >&5
6614 cat conftest.
$ac_ext >&5
6616 eval "ac_cv_func_$ac_func=no"
6621 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6622 echo "$ac_t""yes" 1>&6
6623 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6624 cat >> confdefs.h
<<EOF
6625 #define $ac_tr_func 1
6629 echo "$ac_t""no" 1>&6
6637 *-lsec*) for ac_func
in set_auth_parameters
6639 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6640 echo "configure:6641: checking for $ac_func" >&5
6641 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
6642 echo $ac_n "(cached) $ac_c" 1>&6
6644 cat > conftest.
$ac_ext <<EOF
6645 #line 6646 "configure"
6646 #include "confdefs.h"
6647 /* System header to define __stub macros and hopefully few prototypes,
6648 which can conflict with char $ac_func(); below. */
6650 /* Override any gcc2 internal prototype to avoid an error. */
6651 /* We use char because int might match the return type of a gcc2
6652 builtin and then its argument prototype would still apply. */
6658 /* The GNU C library defines this for functions which it implements
6659 to always fail with ENOSYS. Some functions are actually named
6660 something starting with __ and the normal name is an alias. */
6661 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6669 if { (eval echo configure
:6670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6671 eval "ac_cv_func_$ac_func=yes"
6673 echo "configure: failed program was:" >&5
6674 cat conftest.
$ac_ext >&5
6676 eval "ac_cv_func_$ac_func=no"
6681 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6682 echo "$ac_t""yes" 1>&6
6683 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6684 cat >> confdefs.h
<<EOF
6685 #define $ac_tr_func 1
6689 echo "$ac_t""no" 1>&6
6693 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
6694 echo "configure:6695: checking for set_auth_parameters in -lsec" >&5
6695 ac_lib_var
=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
6696 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6697 echo $ac_n "(cached) $ac_c" 1>&6
6699 ac_save_LIBS
="$LIBS"
6701 cat > conftest.
$ac_ext <<EOF
6702 #line 6703 "configure"
6703 #include "confdefs.h"
6704 /* Override any gcc2 internal prototype to avoid an error. */
6705 /* We use char because int might match the return type of a gcc2
6706 builtin and then its argument prototype would still apply. */
6707 char set_auth_parameters();
6710 set_auth_parameters()
6713 if { (eval echo configure
:6714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6715 eval "ac_cv_lib_$ac_lib_var=yes"
6717 echo "configure: failed program was:" >&5
6718 cat conftest.
$ac_ext >&5
6720 eval "ac_cv_lib_$ac_lib_var=no"
6723 LIBS
="$ac_save_LIBS"
6726 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6727 echo "$ac_t""yes" 1>&6
6728 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6729 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6730 cat >> confdefs.h
<<EOF
6731 #define $ac_tr_lib 1
6737 echo "$ac_t""no" 1>&6
6740 for ac_func
in set_auth_parameters
6742 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6743 echo "configure:6744: checking for $ac_func" >&5
6744 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
6745 echo $ac_n "(cached) $ac_c" 1>&6
6747 cat > conftest.
$ac_ext <<EOF
6748 #line 6749 "configure"
6749 #include "confdefs.h"
6750 /* System header to define __stub macros and hopefully few prototypes,
6751 which can conflict with char $ac_func(); below. */
6753 /* Override any gcc2 internal prototype to avoid an error. */
6754 /* We use char because int might match the return type of a gcc2
6755 builtin and then its argument prototype would still apply. */
6761 /* The GNU C library defines this for functions which it implements
6762 to always fail with ENOSYS. Some functions are actually named
6763 something starting with __ and the normal name is an alias. */
6764 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6772 if { (eval echo configure
:6773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6774 eval "ac_cv_func_$ac_func=yes"
6776 echo "configure: failed program was:" >&5
6777 cat conftest.
$ac_ext >&5
6779 eval "ac_cv_func_$ac_func=no"
6784 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6785 echo "$ac_t""yes" 1>&6
6786 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6787 cat >> confdefs.h
<<EOF
6788 #define $ac_tr_func 1
6792 echo "$ac_t""no" 1>&6
6800 # UnixWare 7.x has its getspnam in -lgen
6802 *-lgen*) for ac_func
in getspnam
6804 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6805 echo "configure:6806: checking for $ac_func" >&5
6806 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
6807 echo $ac_n "(cached) $ac_c" 1>&6
6809 cat > conftest.
$ac_ext <<EOF
6810 #line 6811 "configure"
6811 #include "confdefs.h"
6812 /* System header to define __stub macros and hopefully few prototypes,
6813 which can conflict with char $ac_func(); below. */
6815 /* Override any gcc2 internal prototype to avoid an error. */
6816 /* We use char because int might match the return type of a gcc2
6817 builtin and then its argument prototype would still apply. */
6823 /* The GNU C library defines this for functions which it implements
6824 to always fail with ENOSYS. Some functions are actually named
6825 something starting with __ and the normal name is an alias. */
6826 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6834 if { (eval echo configure
:6835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6836 eval "ac_cv_func_$ac_func=yes"
6838 echo "configure: failed program was:" >&5
6839 cat conftest.
$ac_ext >&5
6841 eval "ac_cv_func_$ac_func=no"
6846 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6847 echo "$ac_t""yes" 1>&6
6848 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6849 cat >> confdefs.h
<<EOF
6850 #define $ac_tr_func 1
6854 echo "$ac_t""no" 1>&6
6858 *) echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
6859 echo "configure:6860: checking for getspnam in -lgen" >&5
6860 ac_lib_var
=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
6861 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6862 echo $ac_n "(cached) $ac_c" 1>&6
6864 ac_save_LIBS
="$LIBS"
6866 cat > conftest.
$ac_ext <<EOF
6867 #line 6868 "configure"
6868 #include "confdefs.h"
6869 /* Override any gcc2 internal prototype to avoid an error. */
6870 /* We use char because int might match the return type of a gcc2
6871 builtin and then its argument prototype would still apply. */
6878 if { (eval echo configure
:6879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6880 eval "ac_cv_lib_$ac_lib_var=yes"
6882 echo "configure: failed program was:" >&5
6883 cat conftest.
$ac_ext >&5
6885 eval "ac_cv_lib_$ac_lib_var=no"
6888 LIBS
="$ac_save_LIBS"
6891 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6892 echo "$ac_t""yes" 1>&6
6893 ac_tr_lib
=HAVE_LIB
`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6894 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6895 cat >> confdefs.h
<<EOF
6896 #define $ac_tr_lib 1
6902 echo "$ac_t""no" 1>&6
6905 for ac_func
in getspnam
6907 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6908 echo "configure:6909: checking for $ac_func" >&5
6909 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
6910 echo $ac_n "(cached) $ac_c" 1>&6
6912 cat > conftest.
$ac_ext <<EOF
6913 #line 6914 "configure"
6914 #include "confdefs.h"
6915 /* System header to define __stub macros and hopefully few prototypes,
6916 which can conflict with char $ac_func(); below. */
6918 /* Override any gcc2 internal prototype to avoid an error. */
6919 /* We use char because int might match the return type of a gcc2
6920 builtin and then its argument prototype would still apply. */
6926 /* The GNU C library defines this for functions which it implements
6927 to always fail with ENOSYS. Some functions are actually named
6928 something starting with __ and the normal name is an alias. */
6929 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6937 if { (eval echo configure
:6938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6939 eval "ac_cv_func_$ac_func=yes"
6941 echo "configure: failed program was:" >&5
6942 cat conftest.
$ac_ext >&5
6944 eval "ac_cv_func_$ac_func=no"
6949 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6950 echo "$ac_t""yes" 1>&6
6951 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6952 cat >> confdefs.h
<<EOF
6953 #define $ac_tr_func 1
6957 echo "$ac_t""no" 1>&6
6966 *-lsecurity*) for ac_func
in getspnam
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 \"\${ac_cv_func_$ac_func+set}\" = set"; then
6971 echo $ac_n "(cached) $ac_c" 1>&6
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. */
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. */
6987 /* The GNU C library defines this for functions which it implements
6988 to always fail with ENOSYS. Some functions are actually named
6989 something starting with __ and the normal name is an alias. */
6990 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6998 if { (eval echo configure
:6999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7000 eval "ac_cv_func_$ac_func=yes"
7002 echo "configure: failed program was:" >&5
7003 cat conftest.
$ac_ext >&5
7005 eval "ac_cv_func_$ac_func=no"
7010 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7011 echo "$ac_t""yes" 1>&6
7012 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7013 cat >> confdefs.h
<<EOF
7014 #define $ac_tr_func 1
7018 echo "$ac_t""no" 1>&6
7022 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
7023 echo "configure:7024: checking for getspnam in -lsecurity" >&5
7024 ac_lib_var
=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
7025 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
7026 echo $ac_n "(cached) $ac_c" 1>&6
7028 ac_save_LIBS
="$LIBS"
7029 LIBS
="-lsecurity $LIBS"
7030 cat > conftest.
$ac_ext <<EOF
7031 #line 7032 "configure"
7032 #include "confdefs.h"
7033 /* Override any gcc2 internal prototype to avoid an error. */
7034 /* We use char because int might match the return type of a gcc2
7035 builtin and then its argument prototype would still apply. */
7042 if { (eval echo configure
:7043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7044 eval "ac_cv_lib_$ac_lib_var=yes"
7046 echo "configure: failed program was:" >&5
7047 cat conftest.
$ac_ext >&5
7049 eval "ac_cv_lib_$ac_lib_var=no"
7052 LIBS
="$ac_save_LIBS"
7055 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7056 echo "$ac_t""yes" 1>&6
7057 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7058 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7059 cat >> confdefs.h
<<EOF
7060 #define $ac_tr_lib 1
7063 LIBS
="-lsecurity $LIBS"
7066 echo "$ac_t""no" 1>&6
7069 for ac_func
in getspnam
7071 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7072 echo "configure:7073: checking for $ac_func" >&5
7073 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
7074 echo $ac_n "(cached) $ac_c" 1>&6
7076 cat > conftest.
$ac_ext <<EOF
7077 #line 7078 "configure"
7078 #include "confdefs.h"
7079 /* System header to define __stub macros and hopefully few prototypes,
7080 which can conflict with char $ac_func(); below. */
7082 /* Override any gcc2 internal prototype to avoid an error. */
7083 /* We use char because int might match the return type of a gcc2
7084 builtin and then its argument prototype would still apply. */
7090 /* The GNU C library defines this for functions which it implements
7091 to always fail with ENOSYS. Some functions are actually named
7092 something starting with __ and the normal name is an alias. */
7093 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7101 if { (eval echo configure
:7102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7103 eval "ac_cv_func_$ac_func=yes"
7105 echo "configure: failed program was:" >&5
7106 cat conftest.
$ac_ext >&5
7108 eval "ac_cv_func_$ac_func=no"
7113 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7114 echo "$ac_t""yes" 1>&6
7115 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7116 cat >> confdefs.h
<<EOF
7117 #define $ac_tr_func 1
7121 echo "$ac_t""no" 1>&6
7129 *-lsec*) for ac_func
in getspnam
7131 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7132 echo "configure:7133: checking for $ac_func" >&5
7133 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
7134 echo $ac_n "(cached) $ac_c" 1>&6
7136 cat > conftest.
$ac_ext <<EOF
7137 #line 7138 "configure"
7138 #include "confdefs.h"
7139 /* System header to define __stub macros and hopefully few prototypes,
7140 which can conflict with char $ac_func(); below. */
7142 /* Override any gcc2 internal prototype to avoid an error. */
7143 /* We use char because int might match the return type of a gcc2
7144 builtin and then its argument prototype would still apply. */
7150 /* The GNU C library defines this for functions which it implements
7151 to always fail with ENOSYS. Some functions are actually named
7152 something starting with __ and the normal name is an alias. */
7153 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7161 if { (eval echo configure
:7162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7163 eval "ac_cv_func_$ac_func=yes"
7165 echo "configure: failed program was:" >&5
7166 cat conftest.
$ac_ext >&5
7168 eval "ac_cv_func_$ac_func=no"
7173 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7174 echo "$ac_t""yes" 1>&6
7175 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7176 cat >> confdefs.h
<<EOF
7177 #define $ac_tr_func 1
7181 echo "$ac_t""no" 1>&6
7185 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
7186 echo "configure:7187: checking for getspnam in -lsec" >&5
7187 ac_lib_var
=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
7188 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
7189 echo $ac_n "(cached) $ac_c" 1>&6
7191 ac_save_LIBS
="$LIBS"
7193 cat > conftest.
$ac_ext <<EOF
7194 #line 7195 "configure"
7195 #include "confdefs.h"
7196 /* Override any gcc2 internal prototype to avoid an error. */
7197 /* We use char because int might match the return type of a gcc2
7198 builtin and then its argument prototype would still apply. */
7205 if { (eval echo configure
:7206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7207 eval "ac_cv_lib_$ac_lib_var=yes"
7209 echo "configure: failed program was:" >&5
7210 cat conftest.
$ac_ext >&5
7212 eval "ac_cv_lib_$ac_lib_var=no"
7215 LIBS
="$ac_save_LIBS"
7218 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7219 echo "$ac_t""yes" 1>&6
7220 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7221 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7222 cat >> confdefs.h
<<EOF
7223 #define $ac_tr_lib 1
7229 echo "$ac_t""no" 1>&6
7232 for ac_func
in getspnam
7234 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7235 echo "configure:7236: checking for $ac_func" >&5
7236 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
7237 echo $ac_n "(cached) $ac_c" 1>&6
7239 cat > conftest.
$ac_ext <<EOF
7240 #line 7241 "configure"
7241 #include "confdefs.h"
7242 /* System header to define __stub macros and hopefully few prototypes,
7243 which can conflict with char $ac_func(); below. */
7245 /* Override any gcc2 internal prototype to avoid an error. */
7246 /* We use char because int might match the return type of a gcc2
7247 builtin and then its argument prototype would still apply. */
7253 /* The GNU C library defines this for functions which it implements
7254 to always fail with ENOSYS. Some functions are actually named
7255 something starting with __ and the normal name is an alias. */
7256 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7264 if { (eval echo configure
:7265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7266 eval "ac_cv_func_$ac_func=yes"
7268 echo "configure: failed program was:" >&5
7269 cat conftest.
$ac_ext >&5
7271 eval "ac_cv_func_$ac_func=no"
7276 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7277 echo "$ac_t""yes" 1>&6
7278 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7279 cat >> confdefs.h
<<EOF
7280 #define $ac_tr_func 1
7284 echo "$ac_t""no" 1>&6
7293 *-lsecurity*) for ac_func
in bigcrypt
7295 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7296 echo "configure:7297: checking for $ac_func" >&5
7297 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
7298 echo $ac_n "(cached) $ac_c" 1>&6
7300 cat > conftest.
$ac_ext <<EOF
7301 #line 7302 "configure"
7302 #include "confdefs.h"
7303 /* System header to define __stub macros and hopefully few prototypes,
7304 which can conflict with char $ac_func(); below. */
7306 /* Override any gcc2 internal prototype to avoid an error. */
7307 /* We use char because int might match the return type of a gcc2
7308 builtin and then its argument prototype would still apply. */
7314 /* The GNU C library defines this for functions which it implements
7315 to always fail with ENOSYS. Some functions are actually named
7316 something starting with __ and the normal name is an alias. */
7317 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7325 if { (eval echo configure
:7326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7327 eval "ac_cv_func_$ac_func=yes"
7329 echo "configure: failed program was:" >&5
7330 cat conftest.
$ac_ext >&5
7332 eval "ac_cv_func_$ac_func=no"
7337 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7338 echo "$ac_t""yes" 1>&6
7339 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7340 cat >> confdefs.h
<<EOF
7341 #define $ac_tr_func 1
7345 echo "$ac_t""no" 1>&6
7349 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
7350 echo "configure:7351: checking for bigcrypt in -lsecurity" >&5
7351 ac_lib_var
=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
7352 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
7353 echo $ac_n "(cached) $ac_c" 1>&6
7355 ac_save_LIBS
="$LIBS"
7356 LIBS
="-lsecurity $LIBS"
7357 cat > conftest.
$ac_ext <<EOF
7358 #line 7359 "configure"
7359 #include "confdefs.h"
7360 /* Override any gcc2 internal prototype to avoid an error. */
7361 /* We use char because int might match the return type of a gcc2
7362 builtin and then its argument prototype would still apply. */
7369 if { (eval echo configure
:7370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7371 eval "ac_cv_lib_$ac_lib_var=yes"
7373 echo "configure: failed program was:" >&5
7374 cat conftest.
$ac_ext >&5
7376 eval "ac_cv_lib_$ac_lib_var=no"
7379 LIBS
="$ac_save_LIBS"
7382 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7383 echo "$ac_t""yes" 1>&6
7384 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7385 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7386 cat >> confdefs.h
<<EOF
7387 #define $ac_tr_lib 1
7390 LIBS
="-lsecurity $LIBS"
7393 echo "$ac_t""no" 1>&6
7396 for ac_func
in bigcrypt
7398 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7399 echo "configure:7400: checking for $ac_func" >&5
7400 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
7401 echo $ac_n "(cached) $ac_c" 1>&6
7403 cat > conftest.
$ac_ext <<EOF
7404 #line 7405 "configure"
7405 #include "confdefs.h"
7406 /* System header to define __stub macros and hopefully few prototypes,
7407 which can conflict with char $ac_func(); below. */
7409 /* Override any gcc2 internal prototype to avoid an error. */
7410 /* We use char because int might match the return type of a gcc2
7411 builtin and then its argument prototype would still apply. */
7417 /* The GNU C library defines this for functions which it implements
7418 to always fail with ENOSYS. Some functions are actually named
7419 something starting with __ and the normal name is an alias. */
7420 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7428 if { (eval echo configure
:7429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7430 eval "ac_cv_func_$ac_func=yes"
7432 echo "configure: failed program was:" >&5
7433 cat conftest.
$ac_ext >&5
7435 eval "ac_cv_func_$ac_func=no"
7440 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7441 echo "$ac_t""yes" 1>&6
7442 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7443 cat >> confdefs.h
<<EOF
7444 #define $ac_tr_func 1
7448 echo "$ac_t""no" 1>&6
7456 *-lsec*) for ac_func
in bigcrypt
7458 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7459 echo "configure:7460: checking for $ac_func" >&5
7460 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
7461 echo $ac_n "(cached) $ac_c" 1>&6
7463 cat > conftest.
$ac_ext <<EOF
7464 #line 7465 "configure"
7465 #include "confdefs.h"
7466 /* System header to define __stub macros and hopefully few prototypes,
7467 which can conflict with char $ac_func(); below. */
7469 /* Override any gcc2 internal prototype to avoid an error. */
7470 /* We use char because int might match the return type of a gcc2
7471 builtin and then its argument prototype would still apply. */
7477 /* The GNU C library defines this for functions which it implements
7478 to always fail with ENOSYS. Some functions are actually named
7479 something starting with __ and the normal name is an alias. */
7480 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7488 if { (eval echo configure
:7489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7490 eval "ac_cv_func_$ac_func=yes"
7492 echo "configure: failed program was:" >&5
7493 cat conftest.
$ac_ext >&5
7495 eval "ac_cv_func_$ac_func=no"
7500 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7501 echo "$ac_t""yes" 1>&6
7502 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7503 cat >> confdefs.h
<<EOF
7504 #define $ac_tr_func 1
7508 echo "$ac_t""no" 1>&6
7512 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
7513 echo "configure:7514: checking for bigcrypt in -lsec" >&5
7514 ac_lib_var
=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
7515 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
7516 echo $ac_n "(cached) $ac_c" 1>&6
7518 ac_save_LIBS
="$LIBS"
7520 cat > conftest.
$ac_ext <<EOF
7521 #line 7522 "configure"
7522 #include "confdefs.h"
7523 /* Override any gcc2 internal prototype to avoid an error. */
7524 /* We use char because int might match the return type of a gcc2
7525 builtin and then its argument prototype would still apply. */
7532 if { (eval echo configure
:7533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7534 eval "ac_cv_lib_$ac_lib_var=yes"
7536 echo "configure: failed program was:" >&5
7537 cat conftest.
$ac_ext >&5
7539 eval "ac_cv_lib_$ac_lib_var=no"
7542 LIBS
="$ac_save_LIBS"
7545 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7546 echo "$ac_t""yes" 1>&6
7547 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7548 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7549 cat >> confdefs.h
<<EOF
7550 #define $ac_tr_lib 1
7556 echo "$ac_t""no" 1>&6
7559 for ac_func
in bigcrypt
7561 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7562 echo "configure:7563: checking for $ac_func" >&5
7563 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
7564 echo $ac_n "(cached) $ac_c" 1>&6
7566 cat > conftest.
$ac_ext <<EOF
7567 #line 7568 "configure"
7568 #include "confdefs.h"
7569 /* System header to define __stub macros and hopefully few prototypes,
7570 which can conflict with char $ac_func(); below. */
7572 /* Override any gcc2 internal prototype to avoid an error. */
7573 /* We use char because int might match the return type of a gcc2
7574 builtin and then its argument prototype would still apply. */
7580 /* The GNU C library defines this for functions which it implements
7581 to always fail with ENOSYS. Some functions are actually named
7582 something starting with __ and the normal name is an alias. */
7583 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7591 if { (eval echo configure
:7592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7593 eval "ac_cv_func_$ac_func=yes"
7595 echo "configure: failed program was:" >&5
7596 cat conftest.
$ac_ext >&5
7598 eval "ac_cv_func_$ac_func=no"
7603 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7604 echo "$ac_t""yes" 1>&6
7605 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7606 cat >> confdefs.h
<<EOF
7607 #define $ac_tr_func 1
7611 echo "$ac_t""no" 1>&6
7620 *-lsecurity*) for ac_func
in getprpwnam
7622 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7623 echo "configure:7624: checking for $ac_func" >&5
7624 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
7625 echo $ac_n "(cached) $ac_c" 1>&6
7627 cat > conftest.
$ac_ext <<EOF
7628 #line 7629 "configure"
7629 #include "confdefs.h"
7630 /* System header to define __stub macros and hopefully few prototypes,
7631 which can conflict with char $ac_func(); below. */
7633 /* Override any gcc2 internal prototype to avoid an error. */
7634 /* We use char because int might match the return type of a gcc2
7635 builtin and then its argument prototype would still apply. */
7641 /* The GNU C library defines this for functions which it implements
7642 to always fail with ENOSYS. Some functions are actually named
7643 something starting with __ and the normal name is an alias. */
7644 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7652 if { (eval echo configure
:7653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7654 eval "ac_cv_func_$ac_func=yes"
7656 echo "configure: failed program was:" >&5
7657 cat conftest.
$ac_ext >&5
7659 eval "ac_cv_func_$ac_func=no"
7664 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7665 echo "$ac_t""yes" 1>&6
7666 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7667 cat >> confdefs.h
<<EOF
7668 #define $ac_tr_func 1
7672 echo "$ac_t""no" 1>&6
7676 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
7677 echo "configure:7678: checking for getprpwnam in -lsecurity" >&5
7678 ac_lib_var
=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
7679 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
7680 echo $ac_n "(cached) $ac_c" 1>&6
7682 ac_save_LIBS
="$LIBS"
7683 LIBS
="-lsecurity $LIBS"
7684 cat > conftest.
$ac_ext <<EOF
7685 #line 7686 "configure"
7686 #include "confdefs.h"
7687 /* Override any gcc2 internal prototype to avoid an error. */
7688 /* We use char because int might match the return type of a gcc2
7689 builtin and then its argument prototype would still apply. */
7696 if { (eval echo configure
:7697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7698 eval "ac_cv_lib_$ac_lib_var=yes"
7700 echo "configure: failed program was:" >&5
7701 cat conftest.
$ac_ext >&5
7703 eval "ac_cv_lib_$ac_lib_var=no"
7706 LIBS
="$ac_save_LIBS"
7709 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7710 echo "$ac_t""yes" 1>&6
7711 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7712 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7713 cat >> confdefs.h
<<EOF
7714 #define $ac_tr_lib 1
7717 LIBS
="-lsecurity $LIBS"
7720 echo "$ac_t""no" 1>&6
7723 for ac_func
in getprpwnam
7725 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7726 echo "configure:7727: checking for $ac_func" >&5
7727 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
7728 echo $ac_n "(cached) $ac_c" 1>&6
7730 cat > conftest.
$ac_ext <<EOF
7731 #line 7732 "configure"
7732 #include "confdefs.h"
7733 /* System header to define __stub macros and hopefully few prototypes,
7734 which can conflict with char $ac_func(); below. */
7736 /* Override any gcc2 internal prototype to avoid an error. */
7737 /* We use char because int might match the return type of a gcc2
7738 builtin and then its argument prototype would still apply. */
7744 /* The GNU C library defines this for functions which it implements
7745 to always fail with ENOSYS. Some functions are actually named
7746 something starting with __ and the normal name is an alias. */
7747 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7755 if { (eval echo configure
:7756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7757 eval "ac_cv_func_$ac_func=yes"
7759 echo "configure: failed program was:" >&5
7760 cat conftest.
$ac_ext >&5
7762 eval "ac_cv_func_$ac_func=no"
7767 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7768 echo "$ac_t""yes" 1>&6
7769 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7770 cat >> confdefs.h
<<EOF
7771 #define $ac_tr_func 1
7775 echo "$ac_t""no" 1>&6
7783 *-lsec*) for ac_func
in getprpwnam
7785 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7786 echo "configure:7787: checking for $ac_func" >&5
7787 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
7788 echo $ac_n "(cached) $ac_c" 1>&6
7790 cat > conftest.
$ac_ext <<EOF
7791 #line 7792 "configure"
7792 #include "confdefs.h"
7793 /* System header to define __stub macros and hopefully few prototypes,
7794 which can conflict with char $ac_func(); below. */
7796 /* Override any gcc2 internal prototype to avoid an error. */
7797 /* We use char because int might match the return type of a gcc2
7798 builtin and then its argument prototype would still apply. */
7804 /* The GNU C library defines this for functions which it implements
7805 to always fail with ENOSYS. Some functions are actually named
7806 something starting with __ and the normal name is an alias. */
7807 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7815 if { (eval echo configure
:7816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7817 eval "ac_cv_func_$ac_func=yes"
7819 echo "configure: failed program was:" >&5
7820 cat conftest.
$ac_ext >&5
7822 eval "ac_cv_func_$ac_func=no"
7827 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7828 echo "$ac_t""yes" 1>&6
7829 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7830 cat >> confdefs.h
<<EOF
7831 #define $ac_tr_func 1
7835 echo "$ac_t""no" 1>&6
7839 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
7840 echo "configure:7841: checking for getprpwnam in -lsec" >&5
7841 ac_lib_var
=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
7842 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
7843 echo $ac_n "(cached) $ac_c" 1>&6
7845 ac_save_LIBS
="$LIBS"
7847 cat > conftest.
$ac_ext <<EOF
7848 #line 7849 "configure"
7849 #include "confdefs.h"
7850 /* Override any gcc2 internal prototype to avoid an error. */
7851 /* We use char because int might match the return type of a gcc2
7852 builtin and then its argument prototype would still apply. */
7859 if { (eval echo configure
:7860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7861 eval "ac_cv_lib_$ac_lib_var=yes"
7863 echo "configure: failed program was:" >&5
7864 cat conftest.
$ac_ext >&5
7866 eval "ac_cv_lib_$ac_lib_var=no"
7869 LIBS
="$ac_save_LIBS"
7872 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7873 echo "$ac_t""yes" 1>&6
7874 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7875 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7876 cat >> confdefs.h
<<EOF
7877 #define $ac_tr_lib 1
7883 echo "$ac_t""no" 1>&6
7886 for ac_func
in getprpwnam
7888 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7889 echo "configure:7890: checking for $ac_func" >&5
7890 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
7891 echo $ac_n "(cached) $ac_c" 1>&6
7893 cat > conftest.
$ac_ext <<EOF
7894 #line 7895 "configure"
7895 #include "confdefs.h"
7896 /* System header to define __stub macros and hopefully few prototypes,
7897 which can conflict with char $ac_func(); below. */
7899 /* Override any gcc2 internal prototype to avoid an error. */
7900 /* We use char because int might match the return type of a gcc2
7901 builtin and then its argument prototype would still apply. */
7907 /* The GNU C library defines this for functions which it implements
7908 to always fail with ENOSYS. Some functions are actually named
7909 something starting with __ and the normal name is an alias. */
7910 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7918 if { (eval echo configure
:7919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7920 eval "ac_cv_func_$ac_func=yes"
7922 echo "configure: failed program was:" >&5
7923 cat conftest.
$ac_ext >&5
7925 eval "ac_cv_func_$ac_func=no"
7930 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7931 echo "$ac_t""yes" 1>&6
7932 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7933 cat >> confdefs.h
<<EOF
7934 #define $ac_tr_func 1
7938 echo "$ac_t""no" 1>&6
7946 # this bit needs to be modified for each OS that is suported by
7947 # smbwrapper. You need to specify how to created a shared library and
7948 # how to compile C code to produce PIC object files
7950 # these are the defaults, good for lots of systems
7956 # and these are for particular systems
7958 *linux
*) cat >> confdefs.h
<<\EOF
7962 *solaris
*) cat >> confdefs.h
<<\EOF
7968 *sunos
*) cat >> confdefs.h
<<\EOF
7974 *bsd
*) LDSHFLAGS
="-shared -Bshareable"
7976 *irix
*) cat >> confdefs.h
<<\EOF
7981 *irix6
*) cat >> confdefs.h
<<\EOF
7987 ATTEMPT_WRAP32_BUILD
=yes
7989 *aix
*) cat >> confdefs.h
<<\EOF
7993 *hpux
*) cat >> confdefs.h
<<\EOF
7998 # Use special PIC flags for the native HP-UX compiler.
7999 if test $ac_cv_prog_cc_Ae = yes; then
8004 *qnx
*) cat >> confdefs.h
<<\EOF
8008 *osf
*) cat >> confdefs.h
<<\EOF
8012 *sco
*) cat >> confdefs.h
<<\EOF
8016 *next2
*) cat >> confdefs.h
<<\EOF
8020 *dgux
*) # Extract the first word of "groff", so it can be a program name with args.
8021 set dummy
groff; ac_word
=$2
8022 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8023 echo "configure:8024: checking for $ac_word" >&5
8024 if eval "test \"\${ac_cv_prog_ROFF+set}\" = set"; then
8025 echo $ac_n "(cached) $ac_c" 1>&6
8027 if test -n "$ROFF"; then
8028 ac_cv_prog_ROFF
="$ROFF" # Let the user override the test.
8030 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
8032 for ac_dir
in $ac_dummy; do
8033 test -z "$ac_dir" && ac_dir
=.
8034 if test -f $ac_dir/$ac_word; then
8035 ac_cv_prog_ROFF
="groff -etpsR -Tascii -man"
8042 ROFF
="$ac_cv_prog_ROFF"
8043 if test -n "$ROFF"; then
8044 echo "$ac_t""$ROFF" 1>&6
8046 echo "$ac_t""no" 1>&6
8051 *-univel-*) if test "$GCC" != yes ; then
8052 cat >> confdefs.h
<<\EOF
8053 #define HAVE_MEMSET 1
8059 *mips-sni-sysv4
*) cat >> confdefs.h
<<\EOF
8060 #define RELIANTUNIX 1
8066 if test "$GCC" != yes ; then
8067 cat >> confdefs.h
<<\EOF
8068 #define HAVE_MEMSET 1
8076 # try to work out how to produce pic code with this compiler
8077 echo $ac_n "checking whether ${CC-cc} accepts -fpic""... $ac_c" 1>&6
8078 echo "configure:8079: checking whether ${CC-cc} accepts -fpic" >&5
8079 if eval "test \"\${ac_cv_prog_cc_fpic+set}\" = set"; then
8080 echo $ac_n "(cached) $ac_c" 1>&6
8082 echo 'void f(){}' > conftest.c
8083 if test -z "`${CC-cc} -fpic -c conftest.c 2>&1`"; then
8084 ac_cv_prog_cc_fpic
=yes
8086 ac_cv_prog_cc_fpic
=no
8092 echo "$ac_t""$ac_cv_prog_cc_fpic" 1>&6
8093 if test $ac_cv_prog_cc_fpic = yes; then
8096 if test x
$PICFLAG = x
; then
8097 echo $ac_n "checking whether ${CC-cc} accepts -Kpic""... $ac_c" 1>&6
8098 echo "configure:8099: checking whether ${CC-cc} accepts -Kpic" >&5
8099 if eval "test \"\${ac_cv_prog_cc_Kpic+set}\" = set"; then
8100 echo $ac_n "(cached) $ac_c" 1>&6
8102 echo 'void f(){}' > conftest.c
8103 if test -z "`${CC-cc} -Kpic -c conftest.c 2>&1`"; then
8104 ac_cv_prog_cc_Kpic
=yes
8106 ac_cv_prog_cc_Kpic
=no
8112 echo "$ac_t""$ac_cv_prog_cc_Kpic" 1>&6
8113 if test $ac_cv_prog_cc_Kpic = yes; then
8117 if test x
$PICFLAG = x
; then
8118 echo $ac_n "checking whether ${CC-cc} accepts -KPIC""... $ac_c" 1>&6
8119 echo "configure:8120: checking whether ${CC-cc} accepts -KPIC" >&5
8120 if eval "test \"\${ac_cv_prog_cc_KPIC+set}\" = set"; then
8121 echo $ac_n "(cached) $ac_c" 1>&6
8123 echo 'void f(){}' > conftest.c
8124 if test -z "`${CC-cc} -KPIC -c conftest.c 2>&1`"; then
8125 ac_cv_prog_cc_KPIC
=yes
8127 ac_cv_prog_cc_KPIC
=no
8133 echo "$ac_t""$ac_cv_prog_cc_KPIC" 1>&6
8134 if test $ac_cv_prog_cc_KPIC = yes; then
8141 echo $ac_n "checking for long long""... $ac_c" 1>&6
8142 echo "configure:8143: checking for long long" >&5
8143 if eval "test \"\${samba_cv_have_longlong+set}\" = set"; then
8144 echo $ac_n "(cached) $ac_c" 1>&6
8147 if test "$cross_compiling" = yes; then
8148 samba_cv_have_longlong
=cross
8150 cat > conftest.
$ac_ext <<EOF
8151 #line 8152 "configure"
8152 #include "confdefs.h"
8154 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
8156 if { (eval echo configure
:8157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8158 samba_cv_have_longlong
=yes
8160 echo "configure: failed program was:" >&5
8161 cat conftest.
$ac_ext >&5
8163 samba_cv_have_longlong
=no
8170 echo "$ac_t""$samba_cv_have_longlong" 1>&6
8171 if test x
"$samba_cv_have_longlong" = x
"yes"; then
8172 cat >> confdefs.h
<<\EOF
8173 #define HAVE_LONGLONG 1
8178 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
8179 echo "configure:8180: checking for 64 bit off_t" >&5
8180 if eval "test \"\${samba_cv_SIZEOF_OFF_T+set}\" = set"; then
8181 echo $ac_n "(cached) $ac_c" 1>&6
8184 if test "$cross_compiling" = yes; then
8185 samba_cv_SIZEOF_OFF_T
=cross
8187 cat > conftest.
$ac_ext <<EOF
8188 #line 8189 "configure"
8189 #include "confdefs.h"
8191 #include <sys/stat.h>
8192 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
8194 if { (eval echo configure
:8195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8196 samba_cv_SIZEOF_OFF_T
=yes
8198 echo "configure: failed program was:" >&5
8199 cat conftest.
$ac_ext >&5
8201 samba_cv_SIZEOF_OFF_T
=no
8208 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
8209 if test x
"$samba_cv_SIZEOF_OFF_T" = x
"yes"; then
8210 cat >> confdefs.h
<<\EOF
8211 #define SIZEOF_OFF_T 8
8216 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
8217 echo "configure:8218: checking for off64_t" >&5
8218 if eval "test \"\${samba_cv_HAVE_OFF64_T+set}\" = set"; then
8219 echo $ac_n "(cached) $ac_c" 1>&6
8222 if test "$cross_compiling" = yes; then
8223 samba_cv_HAVE_OFF64_T
=cross
8225 cat > conftest.
$ac_ext <<EOF
8226 #line 8227 "configure"
8227 #include "confdefs.h"
8229 #if defined(HAVE_UNISTD_H)
8233 #include <sys/stat.h>
8234 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8236 if { (eval echo configure
:8237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8238 samba_cv_HAVE_OFF64_T
=yes
8240 echo "configure: failed program was:" >&5
8241 cat conftest.
$ac_ext >&5
8243 samba_cv_HAVE_OFF64_T
=no
8250 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
8251 if test x
"$samba_cv_HAVE_OFF64_T" = x
"yes"; then
8252 cat >> confdefs.h
<<\EOF
8253 #define HAVE_OFF64_T 1
8258 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
8259 echo "configure:8260: checking for 64 bit ino_t" >&5
8260 if eval "test \"\${samba_cv_SIZEOF_INO_T+set}\" = set"; then
8261 echo $ac_n "(cached) $ac_c" 1>&6
8264 if test "$cross_compiling" = yes; then
8265 samba_cv_SIZEOF_INO_T
=cross
8267 cat > conftest.
$ac_ext <<EOF
8268 #line 8269 "configure"
8269 #include "confdefs.h"
8271 #include <sys/stat.h>
8272 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
8274 if { (eval echo configure
:8275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8276 samba_cv_SIZEOF_INO_T
=yes
8278 echo "configure: failed program was:" >&5
8279 cat conftest.
$ac_ext >&5
8281 samba_cv_SIZEOF_INO_T
=no
8288 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
8289 if test x
"$samba_cv_SIZEOF_INO_T" = x
"yes"; then
8290 cat >> confdefs.h
<<\EOF
8291 #define SIZEOF_INO_T 8
8296 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
8297 echo "configure:8298: checking for ino64_t" >&5
8298 if eval "test \"\${samba_cv_HAVE_INO64_T+set}\" = set"; then
8299 echo $ac_n "(cached) $ac_c" 1>&6
8302 if test "$cross_compiling" = yes; then
8303 samba_cv_HAVE_INO64_T
=cross
8305 cat > conftest.
$ac_ext <<EOF
8306 #line 8307 "configure"
8307 #include "confdefs.h"
8309 #if defined(HAVE_UNISTD_H)
8313 #include <sys/stat.h>
8314 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8316 if { (eval echo configure
:8317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8318 samba_cv_HAVE_INO64_T
=yes
8320 echo "configure: failed program was:" >&5
8321 cat conftest.
$ac_ext >&5
8323 samba_cv_HAVE_INO64_T
=no
8330 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
8331 if test x
"$samba_cv_HAVE_INO64_T" = x
"yes"; then
8332 cat >> confdefs.h
<<\EOF
8333 #define HAVE_INO64_T 1
8338 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
8339 echo "configure:8340: checking for struct dirent64" >&5
8340 if eval "test \"\${samba_cv_HAVE_STRUCT_DIRENT64+set}\" = set"; then
8341 echo $ac_n "(cached) $ac_c" 1>&6
8344 cat > conftest.
$ac_ext <<EOF
8345 #line 8346 "configure"
8346 #include "confdefs.h"
8348 #if defined(HAVE_UNISTD_H)
8351 #include <sys/types.h>
8357 if { (eval echo configure
:8358: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8359 samba_cv_HAVE_STRUCT_DIRENT64
=yes
8361 echo "configure: failed program was:" >&5
8362 cat conftest.
$ac_ext >&5
8364 samba_cv_HAVE_STRUCT_DIRENT64
=no
8369 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
8370 if test x
"$samba_cv_HAVE_STRUCT_DIRENT64" = x
"yes"; then
8371 cat >> confdefs.h
<<\EOF
8372 #define HAVE_STRUCT_DIRENT64 1
8377 echo $ac_n "checking for union semun""... $ac_c" 1>&6
8378 echo "configure:8379: checking for union semun" >&5
8379 if eval "test \"\${samba_cv_HAVE_UNION_SEMUN+set}\" = set"; then
8380 echo $ac_n "(cached) $ac_c" 1>&6
8383 if test "$cross_compiling" = yes; then
8384 samba_cv_HAVE_UNION_SEMUN
=cross
8386 cat > conftest.
$ac_ext <<EOF
8387 #line 8388 "configure"
8388 #include "confdefs.h"
8390 #include <sys/types.h>
8391 #include <sys/ipc.h>
8392 #include <sys/sem.h>
8393 main() { union semun ss; exit(0); }
8395 if { (eval echo configure
:8396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8397 samba_cv_HAVE_UNION_SEMUN
=yes
8399 echo "configure: failed program was:" >&5
8400 cat conftest.
$ac_ext >&5
8402 samba_cv_HAVE_UNION_SEMUN
=no
8409 echo "$ac_t""$samba_cv_HAVE_UNION_SEMUN" 1>&6
8410 if test x
"$samba_cv_HAVE_UNION_SEMUN" = x
"yes"; then
8411 cat >> confdefs.h
<<\EOF
8412 #define HAVE_UNION_SEMUN 1
8417 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
8418 echo "configure:8419: checking for unsigned char" >&5
8419 if eval "test \"\${samba_cv_HAVE_UNSIGNED_CHAR+set}\" = set"; then
8420 echo $ac_n "(cached) $ac_c" 1>&6
8423 if test "$cross_compiling" = yes; then
8424 samba_cv_HAVE_UNSIGNED_CHAR
=cross
8426 cat > conftest.
$ac_ext <<EOF
8427 #line 8428 "configure"
8428 #include "confdefs.h"
8430 main() { char c; c=250; exit((c > 0)?0:1); }
8432 if { (eval echo configure
:8433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8434 samba_cv_HAVE_UNSIGNED_CHAR
=yes
8436 echo "configure: failed program was:" >&5
8437 cat conftest.
$ac_ext >&5
8439 samba_cv_HAVE_UNSIGNED_CHAR
=no
8446 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
8447 if test x
"$samba_cv_HAVE_UNSIGNED_CHAR" = x
"yes"; then
8448 cat >> confdefs.h
<<\EOF
8449 #define HAVE_UNSIGNED_CHAR 1
8454 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
8455 echo "configure:8456: checking for sin_len in sock" >&5
8456 if eval "test \"\${samba_cv_HAVE_SOCK_SIN_LEN+set}\" = set"; then
8457 echo $ac_n "(cached) $ac_c" 1>&6
8460 cat > conftest.
$ac_ext <<EOF
8461 #line 8462 "configure"
8462 #include "confdefs.h"
8463 #include <sys/types.h>
8464 #include <sys/socket.h>
8465 #include <netinet/in.h>
8467 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
8470 if { (eval echo configure
:8471: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8472 samba_cv_HAVE_SOCK_SIN_LEN
=yes
8474 echo "configure: failed program was:" >&5
8475 cat conftest.
$ac_ext >&5
8477 samba_cv_HAVE_SOCK_SIN_LEN
=no
8482 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
8483 if test x
"$samba_cv_HAVE_SOCK_SIN_LEN" = x
"yes"; then
8484 cat >> confdefs.h
<<\EOF
8485 #define HAVE_SOCK_SIN_LEN 1
8490 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
8491 echo "configure:8492: checking whether seekdir returns void" >&5
8492 if eval "test \"\${samba_cv_SEEKDIR_RETURNS_VOID+set}\" = set"; then
8493 echo $ac_n "(cached) $ac_c" 1>&6
8496 cat > conftest.
$ac_ext <<EOF
8497 #line 8498 "configure"
8498 #include "confdefs.h"
8499 #include <sys/types.h>
8501 void seekdir(DIR *d, long loc) { return; }
8506 if { (eval echo configure
:8507: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8508 samba_cv_SEEKDIR_RETURNS_VOID
=yes
8510 echo "configure: failed program was:" >&5
8511 cat conftest.
$ac_ext >&5
8513 samba_cv_SEEKDIR_RETURNS_VOID
=no
8518 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
8519 if test x
"$samba_cv_SEEKDIR_RETURNS_VOID" = x
"yes"; then
8520 cat >> confdefs.h
<<\EOF
8521 #define SEEKDIR_RETURNS_VOID 1
8526 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
8527 echo "configure:8528: checking for __FILE__ macro" >&5
8528 if eval "test \"\${samba_cv_HAVE_FILE_MACRO+set}\" = set"; then
8529 echo $ac_n "(cached) $ac_c" 1>&6
8532 cat > conftest.
$ac_ext <<EOF
8533 #line 8534 "configure"
8534 #include "confdefs.h"
8537 printf("%s\n", __FILE__);
8540 if { (eval echo configure
:8541: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8542 samba_cv_HAVE_FILE_MACRO
=yes
8544 echo "configure: failed program was:" >&5
8545 cat conftest.
$ac_ext >&5
8547 samba_cv_HAVE_FILE_MACRO
=no
8552 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
8553 if test x
"$samba_cv_HAVE_FILE_MACRO" = x
"yes"; then
8554 cat >> confdefs.h
<<\EOF
8555 #define HAVE_FILE_MACRO 1
8560 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
8561 echo "configure:8562: checking for __FUNCTION__ macro" >&5
8562 if eval "test \"\${samba_cv_HAVE_FUNCTION_MACRO+set}\" = set"; then
8563 echo $ac_n "(cached) $ac_c" 1>&6
8566 cat > conftest.
$ac_ext <<EOF
8567 #line 8568 "configure"
8568 #include "confdefs.h"
8571 printf("%s\n", __FUNCTION__);
8574 if { (eval echo configure
:8575: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8576 samba_cv_HAVE_FUNCTION_MACRO
=yes
8578 echo "configure: failed program was:" >&5
8579 cat conftest.
$ac_ext >&5
8581 samba_cv_HAVE_FUNCTION_MACRO
=no
8586 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
8587 if test x
"$samba_cv_HAVE_FUNCTION_MACRO" = x
"yes"; then
8588 cat >> confdefs.h
<<\EOF
8589 #define HAVE_FUNCTION_MACRO 1
8594 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
8595 echo "configure:8596: checking if gettimeofday takes tz argument" >&5
8596 if eval "test \"\${samba_cv_HAVE_GETTIMEOFDAY_TZ+set}\" = set"; then
8597 echo $ac_n "(cached) $ac_c" 1>&6
8600 if test "$cross_compiling" = yes; then
8601 samba_cv_HAVE_GETTIMEOFDAY_TZ
=cross
8603 cat > conftest.
$ac_ext <<EOF
8604 #line 8605 "configure"
8605 #include "confdefs.h"
8607 #include <sys/time.h>
8609 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
8611 if { (eval echo configure
:8612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8613 samba_cv_HAVE_GETTIMEOFDAY_TZ
=yes
8615 echo "configure: failed program was:" >&5
8616 cat conftest.
$ac_ext >&5
8618 samba_cv_HAVE_GETTIMEOFDAY_TZ
=no
8625 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
8626 if test x
"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x
"yes"; then
8627 cat >> confdefs.h
<<\EOF
8628 #define HAVE_GETTIMEOFDAY_TZ 1
8634 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
8635 echo "configure:8636: checking for broken readdir" >&5
8636 if eval "test \"\${samba_cv_HAVE_BROKEN_READDIR+set}\" = set"; then
8637 echo $ac_n "(cached) $ac_c" 1>&6
8640 if test "$cross_compiling" = yes; then
8641 samba_cv_HAVE_BROKEN_READDIR
=cross
8643 cat > conftest.
$ac_ext <<EOF
8644 #line 8645 "configure"
8645 #include "confdefs.h"
8646 #include <sys/types.h>
8648 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
8649 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
8650 di->d_name[0] == 0) exit(0); exit(1);}
8652 if { (eval echo configure
:8653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8654 samba_cv_HAVE_BROKEN_READDIR
=yes
8656 echo "configure: failed program was:" >&5
8657 cat conftest.
$ac_ext >&5
8659 samba_cv_HAVE_BROKEN_READDIR
=no
8666 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
8667 if test x
"$samba_cv_HAVE_BROKEN_READDIR" = x
"yes"; then
8668 cat >> confdefs.h
<<\EOF
8669 #define HAVE_BROKEN_READDIR 1
8674 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
8675 echo "configure:8676: checking for utimbuf" >&5
8676 if eval "test \"\${samba_cv_HAVE_UTIMBUF+set}\" = set"; then
8677 echo $ac_n "(cached) $ac_c" 1>&6
8680 cat > conftest.
$ac_ext <<EOF
8681 #line 8682 "configure"
8682 #include "confdefs.h"
8683 #include <sys/types.h>
8686 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
8689 if { (eval echo configure
:8690: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8691 samba_cv_HAVE_UTIMBUF
=yes
8693 echo "configure: failed program was:" >&5
8694 cat conftest.
$ac_ext >&5
8696 samba_cv_HAVE_UTIMBUF
=no
8701 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
8702 if test x
"$samba_cv_HAVE_UTIMBUF" = x
"yes"; then
8703 cat >> confdefs.h
<<\EOF
8704 #define HAVE_UTIMBUF 1
8709 echo $ac_n "checking for ut_syslen in utmpx""... $ac_c" 1>&6
8710 echo "configure:8711: checking for ut_syslen in utmpx" >&5
8711 if eval "test \"\${samba_cv_HAVE_UX_UT_SYSLEN+set}\" = set"; then
8712 echo $ac_n "(cached) $ac_c" 1>&6
8715 cat > conftest.
$ac_ext <<EOF
8716 #line 8717 "configure"
8717 #include "confdefs.h"
8720 struct utmpx ux; ux.ut_syslen = 0;
8723 if { (eval echo configure
:8724: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8725 samba_cv_HAVE_UX_UT_SYSLEN
=yes
8727 echo "configure: failed program was:" >&5
8728 cat conftest.
$ac_ext >&5
8730 samba_cv_HAVE_UX_UT_SYSLEN
=no
8735 echo "$ac_t""$samba_cv_HAVE_UX_UT_SYSLEN" 1>&6
8736 if test x
"$samba_cv_HAVE_UX_UT_SYSLEN" = x
"yes"; then
8737 cat >> confdefs.h
<<\EOF
8738 #define HAVE_UX_UT_SYSLEN 1
8743 echo $ac_n "checking for kernel oplock type definitions""... $ac_c" 1>&6
8744 echo "configure:8745: checking for kernel oplock type definitions" >&5
8745 if eval "test \"\${samba_cv_HAVE_KERNEL_OPLOCKS+set}\" = set"; then
8746 echo $ac_n "(cached) $ac_c" 1>&6
8749 cat > conftest.
$ac_ext <<EOF
8750 #line 8751 "configure"
8751 #include "confdefs.h"
8752 #include <sys/types.h>
8755 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
8758 if { (eval echo configure
:8759: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8760 samba_cv_HAVE_KERNEL_OPLOCKS
=yes
8762 echo "configure: failed program was:" >&5
8763 cat conftest.
$ac_ext >&5
8765 samba_cv_HAVE_KERNEL_OPLOCKS
=no
8770 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS" 1>&6
8771 if test x
"$samba_cv_HAVE_KERNEL_OPLOCKS" = x
"yes"; then
8772 cat >> confdefs.h
<<\EOF
8773 #define HAVE_KERNEL_OPLOCKS 1
8778 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
8779 echo "configure:8780: checking for irix specific capabilities" >&5
8780 if eval "test \"\${samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES+set}\" = set"; then
8781 echo $ac_n "(cached) $ac_c" 1>&6
8784 if test "$cross_compiling" = yes; then
8785 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=cross
8787 cat > conftest.
$ac_ext <<EOF
8788 #line 8789 "configure"
8789 #include "confdefs.h"
8790 #include <sys/types.h>
8791 #include <sys/capability.h>
8794 if ((cap = cap_get_proc()) == NULL)
8796 cap->cap_effective |= CAP_NETWORK_MGT;
8797 cap->cap_inheritable |= CAP_NETWORK_MGT;
8803 if { (eval echo configure
:8804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8805 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=yes
8807 echo "configure: failed program was:" >&5
8808 cat conftest.
$ac_ext >&5
8810 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=no
8817 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
8818 if test x
"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x
"yes"; then
8819 cat >> confdefs.h
<<\EOF
8820 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
8826 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
8827 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
8830 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
8831 echo "configure:8832: checking for int16 typedef included by rpc/rpc.h" >&5
8832 if eval "test \"\${samba_cv_HAVE_INT16_FROM_RPC_RPC_H+set}\" = set"; then
8833 echo $ac_n "(cached) $ac_c" 1>&6
8836 cat > conftest.
$ac_ext <<EOF
8837 #line 8838 "configure"
8838 #include "confdefs.h"
8839 #include <sys/types.h>
8840 #if defined(HAVE_RPC_RPC_H)
8841 #include <rpc/rpc.h>
8847 if { (eval echo configure
:8848: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8849 samba_cv_HAVE_INT16_FROM_RPC_RPC_H
=yes
8851 echo "configure: failed program was:" >&5
8852 cat conftest.
$ac_ext >&5
8854 samba_cv_HAVE_INT16_FROM_RPC_RPC_H
=no
8859 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
8860 if test x
"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x
"yes"; then
8861 cat >> confdefs.h
<<\EOF
8862 #define HAVE_INT16_FROM_RPC_RPC_H 1
8867 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
8868 echo "configure:8869: checking for uint16 typedef included by rpc/rpc.h" >&5
8869 if eval "test \"\${samba_cv_HAVE_UINT16_FROM_RPC_RPC_H+set}\" = set"; then
8870 echo $ac_n "(cached) $ac_c" 1>&6
8873 cat > conftest.
$ac_ext <<EOF
8874 #line 8875 "configure"
8875 #include "confdefs.h"
8876 #include <sys/types.h>
8877 #if defined(HAVE_RPC_RPC_H)
8878 #include <rpc/rpc.h>
8884 if { (eval echo configure
:8885: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8886 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H
=yes
8888 echo "configure: failed program was:" >&5
8889 cat conftest.
$ac_ext >&5
8891 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H
=no
8896 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
8897 if test x
"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x
"yes"; then
8898 cat >> confdefs.h
<<\EOF
8899 #define HAVE_UINT16_FROM_RPC_RPC_H 1
8904 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
8905 echo "configure:8906: checking for int32 typedef included by rpc/rpc.h" >&5
8906 if eval "test \"\${samba_cv_HAVE_INT32_FROM_RPC_RPC_H+set}\" = set"; then
8907 echo $ac_n "(cached) $ac_c" 1>&6
8910 cat > conftest.
$ac_ext <<EOF
8911 #line 8912 "configure"
8912 #include "confdefs.h"
8913 #include <sys/types.h>
8914 #if defined(HAVE_RPC_RPC_H)
8915 #include <rpc/rpc.h>
8921 if { (eval echo configure
:8922: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8923 samba_cv_HAVE_INT32_FROM_RPC_RPC_H
=yes
8925 echo "configure: failed program was:" >&5
8926 cat conftest.
$ac_ext >&5
8928 samba_cv_HAVE_INT32_FROM_RPC_RPC_H
=no
8933 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
8934 if test x
"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x
"yes"; then
8935 cat >> confdefs.h
<<\EOF
8936 #define HAVE_INT32_FROM_RPC_RPC_H 1
8941 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
8942 echo "configure:8943: checking for uint32 typedef included by rpc/rpc.h" >&5
8943 if eval "test \"\${samba_cv_HAVE_UINT32_FROM_RPC_RPC_H+set}\" = set"; then
8944 echo $ac_n "(cached) $ac_c" 1>&6
8947 cat > conftest.
$ac_ext <<EOF
8948 #line 8949 "configure"
8949 #include "confdefs.h"
8950 #include <sys/types.h>
8951 #if defined(HAVE_RPC_RPC_H)
8952 #include <rpc/rpc.h>
8958 if { (eval echo configure
:8959: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8960 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H
=yes
8962 echo "configure: failed program was:" >&5
8963 cat conftest.
$ac_ext >&5
8965 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H
=no
8970 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
8971 if test x
"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x
"yes"; then
8972 cat >> confdefs.h
<<\EOF
8973 #define HAVE_UINT32_FROM_RPC_RPC_H 1
8979 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
8980 echo "configure:8981: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
8981 if eval "test \"\${samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT+set}\" = set"; then
8982 echo $ac_n "(cached) $ac_c" 1>&6
8985 cat > conftest.
$ac_ext <<EOF
8986 #line 8987 "configure"
8987 #include "confdefs.h"
8988 #include <sys/types.h>
8989 #ifdef HAVE_SYS_SECURITY_H
8990 #include <sys/security.h>
8992 #endif /* HAVE_SYS_SECURITY_H */
8993 #if defined(HAVE_RPC_RPC_H)
8994 #include <rpc/rpc.h>
9000 if { (eval echo configure
:9001: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9002 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT
=no
9004 echo "configure: failed program was:" >&5
9005 cat conftest.
$ac_ext >&5
9007 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT
=yes
9012 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
9013 if test x
"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x
"yes"; then
9014 cat >> confdefs.h
<<\EOF
9015 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
9020 echo $ac_n "checking for test routines""... $ac_c" 1>&6
9021 echo "configure:9022: checking for test routines" >&5
9022 if test "$cross_compiling" = yes; then
9023 echo "configure: warning: cannot run when cross-compiling" 1>&2
9025 cat > conftest.
$ac_ext <<EOF
9026 #line 9027 "configure"
9027 #include "confdefs.h"
9028 #include "${srcdir-.}/tests/trivial.c"
9030 if { (eval echo configure
:9031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9032 echo "$ac_t""yes" 1>&6
9034 echo "configure: failed program was:" >&5
9035 cat conftest.
$ac_ext >&5
9037 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
9043 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
9044 echo "configure:9045: checking for ftruncate extend" >&5
9045 if eval "test \"\${samba_cv_HAVE_FTRUNCATE_EXTEND+set}\" = set"; then
9046 echo $ac_n "(cached) $ac_c" 1>&6
9049 if test "$cross_compiling" = yes; then
9050 samba_cv_HAVE_FTRUNCATE_EXTEND
=cross
9052 cat > conftest.
$ac_ext <<EOF
9053 #line 9054 "configure"
9054 #include "confdefs.h"
9055 #include "${srcdir-.}/tests/ftruncate.c"
9057 if { (eval echo configure
:9058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9059 samba_cv_HAVE_FTRUNCATE_EXTEND
=yes
9061 echo "configure: failed program was:" >&5
9062 cat conftest.
$ac_ext >&5
9064 samba_cv_HAVE_FTRUNCATE_EXTEND
=no
9071 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
9072 if test x
"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x
"yes"; then
9073 cat >> confdefs.h
<<\EOF
9074 #define HAVE_FTRUNCATE_EXTEND 1
9079 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
9080 echo "configure:9081: checking for broken getgroups" >&5
9081 if eval "test \"\${samba_cv_HAVE_BROKEN_GETGROUPS+set}\" = set"; then
9082 echo $ac_n "(cached) $ac_c" 1>&6
9085 if test "$cross_compiling" = yes; then
9086 samba_cv_HAVE_BROKEN_GETGROUPS
=cross
9088 cat > conftest.
$ac_ext <<EOF
9089 #line 9090 "configure"
9090 #include "confdefs.h"
9091 #include "${srcdir-.}/tests/getgroups.c"
9093 if { (eval echo configure
:9094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9095 samba_cv_HAVE_BROKEN_GETGROUPS
=yes
9097 echo "configure: failed program was:" >&5
9098 cat conftest.
$ac_ext >&5
9100 samba_cv_HAVE_BROKEN_GETGROUPS
=no
9107 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
9108 if test x
"$samba_cv_HAVE_BROKEN_GETGROUPS" = x
"yes"; then
9109 cat >> confdefs.h
<<\EOF
9110 #define HAVE_BROKEN_GETGROUPS 1
9115 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
9116 echo "configure:9117: checking whether getpass should be replaced" >&5
9117 if eval "test \"\${samba_cv_REPLACE_GETPASS+set}\" = set"; then
9118 echo $ac_n "(cached) $ac_c" 1>&6
9121 SAVE_CPPFLAGS
="$CPPFLAGS"
9122 CPPFLAGS
="$CPPFLAGS -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/smbwrapper"
9123 cat > conftest.
$ac_ext <<EOF
9124 #line 9125 "configure"
9125 #include "confdefs.h"
9127 #define REPLACE_GETPASS 1
9128 #define NO_CONFIG_H 1
9129 #define main dont_declare_main
9130 #include "${srcdir-.}/lib/getsmbpass.c"
9137 if { (eval echo configure
:9138: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9139 samba_cv_REPLACE_GETPASS
=yes
9141 echo "configure: failed program was:" >&5
9142 cat conftest.
$ac_ext >&5
9144 samba_cv_REPLACE_GETPASS
=no
9147 CPPFLAGS
="$SAVE_CPPFLAGS"
9151 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
9152 if test x
"$samba_cv_REPLACE_GETPASS" = x
"yes"; then
9153 cat >> confdefs.h
<<\EOF
9154 #define REPLACE_GETPASS 1
9159 echo $ac_n "checking for working fnmatch""... $ac_c" 1>&6
9160 echo "configure:9161: checking for working fnmatch" >&5
9161 if eval "test \"\${samba_cv_HAVE_FNMATCH+set}\" = set"; then
9162 echo $ac_n "(cached) $ac_c" 1>&6
9165 if test "$cross_compiling" = yes; then
9166 samba_cv_HAVE_FNMATCH
=cross
9168 cat > conftest.
$ac_ext <<EOF
9169 #line 9170 "configure"
9170 #include "confdefs.h"
9171 #include <fnmatch.h>
9172 main() { exit(fnmatch("*.o", "x.o", FNM_PATHNAME) == 0? 0: 1); }
9174 if { (eval echo configure
:9175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9176 samba_cv_HAVE_FNMATCH
=yes
9178 echo "configure: failed program was:" >&5
9179 cat conftest.
$ac_ext >&5
9181 samba_cv_HAVE_FNMATCH
=no
9188 echo "$ac_t""$samba_cv_HAVE_FNMATCH" 1>&6
9189 if test x
"$samba_cv_HAVE_FNMATCH" = x
"yes"; then
9190 cat >> confdefs.h
<<\EOF
9191 #define HAVE_FNMATCH 1
9196 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
9197 echo "configure:9198: checking for broken inet_ntoa" >&5
9198 if eval "test \"\${samba_cv_REPLACE_INET_NTOA+set}\" = set"; then
9199 echo $ac_n "(cached) $ac_c" 1>&6
9202 if test "$cross_compiling" = yes; then
9203 samba_cv_REPLACE_INET_NTOA
=cross
9205 cat > conftest.
$ac_ext <<EOF
9206 #line 9207 "configure"
9207 #include "confdefs.h"
9210 #include <sys/types.h>
9211 #include <netinet/in.h>
9212 #ifdef HAVE_ARPA_INET_H
9213 #include <arpa/inet.h>
9215 main() { struct in_addr ip; ip.s_addr = 0x12345678;
9216 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
9217 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
9220 if { (eval echo configure
:9221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9222 samba_cv_REPLACE_INET_NTOA
=yes
9224 echo "configure: failed program was:" >&5
9225 cat conftest.
$ac_ext >&5
9227 samba_cv_REPLACE_INET_NTOA
=no
9234 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
9235 if test x
"$samba_cv_REPLACE_INET_NTOA" = x
"yes"; then
9236 cat >> confdefs.h
<<\EOF
9237 #define REPLACE_INET_NTOA 1
9242 echo $ac_n "checking for sysconf(_SC_NGROUPS_MAX)""... $ac_c" 1>&6
9243 echo "configure:9244: checking for sysconf(_SC_NGROUPS_MAX)" >&5
9244 if eval "test \"\${samba_cv_SYSCONF_SC_NGROUPS_MAX+set}\" = set"; then
9245 echo $ac_n "(cached) $ac_c" 1>&6
9248 if test "$cross_compiling" = yes; then
9249 samba_cv_SYSCONF_SC_NGROUPS_MAX
=cross
9251 cat > conftest.
$ac_ext <<EOF
9252 #line 9253 "configure"
9253 #include "confdefs.h"
9255 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
9257 if { (eval echo configure
:9258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9259 samba_cv_SYSCONF_SC_NGROUPS_MAX
=yes
9261 echo "configure: failed program was:" >&5
9262 cat conftest.
$ac_ext >&5
9264 samba_cv_SYSCONF_SC_NGROUPS_MAX
=no
9271 echo "$ac_t""$samba_cv_SYSCONF_SC_NGROUPS_MAX" 1>&6
9272 if test x
"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x
"yes"; then
9273 cat >> confdefs.h
<<\EOF
9274 #define SYSCONF_SC_NGROUPS_MAX 1
9279 echo $ac_n "checking for root""... $ac_c" 1>&6
9280 echo "configure:9281: checking for root" >&5
9281 if eval "test \"\${samba_cv_HAVE_ROOT+set}\" = set"; then
9282 echo $ac_n "(cached) $ac_c" 1>&6
9285 if test "$cross_compiling" = yes; then
9286 samba_cv_HAVE_ROOT
=cross
9288 cat > conftest.
$ac_ext <<EOF
9289 #line 9290 "configure"
9290 #include "confdefs.h"
9291 main() { exit(getuid() != 0); }
9293 if { (eval echo configure
:9294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9295 samba_cv_HAVE_ROOT
=yes
9297 echo "configure: failed program was:" >&5
9298 cat conftest.
$ac_ext >&5
9300 samba_cv_HAVE_ROOT
=no
9307 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
9308 if test x
"$samba_cv_HAVE_ROOT" = x
"yes"; then
9309 cat >> confdefs.h
<<\EOF
9314 echo "configure: warning: running as non-root will disable some tests" 1>&2
9318 # look for a method of finding the list of network interfaces
9320 echo $ac_n "checking for iface AIX""... $ac_c" 1>&6
9321 echo "configure:9322: checking for iface AIX" >&5
9322 if eval "test \"\${samba_cv_HAVE_IFACE_AIX+set}\" = set"; then
9323 echo $ac_n "(cached) $ac_c" 1>&6
9326 if test "$cross_compiling" = yes; then
9327 samba_cv_HAVE_IFACE_AIX
=cross
9329 cat > conftest.
$ac_ext <<EOF
9330 #line 9331 "configure"
9331 #include "confdefs.h"
9333 #define HAVE_IFACE_AIX 1
9334 #define AUTOCONF_TEST 1
9335 #include "confdefs.h"
9336 #include "${srcdir-.}/lib/interfaces.c"
9338 if { (eval echo configure
:9339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9340 samba_cv_HAVE_IFACE_AIX
=yes
9342 echo "configure: failed program was:" >&5
9343 cat conftest.
$ac_ext >&5
9345 samba_cv_HAVE_IFACE_AIX
=no
9352 echo "$ac_t""$samba_cv_HAVE_IFACE_AIX" 1>&6
9353 if test x
"$samba_cv_HAVE_IFACE_AIX" = x
"yes"; then
9354 iface
=yes;cat >> confdefs.h
<<\EOF
9355 #define HAVE_IFACE_AIX 1
9360 if test $iface = no
; then
9361 echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6
9362 echo "configure:9363: checking for iface ifconf" >&5
9363 if eval "test \"\${samba_cv_HAVE_IFACE_IFCONF+set}\" = set"; then
9364 echo $ac_n "(cached) $ac_c" 1>&6
9367 if test "$cross_compiling" = yes; then
9368 samba_cv_HAVE_IFACE_IFCONF
=cross
9370 cat > conftest.
$ac_ext <<EOF
9371 #line 9372 "configure"
9372 #include "confdefs.h"
9374 #define HAVE_IFACE_IFCONF 1
9375 #define AUTOCONF_TEST 1
9376 #include "confdefs.h"
9377 #include "${srcdir-.}/lib/interfaces.c"
9379 if { (eval echo configure
:9380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9381 samba_cv_HAVE_IFACE_IFCONF
=yes
9383 echo "configure: failed program was:" >&5
9384 cat conftest.
$ac_ext >&5
9386 samba_cv_HAVE_IFACE_IFCONF
=no
9393 echo "$ac_t""$samba_cv_HAVE_IFACE_IFCONF" 1>&6
9394 if test x
"$samba_cv_HAVE_IFACE_IFCONF" = x
"yes"; then
9395 iface
=yes;cat >> confdefs.h
<<\EOF
9396 #define HAVE_IFACE_IFCONF 1
9402 if test $iface = no
; then
9403 echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6
9404 echo "configure:9405: checking for iface ifreq" >&5
9405 if eval "test \"\${samba_cv_HAVE_IFACE_IFREQ+set}\" = set"; then
9406 echo $ac_n "(cached) $ac_c" 1>&6
9409 if test "$cross_compiling" = yes; then
9410 samba_cv_HAVE_IFACE_IFREQ
=cross
9412 cat > conftest.
$ac_ext <<EOF
9413 #line 9414 "configure"
9414 #include "confdefs.h"
9416 #define HAVE_IFACE_IFREQ 1
9417 #define AUTOCONF_TEST 1
9418 #include "confdefs.h"
9419 #include "${srcdir-.}/lib/interfaces.c"
9421 if { (eval echo configure
:9422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9423 samba_cv_HAVE_IFACE_IFREQ
=yes
9425 echo "configure: failed program was:" >&5
9426 cat conftest.
$ac_ext >&5
9428 samba_cv_HAVE_IFACE_IFREQ
=no
9435 echo "$ac_t""$samba_cv_HAVE_IFACE_IFREQ" 1>&6
9436 if test x
"$samba_cv_HAVE_IFACE_IFREQ" = x
"yes"; then
9437 iface
=yes;cat >> confdefs.h
<<\EOF
9438 #define HAVE_IFACE_IFREQ 1
9445 ################################################
9446 # look for a method of setting the effective uid
9448 if test $seteuid = no
; then
9449 echo $ac_n "checking for setresuid""... $ac_c" 1>&6
9450 echo "configure:9451: checking for setresuid" >&5
9451 if eval "test \"\${samba_cv_USE_SETRESUID+set}\" = set"; then
9452 echo $ac_n "(cached) $ac_c" 1>&6
9455 if test "$cross_compiling" = yes; then
9456 samba_cv_USE_SETRESUID
=cross
9458 cat > conftest.
$ac_ext <<EOF
9459 #line 9460 "configure"
9460 #include "confdefs.h"
9462 #define AUTOCONF_TEST 1
9463 #define USE_SETRESUID 1
9464 #include "confdefs.h"
9465 #include "${srcdir-.}/lib/util_sec.c"
9467 if { (eval echo configure
:9468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9469 samba_cv_USE_SETRESUID
=yes
9471 echo "configure: failed program was:" >&5
9472 cat conftest.
$ac_ext >&5
9474 samba_cv_USE_SETRESUID
=no
9481 echo "$ac_t""$samba_cv_USE_SETRESUID" 1>&6
9482 if test x
"$samba_cv_USE_SETRESUID" = x
"yes"; then
9483 seteuid
=yes;cat >> confdefs.h
<<\EOF
9484 #define USE_SETRESUID 1
9491 if test $seteuid = no
; then
9492 echo $ac_n "checking for setreuid""... $ac_c" 1>&6
9493 echo "configure:9494: checking for setreuid" >&5
9494 if eval "test \"\${samba_cv_USE_SETREUID+set}\" = set"; then
9495 echo $ac_n "(cached) $ac_c" 1>&6
9498 if test "$cross_compiling" = yes; then
9499 samba_cv_USE_SETREUID
=cross
9501 cat > conftest.
$ac_ext <<EOF
9502 #line 9503 "configure"
9503 #include "confdefs.h"
9505 #define AUTOCONF_TEST 1
9506 #define USE_SETREUID 1
9507 #include "confdefs.h"
9508 #include "${srcdir-.}/lib/util_sec.c"
9510 if { (eval echo configure
:9511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9512 samba_cv_USE_SETREUID
=yes
9514 echo "configure: failed program was:" >&5
9515 cat conftest.
$ac_ext >&5
9517 samba_cv_USE_SETREUID
=no
9524 echo "$ac_t""$samba_cv_USE_SETREUID" 1>&6
9525 if test x
"$samba_cv_USE_SETREUID" = x
"yes"; then
9526 seteuid
=yes;cat >> confdefs.h
<<\EOF
9527 #define USE_SETREUID 1
9533 if test $seteuid = no
; then
9534 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
9535 echo "configure:9536: checking for seteuid" >&5
9536 if eval "test \"\${samba_cv_USE_SETEUID+set}\" = set"; then
9537 echo $ac_n "(cached) $ac_c" 1>&6
9540 if test "$cross_compiling" = yes; then
9541 samba_cv_USE_SETEUID
=cross
9543 cat > conftest.
$ac_ext <<EOF
9544 #line 9545 "configure"
9545 #include "confdefs.h"
9547 #define AUTOCONF_TEST 1
9548 #define USE_SETEUID 1
9549 #include "confdefs.h"
9550 #include "${srcdir-.}/lib/util_sec.c"
9552 if { (eval echo configure
:9553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9554 samba_cv_USE_SETEUID
=yes
9556 echo "configure: failed program was:" >&5
9557 cat conftest.
$ac_ext >&5
9559 samba_cv_USE_SETEUID
=no
9566 echo "$ac_t""$samba_cv_USE_SETEUID" 1>&6
9567 if test x
"$samba_cv_USE_SETEUID" = x
"yes"; then
9568 seteuid
=yes;cat >> confdefs.h
<<\EOF
9569 #define USE_SETEUID 1
9575 if test $seteuid = no
; then
9576 echo $ac_n "checking for setuidx""... $ac_c" 1>&6
9577 echo "configure:9578: checking for setuidx" >&5
9578 if eval "test \"\${samba_cv_USE_SETUIDX+set}\" = set"; then
9579 echo $ac_n "(cached) $ac_c" 1>&6
9582 if test "$cross_compiling" = yes; then
9583 samba_cv_USE_SETUIDX
=cross
9585 cat > conftest.
$ac_ext <<EOF
9586 #line 9587 "configure"
9587 #include "confdefs.h"
9589 #define AUTOCONF_TEST 1
9590 #define USE_SETUIDX 1
9591 #include "confdefs.h"
9592 #include "${srcdir-.}/lib/util_sec.c"
9594 if { (eval echo configure
:9595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9596 samba_cv_USE_SETUIDX
=yes
9598 echo "configure: failed program was:" >&5
9599 cat conftest.
$ac_ext >&5
9601 samba_cv_USE_SETUIDX
=no
9608 echo "$ac_t""$samba_cv_USE_SETUIDX" 1>&6
9609 if test x
"$samba_cv_USE_SETUIDX" = x
"yes"; then
9610 seteuid
=yes;cat >> confdefs.h
<<\EOF
9611 #define USE_SETUIDX 1
9617 ################################################
9618 # look for a method of setting the effective gid
9620 if test $setegid = no
; then
9621 echo $ac_n "checking for setresgid""... $ac_c" 1>&6
9622 echo "configure:9623: checking for setresgid" >&5
9623 if eval "test \"\${samba_cv_USE_SETRESGID+set}\" = set"; then
9624 echo $ac_n "(cached) $ac_c" 1>&6
9627 if test "$cross_compiling" = yes; then
9628 samba_cv_USE_SETRESGID
=cross
9630 cat > conftest.
$ac_ext <<EOF
9631 #line 9632 "configure"
9632 #include "confdefs.h"
9634 #define AUTOCONF_TEST 1
9635 #define USE_SETRESUID 1
9636 #define USE_SETRESGID 1
9637 #include "confdefs.h"
9638 #include "${srcdir-.}/lib/util_sec.c"
9640 if { (eval echo configure
:9641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9642 samba_cv_USE_SETRESGID
=yes
9644 echo "configure: failed program was:" >&5
9645 cat conftest.
$ac_ext >&5
9647 samba_cv_USE_SETRESGID
=no
9654 echo "$ac_t""$samba_cv_USE_SETRESGID" 1>&6
9655 if test x
"$samba_cv_USE_SETRESGID" = x
"yes"; then
9656 setegid
=yes;cat >> confdefs.h
<<\EOF
9657 #define USE_SETRESGID 1
9664 if test $setegid = no
; then
9665 echo $ac_n "checking for setregid""... $ac_c" 1>&6
9666 echo "configure:9667: checking for setregid" >&5
9667 if eval "test \"\${samba_cv_USE_SETREGID+set}\" = set"; then
9668 echo $ac_n "(cached) $ac_c" 1>&6
9671 if test "$cross_compiling" = yes; then
9672 samba_cv_USE_SETREGID
=cross
9674 cat > conftest.
$ac_ext <<EOF
9675 #line 9676 "configure"
9676 #include "confdefs.h"
9678 #define AUTOCONF_TEST 1
9679 #define USE_SETREUID 1
9680 #define USE_SETREGID 1
9681 #include "confdefs.h"
9682 #include "${srcdir-.}/lib/util_sec.c"
9684 if { (eval echo configure
:9685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9686 samba_cv_USE_SETREGID
=yes
9688 echo "configure: failed program was:" >&5
9689 cat conftest.
$ac_ext >&5
9691 samba_cv_USE_SETREGID
=no
9698 echo "$ac_t""$samba_cv_USE_SETREGID" 1>&6
9699 if test x
"$samba_cv_USE_SETREGID" = x
"yes"; then
9700 setegid
=yes;cat >> confdefs.h
<<\EOF
9701 #define USE_SETREGID 1
9707 if test $setegid = no
; then
9708 echo $ac_n "checking for setegid""... $ac_c" 1>&6
9709 echo "configure:9710: checking for setegid" >&5
9710 if eval "test \"\${samba_cv_USE_SETEGID+set}\" = set"; then
9711 echo $ac_n "(cached) $ac_c" 1>&6
9714 if test "$cross_compiling" = yes; then
9715 samba_cv_USE_SETEGID
=cross
9717 cat > conftest.
$ac_ext <<EOF
9718 #line 9719 "configure"
9719 #include "confdefs.h"
9721 #define AUTOCONF_TEST 1
9722 #define USE_SETEUID 1
9723 #define USE_SETEGID 1
9724 #include "confdefs.h"
9725 #include "${srcdir-.}/lib/util_sec.c"
9727 if { (eval echo configure
:9728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9729 samba_cv_USE_SETEGID
=yes
9731 echo "configure: failed program was:" >&5
9732 cat conftest.
$ac_ext >&5
9734 samba_cv_USE_SETEGID
=no
9741 echo "$ac_t""$samba_cv_USE_SETEGID" 1>&6
9742 if test x
"$samba_cv_USE_SETEGID" = x
"yes"; then
9743 setegid
=yes;cat >> confdefs.h
<<\EOF
9744 #define USE_SETEGID 1
9750 if test $setegid = no
; then
9751 echo $ac_n "checking for setgidx""... $ac_c" 1>&6
9752 echo "configure:9753: checking for setgidx" >&5
9753 if eval "test \"\${samba_cv_USE_SETGIDX+set}\" = set"; then
9754 echo $ac_n "(cached) $ac_c" 1>&6
9757 if test "$cross_compiling" = yes; then
9758 samba_cv_USE_SETGIDX
=cross
9760 cat > conftest.
$ac_ext <<EOF
9761 #line 9762 "configure"
9762 #include "confdefs.h"
9764 #define AUTOCONF_TEST 1
9765 #define USE_SETUIDX 1
9766 #define USE_SETGIDX 1
9767 #include "confdefs.h"
9768 #include "${srcdir-.}/lib/util_sec.c"
9770 if { (eval echo configure
:9771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9772 samba_cv_USE_SETGIDX
=yes
9774 echo "configure: failed program was:" >&5
9775 cat conftest.
$ac_ext >&5
9777 samba_cv_USE_SETGIDX
=no
9784 echo "$ac_t""$samba_cv_USE_SETGIDX" 1>&6
9785 if test x
"$samba_cv_USE_SETGIDX" = x
"yes"; then
9786 setegid
=yes;cat >> confdefs.h
<<\EOF
9787 #define USE_SETGIDX 1
9793 echo $ac_n "checking for shared mmap""... $ac_c" 1>&6
9794 echo "configure:9795: checking for shared mmap" >&5
9795 if eval "test \"\${samba_cv_HAVE_SHARED_MMAP+set}\" = set"; then
9796 echo $ac_n "(cached) $ac_c" 1>&6
9799 if test "$cross_compiling" = yes; then
9800 samba_cv_HAVE_SHARED_MMAP
=cross
9802 cat > conftest.
$ac_ext <<EOF
9803 #line 9804 "configure"
9804 #include "confdefs.h"
9805 #include "${srcdir-.}/tests/shared_mmap.c"
9807 if { (eval echo configure
:9808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9809 samba_cv_HAVE_SHARED_MMAP
=yes
9811 echo "configure: failed program was:" >&5
9812 cat conftest.
$ac_ext >&5
9814 samba_cv_HAVE_SHARED_MMAP
=no
9821 echo "$ac_t""$samba_cv_HAVE_SHARED_MMAP" 1>&6
9822 if test x
"$samba_cv_HAVE_SHARED_MMAP" = x
"yes"; then
9823 cat >> confdefs.h
<<\EOF
9824 #define HAVE_SHARED_MMAP 1
9827 cat >> confdefs.h
<<\EOF
9833 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
9834 echo "configure:9835: checking for ftruncate needs root" >&5
9835 if eval "test \"\${samba_cv_FTRUNCATE_NEEDS_ROOT+set}\" = set"; then
9836 echo $ac_n "(cached) $ac_c" 1>&6
9839 if test "$cross_compiling" = yes; then
9840 samba_cv_FTRUNCATE_NEEDS_ROOT
=cross
9842 cat > conftest.
$ac_ext <<EOF
9843 #line 9844 "configure"
9844 #include "confdefs.h"
9845 #include "${srcdir-.}/tests/ftruncroot.c"
9847 if { (eval echo configure
:9848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9849 samba_cv_FTRUNCATE_NEEDS_ROOT
=yes
9851 echo "configure: failed program was:" >&5
9852 cat conftest.
$ac_ext >&5
9854 samba_cv_FTRUNCATE_NEEDS_ROOT
=no
9861 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
9862 if test x
"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x
"yes"; then
9863 cat >> confdefs.h
<<\EOF
9864 #define FTRUNCATE_NEEDS_ROOT 1
9869 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
9870 echo "configure:9871: checking for fcntl locking" >&5
9871 if eval "test \"\${samba_cv_HAVE_FCNTL_LOCK+set}\" = set"; then
9872 echo $ac_n "(cached) $ac_c" 1>&6
9875 if test "$cross_compiling" = yes; then
9876 samba_cv_HAVE_FCNTL_LOCK
=cross
9878 cat > conftest.
$ac_ext <<EOF
9879 #line 9880 "configure"
9880 #include "confdefs.h"
9881 #include "${srcdir-.}/tests/fcntl_lock.c"
9883 if { (eval echo configure
:9884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9885 samba_cv_HAVE_FCNTL_LOCK
=yes
9887 echo "configure: failed program was:" >&5
9888 cat conftest.
$ac_ext >&5
9890 samba_cv_HAVE_FCNTL_LOCK
=no
9897 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
9898 if test x
"$samba_cv_HAVE_FCNTL_LOCK" = x
"yes"; then
9899 cat >> confdefs.h
<<\EOF
9900 #define HAVE_FCNTL_LOCK 1
9905 echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6
9906 echo "configure:9907: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
9907 if eval "test \"\${samba_cv_HAVE_BROKEN_FCNTL64_LOCKS+set}\" = set"; then
9908 echo $ac_n "(cached) $ac_c" 1>&6
9911 if test "$cross_compiling" = yes; then
9912 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=cross
9914 cat > conftest.
$ac_ext <<EOF
9915 #line 9916 "configure"
9916 #include "confdefs.h"
9917 #include "${srcdir-.}/tests/fcntl_lock64.c"
9919 if { (eval echo configure
:9920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9921 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=yes
9923 echo "configure: failed program was:" >&5
9924 cat conftest.
$ac_ext >&5
9926 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=no
9933 echo "$ac_t""$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" 1>&6
9934 if test x
"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x
"yes"; then
9935 cat >> confdefs.h
<<\EOF
9936 #define HAVE_BROKEN_FCNTL64_LOCKS 1
9943 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
9944 echo "configure:9945: checking for 64 bit fcntl locking" >&5
9945 if eval "test \"\${samba_cv_HAVE_STRUCT_FLOCK64+set}\" = set"; then
9946 echo $ac_n "(cached) $ac_c" 1>&6
9949 if test "$cross_compiling" = yes; then
9950 samba_cv_HAVE_STRUCT_FLOCK64
=cross
9952 cat > conftest.
$ac_ext <<EOF
9953 #line 9954 "configure"
9954 #include "confdefs.h"
9956 #if defined(HAVE_UNISTD_H)
9966 #ifdef HAVE_SYS_FCNTL_H
9967 #include <sys/fcntl.h>
9969 main() { struct flock64 fl64;
9970 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
9977 if { (eval echo configure
:9978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9979 samba_cv_HAVE_STRUCT_FLOCK64
=yes
9981 echo "configure: failed program was:" >&5
9982 cat conftest.
$ac_ext >&5
9984 samba_cv_HAVE_STRUCT_FLOCK64
=no
9991 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
9993 if test x
"$samba_cv_HAVE_STRUCT_FLOCK64" = x
"yes"; then
9994 cat >> confdefs.h
<<\EOF
9995 #define HAVE_STRUCT_FLOCK64 1
10001 echo $ac_n "checking for sysv ipc""... $ac_c" 1>&6
10002 echo "configure:10003: checking for sysv ipc" >&5
10003 if eval "test \"\${samba_cv_HAVE_SYSV_IPC+set}\" = set"; then
10004 echo $ac_n "(cached) $ac_c" 1>&6
10007 if test "$cross_compiling" = yes; then
10008 samba_cv_HAVE_SYSV_IPC
=cross
10010 cat > conftest.
$ac_ext <<EOF
10011 #line 10012 "configure"
10012 #include "confdefs.h"
10013 #include "${srcdir-.}/tests/sysv_ipc.c"
10015 if { (eval echo configure
:10016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10017 samba_cv_HAVE_SYSV_IPC
=yes
10019 echo "configure: failed program was:" >&5
10020 cat conftest.
$ac_ext >&5
10022 samba_cv_HAVE_SYSV_IPC
=no
10029 echo "$ac_t""$samba_cv_HAVE_SYSV_IPC" 1>&6
10030 if test x
"$samba_cv_HAVE_SYSV_IPC" = x
"yes"; then
10031 cat >> confdefs.h
<<\EOF
10032 #define HAVE_SYSV_IPC 1
10037 echo $ac_n "checking for IRIX sysv ipc semun problem using gcc""... $ac_c" 1>&6
10038 echo "configure:10039: checking for IRIX sysv ipc semun problem using gcc" >&5
10039 if eval "test \"\${samba_cv_NEED_SGI_SEMUN_HACK+set}\" = set"; then
10040 echo $ac_n "(cached) $ac_c" 1>&6
10043 if test "$cross_compiling" = yes; then
10044 samba_cv_NEED_SGI_SEMUN_HACK
=cross
10046 cat > conftest.
$ac_ext <<EOF
10047 #line 10048 "configure"
10048 #include "confdefs.h"
10049 #include "${srcdir-.}/tests/sgi_sysv_hack.c"
10051 if { (eval echo configure
:10052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10053 samba_cv_NEED_SGI_SEMUN_HACK
=yes
10055 echo "configure: failed program was:" >&5
10056 cat conftest.
$ac_ext >&5
10058 samba_cv_NEED_SGI_SEMUN_HACK
=no
10065 echo "$ac_t""$samba_cv_NEED_SGI_SEMUN_HACK" 1>&6
10066 if test x
"$samba_cv_NEED_SGI_SEMUN_HACK" = x
"yes"; then
10067 cat >> confdefs.h
<<\EOF
10068 #define NEED_SGI_SEMUN_HACK 1
10073 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
10074 echo "configure:10075: checking for a crypt that needs truncated salt" >&5
10075 if eval "test \"\${samba_cv_HAVE_TRUNCATED_SALT+set}\" = set"; then
10076 echo $ac_n "(cached) $ac_c" 1>&6
10079 if test "$cross_compiling" = yes; then
10080 samba_cv_HAVE_TRUNCATED_SALT
=cross
10082 cat > conftest.
$ac_ext <<EOF
10083 #line 10084 "configure"
10084 #include "confdefs.h"
10085 #include "${srcdir-.}/tests/crypttest.c"
10087 if { (eval echo configure
:10088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10089 samba_cv_HAVE_TRUNCATED_SALT
=no
10091 echo "configure: failed program was:" >&5
10092 cat conftest.
$ac_ext >&5
10094 samba_cv_HAVE_TRUNCATED_SALT
=yes
10101 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
10102 if test x
"$samba_cv_HAVE_TRUNCATED_SALT" = x
"yes"; then
10103 cat >> confdefs.h
<<\EOF
10104 #define HAVE_TRUNCATED_SALT 1
10109 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
10110 echo "configure:10111: checking for broken nisplus include files" >&5
10111 if eval "test \"\${samba_cv_BROKEN_NISPLUS_INCLUDE_FILES+set}\" = set"; then
10112 echo $ac_n "(cached) $ac_c" 1>&6
10115 cat > conftest.
$ac_ext <<EOF
10116 #line 10117 "configure"
10117 #include "confdefs.h"
10118 #include <sys/acl.h>
10119 #if defined(HAVE_RPCSVC_NIS_H)
10120 #include <rpcsvc/nis.h>
10126 if { (eval echo configure
:10127: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10128 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES
=no
10130 echo "configure: failed program was:" >&5
10131 cat conftest.
$ac_ext >&5
10133 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES
=yes
10138 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
10139 if test x
"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x
"yes"; then
10140 cat >> confdefs.h
<<\EOF
10141 #define BROKEN_NISPLUS_INCLUDE_FILES 1
10147 #################################################
10148 # check for smbwrapper support
10149 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
10150 echo "configure:10151: checking whether to use smbwrapper" >&5
10151 # Check whether --with-smbwrapper or --without-smbwrapper was given.
10152 if test "${with_smbwrapper+set}" = set; then
10153 withval
="$with_smbwrapper"
10156 echo "$ac_t""yes" 1>&6
10157 cat >> confdefs.h
<<\EOF
10158 #define WITH_SMBWRAPPER 1
10161 WRAP
="bin/smbsh bin/smbwrapper.$SHLIBEXT"
10163 if test x
$ATTEMPT_WRAP32_BUILD = x
; then
10166 WRAP32
=bin
/smbwrapper
.32.
$SHLIBEXT
10169 # Conditions under which smbwrapper should not be built.
10171 if test x
$PICFLAG = x
; then
10172 echo No support
for PIC code
- disabling smbwrapper and smbsh
10175 elif test x
$ac_cv_func_syscall = xno
; then
10176 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
10182 echo "$ac_t""no" 1>&6
10186 echo "$ac_t""no" 1>&6
10191 #################################################
10192 # check for the AFS filesystem
10193 echo $ac_n "checking whether to use AFS""... $ac_c" 1>&6
10194 echo "configure:10195: checking whether to use AFS" >&5
10195 # Check whether --with-afs or --without-afs was given.
10196 if test "${with_afs+set}" = set; then
10197 withval
="$with_afs"
10200 echo "$ac_t""yes" 1>&6
10201 cat >> confdefs.h
<<\EOF
10207 echo "$ac_t""no" 1>&6
10211 echo "$ac_t""no" 1>&6
10216 #################################################
10217 # check for the AFS tickets from srvtabs
10218 echo $ac_n "checking whether to use AFS tickets from srvtabs""... $ac_c" 1>&6
10219 echo "configure:10220: checking whether to use AFS tickets from srvtabs" >&5
10220 # Check whether --with-srvtab or --without-srvtab was given.
10221 if test "${with_srvtab+set}" = set; then
10222 withval
="$with_srvtab"
10225 echo "$ac_t""yes" 1>&6
10226 cat >> confdefs.h
<<\EOF
10227 #define USE_RENEWABLE_AFS_TICKET ""
10230 LIBS
="$LIBS -lkafs"
10233 echo "$ac_t""no" 1>&6
10236 echo "$ac_t""yes using instance $withval" 1>&6
10237 cat >> confdefs.h
<<EOF
10238 #define USE_RENEWABLE_AFS_TICKET $withval
10241 LIBS
="$LIBS -lkafs"
10245 echo "$ac_t""no" 1>&6
10251 #################################################
10252 # check for the DFS auth system
10253 echo $ac_n "checking whether to use DFS auth""... $ac_c" 1>&6
10254 echo "configure:10255: checking whether to use DFS auth" >&5
10255 # Check whether --with-dfs or --without-dfs was given.
10256 if test "${with_dfs+set}" = set; then
10257 withval
="$with_dfs"
10260 echo "$ac_t""yes" 1>&6
10261 cat >> confdefs.h
<<\EOF
10267 echo "$ac_t""no" 1>&6
10271 echo "$ac_t""no" 1>&6
10276 #################################################
10277 # check for Kerberos IV auth system
10278 echo $ac_n "checking whether to use Kerberos IV""... $ac_c" 1>&6
10279 echo "configure:10280: checking whether to use Kerberos IV" >&5
10280 # Check whether --with-krb4 or --without-krb4 was given.
10281 if test "${with_krb4+set}" = set; then
10282 withval
="$with_krb4"
10283 echo "$ac_t""yes" 1>&6
10284 cat >> confdefs.h
<<\EOF
10285 #define KRB4_AUTH 1
10288 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
10289 echo "configure:10290: checking for dn_expand in -lresolv" >&5
10290 ac_lib_var
=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
10291 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10292 echo $ac_n "(cached) $ac_c" 1>&6
10294 ac_save_LIBS
="$LIBS"
10295 LIBS
="-lresolv $LIBS"
10296 cat > conftest.
$ac_ext <<EOF
10297 #line 10298 "configure"
10298 #include "confdefs.h"
10299 /* Override any gcc2 internal prototype to avoid an error. */
10300 /* We use char because int might match the return type of a gcc2
10301 builtin and then its argument prototype would still apply. */
10308 if { (eval echo configure
:10309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
10310 eval "ac_cv_lib_$ac_lib_var=yes"
10312 echo "configure: failed program was:" >&5
10313 cat conftest.
$ac_ext >&5
10315 eval "ac_cv_lib_$ac_lib_var=no"
10318 LIBS
="$ac_save_LIBS"
10321 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10322 echo "$ac_t""yes" 1>&6
10323 ac_tr_lib
=HAVE_LIB
`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10324 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10325 cat >> confdefs.h
<<EOF
10326 #define $ac_tr_lib 1
10329 LIBS
="-lresolv $LIBS"
10332 echo "$ac_t""no" 1>&6
10335 LIBS
="$LIBS -lkrb -ldes"
10336 CFLAGS
="$CFLAGS -I$withval/include"
10337 LDFLAGS
="$LDFLAGS -L$withval/lib"
10339 echo "$ac_t""no" 1>&6
10344 #################################################
10345 # check for Kerberos 5 auth system
10346 echo $ac_n "checking whether to use Kerberos 5""... $ac_c" 1>&6
10347 echo "configure:10348: checking whether to use Kerberos 5" >&5
10348 # Check whether --with-krb5 or --without-krb5 was given.
10349 if test "${with_krb5+set}" = set; then
10350 withval
="$with_krb5"
10351 echo "$ac_t""yes" 1>&6
10352 cat >> confdefs.h
<<\EOF
10353 #define KRB5_AUTH 1
10356 LIBS
="$LIBS -ldes425 -lkrb5 -lcrypto -lcom_err"
10357 CFLAGS
="$CFLAGS -I$withval/include"
10358 LDFLAGS
="$LDFLAGS -L$withval/lib"
10360 echo "$ac_t""no" 1>&6
10365 #################################################
10366 # check for automount support
10367 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
10368 echo "configure:10369: checking whether to use AUTOMOUNT" >&5
10369 # Check whether --with-automount or --without-automount was given.
10370 if test "${with_automount+set}" = set; then
10371 withval
="$with_automount"
10374 echo "$ac_t""yes" 1>&6
10375 cat >> confdefs.h
<<\EOF
10376 #define WITH_AUTOMOUNT 1
10381 echo "$ac_t""no" 1>&6
10385 echo "$ac_t""no" 1>&6
10390 #################################################
10391 # check for smbmount support
10392 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
10393 echo "configure:10394: checking whether to use SMBMOUNT" >&5
10394 # Check whether --with-smbmount or --without-smbmount was given.
10395 if test "${with_smbmount+set}" = set; then
10396 withval
="$with_smbmount"
10399 echo "$ac_t""yes" 1>&6
10400 cat >> confdefs.h
<<\EOF
10401 #define WITH_SMBMOUNT 1
10404 MPROGS
="bin/smbmount bin/smbmnt bin/smbumount"
10407 echo "$ac_t""no" 1>&6
10412 echo "$ac_t""no" 1>&6
10419 #################################################
10420 # check for a PAM password database
10421 echo $ac_n "checking whether to use PAM password database""... $ac_c" 1>&6
10422 echo "configure:10423: checking whether to use PAM password database" >&5
10423 # Check whether --with-pam or --without-pam was given.
10424 if test "${with_pam+set}" = set; then
10425 withval
="$with_pam"
10428 echo "$ac_t""yes" 1>&6
10429 cat >> confdefs.h
<<\EOF
10436 echo "$ac_t""no" 1>&6
10440 echo "$ac_t""no" 1>&6
10446 #################################################
10447 # check for a LDAP password database
10448 echo $ac_n "checking whether to use LDAP password database""... $ac_c" 1>&6
10449 echo "configure:10450: checking whether to use LDAP password database" >&5
10450 # Check whether --with-ldap or --without-ldap was given.
10451 if test "${with_ldap+set}" = set; then
10452 withval
="$with_ldap"
10455 echo "$ac_t""yes" 1>&6
10456 cat >> confdefs.h
<<\EOF
10457 #define WITH_LDAP 1
10460 LIBS
="$LIBS -lldap -llber"
10463 echo "$ac_t""no" 1>&6
10467 echo "$ac_t""no" 1>&6
10472 #################################################
10473 # check for a LDAP password database
10474 echo $ac_n "checking whether to use LDAP password database""... $ac_c" 1>&6
10475 echo "configure:10476: checking whether to use LDAP password database" >&5
10476 # Check whether --with-nt5ldap or --without-nt5ldap was given.
10477 if test "${with_nt5ldap+set}" = set; then
10478 withval
="$with_nt5ldap"
10481 echo "$ac_t""yes" 1>&6
10482 cat >> confdefs.h
<<\EOF
10483 #define WITH_NT5LDAP 1
10486 LIBS
="$LIBS -lldap -llber"
10489 echo "$ac_t""no" 1>&6
10493 echo "$ac_t""no" 1>&6
10498 #################################################
10499 # check for a LDAP password database
10500 echo $ac_n "checking whether to use LDAP password database""... $ac_c" 1>&6
10501 echo "configure:10502: checking whether to use LDAP password database" >&5
10502 # Check whether --with-nt5ldap or --without-nt5ldap was given.
10503 if test "${with_nt5ldap+set}" = set; then
10504 withval
="$with_nt5ldap"
10507 echo "$ac_t""yes" 1>&6
10508 cat >> confdefs.h
<<\EOF
10509 #define WITH_NT5LDAP 1
10512 LIBS
="$LIBS -lldap -llber"
10515 echo "$ac_t""no" 1>&6
10519 echo "$ac_t""no" 1>&6
10524 #################################################
10525 # check for a NISPLUS password database
10526 echo $ac_n "checking whether to use NISPLUS password database""... $ac_c" 1>&6
10527 echo "configure:10528: checking whether to use NISPLUS password database" >&5
10528 # Check whether --with-nisplus or --without-nisplus was given.
10529 if test "${with_nisplus+set}" = set; then
10530 withval
="$with_nisplus"
10533 echo "$ac_t""yes" 1>&6
10534 cat >> confdefs.h
<<\EOF
10535 #define WITH_NISPLUS 1
10540 echo "$ac_t""no" 1>&6
10544 echo "$ac_t""no" 1>&6
10549 #################################################
10550 # decide for the default sam-password-database
10551 echo $ac_n "checking which sam password database to use""... $ac_c" 1>&6
10552 echo "configure:10553: checking which sam password database to use" >&5
10553 # Check whether --with-sam_pwdb or --without-sam_pwdb was given.
10554 if test "${with_sam_pwdb+set}" = set; then
10555 withval
="$with_sam_pwdb"
10558 SAM_PWDB_LIB
='$(SAMRPASSLIB) $(SMBPWLIB)'
10559 sampwlibname
="passdb"
10562 SAM_PWDB_LIB
='$(SAMRTDBLIB)'
10566 SAM_PWDB_LIB
='$(SAMRNT5LDAPLIB)'
10567 sampwlibname
="nt5ldap (must also specify --with-nt5ldap)"
10570 SAM_PWDB_LIB
='$(SAMRPASSLIB)'
10571 sampwlibname
="passdb (unknown specified!)"
10576 SAM_PWDB_LIB
='$(SAMRPASSLIB) $(SMBPWLIB)'
10577 sampwlibname
="passdb (default)"
10581 echo "$ac_t""$sampwlibname" 1>&6
10585 #################################################
10586 # check to use a tdb surs database
10587 echo $ac_n "checking whether to use SURS tdb database""... $ac_c" 1>&6
10588 echo "configure:10589: checking whether to use SURS tdb database" >&5
10589 # Check whether --with-surstdb or --without-surstdb was given.
10590 if test "${with_surstdb+set}" = set; then
10591 withval
="$with_surstdb"
10594 echo "$ac_t""yes" 1>&6
10595 cat >> confdefs.h
<<\EOF
10596 #define WITH_TDBSURS 1
10601 echo "$ac_t""no" 1>&6
10605 echo "$ac_t""no" 1>&6
10611 #################################################
10612 # check for a NISPLUS_HOME support
10613 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
10614 echo "configure:10615: checking whether to use NISPLUS_HOME" >&5
10615 # Check whether --with-nisplus-home or --without-nisplus-home was given.
10616 if test "${with_nisplus_home+set}" = set; then
10617 withval
="$with_nisplus_home"
10620 echo "$ac_t""yes" 1>&6
10621 cat >> confdefs.h
<<\EOF
10622 #define WITH_NISPLUS_HOME 1
10627 echo "$ac_t""no" 1>&6
10631 echo "$ac_t""no" 1>&6
10636 #################################################
10637 # check for the secure socket layer
10638 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
10639 echo "configure:10640: checking whether to use SSL" >&5
10640 # Check whether --with-ssl or --without-ssl was given.
10641 if test "${with_ssl+set}" = set; then
10642 withval
="$with_ssl"
10645 echo "$ac_t""yes" 1>&6
10646 cat >> confdefs.h
<<\EOF
10650 withval
="/usr/local/ssl" # default
10652 if test "${with_sslinc+set}" = set; then
10654 withval
="$with_sslinc"
10657 echo "configure: warning: --with-sslinc called without argument - will use default" 1>&w
10658 CFLAGS
="-I/usr/local/ssl/include $CFLAGS"
10659 LIBS
="-lssl -lcrypto $LIBS"
10660 LDFLAGS
="=L/usr/local/ssl/lib $LDFLAGS"
10663 CFLAGS
="-I${withval}/include $CFLAGS"
10664 LIBS
="-lssl -lcrypto $LIBS"
10665 LDFLAGS
="-L${withval}/lib $LDFLAGS"
10671 CFLAGS
="-I/usr/local/ssl/include $CFLAGS"
10672 LIBS
="-lssl -lcrypto $LIBS"
10673 LDFLAGS
="-L/usr/local/ssl/lib $LDFLAGS"
10677 if test ! -d ${withval}; then
10678 echo "configure: error: called with --with-ssl, but ssl base directory ${withval} does not exist or is not a directory. Aborting config" 1>&2
10682 CFLAGS
="-DHAVE_CRYPT_DECL $CFLAGS" # Damn, SSLeay defines its own
10686 echo "$ac_t""no" 1>&6
10690 echo "$ac_t""no" 1>&6
10695 #################################################
10696 # check for syslog logging
10697 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
10698 echo "configure:10699: checking whether to use syslog logging" >&5
10699 # Check whether --with-syslog or --without-syslog was given.
10700 if test "${with_syslog+set}" = set; then
10701 withval
="$with_syslog"
10704 echo "$ac_t""yes" 1>&6
10705 cat >> confdefs.h
<<\EOF
10706 #define WITH_SYSLOG 1
10711 echo "$ac_t""no" 1>&6
10715 echo "$ac_t""no" 1>&6
10720 #################################################
10721 # check for a shared memory profiling support
10722 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
10723 echo "configure:10724: checking whether to use profiling" >&5
10724 # Check whether --with-profile or --without-profile was given.
10725 if test "${with_profile+set}" = set; then
10726 withval
="$with_profile"
10729 echo "$ac_t""yes" 1>&6
10730 cat >> confdefs.h
<<\EOF
10731 #define WITH_PROFILE 1
10736 echo "$ac_t""no" 1>&6
10740 echo "$ac_t""no" 1>&6
10746 #################################################
10747 # check for experimental netatalk resource fork support
10748 echo $ac_n "checking whether to support netatalk""... $ac_c" 1>&6
10749 echo "configure:10750: checking whether to support netatalk" >&5
10750 # Check whether --with-netatalk or --without-netatalk was given.
10751 if test "${with_netatalk+set}" = set; then
10752 withval
="$with_netatalk"
10755 echo "$ac_t""yes" 1>&6
10756 cat >> confdefs.h
<<\EOF
10757 #define WITH_NETATALK 1
10762 echo "$ac_t""no" 1>&6
10766 echo "$ac_t""no" 1>&6
10771 #################################################
10772 # check for experimental disk-quotas support
10773 QUOTAOBJS
=noquotas.o
10775 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
10776 echo "configure:10777: checking whether to support disk-quotas" >&5
10777 # Check whether --with-quotas or --without-quotas was given.
10778 if test "${with_quotas+set}" = set; then
10779 withval
="$with_quotas"
10782 echo "$ac_t""yes" 1>&6
10786 echo "$ac_t""no" 1>&6
10790 echo "$ac_t""no" 1>&6
10796 #################################################
10797 # check for experimental utmp accounting
10799 echo $ac_n "checking whether to support utmp accounting""... $ac_c" 1>&6
10800 echo "configure:10801: checking whether to support utmp accounting" >&5
10801 # Check whether --with-utmp or --without-utmp was given.
10802 if test "${with_utmp+set}" = set; then
10803 withval
="$with_utmp"
10806 echo "$ac_t""yes" 1>&6
10807 cat >> confdefs.h
<<\EOF
10808 #define WITH_UTMP 1
10813 echo "$ac_t""no" 1>&6
10817 echo "$ac_t""no" 1>&6
10822 #################################################
10823 # check for MS Dfs support
10825 echo $ac_n "checking whether to support MS Dfs""... $ac_c" 1>&6
10826 echo "configure:10827: checking whether to support MS Dfs" >&5
10827 # Check whether --with-msdfs or --without-msdfs was given.
10828 if test "${with_msdfs+set}" = set; then
10829 withval
="$with_msdfs"
10832 echo "$ac_t""yes" 1>&6
10833 cat >> confdefs.h
<<\EOF
10839 echo "$ac_t""no" 1>&6
10843 echo "$ac_t""no" 1>&6
10848 #################################################
10849 # set private directory location
10850 # Check whether --with-privatedir or --without-privatedir was given.
10851 if test "${with_privatedir+set}" = set; then
10852 withval
="$with_privatedir"
10856 # Just in case anybody calls it without argument
10858 echo "configure: warning: --with-privatedir called without argument - will use default" 1>&2
10859 privatedir
='${prefix}/private'
10862 privatedir
="$withval"
10867 privatedir
='${prefix}/private'
10873 #################################################
10874 # set lock directory location
10875 # Check whether --with-lockdir or --without-lockdir was given.
10876 if test "${with_lockdir+set}" = set; then
10877 withval
="$with_lockdir"
10881 # Just in case anybody calls it without argument
10883 echo "configure: warning: --with-lockdir called without argument - will use default" 1>&2
10884 lockdir
='$(VARDIR)/locks'
10892 lockdir
='$(VARDIR)/locks'
10898 #################################################
10899 # set SWAT directory location
10900 # Check whether --with-swatdir or --without-swatdir was given.
10901 if test "${with_swatdir+set}" = set; then
10902 withval
="$with_swatdir"
10906 # Just in case anybody does it
10908 echo "configure: warning: --with-swatdir called without argument - will use default" 1>&2
10909 swatdir
='${prefix}/swat'
10917 swatdir
='${prefix}/swat'
10923 #################################################
10924 # these tests are taken from the GNU fileutils package
10925 echo "checking how to get filesystem space usage" 1>&6
10926 echo "configure:10927: checking how to get filesystem space usage" >&5
10929 # Test for statvfs64.
10930 if test $space = no
; then
10932 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
10933 echo "configure:10934: checking statvfs64 function (SVR4)" >&5
10934 if eval "test \"\${fu_cv_sys_stat_statvfs64+set}\" = set"; then
10935 echo $ac_n "(cached) $ac_c" 1>&6
10937 if test "$cross_compiling" = yes; then
10938 fu_cv_sys_stat_statvfs64
=cross
10940 cat > conftest.
$ac_ext <<EOF
10941 #line 10942 "configure"
10942 #include "confdefs.h"
10944 #if defined(HAVE_UNISTD_H)
10945 #include <unistd.h>
10947 #include <sys/types.h>
10948 #include <sys/statvfs.h>
10951 struct statvfs64 fsd;
10952 exit (statvfs64 (".", &fsd));
10955 if { (eval echo configure
:10956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10957 fu_cv_sys_stat_statvfs64
=yes
10959 echo "configure: failed program was:" >&5
10960 cat conftest.
$ac_ext >&5
10962 fu_cv_sys_stat_statvfs64
=no
10969 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
10970 if test $fu_cv_sys_stat_statvfs64 = yes; then
10972 cat >> confdefs.h
<<\EOF
10973 #define STAT_STATVFS64 1
10979 # Perform only the link test since it seems there are no variants of the
10980 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
10981 # because that got a false positive on SCO OSR5. Adding the declaration
10982 # of a `struct statvfs' causes this test to fail (as it should) on such
10983 # systems. That system is reported to work fine with STAT_STATFS4 which
10984 # is what it gets when this test fails.
10985 if test $space = no
; then
10987 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
10988 echo "configure:10989: checking statvfs function (SVR4)" >&5
10989 if eval "test \"\${fu_cv_sys_stat_statvfs+set}\" = set"; then
10990 echo $ac_n "(cached) $ac_c" 1>&6
10992 cat > conftest.
$ac_ext <<EOF
10993 #line 10994 "configure"
10994 #include "confdefs.h"
10995 #include <sys/types.h>
10996 #include <sys/statvfs.h>
10998 struct statvfs fsd; statvfs (0, &fsd);
11001 if { (eval echo configure
:11002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11003 fu_cv_sys_stat_statvfs
=yes
11005 echo "configure: failed program was:" >&5
11006 cat conftest.
$ac_ext >&5
11008 fu_cv_sys_stat_statvfs
=no
11013 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
11014 if test $fu_cv_sys_stat_statvfs = yes; then
11016 cat >> confdefs.h
<<\EOF
11017 #define STAT_STATVFS 1
11023 if test $space = no
; then
11024 # DEC Alpha running OSF/1
11025 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
11026 echo "configure:11027: checking for 3-argument statfs function (DEC OSF/1)" >&5
11027 if eval "test \"\${fu_cv_sys_stat_statfs3_osf1+set}\" = set"; then
11028 echo $ac_n "(cached) $ac_c" 1>&6
11030 if test "$cross_compiling" = yes; then
11031 fu_cv_sys_stat_statfs3_osf1
=no
11033 cat > conftest.
$ac_ext <<EOF
11034 #line 11035 "configure"
11035 #include "confdefs.h"
11037 #include <sys/param.h>
11038 #include <sys/types.h>
11039 #include <sys/mount.h>
11044 exit (statfs (".", &fsd, sizeof (struct statfs)));
11047 if { (eval echo configure
:11048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11049 fu_cv_sys_stat_statfs3_osf1
=yes
11051 echo "configure: failed program was:" >&5
11052 cat conftest.
$ac_ext >&5
11054 fu_cv_sys_stat_statfs3_osf1
=no
11061 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
11062 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
11064 cat >> confdefs.h
<<\EOF
11065 #define STAT_STATFS3_OSF1 1
11071 if test $space = no
; then
11073 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
11074 echo "configure:11075: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
11075 if eval "test \"\${fu_cv_sys_stat_statfs2_bsize+set}\" = set"; then
11076 echo $ac_n "(cached) $ac_c" 1>&6
11078 if test "$cross_compiling" = yes; then
11079 fu_cv_sys_stat_statfs2_bsize
=no
11081 cat > conftest.
$ac_ext <<EOF
11082 #line 11083 "configure"
11083 #include "confdefs.h"
11085 #ifdef HAVE_SYS_PARAM_H
11086 #include <sys/param.h>
11088 #ifdef HAVE_SYS_MOUNT_H
11089 #include <sys/mount.h>
11091 #ifdef HAVE_SYS_VFS_H
11092 #include <sys/vfs.h>
11098 exit (statfs (".", &fsd));
11101 if { (eval echo configure
:11102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11103 fu_cv_sys_stat_statfs2_bsize
=yes
11105 echo "configure: failed program was:" >&5
11106 cat conftest.
$ac_ext >&5
11108 fu_cv_sys_stat_statfs2_bsize
=no
11115 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
11116 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
11118 cat >> confdefs.h
<<\EOF
11119 #define STAT_STATFS2_BSIZE 1
11125 if test $space = no
; then
11127 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
11128 echo "configure:11129: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
11129 if eval "test \"\${fu_cv_sys_stat_statfs4+set}\" = set"; then
11130 echo $ac_n "(cached) $ac_c" 1>&6
11132 if test "$cross_compiling" = yes; then
11133 fu_cv_sys_stat_statfs4
=no
11135 cat > conftest.
$ac_ext <<EOF
11136 #line 11137 "configure"
11137 #include "confdefs.h"
11138 #include <sys/types.h>
11139 #include <sys/statfs.h>
11143 exit (statfs (".", &fsd, sizeof fsd, 0));
11146 if { (eval echo configure
:11147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11148 fu_cv_sys_stat_statfs4
=yes
11150 echo "configure: failed program was:" >&5
11151 cat conftest.
$ac_ext >&5
11153 fu_cv_sys_stat_statfs4
=no
11160 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
11161 if test $fu_cv_sys_stat_statfs4 = yes; then
11163 cat >> confdefs.h
<<\EOF
11164 #define STAT_STATFS4 1
11170 if test $space = no
; then
11171 # 4.4BSD and NetBSD
11172 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
11173 echo "configure:11174: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
11174 if eval "test \"\${fu_cv_sys_stat_statfs2_fsize+set}\" = set"; then
11175 echo $ac_n "(cached) $ac_c" 1>&6
11177 if test "$cross_compiling" = yes; then
11178 fu_cv_sys_stat_statfs2_fsize
=no
11180 cat > conftest.
$ac_ext <<EOF
11181 #line 11182 "configure"
11182 #include "confdefs.h"
11183 #include <sys/types.h>
11184 #ifdef HAVE_SYS_PARAM_H
11185 #include <sys/param.h>
11187 #ifdef HAVE_SYS_MOUNT_H
11188 #include <sys/mount.h>
11194 exit (statfs (".", &fsd));
11197 if { (eval echo configure
:11198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11199 fu_cv_sys_stat_statfs2_fsize
=yes
11201 echo "configure: failed program was:" >&5
11202 cat conftest.
$ac_ext >&5
11204 fu_cv_sys_stat_statfs2_fsize
=no
11211 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
11212 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
11214 cat >> confdefs.h
<<\EOF
11215 #define STAT_STATFS2_FSIZE 1
11221 if test $space = no
; then
11223 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
11224 echo "configure:11225: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
11225 if eval "test \"\${fu_cv_sys_stat_fs_data+set}\" = set"; then
11226 echo $ac_n "(cached) $ac_c" 1>&6
11228 if test "$cross_compiling" = yes; then
11229 fu_cv_sys_stat_fs_data
=no
11231 cat > conftest.
$ac_ext <<EOF
11232 #line 11233 "configure"
11233 #include "confdefs.h"
11234 #include <sys/types.h>
11235 #ifdef HAVE_SYS_PARAM_H
11236 #include <sys/param.h>
11238 #ifdef HAVE_SYS_MOUNT_H
11239 #include <sys/mount.h>
11241 #ifdef HAVE_SYS_FS_TYPES_H
11242 #include <sys/fs_types.h>
11246 struct fs_data fsd;
11247 /* Ultrix's statfs returns 1 for success,
11248 0 for not mounted, -1 for failure. */
11249 exit (statfs (".", &fsd) != 1);
11252 if { (eval echo configure
:11253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11254 fu_cv_sys_stat_fs_data
=yes
11256 echo "configure: failed program was:" >&5
11257 cat conftest.
$ac_ext >&5
11259 fu_cv_sys_stat_fs_data
=no
11266 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
11267 if test $fu_cv_sys_stat_fs_data = yes; then
11269 cat >> confdefs.h
<<\EOF
11270 #define STAT_STATFS2_FS_DATA 1
11277 # As a gating factor for large file support, in order to
11278 # use <4GB files we must have the following minimal support
11280 # long long, and a 64 bit off_t or off64_t.
11281 # If we don't have all of these then disable large
11284 echo "checking if large file support can be enabled"
11285 cat > conftest.
$ac_ext <<EOF
11286 #line 11287 "configure"
11287 #include "confdefs.h"
11289 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
11290 #include <sys/types.h>
11299 if { (eval echo configure
:11300: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11301 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT
=yes
11303 echo "configure: failed program was:" >&5
11304 cat conftest.
$ac_ext >&5
11306 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT
=no
11309 if test x
"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x
"yes"; then
11311 cat >> confdefs.h
<<\EOF
11312 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
11319 # sometimes getopt_long cannot parse same arguments twice
11320 # e.g. on certain versions of CygWin32
11321 echo $ac_n "checking for working getopt_long""... $ac_c" 1>&6
11322 echo "configure:11323: checking for working getopt_long" >&5
11323 if eval "test \"\${samba_cv_HAVE_GETOPT_LONG+set}\" = set"; then
11324 echo $ac_n "(cached) $ac_c" 1>&6
11327 if test "$cross_compiling" = yes; then
11328 samba_cv_HAVE_GETOPT_LONG
=cross
11330 cat > conftest.
$ac_ext <<EOF
11331 #line 11332 "configure"
11332 #include "confdefs.h"
11333 #include <getopt.h>
11335 int i, x = 0; char *argv[] = { "x", "--xx" };
11336 struct option o[] = {{"xx", 0, 0, 1}, {0,0,0,0}};
11337 getopt_long(2, argv, "x", o, &i) == 1 ? x++ : 0; optind = 0;
11338 getopt_long(2, argv, "x", o, &i) == 1 ? x++ : 0;
11339 exit(x == 2 ? 0 : 1);
11342 if { (eval echo configure
:11343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11344 samba_cv_HAVE_GETOPT_LONG
=yes
11346 echo "configure: failed program was:" >&5
11347 cat conftest.
$ac_ext >&5
11349 samba_cv_HAVE_GETOPT_LONG
=no
11356 echo "$ac_t""$samba_cv_HAVE_GETOPT_LONG" 1>&6
11357 if test x
"$samba_cv_HAVE_GETOPT_LONG" = x
"yes"; then
11358 cat >> confdefs.h
<<\EOF
11359 #define HAVE_GETOPT_LONG 1
11364 echo "checking configure summary"
11365 if test "$cross_compiling" = yes; then
11368 cat > conftest.
$ac_ext <<EOF
11369 #line 11370 "configure"
11370 #include "confdefs.h"
11371 #include "${srcdir-.}/tests/summary.c"
11373 if { (eval echo configure
:11374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11375 echo "configure OK";
11377 echo "configure: failed program was:" >&5
11378 cat conftest.
$ac_ext >&5
11380 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }
11390 cat > confcache
<<\EOF
11391 # This file is a shell script that caches the results of configure
11392 # tests run on this system so they can be shared between configure
11393 # scripts and configure runs. It is not useful on other systems.
11394 # If it contains results you don't want to keep, you may remove or edit it.
11396 # By default, configure uses ./config.cache as the cache file,
11397 # creating it if it does not exist already. You can give configure
11398 # the --cache-file=FILE option to use a different cache file; that is
11399 # what configure does when it calls configure scripts in
11400 # subdirectories, so they share the cache.
11401 # Giving --cache-file=/dev/null disables caching, for debugging configure.
11402 # config.status only pays attention to the cache file if you give it the
11403 # --recheck option to rerun configure.
11406 # The following way of writing the cache mishandles newlines in values,
11407 # but we know of no workaround that is simple, portable, and efficient.
11408 # So, don't put newlines in cache variables' values.
11409 # Ultrix sh set writes to stderr and can't be redirected directly,
11410 # and sets the high bit in the cache file unless we assign to the vars.
11412 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11414 # `set' does not quote correctly, so add quotes (double-quote substitution
11415 # turns \\\\ into \\, and sed turns \\ into \).
11417 -e "s/'/'\\\\''/g" \
11418 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
11421 # `set' quotes correctly as required by POSIX, so do not add quotes.
11422 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
11425 if cmp -s $cache_file confcache
; then
11428 if test -w $cache_file; then
11429 echo "updating cache $cache_file"
11430 cat confcache
> $cache_file
11432 echo "not updating unwritable cache $cache_file"
11437 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
11439 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
11440 # Let make expand exec_prefix.
11441 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
11443 # Any assignment to VPATH causes Sun make to only execute
11444 # the first set of double-colon rules, so remove it if not needed.
11445 # If there is a colon in the path, we need to keep it.
11446 if test "x$srcdir" = x.
; then
11447 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
11450 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
11452 DEFS
=-DHAVE_CONFIG_H
11454 # Without the "./", some shells look in PATH for config.status.
11455 : ${CONFIG_STATUS=./config.status}
11457 echo creating
$CONFIG_STATUS
11458 rm -f $CONFIG_STATUS
11459 cat > $CONFIG_STATUS <<EOF
11461 # Generated automatically by configure.
11462 # Run this file to recreate the current configuration.
11463 # This directory was configured as follows,
11464 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11466 # $0 $ac_configure_args
11468 # Compiler output produced by configure, useful for debugging
11469 # configure, is in ./config.log if it exists.
11471 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
11474 case "\$ac_option" in
11475 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11476 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
11477 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
11478 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
11479 echo "$CONFIG_STATUS generated by autoconf version 2.14.1"
11481 -help | --help | --hel | --he | --h)
11482 echo "\$ac_cs_usage"; exit 0 ;;
11483 *) echo "\$ac_cs_usage"; exit 1 ;;
11487 ac_given_srcdir=$srcdir
11488 ac_given_INSTALL="$INSTALL"
11490 trap 'rm -fr `echo "include/stamp-h Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
11492 cat >> $CONFIG_STATUS <<EOF
11494 # Protect against being on the right side of a sed subst in config.status.
11495 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
11496 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
11500 s%@CFLAGS@%$CFLAGS%g
11501 s%@CPPFLAGS@%$CPPFLAGS%g
11502 s%@CXXFLAGS@%$CXXFLAGS%g
11503 s%@FFLAGS@%$FFLAGS%g
11505 s%@LDFLAGS@%$LDFLAGS%g
11507 s%@exec_prefix@%$exec_prefix%g
11508 s%@prefix@%$prefix%g
11509 s%@program_transform_name@%$program_transform_name%g
11510 s%@bindir@%$bindir%g
11511 s%@sbindir@%$sbindir%g
11512 s%@libexecdir@%$libexecdir%g
11513 s%@datadir@%$datadir%g
11514 s%@sysconfdir@%$sysconfdir%g
11515 s%@sharedstatedir@%$sharedstatedir%g
11516 s%@localstatedir@%$localstatedir%g
11517 s%@libdir@%$libdir%g
11518 s%@includedir@%$includedir%g
11519 s%@oldincludedir@%$oldincludedir%g
11520 s%@infodir@%$infodir%g
11521 s%@mandir@%$mandir%g
11522 s%@RUNPROG@%$RUNPROG%g
11523 s%@MPROGS@%$MPROGS%g
11524 s%@LDSHFLAGS@%$LDSHFLAGS%g
11525 s%@HOST_OS@%$HOST_OS%g
11527 s%@WRAP32@%$WRAP32%g
11528 s%@PICFLAG@%$PICFLAG%g
11529 s%@SHLIBEXT@%$SHLIBEXT%g
11531 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
11532 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
11533 s%@INSTALL_DATA@%$INSTALL_DATA%g
11536 s%@host_alias@%$host_alias%g
11537 s%@host_cpu@%$host_cpu%g
11538 s%@host_vendor@%$host_vendor%g
11539 s%@host_os@%$host_os%g
11541 s%@build_alias@%$build_alias%g
11542 s%@build_cpu@%$build_cpu%g
11543 s%@build_vendor@%$build_vendor%g
11544 s%@build_os@%$build_os%g
11545 s%@RANLIB@%$RANLIB%g
11547 s%@LIBTOOL@%$LIBTOOL%g
11548 s%@LIBTOOL_DEPS@%$LIBTOOL_DEPS%g
11549 s%@BROKEN_CC@%$BROKEN_CC%g
11550 s%@target@%$target%g
11551 s%@target_alias@%$target_alias%g
11552 s%@target_cpu@%$target_cpu%g
11553 s%@target_vendor@%$target_vendor%g
11554 s%@target_os@%$target_os%g
11556 s%@AUTOCONF@%$AUTOCONF%g
11557 s%@AUTOHEADER@%$AUTOHEADER%g
11559 s%@LIBOBJS@%$LIBOBJS%g
11561 s%@SAM_PWDB_LIB@%$SAM_PWDB_LIB%g
11562 s%@QUOTAOBJS@%$QUOTAOBJS%g
11563 s%@privatedir@%$privatedir%g
11564 s%@lockdir@%$lockdir%g
11565 s%@swatdir@%$swatdir%g
11566 s%@builddir@%$builddir%g
11571 cat >> $CONFIG_STATUS <<\EOF
11573 # Split the substitutions into bite-sized pieces for seds with
11574 # small command number limits, like on Digital OSF/1 and HP-UX.
11575 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
11576 ac_file
=1 # Number of current file.
11577 ac_beg
=1 # First line for current file.
11578 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
11581 while $ac_more_lines; do
11582 if test $ac_beg -gt 1; then
11583 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
11585 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
11587 if test ! -s conftest.s
$ac_file; then
11588 ac_more_lines
=false
11589 rm -f conftest.s
$ac_file
11591 if test -z "$ac_sed_cmds"; then
11592 ac_sed_cmds
="sed -f conftest.s$ac_file"
11594 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
11596 ac_file
=`expr $ac_file + 1`
11598 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
11601 if test -z "$ac_sed_cmds"; then
11606 cat >> $CONFIG_STATUS <<EOF
11608 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile"}
11610 cat >> $CONFIG_STATUS <<\EOF
11611 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
11612 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11614 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
11615 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
11616 *) ac_file_in
="${ac_file}.in" ;;
11619 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
11621 # Remove last slash and all that follows it. Not all systems have dirname.
11622 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
11623 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
11624 # The file is in a subdirectory.
11625 test ! -d "$ac_dir" && mkdir
"$ac_dir"
11626 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
11627 # A "../" for each directory in $ac_dir_suffix.
11628 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
11630 ac_dir_suffix
= ac_dots
=
11633 case "$ac_given_srcdir" in
11635 if test -z "$ac_dots"; then top_srcdir
=.
11636 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
11637 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
11638 *) # Relative path.
11639 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
11640 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
11643 case "$ac_given_INSTALL" in
11644 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
11645 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
11648 echo creating
"$ac_file"
11650 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
11652 *Makefile
*) ac_comsub
="1i\\
11653 # $configure_input" ;;
11657 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
11659 s%@configure_input@%$configure_input%g
11660 s%@srcdir@%$srcdir%g
11661 s%@top_srcdir@%$top_srcdir%g
11662 s%@INSTALL@%$INSTALL%g
11663 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
11667 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11668 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11670 # ac_d sets the value in "#define NAME VALUE" lines.
11671 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11672 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
11675 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
11676 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11677 ac_uB
='\([ ]\)%\1#\2define\3'
11680 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11681 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11682 ac_eB
='$%\1#\2define\3'
11686 if test "${CONFIG_HEADERS+set}" != set; then
11688 cat >> $CONFIG_STATUS <<EOF
11689 CONFIG_HEADERS="include/config.h"
11691 cat >> $CONFIG_STATUS <<\EOF
11693 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
11694 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11696 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
11697 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
11698 *) ac_file_in
="${ac_file}.in" ;;
11701 echo creating
$ac_file
11703 rm -f conftest.frag conftest.
in conftest.out
11704 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
11705 cat $ac_file_inputs > conftest.
in
11709 # Transform confdefs.h into a sed script conftest.vals that substitutes
11710 # the proper values into config.h.in to produce config.h. And first:
11711 # Protect against being on the right side of a sed subst in config.status.
11712 # Protect against being in an unquoted here document in config.status.
11713 rm -f conftest.vals
11714 cat > conftest.hdr
<<\EOF
11717 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
11721 sed -n -f conftest.hdr confdefs.h > conftest.vals
11724 # This sed command replaces #undef with comments. This is necessary, for
11725 # example, in the case of _POSIX_SOURCE, which is predefined and required
11726 # on some systems where configure will not decide to define it.
11727 cat >> conftest.vals <<\EOF
11728 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
11731 # Break up conftest.vals because some shells have a limit on
11732 # the size of here documents, and old seds have small limits too.
11734 rm -f conftest.tail
11737 ac_lines=`grep -c . conftest.vals
`
11738 # grep -c gives empty output for an empty file on some AIX systems.
11739 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
11740 # Write a limited-size here document to conftest.frag.
11741 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
11742 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
11744 sed -f conftest.frag conftest.in > conftest.out
11746 mv conftest.out conftest.in
11747 ' >> $CONFIG_STATUS
11748 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
11749 rm -f conftest.vals
11750 mv conftest.tail conftest.vals
11752 rm -f conftest.vals
11754 cat >> $CONFIG_STATUS <<\EOF
11755 rm -f conftest.frag conftest.h
11756 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
11757 cat conftest.in >> conftest.h
11759 if cmp -s $ac_file conftest.h 2>/dev/null; then
11760 echo "$ac_file is unchanged"
11763 # Remove last slash and all that follows it. Not all systems have dirname.
11764 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
11765 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
11766 # The file is in a subdirectory.
11767 test ! -d "$ac_dir" && mkdir "$ac_dir"
11770 mv conftest.h $ac_file
11775 cat >> $CONFIG_STATUS <<EOF
11778 cat >> $CONFIG_STATUS <<\EOF
11782 chmod +x $CONFIG_STATUS
11783 rm -fr confdefs* $ac_clean_files
11784 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1