3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
14 ac_default_prefix
=/usr
/local
/samba
16 --enable-debug turn on debugging [default=no]"
18 --enable-shared[=PKGS] build shared libraries [default=yes]"
20 --enable-static[=PKGS] build static libraries [default=yes]"
22 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
24 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
26 --disable-libtool-lock avoid locking (might break parallel builds)"
28 --with-codepagedir=DIR Where to put codepage files ($codepagedir)"
30 --with-readline[=DIR] Look for readline include/libs in DIR
31 --without-readline Don't include readline support"
33 --with-smbwrapper Include SMB wrapper support
34 --without-smbwrapper Don't include SMB wrapper support (default)"
36 --with-afs Include AFS support
37 --without-afs Don't include AFS support (default)"
39 --with-dfs Include DFS support
40 --without-dfs Don't include DFS support (default)"
42 --with-krb4=base-dir Include Kerberos IV support
43 --without-krb4 Don't include Kerberos IV support (default)"
45 --with-krb5=base-dir Include Kerberos 5 support
46 --without-krb5 Don't include Kerberos 5 support (default)"
48 --with-automount Include AUTOMOUNT support
49 --without-automount Don't include AUTOMOUNT support (default)"
51 --with-smbmount Include SMBMOUNT (Linux only) support
52 --without-smbmount Don't include SMBMOUNT support (default)"
54 --with-pam Include PAM password database support
55 --without-pam Don't include PAM password database support (default)"
57 --with-tdbsam Include experimental TDB password database
58 --without-tdbsam Don't include experimental TDB password database (default)"
60 --with-ldap Include LDAP support
61 --without-ldap Don't include LDAP support (default)"
63 --with-nisplus Include NISPLUS password database support
64 --without-nisplus Don't include NISPLUS password database support (default)"
66 --with-nisplus-home Include NISPLUS_HOME support
67 --without-nisplus-home Don't include NISPLUS_HOME support (default)"
69 --with-ssl Include SSL support
70 --without-ssl Don't include SSL support (default)
71 --with-sslinc=DIR Where the SSL includes are (defaults to /usr/local/ssl)"
73 --with-syslog Include experimental SYSLOG support
74 --without-syslog Don't include SYSLOG support (default)"
76 --with-profile Include profile support
77 --without-profile Don't include profile support (default)"
79 --with-netatalk Include experimental Netatalk support
80 --without-netatalk Don't include experimental Netatalk support (default)"
82 --with-quotas Include experimental disk-quota support
83 --without-quotas Don't include experimental disk-quota support (default)"
85 --with-utmp Include experimental utmp accounting
86 --without-utmp Don't include experimental utmp accounting (default)"
88 --with-msdfs Include MS Dfs support
89 --without-msdfs Don't include MS Dfs support (default)"
91 --with-privatedir=DIR Where to put smbpasswd ($ac_default_prefix/private)"
93 --with-lockdir=DIR Where to put lock files ($ac_default_prefix/var/locks)"
95 --with-swatdir=DIR Where to put SWAT files ($ac_default_prefix/swat)"
97 --with-spinlocks use spin locks instead of fcntl locks "
99 --with-acl-support Include ACL support
100 --without-acl-support Don't include ACL support (default)"
102 # Initialize some variables set by options.
103 # The variables have the same names as the options, with
104 # dashes changed to underlines.
106 cache_file
=.
/config.cache
115 program_transform_name
=s
,x
,x
,
123 bindir
='${exec_prefix}/bin'
124 sbindir
='${exec_prefix}/sbin'
125 libexecdir
='${exec_prefix}/libexec'
126 datadir
='${prefix}/share'
127 sysconfdir
='${prefix}/etc'
128 sharedstatedir
='${prefix}/com'
129 localstatedir
='${prefix}/var'
130 libdir
='${exec_prefix}/lib'
131 includedir
='${prefix}/include'
132 oldincludedir
='/usr/include'
133 infodir
='${prefix}/info'
134 mandir
='${prefix}/man'
136 # Initialize some other variables.
139 SHELL
=${CONFIG_SHELL-/bin/sh}
140 # Maximum number of lines to put in a shell here document.
147 # If the previous option needs an argument, assign it.
148 if test -n "$ac_prev"; then
149 eval "$ac_prev=\$ac_option"
155 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
159 # Accept the important Cygnus configure options, so we can diagnose typos.
163 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
165 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
166 bindir
="$ac_optarg" ;;
168 -build |
--build |
--buil |
--bui |
--bu)
170 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
171 build
="$ac_optarg" ;;
173 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
174 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
175 ac_prev
=cache_file
;;
176 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
177 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
178 cache_file
="$ac_optarg" ;;
180 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
182 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
184 datadir
="$ac_optarg" ;;
186 -disable-* |
--disable-*)
187 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
188 # Reject names that are not valid shell variable names.
189 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
190 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
192 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
193 eval "enable_${ac_feature}=no" ;;
195 -enable-* |
--enable-*)
196 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
197 # Reject names that are not valid shell variable names.
198 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
199 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
201 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
206 eval "enable_${ac_feature}='$ac_optarg'" ;;
208 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
209 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
210 |
--exec |
--exe |
--ex)
211 ac_prev
=exec_prefix
;;
212 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
213 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
214 |
--exec=* |
--exe=* |
--ex=*)
215 exec_prefix
="$ac_optarg" ;;
217 -gas |
--gas |
--ga |
--g)
218 # Obsolete; use --with-gas.
221 -help |
--help |
--hel |
--he)
222 # Omit some internal or obsolete options to make the list less imposing.
223 # This message is too long to be a string in the A/UX 3.1 sh.
225 Usage: configure [options] [host]
226 Options: [defaults in brackets after descriptions]
228 --cache-file=FILE cache test results in FILE
229 --help print this message
230 --no-create do not create output files
231 --quiet, --silent do not print \`checking...' messages
232 --version print the version of autoconf that created configure
233 Directory and file names:
234 --prefix=PREFIX install architecture-independent files in PREFIX
236 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
238 --bindir=DIR user executables in DIR [EPREFIX/bin]
239 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
240 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
241 --datadir=DIR read-only architecture-independent data in DIR
243 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
244 --sharedstatedir=DIR modifiable architecture-independent data in DIR
246 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
247 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
248 --includedir=DIR C header files in DIR [PREFIX/include]
249 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
250 --infodir=DIR info documentation in DIR [PREFIX/info]
251 --mandir=DIR man documentation in DIR [PREFIX/man]
252 --srcdir=DIR find the sources in DIR [configure dir or ..]
253 --program-prefix=PREFIX prepend PREFIX to installed program names
254 --program-suffix=SUFFIX append SUFFIX to installed program names
255 --program-transform-name=PROGRAM
256 run sed PROGRAM on installed program names
260 --build=BUILD configure for building on BUILD [BUILD=HOST]
261 --host=HOST configure for HOST [guessed]
262 --target=TARGET configure for TARGET [TARGET=HOST]
263 Features and packages:
264 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
265 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
266 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
267 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
268 --x-includes=DIR X include files are in DIR
269 --x-libraries=DIR X library files are in DIR
271 if test -n "$ac_help"; then
272 echo "--enable and --with options recognized:$ac_help"
276 -host |
--host |
--hos |
--ho)
278 -host=* |
--host=* |
--hos=* |
--ho=*)
281 -includedir |
--includedir |
--includedi |
--included |
--include \
282 |
--includ |
--inclu |
--incl |
--inc)
283 ac_prev
=includedir
;;
284 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
285 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
286 includedir
="$ac_optarg" ;;
288 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
290 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
291 infodir
="$ac_optarg" ;;
293 -libdir |
--libdir |
--libdi |
--libd)
295 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
296 libdir
="$ac_optarg" ;;
298 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
299 |
--libexe |
--libex |
--libe)
300 ac_prev
=libexecdir
;;
301 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
302 |
--libexe=* |
--libex=* |
--libe=*)
303 libexecdir
="$ac_optarg" ;;
305 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
306 |
--localstate |
--localstat |
--localsta |
--localst \
307 |
--locals |
--local |
--loca |
--loc |
--lo)
308 ac_prev
=localstatedir
;;
309 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
310 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
311 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
312 localstatedir
="$ac_optarg" ;;
314 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
316 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
317 mandir
="$ac_optarg" ;;
320 # Obsolete; use --without-fp.
323 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
327 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
328 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
331 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
332 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
333 |
--oldin |
--oldi |
--old |
--ol |
--o)
334 ac_prev
=oldincludedir
;;
335 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
336 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
337 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
338 oldincludedir
="$ac_optarg" ;;
340 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
342 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
343 prefix
="$ac_optarg" ;;
345 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
346 |
--program-pre |
--program-pr |
--program-p)
347 ac_prev
=program_prefix
;;
348 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
349 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
350 program_prefix
="$ac_optarg" ;;
352 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
353 |
--program-suf |
--program-su |
--program-s)
354 ac_prev
=program_suffix
;;
355 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
356 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
357 program_suffix
="$ac_optarg" ;;
359 -program-transform-name |
--program-transform-name \
360 |
--program-transform-nam |
--program-transform-na \
361 |
--program-transform-n |
--program-transform- \
362 |
--program-transform |
--program-transfor \
363 |
--program-transfo |
--program-transf \
364 |
--program-trans |
--program-tran \
365 |
--progr-tra |
--program-tr |
--program-t)
366 ac_prev
=program_transform_name
;;
367 -program-transform-name=* |
--program-transform-name=* \
368 |
--program-transform-nam=* |
--program-transform-na=* \
369 |
--program-transform-n=* |
--program-transform-=* \
370 |
--program-transform=* |
--program-transfor=* \
371 |
--program-transfo=* |
--program-transf=* \
372 |
--program-trans=* |
--program-tran=* \
373 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
374 program_transform_name
="$ac_optarg" ;;
376 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
377 |
-silent |
--silent |
--silen |
--sile |
--sil)
380 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
382 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
384 sbindir
="$ac_optarg" ;;
386 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
387 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
388 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
390 ac_prev
=sharedstatedir
;;
391 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
392 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
393 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
395 sharedstatedir
="$ac_optarg" ;;
397 -site |
--site |
--sit)
399 -site=* |
--site=* |
--sit=*)
402 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
404 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
405 srcdir
="$ac_optarg" ;;
407 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
408 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
409 ac_prev
=sysconfdir
;;
410 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
411 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
412 sysconfdir
="$ac_optarg" ;;
414 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
416 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
417 target
="$ac_optarg" ;;
419 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
422 -version |
--version |
--versio |
--versi |
--vers)
423 echo "configure generated by autoconf version 2.13"
427 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
428 # Reject names that are not valid shell variable names.
429 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
430 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
432 ac_package
=`echo $ac_package| sed 's/-/_/g'`
437 eval "with_${ac_package}='$ac_optarg'" ;;
439 -without-* |
--without-*)
440 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
441 # Reject names that are not valid shell variable names.
442 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
443 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
445 ac_package
=`echo $ac_package| sed 's/-/_/g'`
446 eval "with_${ac_package}=no" ;;
449 # Obsolete; use --with-x.
452 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
453 |
--x-incl |
--x-inc |
--x-in |
--x-i)
454 ac_prev
=x_includes
;;
455 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
456 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
457 x_includes
="$ac_optarg" ;;
459 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
460 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
461 ac_prev
=x_libraries
;;
462 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
463 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
464 x_libraries
="$ac_optarg" ;;
466 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
470 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
471 echo "configure: warning: $ac_option: invalid host type" 1>&2
473 if test "x$nonopt" != xNONE
; then
474 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
482 if test -n "$ac_prev"; then
483 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
486 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
488 # File descriptor usage:
491 # 2 errors and warnings
492 # 3 some systems may open it to /dev/tty
493 # 4 used on the Kubota Titan
494 # 6 checking for... messages and results
495 # 5 compiler messages saved in config.log
496 if test "$silent" = yes; then
504 This file contains any messages produced by compilers while
505 running configure, to aid debugging if configure makes a mistake.
508 # Strip out --no-create and --no-recursion so they do not pile up.
509 # Also quote any args containing shell metacharacters.
514 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
515 |
--no-cr |
--no-c) ;;
516 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
517 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
518 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
519 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
520 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
525 # Only set these to C if already set. These must not be set unconditionally
526 # because not all systems understand e.g. LANG=C (notably SCO).
527 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
528 # Non-C LC_CTYPE values break the ctype check.
529 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
530 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
531 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
532 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
534 # confdefs.h avoids OS command line length limits that DEFS can exceed.
535 rm -rf conftest
* confdefs.h
536 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
539 # A filename unique to this package, relative to the directory that
540 # configure is in, which we can look for to find out if srcdir is correct.
541 ac_unique_file
=include
/includes.h
543 # Find the source files, if location was not specified.
544 if test -z "$srcdir"; then
545 ac_srcdir_defaulted
=yes
546 # Try the directory containing this script, then its parent.
548 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
549 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
551 if test ! -r $srcdir/$ac_unique_file; then
555 ac_srcdir_defaulted
=no
557 if test ! -r $srcdir/$ac_unique_file; then
558 if test "$ac_srcdir_defaulted" = yes; then
559 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
561 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
564 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
566 # Prefer explicitly selected file to automatically selected ones.
567 if test -z "$CONFIG_SITE"; then
568 if test "x$prefix" != xNONE
; then
569 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
571 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
574 for ac_site_file
in $CONFIG_SITE; do
575 if test -r "$ac_site_file"; then
576 echo "loading site script $ac_site_file"
581 if test -r "$cache_file"; then
582 echo "loading cache $cache_file"
585 echo "creating cache $cache_file"
590 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
591 ac_cpp
='$CPP $CPPFLAGS'
592 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
593 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
594 cross_compiling
=$ac_cv_prog_cc_cross
598 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
599 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
600 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
607 ac_n
= ac_c
='\c' ac_t
=
612 # we want to be compatibe with older versions of Samba
625 # compile with optimisation and without debugging by default
626 CFLAGS
="-O ${CFLAGS}"
628 # Check whether --enable-debug or --disable-debug was given.
629 if test "${enable_debug+set}" = set; then
630 enableval
="$enable_debug"
631 if eval "test x$enable_debug = xyes"; then
632 CFLAGS
="${CFLAGS} -g"
638 # Extract the first word of "gcc", so it can be a program name with args.
639 set dummy gcc
; ac_word
=$2
640 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
641 echo "configure:642: checking for $ac_word" >&5
642 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
643 echo $ac_n "(cached) $ac_c" 1>&6
645 if test -n "$CC"; then
646 ac_cv_prog_CC
="$CC" # Let the user override the test.
648 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
650 for ac_dir
in $ac_dummy; do
651 test -z "$ac_dir" && ac_dir
=.
652 if test -f $ac_dir/$ac_word; then
661 if test -n "$CC"; then
662 echo "$ac_t""$CC" 1>&6
664 echo "$ac_t""no" 1>&6
667 if test -z "$CC"; then
668 # Extract the first word of "cc", so it can be a program name with args.
669 set dummy cc
; ac_word
=$2
670 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
671 echo "configure:672: checking for $ac_word" >&5
672 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
673 echo $ac_n "(cached) $ac_c" 1>&6
675 if test -n "$CC"; then
676 ac_cv_prog_CC
="$CC" # Let the user override the test.
678 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
681 for ac_dir
in $ac_dummy; do
682 test -z "$ac_dir" && ac_dir
=.
683 if test -f $ac_dir/$ac_word; then
684 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
693 if test $ac_prog_rejected = yes; then
694 # We found a bogon in the path, so make sure we never use it.
695 set dummy
$ac_cv_prog_CC
697 if test $# -gt 0; then
698 # We chose a different compiler from the bogus one.
699 # However, it has the same basename, so the bogon will be chosen
700 # first if we set CC to just the basename; use the full file name.
702 set dummy
"$ac_dir/$ac_word" "$@"
710 if test -n "$CC"; then
711 echo "$ac_t""$CC" 1>&6
713 echo "$ac_t""no" 1>&6
716 if test -z "$CC"; then
719 # Extract the first word of "cl", so it can be a program name with args.
720 set dummy cl
; ac_word
=$2
721 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
722 echo "configure:723: checking for $ac_word" >&5
723 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
724 echo $ac_n "(cached) $ac_c" 1>&6
726 if test -n "$CC"; then
727 ac_cv_prog_CC
="$CC" # Let the user override the test.
729 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
731 for ac_dir
in $ac_dummy; do
732 test -z "$ac_dir" && ac_dir
=.
733 if test -f $ac_dir/$ac_word; then
742 if test -n "$CC"; then
743 echo "$ac_t""$CC" 1>&6
745 echo "$ac_t""no" 1>&6
750 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
753 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
754 echo "configure:755: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
757 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
758 ac_cpp
='$CPP $CPPFLAGS'
759 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
760 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
761 cross_compiling
=$ac_cv_prog_cc_cross
763 cat > conftest.
$ac_ext << EOF
765 #line 766 "configure"
766 #include "confdefs.h"
770 if { (eval echo configure
:771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
771 ac_cv_prog_cc_works
=yes
772 # If we can't run a trivial program, we are probably using a cross compiler.
773 if (.
/conftest
; exit) 2>/dev
/null
; then
774 ac_cv_prog_cc_cross
=no
776 ac_cv_prog_cc_cross
=yes
779 echo "configure: failed program was:" >&5
780 cat conftest.
$ac_ext >&5
781 ac_cv_prog_cc_works
=no
785 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
786 ac_cpp
='$CPP $CPPFLAGS'
787 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
788 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
789 cross_compiling
=$ac_cv_prog_cc_cross
791 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
792 if test $ac_cv_prog_cc_works = no
; then
793 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
795 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
796 echo "configure:797: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
797 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
798 cross_compiling
=$ac_cv_prog_cc_cross
800 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
801 echo "configure:802: checking whether we are using GNU C" >&5
802 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
803 echo $ac_n "(cached) $ac_c" 1>&6
805 cat > conftest.c
<<EOF
810 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:811: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
817 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
819 if test $ac_cv_prog_gcc = yes; then
825 ac_test_CFLAGS
="${CFLAGS+set}"
826 ac_save_CFLAGS
="$CFLAGS"
828 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
829 echo "configure:830: checking whether ${CC-cc} accepts -g" >&5
830 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
831 echo $ac_n "(cached) $ac_c" 1>&6
833 echo 'void f(){}' > conftest.c
834 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
843 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
844 if test "$ac_test_CFLAGS" = set; then
845 CFLAGS
="$ac_save_CFLAGS"
846 elif test $ac_cv_prog_cc_g = yes; then
847 if test "$GCC" = yes; then
853 if test "$GCC" = yes; then
861 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
862 if test -f $ac_dir/install-sh
; then
864 ac_install_sh
="$ac_aux_dir/install-sh -c"
866 elif test -f $ac_dir/install.sh
; then
868 ac_install_sh
="$ac_aux_dir/install.sh -c"
872 if test -z "$ac_aux_dir"; then
873 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
875 ac_config_guess
=$ac_aux_dir/config.guess
876 ac_config_sub
=$ac_aux_dir/config.sub
877 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
879 # Find a good install program. We prefer a C program (faster),
880 # so one script is as good as another. But avoid the broken or
881 # incompatible versions:
882 # SysV /etc/install, /usr/sbin/install
883 # SunOS /usr/etc/install
886 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
887 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
888 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
889 # ./install, which can be erroneously created by make from ./install.sh.
890 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
891 echo "configure:892: checking for a BSD compatible install" >&5
892 if test -z "$INSTALL"; then
893 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
894 echo $ac_n "(cached) $ac_c" 1>&6
896 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
897 for ac_dir
in $PATH; do
898 # Account for people who put trailing slashes in PATH elements.
900 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
902 # OSF1 and SCO ODT 3.0 have their own names for install.
903 # Don't use installbsd from OSF since it installs stuff as root
905 for ac_prog
in ginstall scoinst
install; do
906 if test -f $ac_dir/$ac_prog; then
907 if test $ac_prog = install &&
908 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
909 # AIX install. It has an incompatible calling convention.
912 ac_cv_path_install
="$ac_dir/$ac_prog -c"
923 if test "${ac_cv_path_install+set}" = set; then
924 INSTALL
="$ac_cv_path_install"
926 # As a last resort, use the slow shell script. We don't cache a
927 # path for INSTALL within a source directory, because that will
928 # break other packages using the cache if that directory is
929 # removed, or if the path is relative.
930 INSTALL
="$ac_install_sh"
933 echo "$ac_t""$INSTALL" 1>&6
935 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
936 # It thinks the first close brace ends the variable substitution.
937 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
939 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
941 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
943 for ac_prog
in gawk mawk nawk
awk
945 # Extract the first word of "$ac_prog", so it can be a program name with args.
946 set dummy
$ac_prog; ac_word
=$2
947 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
948 echo "configure:949: checking for $ac_word" >&5
949 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
950 echo $ac_n "(cached) $ac_c" 1>&6
952 if test -n "$AWK"; then
953 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
955 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
957 for ac_dir
in $ac_dummy; do
958 test -z "$ac_dir" && ac_dir
=.
959 if test -f $ac_dir/$ac_word; then
960 ac_cv_prog_AWK
="$ac_prog"
967 AWK
="$ac_cv_prog_AWK"
968 if test -n "$AWK"; then
969 echo "$ac_t""$AWK" 1>&6
971 echo "$ac_t""no" 1>&6
974 test -n "$AWK" && break
977 # Check whether --enable-shared or --disable-shared was given.
978 if test "${enable_shared+set}" = set; then
979 enableval
="$enable_shared"
982 yes) enable_shared
=yes ;;
983 no
) enable_shared
=no
;;
986 # Look at the argument we got. We use all the common list separators.
987 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
988 for pkg
in $enableval; do
989 if test "X$pkg" = "X$p"; then
1000 # Check whether --enable-static or --disable-static was given.
1001 if test "${enable_static+set}" = set; then
1002 enableval
="$enable_static"
1003 p
=${PACKAGE-default}
1004 case "$enableval" in
1005 yes) enable_static
=yes ;;
1006 no
) enable_static
=no
;;
1009 # Look at the argument we got. We use all the common list separators.
1010 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1011 for pkg
in $enableval; do
1012 if test "X$pkg" = "X$p"; then
1023 # Check whether --enable-fast-install or --disable-fast-install was given.
1024 if test "${enable_fast_install+set}" = set; then
1025 enableval
="$enable_fast_install"
1026 p
=${PACKAGE-default}
1027 case "$enableval" in
1028 yes) enable_fast_install
=yes ;;
1029 no
) enable_fast_install
=no
;;
1031 enable_fast_install
=no
1032 # Look at the argument we got. We use all the common list separators.
1033 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1034 for pkg
in $enableval; do
1035 if test "X$pkg" = "X$p"; then
1036 enable_fast_install
=yes
1043 enable_fast_install
=yes
1047 # Make sure we can run config.sub.
1048 if ${CONFIG_SHELL-/bin/sh} $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 echo $ac_n "checking host system type""... $ac_c" 1>&6
1053 echo "configure:1054: checking host system type" >&5
1056 case "$host_alias" in
1060 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1061 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1063 *) host_alias
=$nonopt ;;
1067 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1068 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1069 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1070 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1071 echo "$ac_t""$host" 1>&6
1073 echo $ac_n "checking build system type""... $ac_c" 1>&6
1074 echo "configure:1075: checking build system type" >&5
1077 case "$build_alias" in
1080 NONE
) build_alias
=$host_alias ;;
1081 *) build_alias
=$nonopt ;;
1085 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1086 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1087 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1088 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1089 echo "$ac_t""$build" 1>&6
1091 # Extract the first word of "ranlib", so it can be a program name with args.
1092 set dummy ranlib
; ac_word
=$2
1093 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1094 echo "configure:1095: checking for $ac_word" >&5
1095 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1096 echo $ac_n "(cached) $ac_c" 1>&6
1098 if test -n "$RANLIB"; then
1099 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1101 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1103 for ac_dir
in $ac_dummy; do
1104 test -z "$ac_dir" && ac_dir
=.
1105 if test -f $ac_dir/$ac_word; then
1106 ac_cv_prog_RANLIB
="ranlib"
1111 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1114 RANLIB
="$ac_cv_prog_RANLIB"
1115 if test -n "$RANLIB"; then
1116 echo "$ac_t""$RANLIB" 1>&6
1118 echo "$ac_t""no" 1>&6
1121 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1122 if test "${with_gnu_ld+set}" = set; then
1123 withval
="$with_gnu_ld"
1124 test "$withval" = no || with_gnu_ld
=yes
1130 if test "$ac_cv_prog_gcc" = yes; then
1131 # Check if gcc -print-prog-name=ld gives a path.
1132 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1133 echo "configure:1134: checking for ld used by GCC" >&5
1134 ac_prog
=`($CC -print-prog-name=ld) 2>&5`
1136 # Accept absolute paths.
1137 [\\/]* |
[A-Za-z
]:[\\/]*)
1138 re_direlt
='/[^/][^/]*/\.\./'
1139 # Canonicalize the path of ld
1140 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
1141 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
1142 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
1144 test -z "$LD" && LD
="$ac_prog"
1147 # If it fails, then pretend we aren't using GCC.
1151 # If it is relative, then search for the first ld in PATH.
1155 elif test "$with_gnu_ld" = yes; then
1156 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1157 echo "configure:1158: checking for GNU ld" >&5
1159 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1160 echo "configure:1161: checking for non-GNU ld" >&5
1162 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1163 echo $ac_n "(cached) $ac_c" 1>&6
1165 if test -z "$LD"; then
1166 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1167 for ac_dir
in $PATH; do
1168 test -z "$ac_dir" && ac_dir
=.
1169 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
1170 ac_cv_path_LD
="$ac_dir/$ac_prog"
1171 # Check to see if the program is GNU ld. I'd rather use --version,
1172 # but apparently some GNU ld's only accept -v.
1173 # Break only if it was the GNU/non-GNU ld that we prefer.
1174 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
1175 test "$with_gnu_ld" != no
&& break
1177 test "$with_gnu_ld" != yes && break
1183 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
1188 if test -n "$LD"; then
1189 echo "$ac_t""$LD" 1>&6
1191 echo "$ac_t""no" 1>&6
1193 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1194 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1195 echo "configure:1196: checking if the linker ($LD) is GNU ld" >&5
1196 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1197 echo $ac_n "(cached) $ac_c" 1>&6
1199 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1200 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1201 ac_cv_prog_gnu_ld
=yes
1203 ac_cv_prog_gnu_ld
=no
1207 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1210 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1211 echo "configure:1212: checking for BSD-compatible nm" >&5
1212 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1213 echo $ac_n "(cached) $ac_c" 1>&6
1215 if test -n "$NM"; then
1216 # Let the user override the test.
1219 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1220 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
1221 test -z "$ac_dir" && ac_dir
=.
1222 if test -f $ac_dir/nm ||
test -f $ac_dir/nm
$ac_exeext ; then
1223 # Check to see if the nm accepts a BSD-compat flag.
1224 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1225 # nm: unknown option "B" ignored
1226 if ($ac_dir/nm
-B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1227 ac_cv_path_NM
="$ac_dir/nm -B"
1229 elif ($ac_dir/nm
-p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1230 ac_cv_path_NM
="$ac_dir/nm -p"
1233 ac_cv_path_NM
=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1234 continue # so that we can try to find one that supports BSD flags
1239 test -z "$ac_cv_path_NM" && ac_cv_path_NM
=nm
1244 echo "$ac_t""$NM" 1>&6
1246 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1247 echo "configure:1248: checking whether ln -s works" >&5
1248 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1249 echo $ac_n "(cached) $ac_c" 1>&6
1252 if ln -s X conftestdata
2>/dev
/null
1255 ac_cv_prog_LN_S
="ln -s"
1260 LN_S
="$ac_cv_prog_LN_S"
1261 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1262 echo "$ac_t""yes" 1>&6
1264 echo "$ac_t""no" 1>&6
1269 NONE
) lt_target
="$host" ;;
1270 *) lt_target
="$target" ;;
1273 # Check for any special flags to pass to ltconfig.
1274 libtool_flags
="--cache-file=$cache_file"
1275 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
1276 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
1277 test "$enable_fast_install" = no
&& libtool_flags
="$libtool_flags --disable-fast-install"
1278 test "$ac_cv_prog_gcc" = yes && libtool_flags
="$libtool_flags --with-gcc"
1279 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
1282 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1283 if test "${enable_libtool_lock+set}" = set; then
1284 enableval
="$enable_libtool_lock"
1288 test "x$enable_libtool_lock" = xno
&& libtool_flags
="$libtool_flags --disable-lock"
1289 test x
"$silent" = xyes
&& libtool_flags
="$libtool_flags --silent"
1291 # Some flags need to be propagated to the compiler or linker for good
1293 case "$lt_target" in
1295 # Find out which ABI we are using.
1296 echo '#line 1297 "configure"' > conftest.
$ac_ext
1297 if { (eval echo configure
:1298: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1298 case "`/usr/bin/file conftest.o`" in
1314 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1315 SAVE_CFLAGS
="$CFLAGS"
1316 CFLAGS
="$CFLAGS -belf"
1317 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1318 echo "configure:1319: checking whether the C compiler needs -belf" >&5
1319 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1320 echo $ac_n "(cached) $ac_c" 1>&6
1322 cat > conftest.
$ac_ext <<EOF
1323 #line 1324 "configure"
1324 #include "confdefs.h"
1330 if { (eval echo configure
:1331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1332 lt_cv_cc_needs_belf
=yes
1334 echo "configure: failed program was:" >&5
1335 cat conftest.
$ac_ext >&5
1337 lt_cv_cc_needs_belf
=no
1342 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1343 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
1344 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1345 CFLAGS
="$SAVE_CFLAGS"
1353 # Save cache, so that ltconfig can load it
1354 cat > confcache
<<\EOF
1355 # This file is a shell script that caches the results of configure
1356 # tests run on this system so they can be shared between configure
1357 # scripts and configure runs. It is not useful on other systems.
1358 # If it contains results you don't want to keep, you may remove or edit it.
1360 # By default, configure uses ./config.cache as the cache file,
1361 # creating it if it does not exist already. You can give configure
1362 # the --cache-file=FILE option to use a different cache file; that is
1363 # what configure does when it calls configure scripts in
1364 # subdirectories, so they share the cache.
1365 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1366 # config.status only pays attention to the cache file if you give it the
1367 # --recheck option to rerun configure.
1370 # The following way of writing the cache mishandles newlines in values,
1371 # but we know of no workaround that is simple, portable, and efficient.
1372 # So, don't put newlines in cache variables' values.
1373 # Ultrix sh set writes to stderr and can't be redirected directly,
1374 # and sets the high bit in the cache file unless we assign to the vars.
1376 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1378 # `set' does not quote correctly, so add quotes (double-quote substitution
1379 # turns \\\\ into \\, and sed turns \\ into \).
1381 -e "s/'/'\\\\''/g" \
1382 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1385 # `set' quotes correctly as required by POSIX, so do not add quotes.
1386 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1389 if cmp -s $cache_file confcache
; then
1392 if test -w $cache_file; then
1393 echo "updating cache $cache_file"
1394 cat confcache
> $cache_file
1396 echo "not updating unwritable cache $cache_file"
1402 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1403 CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
1404 LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
1405 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" \
1406 DLLTOOL
="$DLLTOOL" AS
="$AS" OBJDUMP
="$OBJDUMP" \
1407 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
1408 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh
$lt_target \
1409 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1411 # Reload cache, that may have been modified by ltconfig
1412 if test -r "$cache_file"; then
1413 echo "loading cache $cache_file"
1416 echo "creating cache $cache_file"
1421 # This can be used to rebuild libtool when needed
1422 LIBTOOL_DEPS
="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1424 # Always use our own libtool.
1425 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
1427 # Redirect the config.log output again, so that the ltconfig log is not
1428 # clobbered by the next message.
1429 exec 5>>.
/config.log
1433 if test "x$CC" != xcc
; then
1434 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1435 echo "configure:1436: checking whether $CC and cc understand -c and -o together" >&5
1437 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1438 echo "configure:1439: checking whether cc understands -c and -o together" >&5
1440 set dummy
$CC; ac_cc
="`echo $2 |
1441 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1442 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1443 echo $ac_n "(cached) $ac_c" 1>&6
1445 echo 'foo(){}' > conftest.c
1446 # Make sure it works both with $CC and with simple cc.
1447 # We do the test twice because some compilers refuse to overwrite an
1448 # existing .o file with -o, though they will create one.
1449 ac_try
='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1450 if { (eval echo configure
:1451: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1451 test -f conftest.o
&& { (eval echo configure
:1452: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1453 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
1454 if test "x$CC" != xcc
; then
1455 # Test first that cc exists at all.
1456 if { ac_try
='cc -c conftest.c 1>&5'; { (eval echo configure
:1457: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1457 ac_try
='cc -c conftest.c -o conftest.o 1>&5'
1458 if { (eval echo configure
:1459: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1459 test -f conftest.o
&& { (eval echo configure
:1460: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1464 # cc exists but doesn't like -o.
1465 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1470 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1475 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1476 echo "$ac_t""yes" 1>&6
1478 echo "$ac_t""no" 1>&6
1479 cat >> confdefs.h
<<\EOF
1480 #define NO_MINUS_C_MINUS_O 1
1485 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1492 echo $ac_n "checking that the C compiler understands volatile""... $ac_c" 1>&6
1493 echo "configure:1494: checking that the C compiler understands volatile" >&5
1494 if eval "test \"`echo '$''{'samba_cv_volatile'+set}'`\" = set"; then
1495 echo $ac_n "(cached) $ac_c" 1>&6
1498 cat > conftest.
$ac_ext <<EOF
1499 #line 1500 "configure"
1500 #include "confdefs.h"
1501 #include <sys/types.h>
1506 if { (eval echo configure
:1507: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1508 samba_cv_volatile
=yes
1510 echo "configure: failed program was:" >&5
1511 cat conftest.
$ac_ext >&5
1513 samba_cv_volatile
=no
1518 echo "$ac_t""$samba_cv_volatile" 1>&6
1519 if test x
"$samba_cv_volatile" = x
"yes"; then
1520 cat >> confdefs.h
<<\EOF
1521 #define HAVE_VOLATILE 1
1527 #################################################
1528 # set codepage directory location
1529 # Check whether --with-codepagedir or --without-codepagedir was given.
1530 if test "${with_codepagedir+set}" = set; then
1531 withval
="$with_codepagedir"
1535 # Just in case anybody does it
1537 echo "configure: warning: --with-codepagedir called without argument - will use default" 1>&2
1540 codepagedir
="$withval"
1548 # Do some error checking and defaulting for the host and target type.
1550 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1553 # 1. You are not allowed to specify --host, --target, and nonopt at the
1555 # 2. Host defaults to nonopt.
1556 # 3. If nonopt is not specified, then host defaults to the current host,
1557 # as determined by config.guess.
1558 # 4. Target and build default to nonopt.
1559 # 5. If nonopt is not specified, then target and build default to host.
1561 # The aliases save the names the user supplied, while $host etc.
1562 # will get canonicalized.
1563 case $host---$target---$nonopt in
1564 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1565 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1569 # Make sure we can run config.sub.
1570 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1571 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1574 echo $ac_n "checking host system type""... $ac_c" 1>&6
1575 echo "configure:1576: checking host system type" >&5
1578 case "$host_alias" in
1582 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1583 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1585 *) host_alias
=$nonopt ;;
1589 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1590 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1591 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1592 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1593 echo "$ac_t""$host" 1>&6
1595 echo $ac_n "checking target system type""... $ac_c" 1>&6
1596 echo "configure:1597: checking target system type" >&5
1598 target_alias
=$target
1599 case "$target_alias" in
1602 NONE
) target_alias
=$host_alias ;;
1603 *) target_alias
=$nonopt ;;
1607 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1608 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1609 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1610 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1611 echo "$ac_t""$target" 1>&6
1613 echo $ac_n "checking build system type""... $ac_c" 1>&6
1614 echo "configure:1615: checking build system type" >&5
1617 case "$build_alias" in
1620 NONE
) build_alias
=$host_alias ;;
1621 *) build_alias
=$nonopt ;;
1625 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1626 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1627 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1628 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1629 echo "$ac_t""$build" 1>&6
1631 test "$host_alias" != "$target_alias" &&
1632 test "$program_prefix$program_suffix$program_transform_name" = \
1634 program_prefix
=${target_alias}-
1638 *irix6
*) cat >> confdefs.h
<<\EOF
1639 #include <standards.h>
1647 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
1648 echo "configure:1649: checking config.cache system type" >&5
1649 if { test x
"${ac_cv_host_system_type+set}" = x
"set" &&
1650 test x
"$ac_cv_host_system_type" != x
"$host"; } ||
1651 { test x
"${ac_cv_build_system_type+set}" = x
"set" &&
1652 test x
"$ac_cv_build_system_type" != x
"$build"; } ||
1653 { test x
"${ac_cv_target_system_type+set}" = x
"set" &&
1654 test x
"$ac_cv_target_system_type" != x
"$target"; }; then
1655 echo "$ac_t""different" 1>&6
1656 { echo "configure: error: "you must remove config.cache and restart configure
"" 1>&2; exit 1; }
1658 echo "$ac_t""same" 1>&6
1660 ac_cv_host_system_type
="$host"
1661 ac_cv_build_system_type
="$build"
1662 ac_cv_target_system_type
="$target"
1666 # Config CPPFLAG settings for strange OS's that must be set
1667 # before other tests.
1670 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1672 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1673 echo "configure:1674: checking whether ${CC-cc} accepts -Ae" >&5
1674 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1675 echo $ac_n "(cached) $ac_c" 1>&6
1677 echo 'void f(){}' > conftest.c
1678 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1679 ac_cv_prog_cc_Ae
=yes
1687 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1688 if test $ac_cv_prog_cc_Ae = yes; then
1689 CPPFLAGS
="$CPPFLAGS -Ae"
1692 # Defines needed for HPUX support.
1693 # HPUX has bigcrypt but (sometimes?) doesn't use it for
1694 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
1698 CPPFLAGS
="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE"
1699 cat >> confdefs.h
<<\EOF
1700 #define USE_BOTH_CRYPT_CALLS 1
1705 CPPFLAGS
="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE"
1706 cat >> confdefs.h
<<\EOF
1707 #define USE_BOTH_CRYPT_CALLS 1
1714 # AIX4.x doesn't even admit to having large
1715 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1718 echo "$ac_t""enabling large file support" 1>&6
1719 CPPFLAGS
="$CPPFLAGS -D_LARGE_FILES"
1722 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
1723 # to the existance of large files..
1724 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
1725 # recommendations on large file support, however it makes the
1726 # compile work using gcc 2.7 and 2.8, whereas using the Sun
1727 # recommendation makes the compile fail on gcc2.7. JRA.
1732 echo "$ac_t""enabling large file support" 1>&6
1733 if test "$ac_cv_prog_gcc" = yes; then
1734 ${CC-cc} -v >conftest.c
2>&1
1735 ac_cv_gcc_compiler_version_number
=`grep 'gcc version' conftest.c`
1737 case "$ac_cv_gcc_compiler_version_number" in
1738 *"gcc version 2.6"*|
*"gcc version 2.7"*)
1739 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE64_SOURCE"
1742 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1746 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1752 # Tests needed for SINIX large file support.
1755 if test $host = mips-sni-sysv4
; then
1756 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1757 echo "configure:1758: checking for LFS support" >&5
1758 old_CPPFLAGS
="$CPPFLAGS"
1759 CPPFLAGS
="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1760 if test "$cross_compiling" = yes; then
1761 SINIX_LFS_SUPPORT
=cross
1763 cat > conftest.
$ac_ext <<EOF
1764 #line 1765 "configure"
1765 #include "confdefs.h"
1769 #if _LFS64_LARGEFILE == 1
1776 if { (eval echo configure
:1777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1778 SINIX_LFS_SUPPORT
=yes
1780 echo "configure: failed program was:" >&5
1781 cat conftest.
$ac_ext >&5
1783 SINIX_LFS_SUPPORT
=no
1788 CPPFLAGS
="$old_CPPFLAGS"
1789 if test x
$SINIX_LFS_SUPPORT = xyes
; then
1790 CPPFLAGS
="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1791 CFLAGS
="`getconf LFS64_CFLAGS` $CFLAGS"
1792 LDFLAGS
="`getconf LFS64_LDFLAGS` $LDFLAGS"
1793 LIBS
="`getconf LFS64_LIBS` $LIBS"
1795 echo "$ac_t""$SINIX_LFS_SUPPORT" 1>&6
1799 # Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
1802 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1803 echo "configure:1804: checking for LFS support" >&5
1804 old_CPPFLAGS
="$CPPFLAGS"
1805 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1806 if test "$cross_compiling" = yes; then
1807 LINUX_LFS_SUPPORT
=cross
1809 cat > conftest.
$ac_ext <<EOF
1810 #line 1811 "configure"
1811 #include "confdefs.h"
1814 #include <sys/utsname.h>
1816 #if _LFS64_LARGEFILE == 1
1821 /* Ensure this is glibc 2.2 or higher */
1822 #if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
1823 int libc_major = __GLIBC__;
1824 int libc_minor = __GLIBC_MINOR__;
1832 /* Ensure this is kernel 2.4 or higher */
1835 release = uts.release;
1836 major = atoi(strsep(&release, "."));
1837 minor = atoi(strsep(&release, "."));
1839 if (major > 2 || (major == 2 && minor > 3))
1848 if { (eval echo configure
:1849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1850 LINUX_LFS_SUPPORT
=yes
1852 echo "configure: failed program was:" >&5
1853 cat conftest.
$ac_ext >&5
1855 LINUX_LFS_SUPPORT
=no
1860 CPPFLAGS
="$old_CPPFLAGS"
1861 if test x
$LINUX_LFS_SUPPORT = xyes
; then
1862 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1864 echo "$ac_t""$LINUX_LFS_SUPPORT" 1>&6
1868 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1869 echo "configure:1870: checking for LFS support" >&5
1870 old_CPPFLAGS
="$CPPFLAGS"
1871 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1872 if test "$cross_compiling" = yes; then
1873 GLIBC_LFS_SUPPORT
=cross
1875 cat > conftest.
$ac_ext <<EOF
1876 #line 1877 "configure"
1877 #include "confdefs.h"
1881 #if _LFS64_LARGEFILE == 1
1888 if { (eval echo configure
:1889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1890 GLIBC_LFS_SUPPORT
=yes
1892 echo "configure: failed program was:" >&5
1893 cat conftest.
$ac_ext >&5
1895 GLIBC_LFS_SUPPORT
=no
1900 CPPFLAGS
="$old_CPPFLAGS"
1901 if test x
$GLIBC_LFS_SUPPORT = xyes
; then
1902 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1904 echo "$ac_t""$GLIBC_LFS_SUPPORT" 1>&6
1909 echo $ac_n "checking for inline""... $ac_c" 1>&6
1910 echo "configure:1911: checking for inline" >&5
1911 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1912 echo $ac_n "(cached) $ac_c" 1>&6
1915 for ac_kw
in inline __inline__ __inline
; do
1916 cat > conftest.
$ac_ext <<EOF
1917 #line 1918 "configure"
1918 #include "confdefs.h"
1924 if { (eval echo configure
:1925: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1926 ac_cv_c_inline
=$ac_kw; break
1928 echo "configure: failed program was:" >&5
1929 cat conftest.
$ac_ext >&5
1936 echo "$ac_t""$ac_cv_c_inline" 1>&6
1937 case "$ac_cv_c_inline" in
1939 no
) cat >> confdefs.h
<<\EOF
1943 *) cat >> confdefs.h
<<EOF
1944 #define inline $ac_cv_c_inline
1949 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1950 echo "configure:1951: checking how to run the C preprocessor" >&5
1951 # On Suns, sometimes $CPP names a directory.
1952 if test -n "$CPP" && test -d "$CPP"; then
1955 if test -z "$CPP"; then
1956 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1957 echo $ac_n "(cached) $ac_c" 1>&6
1959 # This must be in double quotes, not single quotes, because CPP may get
1960 # substituted into the Makefile and "${CC-cc}" will confuse make.
1962 # On the NeXT, cc -E runs the code through the compiler's parser,
1963 # not just through cpp.
1964 cat > conftest.
$ac_ext <<EOF
1965 #line 1966 "configure"
1966 #include "confdefs.h"
1970 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1971 { (eval echo configure
:1972: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1972 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1973 if test -z "$ac_err"; then
1977 echo "configure: failed program was:" >&5
1978 cat conftest.
$ac_ext >&5
1980 CPP
="${CC-cc} -E -traditional-cpp"
1981 cat > conftest.
$ac_ext <<EOF
1982 #line 1983 "configure"
1983 #include "confdefs.h"
1987 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1988 { (eval echo configure
:1989: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1989 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1990 if test -z "$ac_err"; then
1994 echo "configure: failed program was:" >&5
1995 cat conftest.
$ac_ext >&5
1997 CPP
="${CC-cc} -nologo -E"
1998 cat > conftest.
$ac_ext <<EOF
1999 #line 2000 "configure"
2000 #include "confdefs.h"
2004 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2005 { (eval echo configure
:2006: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2006 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2007 if test -z "$ac_err"; then
2011 echo "configure: failed program was:" >&5
2012 cat conftest.
$ac_ext >&5
2021 ac_cv_prog_CPP
="$CPP"
2023 CPP
="$ac_cv_prog_CPP"
2025 ac_cv_prog_CPP
="$CPP"
2027 echo "$ac_t""$CPP" 1>&6
2029 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2030 echo "configure:2031: checking for ANSI C header files" >&5
2031 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2032 echo $ac_n "(cached) $ac_c" 1>&6
2034 cat > conftest.
$ac_ext <<EOF
2035 #line 2036 "configure"
2036 #include "confdefs.h"
2042 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2043 { (eval echo configure
:2044: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2044 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2045 if test -z "$ac_err"; then
2047 ac_cv_header_stdc
=yes
2050 echo "configure: failed program was:" >&5
2051 cat conftest.
$ac_ext >&5
2053 ac_cv_header_stdc
=no
2057 if test $ac_cv_header_stdc = yes; then
2058 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2059 cat > conftest.
$ac_ext <<EOF
2060 #line 2061 "configure"
2061 #include "confdefs.h"
2064 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2065 egrep "memchr" >/dev
/null
2>&1; then
2069 ac_cv_header_stdc
=no
2075 if test $ac_cv_header_stdc = yes; then
2076 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2077 cat > conftest.
$ac_ext <<EOF
2078 #line 2079 "configure"
2079 #include "confdefs.h"
2082 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2083 egrep "free" >/dev
/null
2>&1; then
2087 ac_cv_header_stdc
=no
2093 if test $ac_cv_header_stdc = yes; then
2094 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2095 if test "$cross_compiling" = yes; then
2098 cat > conftest.
$ac_ext <<EOF
2099 #line 2100 "configure"
2100 #include "confdefs.h"
2102 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2103 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2104 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2105 int main () { int i; for (i = 0; i < 256; i++)
2106 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2110 if { (eval echo configure
:2111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2114 echo "configure: failed program was:" >&5
2115 cat conftest.
$ac_ext >&5
2117 ac_cv_header_stdc
=no
2125 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2126 if test $ac_cv_header_stdc = yes; then
2127 cat >> confdefs.h
<<\EOF
2128 #define STDC_HEADERS 1
2134 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
2136 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2137 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
2138 echo "configure:2139: checking for $ac_hdr that defines DIR" >&5
2139 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
2140 echo $ac_n "(cached) $ac_c" 1>&6
2142 cat > conftest.
$ac_ext <<EOF
2143 #line 2144 "configure"
2144 #include "confdefs.h"
2145 #include <sys/types.h>
2151 if { (eval echo configure
:2152: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2153 eval "ac_cv_header_dirent_$ac_safe=yes"
2155 echo "configure: failed program was:" >&5
2156 cat conftest.
$ac_ext >&5
2158 eval "ac_cv_header_dirent_$ac_safe=no"
2162 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2163 echo "$ac_t""yes" 1>&6
2164 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2165 cat >> confdefs.h
<<EOF
2166 #define $ac_tr_hdr 1
2168 ac_header_dirent
=$ac_hdr; break
2170 echo "$ac_t""no" 1>&6
2173 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2174 if test $ac_header_dirent = dirent.h
; then
2175 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2176 echo "configure:2177: checking for opendir in -ldir" >&5
2177 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2178 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2179 echo $ac_n "(cached) $ac_c" 1>&6
2181 ac_save_LIBS
="$LIBS"
2183 cat > conftest.
$ac_ext <<EOF
2184 #line 2185 "configure"
2185 #include "confdefs.h"
2186 /* Override any gcc2 internal prototype to avoid an error. */
2187 /* We use char because int might match the return type of a gcc2
2188 builtin and then its argument prototype would still apply. */
2195 if { (eval echo configure
:2196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2197 eval "ac_cv_lib_$ac_lib_var=yes"
2199 echo "configure: failed program was:" >&5
2200 cat conftest.
$ac_ext >&5
2202 eval "ac_cv_lib_$ac_lib_var=no"
2205 LIBS
="$ac_save_LIBS"
2208 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2209 echo "$ac_t""yes" 1>&6
2212 echo "$ac_t""no" 1>&6
2216 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2217 echo "configure:2218: checking for opendir in -lx" >&5
2218 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2219 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2220 echo $ac_n "(cached) $ac_c" 1>&6
2222 ac_save_LIBS
="$LIBS"
2224 cat > conftest.
$ac_ext <<EOF
2225 #line 2226 "configure"
2226 #include "confdefs.h"
2227 /* Override any gcc2 internal prototype to avoid an error. */
2228 /* We use char because int might match the return type of a gcc2
2229 builtin and then its argument prototype would still apply. */
2236 if { (eval echo configure
:2237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2238 eval "ac_cv_lib_$ac_lib_var=yes"
2240 echo "configure: failed program was:" >&5
2241 cat conftest.
$ac_ext >&5
2243 eval "ac_cv_lib_$ac_lib_var=no"
2246 LIBS
="$ac_save_LIBS"
2249 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2250 echo "$ac_t""yes" 1>&6
2253 echo "$ac_t""no" 1>&6
2258 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2259 echo "configure:2260: checking whether time.h and sys/time.h may both be included" >&5
2260 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2261 echo $ac_n "(cached) $ac_c" 1>&6
2263 cat > conftest.
$ac_ext <<EOF
2264 #line 2265 "configure"
2265 #include "confdefs.h"
2266 #include <sys/types.h>
2267 #include <sys/time.h>
2273 if { (eval echo configure
:2274: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2275 ac_cv_header_time
=yes
2277 echo "configure: failed program was:" >&5
2278 cat conftest.
$ac_ext >&5
2280 ac_cv_header_time
=no
2285 echo "$ac_t""$ac_cv_header_time" 1>&6
2286 if test $ac_cv_header_time = yes; then
2287 cat >> confdefs.h
<<\EOF
2288 #define TIME_WITH_SYS_TIME 1
2293 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2294 echo "configure:2295: checking for sys/wait.h that is POSIX.1 compatible" >&5
2295 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2296 echo $ac_n "(cached) $ac_c" 1>&6
2298 cat > conftest.
$ac_ext <<EOF
2299 #line 2300 "configure"
2300 #include "confdefs.h"
2301 #include <sys/types.h>
2302 #include <sys/wait.h>
2304 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2307 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2312 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2315 if { (eval echo configure
:2316: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2317 ac_cv_header_sys_wait_h
=yes
2319 echo "configure: failed program was:" >&5
2320 cat conftest.
$ac_ext >&5
2322 ac_cv_header_sys_wait_h
=no
2327 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2328 if test $ac_cv_header_sys_wait_h = yes; then
2329 cat >> confdefs.h
<<\EOF
2330 #define HAVE_SYS_WAIT_H 1
2335 for ac_hdr
in arpa
/inet.h sys
/fcntl.h sys
/select.h fcntl.h sys
/time.h sys
/unistd.h
2337 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2338 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2339 echo "configure:2340: checking for $ac_hdr" >&5
2340 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2341 echo $ac_n "(cached) $ac_c" 1>&6
2343 cat > conftest.
$ac_ext <<EOF
2344 #line 2345 "configure"
2345 #include "confdefs.h"
2348 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2349 { (eval echo configure
:2350: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2350 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2351 if test -z "$ac_err"; then
2353 eval "ac_cv_header_$ac_safe=yes"
2356 echo "configure: failed program was:" >&5
2357 cat conftest.
$ac_ext >&5
2359 eval "ac_cv_header_$ac_safe=no"
2363 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2364 echo "$ac_t""yes" 1>&6
2365 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2366 cat >> confdefs.h
<<EOF
2367 #define $ac_tr_hdr 1
2371 echo "$ac_t""no" 1>&6
2375 for ac_hdr
in unistd.h utime.h grp.h sys
/id.h limits.h memory.h net
/if.h
2377 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2378 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2379 echo "configure:2380: checking for $ac_hdr" >&5
2380 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2381 echo $ac_n "(cached) $ac_c" 1>&6
2383 cat > conftest.
$ac_ext <<EOF
2384 #line 2385 "configure"
2385 #include "confdefs.h"
2388 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2389 { (eval echo configure
:2390: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2390 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2391 if test -z "$ac_err"; then
2393 eval "ac_cv_header_$ac_safe=yes"
2396 echo "configure: failed program was:" >&5
2397 cat conftest.
$ac_ext >&5
2399 eval "ac_cv_header_$ac_safe=no"
2403 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2404 echo "$ac_t""yes" 1>&6
2405 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2406 cat >> confdefs.h
<<EOF
2407 #define $ac_tr_hdr 1
2411 echo "$ac_t""no" 1>&6
2415 for ac_hdr
in compat.h rpc
/rpc.h rpcsvc
/nis.h rpcsvc
/yp_prot.h rpcsvc
/ypclnt.h
2417 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2418 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2419 echo "configure:2420: checking for $ac_hdr" >&5
2420 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2421 echo $ac_n "(cached) $ac_c" 1>&6
2423 cat > conftest.
$ac_ext <<EOF
2424 #line 2425 "configure"
2425 #include "confdefs.h"
2428 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2429 { (eval echo configure
:2430: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2430 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2431 if test -z "$ac_err"; then
2433 eval "ac_cv_header_$ac_safe=yes"
2436 echo "configure: failed program was:" >&5
2437 cat conftest.
$ac_ext >&5
2439 eval "ac_cv_header_$ac_safe=no"
2443 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2444 echo "$ac_t""yes" 1>&6
2445 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2446 cat >> confdefs.h
<<EOF
2447 #define $ac_tr_hdr 1
2451 echo "$ac_t""no" 1>&6
2455 for ac_hdr
in sys
/param.h ctype.h sys
/un.h sys
/wait.h sys
/resource.h sys
/ioctl.h sys
/mode.h
2457 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2458 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2459 echo "configure:2460: checking for $ac_hdr" >&5
2460 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2461 echo $ac_n "(cached) $ac_c" 1>&6
2463 cat > conftest.
$ac_ext <<EOF
2464 #line 2465 "configure"
2465 #include "confdefs.h"
2468 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2469 { (eval echo configure
:2470: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2470 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2471 if test -z "$ac_err"; then
2473 eval "ac_cv_header_$ac_safe=yes"
2476 echo "configure: failed program was:" >&5
2477 cat conftest.
$ac_ext >&5
2479 eval "ac_cv_header_$ac_safe=no"
2483 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2484 echo "$ac_t""yes" 1>&6
2485 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2486 cat >> confdefs.h
<<EOF
2487 #define $ac_tr_hdr 1
2491 echo "$ac_t""no" 1>&6
2495 for ac_hdr
in sys
/mman.h sys
/filio.h sys
/priv.h string.h
strings.h stdlib.h sys
/socket.h
2497 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2498 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2499 echo "configure:2500: checking for $ac_hdr" >&5
2500 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2501 echo $ac_n "(cached) $ac_c" 1>&6
2503 cat > conftest.
$ac_ext <<EOF
2504 #line 2505 "configure"
2505 #include "confdefs.h"
2508 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2509 { (eval echo configure
:2510: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2510 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2511 if test -z "$ac_err"; then
2513 eval "ac_cv_header_$ac_safe=yes"
2516 echo "configure: failed program was:" >&5
2517 cat conftest.
$ac_ext >&5
2519 eval "ac_cv_header_$ac_safe=no"
2523 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2524 echo "$ac_t""yes" 1>&6
2525 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2526 cat >> confdefs.h
<<EOF
2527 #define $ac_tr_hdr 1
2531 echo "$ac_t""no" 1>&6
2535 for ac_hdr
in sys
/mount.h sys
/vfs.h sys
/fs
/s5param.h sys
/filsys.h termios.h termio.h
2537 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2538 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2539 echo "configure:2540: checking for $ac_hdr" >&5
2540 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2541 echo $ac_n "(cached) $ac_c" 1>&6
2543 cat > conftest.
$ac_ext <<EOF
2544 #line 2545 "configure"
2545 #include "confdefs.h"
2548 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2549 { (eval echo configure
:2550: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2550 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2551 if test -z "$ac_err"; then
2553 eval "ac_cv_header_$ac_safe=yes"
2556 echo "configure: failed program was:" >&5
2557 cat conftest.
$ac_ext >&5
2559 eval "ac_cv_header_$ac_safe=no"
2563 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2564 echo "$ac_t""yes" 1>&6
2565 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2566 cat >> confdefs.h
<<EOF
2567 #define $ac_tr_hdr 1
2571 echo "$ac_t""no" 1>&6
2575 for ac_hdr
in sys
/termio.h sys
/statfs.h sys
/dustat.h sys
/statvfs.h stdarg.h sys
/sockio.h
2577 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2578 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2579 echo "configure:2580: checking for $ac_hdr" >&5
2580 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2581 echo $ac_n "(cached) $ac_c" 1>&6
2583 cat > conftest.
$ac_ext <<EOF
2584 #line 2585 "configure"
2585 #include "confdefs.h"
2588 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2589 { (eval echo configure
:2590: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2590 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2591 if test -z "$ac_err"; then
2593 eval "ac_cv_header_$ac_safe=yes"
2596 echo "configure: failed program was:" >&5
2597 cat conftest.
$ac_ext >&5
2599 eval "ac_cv_header_$ac_safe=no"
2603 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2604 echo "$ac_t""yes" 1>&6
2605 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2606 cat >> confdefs.h
<<EOF
2607 #define $ac_tr_hdr 1
2611 echo "$ac_t""no" 1>&6
2616 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
2617 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
2621 cat > conftest.
$ac_ext <<EOF
2622 #line 2623 "configure"
2623 #include "confdefs.h"
2629 if { (eval echo configure
:2630: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2631 ac_cv_header_shadow_h
=yes
2633 echo "configure: failed program was:" >&5
2634 cat conftest.
$ac_ext >&5
2636 ac_cv_header_shadow_h
=no
2639 if test x
"$ac_cv_header_shadow_h" = x
"yes"; then
2640 cat >> confdefs.h
<<\EOF
2641 #define HAVE_SHADOW_H 1
2647 for ac_hdr
in shadow.h netinet
/ip.h netinet
/tcp.h netinet
/in_systm.h netinet
/in_ip.h
2649 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2650 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2651 echo "configure:2652: checking for $ac_hdr" >&5
2652 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2653 echo $ac_n "(cached) $ac_c" 1>&6
2655 cat > conftest.
$ac_ext <<EOF
2656 #line 2657 "configure"
2657 #include "confdefs.h"
2660 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2661 { (eval echo configure
:2662: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2662 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2663 if test -z "$ac_err"; then
2665 eval "ac_cv_header_$ac_safe=yes"
2668 echo "configure: failed program was:" >&5
2669 cat conftest.
$ac_ext >&5
2671 eval "ac_cv_header_$ac_safe=no"
2675 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2676 echo "$ac_t""yes" 1>&6
2677 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2678 cat >> confdefs.h
<<EOF
2679 #define $ac_tr_hdr 1
2683 echo "$ac_t""no" 1>&6
2687 for ac_hdr
in nss.h sys
/security.h security
/pam_appl.h
2689 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2690 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2691 echo "configure:2692: checking for $ac_hdr" >&5
2692 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2693 echo $ac_n "(cached) $ac_c" 1>&6
2695 cat > conftest.
$ac_ext <<EOF
2696 #line 2697 "configure"
2697 #include "confdefs.h"
2700 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2701 { (eval echo configure
:2702: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2702 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2703 if test -z "$ac_err"; then
2705 eval "ac_cv_header_$ac_safe=yes"
2708 echo "configure: failed program was:" >&5
2709 cat conftest.
$ac_ext >&5
2711 eval "ac_cv_header_$ac_safe=no"
2715 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2716 echo "$ac_t""yes" 1>&6
2717 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2718 cat >> confdefs.h
<<EOF
2719 #define $ac_tr_hdr 1
2723 echo "$ac_t""no" 1>&6
2727 for ac_hdr
in stropts.h poll.h
2729 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2730 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2731 echo "configure:2732: checking for $ac_hdr" >&5
2732 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2733 echo $ac_n "(cached) $ac_c" 1>&6
2735 cat > conftest.
$ac_ext <<EOF
2736 #line 2737 "configure"
2737 #include "confdefs.h"
2740 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2741 { (eval echo configure
:2742: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2742 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2743 if test -z "$ac_err"; then
2745 eval "ac_cv_header_$ac_safe=yes"
2748 echo "configure: failed program was:" >&5
2749 cat conftest.
$ac_ext >&5
2751 eval "ac_cv_header_$ac_safe=no"
2755 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2756 echo "$ac_t""yes" 1>&6
2757 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2758 cat >> confdefs.h
<<EOF
2759 #define $ac_tr_hdr 1
2763 echo "$ac_t""no" 1>&6
2767 for ac_hdr
in sys
/capability.h syscall.h sys
/syscall.h
2769 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2770 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2771 echo "configure:2772: checking for $ac_hdr" >&5
2772 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2773 echo $ac_n "(cached) $ac_c" 1>&6
2775 cat > conftest.
$ac_ext <<EOF
2776 #line 2777 "configure"
2777 #include "confdefs.h"
2780 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2781 { (eval echo configure
:2782: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2782 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2783 if test -z "$ac_err"; then
2785 eval "ac_cv_header_$ac_safe=yes"
2788 echo "configure: failed program was:" >&5
2789 cat conftest.
$ac_ext >&5
2791 eval "ac_cv_header_$ac_safe=no"
2795 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2796 echo "$ac_t""yes" 1>&6
2797 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2798 cat >> confdefs.h
<<EOF
2799 #define $ac_tr_hdr 1
2803 echo "$ac_t""no" 1>&6
2807 for ac_hdr
in sys
/acl.h sys
/cdefs.h glob.h acl
/acl.h
2809 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2810 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2811 echo "configure:2812: checking for $ac_hdr" >&5
2812 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2813 echo $ac_n "(cached) $ac_c" 1>&6
2815 cat > conftest.
$ac_ext <<EOF
2816 #line 2817 "configure"
2817 #include "confdefs.h"
2820 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2821 { (eval echo configure
:2822: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2822 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2823 if test -z "$ac_err"; then
2825 eval "ac_cv_header_$ac_safe=yes"
2828 echo "configure: failed program was:" >&5
2829 cat conftest.
$ac_ext >&5
2831 eval "ac_cv_header_$ac_safe=no"
2835 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2836 echo "$ac_t""yes" 1>&6
2837 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2838 cat >> confdefs.h
<<EOF
2839 #define $ac_tr_hdr 1
2843 echo "$ac_t""no" 1>&6
2848 # For experimental utmp support (lastlog on some BSD-like systems)
2849 for ac_hdr
in utmp.h utmpx.h lastlog.h
2851 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2852 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2853 echo "configure:2854: checking for $ac_hdr" >&5
2854 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2855 echo $ac_n "(cached) $ac_c" 1>&6
2857 cat > conftest.
$ac_ext <<EOF
2858 #line 2859 "configure"
2859 #include "confdefs.h"
2862 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2863 { (eval echo configure
:2864: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2864 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2865 if test -z "$ac_err"; then
2867 eval "ac_cv_header_$ac_safe=yes"
2870 echo "configure: failed program was:" >&5
2871 cat conftest.
$ac_ext >&5
2873 eval "ac_cv_header_$ac_safe=no"
2877 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2878 echo "$ac_t""yes" 1>&6
2879 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2880 cat >> confdefs.h
<<EOF
2881 #define $ac_tr_hdr 1
2885 echo "$ac_t""no" 1>&6
2890 # For quotas on Veritas VxFS filesystems
2891 for ac_hdr
in sys
/fs
/vx_quota.h
2893 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2894 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2895 echo "configure:2896: checking for $ac_hdr" >&5
2896 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2897 echo $ac_n "(cached) $ac_c" 1>&6
2899 cat > conftest.
$ac_ext <<EOF
2900 #line 2901 "configure"
2901 #include "confdefs.h"
2904 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2905 { (eval echo configure
:2906: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2906 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2907 if test -z "$ac_err"; then
2909 eval "ac_cv_header_$ac_safe=yes"
2912 echo "configure: failed program was:" >&5
2913 cat conftest.
$ac_ext >&5
2915 eval "ac_cv_header_$ac_safe=no"
2919 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2920 echo "$ac_t""yes" 1>&6
2921 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2922 cat >> confdefs.h
<<EOF
2923 #define $ac_tr_hdr 1
2927 echo "$ac_t""no" 1>&6
2932 echo $ac_n "checking size of int""... $ac_c" 1>&6
2933 echo "configure:2934: checking size of int" >&5
2934 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2935 echo $ac_n "(cached) $ac_c" 1>&6
2937 if test "$cross_compiling" = yes; then
2938 ac_cv_sizeof_int
=cross
2940 cat > conftest.
$ac_ext <<EOF
2941 #line 2942 "configure"
2942 #include "confdefs.h"
2946 FILE *f=fopen("conftestval", "w");
2948 fprintf(f, "%d\n", sizeof(int));
2952 if { (eval echo configure
:2953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2954 ac_cv_sizeof_int
=`cat conftestval`
2956 echo "configure: failed program was:" >&5
2957 cat conftest.
$ac_ext >&5
2965 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2966 cat >> confdefs.h
<<EOF
2967 #define SIZEOF_INT $ac_cv_sizeof_int
2971 echo $ac_n "checking size of long""... $ac_c" 1>&6
2972 echo "configure:2973: checking size of long" >&5
2973 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2974 echo $ac_n "(cached) $ac_c" 1>&6
2976 if test "$cross_compiling" = yes; then
2977 ac_cv_sizeof_long
=cross
2979 cat > conftest.
$ac_ext <<EOF
2980 #line 2981 "configure"
2981 #include "confdefs.h"
2985 FILE *f=fopen("conftestval", "w");
2987 fprintf(f, "%d\n", sizeof(long));
2991 if { (eval echo configure
:2992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2993 ac_cv_sizeof_long
=`cat conftestval`
2995 echo "configure: failed program was:" >&5
2996 cat conftest.
$ac_ext >&5
3004 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
3005 cat >> confdefs.h
<<EOF
3006 #define SIZEOF_LONG $ac_cv_sizeof_long
3010 echo $ac_n "checking size of short""... $ac_c" 1>&6
3011 echo "configure:3012: checking size of short" >&5
3012 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
3013 echo $ac_n "(cached) $ac_c" 1>&6
3015 if test "$cross_compiling" = yes; then
3016 ac_cv_sizeof_short
=cross
3018 cat > conftest.
$ac_ext <<EOF
3019 #line 3020 "configure"
3020 #include "confdefs.h"
3024 FILE *f=fopen("conftestval", "w");
3026 fprintf(f, "%d\n", sizeof(short));
3030 if { (eval echo configure
:3031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3032 ac_cv_sizeof_short
=`cat conftestval`
3034 echo "configure: failed program was:" >&5
3035 cat conftest.
$ac_ext >&5
3037 ac_cv_sizeof_short
=0
3043 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
3044 cat >> confdefs.h
<<EOF
3045 #define SIZEOF_SHORT $ac_cv_sizeof_short
3050 echo $ac_n "checking for working const""... $ac_c" 1>&6
3051 echo "configure:3052: checking for working const" >&5
3052 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3053 echo $ac_n "(cached) $ac_c" 1>&6
3055 cat > conftest.
$ac_ext <<EOF
3056 #line 3057 "configure"
3057 #include "confdefs.h"
3061 /* Ultrix mips cc rejects this. */
3062 typedef int charset[2]; const charset x;
3063 /* SunOS 4.1.1 cc rejects this. */
3064 char const *const *ccp;
3066 /* NEC SVR4.0.2 mips cc rejects this. */
3067 struct point {int x, y;};
3068 static struct point const zero = {0,0};
3069 /* AIX XL C 1.02.0.0 rejects this.
3070 It does not let you subtract one const X* pointer from another in an arm
3071 of an if-expression whose if-part is not a constant expression */
3072 const char *g = "string";
3073 ccp = &g + (g ? g-g : 0);
3074 /* HPUX 7.0 cc rejects these. */
3077 ccp = (char const *const *) p;
3078 { /* SCO 3.2v4 cc rejects this. */
3080 char const *s = 0 ? (char *) 0 : (char const *) 0;
3084 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3086 const int *foo = &x[0];
3089 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3090 typedef const int *iptr;
3094 { /* AIX XL C 1.02.0.0 rejects this saying
3095 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3096 struct s { int j; const int *ap[3]; };
3097 struct s *b; b->j = 5;
3099 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3105 if { (eval echo configure
:3106: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3109 echo "configure: failed program was:" >&5
3110 cat conftest.
$ac_ext >&5
3117 echo "$ac_t""$ac_cv_c_const" 1>&6
3118 if test $ac_cv_c_const = no
; then
3119 cat >> confdefs.h
<<\EOF
3125 echo $ac_n "checking for inline""... $ac_c" 1>&6
3126 echo "configure:3127: checking for inline" >&5
3127 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3128 echo $ac_n "(cached) $ac_c" 1>&6
3131 for ac_kw
in inline __inline__ __inline
; do
3132 cat > conftest.
$ac_ext <<EOF
3133 #line 3134 "configure"
3134 #include "confdefs.h"
3140 if { (eval echo configure
:3141: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3142 ac_cv_c_inline
=$ac_kw; break
3144 echo "configure: failed program was:" >&5
3145 cat conftest.
$ac_ext >&5
3152 echo "$ac_t""$ac_cv_c_inline" 1>&6
3153 case "$ac_cv_c_inline" in
3155 no
) cat >> confdefs.h
<<\EOF
3159 *) cat >> confdefs.h
<<EOF
3160 #define inline $ac_cv_c_inline
3165 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3166 echo "configure:3167: checking whether byte ordering is bigendian" >&5
3167 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3168 echo $ac_n "(cached) $ac_c" 1>&6
3170 ac_cv_c_bigendian
=unknown
3171 # See if sys/param.h defines the BYTE_ORDER macro.
3172 cat > conftest.
$ac_ext <<EOF
3173 #line 3174 "configure"
3174 #include "confdefs.h"
3175 #include <sys/types.h>
3176 #include <sys/param.h>
3179 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3184 if { (eval echo configure
:3185: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3186 # It does; now see whether it defined to BIG_ENDIAN or not.
3187 cat > conftest.
$ac_ext <<EOF
3188 #line 3189 "configure"
3189 #include "confdefs.h"
3190 #include <sys/types.h>
3191 #include <sys/param.h>
3194 #if BYTE_ORDER != BIG_ENDIAN
3199 if { (eval echo configure
:3200: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3201 ac_cv_c_bigendian
=yes
3203 echo "configure: failed program was:" >&5
3204 cat conftest.
$ac_ext >&5
3206 ac_cv_c_bigendian
=no
3210 echo "configure: failed program was:" >&5
3211 cat conftest.
$ac_ext >&5
3214 if test $ac_cv_c_bigendian = unknown
; then
3215 if test "$cross_compiling" = yes; then
3216 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3218 cat > conftest.
$ac_ext <<EOF
3219 #line 3220 "configure"
3220 #include "confdefs.h"
3222 /* Are we little or big endian? From Harbison&Steele. */
3226 char c[sizeof (long)];
3229 exit (u.c[sizeof (long) - 1] == 1);
3232 if { (eval echo configure
:3233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3234 ac_cv_c_bigendian
=no
3236 echo "configure: failed program was:" >&5
3237 cat conftest.
$ac_ext >&5
3239 ac_cv_c_bigendian
=yes
3247 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3248 if test $ac_cv_c_bigendian = yes; then
3249 cat >> confdefs.h
<<\EOF
3250 #define WORDS_BIGENDIAN 1
3255 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
3256 echo "configure:3257: checking whether char is unsigned" >&5
3257 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
3258 echo $ac_n "(cached) $ac_c" 1>&6
3260 if test "$GCC" = yes; then
3261 # GCC predefines this symbol on systems where it applies.
3262 cat > conftest.
$ac_ext <<EOF
3263 #line 3264 "configure"
3264 #include "confdefs.h"
3265 #ifdef __CHAR_UNSIGNED__
3270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3271 egrep "yes" >/dev
/null
2>&1; then
3273 ac_cv_c_char_unsigned
=yes
3276 ac_cv_c_char_unsigned
=no
3281 if test "$cross_compiling" = yes; then
3282 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3284 cat > conftest.
$ac_ext <<EOF
3285 #line 3286 "configure"
3286 #include "confdefs.h"
3287 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
3288 #if !defined(__STDC__) || __STDC__ != 1
3292 volatile char c = 255; exit(c < 0);
3295 if { (eval echo configure
:3296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3297 ac_cv_c_char_unsigned
=yes
3299 echo "configure: failed program was:" >&5
3300 cat conftest.
$ac_ext >&5
3302 ac_cv_c_char_unsigned
=no
3310 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
3311 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
3312 cat >> confdefs.h
<<\EOF
3313 #define __CHAR_UNSIGNED__ 1
3319 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3320 echo "configure:3321: checking return type of signal handlers" >&5
3321 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3322 echo $ac_n "(cached) $ac_c" 1>&6
3324 cat > conftest.
$ac_ext <<EOF
3325 #line 3326 "configure"
3326 #include "confdefs.h"
3327 #include <sys/types.h>
3333 extern "C" void (*signal (int, void (*)(int)))(int);
3335 void (*signal ()) ();
3342 if { (eval echo configure
:3343: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3344 ac_cv_type_signal
=void
3346 echo "configure: failed program was:" >&5
3347 cat conftest.
$ac_ext >&5
3349 ac_cv_type_signal
=int
3354 echo "$ac_t""$ac_cv_type_signal" 1>&6
3355 cat >> confdefs.h
<<EOF
3356 #define RETSIGTYPE $ac_cv_type_signal
3360 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3361 echo "configure:3362: checking for uid_t in sys/types.h" >&5
3362 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3363 echo $ac_n "(cached) $ac_c" 1>&6
3365 cat > conftest.
$ac_ext <<EOF
3366 #line 3367 "configure"
3367 #include "confdefs.h"
3368 #include <sys/types.h>
3370 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3371 egrep "uid_t" >/dev
/null
2>&1; then
3373 ac_cv_type_uid_t
=yes
3382 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3383 if test $ac_cv_type_uid_t = no
; then
3384 cat >> confdefs.h
<<\EOF
3388 cat >> confdefs.h
<<\EOF
3394 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3395 echo "configure:3396: checking for mode_t" >&5
3396 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3397 echo $ac_n "(cached) $ac_c" 1>&6
3399 cat > conftest.
$ac_ext <<EOF
3400 #line 3401 "configure"
3401 #include "confdefs.h"
3402 #include <sys/types.h>
3408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3409 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3411 ac_cv_type_mode_t
=yes
3414 ac_cv_type_mode_t
=no
3419 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3420 if test $ac_cv_type_mode_t = no
; then
3421 cat >> confdefs.h
<<\EOF
3427 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3428 echo "configure:3429: checking for off_t" >&5
3429 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3430 echo $ac_n "(cached) $ac_c" 1>&6
3432 cat > conftest.
$ac_ext <<EOF
3433 #line 3434 "configure"
3434 #include "confdefs.h"
3435 #include <sys/types.h>
3441 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3442 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3444 ac_cv_type_off_t
=yes
3452 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3453 if test $ac_cv_type_off_t = no
; then
3454 cat >> confdefs.h
<<\EOF
3460 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3461 echo "configure:3462: checking for size_t" >&5
3462 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3463 echo $ac_n "(cached) $ac_c" 1>&6
3465 cat > conftest.
$ac_ext <<EOF
3466 #line 3467 "configure"
3467 #include "confdefs.h"
3468 #include <sys/types.h>
3474 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3475 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3477 ac_cv_type_size_t
=yes
3480 ac_cv_type_size_t
=no
3485 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3486 if test $ac_cv_type_size_t = no
; then
3487 cat >> confdefs.h
<<\EOF
3488 #define size_t unsigned
3493 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3494 echo "configure:3495: checking for pid_t" >&5
3495 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3496 echo $ac_n "(cached) $ac_c" 1>&6
3498 cat > conftest.
$ac_ext <<EOF
3499 #line 3500 "configure"
3500 #include "confdefs.h"
3501 #include <sys/types.h>
3507 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3508 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3510 ac_cv_type_pid_t
=yes
3518 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3519 if test $ac_cv_type_pid_t = no
; then
3520 cat >> confdefs.h
<<\EOF
3526 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3527 echo "configure:3528: checking for st_rdev in struct stat" >&5
3528 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3529 echo $ac_n "(cached) $ac_c" 1>&6
3531 cat > conftest.
$ac_ext <<EOF
3532 #line 3533 "configure"
3533 #include "confdefs.h"
3534 #include <sys/types.h>
3535 #include <sys/stat.h>
3537 struct stat s; s.st_rdev;
3540 if { (eval echo configure
:3541: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3542 ac_cv_struct_st_rdev
=yes
3544 echo "configure: failed program was:" >&5
3545 cat conftest.
$ac_ext >&5
3547 ac_cv_struct_st_rdev
=no
3552 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3553 if test $ac_cv_struct_st_rdev = yes; then
3554 cat >> confdefs.h
<<\EOF
3555 #define HAVE_ST_RDEV 1
3560 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
3561 echo "configure:3562: checking for d_off in dirent" >&5
3562 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
3563 echo $ac_n "(cached) $ac_c" 1>&6
3565 cat > conftest.
$ac_ext <<EOF
3566 #line 3567 "configure"
3567 #include "confdefs.h"
3570 #include <sys/types.h>
3573 struct dirent d; d.d_off;
3576 if { (eval echo configure
:3577: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3578 ac_cv_dirent_d_off
=yes
3580 echo "configure: failed program was:" >&5
3581 cat conftest.
$ac_ext >&5
3583 ac_cv_dirent_d_off
=no
3588 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
3589 if test $ac_cv_dirent_d_off = yes; then
3590 cat >> confdefs.h
<<\EOF
3591 #define HAVE_DIRENT_D_OFF 1
3596 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
3597 echo "configure:3598: checking for ino_t" >&5
3598 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
3599 echo $ac_n "(cached) $ac_c" 1>&6
3601 cat > conftest.
$ac_ext <<EOF
3602 #line 3603 "configure"
3603 #include "confdefs.h"
3604 #include <sys/types.h>
3610 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3611 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3613 ac_cv_type_ino_t
=yes
3621 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
3622 if test $ac_cv_type_ino_t = no
; then
3623 cat >> confdefs.h
<<\EOF
3624 #define ino_t unsigned
3629 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3630 echo "configure:3631: checking for loff_t" >&5
3631 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
3632 echo $ac_n "(cached) $ac_c" 1>&6
3634 cat > conftest.
$ac_ext <<EOF
3635 #line 3636 "configure"
3636 #include "confdefs.h"
3637 #include <sys/types.h>
3643 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3644 egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3646 ac_cv_type_loff_t
=yes
3649 ac_cv_type_loff_t
=no
3654 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
3655 if test $ac_cv_type_loff_t = no
; then
3656 cat >> confdefs.h
<<\EOF
3657 #define loff_t off_t
3662 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
3663 echo "configure:3664: checking for offset_t" >&5
3664 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
3665 echo $ac_n "(cached) $ac_c" 1>&6
3667 cat > conftest.
$ac_ext <<EOF
3668 #line 3669 "configure"
3669 #include "confdefs.h"
3670 #include <sys/types.h>
3676 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3677 egrep "(^|[^a-zA-Z_0-9])offset_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3679 ac_cv_type_offset_t
=yes
3682 ac_cv_type_offset_t
=no
3687 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
3688 if test $ac_cv_type_offset_t = no
; then
3689 cat >> confdefs.h
<<\EOF
3690 #define offset_t loff_t
3695 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3696 echo "configure:3697: checking for ssize_t" >&5
3697 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3698 echo $ac_n "(cached) $ac_c" 1>&6
3700 cat > conftest.
$ac_ext <<EOF
3701 #line 3702 "configure"
3702 #include "confdefs.h"
3703 #include <sys/types.h>
3709 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3710 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3712 ac_cv_type_ssize_t
=yes
3715 ac_cv_type_ssize_t
=no
3720 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3721 if test $ac_cv_type_ssize_t = no
; then
3722 cat >> confdefs.h
<<\EOF
3728 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
3729 echo "configure:3730: checking for wchar_t" >&5
3730 if eval "test \"`echo '$''{'ac_cv_type_wchar_t'+set}'`\" = set"; then
3731 echo $ac_n "(cached) $ac_c" 1>&6
3733 cat > conftest.
$ac_ext <<EOF
3734 #line 3735 "configure"
3735 #include "confdefs.h"
3736 #include <sys/types.h>
3742 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3743 egrep "(^|[^a-zA-Z_0-9])wchar_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3745 ac_cv_type_wchar_t
=yes
3748 ac_cv_type_wchar_t
=no
3753 echo "$ac_t""$ac_cv_type_wchar_t" 1>&6
3754 if test $ac_cv_type_wchar_t = no
; then
3755 cat >> confdefs.h
<<\EOF
3756 #define wchar_t unsigned short
3762 # we need libcups for CUPS support...
3763 echo $ac_n "checking for httpConnect in -lcups""... $ac_c" 1>&6
3764 echo "configure:3765: checking for httpConnect in -lcups" >&5
3765 ac_lib_var
=`echo cups'_'httpConnect | sed 'y%./+-%__p_%'`
3766 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3767 echo $ac_n "(cached) $ac_c" 1>&6
3769 ac_save_LIBS
="$LIBS"
3771 cat > conftest.
$ac_ext <<EOF
3772 #line 3773 "configure"
3773 #include "confdefs.h"
3774 /* Override any gcc2 internal prototype to avoid an error. */
3775 /* We use char because int might match the return type of a gcc2
3776 builtin and then its argument prototype would still apply. */
3783 if { (eval echo configure
:3784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3785 eval "ac_cv_lib_$ac_lib_var=yes"
3787 echo "configure: failed program was:" >&5
3788 cat conftest.
$ac_ext >&5
3790 eval "ac_cv_lib_$ac_lib_var=no"
3793 LIBS
="$ac_save_LIBS"
3796 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3797 echo "$ac_t""yes" 1>&6
3798 ac_tr_lib
=HAVE_LIB
`echo cups | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3799 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3800 cat >> confdefs.h
<<EOF
3801 #define $ac_tr_lib 1
3807 echo "$ac_t""no" 1>&6
3811 # we need libdl for PAM and the new VFS code
3812 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3813 echo "configure:3814: checking for dlopen in -ldl" >&5
3814 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3815 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3816 echo $ac_n "(cached) $ac_c" 1>&6
3818 ac_save_LIBS
="$LIBS"
3820 cat > conftest.
$ac_ext <<EOF
3821 #line 3822 "configure"
3822 #include "confdefs.h"
3823 /* Override any gcc2 internal prototype to avoid an error. */
3824 /* We use char because int might match the return type of a gcc2
3825 builtin and then its argument prototype would still apply. */
3832 if { (eval echo configure
:3833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3834 eval "ac_cv_lib_$ac_lib_var=yes"
3836 echo "configure: failed program was:" >&5
3837 cat conftest.
$ac_ext >&5
3839 eval "ac_cv_lib_$ac_lib_var=no"
3842 LIBS
="$ac_save_LIBS"
3845 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3846 echo "$ac_t""yes" 1>&6
3848 cat >> confdefs.h
<<\EOF
3849 #define HAVE_LIBDL 1
3853 echo "$ac_t""no" 1>&6
3857 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
3858 echo "configure:3859: checking for sig_atomic_t type" >&5
3859 if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+set}'`\" = set"; then
3860 echo $ac_n "(cached) $ac_c" 1>&6
3863 cat > conftest.
$ac_ext <<EOF
3864 #line 3865 "configure"
3865 #include "confdefs.h"
3867 #include <sys/types.h>
3877 if { (eval echo configure
:3878: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3879 samba_cv_sig_atomic_t
=yes
3881 echo "configure: failed program was:" >&5
3882 cat conftest.
$ac_ext >&5
3884 samba_cv_sig_atomic_t
=no
3889 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
3890 if test x
"$samba_cv_sig_atomic_t" = x
"yes"; then
3891 cat >> confdefs.h
<<\EOF
3892 #define HAVE_SIG_ATOMIC_T_TYPE 1
3897 echo $ac_n "checking for errno in errno.h""... $ac_c" 1>&6
3898 echo "configure:3899: checking for errno in errno.h" >&5
3899 if eval "test \"`echo '$''{'samba_cv_errno'+set}'`\" = set"; then
3900 echo $ac_n "(cached) $ac_c" 1>&6
3903 cat > conftest.
$ac_ext <<EOF
3904 #line 3905 "configure"
3905 #include "confdefs.h"
3911 if { (eval echo configure
:3912: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3915 echo "configure: failed program was:" >&5
3916 cat conftest.
$ac_ext >&5
3918 samba_cv_have_errno
=no
3923 echo "$ac_t""$samba_cv_errno" 1>&6
3924 if test x
"$samba_cv_errno" = x
"yes"; then
3925 cat >> confdefs.h
<<\EOF
3926 #define HAVE_ERRNO_DECL 1
3931 # stupid glibc has the functions but no declaration. grrrr.
3932 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
3933 echo "configure:3934: checking for setresuid declaration" >&5
3934 if eval "test \"`echo '$''{'samba_cv_have_setresuid_decl'+set}'`\" = set"; then
3935 echo $ac_n "(cached) $ac_c" 1>&6
3938 cat > conftest.
$ac_ext <<EOF
3939 #line 3940 "configure"
3940 #include "confdefs.h"
3943 int i = (int)setresuid
3946 if { (eval echo configure
:3947: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3948 samba_cv_have_setresuid_decl
=yes
3950 echo "configure: failed program was:" >&5
3951 cat conftest.
$ac_ext >&5
3953 samba_cv_have_setresuid_decl
=no
3958 echo "$ac_t""$samba_cv_have_setresuid_decl" 1>&6
3959 if test x
"$samba_cv_have_setresuid_decl" = x
"yes"; then
3960 cat >> confdefs.h
<<\EOF
3961 #define HAVE_SETRESUID_DECL 1
3966 # stupid glibc has the functions but no declaration. grrrr.
3967 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
3968 echo "configure:3969: checking for setresgid declaration" >&5
3969 if eval "test \"`echo '$''{'samba_cv_have_setresgid_decl'+set}'`\" = set"; then
3970 echo $ac_n "(cached) $ac_c" 1>&6
3973 cat > conftest.
$ac_ext <<EOF
3974 #line 3975 "configure"
3975 #include "confdefs.h"
3978 int i = (int)setresgid
3981 if { (eval echo configure
:3982: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3983 samba_cv_have_setresgid_decl
=yes
3985 echo "configure: failed program was:" >&5
3986 cat conftest.
$ac_ext >&5
3988 samba_cv_have_setresgid_decl
=no
3993 echo "$ac_t""$samba_cv_have_setresgid_decl" 1>&6
3994 if test x
"$samba_cv_have_setresgid_decl" = x
"yes"; then
3995 cat >> confdefs.h
<<\EOF
3996 #define HAVE_SETRESGID_DECL 1
4001 # and glibc has setresuid under linux but the function does
4002 # nothing until kernel 2.1.44! very dumb.
4003 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
4004 echo "configure:4005: checking for real setresuid" >&5
4005 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
4006 echo $ac_n "(cached) $ac_c" 1>&6
4009 if test "$cross_compiling" = yes; then
4010 samba_cv_have_setresuid
=cross
4012 cat > conftest.
$ac_ext <<EOF
4013 #line 4014 "configure"
4014 #include "confdefs.h"
4016 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
4018 if { (eval echo configure
:4019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4020 samba_cv_have_setresuid
=yes
4022 echo "configure: failed program was:" >&5
4023 cat conftest.
$ac_ext >&5
4025 samba_cv_have_setresuid
=no
4032 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
4033 if test x
"$samba_cv_have_setresuid" = x
"yes"; then
4034 cat >> confdefs.h
<<\EOF
4035 #define HAVE_SETRESUID 1
4040 # Do the same check for setresguid...
4042 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
4043 echo "configure:4044: checking for real setresgid" >&5
4044 if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then
4045 echo $ac_n "(cached) $ac_c" 1>&6
4048 if test "$cross_compiling" = yes; then
4049 samba_cv_have_setresgid
=cross
4051 cat > conftest.
$ac_ext <<EOF
4052 #line 4053 "configure"
4053 #include "confdefs.h"
4056 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
4058 if { (eval echo configure
:4059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4060 samba_cv_have_setresgid
=yes
4062 echo "configure: failed program was:" >&5
4063 cat conftest.
$ac_ext >&5
4065 samba_cv_have_setresgid
=no
4072 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
4073 if test x
"$samba_cv_have_setresgid" = x
"yes"; then
4074 cat >> confdefs.h
<<\EOF
4075 #define HAVE_SETRESGID 1
4080 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
4081 echo "configure:4082: checking for 8-bit clean memcmp" >&5
4082 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
4083 echo $ac_n "(cached) $ac_c" 1>&6
4085 if test "$cross_compiling" = yes; then
4086 ac_cv_func_memcmp_clean
=no
4088 cat > conftest.
$ac_ext <<EOF
4089 #line 4090 "configure"
4090 #include "confdefs.h"
4094 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4095 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
4099 if { (eval echo configure
:4100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4101 ac_cv_func_memcmp_clean
=yes
4103 echo "configure: failed program was:" >&5
4104 cat conftest.
$ac_ext >&5
4106 ac_cv_func_memcmp_clean
=no
4113 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
4114 test $ac_cv_func_memcmp_clean = no
&& LIBOBJS
="$LIBOBJS memcmp.${ac_objext}"
4117 ###############################################
4118 # test for where we get crypt() from
4119 for ac_func
in crypt
4121 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4122 echo "configure:4123: checking for $ac_func" >&5
4123 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4124 echo $ac_n "(cached) $ac_c" 1>&6
4126 cat > conftest.
$ac_ext <<EOF
4127 #line 4128 "configure"
4128 #include "confdefs.h"
4129 /* System header to define __stub macros and hopefully few prototypes,
4130 which can conflict with char $ac_func(); below. */
4132 /* Override any gcc2 internal prototype to avoid an error. */
4133 /* We use char because int might match the return type of a gcc2
4134 builtin and then its argument prototype would still apply. */
4139 /* The GNU C library defines this for functions which it implements
4140 to always fail with ENOSYS. Some functions are actually named
4141 something starting with __ and the normal name is an alias. */
4142 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4150 if { (eval echo configure
:4151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4152 eval "ac_cv_func_$ac_func=yes"
4154 echo "configure: failed program was:" >&5
4155 cat conftest.
$ac_ext >&5
4157 eval "ac_cv_func_$ac_func=no"
4162 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4163 echo "$ac_t""yes" 1>&6
4164 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4165 cat >> confdefs.h
<<EOF
4166 #define $ac_tr_func 1
4170 echo "$ac_t""no" 1>&6
4174 if test x
"$ac_cv_func_crypt" = x
"no"; then
4175 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
4176 echo "configure:4177: checking for crypt in -lcrypt" >&5
4177 ac_lib_var
=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
4178 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4179 echo $ac_n "(cached) $ac_c" 1>&6
4181 ac_save_LIBS
="$LIBS"
4182 LIBS
="-lcrypt $LIBS"
4183 cat > conftest.
$ac_ext <<EOF
4184 #line 4185 "configure"
4185 #include "confdefs.h"
4186 /* Override any gcc2 internal prototype to avoid an error. */
4187 /* We use char because int might match the return type of a gcc2
4188 builtin and then its argument prototype would still apply. */
4195 if { (eval echo configure
:4196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4197 eval "ac_cv_lib_$ac_lib_var=yes"
4199 echo "configure: failed program was:" >&5
4200 cat conftest.
$ac_ext >&5
4202 eval "ac_cv_lib_$ac_lib_var=no"
4205 LIBS
="$ac_save_LIBS"
4208 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4209 echo "$ac_t""yes" 1>&6
4210 LIBS
="$LIBS -lcrypt";
4211 cat >> confdefs.h
<<\EOF
4212 #define HAVE_CRYPT 1
4216 echo "$ac_t""no" 1>&6
4222 ###############################################
4223 # Readline included by default unless explicitly asked not to
4224 test "${with_readline+set}" != "set" && with_readline
=yes
4226 # test for where we get readline() from
4227 echo $ac_n "checking whether to use readline""... $ac_c" 1>&6
4228 echo "configure:4229: checking whether to use readline" >&5
4229 # Check whether --with-readline or --without-readline was given.
4230 if test "${with_readline+set}" = set; then
4231 withval
="$with_readline"
4232 case "$with_readline" in
4234 echo "$ac_t""yes" 1>&6
4236 for ac_hdr
in readline.h
history.h readline
/readline.h
4238 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4239 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4240 echo "configure:4241: checking for $ac_hdr" >&5
4241 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4242 echo $ac_n "(cached) $ac_c" 1>&6
4244 cat > conftest.
$ac_ext <<EOF
4245 #line 4246 "configure"
4246 #include "confdefs.h"
4249 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4250 { (eval echo configure
:4251: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4251 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4252 if test -z "$ac_err"; then
4254 eval "ac_cv_header_$ac_safe=yes"
4257 echo "configure: failed program was:" >&5
4258 cat conftest.
$ac_ext >&5
4260 eval "ac_cv_header_$ac_safe=no"
4264 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4265 echo "$ac_t""yes" 1>&6
4266 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4267 cat >> confdefs.h
<<EOF
4268 #define $ac_tr_hdr 1
4272 echo "$ac_t""no" 1>&6
4276 for ac_hdr
in readline
/history.h
4278 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4279 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4280 echo "configure:4281: checking for $ac_hdr" >&5
4281 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4282 echo $ac_n "(cached) $ac_c" 1>&6
4284 cat > conftest.
$ac_ext <<EOF
4285 #line 4286 "configure"
4286 #include "confdefs.h"
4289 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4290 { (eval echo configure
:4291: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4291 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4292 if test -z "$ac_err"; then
4294 eval "ac_cv_header_$ac_safe=yes"
4297 echo "configure: failed program was:" >&5
4298 cat conftest.
$ac_ext >&5
4300 eval "ac_cv_header_$ac_safe=no"
4304 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4305 echo "$ac_t""yes" 1>&6
4306 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4307 cat >> confdefs.h
<<EOF
4308 #define $ac_tr_hdr 1
4312 echo "$ac_t""no" 1>&6
4317 for ac_hdr
in readline.h readline
/readline.h
4319 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4320 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4321 echo "configure:4322: checking for $ac_hdr" >&5
4322 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4323 echo $ac_n "(cached) $ac_c" 1>&6
4325 cat > conftest.
$ac_ext <<EOF
4326 #line 4327 "configure"
4327 #include "confdefs.h"
4330 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4331 { (eval echo configure
:4332: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4332 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4333 if test -z "$ac_err"; then
4335 eval "ac_cv_header_$ac_safe=yes"
4338 echo "configure: failed program was:" >&5
4339 cat conftest.
$ac_ext >&5
4341 eval "ac_cv_header_$ac_safe=no"
4345 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4346 echo "$ac_t""yes" 1>&6
4347 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4348 cat >> confdefs.h
<<EOF
4349 #define $ac_tr_hdr 1
4352 for termlib
in ncurses curses termcap terminfo termlib
; do
4353 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4354 echo "configure:4355: checking for tgetent in -l${termlib}" >&5
4355 ac_lib_var
=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4356 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4357 echo $ac_n "(cached) $ac_c" 1>&6
4359 ac_save_LIBS
="$LIBS"
4360 LIBS
="-l${termlib} $LIBS"
4361 cat > conftest.
$ac_ext <<EOF
4362 #line 4363 "configure"
4363 #include "confdefs.h"
4364 /* Override any gcc2 internal prototype to avoid an error. */
4365 /* We use char because int might match the return type of a gcc2
4366 builtin and then its argument prototype would still apply. */
4373 if { (eval echo configure
:4374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4375 eval "ac_cv_lib_$ac_lib_var=yes"
4377 echo "configure: failed program was:" >&5
4378 cat conftest.
$ac_ext >&5
4380 eval "ac_cv_lib_$ac_lib_var=no"
4383 LIBS
="$ac_save_LIBS"
4386 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4387 echo "$ac_t""yes" 1>&6
4388 TERMLIBS
="-l${termlib}"; break
4390 echo "$ac_t""no" 1>&6
4394 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4395 echo "configure:4396: checking for rl_callback_handler_install in -lreadline" >&5
4396 ac_lib_var
=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4397 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4398 echo $ac_n "(cached) $ac_c" 1>&6
4400 ac_save_LIBS
="$LIBS"
4401 LIBS
="-lreadline $TERMLIBS $LIBS"
4402 cat > conftest.
$ac_ext <<EOF
4403 #line 4404 "configure"
4404 #include "confdefs.h"
4405 /* Override any gcc2 internal prototype to avoid an error. */
4406 /* We use char because int might match the return type of a gcc2
4407 builtin and then its argument prototype would still apply. */
4408 char rl_callback_handler_install();
4411 rl_callback_handler_install()
4414 if { (eval echo configure
:4415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4416 eval "ac_cv_lib_$ac_lib_var=yes"
4418 echo "configure: failed program was:" >&5
4419 cat conftest.
$ac_ext >&5
4421 eval "ac_cv_lib_$ac_lib_var=no"
4424 LIBS
="$ac_save_LIBS"
4427 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4428 echo "$ac_t""yes" 1>&6
4429 TERMLIBS
="-lreadline $TERMLIBS"
4430 cat >> confdefs.h
<<\EOF
4431 #define HAVE_LIBREADLINE 1
4436 echo "$ac_t""no" 1>&6
4441 echo "$ac_t""no" 1>&6
4447 echo "$ac_t""no" 1>&6
4450 echo "$ac_t""yes" 1>&6
4452 # Needed for AC_CHECK_HEADERS and AC_CHECK_LIB to look at
4453 # alternate readline path
4455 _cppflags
=${CPPFLAGS}
4457 # Add additional search path
4458 LDFLAGS
="-L$with_readline/lib $LDFLAGS"
4459 CPPFLAGS
="-I$with_readline/include $CPPFLAGS"
4461 for ac_hdr
in readline.h
history.h readline
/readline.h
4463 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4464 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4465 echo "configure:4466: checking for $ac_hdr" >&5
4466 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4467 echo $ac_n "(cached) $ac_c" 1>&6
4469 cat > conftest.
$ac_ext <<EOF
4470 #line 4471 "configure"
4471 #include "confdefs.h"
4474 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4475 { (eval echo configure
:4476: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4476 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4477 if test -z "$ac_err"; then
4479 eval "ac_cv_header_$ac_safe=yes"
4482 echo "configure: failed program was:" >&5
4483 cat conftest.
$ac_ext >&5
4485 eval "ac_cv_header_$ac_safe=no"
4489 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4490 echo "$ac_t""yes" 1>&6
4491 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4492 cat >> confdefs.h
<<EOF
4493 #define $ac_tr_hdr 1
4497 echo "$ac_t""no" 1>&6
4501 for ac_hdr
in readline
/history.h
4503 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4504 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4505 echo "configure:4506: checking for $ac_hdr" >&5
4506 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4507 echo $ac_n "(cached) $ac_c" 1>&6
4509 cat > conftest.
$ac_ext <<EOF
4510 #line 4511 "configure"
4511 #include "confdefs.h"
4514 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4515 { (eval echo configure
:4516: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4516 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4517 if test -z "$ac_err"; then
4519 eval "ac_cv_header_$ac_safe=yes"
4522 echo "configure: failed program was:" >&5
4523 cat conftest.
$ac_ext >&5
4525 eval "ac_cv_header_$ac_safe=no"
4529 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4530 echo "$ac_t""yes" 1>&6
4531 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4532 cat >> confdefs.h
<<EOF
4533 #define $ac_tr_hdr 1
4537 echo "$ac_t""no" 1>&6
4542 for ac_hdr
in readline.h readline
/readline.h
4544 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4545 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4546 echo "configure:4547: checking for $ac_hdr" >&5
4547 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4548 echo $ac_n "(cached) $ac_c" 1>&6
4550 cat > conftest.
$ac_ext <<EOF
4551 #line 4552 "configure"
4552 #include "confdefs.h"
4555 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4556 { (eval echo configure
:4557: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4557 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4558 if test -z "$ac_err"; then
4560 eval "ac_cv_header_$ac_safe=yes"
4563 echo "configure: failed program was:" >&5
4564 cat conftest.
$ac_ext >&5
4566 eval "ac_cv_header_$ac_safe=no"
4570 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4571 echo "$ac_t""yes" 1>&6
4572 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4573 cat >> confdefs.h
<<EOF
4574 #define $ac_tr_hdr 1
4577 for termlib
in ncurses curses termcap terminfo termlib
; do
4578 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4579 echo "configure:4580: checking for tgetent in -l${termlib}" >&5
4580 ac_lib_var
=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4581 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4582 echo $ac_n "(cached) $ac_c" 1>&6
4584 ac_save_LIBS
="$LIBS"
4585 LIBS
="-l${termlib} $LIBS"
4586 cat > conftest.
$ac_ext <<EOF
4587 #line 4588 "configure"
4588 #include "confdefs.h"
4589 /* Override any gcc2 internal prototype to avoid an error. */
4590 /* We use char because int might match the return type of a gcc2
4591 builtin and then its argument prototype would still apply. */
4598 if { (eval echo configure
:4599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4600 eval "ac_cv_lib_$ac_lib_var=yes"
4602 echo "configure: failed program was:" >&5
4603 cat conftest.
$ac_ext >&5
4605 eval "ac_cv_lib_$ac_lib_var=no"
4608 LIBS
="$ac_save_LIBS"
4611 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4612 echo "$ac_t""yes" 1>&6
4613 TERMLIBS
="-l${termlib}"; break
4615 echo "$ac_t""no" 1>&6
4619 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4620 echo "configure:4621: checking for rl_callback_handler_install in -lreadline" >&5
4621 ac_lib_var
=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4622 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4623 echo $ac_n "(cached) $ac_c" 1>&6
4625 ac_save_LIBS
="$LIBS"
4626 LIBS
="-lreadline $TERMLIBS $LIBS"
4627 cat > conftest.
$ac_ext <<EOF
4628 #line 4629 "configure"
4629 #include "confdefs.h"
4630 /* Override any gcc2 internal prototype to avoid an error. */
4631 /* We use char because int might match the return type of a gcc2
4632 builtin and then its argument prototype would still apply. */
4633 char rl_callback_handler_install();
4636 rl_callback_handler_install()
4639 if { (eval echo configure
:4640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4641 eval "ac_cv_lib_$ac_lib_var=yes"
4643 echo "configure: failed program was:" >&5
4644 cat conftest.
$ac_ext >&5
4646 eval "ac_cv_lib_$ac_lib_var=no"
4649 LIBS
="$ac_save_LIBS"
4652 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4653 echo "$ac_t""yes" 1>&6
4654 TERMLDFLAGS
="-L$with_readline/lib"
4655 TERMCPPFLAGS
="-I$with_readline/include"
4656 CPPFLAGS
="-I$with_readline/include $CPPFLAGS"
4657 TERMLIBS
="-lreadline $TERMLIBS"
4658 cat >> confdefs.h
<<\EOF
4659 #define HAVE_LIBREADLINE 1
4664 echo "$ac_t""no" 1>&6
4665 TERMLIBS
= CPPFLAGS
=$_cppflags
4669 echo "$ac_t""no" 1>&6
4678 echo "$ac_t""no" 1>&6
4685 # The following test taken from the cvs sources
4686 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
4687 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
4688 # libsocket.so which has a bad implementation of gethostbyname (it
4689 # only looks in /etc/hosts), so we only look for -lsocket if we need
4691 for ac_func
in connect
4693 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4694 echo "configure:4695: checking for $ac_func" >&5
4695 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4696 echo $ac_n "(cached) $ac_c" 1>&6
4698 cat > conftest.
$ac_ext <<EOF
4699 #line 4700 "configure"
4700 #include "confdefs.h"
4701 /* System header to define __stub macros and hopefully few prototypes,
4702 which can conflict with char $ac_func(); below. */
4704 /* Override any gcc2 internal prototype to avoid an error. */
4705 /* We use char because int might match the return type of a gcc2
4706 builtin and then its argument prototype would still apply. */
4711 /* The GNU C library defines this for functions which it implements
4712 to always fail with ENOSYS. Some functions are actually named
4713 something starting with __ and the normal name is an alias. */
4714 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4722 if { (eval echo configure
:4723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4724 eval "ac_cv_func_$ac_func=yes"
4726 echo "configure: failed program was:" >&5
4727 cat conftest.
$ac_ext >&5
4729 eval "ac_cv_func_$ac_func=no"
4734 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4735 echo "$ac_t""yes" 1>&6
4736 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4737 cat >> confdefs.h
<<EOF
4738 #define $ac_tr_func 1
4742 echo "$ac_t""no" 1>&6
4746 if test x
"$ac_cv_func_connect" = x
"no"; then
4749 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
4750 echo "configure:4751: checking for printf in -lnsl_s" >&5
4751 ac_lib_var
=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
4752 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4753 echo $ac_n "(cached) $ac_c" 1>&6
4755 ac_save_LIBS
="$LIBS"
4756 LIBS
="-lnsl_s $LIBS"
4757 cat > conftest.
$ac_ext <<EOF
4758 #line 4759 "configure"
4759 #include "confdefs.h"
4760 /* Override any gcc2 internal prototype to avoid an error. */
4761 /* We use char because int might match the return type of a gcc2
4762 builtin and then its argument prototype would still apply. */
4769 if { (eval echo configure
:4770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4771 eval "ac_cv_lib_$ac_lib_var=yes"
4773 echo "configure: failed program was:" >&5
4774 cat conftest.
$ac_ext >&5
4776 eval "ac_cv_lib_$ac_lib_var=no"
4779 LIBS
="$ac_save_LIBS"
4782 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4783 echo "$ac_t""yes" 1>&6
4784 ac_tr_lib
=HAVE_LIB
`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4785 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4786 cat >> confdefs.h
<<EOF
4787 #define $ac_tr_lib 1
4790 LIBS
="-lnsl_s $LIBS"
4793 echo "$ac_t""no" 1>&6
4799 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
4800 echo "configure:4801: checking for printf in -lnsl" >&5
4801 ac_lib_var
=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
4802 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4803 echo $ac_n "(cached) $ac_c" 1>&6
4805 ac_save_LIBS
="$LIBS"
4807 cat > conftest.
$ac_ext <<EOF
4808 #line 4809 "configure"
4809 #include "confdefs.h"
4810 /* Override any gcc2 internal prototype to avoid an error. */
4811 /* We use char because int might match the return type of a gcc2
4812 builtin and then its argument prototype would still apply. */
4819 if { (eval echo configure
:4820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4821 eval "ac_cv_lib_$ac_lib_var=yes"
4823 echo "configure: failed program was:" >&5
4824 cat conftest.
$ac_ext >&5
4826 eval "ac_cv_lib_$ac_lib_var=no"
4829 LIBS
="$ac_save_LIBS"
4832 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4833 echo "$ac_t""yes" 1>&6
4834 ac_tr_lib
=HAVE_LIB
`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4835 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4836 cat >> confdefs.h
<<EOF
4837 #define $ac_tr_lib 1
4843 echo "$ac_t""no" 1>&6
4849 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
4850 echo "configure:4851: checking for connect in -lsocket" >&5
4851 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
4852 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4853 echo $ac_n "(cached) $ac_c" 1>&6
4855 ac_save_LIBS
="$LIBS"
4856 LIBS
="-lsocket $LIBS"
4857 cat > conftest.
$ac_ext <<EOF
4858 #line 4859 "configure"
4859 #include "confdefs.h"
4860 /* Override any gcc2 internal prototype to avoid an error. */
4861 /* We use char because int might match the return type of a gcc2
4862 builtin and then its argument prototype would still apply. */
4869 if { (eval echo configure
:4870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4871 eval "ac_cv_lib_$ac_lib_var=yes"
4873 echo "configure: failed program was:" >&5
4874 cat conftest.
$ac_ext >&5
4876 eval "ac_cv_lib_$ac_lib_var=no"
4879 LIBS
="$ac_save_LIBS"
4882 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4883 echo "$ac_t""yes" 1>&6
4884 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4885 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4886 cat >> confdefs.h
<<EOF
4887 #define $ac_tr_lib 1
4890 LIBS
="-lsocket $LIBS"
4893 echo "$ac_t""no" 1>&6
4899 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
4900 echo "configure:4901: checking for connect in -linet" >&5
4901 ac_lib_var
=`echo inet'_'connect | sed 'y%./+-%__p_%'`
4902 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4903 echo $ac_n "(cached) $ac_c" 1>&6
4905 ac_save_LIBS
="$LIBS"
4907 cat > conftest.
$ac_ext <<EOF
4908 #line 4909 "configure"
4909 #include "confdefs.h"
4910 /* Override any gcc2 internal prototype to avoid an error. */
4911 /* We use char because int might match the return type of a gcc2
4912 builtin and then its argument prototype would still apply. */
4919 if { (eval echo configure
:4920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4921 eval "ac_cv_lib_$ac_lib_var=yes"
4923 echo "configure: failed program was:" >&5
4924 cat conftest.
$ac_ext >&5
4926 eval "ac_cv_lib_$ac_lib_var=no"
4929 LIBS
="$ac_save_LIBS"
4932 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4933 echo "$ac_t""yes" 1>&6
4934 ac_tr_lib
=HAVE_LIB
`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4935 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4936 cat >> confdefs.h
<<EOF
4937 #define $ac_tr_lib 1
4943 echo "$ac_t""no" 1>&6
4947 if test x
"$ac_cv_lib_socket_connect" = x
"yes" ||
4948 test x
"$ac_cv_lib_inet_connect" = x
"yes"; then
4949 # ac_cv_func_connect=yes
4950 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
4951 cat >> confdefs.h
<<\EOF
4952 #define HAVE_CONNECT 1
4958 ###############################################
4959 # test for where we get get_yp_default_domain() from
4960 for ac_func
in yp_get_default_domain
4962 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4963 echo "configure:4964: checking for $ac_func" >&5
4964 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4965 echo $ac_n "(cached) $ac_c" 1>&6
4967 cat > conftest.
$ac_ext <<EOF
4968 #line 4969 "configure"
4969 #include "confdefs.h"
4970 /* System header to define __stub macros and hopefully few prototypes,
4971 which can conflict with char $ac_func(); below. */
4973 /* Override any gcc2 internal prototype to avoid an error. */
4974 /* We use char because int might match the return type of a gcc2
4975 builtin and then its argument prototype would still apply. */
4980 /* The GNU C library defines this for functions which it implements
4981 to always fail with ENOSYS. Some functions are actually named
4982 something starting with __ and the normal name is an alias. */
4983 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4991 if { (eval echo configure
:4992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4993 eval "ac_cv_func_$ac_func=yes"
4995 echo "configure: failed program was:" >&5
4996 cat conftest.
$ac_ext >&5
4998 eval "ac_cv_func_$ac_func=no"
5003 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5004 echo "$ac_t""yes" 1>&6
5005 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5006 cat >> confdefs.h
<<EOF
5007 #define $ac_tr_func 1
5011 echo "$ac_t""no" 1>&6
5015 if test x
"$ac_cv_func_yp_get_default_domain" = x
"no"; then
5016 echo $ac_n "checking for yp_get_default_domain in -lnsl""... $ac_c" 1>&6
5017 echo "configure:5018: checking for yp_get_default_domain in -lnsl" >&5
5018 ac_lib_var
=`echo nsl'_'yp_get_default_domain | sed 'y%./+-%__p_%'`
5019 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5020 echo $ac_n "(cached) $ac_c" 1>&6
5022 ac_save_LIBS
="$LIBS"
5024 cat > conftest.
$ac_ext <<EOF
5025 #line 5026 "configure"
5026 #include "confdefs.h"
5027 /* Override any gcc2 internal prototype to avoid an error. */
5028 /* We use char because int might match the return type of a gcc2
5029 builtin and then its argument prototype would still apply. */
5030 char yp_get_default_domain();
5033 yp_get_default_domain()
5036 if { (eval echo configure
:5037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5038 eval "ac_cv_lib_$ac_lib_var=yes"
5040 echo "configure: failed program was:" >&5
5041 cat conftest.
$ac_ext >&5
5043 eval "ac_cv_lib_$ac_lib_var=no"
5046 LIBS
="$ac_save_LIBS"
5049 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5050 echo "$ac_t""yes" 1>&6
5052 cat >> confdefs.h
<<\EOF
5053 #define HAVE_YP_GET_DEFAULT_DOMAIN 1
5057 echo "$ac_t""no" 1>&6
5062 # Check if we have execl, if not we need to compile smbrun.
5063 for ac_func
in execl
5065 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5066 echo "configure:5067: checking for $ac_func" >&5
5067 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5068 echo $ac_n "(cached) $ac_c" 1>&6
5070 cat > conftest.
$ac_ext <<EOF
5071 #line 5072 "configure"
5072 #include "confdefs.h"
5073 /* System header to define __stub macros and hopefully few prototypes,
5074 which can conflict with char $ac_func(); below. */
5076 /* Override any gcc2 internal prototype to avoid an error. */
5077 /* We use char because int might match the return type of a gcc2
5078 builtin and then its argument prototype would still apply. */
5083 /* The GNU C library defines this for functions which it implements
5084 to always fail with ENOSYS. Some functions are actually named
5085 something starting with __ and the normal name is an alias. */
5086 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5094 if { (eval echo configure
:5095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5096 eval "ac_cv_func_$ac_func=yes"
5098 echo "configure: failed program was:" >&5
5099 cat conftest.
$ac_ext >&5
5101 eval "ac_cv_func_$ac_func=no"
5106 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5107 echo "$ac_t""yes" 1>&6
5108 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5109 cat >> confdefs.h
<<EOF
5110 #define $ac_tr_func 1
5114 echo "$ac_t""no" 1>&6
5118 if test x
"$ac_cv_func_execl" = x
"no"; then
5119 RUNPROG
="bin/smbrun"
5124 for ac_func
in waitpid getcwd strdup strtoul strerror chown fchown
chmod fchmod chroot
5126 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5127 echo "configure:5128: checking for $ac_func" >&5
5128 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5129 echo $ac_n "(cached) $ac_c" 1>&6
5131 cat > conftest.
$ac_ext <<EOF
5132 #line 5133 "configure"
5133 #include "confdefs.h"
5134 /* System header to define __stub macros and hopefully few prototypes,
5135 which can conflict with char $ac_func(); below. */
5137 /* Override any gcc2 internal prototype to avoid an error. */
5138 /* We use char because int might match the return type of a gcc2
5139 builtin and then its argument prototype would still apply. */
5144 /* The GNU C library defines this for functions which it implements
5145 to always fail with ENOSYS. Some functions are actually named
5146 something starting with __ and the normal name is an alias. */
5147 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5155 if { (eval echo configure
:5156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5157 eval "ac_cv_func_$ac_func=yes"
5159 echo "configure: failed program was:" >&5
5160 cat conftest.
$ac_ext >&5
5162 eval "ac_cv_func_$ac_func=no"
5167 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5168 echo "$ac_t""yes" 1>&6
5169 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5170 cat >> confdefs.h
<<EOF
5171 #define $ac_tr_func 1
5175 echo "$ac_t""no" 1>&6
5179 for ac_func
in fstat strchr utime utimes getrlimit fsync bzero memset
5181 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5182 echo "configure:5183: checking for $ac_func" >&5
5183 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5184 echo $ac_n "(cached) $ac_c" 1>&6
5186 cat > conftest.
$ac_ext <<EOF
5187 #line 5188 "configure"
5188 #include "confdefs.h"
5189 /* System header to define __stub macros and hopefully few prototypes,
5190 which can conflict with char $ac_func(); below. */
5192 /* Override any gcc2 internal prototype to avoid an error. */
5193 /* We use char because int might match the return type of a gcc2
5194 builtin and then its argument prototype would still apply. */
5199 /* The GNU C library defines this for functions which it implements
5200 to always fail with ENOSYS. Some functions are actually named
5201 something starting with __ and the normal name is an alias. */
5202 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5210 if { (eval echo configure
:5211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5212 eval "ac_cv_func_$ac_func=yes"
5214 echo "configure: failed program was:" >&5
5215 cat conftest.
$ac_ext >&5
5217 eval "ac_cv_func_$ac_func=no"
5222 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5223 echo "$ac_t""yes" 1>&6
5224 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5225 cat >> confdefs.h
<<EOF
5226 #define $ac_tr_func 1
5230 echo "$ac_t""no" 1>&6
5234 for ac_func
in memmove vsnprintf snprintf setsid glob strpbrk pipe crypt16 getauthuid
5236 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5237 echo "configure:5238: checking for $ac_func" >&5
5238 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5239 echo $ac_n "(cached) $ac_c" 1>&6
5241 cat > conftest.
$ac_ext <<EOF
5242 #line 5243 "configure"
5243 #include "confdefs.h"
5244 /* System header to define __stub macros and hopefully few prototypes,
5245 which can conflict with char $ac_func(); below. */
5247 /* Override any gcc2 internal prototype to avoid an error. */
5248 /* We use char because int might match the return type of a gcc2
5249 builtin and then its argument prototype would still apply. */
5254 /* The GNU C library defines this for functions which it implements
5255 to always fail with ENOSYS. Some functions are actually named
5256 something starting with __ and the normal name is an alias. */
5257 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5265 if { (eval echo configure
:5266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5267 eval "ac_cv_func_$ac_func=yes"
5269 echo "configure: failed program was:" >&5
5270 cat conftest.
$ac_ext >&5
5272 eval "ac_cv_func_$ac_func=no"
5277 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5278 echo "$ac_t""yes" 1>&6
5279 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5280 cat >> confdefs.h
<<EOF
5281 #define $ac_tr_func 1
5285 echo "$ac_t""no" 1>&6
5289 for ac_func
in strftime sigprocmask sigblock sigaction innetgr setnetgrent getnetgrent endnetgrent
5291 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5292 echo "configure:5293: checking for $ac_func" >&5
5293 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5294 echo $ac_n "(cached) $ac_c" 1>&6
5296 cat > conftest.
$ac_ext <<EOF
5297 #line 5298 "configure"
5298 #include "confdefs.h"
5299 /* System header to define __stub macros and hopefully few prototypes,
5300 which can conflict with char $ac_func(); below. */
5302 /* Override any gcc2 internal prototype to avoid an error. */
5303 /* We use char because int might match the return type of a gcc2
5304 builtin and then its argument prototype would still apply. */
5309 /* The GNU C library defines this for functions which it implements
5310 to always fail with ENOSYS. Some functions are actually named
5311 something starting with __ and the normal name is an alias. */
5312 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5320 if { (eval echo configure
:5321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5322 eval "ac_cv_func_$ac_func=yes"
5324 echo "configure: failed program was:" >&5
5325 cat conftest.
$ac_ext >&5
5327 eval "ac_cv_func_$ac_func=no"
5332 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5333 echo "$ac_t""yes" 1>&6
5334 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5335 cat >> confdefs.h
<<EOF
5336 #define $ac_tr_func 1
5340 echo "$ac_t""no" 1>&6
5344 for ac_func
in initgroups
select poll rdchk getgrnam getgrent pathconf
5346 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5347 echo "configure:5348: checking for $ac_func" >&5
5348 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5349 echo $ac_n "(cached) $ac_c" 1>&6
5351 cat > conftest.
$ac_ext <<EOF
5352 #line 5353 "configure"
5353 #include "confdefs.h"
5354 /* System header to define __stub macros and hopefully few prototypes,
5355 which can conflict with char $ac_func(); below. */
5357 /* Override any gcc2 internal prototype to avoid an error. */
5358 /* We use char because int might match the return type of a gcc2
5359 builtin and then its argument prototype would still apply. */
5364 /* The GNU C library defines this for functions which it implements
5365 to always fail with ENOSYS. Some functions are actually named
5366 something starting with __ and the normal name is an alias. */
5367 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5375 if { (eval echo configure
:5376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5377 eval "ac_cv_func_$ac_func=yes"
5379 echo "configure: failed program was:" >&5
5380 cat conftest.
$ac_ext >&5
5382 eval "ac_cv_func_$ac_func=no"
5387 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5388 echo "$ac_t""yes" 1>&6
5389 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5390 cat >> confdefs.h
<<EOF
5391 #define $ac_tr_func 1
5395 echo "$ac_t""no" 1>&6
5399 for ac_func
in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
5401 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5402 echo "configure:5403: checking for $ac_func" >&5
5403 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5404 echo $ac_n "(cached) $ac_c" 1>&6
5406 cat > conftest.
$ac_ext <<EOF
5407 #line 5408 "configure"
5408 #include "confdefs.h"
5409 /* System header to define __stub macros and hopefully few prototypes,
5410 which can conflict with char $ac_func(); below. */
5412 /* Override any gcc2 internal prototype to avoid an error. */
5413 /* We use char because int might match the return type of a gcc2
5414 builtin and then its argument prototype would still apply. */
5419 /* The GNU C library defines this for functions which it implements
5420 to always fail with ENOSYS. Some functions are actually named
5421 something starting with __ and the normal name is an alias. */
5422 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5430 if { (eval echo configure
:5431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5432 eval "ac_cv_func_$ac_func=yes"
5434 echo "configure: failed program was:" >&5
5435 cat conftest.
$ac_ext >&5
5437 eval "ac_cv_func_$ac_func=no"
5442 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5443 echo "$ac_t""yes" 1>&6
5444 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5445 cat >> confdefs.h
<<EOF
5446 #define $ac_tr_func 1
5450 echo "$ac_t""no" 1>&6
5454 for ac_func
in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
5456 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5457 echo "configure:5458: checking for $ac_func" >&5
5458 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5459 echo $ac_n "(cached) $ac_c" 1>&6
5461 cat > conftest.
$ac_ext <<EOF
5462 #line 5463 "configure"
5463 #include "confdefs.h"
5464 /* System header to define __stub macros and hopefully few prototypes,
5465 which can conflict with char $ac_func(); below. */
5467 /* Override any gcc2 internal prototype to avoid an error. */
5468 /* We use char because int might match the return type of a gcc2
5469 builtin and then its argument prototype would still apply. */
5474 /* The GNU C library defines this for functions which it implements
5475 to always fail with ENOSYS. Some functions are actually named
5476 something starting with __ and the normal name is an alias. */
5477 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5485 if { (eval echo configure
:5486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5487 eval "ac_cv_func_$ac_func=yes"
5489 echo "configure: failed program was:" >&5
5490 cat conftest.
$ac_ext >&5
5492 eval "ac_cv_func_$ac_func=no"
5497 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5498 echo "$ac_t""yes" 1>&6
5499 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5500 cat >> confdefs.h
<<EOF
5501 #define $ac_tr_func 1
5505 echo "$ac_t""no" 1>&6
5509 for ac_func
in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam setlinebuf
5511 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5512 echo "configure:5513: checking for $ac_func" >&5
5513 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5514 echo $ac_n "(cached) $ac_c" 1>&6
5516 cat > conftest.
$ac_ext <<EOF
5517 #line 5518 "configure"
5518 #include "confdefs.h"
5519 /* System header to define __stub macros and hopefully few prototypes,
5520 which can conflict with char $ac_func(); below. */
5522 /* Override any gcc2 internal prototype to avoid an error. */
5523 /* We use char because int might match the return type of a gcc2
5524 builtin and then its argument prototype would still apply. */
5529 /* The GNU C library defines this for functions which it implements
5530 to always fail with ENOSYS. Some functions are actually named
5531 something starting with __ and the normal name is an alias. */
5532 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5540 if { (eval echo configure
:5541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5542 eval "ac_cv_func_$ac_func=yes"
5544 echo "configure: failed program was:" >&5
5545 cat conftest.
$ac_ext >&5
5547 eval "ac_cv_func_$ac_func=no"
5552 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5553 echo "$ac_t""yes" 1>&6
5554 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5555 cat >> confdefs.h
<<EOF
5556 #define $ac_tr_func 1
5560 echo "$ac_t""no" 1>&6
5564 for ac_func
in srandom random srand rand setenv
usleep strcasecmp fcvt fcvtl
5566 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5567 echo "configure:5568: checking for $ac_func" >&5
5568 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5569 echo $ac_n "(cached) $ac_c" 1>&6
5571 cat > conftest.
$ac_ext <<EOF
5572 #line 5573 "configure"
5573 #include "confdefs.h"
5574 /* System header to define __stub macros and hopefully few prototypes,
5575 which can conflict with char $ac_func(); below. */
5577 /* Override any gcc2 internal prototype to avoid an error. */
5578 /* We use char because int might match the return type of a gcc2
5579 builtin and then its argument prototype would still apply. */
5584 /* The GNU C library defines this for functions which it implements
5585 to always fail with ENOSYS. Some functions are actually named
5586 something starting with __ and the normal name is an alias. */
5587 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5595 if { (eval echo configure
:5596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5597 eval "ac_cv_func_$ac_func=yes"
5599 echo "configure: failed program was:" >&5
5600 cat conftest.
$ac_ext >&5
5602 eval "ac_cv_func_$ac_func=no"
5607 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5608 echo "$ac_t""yes" 1>&6
5609 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5610 cat >> confdefs.h
<<EOF
5611 #define $ac_tr_func 1
5615 echo "$ac_t""no" 1>&6
5620 # syscall() is needed for smbwrapper.
5621 for ac_func
in syscall
5623 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5624 echo "configure:5625: checking for $ac_func" >&5
5625 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5626 echo $ac_n "(cached) $ac_c" 1>&6
5628 cat > conftest.
$ac_ext <<EOF
5629 #line 5630 "configure"
5630 #include "confdefs.h"
5631 /* System header to define __stub macros and hopefully few prototypes,
5632 which can conflict with char $ac_func(); below. */
5634 /* Override any gcc2 internal prototype to avoid an error. */
5635 /* We use char because int might match the return type of a gcc2
5636 builtin and then its argument prototype would still apply. */
5641 /* The GNU C library defines this for functions which it implements
5642 to always fail with ENOSYS. Some functions are actually named
5643 something starting with __ and the normal name is an alias. */
5644 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5652 if { (eval echo configure
:5653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5654 eval "ac_cv_func_$ac_func=yes"
5656 echo "configure: failed program was:" >&5
5657 cat conftest.
$ac_ext >&5
5659 eval "ac_cv_func_$ac_func=no"
5664 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5665 echo "$ac_t""yes" 1>&6
5666 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5667 cat >> confdefs.h
<<EOF
5668 #define $ac_tr_func 1
5672 echo "$ac_t""no" 1>&6
5677 for ac_func
in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
5679 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5680 echo "configure:5681: checking for $ac_func" >&5
5681 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5682 echo $ac_n "(cached) $ac_c" 1>&6
5684 cat > conftest.
$ac_ext <<EOF
5685 #line 5686 "configure"
5686 #include "confdefs.h"
5687 /* System header to define __stub macros and hopefully few prototypes,
5688 which can conflict with char $ac_func(); below. */
5690 /* Override any gcc2 internal prototype to avoid an error. */
5691 /* We use char because int might match the return type of a gcc2
5692 builtin and then its argument prototype would still apply. */
5697 /* The GNU C library defines this for functions which it implements
5698 to always fail with ENOSYS. Some functions are actually named
5699 something starting with __ and the normal name is an alias. */
5700 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5708 if { (eval echo configure
:5709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5710 eval "ac_cv_func_$ac_func=yes"
5712 echo "configure: failed program was:" >&5
5713 cat conftest.
$ac_ext >&5
5715 eval "ac_cv_func_$ac_func=no"
5720 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5721 echo "$ac_t""yes" 1>&6
5722 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5723 cat >> confdefs.h
<<EOF
5724 #define $ac_tr_func 1
5728 echo "$ac_t""no" 1>&6
5732 for ac_func
in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
5734 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5735 echo "configure:5736: checking for $ac_func" >&5
5736 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5737 echo $ac_n "(cached) $ac_c" 1>&6
5739 cat > conftest.
$ac_ext <<EOF
5740 #line 5741 "configure"
5741 #include "confdefs.h"
5742 /* System header to define __stub macros and hopefully few prototypes,
5743 which can conflict with char $ac_func(); below. */
5745 /* Override any gcc2 internal prototype to avoid an error. */
5746 /* We use char because int might match the return type of a gcc2
5747 builtin and then its argument prototype would still apply. */
5752 /* The GNU C library defines this for functions which it implements
5753 to always fail with ENOSYS. Some functions are actually named
5754 something starting with __ and the normal name is an alias. */
5755 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5763 if { (eval echo configure
:5764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5765 eval "ac_cv_func_$ac_func=yes"
5767 echo "configure: failed program was:" >&5
5768 cat conftest.
$ac_ext >&5
5770 eval "ac_cv_func_$ac_func=no"
5775 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5776 echo "$ac_t""yes" 1>&6
5777 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5778 cat >> confdefs.h
<<EOF
5779 #define $ac_tr_func 1
5783 echo "$ac_t""no" 1>&6
5787 for ac_func
in __getcwd _getcwd
5789 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5790 echo "configure:5791: checking for $ac_func" >&5
5791 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5792 echo $ac_n "(cached) $ac_c" 1>&6
5794 cat > conftest.
$ac_ext <<EOF
5795 #line 5796 "configure"
5796 #include "confdefs.h"
5797 /* System header to define __stub macros and hopefully few prototypes,
5798 which can conflict with char $ac_func(); below. */
5800 /* Override any gcc2 internal prototype to avoid an error. */
5801 /* We use char because int might match the return type of a gcc2
5802 builtin and then its argument prototype would still apply. */
5807 /* The GNU C library defines this for functions which it implements
5808 to always fail with ENOSYS. Some functions are actually named
5809 something starting with __ and the normal name is an alias. */
5810 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5818 if { (eval echo configure
:5819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5820 eval "ac_cv_func_$ac_func=yes"
5822 echo "configure: failed program was:" >&5
5823 cat conftest.
$ac_ext >&5
5825 eval "ac_cv_func_$ac_func=no"
5830 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5831 echo "$ac_t""yes" 1>&6
5832 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5833 cat >> confdefs.h
<<EOF
5834 #define $ac_tr_func 1
5838 echo "$ac_t""no" 1>&6
5842 for ac_func
in __xstat __fxstat __lxstat
5844 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5845 echo "configure:5846: checking for $ac_func" >&5
5846 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5847 echo $ac_n "(cached) $ac_c" 1>&6
5849 cat > conftest.
$ac_ext <<EOF
5850 #line 5851 "configure"
5851 #include "confdefs.h"
5852 /* System header to define __stub macros and hopefully few prototypes,
5853 which can conflict with char $ac_func(); below. */
5855 /* Override any gcc2 internal prototype to avoid an error. */
5856 /* We use char because int might match the return type of a gcc2
5857 builtin and then its argument prototype would still apply. */
5862 /* The GNU C library defines this for functions which it implements
5863 to always fail with ENOSYS. Some functions are actually named
5864 something starting with __ and the normal name is an alias. */
5865 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5873 if { (eval echo configure
:5874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5875 eval "ac_cv_func_$ac_func=yes"
5877 echo "configure: failed program was:" >&5
5878 cat conftest.
$ac_ext >&5
5880 eval "ac_cv_func_$ac_func=no"
5885 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5886 echo "$ac_t""yes" 1>&6
5887 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5888 cat >> confdefs.h
<<EOF
5889 #define $ac_tr_func 1
5893 echo "$ac_t""no" 1>&6
5897 for ac_func
in _stat _lstat _fstat __stat __lstat __fstat
5899 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5900 echo "configure:5901: checking for $ac_func" >&5
5901 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5902 echo $ac_n "(cached) $ac_c" 1>&6
5904 cat > conftest.
$ac_ext <<EOF
5905 #line 5906 "configure"
5906 #include "confdefs.h"
5907 /* System header to define __stub macros and hopefully few prototypes,
5908 which can conflict with char $ac_func(); below. */
5910 /* Override any gcc2 internal prototype to avoid an error. */
5911 /* We use char because int might match the return type of a gcc2
5912 builtin and then its argument prototype would still apply. */
5917 /* The GNU C library defines this for functions which it implements
5918 to always fail with ENOSYS. Some functions are actually named
5919 something starting with __ and the normal name is an alias. */
5920 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5928 if { (eval echo configure
:5929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5930 eval "ac_cv_func_$ac_func=yes"
5932 echo "configure: failed program was:" >&5
5933 cat conftest.
$ac_ext >&5
5935 eval "ac_cv_func_$ac_func=no"
5940 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5941 echo "$ac_t""yes" 1>&6
5942 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5943 cat >> confdefs.h
<<EOF
5944 #define $ac_tr_func 1
5948 echo "$ac_t""no" 1>&6
5952 for ac_func
in _acl __acl _facl __facl _open __open _chdir __chdir
5954 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5955 echo "configure:5956: checking for $ac_func" >&5
5956 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5957 echo $ac_n "(cached) $ac_c" 1>&6
5959 cat > conftest.
$ac_ext <<EOF
5960 #line 5961 "configure"
5961 #include "confdefs.h"
5962 /* System header to define __stub macros and hopefully few prototypes,
5963 which can conflict with char $ac_func(); below. */
5965 /* Override any gcc2 internal prototype to avoid an error. */
5966 /* We use char because int might match the return type of a gcc2
5967 builtin and then its argument prototype would still apply. */
5972 /* The GNU C library defines this for functions which it implements
5973 to always fail with ENOSYS. Some functions are actually named
5974 something starting with __ and the normal name is an alias. */
5975 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5983 if { (eval echo configure
:5984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5985 eval "ac_cv_func_$ac_func=yes"
5987 echo "configure: failed program was:" >&5
5988 cat conftest.
$ac_ext >&5
5990 eval "ac_cv_func_$ac_func=no"
5995 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5996 echo "$ac_t""yes" 1>&6
5997 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5998 cat >> confdefs.h
<<EOF
5999 #define $ac_tr_func 1
6003 echo "$ac_t""no" 1>&6
6007 for ac_func
in _close __close _fchdir __fchdir _fcntl __fcntl
6009 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6010 echo "configure:6011: checking for $ac_func" >&5
6011 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6012 echo $ac_n "(cached) $ac_c" 1>&6
6014 cat > conftest.
$ac_ext <<EOF
6015 #line 6016 "configure"
6016 #include "confdefs.h"
6017 /* System header to define __stub macros and hopefully few prototypes,
6018 which can conflict with char $ac_func(); below. */
6020 /* Override any gcc2 internal prototype to avoid an error. */
6021 /* We use char because int might match the return type of a gcc2
6022 builtin and then its argument prototype would still apply. */
6027 /* The GNU C library defines this for functions which it implements
6028 to always fail with ENOSYS. Some functions are actually named
6029 something starting with __ and the normal name is an alias. */
6030 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6038 if { (eval echo configure
:6039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6040 eval "ac_cv_func_$ac_func=yes"
6042 echo "configure: failed program was:" >&5
6043 cat conftest.
$ac_ext >&5
6045 eval "ac_cv_func_$ac_func=no"
6050 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6051 echo "$ac_t""yes" 1>&6
6052 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6053 cat >> confdefs.h
<<EOF
6054 #define $ac_tr_func 1
6058 echo "$ac_t""no" 1>&6
6062 for ac_func
in getdents _getdents __getdents _lseek __lseek _read __read
6064 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6065 echo "configure:6066: checking for $ac_func" >&5
6066 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6067 echo $ac_n "(cached) $ac_c" 1>&6
6069 cat > conftest.
$ac_ext <<EOF
6070 #line 6071 "configure"
6071 #include "confdefs.h"
6072 /* System header to define __stub macros and hopefully few prototypes,
6073 which can conflict with char $ac_func(); below. */
6075 /* Override any gcc2 internal prototype to avoid an error. */
6076 /* We use char because int might match the return type of a gcc2
6077 builtin and then its argument prototype would still apply. */
6082 /* The GNU C library defines this for functions which it implements
6083 to always fail with ENOSYS. Some functions are actually named
6084 something starting with __ and the normal name is an alias. */
6085 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6093 if { (eval echo configure
:6094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6095 eval "ac_cv_func_$ac_func=yes"
6097 echo "configure: failed program was:" >&5
6098 cat conftest.
$ac_ext >&5
6100 eval "ac_cv_func_$ac_func=no"
6105 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6106 echo "$ac_t""yes" 1>&6
6107 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6108 cat >> confdefs.h
<<EOF
6109 #define $ac_tr_func 1
6113 echo "$ac_t""no" 1>&6
6117 for ac_func
in _write __write _fork __fork
6119 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6120 echo "configure:6121: checking for $ac_func" >&5
6121 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6122 echo $ac_n "(cached) $ac_c" 1>&6
6124 cat > conftest.
$ac_ext <<EOF
6125 #line 6126 "configure"
6126 #include "confdefs.h"
6127 /* System header to define __stub macros and hopefully few prototypes,
6128 which can conflict with char $ac_func(); below. */
6130 /* Override any gcc2 internal prototype to avoid an error. */
6131 /* We use char because int might match the return type of a gcc2
6132 builtin and then its argument prototype would still apply. */
6137 /* The GNU C library defines this for functions which it implements
6138 to always fail with ENOSYS. Some functions are actually named
6139 something starting with __ and the normal name is an alias. */
6140 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6148 if { (eval echo configure
:6149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6150 eval "ac_cv_func_$ac_func=yes"
6152 echo "configure: failed program was:" >&5
6153 cat conftest.
$ac_ext >&5
6155 eval "ac_cv_func_$ac_func=no"
6160 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6161 echo "$ac_t""yes" 1>&6
6162 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6163 cat >> confdefs.h
<<EOF
6164 #define $ac_tr_func 1
6168 echo "$ac_t""no" 1>&6
6172 for ac_func
in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
6174 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6175 echo "configure:6176: checking for $ac_func" >&5
6176 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6177 echo $ac_n "(cached) $ac_c" 1>&6
6179 cat > conftest.
$ac_ext <<EOF
6180 #line 6181 "configure"
6181 #include "confdefs.h"
6182 /* System header to define __stub macros and hopefully few prototypes,
6183 which can conflict with char $ac_func(); below. */
6185 /* Override any gcc2 internal prototype to avoid an error. */
6186 /* We use char because int might match the return type of a gcc2
6187 builtin and then its argument prototype would still apply. */
6192 /* The GNU C library defines this for functions which it implements
6193 to always fail with ENOSYS. Some functions are actually named
6194 something starting with __ and the normal name is an alias. */
6195 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6203 if { (eval echo configure
:6204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6205 eval "ac_cv_func_$ac_func=yes"
6207 echo "configure: failed program was:" >&5
6208 cat conftest.
$ac_ext >&5
6210 eval "ac_cv_func_$ac_func=no"
6215 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6216 echo "$ac_t""yes" 1>&6
6217 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6218 cat >> confdefs.h
<<EOF
6219 #define $ac_tr_func 1
6223 echo "$ac_t""no" 1>&6
6227 for ac_func
in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
6229 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6230 echo "configure:6231: checking for $ac_func" >&5
6231 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6232 echo $ac_n "(cached) $ac_c" 1>&6
6234 cat > conftest.
$ac_ext <<EOF
6235 #line 6236 "configure"
6236 #include "confdefs.h"
6237 /* System header to define __stub macros and hopefully few prototypes,
6238 which can conflict with char $ac_func(); below. */
6240 /* Override any gcc2 internal prototype to avoid an error. */
6241 /* We use char because int might match the return type of a gcc2
6242 builtin and then its argument prototype would still apply. */
6247 /* The GNU C library defines this for functions which it implements
6248 to always fail with ENOSYS. Some functions are actually named
6249 something starting with __ and the normal name is an alias. */
6250 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6258 if { (eval echo configure
:6259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6260 eval "ac_cv_func_$ac_func=yes"
6262 echo "configure: failed program was:" >&5
6263 cat conftest.
$ac_ext >&5
6265 eval "ac_cv_func_$ac_func=no"
6270 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6271 echo "$ac_t""yes" 1>&6
6272 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6273 cat >> confdefs.h
<<EOF
6274 #define $ac_tr_func 1
6278 echo "$ac_t""no" 1>&6
6282 for ac_func
in pread _pread __pread pread64 _pread64 __pread64
6284 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6285 echo "configure:6286: checking for $ac_func" >&5
6286 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6287 echo $ac_n "(cached) $ac_c" 1>&6
6289 cat > conftest.
$ac_ext <<EOF
6290 #line 6291 "configure"
6291 #include "confdefs.h"
6292 /* System header to define __stub macros and hopefully few prototypes,
6293 which can conflict with char $ac_func(); below. */
6295 /* Override any gcc2 internal prototype to avoid an error. */
6296 /* We use char because int might match the return type of a gcc2
6297 builtin and then its argument prototype would still apply. */
6302 /* The GNU C library defines this for functions which it implements
6303 to always fail with ENOSYS. Some functions are actually named
6304 something starting with __ and the normal name is an alias. */
6305 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6313 if { (eval echo configure
:6314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6315 eval "ac_cv_func_$ac_func=yes"
6317 echo "configure: failed program was:" >&5
6318 cat conftest.
$ac_ext >&5
6320 eval "ac_cv_func_$ac_func=no"
6325 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6326 echo "$ac_t""yes" 1>&6
6327 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6328 cat >> confdefs.h
<<EOF
6329 #define $ac_tr_func 1
6333 echo "$ac_t""no" 1>&6
6337 for ac_func
in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
6339 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6340 echo "configure:6341: checking for $ac_func" >&5
6341 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6342 echo $ac_n "(cached) $ac_c" 1>&6
6344 cat > conftest.
$ac_ext <<EOF
6345 #line 6346 "configure"
6346 #include "confdefs.h"
6347 /* System header to define __stub macros and hopefully few prototypes,
6348 which can conflict with char $ac_func(); below. */
6350 /* Override any gcc2 internal prototype to avoid an error. */
6351 /* We use char because int might match the return type of a gcc2
6352 builtin and then its argument prototype would still apply. */
6357 /* The GNU C library defines this for functions which it implements
6358 to always fail with ENOSYS. Some functions are actually named
6359 something starting with __ and the normal name is an alias. */
6360 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6368 if { (eval echo configure
:6369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6370 eval "ac_cv_func_$ac_func=yes"
6372 echo "configure: failed program was:" >&5
6373 cat conftest.
$ac_ext >&5
6375 eval "ac_cv_func_$ac_func=no"
6380 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6381 echo "$ac_t""yes" 1>&6
6382 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6383 cat >> confdefs.h
<<EOF
6384 #define $ac_tr_func 1
6388 echo "$ac_t""no" 1>&6
6392 for ac_func
in open64 _open64 __open64 creat64
6394 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6395 echo "configure:6396: checking for $ac_func" >&5
6396 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6397 echo $ac_n "(cached) $ac_c" 1>&6
6399 cat > conftest.
$ac_ext <<EOF
6400 #line 6401 "configure"
6401 #include "confdefs.h"
6402 /* System header to define __stub macros and hopefully few prototypes,
6403 which can conflict with char $ac_func(); below. */
6405 /* Override any gcc2 internal prototype to avoid an error. */
6406 /* We use char because int might match the return type of a gcc2
6407 builtin and then its argument prototype would still apply. */
6412 /* The GNU C library defines this for functions which it implements
6413 to always fail with ENOSYS. Some functions are actually named
6414 something starting with __ and the normal name is an alias. */
6415 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6423 if { (eval echo configure
:6424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6425 eval "ac_cv_func_$ac_func=yes"
6427 echo "configure: failed program was:" >&5
6428 cat conftest.
$ac_ext >&5
6430 eval "ac_cv_func_$ac_func=no"
6435 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6436 echo "$ac_t""yes" 1>&6
6437 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6438 cat >> confdefs.h
<<EOF
6439 #define $ac_tr_func 1
6443 echo "$ac_t""no" 1>&6
6449 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
6452 if test x
$ac_cv_func_stat64 = xno
; then
6453 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
6454 echo "configure:6455: checking for stat64 in <sys/stat.h>" >&5
6455 cat > conftest.
$ac_ext <<EOF
6456 #line 6457 "configure"
6457 #include "confdefs.h"
6459 #if defined(HAVE_UNISTD_H)
6462 #include <sys/stat.h>
6465 struct stat64 st64; exit(stat64(".",&st64));
6468 if { (eval echo configure
:6469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6470 ac_cv_func_stat64
=yes
6472 echo "configure: failed program was:" >&5
6473 cat conftest.
$ac_ext >&5
6476 echo "$ac_t""$ac_cv_func_stat64" 1>&6
6477 if test x
$ac_cv_func_stat64 = xyes
; then
6478 cat >> confdefs.h
<<\EOF
6479 #define HAVE_STAT64 1
6485 if test x
$ac_cv_func_lstat64 = xno
; then
6486 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
6487 echo "configure:6488: checking for lstat64 in <sys/stat.h>" >&5
6488 cat > conftest.
$ac_ext <<EOF
6489 #line 6490 "configure"
6490 #include "confdefs.h"
6492 #if defined(HAVE_UNISTD_H)
6495 #include <sys/stat.h>
6498 struct stat64 st64; exit(lstat64(".",&st64));
6501 if { (eval echo configure
:6502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6503 ac_cv_func_lstat64
=yes
6505 echo "configure: failed program was:" >&5
6506 cat conftest.
$ac_ext >&5
6509 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
6510 if test x
$ac_cv_func_lstat64 = xyes
; then
6511 cat >> confdefs.h
<<\EOF
6512 #define HAVE_LSTAT64 1
6518 if test x
$ac_cv_func_fstat64 = xno
; then
6519 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
6520 echo "configure:6521: checking for fstat64 in <sys/stat.h>" >&5
6521 cat > conftest.
$ac_ext <<EOF
6522 #line 6523 "configure"
6523 #include "confdefs.h"
6525 #if defined(HAVE_UNISTD_H)
6528 #include <sys/stat.h>
6531 struct stat64 st64; exit(fstat64(0,&st64));
6534 if { (eval echo configure
:6535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6536 ac_cv_func_fstat64
=yes
6538 echo "configure: failed program was:" >&5
6539 cat conftest.
$ac_ext >&5
6542 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
6543 if test x
$ac_cv_func_fstat64 = xyes
; then
6544 cat >> confdefs.h
<<\EOF
6545 #define HAVE_FSTAT64 1
6552 # If no strcasecmp, check for it in some known places
6553 # It is in -lresolv on ReliantUNIX and UnixWare
6554 # -lresolve *must* follow -lnsl for name resolution to work properly
6557 if test x
$ac_cv_func_strcasecmp = xno
; then
6558 echo $ac_n "checking for strcasecmp in -lresolv""... $ac_c" 1>&6
6559 echo "configure:6560: checking for strcasecmp in -lresolv" >&5
6560 ac_lib_var
=`echo resolv'_'strcasecmp | sed 'y%./+-%__p_%'`
6561 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6562 echo $ac_n "(cached) $ac_c" 1>&6
6564 ac_save_LIBS
="$LIBS"
6565 LIBS
="-lresolv $LIBS"
6566 cat > conftest.
$ac_ext <<EOF
6567 #line 6568 "configure"
6568 #include "confdefs.h"
6569 /* Override any gcc2 internal prototype to avoid an error. */
6570 /* We use char because int might match the return type of a gcc2
6571 builtin and then its argument prototype would still apply. */
6578 if { (eval echo configure
:6579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6580 eval "ac_cv_lib_$ac_lib_var=yes"
6582 echo "configure: failed program was:" >&5
6583 cat conftest.
$ac_ext >&5
6585 eval "ac_cv_lib_$ac_lib_var=no"
6588 LIBS
="$ac_save_LIBS"
6591 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6592 echo "$ac_t""yes" 1>&6
6593 LIBS
="$LIBS -lresolv"
6594 cat >> confdefs.h
<<\EOF
6595 #define HAVE_STRCASECMP 1
6599 echo "$ac_t""no" 1>&6
6605 # Check for the functions putprpwnam, set_auth_parameters,
6606 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
6607 # Needed for OSF1 and HPUX.
6611 *-lsecurity*) for ac_func
in putprpwnam
6613 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6614 echo "configure:6615: checking for $ac_func" >&5
6615 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6616 echo $ac_n "(cached) $ac_c" 1>&6
6618 cat > conftest.
$ac_ext <<EOF
6619 #line 6620 "configure"
6620 #include "confdefs.h"
6621 /* System header to define __stub macros and hopefully few prototypes,
6622 which can conflict with char $ac_func(); below. */
6624 /* Override any gcc2 internal prototype to avoid an error. */
6625 /* We use char because int might match the return type of a gcc2
6626 builtin and then its argument prototype would still apply. */
6631 /* The GNU C library defines this for functions which it implements
6632 to always fail with ENOSYS. Some functions are actually named
6633 something starting with __ and the normal name is an alias. */
6634 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6642 if { (eval echo configure
:6643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6644 eval "ac_cv_func_$ac_func=yes"
6646 echo "configure: failed program was:" >&5
6647 cat conftest.
$ac_ext >&5
6649 eval "ac_cv_func_$ac_func=no"
6654 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6655 echo "$ac_t""yes" 1>&6
6656 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6657 cat >> confdefs.h
<<EOF
6658 #define $ac_tr_func 1
6662 echo "$ac_t""no" 1>&6
6666 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
6667 echo "configure:6668: checking for putprpwnam in -lsecurity" >&5
6668 ac_lib_var
=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
6669 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6670 echo $ac_n "(cached) $ac_c" 1>&6
6672 ac_save_LIBS
="$LIBS"
6673 LIBS
="-lsecurity $LIBS"
6674 cat > conftest.
$ac_ext <<EOF
6675 #line 6676 "configure"
6676 #include "confdefs.h"
6677 /* Override any gcc2 internal prototype to avoid an error. */
6678 /* We use char because int might match the return type of a gcc2
6679 builtin and then its argument prototype would still apply. */
6686 if { (eval echo configure
:6687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6688 eval "ac_cv_lib_$ac_lib_var=yes"
6690 echo "configure: failed program was:" >&5
6691 cat conftest.
$ac_ext >&5
6693 eval "ac_cv_lib_$ac_lib_var=no"
6696 LIBS
="$ac_save_LIBS"
6699 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6700 echo "$ac_t""yes" 1>&6
6701 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6702 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6703 cat >> confdefs.h
<<EOF
6704 #define $ac_tr_lib 1
6707 LIBS
="-lsecurity $LIBS"
6710 echo "$ac_t""no" 1>&6
6713 for ac_func
in putprpwnam
6715 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6716 echo "configure:6717: checking for $ac_func" >&5
6717 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6718 echo $ac_n "(cached) $ac_c" 1>&6
6720 cat > conftest.
$ac_ext <<EOF
6721 #line 6722 "configure"
6722 #include "confdefs.h"
6723 /* System header to define __stub macros and hopefully few prototypes,
6724 which can conflict with char $ac_func(); below. */
6726 /* Override any gcc2 internal prototype to avoid an error. */
6727 /* We use char because int might match the return type of a gcc2
6728 builtin and then its argument prototype would still apply. */
6733 /* The GNU C library defines this for functions which it implements
6734 to always fail with ENOSYS. Some functions are actually named
6735 something starting with __ and the normal name is an alias. */
6736 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6744 if { (eval echo configure
:6745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6746 eval "ac_cv_func_$ac_func=yes"
6748 echo "configure: failed program was:" >&5
6749 cat conftest.
$ac_ext >&5
6751 eval "ac_cv_func_$ac_func=no"
6756 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6757 echo "$ac_t""yes" 1>&6
6758 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6759 cat >> confdefs.h
<<EOF
6760 #define $ac_tr_func 1
6764 echo "$ac_t""no" 1>&6
6772 *-lsec*) for ac_func
in putprpwnam
6774 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6775 echo "configure:6776: checking for $ac_func" >&5
6776 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6777 echo $ac_n "(cached) $ac_c" 1>&6
6779 cat > conftest.
$ac_ext <<EOF
6780 #line 6781 "configure"
6781 #include "confdefs.h"
6782 /* System header to define __stub macros and hopefully few prototypes,
6783 which can conflict with char $ac_func(); below. */
6785 /* Override any gcc2 internal prototype to avoid an error. */
6786 /* We use char because int might match the return type of a gcc2
6787 builtin and then its argument prototype would still apply. */
6792 /* The GNU C library defines this for functions which it implements
6793 to always fail with ENOSYS. Some functions are actually named
6794 something starting with __ and the normal name is an alias. */
6795 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6803 if { (eval echo configure
:6804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6805 eval "ac_cv_func_$ac_func=yes"
6807 echo "configure: failed program was:" >&5
6808 cat conftest.
$ac_ext >&5
6810 eval "ac_cv_func_$ac_func=no"
6815 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6816 echo "$ac_t""yes" 1>&6
6817 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6818 cat >> confdefs.h
<<EOF
6819 #define $ac_tr_func 1
6823 echo "$ac_t""no" 1>&6
6827 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
6828 echo "configure:6829: checking for putprpwnam in -lsec" >&5
6829 ac_lib_var
=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
6830 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6831 echo $ac_n "(cached) $ac_c" 1>&6
6833 ac_save_LIBS
="$LIBS"
6835 cat > conftest.
$ac_ext <<EOF
6836 #line 6837 "configure"
6837 #include "confdefs.h"
6838 /* Override any gcc2 internal prototype to avoid an error. */
6839 /* We use char because int might match the return type of a gcc2
6840 builtin and then its argument prototype would still apply. */
6847 if { (eval echo configure
:6848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6849 eval "ac_cv_lib_$ac_lib_var=yes"
6851 echo "configure: failed program was:" >&5
6852 cat conftest.
$ac_ext >&5
6854 eval "ac_cv_lib_$ac_lib_var=no"
6857 LIBS
="$ac_save_LIBS"
6860 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6861 echo "$ac_t""yes" 1>&6
6862 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6863 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6864 cat >> confdefs.h
<<EOF
6865 #define $ac_tr_lib 1
6871 echo "$ac_t""no" 1>&6
6874 for ac_func
in putprpwnam
6876 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6877 echo "configure:6878: checking for $ac_func" >&5
6878 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6879 echo $ac_n "(cached) $ac_c" 1>&6
6881 cat > conftest.
$ac_ext <<EOF
6882 #line 6883 "configure"
6883 #include "confdefs.h"
6884 /* System header to define __stub macros and hopefully few prototypes,
6885 which can conflict with char $ac_func(); below. */
6887 /* Override any gcc2 internal prototype to avoid an error. */
6888 /* We use char because int might match the return type of a gcc2
6889 builtin and then its argument prototype would still apply. */
6894 /* The GNU C library defines this for functions which it implements
6895 to always fail with ENOSYS. Some functions are actually named
6896 something starting with __ and the normal name is an alias. */
6897 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6905 if { (eval echo configure
:6906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6907 eval "ac_cv_func_$ac_func=yes"
6909 echo "configure: failed program was:" >&5
6910 cat conftest.
$ac_ext >&5
6912 eval "ac_cv_func_$ac_func=no"
6917 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6918 echo "$ac_t""yes" 1>&6
6919 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6920 cat >> confdefs.h
<<EOF
6921 #define $ac_tr_func 1
6925 echo "$ac_t""no" 1>&6
6934 *-lsecurity*) for ac_func
in set_auth_parameters
6936 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6937 echo "configure:6938: checking for $ac_func" >&5
6938 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6939 echo $ac_n "(cached) $ac_c" 1>&6
6941 cat > conftest.
$ac_ext <<EOF
6942 #line 6943 "configure"
6943 #include "confdefs.h"
6944 /* System header to define __stub macros and hopefully few prototypes,
6945 which can conflict with char $ac_func(); below. */
6947 /* Override any gcc2 internal prototype to avoid an error. */
6948 /* We use char because int might match the return type of a gcc2
6949 builtin and then its argument prototype would still apply. */
6954 /* The GNU C library defines this for functions which it implements
6955 to always fail with ENOSYS. Some functions are actually named
6956 something starting with __ and the normal name is an alias. */
6957 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6965 if { (eval echo configure
:6966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6967 eval "ac_cv_func_$ac_func=yes"
6969 echo "configure: failed program was:" >&5
6970 cat conftest.
$ac_ext >&5
6972 eval "ac_cv_func_$ac_func=no"
6977 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6978 echo "$ac_t""yes" 1>&6
6979 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6980 cat >> confdefs.h
<<EOF
6981 #define $ac_tr_func 1
6985 echo "$ac_t""no" 1>&6
6989 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
6990 echo "configure:6991: checking for set_auth_parameters in -lsecurity" >&5
6991 ac_lib_var
=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
6992 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6993 echo $ac_n "(cached) $ac_c" 1>&6
6995 ac_save_LIBS
="$LIBS"
6996 LIBS
="-lsecurity $LIBS"
6997 cat > conftest.
$ac_ext <<EOF
6998 #line 6999 "configure"
6999 #include "confdefs.h"
7000 /* Override any gcc2 internal prototype to avoid an error. */
7001 /* We use char because int might match the return type of a gcc2
7002 builtin and then its argument prototype would still apply. */
7003 char set_auth_parameters();
7006 set_auth_parameters()
7009 if { (eval echo configure
:7010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7011 eval "ac_cv_lib_$ac_lib_var=yes"
7013 echo "configure: failed program was:" >&5
7014 cat conftest.
$ac_ext >&5
7016 eval "ac_cv_lib_$ac_lib_var=no"
7019 LIBS
="$ac_save_LIBS"
7022 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7023 echo "$ac_t""yes" 1>&6
7024 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7025 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7026 cat >> confdefs.h
<<EOF
7027 #define $ac_tr_lib 1
7030 LIBS
="-lsecurity $LIBS"
7033 echo "$ac_t""no" 1>&6
7036 for ac_func
in set_auth_parameters
7038 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7039 echo "configure:7040: checking for $ac_func" >&5
7040 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7041 echo $ac_n "(cached) $ac_c" 1>&6
7043 cat > conftest.
$ac_ext <<EOF
7044 #line 7045 "configure"
7045 #include "confdefs.h"
7046 /* System header to define __stub macros and hopefully few prototypes,
7047 which can conflict with char $ac_func(); below. */
7049 /* Override any gcc2 internal prototype to avoid an error. */
7050 /* We use char because int might match the return type of a gcc2
7051 builtin and then its argument prototype would still apply. */
7056 /* The GNU C library defines this for functions which it implements
7057 to always fail with ENOSYS. Some functions are actually named
7058 something starting with __ and the normal name is an alias. */
7059 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7067 if { (eval echo configure
:7068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7069 eval "ac_cv_func_$ac_func=yes"
7071 echo "configure: failed program was:" >&5
7072 cat conftest.
$ac_ext >&5
7074 eval "ac_cv_func_$ac_func=no"
7079 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7080 echo "$ac_t""yes" 1>&6
7081 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7082 cat >> confdefs.h
<<EOF
7083 #define $ac_tr_func 1
7087 echo "$ac_t""no" 1>&6
7095 *-lsec*) for ac_func
in set_auth_parameters
7097 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7098 echo "configure:7099: checking for $ac_func" >&5
7099 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7100 echo $ac_n "(cached) $ac_c" 1>&6
7102 cat > conftest.
$ac_ext <<EOF
7103 #line 7104 "configure"
7104 #include "confdefs.h"
7105 /* System header to define __stub macros and hopefully few prototypes,
7106 which can conflict with char $ac_func(); below. */
7108 /* Override any gcc2 internal prototype to avoid an error. */
7109 /* We use char because int might match the return type of a gcc2
7110 builtin and then its argument prototype would still apply. */
7115 /* The GNU C library defines this for functions which it implements
7116 to always fail with ENOSYS. Some functions are actually named
7117 something starting with __ and the normal name is an alias. */
7118 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7126 if { (eval echo configure
:7127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7128 eval "ac_cv_func_$ac_func=yes"
7130 echo "configure: failed program was:" >&5
7131 cat conftest.
$ac_ext >&5
7133 eval "ac_cv_func_$ac_func=no"
7138 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7139 echo "$ac_t""yes" 1>&6
7140 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7141 cat >> confdefs.h
<<EOF
7142 #define $ac_tr_func 1
7146 echo "$ac_t""no" 1>&6
7150 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
7151 echo "configure:7152: checking for set_auth_parameters in -lsec" >&5
7152 ac_lib_var
=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7153 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7154 echo $ac_n "(cached) $ac_c" 1>&6
7156 ac_save_LIBS
="$LIBS"
7158 cat > conftest.
$ac_ext <<EOF
7159 #line 7160 "configure"
7160 #include "confdefs.h"
7161 /* Override any gcc2 internal prototype to avoid an error. */
7162 /* We use char because int might match the return type of a gcc2
7163 builtin and then its argument prototype would still apply. */
7164 char set_auth_parameters();
7167 set_auth_parameters()
7170 if { (eval echo configure
:7171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7172 eval "ac_cv_lib_$ac_lib_var=yes"
7174 echo "configure: failed program was:" >&5
7175 cat conftest.
$ac_ext >&5
7177 eval "ac_cv_lib_$ac_lib_var=no"
7180 LIBS
="$ac_save_LIBS"
7183 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7184 echo "$ac_t""yes" 1>&6
7185 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7186 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7187 cat >> confdefs.h
<<EOF
7188 #define $ac_tr_lib 1
7194 echo "$ac_t""no" 1>&6
7197 for ac_func
in set_auth_parameters
7199 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7200 echo "configure:7201: checking for $ac_func" >&5
7201 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7202 echo $ac_n "(cached) $ac_c" 1>&6
7204 cat > conftest.
$ac_ext <<EOF
7205 #line 7206 "configure"
7206 #include "confdefs.h"
7207 /* System header to define __stub macros and hopefully few prototypes,
7208 which can conflict with char $ac_func(); below. */
7210 /* Override any gcc2 internal prototype to avoid an error. */
7211 /* We use char because int might match the return type of a gcc2
7212 builtin and then its argument prototype would still apply. */
7217 /* The GNU C library defines this for functions which it implements
7218 to always fail with ENOSYS. Some functions are actually named
7219 something starting with __ and the normal name is an alias. */
7220 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7228 if { (eval echo configure
:7229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7230 eval "ac_cv_func_$ac_func=yes"
7232 echo "configure: failed program was:" >&5
7233 cat conftest.
$ac_ext >&5
7235 eval "ac_cv_func_$ac_func=no"
7240 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7241 echo "$ac_t""yes" 1>&6
7242 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7243 cat >> confdefs.h
<<EOF
7244 #define $ac_tr_func 1
7248 echo "$ac_t""no" 1>&6
7256 # UnixWare 7.x has its getspnam in -lgen
7258 *-lgen*) for ac_func
in getspnam
7260 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7261 echo "configure:7262: checking for $ac_func" >&5
7262 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7263 echo $ac_n "(cached) $ac_c" 1>&6
7265 cat > conftest.
$ac_ext <<EOF
7266 #line 7267 "configure"
7267 #include "confdefs.h"
7268 /* System header to define __stub macros and hopefully few prototypes,
7269 which can conflict with char $ac_func(); below. */
7271 /* Override any gcc2 internal prototype to avoid an error. */
7272 /* We use char because int might match the return type of a gcc2
7273 builtin and then its argument prototype would still apply. */
7278 /* The GNU C library defines this for functions which it implements
7279 to always fail with ENOSYS. Some functions are actually named
7280 something starting with __ and the normal name is an alias. */
7281 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7289 if { (eval echo configure
:7290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7291 eval "ac_cv_func_$ac_func=yes"
7293 echo "configure: failed program was:" >&5
7294 cat conftest.
$ac_ext >&5
7296 eval "ac_cv_func_$ac_func=no"
7301 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7302 echo "$ac_t""yes" 1>&6
7303 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7304 cat >> confdefs.h
<<EOF
7305 #define $ac_tr_func 1
7309 echo "$ac_t""no" 1>&6
7313 *) echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
7314 echo "configure:7315: checking for getspnam in -lgen" >&5
7315 ac_lib_var
=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
7316 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7317 echo $ac_n "(cached) $ac_c" 1>&6
7319 ac_save_LIBS
="$LIBS"
7321 cat > conftest.
$ac_ext <<EOF
7322 #line 7323 "configure"
7323 #include "confdefs.h"
7324 /* Override any gcc2 internal prototype to avoid an error. */
7325 /* We use char because int might match the return type of a gcc2
7326 builtin and then its argument prototype would still apply. */
7333 if { (eval echo configure
:7334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7335 eval "ac_cv_lib_$ac_lib_var=yes"
7337 echo "configure: failed program was:" >&5
7338 cat conftest.
$ac_ext >&5
7340 eval "ac_cv_lib_$ac_lib_var=no"
7343 LIBS
="$ac_save_LIBS"
7346 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7347 echo "$ac_t""yes" 1>&6
7348 ac_tr_lib
=HAVE_LIB
`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7349 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7350 cat >> confdefs.h
<<EOF
7351 #define $ac_tr_lib 1
7357 echo "$ac_t""no" 1>&6
7360 for ac_func
in getspnam
7362 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7363 echo "configure:7364: checking for $ac_func" >&5
7364 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7365 echo $ac_n "(cached) $ac_c" 1>&6
7367 cat > conftest.
$ac_ext <<EOF
7368 #line 7369 "configure"
7369 #include "confdefs.h"
7370 /* System header to define __stub macros and hopefully few prototypes,
7371 which can conflict with char $ac_func(); below. */
7373 /* Override any gcc2 internal prototype to avoid an error. */
7374 /* We use char because int might match the return type of a gcc2
7375 builtin and then its argument prototype would still apply. */
7380 /* The GNU C library defines this for functions which it implements
7381 to always fail with ENOSYS. Some functions are actually named
7382 something starting with __ and the normal name is an alias. */
7383 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7391 if { (eval echo configure
:7392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7393 eval "ac_cv_func_$ac_func=yes"
7395 echo "configure: failed program was:" >&5
7396 cat conftest.
$ac_ext >&5
7398 eval "ac_cv_func_$ac_func=no"
7403 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7404 echo "$ac_t""yes" 1>&6
7405 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7406 cat >> confdefs.h
<<EOF
7407 #define $ac_tr_func 1
7411 echo "$ac_t""no" 1>&6
7420 *-lsecurity*) for ac_func
in getspnam
7422 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7423 echo "configure:7424: checking for $ac_func" >&5
7424 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7425 echo $ac_n "(cached) $ac_c" 1>&6
7427 cat > conftest.
$ac_ext <<EOF
7428 #line 7429 "configure"
7429 #include "confdefs.h"
7430 /* System header to define __stub macros and hopefully few prototypes,
7431 which can conflict with char $ac_func(); below. */
7433 /* Override any gcc2 internal prototype to avoid an error. */
7434 /* We use char because int might match the return type of a gcc2
7435 builtin and then its argument prototype would still apply. */
7440 /* The GNU C library defines this for functions which it implements
7441 to always fail with ENOSYS. Some functions are actually named
7442 something starting with __ and the normal name is an alias. */
7443 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7451 if { (eval echo configure
:7452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7453 eval "ac_cv_func_$ac_func=yes"
7455 echo "configure: failed program was:" >&5
7456 cat conftest.
$ac_ext >&5
7458 eval "ac_cv_func_$ac_func=no"
7463 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7464 echo "$ac_t""yes" 1>&6
7465 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7466 cat >> confdefs.h
<<EOF
7467 #define $ac_tr_func 1
7471 echo "$ac_t""no" 1>&6
7475 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
7476 echo "configure:7477: checking for getspnam in -lsecurity" >&5
7477 ac_lib_var
=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
7478 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7479 echo $ac_n "(cached) $ac_c" 1>&6
7481 ac_save_LIBS
="$LIBS"
7482 LIBS
="-lsecurity $LIBS"
7483 cat > conftest.
$ac_ext <<EOF
7484 #line 7485 "configure"
7485 #include "confdefs.h"
7486 /* Override any gcc2 internal prototype to avoid an error. */
7487 /* We use char because int might match the return type of a gcc2
7488 builtin and then its argument prototype would still apply. */
7495 if { (eval echo configure
:7496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7497 eval "ac_cv_lib_$ac_lib_var=yes"
7499 echo "configure: failed program was:" >&5
7500 cat conftest.
$ac_ext >&5
7502 eval "ac_cv_lib_$ac_lib_var=no"
7505 LIBS
="$ac_save_LIBS"
7508 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7509 echo "$ac_t""yes" 1>&6
7510 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7511 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7512 cat >> confdefs.h
<<EOF
7513 #define $ac_tr_lib 1
7516 LIBS
="-lsecurity $LIBS"
7519 echo "$ac_t""no" 1>&6
7522 for ac_func
in getspnam
7524 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7525 echo "configure:7526: checking for $ac_func" >&5
7526 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7527 echo $ac_n "(cached) $ac_c" 1>&6
7529 cat > conftest.
$ac_ext <<EOF
7530 #line 7531 "configure"
7531 #include "confdefs.h"
7532 /* System header to define __stub macros and hopefully few prototypes,
7533 which can conflict with char $ac_func(); below. */
7535 /* Override any gcc2 internal prototype to avoid an error. */
7536 /* We use char because int might match the return type of a gcc2
7537 builtin and then its argument prototype would still apply. */
7542 /* The GNU C library defines this for functions which it implements
7543 to always fail with ENOSYS. Some functions are actually named
7544 something starting with __ and the normal name is an alias. */
7545 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7553 if { (eval echo configure
:7554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7555 eval "ac_cv_func_$ac_func=yes"
7557 echo "configure: failed program was:" >&5
7558 cat conftest.
$ac_ext >&5
7560 eval "ac_cv_func_$ac_func=no"
7565 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7566 echo "$ac_t""yes" 1>&6
7567 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7568 cat >> confdefs.h
<<EOF
7569 #define $ac_tr_func 1
7573 echo "$ac_t""no" 1>&6
7581 *-lsec*) for ac_func
in getspnam
7583 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7584 echo "configure:7585: checking for $ac_func" >&5
7585 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7586 echo $ac_n "(cached) $ac_c" 1>&6
7588 cat > conftest.
$ac_ext <<EOF
7589 #line 7590 "configure"
7590 #include "confdefs.h"
7591 /* System header to define __stub macros and hopefully few prototypes,
7592 which can conflict with char $ac_func(); below. */
7594 /* Override any gcc2 internal prototype to avoid an error. */
7595 /* We use char because int might match the return type of a gcc2
7596 builtin and then its argument prototype would still apply. */
7601 /* The GNU C library defines this for functions which it implements
7602 to always fail with ENOSYS. Some functions are actually named
7603 something starting with __ and the normal name is an alias. */
7604 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7612 if { (eval echo configure
:7613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7614 eval "ac_cv_func_$ac_func=yes"
7616 echo "configure: failed program was:" >&5
7617 cat conftest.
$ac_ext >&5
7619 eval "ac_cv_func_$ac_func=no"
7624 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7625 echo "$ac_t""yes" 1>&6
7626 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7627 cat >> confdefs.h
<<EOF
7628 #define $ac_tr_func 1
7632 echo "$ac_t""no" 1>&6
7636 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
7637 echo "configure:7638: checking for getspnam in -lsec" >&5
7638 ac_lib_var
=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
7639 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7640 echo $ac_n "(cached) $ac_c" 1>&6
7642 ac_save_LIBS
="$LIBS"
7644 cat > conftest.
$ac_ext <<EOF
7645 #line 7646 "configure"
7646 #include "confdefs.h"
7647 /* Override any gcc2 internal prototype to avoid an error. */
7648 /* We use char because int might match the return type of a gcc2
7649 builtin and then its argument prototype would still apply. */
7656 if { (eval echo configure
:7657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7658 eval "ac_cv_lib_$ac_lib_var=yes"
7660 echo "configure: failed program was:" >&5
7661 cat conftest.
$ac_ext >&5
7663 eval "ac_cv_lib_$ac_lib_var=no"
7666 LIBS
="$ac_save_LIBS"
7669 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7670 echo "$ac_t""yes" 1>&6
7671 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7672 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7673 cat >> confdefs.h
<<EOF
7674 #define $ac_tr_lib 1
7680 echo "$ac_t""no" 1>&6
7683 for ac_func
in getspnam
7685 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7686 echo "configure:7687: checking for $ac_func" >&5
7687 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7688 echo $ac_n "(cached) $ac_c" 1>&6
7690 cat > conftest.
$ac_ext <<EOF
7691 #line 7692 "configure"
7692 #include "confdefs.h"
7693 /* System header to define __stub macros and hopefully few prototypes,
7694 which can conflict with char $ac_func(); below. */
7696 /* Override any gcc2 internal prototype to avoid an error. */
7697 /* We use char because int might match the return type of a gcc2
7698 builtin and then its argument prototype would still apply. */
7703 /* The GNU C library defines this for functions which it implements
7704 to always fail with ENOSYS. Some functions are actually named
7705 something starting with __ and the normal name is an alias. */
7706 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7714 if { (eval echo configure
:7715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7716 eval "ac_cv_func_$ac_func=yes"
7718 echo "configure: failed program was:" >&5
7719 cat conftest.
$ac_ext >&5
7721 eval "ac_cv_func_$ac_func=no"
7726 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7727 echo "$ac_t""yes" 1>&6
7728 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7729 cat >> confdefs.h
<<EOF
7730 #define $ac_tr_func 1
7734 echo "$ac_t""no" 1>&6
7743 *-lsecurity*) for ac_func
in bigcrypt
7745 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7746 echo "configure:7747: checking for $ac_func" >&5
7747 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7748 echo $ac_n "(cached) $ac_c" 1>&6
7750 cat > conftest.
$ac_ext <<EOF
7751 #line 7752 "configure"
7752 #include "confdefs.h"
7753 /* System header to define __stub macros and hopefully few prototypes,
7754 which can conflict with char $ac_func(); below. */
7756 /* Override any gcc2 internal prototype to avoid an error. */
7757 /* We use char because int might match the return type of a gcc2
7758 builtin and then its argument prototype would still apply. */
7763 /* The GNU C library defines this for functions which it implements
7764 to always fail with ENOSYS. Some functions are actually named
7765 something starting with __ and the normal name is an alias. */
7766 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7774 if { (eval echo configure
:7775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7776 eval "ac_cv_func_$ac_func=yes"
7778 echo "configure: failed program was:" >&5
7779 cat conftest.
$ac_ext >&5
7781 eval "ac_cv_func_$ac_func=no"
7786 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7787 echo "$ac_t""yes" 1>&6
7788 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7789 cat >> confdefs.h
<<EOF
7790 #define $ac_tr_func 1
7794 echo "$ac_t""no" 1>&6
7798 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
7799 echo "configure:7800: checking for bigcrypt in -lsecurity" >&5
7800 ac_lib_var
=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
7801 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7802 echo $ac_n "(cached) $ac_c" 1>&6
7804 ac_save_LIBS
="$LIBS"
7805 LIBS
="-lsecurity $LIBS"
7806 cat > conftest.
$ac_ext <<EOF
7807 #line 7808 "configure"
7808 #include "confdefs.h"
7809 /* Override any gcc2 internal prototype to avoid an error. */
7810 /* We use char because int might match the return type of a gcc2
7811 builtin and then its argument prototype would still apply. */
7818 if { (eval echo configure
:7819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7820 eval "ac_cv_lib_$ac_lib_var=yes"
7822 echo "configure: failed program was:" >&5
7823 cat conftest.
$ac_ext >&5
7825 eval "ac_cv_lib_$ac_lib_var=no"
7828 LIBS
="$ac_save_LIBS"
7831 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7832 echo "$ac_t""yes" 1>&6
7833 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7834 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7835 cat >> confdefs.h
<<EOF
7836 #define $ac_tr_lib 1
7839 LIBS
="-lsecurity $LIBS"
7842 echo "$ac_t""no" 1>&6
7845 for ac_func
in bigcrypt
7847 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7848 echo "configure:7849: checking for $ac_func" >&5
7849 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7850 echo $ac_n "(cached) $ac_c" 1>&6
7852 cat > conftest.
$ac_ext <<EOF
7853 #line 7854 "configure"
7854 #include "confdefs.h"
7855 /* System header to define __stub macros and hopefully few prototypes,
7856 which can conflict with char $ac_func(); below. */
7858 /* Override any gcc2 internal prototype to avoid an error. */
7859 /* We use char because int might match the return type of a gcc2
7860 builtin and then its argument prototype would still apply. */
7865 /* The GNU C library defines this for functions which it implements
7866 to always fail with ENOSYS. Some functions are actually named
7867 something starting with __ and the normal name is an alias. */
7868 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7876 if { (eval echo configure
:7877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7878 eval "ac_cv_func_$ac_func=yes"
7880 echo "configure: failed program was:" >&5
7881 cat conftest.
$ac_ext >&5
7883 eval "ac_cv_func_$ac_func=no"
7888 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7889 echo "$ac_t""yes" 1>&6
7890 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7891 cat >> confdefs.h
<<EOF
7892 #define $ac_tr_func 1
7896 echo "$ac_t""no" 1>&6
7904 *-lsec*) for ac_func
in bigcrypt
7906 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7907 echo "configure:7908: checking for $ac_func" >&5
7908 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7909 echo $ac_n "(cached) $ac_c" 1>&6
7911 cat > conftest.
$ac_ext <<EOF
7912 #line 7913 "configure"
7913 #include "confdefs.h"
7914 /* System header to define __stub macros and hopefully few prototypes,
7915 which can conflict with char $ac_func(); below. */
7917 /* Override any gcc2 internal prototype to avoid an error. */
7918 /* We use char because int might match the return type of a gcc2
7919 builtin and then its argument prototype would still apply. */
7924 /* The GNU C library defines this for functions which it implements
7925 to always fail with ENOSYS. Some functions are actually named
7926 something starting with __ and the normal name is an alias. */
7927 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7935 if { (eval echo configure
:7936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7937 eval "ac_cv_func_$ac_func=yes"
7939 echo "configure: failed program was:" >&5
7940 cat conftest.
$ac_ext >&5
7942 eval "ac_cv_func_$ac_func=no"
7947 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7948 echo "$ac_t""yes" 1>&6
7949 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7950 cat >> confdefs.h
<<EOF
7951 #define $ac_tr_func 1
7955 echo "$ac_t""no" 1>&6
7959 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
7960 echo "configure:7961: checking for bigcrypt in -lsec" >&5
7961 ac_lib_var
=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
7962 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7963 echo $ac_n "(cached) $ac_c" 1>&6
7965 ac_save_LIBS
="$LIBS"
7967 cat > conftest.
$ac_ext <<EOF
7968 #line 7969 "configure"
7969 #include "confdefs.h"
7970 /* Override any gcc2 internal prototype to avoid an error. */
7971 /* We use char because int might match the return type of a gcc2
7972 builtin and then its argument prototype would still apply. */
7979 if { (eval echo configure
:7980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7981 eval "ac_cv_lib_$ac_lib_var=yes"
7983 echo "configure: failed program was:" >&5
7984 cat conftest.
$ac_ext >&5
7986 eval "ac_cv_lib_$ac_lib_var=no"
7989 LIBS
="$ac_save_LIBS"
7992 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7993 echo "$ac_t""yes" 1>&6
7994 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7995 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7996 cat >> confdefs.h
<<EOF
7997 #define $ac_tr_lib 1
8003 echo "$ac_t""no" 1>&6
8006 for ac_func
in bigcrypt
8008 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8009 echo "configure:8010: checking for $ac_func" >&5
8010 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8011 echo $ac_n "(cached) $ac_c" 1>&6
8013 cat > conftest.
$ac_ext <<EOF
8014 #line 8015 "configure"
8015 #include "confdefs.h"
8016 /* System header to define __stub macros and hopefully few prototypes,
8017 which can conflict with char $ac_func(); below. */
8019 /* Override any gcc2 internal prototype to avoid an error. */
8020 /* We use char because int might match the return type of a gcc2
8021 builtin and then its argument prototype would still apply. */
8026 /* The GNU C library defines this for functions which it implements
8027 to always fail with ENOSYS. Some functions are actually named
8028 something starting with __ and the normal name is an alias. */
8029 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8037 if { (eval echo configure
:8038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8039 eval "ac_cv_func_$ac_func=yes"
8041 echo "configure: failed program was:" >&5
8042 cat conftest.
$ac_ext >&5
8044 eval "ac_cv_func_$ac_func=no"
8049 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8050 echo "$ac_t""yes" 1>&6
8051 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8052 cat >> confdefs.h
<<EOF
8053 #define $ac_tr_func 1
8057 echo "$ac_t""no" 1>&6
8066 *-lsecurity*) for ac_func
in getprpwnam
8068 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8069 echo "configure:8070: checking for $ac_func" >&5
8070 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8071 echo $ac_n "(cached) $ac_c" 1>&6
8073 cat > conftest.
$ac_ext <<EOF
8074 #line 8075 "configure"
8075 #include "confdefs.h"
8076 /* System header to define __stub macros and hopefully few prototypes,
8077 which can conflict with char $ac_func(); below. */
8079 /* Override any gcc2 internal prototype to avoid an error. */
8080 /* We use char because int might match the return type of a gcc2
8081 builtin and then its argument prototype would still apply. */
8086 /* The GNU C library defines this for functions which it implements
8087 to always fail with ENOSYS. Some functions are actually named
8088 something starting with __ and the normal name is an alias. */
8089 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8097 if { (eval echo configure
:8098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8099 eval "ac_cv_func_$ac_func=yes"
8101 echo "configure: failed program was:" >&5
8102 cat conftest.
$ac_ext >&5
8104 eval "ac_cv_func_$ac_func=no"
8109 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8110 echo "$ac_t""yes" 1>&6
8111 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8112 cat >> confdefs.h
<<EOF
8113 #define $ac_tr_func 1
8117 echo "$ac_t""no" 1>&6
8121 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
8122 echo "configure:8123: checking for getprpwnam in -lsecurity" >&5
8123 ac_lib_var
=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
8124 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8125 echo $ac_n "(cached) $ac_c" 1>&6
8127 ac_save_LIBS
="$LIBS"
8128 LIBS
="-lsecurity $LIBS"
8129 cat > conftest.
$ac_ext <<EOF
8130 #line 8131 "configure"
8131 #include "confdefs.h"
8132 /* Override any gcc2 internal prototype to avoid an error. */
8133 /* We use char because int might match the return type of a gcc2
8134 builtin and then its argument prototype would still apply. */
8141 if { (eval echo configure
:8142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8143 eval "ac_cv_lib_$ac_lib_var=yes"
8145 echo "configure: failed program was:" >&5
8146 cat conftest.
$ac_ext >&5
8148 eval "ac_cv_lib_$ac_lib_var=no"
8151 LIBS
="$ac_save_LIBS"
8154 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8155 echo "$ac_t""yes" 1>&6
8156 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8157 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8158 cat >> confdefs.h
<<EOF
8159 #define $ac_tr_lib 1
8162 LIBS
="-lsecurity $LIBS"
8165 echo "$ac_t""no" 1>&6
8168 for ac_func
in getprpwnam
8170 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8171 echo "configure:8172: checking for $ac_func" >&5
8172 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8173 echo $ac_n "(cached) $ac_c" 1>&6
8175 cat > conftest.
$ac_ext <<EOF
8176 #line 8177 "configure"
8177 #include "confdefs.h"
8178 /* System header to define __stub macros and hopefully few prototypes,
8179 which can conflict with char $ac_func(); below. */
8181 /* Override any gcc2 internal prototype to avoid an error. */
8182 /* We use char because int might match the return type of a gcc2
8183 builtin and then its argument prototype would still apply. */
8188 /* The GNU C library defines this for functions which it implements
8189 to always fail with ENOSYS. Some functions are actually named
8190 something starting with __ and the normal name is an alias. */
8191 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8199 if { (eval echo configure
:8200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8201 eval "ac_cv_func_$ac_func=yes"
8203 echo "configure: failed program was:" >&5
8204 cat conftest.
$ac_ext >&5
8206 eval "ac_cv_func_$ac_func=no"
8211 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8212 echo "$ac_t""yes" 1>&6
8213 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8214 cat >> confdefs.h
<<EOF
8215 #define $ac_tr_func 1
8219 echo "$ac_t""no" 1>&6
8227 *-lsec*) for ac_func
in getprpwnam
8229 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8230 echo "configure:8231: checking for $ac_func" >&5
8231 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8232 echo $ac_n "(cached) $ac_c" 1>&6
8234 cat > conftest.
$ac_ext <<EOF
8235 #line 8236 "configure"
8236 #include "confdefs.h"
8237 /* System header to define __stub macros and hopefully few prototypes,
8238 which can conflict with char $ac_func(); below. */
8240 /* Override any gcc2 internal prototype to avoid an error. */
8241 /* We use char because int might match the return type of a gcc2
8242 builtin and then its argument prototype would still apply. */
8247 /* The GNU C library defines this for functions which it implements
8248 to always fail with ENOSYS. Some functions are actually named
8249 something starting with __ and the normal name is an alias. */
8250 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8258 if { (eval echo configure
:8259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8260 eval "ac_cv_func_$ac_func=yes"
8262 echo "configure: failed program was:" >&5
8263 cat conftest.
$ac_ext >&5
8265 eval "ac_cv_func_$ac_func=no"
8270 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8271 echo "$ac_t""yes" 1>&6
8272 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8273 cat >> confdefs.h
<<EOF
8274 #define $ac_tr_func 1
8278 echo "$ac_t""no" 1>&6
8282 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
8283 echo "configure:8284: checking for getprpwnam in -lsec" >&5
8284 ac_lib_var
=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
8285 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8286 echo $ac_n "(cached) $ac_c" 1>&6
8288 ac_save_LIBS
="$LIBS"
8290 cat > conftest.
$ac_ext <<EOF
8291 #line 8292 "configure"
8292 #include "confdefs.h"
8293 /* Override any gcc2 internal prototype to avoid an error. */
8294 /* We use char because int might match the return type of a gcc2
8295 builtin and then its argument prototype would still apply. */
8302 if { (eval echo configure
:8303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8304 eval "ac_cv_lib_$ac_lib_var=yes"
8306 echo "configure: failed program was:" >&5
8307 cat conftest.
$ac_ext >&5
8309 eval "ac_cv_lib_$ac_lib_var=no"
8312 LIBS
="$ac_save_LIBS"
8315 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8316 echo "$ac_t""yes" 1>&6
8317 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8318 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8319 cat >> confdefs.h
<<EOF
8320 #define $ac_tr_lib 1
8326 echo "$ac_t""no" 1>&6
8329 for ac_func
in getprpwnam
8331 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8332 echo "configure:8333: checking for $ac_func" >&5
8333 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8334 echo $ac_n "(cached) $ac_c" 1>&6
8336 cat > conftest.
$ac_ext <<EOF
8337 #line 8338 "configure"
8338 #include "confdefs.h"
8339 /* System header to define __stub macros and hopefully few prototypes,
8340 which can conflict with char $ac_func(); below. */
8342 /* Override any gcc2 internal prototype to avoid an error. */
8343 /* We use char because int might match the return type of a gcc2
8344 builtin and then its argument prototype would still apply. */
8349 /* The GNU C library defines this for functions which it implements
8350 to always fail with ENOSYS. Some functions are actually named
8351 something starting with __ and the normal name is an alias. */
8352 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8360 if { (eval echo configure
:8361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8362 eval "ac_cv_func_$ac_func=yes"
8364 echo "configure: failed program was:" >&5
8365 cat conftest.
$ac_ext >&5
8367 eval "ac_cv_func_$ac_func=no"
8372 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8373 echo "$ac_t""yes" 1>&6
8374 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8375 cat >> confdefs.h
<<EOF
8376 #define $ac_tr_func 1
8380 echo "$ac_t""no" 1>&6
8388 # this bit needs to be modified for each OS that is suported by
8389 # smbwrapper. You need to specify how to created a shared library and
8390 # how to compile C code to produce PIC object files
8392 # these are the defaults, good for lots of systems
8398 # and these are for particular systems
8400 *linux
*) cat >> confdefs.h
<<\EOF
8404 *solaris
*) cat >> confdefs.h
<<\EOF
8410 *sunos
*) cat >> confdefs.h
<<\EOF
8416 *bsd
*) LDSHFLAGS
="-shared -Bshareable"
8418 *irix
*) cat >> confdefs.h
<<\EOF
8423 *irix6
*) cat >> confdefs.h
<<\EOF
8429 ATTEMPT_WRAP32_BUILD
=yes
8431 *aix
*) cat >> confdefs.h
<<\EOF
8435 *hpux
*) cat >> confdefs.h
<<\EOF
8440 # Use special PIC flags for the native HP-UX compiler.
8441 if test $ac_cv_prog_cc_Ae = yes; then
8446 *qnx
*) cat >> confdefs.h
<<\EOF
8450 *osf
*) cat >> confdefs.h
<<\EOF
8454 *sco
*) cat >> confdefs.h
<<\EOF
8458 *next2
*) cat >> confdefs.h
<<\EOF
8462 *dgux
*) # Extract the first word of "groff", so it can be a program name with args.
8463 set dummy
groff; ac_word
=$2
8464 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8465 echo "configure:8466: checking for $ac_word" >&5
8466 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
8467 echo $ac_n "(cached) $ac_c" 1>&6
8469 if test -n "$ROFF"; then
8470 ac_cv_prog_ROFF
="$ROFF" # Let the user override the test.
8472 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
8474 for ac_dir
in $ac_dummy; do
8475 test -z "$ac_dir" && ac_dir
=.
8476 if test -f $ac_dir/$ac_word; then
8477 ac_cv_prog_ROFF
="groff -etpsR -Tascii -man"
8484 ROFF
="$ac_cv_prog_ROFF"
8485 if test -n "$ROFF"; then
8486 echo "$ac_t""$ROFF" 1>&6
8488 echo "$ac_t""no" 1>&6
8493 *-univel-*) if test "$GCC" != yes ; then
8494 cat >> confdefs.h
<<\EOF
8495 #define HAVE_MEMSET 1
8501 *mips-sni-sysv4
*) cat >> confdefs.h
<<\EOF
8502 #define RELIANTUNIX 1
8508 if test "$GCC" != yes ; then
8509 cat >> confdefs.h
<<\EOF
8510 #define HAVE_MEMSET 1
8518 # try to work out how to produce pic code with this compiler
8519 echo $ac_n "checking whether ${CC-cc} accepts -fpic""... $ac_c" 1>&6
8520 echo "configure:8521: checking whether ${CC-cc} accepts -fpic" >&5
8521 if eval "test \"`echo '$''{'ac_cv_prog_cc_fpic'+set}'`\" = set"; then
8522 echo $ac_n "(cached) $ac_c" 1>&6
8524 echo 'void f(){}' > conftest.c
8525 if test -z "`${CC-cc} -fpic -c conftest.c 2>&1`"; then
8526 ac_cv_prog_cc_fpic
=yes
8528 ac_cv_prog_cc_fpic
=no
8534 echo "$ac_t""$ac_cv_prog_cc_fpic" 1>&6
8535 if test $ac_cv_prog_cc_fpic = yes; then
8538 if test x
$PICFLAG = x
; then
8539 echo $ac_n "checking whether ${CC-cc} accepts -KPIC""... $ac_c" 1>&6
8540 echo "configure:8541: checking whether ${CC-cc} accepts -KPIC" >&5
8541 if eval "test \"`echo '$''{'ac_cv_prog_cc_KPIC'+set}'`\" = set"; then
8542 echo $ac_n "(cached) $ac_c" 1>&6
8544 echo 'void f(){}' > conftest.c
8545 if test -z "`${CC-cc} -KPIC -c conftest.c 2>&1`"; then
8546 ac_cv_prog_cc_KPIC
=yes
8548 ac_cv_prog_cc_KPIC
=no
8554 echo "$ac_t""$ac_cv_prog_cc_KPIC" 1>&6
8555 if test $ac_cv_prog_cc_KPIC = yes; then
8559 if test x
$PICFLAG = x
; then
8560 echo $ac_n "checking whether ${CC-cc} accepts -Kpic""... $ac_c" 1>&6
8561 echo "configure:8562: checking whether ${CC-cc} accepts -Kpic" >&5
8562 if eval "test \"`echo '$''{'ac_cv_prog_cc_Kpic'+set}'`\" = set"; then
8563 echo $ac_n "(cached) $ac_c" 1>&6
8565 echo 'void f(){}' > conftest.c
8566 if test -z "`${CC-cc} -Kpic -c conftest.c 2>&1`"; then
8567 ac_cv_prog_cc_Kpic
=yes
8569 ac_cv_prog_cc_Kpic
=no
8575 echo "$ac_t""$ac_cv_prog_cc_Kpic" 1>&6
8576 if test $ac_cv_prog_cc_Kpic = yes; then
8583 echo $ac_n "checking for long long""... $ac_c" 1>&6
8584 echo "configure:8585: checking for long long" >&5
8585 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
8586 echo $ac_n "(cached) $ac_c" 1>&6
8589 if test "$cross_compiling" = yes; then
8590 samba_cv_have_longlong
=cross
8592 cat > conftest.
$ac_ext <<EOF
8593 #line 8594 "configure"
8594 #include "confdefs.h"
8596 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
8598 if { (eval echo configure
:8599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8600 samba_cv_have_longlong
=yes
8602 echo "configure: failed program was:" >&5
8603 cat conftest.
$ac_ext >&5
8605 samba_cv_have_longlong
=no
8612 echo "$ac_t""$samba_cv_have_longlong" 1>&6
8613 if test x
"$samba_cv_have_longlong" = x
"yes"; then
8614 cat >> confdefs.h
<<\EOF
8615 #define HAVE_LONGLONG 1
8621 # Check if the compiler supports the LL prefix on long long integers.
8624 echo $ac_n "checking for LL suffix on long long integers""... $ac_c" 1>&6
8625 echo "configure:8626: checking for LL suffix on long long integers" >&5
8626 if eval "test \"`echo '$''{'samba_cv_compiler_supports_ll'+set}'`\" = set"; then
8627 echo $ac_n "(cached) $ac_c" 1>&6
8630 cat > conftest.
$ac_ext <<EOF
8631 #line 8632 "configure"
8632 #include "confdefs.h"
8635 long long i = 0x8000000000LL
8638 if { (eval echo configure
:8639: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8640 samba_cv_compiler_supports_ll
=yes
8642 echo "configure: failed program was:" >&5
8643 cat conftest.
$ac_ext >&5
8645 samba_cv_compiler_supports_ll
=no
8650 echo "$ac_t""$samba_cv_compiler_supports_ll" 1>&6
8651 if test x
"$samba_cv_compiler_supports_ll" = x
"yes"; then
8652 cat >> confdefs.h
<<\EOF
8653 #define COMPILER_SUPPORTS_LL 1
8659 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
8660 echo "configure:8661: checking for 64 bit off_t" >&5
8661 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
8662 echo $ac_n "(cached) $ac_c" 1>&6
8665 if test "$cross_compiling" = yes; then
8666 samba_cv_SIZEOF_OFF_T
=cross
8668 cat > conftest.
$ac_ext <<EOF
8669 #line 8670 "configure"
8670 #include "confdefs.h"
8672 #include <sys/stat.h>
8673 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
8675 if { (eval echo configure
:8676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8677 samba_cv_SIZEOF_OFF_T
=yes
8679 echo "configure: failed program was:" >&5
8680 cat conftest.
$ac_ext >&5
8682 samba_cv_SIZEOF_OFF_T
=no
8689 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
8690 if test x
"$samba_cv_SIZEOF_OFF_T" = x
"yes"; then
8691 cat >> confdefs.h
<<\EOF
8692 #define SIZEOF_OFF_T 8
8697 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
8698 echo "configure:8699: checking for off64_t" >&5
8699 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
8700 echo $ac_n "(cached) $ac_c" 1>&6
8703 if test "$cross_compiling" = yes; then
8704 samba_cv_HAVE_OFF64_T
=cross
8706 cat > conftest.
$ac_ext <<EOF
8707 #line 8708 "configure"
8708 #include "confdefs.h"
8710 #if defined(HAVE_UNISTD_H)
8714 #include <sys/stat.h>
8715 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8717 if { (eval echo configure
:8718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8719 samba_cv_HAVE_OFF64_T
=yes
8721 echo "configure: failed program was:" >&5
8722 cat conftest.
$ac_ext >&5
8724 samba_cv_HAVE_OFF64_T
=no
8731 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
8732 if test x
"$samba_cv_HAVE_OFF64_T" = x
"yes"; then
8733 cat >> confdefs.h
<<\EOF
8734 #define HAVE_OFF64_T 1
8739 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
8740 echo "configure:8741: checking for 64 bit ino_t" >&5
8741 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
8742 echo $ac_n "(cached) $ac_c" 1>&6
8745 if test "$cross_compiling" = yes; then
8746 samba_cv_SIZEOF_INO_T
=cross
8748 cat > conftest.
$ac_ext <<EOF
8749 #line 8750 "configure"
8750 #include "confdefs.h"
8752 #include <sys/stat.h>
8753 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
8755 if { (eval echo configure
:8756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8757 samba_cv_SIZEOF_INO_T
=yes
8759 echo "configure: failed program was:" >&5
8760 cat conftest.
$ac_ext >&5
8762 samba_cv_SIZEOF_INO_T
=no
8769 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
8770 if test x
"$samba_cv_SIZEOF_INO_T" = x
"yes"; then
8771 cat >> confdefs.h
<<\EOF
8772 #define SIZEOF_INO_T 8
8777 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
8778 echo "configure:8779: checking for ino64_t" >&5
8779 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
8780 echo $ac_n "(cached) $ac_c" 1>&6
8783 if test "$cross_compiling" = yes; then
8784 samba_cv_HAVE_INO64_T
=cross
8786 cat > conftest.
$ac_ext <<EOF
8787 #line 8788 "configure"
8788 #include "confdefs.h"
8790 #if defined(HAVE_UNISTD_H)
8794 #include <sys/stat.h>
8795 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8797 if { (eval echo configure
:8798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8799 samba_cv_HAVE_INO64_T
=yes
8801 echo "configure: failed program was:" >&5
8802 cat conftest.
$ac_ext >&5
8804 samba_cv_HAVE_INO64_T
=no
8811 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
8812 if test x
"$samba_cv_HAVE_INO64_T" = x
"yes"; then
8813 cat >> confdefs.h
<<\EOF
8814 #define HAVE_INO64_T 1
8819 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
8820 echo "configure:8821: checking for struct dirent64" >&5
8821 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
8822 echo $ac_n "(cached) $ac_c" 1>&6
8825 cat > conftest.
$ac_ext <<EOF
8826 #line 8827 "configure"
8827 #include "confdefs.h"
8829 #if defined(HAVE_UNISTD_H)
8832 #include <sys/types.h>
8838 if { (eval echo configure
:8839: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8840 samba_cv_HAVE_STRUCT_DIRENT64
=yes
8842 echo "configure: failed program was:" >&5
8843 cat conftest.
$ac_ext >&5
8845 samba_cv_HAVE_STRUCT_DIRENT64
=no
8850 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
8851 if test x
"$samba_cv_HAVE_STRUCT_DIRENT64" = x
"yes"; then
8852 cat >> confdefs.h
<<\EOF
8853 #define HAVE_STRUCT_DIRENT64 1
8858 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
8859 echo "configure:8860: checking for unsigned char" >&5
8860 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
8861 echo $ac_n "(cached) $ac_c" 1>&6
8864 if test "$cross_compiling" = yes; then
8865 samba_cv_HAVE_UNSIGNED_CHAR
=cross
8867 cat > conftest.
$ac_ext <<EOF
8868 #line 8869 "configure"
8869 #include "confdefs.h"
8871 main() { char c; c=250; exit((c > 0)?0:1); }
8873 if { (eval echo configure
:8874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8875 samba_cv_HAVE_UNSIGNED_CHAR
=yes
8877 echo "configure: failed program was:" >&5
8878 cat conftest.
$ac_ext >&5
8880 samba_cv_HAVE_UNSIGNED_CHAR
=no
8887 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
8888 if test x
"$samba_cv_HAVE_UNSIGNED_CHAR" = x
"yes"; then
8889 cat >> confdefs.h
<<\EOF
8890 #define HAVE_UNSIGNED_CHAR 1
8895 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
8896 echo "configure:8897: checking for sin_len in sock" >&5
8897 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
8898 echo $ac_n "(cached) $ac_c" 1>&6
8901 cat > conftest.
$ac_ext <<EOF
8902 #line 8903 "configure"
8903 #include "confdefs.h"
8904 #include <sys/types.h>
8905 #include <sys/socket.h>
8906 #include <netinet/in.h>
8908 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
8911 if { (eval echo configure
:8912: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8913 samba_cv_HAVE_SOCK_SIN_LEN
=yes
8915 echo "configure: failed program was:" >&5
8916 cat conftest.
$ac_ext >&5
8918 samba_cv_HAVE_SOCK_SIN_LEN
=no
8923 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
8924 if test x
"$samba_cv_HAVE_SOCK_SIN_LEN" = x
"yes"; then
8925 cat >> confdefs.h
<<\EOF
8926 #define HAVE_SOCK_SIN_LEN 1
8931 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
8932 echo "configure:8933: checking whether seekdir returns void" >&5
8933 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
8934 echo $ac_n "(cached) $ac_c" 1>&6
8937 cat > conftest.
$ac_ext <<EOF
8938 #line 8939 "configure"
8939 #include "confdefs.h"
8940 #include <sys/types.h>
8942 void seekdir(DIR *d, long loc) { return; }
8947 if { (eval echo configure
:8948: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8949 samba_cv_SEEKDIR_RETURNS_VOID
=yes
8951 echo "configure: failed program was:" >&5
8952 cat conftest.
$ac_ext >&5
8954 samba_cv_SEEKDIR_RETURNS_VOID
=no
8959 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
8960 if test x
"$samba_cv_SEEKDIR_RETURNS_VOID" = x
"yes"; then
8961 cat >> confdefs.h
<<\EOF
8962 #define SEEKDIR_RETURNS_VOID 1
8967 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
8968 echo "configure:8969: checking for __FILE__ macro" >&5
8969 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
8970 echo $ac_n "(cached) $ac_c" 1>&6
8973 cat > conftest.
$ac_ext <<EOF
8974 #line 8975 "configure"
8975 #include "confdefs.h"
8978 printf("%s\n", __FILE__);
8981 if { (eval echo configure
:8982: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8983 samba_cv_HAVE_FILE_MACRO
=yes
8985 echo "configure: failed program was:" >&5
8986 cat conftest.
$ac_ext >&5
8988 samba_cv_HAVE_FILE_MACRO
=no
8993 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
8994 if test x
"$samba_cv_HAVE_FILE_MACRO" = x
"yes"; then
8995 cat >> confdefs.h
<<\EOF
8996 #define HAVE_FILE_MACRO 1
9001 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
9002 echo "configure:9003: checking for __FUNCTION__ macro" >&5
9003 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
9004 echo $ac_n "(cached) $ac_c" 1>&6
9007 cat > conftest.
$ac_ext <<EOF
9008 #line 9009 "configure"
9009 #include "confdefs.h"
9012 printf("%s\n", __FUNCTION__);
9015 if { (eval echo configure
:9016: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9017 samba_cv_HAVE_FUNCTION_MACRO
=yes
9019 echo "configure: failed program was:" >&5
9020 cat conftest.
$ac_ext >&5
9022 samba_cv_HAVE_FUNCTION_MACRO
=no
9027 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
9028 if test x
"$samba_cv_HAVE_FUNCTION_MACRO" = x
"yes"; then
9029 cat >> confdefs.h
<<\EOF
9030 #define HAVE_FUNCTION_MACRO 1
9035 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
9036 echo "configure:9037: checking if gettimeofday takes tz argument" >&5
9037 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
9038 echo $ac_n "(cached) $ac_c" 1>&6
9041 if test "$cross_compiling" = yes; then
9042 samba_cv_HAVE_GETTIMEOFDAY_TZ
=cross
9044 cat > conftest.
$ac_ext <<EOF
9045 #line 9046 "configure"
9046 #include "confdefs.h"
9048 #include <sys/time.h>
9050 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
9052 if { (eval echo configure
:9053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9054 samba_cv_HAVE_GETTIMEOFDAY_TZ
=yes
9056 echo "configure: failed program was:" >&5
9057 cat conftest.
$ac_ext >&5
9059 samba_cv_HAVE_GETTIMEOFDAY_TZ
=no
9066 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
9067 if test x
"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x
"yes"; then
9068 cat >> confdefs.h
<<\EOF
9069 #define HAVE_GETTIMEOFDAY_TZ 1
9075 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
9076 echo "configure:9077: checking for broken readdir" >&5
9077 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
9078 echo $ac_n "(cached) $ac_c" 1>&6
9081 if test "$cross_compiling" = yes; then
9082 samba_cv_HAVE_BROKEN_READDIR
=cross
9084 cat > conftest.
$ac_ext <<EOF
9085 #line 9086 "configure"
9086 #include "confdefs.h"
9087 #include <sys/types.h>
9089 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
9090 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
9091 di->d_name[0] == 0) exit(0); exit(1);}
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_READDIR
=yes
9097 echo "configure: failed program was:" >&5
9098 cat conftest.
$ac_ext >&5
9100 samba_cv_HAVE_BROKEN_READDIR
=no
9107 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
9108 if test x
"$samba_cv_HAVE_BROKEN_READDIR" = x
"yes"; then
9109 cat >> confdefs.h
<<\EOF
9110 #define HAVE_BROKEN_READDIR 1
9115 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
9116 echo "configure:9117: checking for utimbuf" >&5
9117 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
9118 echo $ac_n "(cached) $ac_c" 1>&6
9121 cat > conftest.
$ac_ext <<EOF
9122 #line 9123 "configure"
9123 #include "confdefs.h"
9124 #include <sys/types.h>
9127 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
9130 if { (eval echo configure
:9131: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9132 samba_cv_HAVE_UTIMBUF
=yes
9134 echo "configure: failed program was:" >&5
9135 cat conftest.
$ac_ext >&5
9137 samba_cv_HAVE_UTIMBUF
=no
9142 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
9143 if test x
"$samba_cv_HAVE_UTIMBUF" = x
"yes"; then
9144 cat >> confdefs.h
<<\EOF
9145 #define HAVE_UTIMBUF 1
9151 for ac_func
in pututline pututxline updwtmp updwtmpx getutmpx
9153 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9154 echo "configure:9155: checking for $ac_func" >&5
9155 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9156 echo $ac_n "(cached) $ac_c" 1>&6
9158 cat > conftest.
$ac_ext <<EOF
9159 #line 9160 "configure"
9160 #include "confdefs.h"
9161 /* System header to define __stub macros and hopefully few prototypes,
9162 which can conflict with char $ac_func(); below. */
9164 /* Override any gcc2 internal prototype to avoid an error. */
9165 /* We use char because int might match the return type of a gcc2
9166 builtin and then its argument prototype would still apply. */
9171 /* The GNU C library defines this for functions which it implements
9172 to always fail with ENOSYS. Some functions are actually named
9173 something starting with __ and the normal name is an alias. */
9174 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9182 if { (eval echo configure
:9183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9184 eval "ac_cv_func_$ac_func=yes"
9186 echo "configure: failed program was:" >&5
9187 cat conftest.
$ac_ext >&5
9189 eval "ac_cv_func_$ac_func=no"
9194 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9195 echo "$ac_t""yes" 1>&6
9196 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9197 cat >> confdefs.h
<<EOF
9198 #define $ac_tr_func 1
9202 echo "$ac_t""no" 1>&6
9207 echo $ac_n "checking for ut_name in utmp""... $ac_c" 1>&6
9208 echo "configure:9209: checking for ut_name in utmp" >&5
9209 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_NAME'+set}'`\" = set"; then
9210 echo $ac_n "(cached) $ac_c" 1>&6
9213 cat > conftest.
$ac_ext <<EOF
9214 #line 9215 "configure"
9215 #include "confdefs.h"
9216 #include <sys/types.h>
9219 struct utmp ut; ut.ut_name[0] = 'a';
9222 if { (eval echo configure
:9223: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9224 samba_cv_HAVE_UT_UT_NAME
=yes
9226 echo "configure: failed program was:" >&5
9227 cat conftest.
$ac_ext >&5
9229 samba_cv_HAVE_UT_UT_NAME
=no
9234 echo "$ac_t""$samba_cv_HAVE_UT_UT_NAME" 1>&6
9235 if test x
"$samba_cv_HAVE_UT_UT_NAME" = x
"yes"; then
9236 cat >> confdefs.h
<<\EOF
9237 #define HAVE_UT_UT_NAME 1
9242 echo $ac_n "checking for ut_user in utmp""... $ac_c" 1>&6
9243 echo "configure:9244: checking for ut_user in utmp" >&5
9244 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_USER'+set}'`\" = set"; then
9245 echo $ac_n "(cached) $ac_c" 1>&6
9248 cat > conftest.
$ac_ext <<EOF
9249 #line 9250 "configure"
9250 #include "confdefs.h"
9251 #include <sys/types.h>
9254 struct utmp ut; ut.ut_user[0] = 'a';
9257 if { (eval echo configure
:9258: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9259 samba_cv_HAVE_UT_UT_USER
=yes
9261 echo "configure: failed program was:" >&5
9262 cat conftest.
$ac_ext >&5
9264 samba_cv_HAVE_UT_UT_USER
=no
9269 echo "$ac_t""$samba_cv_HAVE_UT_UT_USER" 1>&6
9270 if test x
"$samba_cv_HAVE_UT_UT_USER" = x
"yes"; then
9271 cat >> confdefs.h
<<\EOF
9272 #define HAVE_UT_UT_USER 1
9277 echo $ac_n "checking for ut_id in utmp""... $ac_c" 1>&6
9278 echo "configure:9279: checking for ut_id in utmp" >&5
9279 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ID'+set}'`\" = set"; then
9280 echo $ac_n "(cached) $ac_c" 1>&6
9283 cat > conftest.
$ac_ext <<EOF
9284 #line 9285 "configure"
9285 #include "confdefs.h"
9286 #include <sys/types.h>
9289 struct utmp ut; ut.ut_id[0] = 'a';
9292 if { (eval echo configure
:9293: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9294 samba_cv_HAVE_UT_UT_ID
=yes
9296 echo "configure: failed program was:" >&5
9297 cat conftest.
$ac_ext >&5
9299 samba_cv_HAVE_UT_UT_ID
=no
9304 echo "$ac_t""$samba_cv_HAVE_UT_UT_ID" 1>&6
9305 if test x
"$samba_cv_HAVE_UT_UT_ID" = x
"yes"; then
9306 cat >> confdefs.h
<<\EOF
9307 #define HAVE_UT_UT_ID 1
9312 echo $ac_n "checking for ut_host in utmp""... $ac_c" 1>&6
9313 echo "configure:9314: checking for ut_host in utmp" >&5
9314 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_HOST'+set}'`\" = set"; then
9315 echo $ac_n "(cached) $ac_c" 1>&6
9318 cat > conftest.
$ac_ext <<EOF
9319 #line 9320 "configure"
9320 #include "confdefs.h"
9321 #include <sys/types.h>
9324 struct utmp ut; ut.ut_host[0] = 'a';
9327 if { (eval echo configure
:9328: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9329 samba_cv_HAVE_UT_UT_HOST
=yes
9331 echo "configure: failed program was:" >&5
9332 cat conftest.
$ac_ext >&5
9334 samba_cv_HAVE_UT_UT_HOST
=no
9339 echo "$ac_t""$samba_cv_HAVE_UT_UT_HOST" 1>&6
9340 if test x
"$samba_cv_HAVE_UT_UT_HOST" = x
"yes"; then
9341 cat >> confdefs.h
<<\EOF
9342 #define HAVE_UT_UT_HOST 1
9347 echo $ac_n "checking for ut_time in utmp""... $ac_c" 1>&6
9348 echo "configure:9349: checking for ut_time in utmp" >&5
9349 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TIME'+set}'`\" = set"; then
9350 echo $ac_n "(cached) $ac_c" 1>&6
9353 cat > conftest.
$ac_ext <<EOF
9354 #line 9355 "configure"
9355 #include "confdefs.h"
9356 #include <sys/types.h>
9359 struct utmp ut; time_t t; ut.ut_time = t;
9362 if { (eval echo configure
:9363: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9364 samba_cv_HAVE_UT_UT_TIME
=yes
9366 echo "configure: failed program was:" >&5
9367 cat conftest.
$ac_ext >&5
9369 samba_cv_HAVE_UT_UT_TIME
=no
9374 echo "$ac_t""$samba_cv_HAVE_UT_UT_TIME" 1>&6
9375 if test x
"$samba_cv_HAVE_UT_UT_TIME" = x
"yes"; then
9376 cat >> confdefs.h
<<\EOF
9377 #define HAVE_UT_UT_TIME 1
9382 echo $ac_n "checking for ut_tv in utmp""... $ac_c" 1>&6
9383 echo "configure:9384: checking for ut_tv in utmp" >&5
9384 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TV'+set}'`\" = set"; then
9385 echo $ac_n "(cached) $ac_c" 1>&6
9388 cat > conftest.
$ac_ext <<EOF
9389 #line 9390 "configure"
9390 #include "confdefs.h"
9391 #include <sys/types.h>
9394 struct utmp ut; struct timeval tv; ut.ut_tv = tv;
9397 if { (eval echo configure
:9398: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9399 samba_cv_HAVE_UT_UT_TV
=yes
9401 echo "configure: failed program was:" >&5
9402 cat conftest.
$ac_ext >&5
9404 samba_cv_HAVE_UT_UT_TV
=no
9409 echo "$ac_t""$samba_cv_HAVE_UT_UT_TV" 1>&6
9410 if test x
"$samba_cv_HAVE_UT_UT_TV" = x
"yes"; then
9411 cat >> confdefs.h
<<\EOF
9412 #define HAVE_UT_UT_TV 1
9417 echo $ac_n "checking for ut_type in utmp""... $ac_c" 1>&6
9418 echo "configure:9419: checking for ut_type in utmp" >&5
9419 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TYPE'+set}'`\" = set"; then
9420 echo $ac_n "(cached) $ac_c" 1>&6
9423 cat > conftest.
$ac_ext <<EOF
9424 #line 9425 "configure"
9425 #include "confdefs.h"
9426 #include <sys/types.h>
9429 struct utmp ut; ut.ut_type = 0;
9432 if { (eval echo configure
:9433: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9434 samba_cv_HAVE_UT_UT_TYPE
=yes
9436 echo "configure: failed program was:" >&5
9437 cat conftest.
$ac_ext >&5
9439 samba_cv_HAVE_UT_UT_TYPE
=no
9444 echo "$ac_t""$samba_cv_HAVE_UT_UT_TYPE" 1>&6
9445 if test x
"$samba_cv_HAVE_UT_UT_TYPE" = x
"yes"; then
9446 cat >> confdefs.h
<<\EOF
9447 #define HAVE_UT_UT_TYPE 1
9452 echo $ac_n "checking for ut_pid in utmp""... $ac_c" 1>&6
9453 echo "configure:9454: checking for ut_pid in utmp" >&5
9454 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_PID'+set}'`\" = set"; then
9455 echo $ac_n "(cached) $ac_c" 1>&6
9458 cat > conftest.
$ac_ext <<EOF
9459 #line 9460 "configure"
9460 #include "confdefs.h"
9461 #include <sys/types.h>
9464 struct utmp ut; ut.ut_pid = 0;
9467 if { (eval echo configure
:9468: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9469 samba_cv_HAVE_UT_UT_PID
=yes
9471 echo "configure: failed program was:" >&5
9472 cat conftest.
$ac_ext >&5
9474 samba_cv_HAVE_UT_UT_PID
=no
9479 echo "$ac_t""$samba_cv_HAVE_UT_UT_PID" 1>&6
9480 if test x
"$samba_cv_HAVE_UT_UT_PID" = x
"yes"; then
9481 cat >> confdefs.h
<<\EOF
9482 #define HAVE_UT_UT_PID 1
9487 echo $ac_n "checking for ut_exit in utmp""... $ac_c" 1>&6
9488 echo "configure:9489: checking for ut_exit in utmp" >&5
9489 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_EXIT'+set}'`\" = set"; then
9490 echo $ac_n "(cached) $ac_c" 1>&6
9493 cat > conftest.
$ac_ext <<EOF
9494 #line 9495 "configure"
9495 #include "confdefs.h"
9496 #include <sys/types.h>
9499 struct utmp ut; ut.ut_exit.e_exit = 0;
9502 if { (eval echo configure
:9503: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9504 samba_cv_HAVE_UT_UT_EXIT
=yes
9506 echo "configure: failed program was:" >&5
9507 cat conftest.
$ac_ext >&5
9509 samba_cv_HAVE_UT_UT_EXIT
=no
9514 echo "$ac_t""$samba_cv_HAVE_UT_UT_EXIT" 1>&6
9515 if test x
"$samba_cv_HAVE_UT_UT_EXIT" = x
"yes"; then
9516 cat >> confdefs.h
<<\EOF
9517 #define HAVE_UT_UT_EXIT 1
9522 echo $ac_n "checking for ut_addr in utmp""... $ac_c" 1>&6
9523 echo "configure:9524: checking for ut_addr in utmp" >&5
9524 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ADDR'+set}'`\" = set"; then
9525 echo $ac_n "(cached) $ac_c" 1>&6
9528 cat > conftest.
$ac_ext <<EOF
9529 #line 9530 "configure"
9530 #include "confdefs.h"
9531 #include <sys/types.h>
9534 struct utmp ut; ut.ut_addr = 0;
9537 if { (eval echo configure
:9538: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9539 samba_cv_HAVE_UT_UT_ADDR
=yes
9541 echo "configure: failed program was:" >&5
9542 cat conftest.
$ac_ext >&5
9544 samba_cv_HAVE_UT_UT_ADDR
=no
9549 echo "$ac_t""$samba_cv_HAVE_UT_UT_ADDR" 1>&6
9550 if test x
"$samba_cv_HAVE_UT_UT_ADDR" = x
"yes"; then
9551 cat >> confdefs.h
<<\EOF
9552 #define HAVE_UT_UT_ADDR 1
9557 if test x
$ac_cv_func_pututline = xyes
; then
9558 echo $ac_n "checking whether pututline returns pointer""... $ac_c" 1>&6
9559 echo "configure:9560: checking whether pututline returns pointer" >&5
9560 if eval "test \"`echo '$''{'samba_cv_PUTUTLINE_RETURNS_UTMP'+set}'`\" = set"; then
9561 echo $ac_n "(cached) $ac_c" 1>&6
9564 cat > conftest.
$ac_ext <<EOF
9565 #line 9566 "configure"
9566 #include "confdefs.h"
9567 #include <sys/types.h>
9570 struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
9573 if { (eval echo configure
:9574: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9575 samba_cv_PUTUTLINE_RETURNS_UTMP
=yes
9577 echo "configure: failed program was:" >&5
9578 cat conftest.
$ac_ext >&5
9580 samba_cv_PUTUTLINE_RETURNS_UTMP
=no
9585 echo "$ac_t""$samba_cv_PUTUTLINE_RETURNS_UTMP" 1>&6
9586 if test x
"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x
"yes"; then
9587 cat >> confdefs.h
<<\EOF
9588 #define PUTUTLINE_RETURNS_UTMP 1
9594 echo $ac_n "checking for ut_syslen in utmpx""... $ac_c" 1>&6
9595 echo "configure:9596: checking for ut_syslen in utmpx" >&5
9596 if eval "test \"`echo '$''{'samba_cv_HAVE_UX_UT_SYSLEN'+set}'`\" = set"; then
9597 echo $ac_n "(cached) $ac_c" 1>&6
9600 cat > conftest.
$ac_ext <<EOF
9601 #line 9602 "configure"
9602 #include "confdefs.h"
9603 #include <sys/types.h>
9606 struct utmpx ux; ux.ut_syslen = 0;
9609 if { (eval echo configure
:9610: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9611 samba_cv_HAVE_UX_UT_SYSLEN
=yes
9613 echo "configure: failed program was:" >&5
9614 cat conftest.
$ac_ext >&5
9616 samba_cv_HAVE_UX_UT_SYSLEN
=no
9621 echo "$ac_t""$samba_cv_HAVE_UX_UT_SYSLEN" 1>&6
9622 if test x
"$samba_cv_HAVE_UX_UT_SYSLEN" = x
"yes"; then
9623 cat >> confdefs.h
<<\EOF
9624 #define HAVE_UX_UT_SYSLEN 1
9629 echo $ac_n "checking for Linux kernel oplocks""... $ac_c" 1>&6
9630 echo "configure:9631: checking for Linux kernel oplocks" >&5
9631 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_LINUX'+set}'`\" = set"; then
9632 echo $ac_n "(cached) $ac_c" 1>&6
9635 if test "$cross_compiling" = yes; then
9636 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=cross
9638 cat > conftest.
$ac_ext <<EOF
9639 #line 9640 "configure"
9640 #include "confdefs.h"
9642 #include <sys/types.h>
9645 #define F_GETLEASE 1025
9648 int fd = open("/dev/null", O_RDONLY);
9649 return fcntl(fd, F_GETLEASE, 0) == -1;
9653 if { (eval echo configure
:9654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9655 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=yes
9657 echo "configure: failed program was:" >&5
9658 cat conftest.
$ac_ext >&5
9660 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=no
9667 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" 1>&6
9668 if test x
"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x
"yes"; then
9669 cat >> confdefs.h
<<\EOF
9670 #define HAVE_KERNEL_OPLOCKS_LINUX 1
9675 echo $ac_n "checking for kernel change notify support""... $ac_c" 1>&6
9676 echo "configure:9677: checking for kernel change notify support" >&5
9677 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_CHANGE_NOTIFY'+set}'`\" = set"; then
9678 echo $ac_n "(cached) $ac_c" 1>&6
9681 if test "$cross_compiling" = yes; then
9682 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=cross
9684 cat > conftest.
$ac_ext <<EOF
9685 #line 9686 "configure"
9686 #include "confdefs.h"
9688 #include <sys/types.h>
9692 #define F_NOTIFY 1026
9695 exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0);
9699 if { (eval echo configure
:9700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9701 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=yes
9703 echo "configure: failed program was:" >&5
9704 cat conftest.
$ac_ext >&5
9706 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=no
9713 echo "$ac_t""$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" 1>&6
9714 if test x
"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x
"yes"; then
9715 cat >> confdefs.h
<<\EOF
9716 #define HAVE_KERNEL_CHANGE_NOTIFY 1
9721 echo $ac_n "checking for kernel share modes""... $ac_c" 1>&6
9722 echo "configure:9723: checking for kernel share modes" >&5
9723 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_SHARE_MODES'+set}'`\" = set"; then
9724 echo $ac_n "(cached) $ac_c" 1>&6
9727 if test "$cross_compiling" = yes; then
9728 samba_cv_HAVE_KERNEL_SHARE_MODES
=cross
9730 cat > conftest.
$ac_ext <<EOF
9731 #line 9732 "configure"
9732 #include "confdefs.h"
9734 #include <sys/types.h>
9737 #include <sys/file.h>
9739 #define LOCK_MAND 32
9740 #define LOCK_READ 64
9743 exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
9747 if { (eval echo configure
:9748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9749 samba_cv_HAVE_KERNEL_SHARE_MODES
=yes
9751 echo "configure: failed program was:" >&5
9752 cat conftest.
$ac_ext >&5
9754 samba_cv_HAVE_KERNEL_SHARE_MODES
=no
9761 echo "$ac_t""$samba_cv_HAVE_KERNEL_SHARE_MODES" 1>&6
9762 if test x
"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x
"yes"; then
9763 cat >> confdefs.h
<<\EOF
9764 #define HAVE_KERNEL_SHARE_MODES 1
9772 echo $ac_n "checking for IRIX kernel oplock type definitions""... $ac_c" 1>&6
9773 echo "configure:9774: checking for IRIX kernel oplock type definitions" >&5
9774 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_IRIX'+set}'`\" = set"; then
9775 echo $ac_n "(cached) $ac_c" 1>&6
9778 cat > conftest.
$ac_ext <<EOF
9779 #line 9780 "configure"
9780 #include "confdefs.h"
9781 #include <sys/types.h>
9784 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
9787 if { (eval echo configure
:9788: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9789 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX
=yes
9791 echo "configure: failed program was:" >&5
9792 cat conftest.
$ac_ext >&5
9794 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX
=no
9799 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" 1>&6
9800 if test x
"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x
"yes"; then
9801 cat >> confdefs.h
<<\EOF
9802 #define HAVE_KERNEL_OPLOCKS_IRIX 1
9807 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
9808 echo "configure:9809: checking for irix specific capabilities" >&5
9809 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
9810 echo $ac_n "(cached) $ac_c" 1>&6
9813 if test "$cross_compiling" = yes; then
9814 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=cross
9816 cat > conftest.
$ac_ext <<EOF
9817 #line 9818 "configure"
9818 #include "confdefs.h"
9819 #include <sys/types.h>
9820 #include <sys/capability.h>
9823 if ((cap = cap_get_proc()) == NULL)
9825 cap->cap_effective |= CAP_NETWORK_MGT;
9826 cap->cap_inheritable |= CAP_NETWORK_MGT;
9832 if { (eval echo configure
:9833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9834 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=yes
9836 echo "configure: failed program was:" >&5
9837 cat conftest.
$ac_ext >&5
9839 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=no
9846 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
9847 if test x
"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x
"yes"; then
9848 cat >> confdefs.h
<<\EOF
9849 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
9855 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
9856 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
9859 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9860 echo "configure:9861: checking for int16 typedef included by rpc/rpc.h" >&5
9861 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
9862 echo $ac_n "(cached) $ac_c" 1>&6
9865 cat > conftest.
$ac_ext <<EOF
9866 #line 9867 "configure"
9867 #include "confdefs.h"
9868 #include <sys/types.h>
9869 #if defined(HAVE_RPC_RPC_H)
9870 #include <rpc/rpc.h>
9876 if { (eval echo configure
:9877: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9878 samba_cv_HAVE_INT16_FROM_RPC_RPC_H
=yes
9880 echo "configure: failed program was:" >&5
9881 cat conftest.
$ac_ext >&5
9883 samba_cv_HAVE_INT16_FROM_RPC_RPC_H
=no
9888 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
9889 if test x
"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x
"yes"; then
9890 cat >> confdefs.h
<<\EOF
9891 #define HAVE_INT16_FROM_RPC_RPC_H 1
9896 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9897 echo "configure:9898: checking for uint16 typedef included by rpc/rpc.h" >&5
9898 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
9899 echo $ac_n "(cached) $ac_c" 1>&6
9902 cat > conftest.
$ac_ext <<EOF
9903 #line 9904 "configure"
9904 #include "confdefs.h"
9905 #include <sys/types.h>
9906 #if defined(HAVE_RPC_RPC_H)
9907 #include <rpc/rpc.h>
9913 if { (eval echo configure
:9914: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9915 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H
=yes
9917 echo "configure: failed program was:" >&5
9918 cat conftest.
$ac_ext >&5
9920 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H
=no
9925 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
9926 if test x
"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x
"yes"; then
9927 cat >> confdefs.h
<<\EOF
9928 #define HAVE_UINT16_FROM_RPC_RPC_H 1
9933 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9934 echo "configure:9935: checking for int32 typedef included by rpc/rpc.h" >&5
9935 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
9936 echo $ac_n "(cached) $ac_c" 1>&6
9939 cat > conftest.
$ac_ext <<EOF
9940 #line 9941 "configure"
9941 #include "confdefs.h"
9942 #include <sys/types.h>
9943 #if defined(HAVE_RPC_RPC_H)
9944 #include <rpc/rpc.h>
9950 if { (eval echo configure
:9951: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9952 samba_cv_HAVE_INT32_FROM_RPC_RPC_H
=yes
9954 echo "configure: failed program was:" >&5
9955 cat conftest.
$ac_ext >&5
9957 samba_cv_HAVE_INT32_FROM_RPC_RPC_H
=no
9962 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
9963 if test x
"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x
"yes"; then
9964 cat >> confdefs.h
<<\EOF
9965 #define HAVE_INT32_FROM_RPC_RPC_H 1
9970 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9971 echo "configure:9972: checking for uint32 typedef included by rpc/rpc.h" >&5
9972 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
9973 echo $ac_n "(cached) $ac_c" 1>&6
9976 cat > conftest.
$ac_ext <<EOF
9977 #line 9978 "configure"
9978 #include "confdefs.h"
9979 #include <sys/types.h>
9980 #if defined(HAVE_RPC_RPC_H)
9981 #include <rpc/rpc.h>
9987 if { (eval echo configure
:9988: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9989 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H
=yes
9991 echo "configure: failed program was:" >&5
9992 cat conftest.
$ac_ext >&5
9994 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H
=no
9999 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
10000 if test x
"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x
"yes"; then
10001 cat >> confdefs.h
<<\EOF
10002 #define HAVE_UINT32_FROM_RPC_RPC_H 1
10008 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
10009 echo "configure:10010: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
10010 if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
10011 echo $ac_n "(cached) $ac_c" 1>&6
10014 cat > conftest.
$ac_ext <<EOF
10015 #line 10016 "configure"
10016 #include "confdefs.h"
10017 #include <sys/types.h>
10018 #ifdef HAVE_SYS_SECURITY_H
10019 #include <sys/security.h>
10021 #endif /* HAVE_SYS_SECURITY_H */
10022 #if defined(HAVE_RPC_RPC_H)
10023 #include <rpc/rpc.h>
10029 if { (eval echo configure
:10030: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10031 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT
=no
10033 echo "configure: failed program was:" >&5
10034 cat conftest.
$ac_ext >&5
10036 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT
=yes
10041 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
10042 if test x
"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x
"yes"; then
10043 cat >> confdefs.h
<<\EOF
10044 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
10049 echo $ac_n "checking for test routines""... $ac_c" 1>&6
10050 echo "configure:10051: checking for test routines" >&5
10051 if test "$cross_compiling" = yes; then
10052 echo "configure: warning: cannot run when cross-compiling" 1>&2
10054 cat > conftest.
$ac_ext <<EOF
10055 #line 10056 "configure"
10056 #include "confdefs.h"
10057 #include "${srcdir-.}/tests/trivial.c"
10059 if { (eval echo configure
:10060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10061 echo "$ac_t""yes" 1>&6
10063 echo "configure: failed program was:" >&5
10064 cat conftest.
$ac_ext >&5
10066 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
10072 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
10073 echo "configure:10074: checking for ftruncate extend" >&5
10074 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
10075 echo $ac_n "(cached) $ac_c" 1>&6
10078 if test "$cross_compiling" = yes; then
10079 samba_cv_HAVE_FTRUNCATE_EXTEND
=cross
10081 cat > conftest.
$ac_ext <<EOF
10082 #line 10083 "configure"
10083 #include "confdefs.h"
10084 #include "${srcdir-.}/tests/ftruncate.c"
10086 if { (eval echo configure
:10087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10088 samba_cv_HAVE_FTRUNCATE_EXTEND
=yes
10090 echo "configure: failed program was:" >&5
10091 cat conftest.
$ac_ext >&5
10093 samba_cv_HAVE_FTRUNCATE_EXTEND
=no
10100 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
10101 if test x
"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x
"yes"; then
10102 cat >> confdefs.h
<<\EOF
10103 #define HAVE_FTRUNCATE_EXTEND 1
10108 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
10109 echo "configure:10110: checking for broken getgroups" >&5
10110 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
10111 echo $ac_n "(cached) $ac_c" 1>&6
10114 if test "$cross_compiling" = yes; then
10115 samba_cv_HAVE_BROKEN_GETGROUPS
=cross
10117 cat > conftest.
$ac_ext <<EOF
10118 #line 10119 "configure"
10119 #include "confdefs.h"
10120 #include "${srcdir-.}/tests/getgroups.c"
10122 if { (eval echo configure
:10123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10124 samba_cv_HAVE_BROKEN_GETGROUPS
=yes
10126 echo "configure: failed program was:" >&5
10127 cat conftest.
$ac_ext >&5
10129 samba_cv_HAVE_BROKEN_GETGROUPS
=no
10136 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
10137 if test x
"$samba_cv_HAVE_BROKEN_GETGROUPS" = x
"yes"; then
10138 cat >> confdefs.h
<<\EOF
10139 #define HAVE_BROKEN_GETGROUPS 1
10144 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
10145 echo "configure:10146: checking whether getpass should be replaced" >&5
10146 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
10147 echo $ac_n "(cached) $ac_c" 1>&6
10150 SAVE_CPPFLAGS
="$CPPFLAGS"
10151 CPPFLAGS
="$CPPFLAGS -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/smbwrapper"
10152 cat > conftest.
$ac_ext <<EOF
10153 #line 10154 "configure"
10154 #include "confdefs.h"
10156 #define REPLACE_GETPASS 1
10157 #define NO_CONFIG_H 1
10158 #define main dont_declare_main
10159 #include "${srcdir-.}/lib/getsmbpass.c"
10166 if { (eval echo configure
:10167: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10168 samba_cv_REPLACE_GETPASS
=yes
10170 echo "configure: failed program was:" >&5
10171 cat conftest.
$ac_ext >&5
10173 samba_cv_REPLACE_GETPASS
=no
10176 CPPFLAGS
="$SAVE_CPPFLAGS"
10180 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
10181 if test x
"$samba_cv_REPLACE_GETPASS" = x
"yes"; then
10182 cat >> confdefs.h
<<\EOF
10183 #define REPLACE_GETPASS 1
10188 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
10189 echo "configure:10190: checking for broken inet_ntoa" >&5
10190 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
10191 echo $ac_n "(cached) $ac_c" 1>&6
10194 if test "$cross_compiling" = yes; then
10195 samba_cv_REPLACE_INET_NTOA
=cross
10197 cat > conftest.
$ac_ext <<EOF
10198 #line 10199 "configure"
10199 #include "confdefs.h"
10202 #include <sys/types.h>
10203 #include <netinet/in.h>
10204 #ifdef HAVE_ARPA_INET_H
10205 #include <arpa/inet.h>
10207 main() { struct in_addr ip; ip.s_addr = 0x12345678;
10208 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
10209 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
10212 if { (eval echo configure
:10213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10214 samba_cv_REPLACE_INET_NTOA
=yes
10216 echo "configure: failed program was:" >&5
10217 cat conftest.
$ac_ext >&5
10219 samba_cv_REPLACE_INET_NTOA
=no
10226 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
10227 if test x
"$samba_cv_REPLACE_INET_NTOA" = x
"yes"; then
10228 cat >> confdefs.h
<<\EOF
10229 #define REPLACE_INET_NTOA 1
10234 echo $ac_n "checking for secure mkstemp""... $ac_c" 1>&6
10235 echo "configure:10236: checking for secure mkstemp" >&5
10236 if eval "test \"`echo '$''{'samba_cv_HAVE_SECURE_MKSTEMP'+set}'`\" = set"; then
10237 echo $ac_n "(cached) $ac_c" 1>&6
10240 if test "$cross_compiling" = yes; then
10241 samba_cv_HAVE_SECURE_MKSTEMP
=cross
10243 cat > conftest.
$ac_ext <<EOF
10244 #line 10245 "configure"
10245 #include "confdefs.h"
10246 #include <stdlib.h>
10247 #include <sys/types.h>
10248 #include <sys/stat.h>
10249 #include <unistd.h>
10252 char tpl[20]="/tmp/test.XXXXXX";
10253 int fd = mkstemp(tpl);
10254 if (fd == -1) exit(1);
10256 if (fstat(fd, &st) != 0) exit(1);
10257 if ((st.st_mode & 0777) != 0600) exit(1);
10261 if { (eval echo configure
:10262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10263 samba_cv_HAVE_SECURE_MKSTEMP
=yes
10265 echo "configure: failed program was:" >&5
10266 cat conftest.
$ac_ext >&5
10268 samba_cv_HAVE_SECURE_MKSTEMP
=no
10275 echo "$ac_t""$samba_cv_HAVE_SECURE_MKSTEMP" 1>&6
10276 if test x
"$samba_cv_HAVE_SECURE_MKSTEMP" = x
"yes"; then
10277 cat >> confdefs.h
<<\EOF
10278 #define HAVE_SECURE_MKSTEMP 1
10283 echo $ac_n "checking for sysconf(_SC_NGROUPS_MAX)""... $ac_c" 1>&6
10284 echo "configure:10285: checking for sysconf(_SC_NGROUPS_MAX)" >&5
10285 if eval "test \"`echo '$''{'samba_cv_SYSCONF_SC_NGROUPS_MAX'+set}'`\" = set"; then
10286 echo $ac_n "(cached) $ac_c" 1>&6
10289 if test "$cross_compiling" = yes; then
10290 samba_cv_SYSCONF_SC_NGROUPS_MAX
=cross
10292 cat > conftest.
$ac_ext <<EOF
10293 #line 10294 "configure"
10294 #include "confdefs.h"
10295 #include <unistd.h>
10296 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
10298 if { (eval echo configure
:10299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10300 samba_cv_SYSCONF_SC_NGROUPS_MAX
=yes
10302 echo "configure: failed program was:" >&5
10303 cat conftest.
$ac_ext >&5
10305 samba_cv_SYSCONF_SC_NGROUPS_MAX
=no
10312 echo "$ac_t""$samba_cv_SYSCONF_SC_NGROUPS_MAX" 1>&6
10313 if test x
"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x
"yes"; then
10314 cat >> confdefs.h
<<\EOF
10315 #define SYSCONF_SC_NGROUPS_MAX 1
10320 echo $ac_n "checking for root""... $ac_c" 1>&6
10321 echo "configure:10322: checking for root" >&5
10322 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
10323 echo $ac_n "(cached) $ac_c" 1>&6
10326 if test "$cross_compiling" = yes; then
10327 samba_cv_HAVE_ROOT
=cross
10329 cat > conftest.
$ac_ext <<EOF
10330 #line 10331 "configure"
10331 #include "confdefs.h"
10332 main() { exit(getuid() != 0); }
10334 if { (eval echo configure
:10335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10336 samba_cv_HAVE_ROOT
=yes
10338 echo "configure: failed program was:" >&5
10339 cat conftest.
$ac_ext >&5
10341 samba_cv_HAVE_ROOT
=no
10348 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
10349 if test x
"$samba_cv_HAVE_ROOT" = x
"yes"; then
10350 cat >> confdefs.h
<<\EOF
10351 #define HAVE_ROOT 1
10355 echo "configure: warning: running as non-root will disable some tests" 1>&2
10359 # look for a method of finding the list of network interfaces
10361 echo $ac_n "checking for iface AIX""... $ac_c" 1>&6
10362 echo "configure:10363: checking for iface AIX" >&5
10363 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_AIX'+set}'`\" = set"; then
10364 echo $ac_n "(cached) $ac_c" 1>&6
10367 if test "$cross_compiling" = yes; then
10368 samba_cv_HAVE_IFACE_AIX
=cross
10370 cat > conftest.
$ac_ext <<EOF
10371 #line 10372 "configure"
10372 #include "confdefs.h"
10374 #define HAVE_IFACE_AIX 1
10375 #define AUTOCONF_TEST 1
10376 #include "confdefs.h"
10377 #include "${srcdir-.}/lib/interfaces.c"
10379 if { (eval echo configure
:10380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10381 samba_cv_HAVE_IFACE_AIX
=yes
10383 echo "configure: failed program was:" >&5
10384 cat conftest.
$ac_ext >&5
10386 samba_cv_HAVE_IFACE_AIX
=no
10393 echo "$ac_t""$samba_cv_HAVE_IFACE_AIX" 1>&6
10394 if test x
"$samba_cv_HAVE_IFACE_AIX" = x
"yes"; then
10395 iface
=yes;cat >> confdefs.h
<<\EOF
10396 #define HAVE_IFACE_AIX 1
10401 if test $iface = no
; then
10402 echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6
10403 echo "configure:10404: checking for iface ifconf" >&5
10404 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFCONF'+set}'`\" = set"; then
10405 echo $ac_n "(cached) $ac_c" 1>&6
10408 if test "$cross_compiling" = yes; then
10409 samba_cv_HAVE_IFACE_IFCONF
=cross
10411 cat > conftest.
$ac_ext <<EOF
10412 #line 10413 "configure"
10413 #include "confdefs.h"
10415 #define HAVE_IFACE_IFCONF 1
10416 #define AUTOCONF_TEST 1
10417 #include "confdefs.h"
10418 #include "${srcdir-.}/lib/interfaces.c"
10420 if { (eval echo configure
:10421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10422 samba_cv_HAVE_IFACE_IFCONF
=yes
10424 echo "configure: failed program was:" >&5
10425 cat conftest.
$ac_ext >&5
10427 samba_cv_HAVE_IFACE_IFCONF
=no
10434 echo "$ac_t""$samba_cv_HAVE_IFACE_IFCONF" 1>&6
10435 if test x
"$samba_cv_HAVE_IFACE_IFCONF" = x
"yes"; then
10436 iface
=yes;cat >> confdefs.h
<<\EOF
10437 #define HAVE_IFACE_IFCONF 1
10443 if test $iface = no
; then
10444 echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6
10445 echo "configure:10446: checking for iface ifreq" >&5
10446 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFREQ'+set}'`\" = set"; then
10447 echo $ac_n "(cached) $ac_c" 1>&6
10450 if test "$cross_compiling" = yes; then
10451 samba_cv_HAVE_IFACE_IFREQ
=cross
10453 cat > conftest.
$ac_ext <<EOF
10454 #line 10455 "configure"
10455 #include "confdefs.h"
10457 #define HAVE_IFACE_IFREQ 1
10458 #define AUTOCONF_TEST 1
10459 #include "confdefs.h"
10460 #include "${srcdir-.}/lib/interfaces.c"
10462 if { (eval echo configure
:10463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10464 samba_cv_HAVE_IFACE_IFREQ
=yes
10466 echo "configure: failed program was:" >&5
10467 cat conftest.
$ac_ext >&5
10469 samba_cv_HAVE_IFACE_IFREQ
=no
10476 echo "$ac_t""$samba_cv_HAVE_IFACE_IFREQ" 1>&6
10477 if test x
"$samba_cv_HAVE_IFACE_IFREQ" = x
"yes"; then
10478 iface
=yes;cat >> confdefs.h
<<\EOF
10479 #define HAVE_IFACE_IFREQ 1
10486 ################################################
10487 # look for a method of setting the effective uid
10489 if test $seteuid = no
; then
10490 echo $ac_n "checking for setresuid""... $ac_c" 1>&6
10491 echo "configure:10492: checking for setresuid" >&5
10492 if eval "test \"`echo '$''{'samba_cv_USE_SETRESUID'+set}'`\" = set"; then
10493 echo $ac_n "(cached) $ac_c" 1>&6
10496 if test "$cross_compiling" = yes; then
10497 samba_cv_USE_SETRESUID
=cross
10499 cat > conftest.
$ac_ext <<EOF
10500 #line 10501 "configure"
10501 #include "confdefs.h"
10503 #define AUTOCONF_TEST 1
10504 #define USE_SETRESUID 1
10505 #include "confdefs.h"
10506 #include "${srcdir-.}/lib/util_sec.c"
10508 if { (eval echo configure
:10509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10510 samba_cv_USE_SETRESUID
=yes
10512 echo "configure: failed program was:" >&5
10513 cat conftest.
$ac_ext >&5
10515 samba_cv_USE_SETRESUID
=no
10522 echo "$ac_t""$samba_cv_USE_SETRESUID" 1>&6
10523 if test x
"$samba_cv_USE_SETRESUID" = x
"yes"; then
10524 seteuid
=yes;cat >> confdefs.h
<<\EOF
10525 #define USE_SETRESUID 1
10532 if test $seteuid = no
; then
10533 echo $ac_n "checking for setreuid""... $ac_c" 1>&6
10534 echo "configure:10535: checking for setreuid" >&5
10535 if eval "test \"`echo '$''{'samba_cv_USE_SETREUID'+set}'`\" = set"; then
10536 echo $ac_n "(cached) $ac_c" 1>&6
10539 if test "$cross_compiling" = yes; then
10540 samba_cv_USE_SETREUID
=cross
10542 cat > conftest.
$ac_ext <<EOF
10543 #line 10544 "configure"
10544 #include "confdefs.h"
10546 #define AUTOCONF_TEST 1
10547 #define USE_SETREUID 1
10548 #include "confdefs.h"
10549 #include "${srcdir-.}/lib/util_sec.c"
10551 if { (eval echo configure
:10552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10553 samba_cv_USE_SETREUID
=yes
10555 echo "configure: failed program was:" >&5
10556 cat conftest.
$ac_ext >&5
10558 samba_cv_USE_SETREUID
=no
10565 echo "$ac_t""$samba_cv_USE_SETREUID" 1>&6
10566 if test x
"$samba_cv_USE_SETREUID" = x
"yes"; then
10567 seteuid
=yes;cat >> confdefs.h
<<\EOF
10568 #define USE_SETREUID 1
10574 if test $seteuid = no
; then
10575 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
10576 echo "configure:10577: checking for seteuid" >&5
10577 if eval "test \"`echo '$''{'samba_cv_USE_SETEUID'+set}'`\" = set"; then
10578 echo $ac_n "(cached) $ac_c" 1>&6
10581 if test "$cross_compiling" = yes; then
10582 samba_cv_USE_SETEUID
=cross
10584 cat > conftest.
$ac_ext <<EOF
10585 #line 10586 "configure"
10586 #include "confdefs.h"
10588 #define AUTOCONF_TEST 1
10589 #define USE_SETEUID 1
10590 #include "confdefs.h"
10591 #include "${srcdir-.}/lib/util_sec.c"
10593 if { (eval echo configure
:10594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10595 samba_cv_USE_SETEUID
=yes
10597 echo "configure: failed program was:" >&5
10598 cat conftest.
$ac_ext >&5
10600 samba_cv_USE_SETEUID
=no
10607 echo "$ac_t""$samba_cv_USE_SETEUID" 1>&6
10608 if test x
"$samba_cv_USE_SETEUID" = x
"yes"; then
10609 seteuid
=yes;cat >> confdefs.h
<<\EOF
10610 #define USE_SETEUID 1
10616 if test $seteuid = no
; then
10617 echo $ac_n "checking for setuidx""... $ac_c" 1>&6
10618 echo "configure:10619: checking for setuidx" >&5
10619 if eval "test \"`echo '$''{'samba_cv_USE_SETUIDX'+set}'`\" = set"; then
10620 echo $ac_n "(cached) $ac_c" 1>&6
10623 if test "$cross_compiling" = yes; then
10624 samba_cv_USE_SETUIDX
=cross
10626 cat > conftest.
$ac_ext <<EOF
10627 #line 10628 "configure"
10628 #include "confdefs.h"
10630 #define AUTOCONF_TEST 1
10631 #define USE_SETUIDX 1
10632 #include "confdefs.h"
10633 #include "${srcdir-.}/lib/util_sec.c"
10635 if { (eval echo configure
:10636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10637 samba_cv_USE_SETUIDX
=yes
10639 echo "configure: failed program was:" >&5
10640 cat conftest.
$ac_ext >&5
10642 samba_cv_USE_SETUIDX
=no
10649 echo "$ac_t""$samba_cv_USE_SETUIDX" 1>&6
10650 if test x
"$samba_cv_USE_SETUIDX" = x
"yes"; then
10651 seteuid
=yes;cat >> confdefs.h
<<\EOF
10652 #define USE_SETUIDX 1
10659 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
10660 echo "configure:10661: checking for working mmap" >&5
10661 if eval "test \"`echo '$''{'samba_cv_HAVE_MMAP'+set}'`\" = set"; then
10662 echo $ac_n "(cached) $ac_c" 1>&6
10665 if test "$cross_compiling" = yes; then
10666 samba_cv_HAVE_MMAP
=cross
10668 cat > conftest.
$ac_ext <<EOF
10669 #line 10670 "configure"
10670 #include "confdefs.h"
10671 #include "${srcdir-.}/tests/shared_mmap.c"
10673 if { (eval echo configure
:10674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10675 samba_cv_HAVE_MMAP
=yes
10677 echo "configure: failed program was:" >&5
10678 cat conftest.
$ac_ext >&5
10680 samba_cv_HAVE_MMAP
=no
10687 echo "$ac_t""$samba_cv_HAVE_MMAP" 1>&6
10688 if test x
"$samba_cv_HAVE_MMAP" = x
"yes"; then
10689 cat >> confdefs.h
<<\EOF
10690 #define HAVE_MMAP 1
10695 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
10696 echo "configure:10697: checking for ftruncate needs root" >&5
10697 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
10698 echo $ac_n "(cached) $ac_c" 1>&6
10701 if test "$cross_compiling" = yes; then
10702 samba_cv_FTRUNCATE_NEEDS_ROOT
=cross
10704 cat > conftest.
$ac_ext <<EOF
10705 #line 10706 "configure"
10706 #include "confdefs.h"
10707 #include "${srcdir-.}/tests/ftruncroot.c"
10709 if { (eval echo configure
:10710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10711 samba_cv_FTRUNCATE_NEEDS_ROOT
=yes
10713 echo "configure: failed program was:" >&5
10714 cat conftest.
$ac_ext >&5
10716 samba_cv_FTRUNCATE_NEEDS_ROOT
=no
10723 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
10724 if test x
"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x
"yes"; then
10725 cat >> confdefs.h
<<\EOF
10726 #define FTRUNCATE_NEEDS_ROOT 1
10731 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
10732 echo "configure:10733: checking for fcntl locking" >&5
10733 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
10734 echo $ac_n "(cached) $ac_c" 1>&6
10737 if test "$cross_compiling" = yes; then
10738 samba_cv_HAVE_FCNTL_LOCK
=cross
10740 cat > conftest.
$ac_ext <<EOF
10741 #line 10742 "configure"
10742 #include "confdefs.h"
10743 #include "${srcdir-.}/tests/fcntl_lock.c"
10745 if { (eval echo configure
:10746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10747 samba_cv_HAVE_FCNTL_LOCK
=yes
10749 echo "configure: failed program was:" >&5
10750 cat conftest.
$ac_ext >&5
10752 samba_cv_HAVE_FCNTL_LOCK
=no
10759 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
10760 if test x
"$samba_cv_HAVE_FCNTL_LOCK" = x
"yes"; then
10761 cat >> confdefs.h
<<\EOF
10762 #define HAVE_FCNTL_LOCK 1
10767 echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6
10768 echo "configure:10769: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
10769 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_FCNTL64_LOCKS'+set}'`\" = set"; then
10770 echo $ac_n "(cached) $ac_c" 1>&6
10773 if test "$cross_compiling" = yes; then
10774 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=cross
10776 cat > conftest.
$ac_ext <<EOF
10777 #line 10778 "configure"
10778 #include "confdefs.h"
10779 #include "${srcdir-.}/tests/fcntl_lock64.c"
10781 if { (eval echo configure
:10782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10783 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=yes
10785 echo "configure: failed program was:" >&5
10786 cat conftest.
$ac_ext >&5
10788 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=no
10795 echo "$ac_t""$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" 1>&6
10796 if test x
"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x
"yes"; then
10797 cat >> confdefs.h
<<\EOF
10798 #define HAVE_BROKEN_FCNTL64_LOCKS 1
10805 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
10806 echo "configure:10807: checking for 64 bit fcntl locking" >&5
10807 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
10808 echo $ac_n "(cached) $ac_c" 1>&6
10811 if test "$cross_compiling" = yes; then
10812 samba_cv_HAVE_STRUCT_FLOCK64
=cross
10814 cat > conftest.
$ac_ext <<EOF
10815 #line 10816 "configure"
10816 #include "confdefs.h"
10818 #if defined(HAVE_UNISTD_H)
10819 #include <unistd.h>
10822 #include <stdlib.h>
10824 #ifdef HAVE_FCNTL_H
10828 #ifdef HAVE_SYS_FCNTL_H
10829 #include <sys/fcntl.h>
10831 main() { struct flock64 fl64;
10832 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
10839 if { (eval echo configure
:10840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10841 samba_cv_HAVE_STRUCT_FLOCK64
=yes
10843 echo "configure: failed program was:" >&5
10844 cat conftest.
$ac_ext >&5
10846 samba_cv_HAVE_STRUCT_FLOCK64
=no
10853 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
10855 if test x
"$samba_cv_HAVE_STRUCT_FLOCK64" = x
"yes"; then
10856 cat >> confdefs.h
<<\EOF
10857 #define HAVE_STRUCT_FLOCK64 1
10863 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
10864 echo "configure:10865: checking for a crypt that needs truncated salt" >&5
10865 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
10866 echo $ac_n "(cached) $ac_c" 1>&6
10869 if test "$cross_compiling" = yes; then
10870 samba_cv_HAVE_TRUNCATED_SALT
=cross
10872 cat > conftest.
$ac_ext <<EOF
10873 #line 10874 "configure"
10874 #include "confdefs.h"
10875 #include "${srcdir-.}/tests/crypttest.c"
10877 if { (eval echo configure
:10878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10879 samba_cv_HAVE_TRUNCATED_SALT
=no
10881 echo "configure: failed program was:" >&5
10882 cat conftest.
$ac_ext >&5
10884 samba_cv_HAVE_TRUNCATED_SALT
=yes
10891 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
10892 if test x
"$samba_cv_HAVE_TRUNCATED_SALT" = x
"yes"; then
10893 cat >> confdefs.h
<<\EOF
10894 #define HAVE_TRUNCATED_SALT 1
10899 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
10900 echo "configure:10901: checking for broken nisplus include files" >&5
10901 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
10902 echo $ac_n "(cached) $ac_c" 1>&6
10905 cat > conftest.
$ac_ext <<EOF
10906 #line 10907 "configure"
10907 #include "confdefs.h"
10908 #include <sys/acl.h>
10909 #if defined(HAVE_RPCSVC_NIS_H)
10910 #include <rpcsvc/nis.h>
10916 if { (eval echo configure
:10917: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10918 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES
=no
10920 echo "configure: failed program was:" >&5
10921 cat conftest.
$ac_ext >&5
10923 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES
=yes
10928 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
10929 if test x
"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x
"yes"; then
10930 cat >> confdefs.h
<<\EOF
10931 #define BROKEN_NISPLUS_INCLUDE_FILES 1
10937 #################################################
10938 # check for smbwrapper support
10939 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
10940 echo "configure:10941: checking whether to use smbwrapper" >&5
10941 # Check whether --with-smbwrapper or --without-smbwrapper was given.
10942 if test "${with_smbwrapper+set}" = set; then
10943 withval
="$with_smbwrapper"
10946 echo "$ac_t""yes" 1>&6
10947 cat >> confdefs.h
<<\EOF
10948 #define WITH_SMBWRAPPER 1
10951 WRAP
="bin/smbsh bin/smbwrapper.$SHLIBEXT"
10953 if test x
$ATTEMPT_WRAP32_BUILD = x
; then
10956 WRAP32
=bin
/smbwrapper
.32.
$SHLIBEXT
10959 # Conditions under which smbwrapper should not be built.
10961 if test x
$PICFLAG = x
; then
10962 echo No support
for PIC code
- disabling smbwrapper and smbsh
10965 elif test x
$ac_cv_func_syscall = xno
; then
10966 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
10972 echo "$ac_t""no" 1>&6
10976 echo "$ac_t""no" 1>&6
10981 #################################################
10982 # check for the AFS filesystem
10983 echo $ac_n "checking whether to use AFS""... $ac_c" 1>&6
10984 echo "configure:10985: checking whether to use AFS" >&5
10985 # Check whether --with-afs or --without-afs was given.
10986 if test "${with_afs+set}" = set; then
10987 withval
="$with_afs"
10990 echo "$ac_t""yes" 1>&6
10991 cat >> confdefs.h
<<\EOF
10997 echo "$ac_t""no" 1>&6
11001 echo "$ac_t""no" 1>&6
11007 #################################################
11008 # check for the DFS auth system
11009 echo $ac_n "checking whether to use DFS auth""... $ac_c" 1>&6
11010 echo "configure:11011: checking whether to use DFS auth" >&5
11011 # Check whether --with-dfs or --without-dfs was given.
11012 if test "${with_dfs+set}" = set; then
11013 withval
="$with_dfs"
11016 echo "$ac_t""yes" 1>&6
11017 cat >> confdefs.h
<<\EOF
11023 echo "$ac_t""no" 1>&6
11027 echo "$ac_t""no" 1>&6
11032 #################################################
11033 # check for Kerberos IV auth system
11034 echo $ac_n "checking whether to use Kerberos IV""... $ac_c" 1>&6
11035 echo "configure:11036: checking whether to use Kerberos IV" >&5
11036 # Check whether --with-krb4 or --without-krb4 was given.
11037 if test "${with_krb4+set}" = set; then
11038 withval
="$with_krb4"
11039 echo "$ac_t""yes" 1>&6
11040 cat >> confdefs.h
<<\EOF
11041 #define KRB4_AUTH 1
11044 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
11045 echo "configure:11046: checking for dn_expand in -lresolv" >&5
11046 ac_lib_var
=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
11047 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11048 echo $ac_n "(cached) $ac_c" 1>&6
11050 ac_save_LIBS
="$LIBS"
11051 LIBS
="-lresolv $LIBS"
11052 cat > conftest.
$ac_ext <<EOF
11053 #line 11054 "configure"
11054 #include "confdefs.h"
11055 /* Override any gcc2 internal prototype to avoid an error. */
11056 /* We use char because int might match the return type of a gcc2
11057 builtin and then its argument prototype would still apply. */
11064 if { (eval echo configure
:11065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11066 eval "ac_cv_lib_$ac_lib_var=yes"
11068 echo "configure: failed program was:" >&5
11069 cat conftest.
$ac_ext >&5
11071 eval "ac_cv_lib_$ac_lib_var=no"
11074 LIBS
="$ac_save_LIBS"
11077 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11078 echo "$ac_t""yes" 1>&6
11079 ac_tr_lib
=HAVE_LIB
`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11080 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11081 cat >> confdefs.h
<<EOF
11082 #define $ac_tr_lib 1
11085 LIBS
="-lresolv $LIBS"
11088 echo "$ac_t""no" 1>&6
11091 LIBS
="$LIBS -lkrb -ldes"
11092 CFLAGS
="$CFLAGS -I$withval/include"
11093 LDFLAGS
="$LDFLAGS -L$withval/lib"
11095 echo "$ac_t""no" 1>&6
11100 #################################################
11101 # check for Kerberos 5 auth system
11102 echo $ac_n "checking whether to use Kerberos 5""... $ac_c" 1>&6
11103 echo "configure:11104: checking whether to use Kerberos 5" >&5
11104 # Check whether --with-krb5 or --without-krb5 was given.
11105 if test "${with_krb5+set}" = set; then
11106 withval
="$with_krb5"
11107 echo "$ac_t""yes" 1>&6
11108 cat >> confdefs.h
<<\EOF
11109 #define KRB5_AUTH 1
11112 LIBS
="$LIBS -ldes425 -lkrb5 -lcrypto -lcom_err"
11113 CFLAGS
="$CFLAGS -I$withval/include"
11114 LDFLAGS
="$LDFLAGS -L$withval/lib"
11116 echo "$ac_t""no" 1>&6
11121 #################################################
11122 # check for automount support
11123 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
11124 echo "configure:11125: checking whether to use AUTOMOUNT" >&5
11125 # Check whether --with-automount or --without-automount was given.
11126 if test "${with_automount+set}" = set; then
11127 withval
="$with_automount"
11130 echo "$ac_t""yes" 1>&6
11131 cat >> confdefs.h
<<\EOF
11132 #define WITH_AUTOMOUNT 1
11137 echo "$ac_t""no" 1>&6
11141 echo "$ac_t""no" 1>&6
11146 #################################################
11147 # check for smbmount support
11148 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
11149 echo "configure:11150: checking whether to use SMBMOUNT" >&5
11150 # Check whether --with-smbmount or --without-smbmount was given.
11151 if test "${with_smbmount+set}" = set; then
11152 withval
="$with_smbmount"
11155 echo "$ac_t""yes" 1>&6
11156 cat >> confdefs.h
<<\EOF
11157 #define WITH_SMBMOUNT 1
11160 MPROGS
="bin/smbmount bin/smbmnt bin/smbumount"
11163 echo "$ac_t""no" 1>&6
11168 echo "$ac_t""no" 1>&6
11175 #################################################
11176 # check for a PAM password database
11177 echo $ac_n "checking whether to use PAM password database""... $ac_c" 1>&6
11178 echo "configure:11179: checking whether to use PAM password database" >&5
11179 # Check whether --with-pam or --without-pam was given.
11180 if test "${with_pam+set}" = set; then
11181 withval
="$with_pam"
11184 echo "$ac_t""yes" 1>&6
11185 cat >> confdefs.h
<<\EOF
11192 echo "$ac_t""no" 1>&6
11196 echo "$ac_t""no" 1>&6
11201 #################################################
11202 # check for a TDB password database
11203 echo $ac_n "checking whether to use TDB password database""... $ac_c" 1>&6
11204 echo "configure:11205: checking whether to use TDB password database" >&5
11205 # Check whether --with-tdbsam or --without-tdbsam was given.
11206 if test "${with_tdbsam+set}" = set; then
11207 withval
="$with_tdbsam"
11210 echo "$ac_t""yes" 1>&6
11211 cat >> confdefs.h
<<\EOF
11212 #define WITH_TDBPWD 1
11215 # AC_MSG_ERROR([TDB password database not supported in this version.])
11218 echo "$ac_t""no" 1>&6
11222 echo "$ac_t""no" 1>&6
11227 #################################################
11228 # check for a LDAP password database
11229 echo $ac_n "checking whether to use LDAP password database""... $ac_c" 1>&6
11230 echo "configure:11231: checking whether to use LDAP password database" >&5
11231 # Check whether --with-ldap or --without-ldap was given.
11232 if test "${with_ldap+set}" = set; then
11233 withval
="$with_ldap"
11236 echo "$ac_t""yes" 1>&6
11237 cat >> confdefs.h
<<\EOF
11238 #define WITH_LDAP 1
11241 { echo "configure: error: LDAP password database not supported in this version." 1>&2; exit 1; }
11244 echo "$ac_t""no" 1>&6
11248 echo "$ac_t""no" 1>&6
11253 #################################################
11254 # check for a NISPLUS password database
11255 echo $ac_n "checking whether to use NISPLUS password database""... $ac_c" 1>&6
11256 echo "configure:11257: checking whether to use NISPLUS password database" >&5
11257 # Check whether --with-nisplus or --without-nisplus was given.
11258 if test "${with_nisplus+set}" = set; then
11259 withval
="$with_nisplus"
11262 echo "$ac_t""yes" 1>&6
11263 cat >> confdefs.h
<<\EOF
11264 #define WITH_NISPLUS 1
11269 echo "$ac_t""no" 1>&6
11273 echo "$ac_t""no" 1>&6
11278 #################################################
11279 # check for a NISPLUS_HOME support
11280 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
11281 echo "configure:11282: checking whether to use NISPLUS_HOME" >&5
11282 # Check whether --with-nisplus-home or --without-nisplus-home was given.
11283 if test "${with_nisplus_home+set}" = set; then
11284 withval
="$with_nisplus_home"
11287 echo "$ac_t""yes" 1>&6
11288 cat >> confdefs.h
<<\EOF
11289 #define WITH_NISPLUS_HOME 1
11294 echo "$ac_t""no" 1>&6
11298 echo "$ac_t""no" 1>&6
11303 #################################################
11304 # check for the secure socket layer
11305 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
11306 echo "configure:11307: checking whether to use SSL" >&5
11307 # Check whether --with-ssl or --without-ssl was given.
11308 if test "${with_ssl+set}" = set; then
11309 withval
="$with_ssl"
11312 echo "$ac_t""yes" 1>&6
11313 cat >> confdefs.h
<<\EOF
11317 withval
="/usr/local/ssl" # default
11319 if test "${with_sslinc+set}" = set; then
11321 withval
="$with_sslinc"
11324 echo "configure: warning: --with-sslinc called without argument - will use default" 1>&w
11325 CFLAGS
="-I/usr/local/ssl/include $CFLAGS"
11326 LIBS
="-lssl -lcrypto $LIBS"
11327 LDFLAGS
="=L/usr/local/ssl/lib $LDFLAGS"
11330 CFLAGS
="-I${withval}/include $CFLAGS"
11331 LIBS
="-lssl -lcrypto $LIBS"
11332 LDFLAGS
="-L${withval}/lib $LDFLAGS"
11338 CFLAGS
="-I/usr/local/ssl/include $CFLAGS"
11339 LIBS
="-lssl -lcrypto $LIBS"
11340 LDFLAGS
="-L/usr/local/ssl/lib $LDFLAGS"
11344 if test ! -d ${withval}; then
11345 echo "configure: error: called with --with-ssl, but ssl base directory ${withval} does not exist or is not a directory. Aborting config" 1>&2
11349 CFLAGS
="-DHAVE_CRYPT_DECL $CFLAGS" # Damn, SSLeay defines its own
11353 echo "$ac_t""no" 1>&6
11357 echo "$ac_t""no" 1>&6
11362 #################################################
11363 # check for syslog logging
11364 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
11365 echo "configure:11366: checking whether to use syslog logging" >&5
11366 # Check whether --with-syslog or --without-syslog was given.
11367 if test "${with_syslog+set}" = set; then
11368 withval
="$with_syslog"
11371 echo "$ac_t""yes" 1>&6
11372 cat >> confdefs.h
<<\EOF
11373 #define WITH_SYSLOG 1
11378 echo "$ac_t""no" 1>&6
11382 echo "$ac_t""no" 1>&6
11387 #################################################
11388 # check for a shared memory profiling support
11389 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
11390 echo "configure:11391: checking whether to use profiling" >&5
11391 # Check whether --with-profile or --without-profile was given.
11392 if test "${with_profile+set}" = set; then
11393 withval
="$with_profile"
11396 echo "$ac_t""yes" 1>&6
11397 cat >> confdefs.h
<<\EOF
11398 #define WITH_PROFILE 1
11403 echo "$ac_t""no" 1>&6
11407 echo "$ac_t""no" 1>&6
11413 #################################################
11414 # check for experimental netatalk resource fork support
11415 echo $ac_n "checking whether to support netatalk""... $ac_c" 1>&6
11416 echo "configure:11417: checking whether to support netatalk" >&5
11417 # Check whether --with-netatalk or --without-netatalk was given.
11418 if test "${with_netatalk+set}" = set; then
11419 withval
="$with_netatalk"
11422 echo "$ac_t""yes" 1>&6
11423 cat >> confdefs.h
<<\EOF
11424 #define WITH_NETATALK 1
11429 echo "$ac_t""no" 1>&6
11433 echo "$ac_t""no" 1>&6
11438 #################################################
11439 # check for experimental disk-quotas support
11440 QUOTAOBJS
=smbd
/noquotas.o
11442 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
11443 echo "configure:11444: checking whether to support disk-quotas" >&5
11444 # Check whether --with-quotas or --without-quotas was given.
11445 if test "${with_quotas+set}" = set; then
11446 withval
="$with_quotas"
11449 echo "$ac_t""yes" 1>&6
11450 QUOTAOBJS
=smbd
/quotas.o
11453 echo "$ac_t""no" 1>&6
11457 echo "$ac_t""no" 1>&6
11463 #################################################
11464 # check for experimental utmp accounting
11466 echo $ac_n "checking whether to support utmp accounting""... $ac_c" 1>&6
11467 echo "configure:11468: checking whether to support utmp accounting" >&5
11468 # Check whether --with-utmp or --without-utmp was given.
11469 if test "${with_utmp+set}" = set; then
11470 withval
="$with_utmp"
11473 echo "$ac_t""yes" 1>&6
11474 cat >> confdefs.h
<<\EOF
11475 #define WITH_UTMP 1
11480 echo "$ac_t""no" 1>&6
11484 echo "$ac_t""no" 1>&6
11489 #################################################
11490 # check for MS Dfs support
11492 echo $ac_n "checking whether to support Microsoft Dfs""... $ac_c" 1>&6
11493 echo "configure:11494: checking whether to support Microsoft Dfs" >&5
11494 # Check whether --with-msdfs or --without-msdfs was given.
11495 if test "${with_msdfs+set}" = set; then
11496 withval
="$with_msdfs"
11499 echo "$ac_t""yes" 1>&6
11500 cat >> confdefs.h
<<\EOF
11501 #define WITH_MSDFS 1
11506 echo "$ac_t""no" 1>&6
11510 echo "$ac_t""no" 1>&6
11515 #################################################
11516 # set private directory location
11517 # Check whether --with-privatedir or --without-privatedir was given.
11518 if test "${with_privatedir+set}" = set; then
11519 withval
="$with_privatedir"
11523 # Just in case anybody calls it without argument
11525 echo "configure: warning: --with-privatedir called without argument - will use default" 1>&2
11526 privatedir
='${prefix}/private'
11529 privatedir
="$withval"
11534 privatedir
='${prefix}/private'
11540 #################################################
11541 # set lock directory location
11542 # Check whether --with-lockdir or --without-lockdir was given.
11543 if test "${with_lockdir+set}" = set; then
11544 withval
="$with_lockdir"
11548 # Just in case anybody calls it without argument
11550 echo "configure: warning: --with-lockdir called without argument - will use default" 1>&2
11551 lockdir
='$(VARDIR)/locks'
11559 lockdir
='$(VARDIR)/locks'
11565 #################################################
11566 # set SWAT directory location
11567 # Check whether --with-swatdir or --without-swatdir was given.
11568 if test "${with_swatdir+set}" = set; then
11569 withval
="$with_swatdir"
11573 # Just in case anybody does it
11575 echo "configure: warning: --with-swatdir called without argument - will use default" 1>&2
11576 swatdir
='${prefix}/swat'
11584 swatdir
='${prefix}/swat'
11590 #################################################
11591 # these tests are taken from the GNU fileutils package
11592 echo "checking how to get filesystem space usage" 1>&6
11593 echo "configure:11594: checking how to get filesystem space usage" >&5
11596 # Test for statvfs64.
11597 if test $space = no
; then
11599 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
11600 echo "configure:11601: checking statvfs64 function (SVR4)" >&5
11601 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
11602 echo $ac_n "(cached) $ac_c" 1>&6
11604 if test "$cross_compiling" = yes; then
11605 fu_cv_sys_stat_statvfs64
=cross
11607 cat > conftest.
$ac_ext <<EOF
11608 #line 11609 "configure"
11609 #include "confdefs.h"
11611 #if defined(HAVE_UNISTD_H)
11612 #include <unistd.h>
11614 #include <sys/types.h>
11615 #include <sys/statvfs.h>
11618 struct statvfs64 fsd;
11619 exit (statvfs64 (".", &fsd));
11622 if { (eval echo configure
:11623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11624 fu_cv_sys_stat_statvfs64
=yes
11626 echo "configure: failed program was:" >&5
11627 cat conftest.
$ac_ext >&5
11629 fu_cv_sys_stat_statvfs64
=no
11636 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
11637 if test $fu_cv_sys_stat_statvfs64 = yes; then
11639 cat >> confdefs.h
<<\EOF
11640 #define STAT_STATVFS64 1
11646 # Perform only the link test since it seems there are no variants of the
11647 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
11648 # because that got a false positive on SCO OSR5. Adding the declaration
11649 # of a `struct statvfs' causes this test to fail (as it should) on such
11650 # systems. That system is reported to work fine with STAT_STATFS4 which
11651 # is what it gets when this test fails.
11652 if test $space = no
; then
11654 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
11655 echo "configure:11656: checking statvfs function (SVR4)" >&5
11656 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
11657 echo $ac_n "(cached) $ac_c" 1>&6
11659 cat > conftest.
$ac_ext <<EOF
11660 #line 11661 "configure"
11661 #include "confdefs.h"
11662 #include <sys/types.h>
11663 #include <sys/statvfs.h>
11665 struct statvfs fsd; statvfs (0, &fsd);
11668 if { (eval echo configure
:11669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11670 fu_cv_sys_stat_statvfs
=yes
11672 echo "configure: failed program was:" >&5
11673 cat conftest.
$ac_ext >&5
11675 fu_cv_sys_stat_statvfs
=no
11680 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
11681 if test $fu_cv_sys_stat_statvfs = yes; then
11683 cat >> confdefs.h
<<\EOF
11684 #define STAT_STATVFS 1
11690 if test $space = no
; then
11691 # DEC Alpha running OSF/1
11692 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
11693 echo "configure:11694: checking for 3-argument statfs function (DEC OSF/1)" >&5
11694 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
11695 echo $ac_n "(cached) $ac_c" 1>&6
11697 if test "$cross_compiling" = yes; then
11698 fu_cv_sys_stat_statfs3_osf1
=no
11700 cat > conftest.
$ac_ext <<EOF
11701 #line 11702 "configure"
11702 #include "confdefs.h"
11704 #include <sys/param.h>
11705 #include <sys/types.h>
11706 #include <sys/mount.h>
11711 exit (statfs (".", &fsd, sizeof (struct statfs)));
11714 if { (eval echo configure
:11715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11716 fu_cv_sys_stat_statfs3_osf1
=yes
11718 echo "configure: failed program was:" >&5
11719 cat conftest.
$ac_ext >&5
11721 fu_cv_sys_stat_statfs3_osf1
=no
11728 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
11729 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
11731 cat >> confdefs.h
<<\EOF
11732 #define STAT_STATFS3_OSF1 1
11738 if test $space = no
; then
11740 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
11741 echo "configure:11742: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
11742 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
11743 echo $ac_n "(cached) $ac_c" 1>&6
11745 if test "$cross_compiling" = yes; then
11746 fu_cv_sys_stat_statfs2_bsize
=no
11748 cat > conftest.
$ac_ext <<EOF
11749 #line 11750 "configure"
11750 #include "confdefs.h"
11752 #ifdef HAVE_SYS_PARAM_H
11753 #include <sys/param.h>
11755 #ifdef HAVE_SYS_MOUNT_H
11756 #include <sys/mount.h>
11758 #ifdef HAVE_SYS_VFS_H
11759 #include <sys/vfs.h>
11765 exit (statfs (".", &fsd));
11768 if { (eval echo configure
:11769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11770 fu_cv_sys_stat_statfs2_bsize
=yes
11772 echo "configure: failed program was:" >&5
11773 cat conftest.
$ac_ext >&5
11775 fu_cv_sys_stat_statfs2_bsize
=no
11782 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
11783 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
11785 cat >> confdefs.h
<<\EOF
11786 #define STAT_STATFS2_BSIZE 1
11792 if test $space = no
; then
11794 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
11795 echo "configure:11796: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
11796 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
11797 echo $ac_n "(cached) $ac_c" 1>&6
11799 if test "$cross_compiling" = yes; then
11800 fu_cv_sys_stat_statfs4
=no
11802 cat > conftest.
$ac_ext <<EOF
11803 #line 11804 "configure"
11804 #include "confdefs.h"
11805 #include <sys/types.h>
11806 #include <sys/statfs.h>
11810 exit (statfs (".", &fsd, sizeof fsd, 0));
11813 if { (eval echo configure
:11814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11815 fu_cv_sys_stat_statfs4
=yes
11817 echo "configure: failed program was:" >&5
11818 cat conftest.
$ac_ext >&5
11820 fu_cv_sys_stat_statfs4
=no
11827 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
11828 if test $fu_cv_sys_stat_statfs4 = yes; then
11830 cat >> confdefs.h
<<\EOF
11831 #define STAT_STATFS4 1
11837 if test $space = no
; then
11838 # 4.4BSD and NetBSD
11839 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
11840 echo "configure:11841: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
11841 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
11842 echo $ac_n "(cached) $ac_c" 1>&6
11844 if test "$cross_compiling" = yes; then
11845 fu_cv_sys_stat_statfs2_fsize
=no
11847 cat > conftest.
$ac_ext <<EOF
11848 #line 11849 "configure"
11849 #include "confdefs.h"
11850 #include <sys/types.h>
11851 #ifdef HAVE_SYS_PARAM_H
11852 #include <sys/param.h>
11854 #ifdef HAVE_SYS_MOUNT_H
11855 #include <sys/mount.h>
11861 exit (statfs (".", &fsd));
11864 if { (eval echo configure
:11865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11866 fu_cv_sys_stat_statfs2_fsize
=yes
11868 echo "configure: failed program was:" >&5
11869 cat conftest.
$ac_ext >&5
11871 fu_cv_sys_stat_statfs2_fsize
=no
11878 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
11879 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
11881 cat >> confdefs.h
<<\EOF
11882 #define STAT_STATFS2_FSIZE 1
11888 if test $space = no
; then
11890 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
11891 echo "configure:11892: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
11892 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
11893 echo $ac_n "(cached) $ac_c" 1>&6
11895 if test "$cross_compiling" = yes; then
11896 fu_cv_sys_stat_fs_data
=no
11898 cat > conftest.
$ac_ext <<EOF
11899 #line 11900 "configure"
11900 #include "confdefs.h"
11901 #include <sys/types.h>
11902 #ifdef HAVE_SYS_PARAM_H
11903 #include <sys/param.h>
11905 #ifdef HAVE_SYS_MOUNT_H
11906 #include <sys/mount.h>
11908 #ifdef HAVE_SYS_FS_TYPES_H
11909 #include <sys/fs_types.h>
11913 struct fs_data fsd;
11914 /* Ultrix's statfs returns 1 for success,
11915 0 for not mounted, -1 for failure. */
11916 exit (statfs (".", &fsd) != 1);
11919 if { (eval echo configure
:11920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11921 fu_cv_sys_stat_fs_data
=yes
11923 echo "configure: failed program was:" >&5
11924 cat conftest.
$ac_ext >&5
11926 fu_cv_sys_stat_fs_data
=no
11933 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
11934 if test $fu_cv_sys_stat_fs_data = yes; then
11936 cat >> confdefs.h
<<\EOF
11937 #define STAT_STATFS2_FS_DATA 1
11944 # As a gating factor for large file support, in order to
11945 # use <4GB files we must have the following minimal support
11947 # long long, and a 64 bit off_t or off64_t.
11948 # If we don't have all of these then disable large
11951 echo $ac_n "checking if large file support can be enabled""... $ac_c" 1>&6
11952 echo "configure:11953: checking if large file support can be enabled" >&5
11953 cat > conftest.
$ac_ext <<EOF
11954 #line 11955 "configure"
11955 #include "confdefs.h"
11957 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
11958 #include <sys/types.h>
11967 if { (eval echo configure
:11968: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11969 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT
=yes
11971 echo "configure: failed program was:" >&5
11972 cat conftest.
$ac_ext >&5
11974 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT
=no
11977 if test x
"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x
"yes"; then
11978 echo "$ac_t""yes" 1>&6
11979 cat >> confdefs.h
<<\EOF
11980 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
11984 echo "$ac_t""no" 1>&6
11986 echo "$ac_t""$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" 1>&6
11988 # Check whether --with-spinlocks or --without-spinlocks was given.
11989 if test "${with_spinlocks+set}" = set; then
11990 withval
="$with_spinlocks"
11994 if test "x$with_spinlocks" = "xyes"; then
11995 cat >> confdefs.h
<<\EOF
11996 #define USE_SPINLOCKS 1
12000 case "$host_cpu" in
12002 cat >> confdefs.h
<<\EOF
12003 #define SPARC_SPINLOCKS 1
12008 i386|i486|i586|i686
)
12009 cat >> confdefs.h
<<\EOF
12010 #define INTEL_SPINLOCKS 1
12016 cat >> confdefs.h
<<\EOF
12017 #define MIPS_SPINLOCKS 1
12023 cat >> confdefs.h
<<\EOF
12024 #define POWERPC_SPINLOCKS 1
12031 #################################################
12032 # check for ACL support
12034 echo $ac_n "checking whether to support ACLs""... $ac_c" 1>&6
12035 echo "configure:12036: checking whether to support ACLs" >&5
12036 # Check whether --with-acl-support or --without-acl-support was given.
12037 if test "${with_acl_support+set}" = set; then
12038 withval
="$with_acl_support"
12044 echo "$ac_t""Using UnixWare ACLs" 1>&6
12045 cat >> confdefs.h
<<\EOF
12046 #define HAVE_UNIXWARE_ACLS 1
12051 echo "$ac_t""Using solaris ACLs" 1>&6
12052 cat >> confdefs.h
<<\EOF
12053 #define HAVE_SOLARIS_ACLS 1
12058 echo "$ac_t""Using IRIX ACLs" 1>&6
12059 cat >> confdefs.h
<<\EOF
12060 #define HAVE_IRIX_ACLS 1
12065 echo "$ac_t""Using AIX ACLs" 1>&6
12066 cat >> confdefs.h
<<\EOF
12067 #define HAVE_AIX_ACLS 1
12072 echo $ac_n "checking for acl_get_file in -lacl""... $ac_c" 1>&6
12073 echo "configure:12074: checking for acl_get_file in -lacl" >&5
12074 ac_lib_var
=`echo acl'_'acl_get_file | sed 'y%./+-%__p_%'`
12075 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12076 echo $ac_n "(cached) $ac_c" 1>&6
12078 ac_save_LIBS
="$LIBS"
12080 cat > conftest.
$ac_ext <<EOF
12081 #line 12082 "configure"
12082 #include "confdefs.h"
12083 /* Override any gcc2 internal prototype to avoid an error. */
12084 /* We use char because int might match the return type of a gcc2
12085 builtin and then its argument prototype would still apply. */
12086 char acl_get_file();
12092 if { (eval echo configure
:12093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12094 eval "ac_cv_lib_$ac_lib_var=yes"
12096 echo "configure: failed program was:" >&5
12097 cat conftest.
$ac_ext >&5
12099 eval "ac_cv_lib_$ac_lib_var=no"
12102 LIBS
="$ac_save_LIBS"
12105 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12106 echo "$ac_t""yes" 1>&6
12107 ac_tr_lib
=HAVE_LIB
`echo acl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
12108 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
12109 cat >> confdefs.h
<<EOF
12110 #define $ac_tr_lib 1
12116 echo "$ac_t""no" 1>&6
12119 echo $ac_n "checking for ACL support""... $ac_c" 1>&6
12120 echo "configure:12121: checking for ACL support" >&5
12121 if eval "test \"`echo '$''{'samba_cv_HAVE_POSIX_ACLS'+set}'`\" = set"; then
12122 echo $ac_n "(cached) $ac_c" 1>&6
12125 cat > conftest.
$ac_ext <<EOF
12126 #line 12127 "configure"
12127 #include "confdefs.h"
12128 #include <sys/types.h>
12129 #include <sys/acl.h>
12131 acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
12134 if { (eval echo configure
:12135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12136 samba_cv_HAVE_POSIX_ACLS
=yes
12138 echo "configure: failed program was:" >&5
12139 cat conftest.
$ac_ext >&5
12141 samba_cv_HAVE_POSIX_ACLS
=no
12146 echo "$ac_t""$samba_cv_HAVE_POSIX_ACLS" 1>&6
12147 if test x
"$samba_cv_HAVE_POSIX_ACLS" = x
"yes"; then
12148 echo "$ac_t""Using posix ACLs" 1>&6
12149 cat >> confdefs.h
<<\EOF
12150 #define HAVE_POSIX_ACLS 1
12153 echo $ac_n "checking for acl_get_perm_np""... $ac_c" 1>&6
12154 echo "configure:12155: checking for acl_get_perm_np" >&5
12155 if eval "test \"`echo '$''{'samba_cv_HAVE_ACL_GET_PERM_NP'+set}'`\" = set"; then
12156 echo $ac_n "(cached) $ac_c" 1>&6
12159 cat > conftest.
$ac_ext <<EOF
12160 #line 12161 "configure"
12161 #include "confdefs.h"
12162 #include <sys/types.h>
12163 #include <sys/acl.h>
12165 acl_permset_t permset_d; acl_perm_t perm; return acl_get_perm_np( permset_d, perm);
12168 if { (eval echo configure
:12169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12170 samba_cv_HAVE_ACL_GET_PERM_NP
=yes
12172 echo "configure: failed program was:" >&5
12173 cat conftest.
$ac_ext >&5
12175 samba_cv_HAVE_ACL_GET_PERM_NP
=no
12180 echo "$ac_t""$samba_cv_HAVE_ACL_GET_PERM_NP" 1>&6
12181 if test x
"$samba_cv_HAVE_ACL_GET_PERM_NP" = x
"yes"; then
12182 cat >> confdefs.h
<<\EOF
12183 #define HAVE_ACL_GET_PERM_NP 1
12188 echo $ac_n "checking for XFS ACL support""... $ac_c" 1>&6
12189 echo "configure:12190: checking for XFS ACL support" >&5
12190 if eval "test \"`echo '$''{'samba_cv_HAVE_XFS_ACLS'+set}'`\" = set"; then
12191 echo $ac_n "(cached) $ac_c" 1>&6
12194 cat > conftest.
$ac_ext <<EOF
12195 #line 12196 "configure"
12196 #include "confdefs.h"
12197 #include <sys/types.h>
12198 #include <acl/acl.h>
12200 char test_str[13] = SGI_ACL_FILE;
12203 if { (eval echo configure
:12204: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12205 samba_cv_HAVE_XFS_ACLS
=yes
12207 echo "configure: failed program was:" >&5
12208 cat conftest.
$ac_ext >&5
12210 samba_cv_XFS_POSIX_ACLS
=no
12215 echo "$ac_t""$samba_cv_HAVE_XFS_ACLS" 1>&6
12216 if test x
"$samba_cv_HAVE_XFS_ACLS" = x
"yes"; then
12217 echo "$ac_t""Using XFS ACLs" 1>&6
12218 cat >> confdefs.h
<<\EOF
12219 #define HAVE_XFS_ACLS 1
12227 echo "$ac_t""no" 1>&6
12228 cat >> confdefs.h
<<\EOF
12229 #define HAVE_NO_ACLS 1
12235 cat >> confdefs.h
<<\EOF
12236 #define HAVE_NO_ACLS 1
12239 echo "$ac_t""no" 1>&6
12243 echo "checking configure summary"
12244 if test "$cross_compiling" = yes; then
12247 cat > conftest.
$ac_ext <<EOF
12248 #line 12249 "configure"
12249 #include "confdefs.h"
12250 #include "${srcdir-.}/tests/summary.c"
12252 if { (eval echo configure
:12253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12254 echo "configure OK";
12256 echo "configure: failed program was:" >&5
12257 cat conftest.
$ac_ext >&5
12259 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }
12269 cat > confcache
<<\EOF
12270 # This file is a shell script that caches the results of configure
12271 # tests run on this system so they can be shared between configure
12272 # scripts and configure runs. It is not useful on other systems.
12273 # If it contains results you don't want to keep, you may remove or edit it.
12275 # By default, configure uses ./config.cache as the cache file,
12276 # creating it if it does not exist already. You can give configure
12277 # the --cache-file=FILE option to use a different cache file; that is
12278 # what configure does when it calls configure scripts in
12279 # subdirectories, so they share the cache.
12280 # Giving --cache-file=/dev/null disables caching, for debugging configure.
12281 # config.status only pays attention to the cache file if you give it the
12282 # --recheck option to rerun configure.
12285 # The following way of writing the cache mishandles newlines in values,
12286 # but we know of no workaround that is simple, portable, and efficient.
12287 # So, don't put newlines in cache variables' values.
12288 # Ultrix sh set writes to stderr and can't be redirected directly,
12289 # and sets the high bit in the cache file unless we assign to the vars.
12291 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12293 # `set' does not quote correctly, so add quotes (double-quote substitution
12294 # turns \\\\ into \\, and sed turns \\ into \).
12296 -e "s/'/'\\\\''/g" \
12297 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
12300 # `set' quotes correctly as required by POSIX, so do not add quotes.
12301 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
12304 if cmp -s $cache_file confcache
; then
12307 if test -w $cache_file; then
12308 echo "updating cache $cache_file"
12309 cat confcache
> $cache_file
12311 echo "not updating unwritable cache $cache_file"
12316 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
12318 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
12319 # Let make expand exec_prefix.
12320 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
12322 # Any assignment to VPATH causes Sun make to only execute
12323 # the first set of double-colon rules, so remove it if not needed.
12324 # If there is a colon in the path, we need to keep it.
12325 if test "x$srcdir" = x.
; then
12326 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
12329 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
12331 DEFS
=-DHAVE_CONFIG_H
12333 # Without the "./", some shells look in PATH for config.status.
12334 : ${CONFIG_STATUS=./config.status}
12336 echo creating
$CONFIG_STATUS
12337 rm -f $CONFIG_STATUS
12338 cat > $CONFIG_STATUS <<EOF
12340 # Generated automatically by configure.
12341 # Run this file to recreate the current configuration.
12342 # This directory was configured as follows,
12343 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12345 # $0 $ac_configure_args
12347 # Compiler output produced by configure, useful for debugging
12348 # configure, is in ./config.log if it exists.
12350 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
12353 case "\$ac_option" in
12354 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12355 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
12356 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
12357 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
12358 echo "$CONFIG_STATUS generated by autoconf version 2.13"
12360 -help | --help | --hel | --he | --h)
12361 echo "\$ac_cs_usage"; exit 0 ;;
12362 *) echo "\$ac_cs_usage"; exit 1 ;;
12366 ac_given_srcdir=$srcdir
12367 ac_given_INSTALL="$INSTALL"
12369 trap 'rm -fr `echo "include/stamp-h Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
12371 cat >> $CONFIG_STATUS <<EOF
12373 # Protect against being on the right side of a sed subst in config.status.
12374 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
12375 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
12379 s%@CFLAGS@%$CFLAGS%g
12380 s%@CPPFLAGS@%$CPPFLAGS%g
12381 s%@CXXFLAGS@%$CXXFLAGS%g
12382 s%@FFLAGS@%$FFLAGS%g
12384 s%@LDFLAGS@%$LDFLAGS%g
12386 s%@exec_prefix@%$exec_prefix%g
12387 s%@prefix@%$prefix%g
12388 s%@program_transform_name@%$program_transform_name%g
12389 s%@bindir@%$bindir%g
12390 s%@sbindir@%$sbindir%g
12391 s%@libexecdir@%$libexecdir%g
12392 s%@datadir@%$datadir%g
12393 s%@sysconfdir@%$sysconfdir%g
12394 s%@sharedstatedir@%$sharedstatedir%g
12395 s%@localstatedir@%$localstatedir%g
12396 s%@libdir@%$libdir%g
12397 s%@includedir@%$includedir%g
12398 s%@oldincludedir@%$oldincludedir%g
12399 s%@infodir@%$infodir%g
12400 s%@mandir@%$mandir%g
12401 s%@RUNPROG@%$RUNPROG%g
12402 s%@MPROGS@%$MPROGS%g
12403 s%@LDSHFLAGS@%$LDSHFLAGS%g
12404 s%@HOST_OS@%$HOST_OS%g
12406 s%@WRAP32@%$WRAP32%g
12407 s%@PICFLAG@%$PICFLAG%g
12408 s%@SHLIBEXT@%$SHLIBEXT%g
12410 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
12411 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
12412 s%@INSTALL_DATA@%$INSTALL_DATA%g
12415 s%@host_alias@%$host_alias%g
12416 s%@host_cpu@%$host_cpu%g
12417 s%@host_vendor@%$host_vendor%g
12418 s%@host_os@%$host_os%g
12420 s%@build_alias@%$build_alias%g
12421 s%@build_cpu@%$build_cpu%g
12422 s%@build_vendor@%$build_vendor%g
12423 s%@build_os@%$build_os%g
12424 s%@RANLIB@%$RANLIB%g
12426 s%@LIBTOOL@%$LIBTOOL%g
12427 s%@LIBTOOL_DEPS@%$LIBTOOL_DEPS%g
12428 s%@BROKEN_CC@%$BROKEN_CC%g
12429 s%@target@%$target%g
12430 s%@target_alias@%$target_alias%g
12431 s%@target_cpu@%$target_cpu%g
12432 s%@target_vendor@%$target_vendor%g
12433 s%@target_os@%$target_os%g
12435 s%@LIBOBJS@%$LIBOBJS%g
12436 s%@TERMLIBS@%$TERMLIBS%g
12437 s%@TERMLDFLAGS@%$TERMLDFLAGS%g
12439 s%@QUOTAOBJS@%$QUOTAOBJS%g
12440 s%@privatedir@%$privatedir%g
12441 s%@lockdir@%$lockdir%g
12442 s%@swatdir@%$swatdir%g
12443 s%@builddir@%$builddir%g
12448 cat >> $CONFIG_STATUS <<\EOF
12450 # Split the substitutions into bite-sized pieces for seds with
12451 # small command number limits, like on Digital OSF/1 and HP-UX.
12452 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
12453 ac_file
=1 # Number of current file.
12454 ac_beg
=1 # First line for current file.
12455 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
12458 while $ac_more_lines; do
12459 if test $ac_beg -gt 1; then
12460 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
12462 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
12464 if test ! -s conftest.s
$ac_file; then
12465 ac_more_lines
=false
12466 rm -f conftest.s
$ac_file
12468 if test -z "$ac_sed_cmds"; then
12469 ac_sed_cmds
="sed -f conftest.s$ac_file"
12471 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
12473 ac_file
=`expr $ac_file + 1`
12475 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
12478 if test -z "$ac_sed_cmds"; then
12483 cat >> $CONFIG_STATUS <<EOF
12485 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile"}
12487 cat >> $CONFIG_STATUS <<\EOF
12488 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
12489 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12491 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
12492 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
12493 *) ac_file_in
="${ac_file}.in" ;;
12496 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
12498 # Remove last slash and all that follows it. Not all systems have dirname.
12499 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
12500 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
12501 # The file is in a subdirectory.
12502 test ! -d "$ac_dir" && mkdir
"$ac_dir"
12503 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
12504 # A "../" for each directory in $ac_dir_suffix.
12505 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
12507 ac_dir_suffix
= ac_dots
=
12510 case "$ac_given_srcdir" in
12512 if test -z "$ac_dots"; then top_srcdir
=.
12513 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
12514 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
12515 *) # Relative path.
12516 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
12517 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
12520 case "$ac_given_INSTALL" in
12521 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
12522 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
12525 echo creating
"$ac_file"
12527 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
12529 *Makefile
*) ac_comsub
="1i\\
12530 # $configure_input" ;;
12534 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
12536 s%@configure_input@%$configure_input%g
12537 s%@srcdir@%$srcdir%g
12538 s%@top_srcdir@%$top_srcdir%g
12539 s%@INSTALL@%$INSTALL%g
12540 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
12544 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12545 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12547 # ac_d sets the value in "#define NAME VALUE" lines.
12548 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12549 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
12552 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
12553 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12554 ac_uB
='\([ ]\)%\1#\2define\3'
12557 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12558 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12559 ac_eB
='$%\1#\2define\3'
12563 if test "${CONFIG_HEADERS+set}" != set; then
12565 cat >> $CONFIG_STATUS <<EOF
12566 CONFIG_HEADERS="include/config.h"
12568 cat >> $CONFIG_STATUS <<\EOF
12570 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
12571 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12573 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
12574 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
12575 *) ac_file_in
="${ac_file}.in" ;;
12578 echo creating
$ac_file
12580 rm -f conftest.frag conftest.
in conftest.out
12581 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
12582 cat $ac_file_inputs > conftest.
in
12586 # Transform confdefs.h into a sed script conftest.vals that substitutes
12587 # the proper values into config.h.in to produce config.h. And first:
12588 # Protect against being on the right side of a sed subst in config.status.
12589 # Protect against being in an unquoted here document in config.status.
12590 rm -f conftest.vals
12591 cat > conftest.hdr
<<\EOF
12594 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
12598 sed -n -f conftest.hdr confdefs.h > conftest.vals
12601 # This sed command replaces #undef with comments. This is necessary, for
12602 # example, in the case of _POSIX_SOURCE, which is predefined and required
12603 # on some systems where configure will not decide to define it.
12604 cat >> conftest.vals <<\EOF
12605 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
12608 # Break up conftest.vals because some shells have a limit on
12609 # the size of here documents, and old seds have small limits too.
12611 rm -f conftest.tail
12614 ac_lines=`grep -c . conftest.vals
`
12615 # grep -c gives empty output for an empty file on some AIX systems.
12616 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
12617 # Write a limited-size here document to conftest.frag.
12618 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
12619 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
12621 sed -f conftest.frag conftest.in > conftest.out
12623 mv conftest.out conftest.in
12624 ' >> $CONFIG_STATUS
12625 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
12626 rm -f conftest.vals
12627 mv conftest.tail conftest.vals
12629 rm -f conftest.vals
12631 cat >> $CONFIG_STATUS <<\EOF
12632 rm -f conftest.frag conftest.h
12633 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
12634 cat conftest.in >> conftest.h
12636 if cmp -s $ac_file conftest.h 2>/dev/null; then
12637 echo "$ac_file is unchanged"
12640 # Remove last slash and all that follows it. Not all systems have dirname.
12641 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
12642 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
12643 # The file is in a subdirectory.
12644 test ! -d "$ac_dir" && mkdir "$ac_dir"
12647 mv conftest.h $ac_file
12652 cat >> $CONFIG_STATUS <<EOF
12655 cat >> $CONFIG_STATUS <<\EOF
12659 chmod +x $CONFIG_STATUS
12660 rm -fr confdefs* $ac_clean_files
12661 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1