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-shared[=PKGS] build shared libraries [default=yes]"
18 --enable-static[=PKGS] build static libraries [default=yes]"
20 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
22 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
24 --disable-libtool-lock avoid locking (might break parallel builds)"
26 --with-smbwrapper Include SMB wrapper support
27 --without-smbwrapper Don't include SMB wrapper support (default)"
29 --with-afs Include AFS support
30 --without-afs Don't include AFS support (default)"
32 --with-dfs Include DFS support
33 --without-dfs Don't include DFS support (default)"
35 --with-krb4=base-dir Include Kerberos IV support
36 --without-krb4 Don't include Kerberos IV support (default)"
38 --with-krb5=base-dir Include Kerberos 5 support
39 --without-krb5 Don't include Kerberos 5 support (default)"
41 --with-automount Include AUTOMOUNT support
42 --without-automount Don't include AUTOMOUNT support (default)"
44 --with-smbmount Include SMBMOUNT (Linux only) support
45 --without-smbmount Don't include SMBMOUNT support (default)"
47 --with-pam Include PAM password database support
48 --without-pam Don't include PAM password database support (default)"
50 --with-tdbsam Include experimental TDB password database
51 --without-tdbsam Don't include experimental TDB password database (default)"
53 --with-ldap Include LDAP support
54 --without-ldap Don't include LDAP support (default)"
56 --with-nisplus Include NISPLUS password database support
57 --without-nisplus Don't include NISPLUS password database support (default)"
59 --with-nisplus-home Include NISPLUS_HOME support
60 --without-nisplus-home Don't include NISPLUS_HOME support (default)"
62 --with-ssl Include SSL support
63 --without-ssl Don't include SSL support (default)
64 --with-sslinc=DIR Where the SSL includes are (defaults to /usr/local/ssl)"
66 --with-syslog Include experimental SYSLOG support
67 --without-syslog Don't include SYSLOG support (default)"
69 --with-profile Include profile support
70 --without-profile Don't include profile support (default)"
72 --with-netatalk Include experimental Netatalk support
73 --without-netatalk Don't include experimental Netatalk support (default)"
75 --with-quotas Include experimental disk-quota support
76 --without-quotas Don't include experimental disk-quota support (default)"
78 --with-utmp Include experimental utmp accounting
79 --without-utmp Don't include experimental utmp accounting (default)"
81 --with-msdfs Include MS Dfs support
82 --without-msdfs Don't include MS Dfs support (default)"
84 --with-privatedir=DIR Where to put smbpasswd ($ac_default_prefix/private)"
86 --with-lockdir=DIR Where to put lock files ($ac_default_prefix/var/locks)"
88 --with-swatdir=DIR Where to put SWAT files ($ac_default_prefix/swat)"
90 --with-spinlocks use spin locks instead of fcntl locks "
92 # Initialize some variables set by options.
93 # The variables have the same names as the options, with
94 # dashes changed to underlines.
96 cache_file
=.
/config.cache
105 program_transform_name
=s
,x
,x
,
113 bindir
='${exec_prefix}/bin'
114 sbindir
='${exec_prefix}/sbin'
115 libexecdir
='${exec_prefix}/libexec'
116 datadir
='${prefix}/share'
117 sysconfdir
='${prefix}/etc'
118 sharedstatedir
='${prefix}/com'
119 localstatedir
='${prefix}/var'
120 libdir
='${exec_prefix}/lib'
121 includedir
='${prefix}/include'
122 oldincludedir
='/usr/include'
123 infodir
='${prefix}/info'
124 mandir
='${prefix}/man'
126 # Initialize some other variables.
129 SHELL
=${CONFIG_SHELL-/bin/sh}
130 # Maximum number of lines to put in a shell here document.
137 # If the previous option needs an argument, assign it.
138 if test -n "$ac_prev"; then
139 eval "$ac_prev=\$ac_option"
145 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
149 # Accept the important Cygnus configure options, so we can diagnose typos.
153 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
155 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
156 bindir
="$ac_optarg" ;;
158 -build |
--build |
--buil |
--bui |
--bu)
160 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
161 build
="$ac_optarg" ;;
163 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
164 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
165 ac_prev
=cache_file
;;
166 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
167 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
168 cache_file
="$ac_optarg" ;;
170 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
172 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
174 datadir
="$ac_optarg" ;;
176 -disable-* |
--disable-*)
177 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
178 # Reject names that are not valid shell variable names.
179 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
180 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
182 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
183 eval "enable_${ac_feature}=no" ;;
185 -enable-* |
--enable-*)
186 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
187 # Reject names that are not valid shell variable names.
188 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
189 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
191 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
196 eval "enable_${ac_feature}='$ac_optarg'" ;;
198 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
199 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
200 |
--exec |
--exe |
--ex)
201 ac_prev
=exec_prefix
;;
202 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
203 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
204 |
--exec=* |
--exe=* |
--ex=*)
205 exec_prefix
="$ac_optarg" ;;
207 -gas |
--gas |
--ga |
--g)
208 # Obsolete; use --with-gas.
211 -help |
--help |
--hel |
--he)
212 # Omit some internal or obsolete options to make the list less imposing.
213 # This message is too long to be a string in the A/UX 3.1 sh.
215 Usage: configure [options] [host]
216 Options: [defaults in brackets after descriptions]
218 --cache-file=FILE cache test results in FILE
219 --help print this message
220 --no-create do not create output files
221 --quiet, --silent do not print \`checking...' messages
222 --version print the version of autoconf that created configure
223 Directory and file names:
224 --prefix=PREFIX install architecture-independent files in PREFIX
226 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
228 --bindir=DIR user executables in DIR [EPREFIX/bin]
229 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
230 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
231 --datadir=DIR read-only architecture-independent data in DIR
233 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
234 --sharedstatedir=DIR modifiable architecture-independent data in DIR
236 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
237 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
238 --includedir=DIR C header files in DIR [PREFIX/include]
239 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
240 --infodir=DIR info documentation in DIR [PREFIX/info]
241 --mandir=DIR man documentation in DIR [PREFIX/man]
242 --srcdir=DIR find the sources in DIR [configure dir or ..]
243 --program-prefix=PREFIX prepend PREFIX to installed program names
244 --program-suffix=SUFFIX append SUFFIX to installed program names
245 --program-transform-name=PROGRAM
246 run sed PROGRAM on installed program names
250 --build=BUILD configure for building on BUILD [BUILD=HOST]
251 --host=HOST configure for HOST [guessed]
252 --target=TARGET configure for TARGET [TARGET=HOST]
253 Features and packages:
254 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
255 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
256 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
257 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
258 --x-includes=DIR X include files are in DIR
259 --x-libraries=DIR X library files are in DIR
261 if test -n "$ac_help"; then
262 echo "--enable and --with options recognized:$ac_help"
266 -host |
--host |
--hos |
--ho)
268 -host=* |
--host=* |
--hos=* |
--ho=*)
271 -includedir |
--includedir |
--includedi |
--included |
--include \
272 |
--includ |
--inclu |
--incl |
--inc)
273 ac_prev
=includedir
;;
274 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
275 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
276 includedir
="$ac_optarg" ;;
278 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
280 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
281 infodir
="$ac_optarg" ;;
283 -libdir |
--libdir |
--libdi |
--libd)
285 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
286 libdir
="$ac_optarg" ;;
288 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
289 |
--libexe |
--libex |
--libe)
290 ac_prev
=libexecdir
;;
291 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
292 |
--libexe=* |
--libex=* |
--libe=*)
293 libexecdir
="$ac_optarg" ;;
295 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
296 |
--localstate |
--localstat |
--localsta |
--localst \
297 |
--locals |
--local |
--loca |
--loc |
--lo)
298 ac_prev
=localstatedir
;;
299 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
300 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
301 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
302 localstatedir
="$ac_optarg" ;;
304 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
306 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
307 mandir
="$ac_optarg" ;;
310 # Obsolete; use --without-fp.
313 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
317 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
318 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
321 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
322 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
323 |
--oldin |
--oldi |
--old |
--ol |
--o)
324 ac_prev
=oldincludedir
;;
325 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
326 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
327 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
328 oldincludedir
="$ac_optarg" ;;
330 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
332 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
333 prefix
="$ac_optarg" ;;
335 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
336 |
--program-pre |
--program-pr |
--program-p)
337 ac_prev
=program_prefix
;;
338 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
339 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
340 program_prefix
="$ac_optarg" ;;
342 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
343 |
--program-suf |
--program-su |
--program-s)
344 ac_prev
=program_suffix
;;
345 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
346 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
347 program_suffix
="$ac_optarg" ;;
349 -program-transform-name |
--program-transform-name \
350 |
--program-transform-nam |
--program-transform-na \
351 |
--program-transform-n |
--program-transform- \
352 |
--program-transform |
--program-transfor \
353 |
--program-transfo |
--program-transf \
354 |
--program-trans |
--program-tran \
355 |
--progr-tra |
--program-tr |
--program-t)
356 ac_prev
=program_transform_name
;;
357 -program-transform-name=* |
--program-transform-name=* \
358 |
--program-transform-nam=* |
--program-transform-na=* \
359 |
--program-transform-n=* |
--program-transform-=* \
360 |
--program-transform=* |
--program-transfor=* \
361 |
--program-transfo=* |
--program-transf=* \
362 |
--program-trans=* |
--program-tran=* \
363 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
364 program_transform_name
="$ac_optarg" ;;
366 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
367 |
-silent |
--silent |
--silen |
--sile |
--sil)
370 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
372 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
374 sbindir
="$ac_optarg" ;;
376 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
377 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
378 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
380 ac_prev
=sharedstatedir
;;
381 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
382 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
383 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
385 sharedstatedir
="$ac_optarg" ;;
387 -site |
--site |
--sit)
389 -site=* |
--site=* |
--sit=*)
392 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
394 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
395 srcdir
="$ac_optarg" ;;
397 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
398 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
399 ac_prev
=sysconfdir
;;
400 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
401 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
402 sysconfdir
="$ac_optarg" ;;
404 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
406 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
407 target
="$ac_optarg" ;;
409 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
412 -version |
--version |
--versio |
--versi |
--vers)
413 echo "configure generated by autoconf version 2.13"
417 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
418 # Reject names that are not valid shell variable names.
419 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
420 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
422 ac_package
=`echo $ac_package| sed 's/-/_/g'`
427 eval "with_${ac_package}='$ac_optarg'" ;;
429 -without-* |
--without-*)
430 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
431 # Reject names that are not valid shell variable names.
432 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
433 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
435 ac_package
=`echo $ac_package| sed 's/-/_/g'`
436 eval "with_${ac_package}=no" ;;
439 # Obsolete; use --with-x.
442 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
443 |
--x-incl |
--x-inc |
--x-in |
--x-i)
444 ac_prev
=x_includes
;;
445 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
446 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
447 x_includes
="$ac_optarg" ;;
449 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
450 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
451 ac_prev
=x_libraries
;;
452 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
453 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
454 x_libraries
="$ac_optarg" ;;
456 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
460 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
461 echo "configure: warning: $ac_option: invalid host type" 1>&2
463 if test "x$nonopt" != xNONE
; then
464 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
472 if test -n "$ac_prev"; then
473 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
476 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
478 # File descriptor usage:
481 # 2 errors and warnings
482 # 3 some systems may open it to /dev/tty
483 # 4 used on the Kubota Titan
484 # 6 checking for... messages and results
485 # 5 compiler messages saved in config.log
486 if test "$silent" = yes; then
494 This file contains any messages produced by compilers while
495 running configure, to aid debugging if configure makes a mistake.
498 # Strip out --no-create and --no-recursion so they do not pile up.
499 # Also quote any args containing shell metacharacters.
504 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
505 |
--no-cr |
--no-c) ;;
506 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
507 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
508 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
509 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
510 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
515 # Only set these to C if already set. These must not be set unconditionally
516 # because not all systems understand e.g. LANG=C (notably SCO).
517 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
518 # Non-C LC_CTYPE values break the ctype check.
519 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
520 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
521 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
522 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
524 # confdefs.h avoids OS command line length limits that DEFS can exceed.
525 rm -rf conftest
* confdefs.h
526 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
529 # A filename unique to this package, relative to the directory that
530 # configure is in, which we can look for to find out if srcdir is correct.
531 ac_unique_file
=include
/includes.h
533 # Find the source files, if location was not specified.
534 if test -z "$srcdir"; then
535 ac_srcdir_defaulted
=yes
536 # Try the directory containing this script, then its parent.
538 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
539 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
541 if test ! -r $srcdir/$ac_unique_file; then
545 ac_srcdir_defaulted
=no
547 if test ! -r $srcdir/$ac_unique_file; then
548 if test "$ac_srcdir_defaulted" = yes; then
549 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
551 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
554 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
556 # Prefer explicitly selected file to automatically selected ones.
557 if test -z "$CONFIG_SITE"; then
558 if test "x$prefix" != xNONE
; then
559 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
561 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
564 for ac_site_file
in $CONFIG_SITE; do
565 if test -r "$ac_site_file"; then
566 echo "loading site script $ac_site_file"
571 if test -r "$cache_file"; then
572 echo "loading cache $cache_file"
575 echo "creating cache $cache_file"
580 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
581 ac_cpp
='$CPP $CPPFLAGS'
582 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
583 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
584 cross_compiling
=$ac_cv_prog_cc_cross
588 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
589 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
590 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
597 ac_n
= ac_c
='\c' ac_t
=
602 # we want to be compatibe with older versions of Samba
615 # compile with optimisation and without debugging by default
616 CFLAGS
=${CFLAGS-"-O"}
618 # Extract the first word of "gcc", so it can be a program name with args.
619 set dummy gcc
; ac_word
=$2
620 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
621 echo "configure:622: checking for $ac_word" >&5
622 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
623 echo $ac_n "(cached) $ac_c" 1>&6
625 if test -n "$CC"; then
626 ac_cv_prog_CC
="$CC" # Let the user override the test.
628 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
630 for ac_dir
in $ac_dummy; do
631 test -z "$ac_dir" && ac_dir
=.
632 if test -f $ac_dir/$ac_word; then
641 if test -n "$CC"; then
642 echo "$ac_t""$CC" 1>&6
644 echo "$ac_t""no" 1>&6
647 if test -z "$CC"; then
648 # Extract the first word of "cc", so it can be a program name with args.
649 set dummy cc
; ac_word
=$2
650 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
651 echo "configure:652: checking for $ac_word" >&5
652 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
653 echo $ac_n "(cached) $ac_c" 1>&6
655 if test -n "$CC"; then
656 ac_cv_prog_CC
="$CC" # Let the user override the test.
658 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
661 for ac_dir
in $ac_dummy; do
662 test -z "$ac_dir" && ac_dir
=.
663 if test -f $ac_dir/$ac_word; then
664 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
673 if test $ac_prog_rejected = yes; then
674 # We found a bogon in the path, so make sure we never use it.
675 set dummy
$ac_cv_prog_CC
677 if test $# -gt 0; then
678 # We chose a different compiler from the bogus one.
679 # However, it has the same basename, so the bogon will be chosen
680 # first if we set CC to just the basename; use the full file name.
682 set dummy
"$ac_dir/$ac_word" "$@"
690 if test -n "$CC"; then
691 echo "$ac_t""$CC" 1>&6
693 echo "$ac_t""no" 1>&6
696 if test -z "$CC"; then
699 # Extract the first word of "cl", so it can be a program name with args.
700 set dummy cl
; ac_word
=$2
701 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
702 echo "configure:703: checking for $ac_word" >&5
703 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
704 echo $ac_n "(cached) $ac_c" 1>&6
706 if test -n "$CC"; then
707 ac_cv_prog_CC
="$CC" # Let the user override the test.
709 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
711 for ac_dir
in $ac_dummy; do
712 test -z "$ac_dir" && ac_dir
=.
713 if test -f $ac_dir/$ac_word; then
722 if test -n "$CC"; then
723 echo "$ac_t""$CC" 1>&6
725 echo "$ac_t""no" 1>&6
730 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
733 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
734 echo "configure:735: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
737 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
738 ac_cpp
='$CPP $CPPFLAGS'
739 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
740 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
741 cross_compiling
=$ac_cv_prog_cc_cross
743 cat > conftest.
$ac_ext << EOF
745 #line 746 "configure"
746 #include "confdefs.h"
750 if { (eval echo configure
:751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
751 ac_cv_prog_cc_works
=yes
752 # If we can't run a trivial program, we are probably using a cross compiler.
753 if (.
/conftest
; exit) 2>/dev
/null
; then
754 ac_cv_prog_cc_cross
=no
756 ac_cv_prog_cc_cross
=yes
759 echo "configure: failed program was:" >&5
760 cat conftest.
$ac_ext >&5
761 ac_cv_prog_cc_works
=no
765 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
766 ac_cpp
='$CPP $CPPFLAGS'
767 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
768 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
769 cross_compiling
=$ac_cv_prog_cc_cross
771 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
772 if test $ac_cv_prog_cc_works = no
; then
773 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
775 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
776 echo "configure:777: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
777 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
778 cross_compiling
=$ac_cv_prog_cc_cross
780 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
781 echo "configure:782: checking whether we are using GNU C" >&5
782 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
783 echo $ac_n "(cached) $ac_c" 1>&6
785 cat > conftest.c
<<EOF
790 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:791: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
797 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
799 if test $ac_cv_prog_gcc = yes; then
805 ac_test_CFLAGS
="${CFLAGS+set}"
806 ac_save_CFLAGS
="$CFLAGS"
808 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
809 echo "configure:810: checking whether ${CC-cc} accepts -g" >&5
810 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
811 echo $ac_n "(cached) $ac_c" 1>&6
813 echo 'void f(){}' > conftest.c
814 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
823 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
824 if test "$ac_test_CFLAGS" = set; then
825 CFLAGS
="$ac_save_CFLAGS"
826 elif test $ac_cv_prog_cc_g = yes; then
827 if test "$GCC" = yes; then
833 if test "$GCC" = yes; then
841 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
842 if test -f $ac_dir/install-sh
; then
844 ac_install_sh
="$ac_aux_dir/install-sh -c"
846 elif test -f $ac_dir/install.sh
; then
848 ac_install_sh
="$ac_aux_dir/install.sh -c"
852 if test -z "$ac_aux_dir"; then
853 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
855 ac_config_guess
=$ac_aux_dir/config.guess
856 ac_config_sub
=$ac_aux_dir/config.sub
857 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
859 # Find a good install program. We prefer a C program (faster),
860 # so one script is as good as another. But avoid the broken or
861 # incompatible versions:
862 # SysV /etc/install, /usr/sbin/install
863 # SunOS /usr/etc/install
866 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
867 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
868 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
869 # ./install, which can be erroneously created by make from ./install.sh.
870 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
871 echo "configure:872: checking for a BSD compatible install" >&5
872 if test -z "$INSTALL"; then
873 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
874 echo $ac_n "(cached) $ac_c" 1>&6
876 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
877 for ac_dir
in $PATH; do
878 # Account for people who put trailing slashes in PATH elements.
880 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
882 # OSF1 and SCO ODT 3.0 have their own names for install.
883 # Don't use installbsd from OSF since it installs stuff as root
885 for ac_prog
in ginstall scoinst
install; do
886 if test -f $ac_dir/$ac_prog; then
887 if test $ac_prog = install &&
888 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
889 # AIX install. It has an incompatible calling convention.
892 ac_cv_path_install
="$ac_dir/$ac_prog -c"
903 if test "${ac_cv_path_install+set}" = set; then
904 INSTALL
="$ac_cv_path_install"
906 # As a last resort, use the slow shell script. We don't cache a
907 # path for INSTALL within a source directory, because that will
908 # break other packages using the cache if that directory is
909 # removed, or if the path is relative.
910 INSTALL
="$ac_install_sh"
913 echo "$ac_t""$INSTALL" 1>&6
915 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
916 # It thinks the first close brace ends the variable substitution.
917 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
919 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
921 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
923 for ac_prog
in gawk mawk nawk
awk
925 # Extract the first word of "$ac_prog", so it can be a program name with args.
926 set dummy
$ac_prog; ac_word
=$2
927 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
928 echo "configure:929: checking for $ac_word" >&5
929 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
930 echo $ac_n "(cached) $ac_c" 1>&6
932 if test -n "$AWK"; then
933 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
935 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
937 for ac_dir
in $ac_dummy; do
938 test -z "$ac_dir" && ac_dir
=.
939 if test -f $ac_dir/$ac_word; then
940 ac_cv_prog_AWK
="$ac_prog"
947 AWK
="$ac_cv_prog_AWK"
948 if test -n "$AWK"; then
949 echo "$ac_t""$AWK" 1>&6
951 echo "$ac_t""no" 1>&6
954 test -n "$AWK" && break
957 # Check whether --enable-shared or --disable-shared was given.
958 if test "${enable_shared+set}" = set; then
959 enableval
="$enable_shared"
962 yes) enable_shared
=yes ;;
963 no
) enable_shared
=no
;;
966 # Look at the argument we got. We use all the common list separators.
967 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
968 for pkg
in $enableval; do
969 if test "X$pkg" = "X$p"; then
980 # Check whether --enable-static or --disable-static was given.
981 if test "${enable_static+set}" = set; then
982 enableval
="$enable_static"
985 yes) enable_static
=yes ;;
986 no
) enable_static
=no
;;
989 # Look at the argument we got. We use all the common list separators.
990 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
991 for pkg
in $enableval; do
992 if test "X$pkg" = "X$p"; then
1003 # Check whether --enable-fast-install or --disable-fast-install was given.
1004 if test "${enable_fast_install+set}" = set; then
1005 enableval
="$enable_fast_install"
1006 p
=${PACKAGE-default}
1007 case "$enableval" in
1008 yes) enable_fast_install
=yes ;;
1009 no
) enable_fast_install
=no
;;
1011 enable_fast_install
=no
1012 # Look at the argument we got. We use all the common list separators.
1013 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1014 for pkg
in $enableval; do
1015 if test "X$pkg" = "X$p"; then
1016 enable_fast_install
=yes
1023 enable_fast_install
=yes
1027 # Make sure we can run config.sub.
1028 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1029 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1032 echo $ac_n "checking host system type""... $ac_c" 1>&6
1033 echo "configure:1034: checking host system type" >&5
1036 case "$host_alias" in
1040 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1041 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1043 *) host_alias
=$nonopt ;;
1047 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1048 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1049 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1050 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1051 echo "$ac_t""$host" 1>&6
1053 echo $ac_n "checking build system type""... $ac_c" 1>&6
1054 echo "configure:1055: checking build system type" >&5
1057 case "$build_alias" in
1060 NONE
) build_alias
=$host_alias ;;
1061 *) build_alias
=$nonopt ;;
1065 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1066 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1067 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1068 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1069 echo "$ac_t""$build" 1>&6
1071 # Extract the first word of "ranlib", so it can be a program name with args.
1072 set dummy ranlib
; ac_word
=$2
1073 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1074 echo "configure:1075: checking for $ac_word" >&5
1075 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1076 echo $ac_n "(cached) $ac_c" 1>&6
1078 if test -n "$RANLIB"; then
1079 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1081 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1083 for ac_dir
in $ac_dummy; do
1084 test -z "$ac_dir" && ac_dir
=.
1085 if test -f $ac_dir/$ac_word; then
1086 ac_cv_prog_RANLIB
="ranlib"
1091 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1094 RANLIB
="$ac_cv_prog_RANLIB"
1095 if test -n "$RANLIB"; then
1096 echo "$ac_t""$RANLIB" 1>&6
1098 echo "$ac_t""no" 1>&6
1101 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1102 if test "${with_gnu_ld+set}" = set; then
1103 withval
="$with_gnu_ld"
1104 test "$withval" = no || with_gnu_ld
=yes
1110 if test "$ac_cv_prog_gcc" = yes; then
1111 # Check if gcc -print-prog-name=ld gives a path.
1112 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1113 echo "configure:1114: checking for ld used by GCC" >&5
1114 ac_prog
=`($CC -print-prog-name=ld) 2>&5`
1116 # Accept absolute paths.
1117 [\\/]* |
[A-Za-z
]:[\\/]*)
1118 re_direlt
='/[^/][^/]*/\.\./'
1119 # Canonicalize the path of ld
1120 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
1121 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
1122 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
1124 test -z "$LD" && LD
="$ac_prog"
1127 # If it fails, then pretend we aren't using GCC.
1131 # If it is relative, then search for the first ld in PATH.
1135 elif test "$with_gnu_ld" = yes; then
1136 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1137 echo "configure:1138: checking for GNU ld" >&5
1139 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1140 echo "configure:1141: checking for non-GNU ld" >&5
1142 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1143 echo $ac_n "(cached) $ac_c" 1>&6
1145 if test -z "$LD"; then
1146 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1147 for ac_dir
in $PATH; do
1148 test -z "$ac_dir" && ac_dir
=.
1149 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
1150 ac_cv_path_LD
="$ac_dir/$ac_prog"
1151 # Check to see if the program is GNU ld. I'd rather use --version,
1152 # but apparently some GNU ld's only accept -v.
1153 # Break only if it was the GNU/non-GNU ld that we prefer.
1154 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
1155 test "$with_gnu_ld" != no
&& break
1157 test "$with_gnu_ld" != yes && break
1163 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
1168 if test -n "$LD"; then
1169 echo "$ac_t""$LD" 1>&6
1171 echo "$ac_t""no" 1>&6
1173 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1174 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1175 echo "configure:1176: checking if the linker ($LD) is GNU ld" >&5
1176 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1177 echo $ac_n "(cached) $ac_c" 1>&6
1179 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1180 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1181 ac_cv_prog_gnu_ld
=yes
1183 ac_cv_prog_gnu_ld
=no
1187 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1190 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1191 echo "configure:1192: checking for BSD-compatible nm" >&5
1192 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1193 echo $ac_n "(cached) $ac_c" 1>&6
1195 if test -n "$NM"; then
1196 # Let the user override the test.
1199 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1200 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
1201 test -z "$ac_dir" && ac_dir
=.
1202 if test -f $ac_dir/nm ||
test -f $ac_dir/nm
$ac_exeext ; then
1203 # Check to see if the nm accepts a BSD-compat flag.
1204 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1205 # nm: unknown option "B" ignored
1206 if ($ac_dir/nm
-B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1207 ac_cv_path_NM
="$ac_dir/nm -B"
1209 elif ($ac_dir/nm
-p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1210 ac_cv_path_NM
="$ac_dir/nm -p"
1213 ac_cv_path_NM
=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1214 continue # so that we can try to find one that supports BSD flags
1219 test -z "$ac_cv_path_NM" && ac_cv_path_NM
=nm
1224 echo "$ac_t""$NM" 1>&6
1226 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1227 echo "configure:1228: checking whether ln -s works" >&5
1228 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1229 echo $ac_n "(cached) $ac_c" 1>&6
1232 if ln -s X conftestdata
2>/dev
/null
1235 ac_cv_prog_LN_S
="ln -s"
1240 LN_S
="$ac_cv_prog_LN_S"
1241 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1242 echo "$ac_t""yes" 1>&6
1244 echo "$ac_t""no" 1>&6
1249 NONE
) lt_target
="$host" ;;
1250 *) lt_target
="$target" ;;
1253 # Check for any special flags to pass to ltconfig.
1254 libtool_flags
="--cache-file=$cache_file"
1255 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
1256 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
1257 test "$enable_fast_install" = no
&& libtool_flags
="$libtool_flags --disable-fast-install"
1258 test "$ac_cv_prog_gcc" = yes && libtool_flags
="$libtool_flags --with-gcc"
1259 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
1262 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1263 if test "${enable_libtool_lock+set}" = set; then
1264 enableval
="$enable_libtool_lock"
1268 test "x$enable_libtool_lock" = xno
&& libtool_flags
="$libtool_flags --disable-lock"
1269 test x
"$silent" = xyes
&& libtool_flags
="$libtool_flags --silent"
1271 # Some flags need to be propagated to the compiler or linker for good
1273 case "$lt_target" in
1275 # Find out which ABI we are using.
1276 echo '#line 1277 "configure"' > conftest.
$ac_ext
1277 if { (eval echo configure
:1278: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1278 case "`/usr/bin/file conftest.o`" in
1294 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1295 SAVE_CFLAGS
="$CFLAGS"
1296 CFLAGS
="$CFLAGS -belf"
1297 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1298 echo "configure:1299: checking whether the C compiler needs -belf" >&5
1299 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1300 echo $ac_n "(cached) $ac_c" 1>&6
1302 cat > conftest.
$ac_ext <<EOF
1303 #line 1304 "configure"
1304 #include "confdefs.h"
1310 if { (eval echo configure
:1311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1312 lt_cv_cc_needs_belf
=yes
1314 echo "configure: failed program was:" >&5
1315 cat conftest.
$ac_ext >&5
1317 lt_cv_cc_needs_belf
=no
1322 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1323 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
1324 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1325 CFLAGS
="$SAVE_CFLAGS"
1333 # Save cache, so that ltconfig can load it
1334 cat > confcache
<<\EOF
1335 # This file is a shell script that caches the results of configure
1336 # tests run on this system so they can be shared between configure
1337 # scripts and configure runs. It is not useful on other systems.
1338 # If it contains results you don't want to keep, you may remove or edit it.
1340 # By default, configure uses ./config.cache as the cache file,
1341 # creating it if it does not exist already. You can give configure
1342 # the --cache-file=FILE option to use a different cache file; that is
1343 # what configure does when it calls configure scripts in
1344 # subdirectories, so they share the cache.
1345 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1346 # config.status only pays attention to the cache file if you give it the
1347 # --recheck option to rerun configure.
1350 # The following way of writing the cache mishandles newlines in values,
1351 # but we know of no workaround that is simple, portable, and efficient.
1352 # So, don't put newlines in cache variables' values.
1353 # Ultrix sh set writes to stderr and can't be redirected directly,
1354 # and sets the high bit in the cache file unless we assign to the vars.
1356 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1358 # `set' does not quote correctly, so add quotes (double-quote substitution
1359 # turns \\\\ into \\, and sed turns \\ into \).
1361 -e "s/'/'\\\\''/g" \
1362 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1365 # `set' quotes correctly as required by POSIX, so do not add quotes.
1366 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1369 if cmp -s $cache_file confcache
; then
1372 if test -w $cache_file; then
1373 echo "updating cache $cache_file"
1374 cat confcache
> $cache_file
1376 echo "not updating unwritable cache $cache_file"
1382 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1383 CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
1384 LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
1385 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" \
1386 DLLTOOL
="$DLLTOOL" AS
="$AS" OBJDUMP
="$OBJDUMP" \
1387 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
1388 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh
$lt_target \
1389 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1391 # Reload cache, that may have been modified by ltconfig
1392 if test -r "$cache_file"; then
1393 echo "loading cache $cache_file"
1396 echo "creating cache $cache_file"
1401 # This can be used to rebuild libtool when needed
1402 LIBTOOL_DEPS
="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1404 # Always use our own libtool.
1405 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
1407 # Redirect the config.log output again, so that the ltconfig log is not
1408 # clobbered by the next message.
1409 exec 5>>.
/config.log
1413 if test "x$CC" != xcc
; then
1414 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1415 echo "configure:1416: checking whether $CC and cc understand -c and -o together" >&5
1417 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1418 echo "configure:1419: checking whether cc understands -c and -o together" >&5
1420 set dummy
$CC; ac_cc
="`echo $2 |
1421 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1422 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1423 echo $ac_n "(cached) $ac_c" 1>&6
1425 echo 'foo(){}' > conftest.c
1426 # Make sure it works both with $CC and with simple cc.
1427 # We do the test twice because some compilers refuse to overwrite an
1428 # existing .o file with -o, though they will create one.
1429 ac_try
='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1430 if { (eval echo configure
:1431: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1431 test -f conftest.o
&& { (eval echo configure
:1432: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1433 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
1434 if test "x$CC" != xcc
; then
1435 # Test first that cc exists at all.
1436 if { ac_try
='cc -c conftest.c 1>&5'; { (eval echo configure
:1437: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1437 ac_try
='cc -c conftest.c -o conftest.o 1>&5'
1438 if { (eval echo configure
:1439: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1439 test -f conftest.o
&& { (eval echo configure
:1440: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1444 # cc exists but doesn't like -o.
1445 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1450 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1455 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1456 echo "$ac_t""yes" 1>&6
1458 echo "$ac_t""no" 1>&6
1459 cat >> confdefs.h
<<\EOF
1460 #define NO_MINUS_C_MINUS_O 1
1465 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1472 echo $ac_n "checking that the C compiler understands volatile""... $ac_c" 1>&6
1473 echo "configure:1474: checking that the C compiler understands volatile" >&5
1474 if eval "test \"`echo '$''{'samba_cv_volatile'+set}'`\" = set"; then
1475 echo $ac_n "(cached) $ac_c" 1>&6
1478 cat > conftest.
$ac_ext <<EOF
1479 #line 1480 "configure"
1480 #include "confdefs.h"
1481 #include <sys/types.h>
1486 if { (eval echo configure
:1487: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1488 samba_cv_volatile
=yes
1490 echo "configure: failed program was:" >&5
1491 cat conftest.
$ac_ext >&5
1493 samba_cv_volatile
=no
1498 echo "$ac_t""$samba_cv_volatile" 1>&6
1499 if test x
"$samba_cv_volatile" = x
"yes"; then
1500 cat >> confdefs.h
<<\EOF
1501 #define HAVE_VOLATILE 1
1509 # Do some error checking and defaulting for the host and target type.
1511 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1514 # 1. You are not allowed to specify --host, --target, and nonopt at the
1516 # 2. Host defaults to nonopt.
1517 # 3. If nonopt is not specified, then host defaults to the current host,
1518 # as determined by config.guess.
1519 # 4. Target and build default to nonopt.
1520 # 5. If nonopt is not specified, then target and build default to host.
1522 # The aliases save the names the user supplied, while $host etc.
1523 # will get canonicalized.
1524 case $host---$target---$nonopt in
1525 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1526 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1530 # Make sure we can run config.sub.
1531 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1532 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1535 echo $ac_n "checking host system type""... $ac_c" 1>&6
1536 echo "configure:1537: checking host system type" >&5
1539 case "$host_alias" in
1543 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1544 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1546 *) host_alias
=$nonopt ;;
1550 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1551 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1552 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1553 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1554 echo "$ac_t""$host" 1>&6
1556 echo $ac_n "checking target system type""... $ac_c" 1>&6
1557 echo "configure:1558: checking target system type" >&5
1559 target_alias
=$target
1560 case "$target_alias" in
1563 NONE
) target_alias
=$host_alias ;;
1564 *) target_alias
=$nonopt ;;
1568 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1569 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1570 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1571 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1572 echo "$ac_t""$target" 1>&6
1574 echo $ac_n "checking build system type""... $ac_c" 1>&6
1575 echo "configure:1576: checking build system type" >&5
1578 case "$build_alias" in
1581 NONE
) build_alias
=$host_alias ;;
1582 *) build_alias
=$nonopt ;;
1586 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1587 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1588 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1589 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1590 echo "$ac_t""$build" 1>&6
1592 test "$host_alias" != "$target_alias" &&
1593 test "$program_prefix$program_suffix$program_transform_name" = \
1595 program_prefix
=${target_alias}-
1599 *irix
*) cat >> confdefs.h
<<\EOF
1600 #include <standards.h>
1608 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
1609 echo "configure:1610: checking config.cache system type" >&5
1610 if { test x
"${ac_cv_host_system_type+set}" = x
"set" &&
1611 test x
"$ac_cv_host_system_type" != x
"$host"; } ||
1612 { test x
"${ac_cv_build_system_type+set}" = x
"set" &&
1613 test x
"$ac_cv_build_system_type" != x
"$build"; } ||
1614 { test x
"${ac_cv_target_system_type+set}" = x
"set" &&
1615 test x
"$ac_cv_target_system_type" != x
"$target"; }; then
1616 echo "$ac_t""different" 1>&6
1617 { echo "configure: error: "you must remove config.cache and restart configure
"" 1>&2; exit 1; }
1619 echo "$ac_t""same" 1>&6
1621 ac_cv_host_system_type
="$host"
1622 ac_cv_build_system_type
="$build"
1623 ac_cv_target_system_type
="$target"
1627 # Config CPPFLAG settings for strange OS's that must be set
1628 # before other tests.
1631 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1633 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1634 echo "configure:1635: checking whether ${CC-cc} accepts -Ae" >&5
1635 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1636 echo $ac_n "(cached) $ac_c" 1>&6
1638 echo 'void f(){}' > conftest.c
1639 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1640 ac_cv_prog_cc_Ae
=yes
1648 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1649 if test $ac_cv_prog_cc_Ae = yes; then
1650 CPPFLAGS
="$CPPFLAGS -Ae"
1653 # Defines needed for HPUX support.
1654 # HPUX has bigcrypt but (sometimes?) doesn't use it for
1655 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
1659 CPPFLAGS
="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE"
1660 cat >> confdefs.h
<<\EOF
1661 #define USE_BOTH_CRYPT_CALLS 1
1666 CPPFLAGS
="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE"
1667 cat >> confdefs.h
<<\EOF
1668 #define USE_BOTH_CRYPT_CALLS 1
1675 # AIX4.x doesn't even admit to having large
1676 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1679 echo "$ac_t""enabling large file support" 1>&6
1680 CPPFLAGS
="$CPPFLAGS -D_LARGE_FILES"
1683 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
1684 # to the existance of large files..
1685 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
1686 # recommendations on large file support, however it makes the
1687 # compile work using gcc 2.7 and 2.8, whereas using the Sun
1688 # recommendation makes the compile fail on gcc2.7. JRA.
1693 echo "$ac_t""enabling large file support" 1>&6
1694 if test "$ac_cv_prog_gcc" = yes; then
1695 ${CC-cc} -v >conftest.c
2>&1
1696 ac_cv_gcc_compiler_version_number
=`grep 'gcc version' conftest.c`
1698 case "$ac_cv_gcc_compiler_version_number" in
1699 *"gcc version 2.6"*|
*"gcc version 2.7"*)
1700 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE64_SOURCE"
1703 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1707 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1713 # Tests needed for SINIX large file support.
1716 if test $host = mips-sni-sysv4
; then
1717 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1718 echo "configure:1719: checking for LFS support" >&5
1719 old_CPPFLAGS
="$CPPFLAGS"
1720 CPPFLAGS
="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1721 if test "$cross_compiling" = yes; then
1722 SINIX_LFS_SUPPORT
=cross
1724 cat > conftest.
$ac_ext <<EOF
1725 #line 1726 "configure"
1726 #include "confdefs.h"
1730 #if _LFS64_LARGEFILE == 1
1737 if { (eval echo configure
:1738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1739 SINIX_LFS_SUPPORT
=yes
1741 echo "configure: failed program was:" >&5
1742 cat conftest.
$ac_ext >&5
1744 SINIX_LFS_SUPPORT
=no
1749 CPPFLAGS
="$old_CPPFLAGS"
1750 if test x
$SINIX_LFS_SUPPORT = xyes
; then
1751 CPPFLAGS
="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1752 CFLAGS
="`getconf LFS64_CFLAGS` $CFLAGS"
1753 LDFLAGS
="`getconf LFS64_LDFLAGS` $LDFLAGS"
1754 LIBS
="`getconf LFS64_LIBS` $LIBS"
1756 echo "$ac_t""$SINIX_LFS_SUPPORT" 1>&6
1761 # Tests needed for glibc 2.1 large file support.
1764 echo "$ac_t""disabling large file support for glibc2.1 on Linux" 1>&6
1767 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1768 echo "configure:1769: checking for LFS support" >&5
1769 old_CPPFLAGS
="$CPPFLAGS"
1770 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1771 if test "$cross_compiling" = yes; then
1772 GLIBC_LFS_SUPPORT
=cross
1774 cat > conftest.
$ac_ext <<EOF
1775 #line 1776 "configure"
1776 #include "confdefs.h"
1780 #if _LFS64_LARGEFILE == 1
1787 if { (eval echo configure
:1788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1789 GLIBC_LFS_SUPPORT
=yes
1791 echo "configure: failed program was:" >&5
1792 cat conftest.
$ac_ext >&5
1794 GLIBC_LFS_SUPPORT
=no
1799 CPPFLAGS
="$old_CPPFLAGS"
1800 if test x
$GLIBC_LFS_SUPPORT = xyes
; then
1801 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1803 echo "$ac_t""$GLIBC_LFS_SUPPORT" 1>&6
1808 echo $ac_n "checking for inline""... $ac_c" 1>&6
1809 echo "configure:1810: checking for inline" >&5
1810 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1811 echo $ac_n "(cached) $ac_c" 1>&6
1814 for ac_kw
in inline __inline__ __inline
; do
1815 cat > conftest.
$ac_ext <<EOF
1816 #line 1817 "configure"
1817 #include "confdefs.h"
1823 if { (eval echo configure
:1824: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1825 ac_cv_c_inline
=$ac_kw; break
1827 echo "configure: failed program was:" >&5
1828 cat conftest.
$ac_ext >&5
1835 echo "$ac_t""$ac_cv_c_inline" 1>&6
1836 case "$ac_cv_c_inline" in
1838 no
) cat >> confdefs.h
<<\EOF
1842 *) cat >> confdefs.h
<<EOF
1843 #define inline $ac_cv_c_inline
1848 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1849 echo "configure:1850: checking how to run the C preprocessor" >&5
1850 # On Suns, sometimes $CPP names a directory.
1851 if test -n "$CPP" && test -d "$CPP"; then
1854 if test -z "$CPP"; then
1855 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1856 echo $ac_n "(cached) $ac_c" 1>&6
1858 # This must be in double quotes, not single quotes, because CPP may get
1859 # substituted into the Makefile and "${CC-cc}" will confuse make.
1861 # On the NeXT, cc -E runs the code through the compiler's parser,
1862 # not just through cpp.
1863 cat > conftest.
$ac_ext <<EOF
1864 #line 1865 "configure"
1865 #include "confdefs.h"
1869 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1870 { (eval echo configure
:1871: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1871 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1872 if test -z "$ac_err"; then
1876 echo "configure: failed program was:" >&5
1877 cat conftest.
$ac_ext >&5
1879 CPP
="${CC-cc} -E -traditional-cpp"
1880 cat > conftest.
$ac_ext <<EOF
1881 #line 1882 "configure"
1882 #include "confdefs.h"
1886 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1887 { (eval echo configure
:1888: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1888 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1889 if test -z "$ac_err"; then
1893 echo "configure: failed program was:" >&5
1894 cat conftest.
$ac_ext >&5
1896 CPP
="${CC-cc} -nologo -E"
1897 cat > conftest.
$ac_ext <<EOF
1898 #line 1899 "configure"
1899 #include "confdefs.h"
1903 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1904 { (eval echo configure
:1905: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1905 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1906 if test -z "$ac_err"; then
1910 echo "configure: failed program was:" >&5
1911 cat conftest.
$ac_ext >&5
1920 ac_cv_prog_CPP
="$CPP"
1922 CPP
="$ac_cv_prog_CPP"
1924 ac_cv_prog_CPP
="$CPP"
1926 echo "$ac_t""$CPP" 1>&6
1928 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1929 echo "configure:1930: checking for ANSI C header files" >&5
1930 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1931 echo $ac_n "(cached) $ac_c" 1>&6
1933 cat > conftest.
$ac_ext <<EOF
1934 #line 1935 "configure"
1935 #include "confdefs.h"
1941 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1942 { (eval echo configure
:1943: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1943 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1944 if test -z "$ac_err"; then
1946 ac_cv_header_stdc
=yes
1949 echo "configure: failed program was:" >&5
1950 cat conftest.
$ac_ext >&5
1952 ac_cv_header_stdc
=no
1956 if test $ac_cv_header_stdc = yes; then
1957 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1958 cat > conftest.
$ac_ext <<EOF
1959 #line 1960 "configure"
1960 #include "confdefs.h"
1963 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1964 egrep "memchr" >/dev
/null
2>&1; then
1968 ac_cv_header_stdc
=no
1974 if test $ac_cv_header_stdc = yes; then
1975 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1976 cat > conftest.
$ac_ext <<EOF
1977 #line 1978 "configure"
1978 #include "confdefs.h"
1981 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1982 egrep "free" >/dev
/null
2>&1; then
1986 ac_cv_header_stdc
=no
1992 if test $ac_cv_header_stdc = yes; then
1993 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1994 if test "$cross_compiling" = yes; then
1997 cat > conftest.
$ac_ext <<EOF
1998 #line 1999 "configure"
1999 #include "confdefs.h"
2001 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2002 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2003 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2004 int main () { int i; for (i = 0; i < 256; i++)
2005 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2009 if { (eval echo configure
:2010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2013 echo "configure: failed program was:" >&5
2014 cat conftest.
$ac_ext >&5
2016 ac_cv_header_stdc
=no
2024 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2025 if test $ac_cv_header_stdc = yes; then
2026 cat >> confdefs.h
<<\EOF
2027 #define STDC_HEADERS 1
2033 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
2035 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2036 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
2037 echo "configure:2038: checking for $ac_hdr that defines DIR" >&5
2038 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
2039 echo $ac_n "(cached) $ac_c" 1>&6
2041 cat > conftest.
$ac_ext <<EOF
2042 #line 2043 "configure"
2043 #include "confdefs.h"
2044 #include <sys/types.h>
2050 if { (eval echo configure
:2051: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2052 eval "ac_cv_header_dirent_$ac_safe=yes"
2054 echo "configure: failed program was:" >&5
2055 cat conftest.
$ac_ext >&5
2057 eval "ac_cv_header_dirent_$ac_safe=no"
2061 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2062 echo "$ac_t""yes" 1>&6
2063 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2064 cat >> confdefs.h
<<EOF
2065 #define $ac_tr_hdr 1
2067 ac_header_dirent
=$ac_hdr; break
2069 echo "$ac_t""no" 1>&6
2072 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2073 if test $ac_header_dirent = dirent.h
; then
2074 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2075 echo "configure:2076: checking for opendir in -ldir" >&5
2076 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2077 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2078 echo $ac_n "(cached) $ac_c" 1>&6
2080 ac_save_LIBS
="$LIBS"
2082 cat > conftest.
$ac_ext <<EOF
2083 #line 2084 "configure"
2084 #include "confdefs.h"
2085 /* Override any gcc2 internal prototype to avoid an error. */
2086 /* We use char because int might match the return type of a gcc2
2087 builtin and then its argument prototype would still apply. */
2094 if { (eval echo configure
:2095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2096 eval "ac_cv_lib_$ac_lib_var=yes"
2098 echo "configure: failed program was:" >&5
2099 cat conftest.
$ac_ext >&5
2101 eval "ac_cv_lib_$ac_lib_var=no"
2104 LIBS
="$ac_save_LIBS"
2107 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2108 echo "$ac_t""yes" 1>&6
2111 echo "$ac_t""no" 1>&6
2115 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2116 echo "configure:2117: checking for opendir in -lx" >&5
2117 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2118 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2119 echo $ac_n "(cached) $ac_c" 1>&6
2121 ac_save_LIBS
="$LIBS"
2123 cat > conftest.
$ac_ext <<EOF
2124 #line 2125 "configure"
2125 #include "confdefs.h"
2126 /* Override any gcc2 internal prototype to avoid an error. */
2127 /* We use char because int might match the return type of a gcc2
2128 builtin and then its argument prototype would still apply. */
2135 if { (eval echo configure
:2136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2137 eval "ac_cv_lib_$ac_lib_var=yes"
2139 echo "configure: failed program was:" >&5
2140 cat conftest.
$ac_ext >&5
2142 eval "ac_cv_lib_$ac_lib_var=no"
2145 LIBS
="$ac_save_LIBS"
2148 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2149 echo "$ac_t""yes" 1>&6
2152 echo "$ac_t""no" 1>&6
2157 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2158 echo "configure:2159: checking whether time.h and sys/time.h may both be included" >&5
2159 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2160 echo $ac_n "(cached) $ac_c" 1>&6
2162 cat > conftest.
$ac_ext <<EOF
2163 #line 2164 "configure"
2164 #include "confdefs.h"
2165 #include <sys/types.h>
2166 #include <sys/time.h>
2172 if { (eval echo configure
:2173: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2174 ac_cv_header_time
=yes
2176 echo "configure: failed program was:" >&5
2177 cat conftest.
$ac_ext >&5
2179 ac_cv_header_time
=no
2184 echo "$ac_t""$ac_cv_header_time" 1>&6
2185 if test $ac_cv_header_time = yes; then
2186 cat >> confdefs.h
<<\EOF
2187 #define TIME_WITH_SYS_TIME 1
2192 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2193 echo "configure:2194: checking for sys/wait.h that is POSIX.1 compatible" >&5
2194 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2195 echo $ac_n "(cached) $ac_c" 1>&6
2197 cat > conftest.
$ac_ext <<EOF
2198 #line 2199 "configure"
2199 #include "confdefs.h"
2200 #include <sys/types.h>
2201 #include <sys/wait.h>
2203 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2206 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2211 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2214 if { (eval echo configure
:2215: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2216 ac_cv_header_sys_wait_h
=yes
2218 echo "configure: failed program was:" >&5
2219 cat conftest.
$ac_ext >&5
2221 ac_cv_header_sys_wait_h
=no
2226 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2227 if test $ac_cv_header_sys_wait_h = yes; then
2228 cat >> confdefs.h
<<\EOF
2229 #define HAVE_SYS_WAIT_H 1
2234 for ac_hdr
in arpa
/inet.h sys
/fcntl.h sys
/select.h fcntl.h sys
/time.h sys
/unistd.h
2236 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2237 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2238 echo "configure:2239: checking for $ac_hdr" >&5
2239 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2240 echo $ac_n "(cached) $ac_c" 1>&6
2242 cat > conftest.
$ac_ext <<EOF
2243 #line 2244 "configure"
2244 #include "confdefs.h"
2247 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2248 { (eval echo configure
:2249: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2249 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2250 if test -z "$ac_err"; then
2252 eval "ac_cv_header_$ac_safe=yes"
2255 echo "configure: failed program was:" >&5
2256 cat conftest.
$ac_ext >&5
2258 eval "ac_cv_header_$ac_safe=no"
2262 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2263 echo "$ac_t""yes" 1>&6
2264 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2265 cat >> confdefs.h
<<EOF
2266 #define $ac_tr_hdr 1
2270 echo "$ac_t""no" 1>&6
2274 for ac_hdr
in unistd.h utime.h grp.h sys
/id.h limits.h memory.h net
/if.h
2276 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2277 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2278 echo "configure:2279: checking for $ac_hdr" >&5
2279 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2280 echo $ac_n "(cached) $ac_c" 1>&6
2282 cat > conftest.
$ac_ext <<EOF
2283 #line 2284 "configure"
2284 #include "confdefs.h"
2287 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2288 { (eval echo configure
:2289: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2289 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2290 if test -z "$ac_err"; then
2292 eval "ac_cv_header_$ac_safe=yes"
2295 echo "configure: failed program was:" >&5
2296 cat conftest.
$ac_ext >&5
2298 eval "ac_cv_header_$ac_safe=no"
2302 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2303 echo "$ac_t""yes" 1>&6
2304 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2305 cat >> confdefs.h
<<EOF
2306 #define $ac_tr_hdr 1
2310 echo "$ac_t""no" 1>&6
2314 for ac_hdr
in compat.h rpc
/rpc.h rpcsvc
/nis.h rpcsvc
/yp_prot.h rpcsvc
/ypclnt.h
2316 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2317 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2318 echo "configure:2319: checking for $ac_hdr" >&5
2319 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2320 echo $ac_n "(cached) $ac_c" 1>&6
2322 cat > conftest.
$ac_ext <<EOF
2323 #line 2324 "configure"
2324 #include "confdefs.h"
2327 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2328 { (eval echo configure
:2329: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2329 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2330 if test -z "$ac_err"; then
2332 eval "ac_cv_header_$ac_safe=yes"
2335 echo "configure: failed program was:" >&5
2336 cat conftest.
$ac_ext >&5
2338 eval "ac_cv_header_$ac_safe=no"
2342 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2343 echo "$ac_t""yes" 1>&6
2344 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2345 cat >> confdefs.h
<<EOF
2346 #define $ac_tr_hdr 1
2350 echo "$ac_t""no" 1>&6
2354 for ac_hdr
in sys
/param.h ctype.h sys
/un.h sys
/wait.h sys
/resource.h sys
/ioctl.h sys
/mode.h
2356 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2357 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2358 echo "configure:2359: checking for $ac_hdr" >&5
2359 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2360 echo $ac_n "(cached) $ac_c" 1>&6
2362 cat > conftest.
$ac_ext <<EOF
2363 #line 2364 "configure"
2364 #include "confdefs.h"
2367 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2368 { (eval echo configure
:2369: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2369 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2370 if test -z "$ac_err"; then
2372 eval "ac_cv_header_$ac_safe=yes"
2375 echo "configure: failed program was:" >&5
2376 cat conftest.
$ac_ext >&5
2378 eval "ac_cv_header_$ac_safe=no"
2382 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2383 echo "$ac_t""yes" 1>&6
2384 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2385 cat >> confdefs.h
<<EOF
2386 #define $ac_tr_hdr 1
2390 echo "$ac_t""no" 1>&6
2394 for ac_hdr
in sys
/mman.h sys
/filio.h sys
/priv.h string.h
strings.h stdlib.h sys
/socket.h
2396 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2397 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2398 echo "configure:2399: checking for $ac_hdr" >&5
2399 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2400 echo $ac_n "(cached) $ac_c" 1>&6
2402 cat > conftest.
$ac_ext <<EOF
2403 #line 2404 "configure"
2404 #include "confdefs.h"
2407 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2408 { (eval echo configure
:2409: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2409 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2410 if test -z "$ac_err"; then
2412 eval "ac_cv_header_$ac_safe=yes"
2415 echo "configure: failed program was:" >&5
2416 cat conftest.
$ac_ext >&5
2418 eval "ac_cv_header_$ac_safe=no"
2422 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2423 echo "$ac_t""yes" 1>&6
2424 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2425 cat >> confdefs.h
<<EOF
2426 #define $ac_tr_hdr 1
2430 echo "$ac_t""no" 1>&6
2434 for ac_hdr
in sys
/mount.h sys
/vfs.h sys
/fs
/s5param.h sys
/filsys.h termios.h termio.h
2436 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2437 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2438 echo "configure:2439: checking for $ac_hdr" >&5
2439 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2440 echo $ac_n "(cached) $ac_c" 1>&6
2442 cat > conftest.
$ac_ext <<EOF
2443 #line 2444 "configure"
2444 #include "confdefs.h"
2447 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2448 { (eval echo configure
:2449: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2449 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2450 if test -z "$ac_err"; then
2452 eval "ac_cv_header_$ac_safe=yes"
2455 echo "configure: failed program was:" >&5
2456 cat conftest.
$ac_ext >&5
2458 eval "ac_cv_header_$ac_safe=no"
2462 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2463 echo "$ac_t""yes" 1>&6
2464 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2465 cat >> confdefs.h
<<EOF
2466 #define $ac_tr_hdr 1
2470 echo "$ac_t""no" 1>&6
2474 for ac_hdr
in sys
/termio.h sys
/statfs.h sys
/dustat.h sys
/statvfs.h stdarg.h sys
/sockio.h
2476 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2477 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2478 echo "configure:2479: checking for $ac_hdr" >&5
2479 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2480 echo $ac_n "(cached) $ac_c" 1>&6
2482 cat > conftest.
$ac_ext <<EOF
2483 #line 2484 "configure"
2484 #include "confdefs.h"
2487 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2488 { (eval echo configure
:2489: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2489 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2490 if test -z "$ac_err"; then
2492 eval "ac_cv_header_$ac_safe=yes"
2495 echo "configure: failed program was:" >&5
2496 cat conftest.
$ac_ext >&5
2498 eval "ac_cv_header_$ac_safe=no"
2502 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2503 echo "$ac_t""yes" 1>&6
2504 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2505 cat >> confdefs.h
<<EOF
2506 #define $ac_tr_hdr 1
2510 echo "$ac_t""no" 1>&6
2515 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
2516 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
2520 cat > conftest.
$ac_ext <<EOF
2521 #line 2522 "configure"
2522 #include "confdefs.h"
2528 if { (eval echo configure
:2529: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2530 ac_cv_header_shadow_h
=yes
2532 echo "configure: failed program was:" >&5
2533 cat conftest.
$ac_ext >&5
2535 ac_cv_header_shadow_h
=no
2538 if test x
"$ac_cv_header_shadow_h" = x
"yes"; then
2539 cat >> confdefs.h
<<\EOF
2540 #define HAVE_SHADOW_H 1
2546 for ac_hdr
in shadow.h netinet
/ip.h netinet
/tcp.h netinet
/in_systm.h netinet
/in_ip.h
2548 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2549 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2550 echo "configure:2551: checking for $ac_hdr" >&5
2551 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2552 echo $ac_n "(cached) $ac_c" 1>&6
2554 cat > conftest.
$ac_ext <<EOF
2555 #line 2556 "configure"
2556 #include "confdefs.h"
2559 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2560 { (eval echo configure
:2561: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2561 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2562 if test -z "$ac_err"; then
2564 eval "ac_cv_header_$ac_safe=yes"
2567 echo "configure: failed program was:" >&5
2568 cat conftest.
$ac_ext >&5
2570 eval "ac_cv_header_$ac_safe=no"
2574 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2575 echo "$ac_t""yes" 1>&6
2576 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2577 cat >> confdefs.h
<<EOF
2578 #define $ac_tr_hdr 1
2582 echo "$ac_t""no" 1>&6
2586 for ac_hdr
in nss.h sys
/security.h security
/pam_appl.h
2588 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2589 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2590 echo "configure:2591: checking for $ac_hdr" >&5
2591 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2592 echo $ac_n "(cached) $ac_c" 1>&6
2594 cat > conftest.
$ac_ext <<EOF
2595 #line 2596 "configure"
2596 #include "confdefs.h"
2599 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2600 { (eval echo configure
:2601: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2601 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2602 if test -z "$ac_err"; then
2604 eval "ac_cv_header_$ac_safe=yes"
2607 echo "configure: failed program was:" >&5
2608 cat conftest.
$ac_ext >&5
2610 eval "ac_cv_header_$ac_safe=no"
2614 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2615 echo "$ac_t""yes" 1>&6
2616 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2617 cat >> confdefs.h
<<EOF
2618 #define $ac_tr_hdr 1
2622 echo "$ac_t""no" 1>&6
2626 for ac_hdr
in stropts.h poll.h readline.h
history.h readline
/readline.h
2628 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2629 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2630 echo "configure:2631: checking for $ac_hdr" >&5
2631 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2632 echo $ac_n "(cached) $ac_c" 1>&6
2634 cat > conftest.
$ac_ext <<EOF
2635 #line 2636 "configure"
2636 #include "confdefs.h"
2639 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2640 { (eval echo configure
:2641: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2641 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2642 if test -z "$ac_err"; then
2644 eval "ac_cv_header_$ac_safe=yes"
2647 echo "configure: failed program was:" >&5
2648 cat conftest.
$ac_ext >&5
2650 eval "ac_cv_header_$ac_safe=no"
2654 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2655 echo "$ac_t""yes" 1>&6
2656 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2657 cat >> confdefs.h
<<EOF
2658 #define $ac_tr_hdr 1
2662 echo "$ac_t""no" 1>&6
2666 for ac_hdr
in readline
/history.h sys
/capability.h syscall.h sys
/syscall.h
2668 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2669 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2670 echo "configure:2671: checking for $ac_hdr" >&5
2671 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2672 echo $ac_n "(cached) $ac_c" 1>&6
2674 cat > conftest.
$ac_ext <<EOF
2675 #line 2676 "configure"
2676 #include "confdefs.h"
2679 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2680 { (eval echo configure
:2681: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2681 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2682 if test -z "$ac_err"; then
2684 eval "ac_cv_header_$ac_safe=yes"
2687 echo "configure: failed program was:" >&5
2688 cat conftest.
$ac_ext >&5
2690 eval "ac_cv_header_$ac_safe=no"
2694 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2695 echo "$ac_t""yes" 1>&6
2696 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2697 cat >> confdefs.h
<<EOF
2698 #define $ac_tr_hdr 1
2702 echo "$ac_t""no" 1>&6
2706 for ac_hdr
in sys
/acl.h sys
/cdefs.h glob.h
2708 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2709 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2710 echo "configure:2711: checking for $ac_hdr" >&5
2711 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2712 echo $ac_n "(cached) $ac_c" 1>&6
2714 cat > conftest.
$ac_ext <<EOF
2715 #line 2716 "configure"
2716 #include "confdefs.h"
2719 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2720 { (eval echo configure
:2721: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2721 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2722 if test -z "$ac_err"; then
2724 eval "ac_cv_header_$ac_safe=yes"
2727 echo "configure: failed program was:" >&5
2728 cat conftest.
$ac_ext >&5
2730 eval "ac_cv_header_$ac_safe=no"
2734 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2735 echo "$ac_t""yes" 1>&6
2736 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2737 cat >> confdefs.h
<<EOF
2738 #define $ac_tr_hdr 1
2742 echo "$ac_t""no" 1>&6
2747 # For experimental utmp support (lastlog on some BSD-like systems)
2748 for ac_hdr
in utmp.h utmpx.h lastlog.h
2750 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2751 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2752 echo "configure:2753: checking for $ac_hdr" >&5
2753 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2754 echo $ac_n "(cached) $ac_c" 1>&6
2756 cat > conftest.
$ac_ext <<EOF
2757 #line 2758 "configure"
2758 #include "confdefs.h"
2761 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2762 { (eval echo configure
:2763: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2763 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2764 if test -z "$ac_err"; then
2766 eval "ac_cv_header_$ac_safe=yes"
2769 echo "configure: failed program was:" >&5
2770 cat conftest.
$ac_ext >&5
2772 eval "ac_cv_header_$ac_safe=no"
2776 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2777 echo "$ac_t""yes" 1>&6
2778 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2779 cat >> confdefs.h
<<EOF
2780 #define $ac_tr_hdr 1
2784 echo "$ac_t""no" 1>&6
2789 # For quotas on Veritas VxFS filesystems
2790 for ac_hdr
in sys
/fs
/vx_quota.h
2792 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2793 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2794 echo "configure:2795: checking for $ac_hdr" >&5
2795 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2796 echo $ac_n "(cached) $ac_c" 1>&6
2798 cat > conftest.
$ac_ext <<EOF
2799 #line 2800 "configure"
2800 #include "confdefs.h"
2803 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2804 { (eval echo configure
:2805: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2805 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2806 if test -z "$ac_err"; then
2808 eval "ac_cv_header_$ac_safe=yes"
2811 echo "configure: failed program was:" >&5
2812 cat conftest.
$ac_ext >&5
2814 eval "ac_cv_header_$ac_safe=no"
2818 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2819 echo "$ac_t""yes" 1>&6
2820 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2821 cat >> confdefs.h
<<EOF
2822 #define $ac_tr_hdr 1
2826 echo "$ac_t""no" 1>&6
2831 echo $ac_n "checking size of int""... $ac_c" 1>&6
2832 echo "configure:2833: checking size of int" >&5
2833 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2834 echo $ac_n "(cached) $ac_c" 1>&6
2836 if test "$cross_compiling" = yes; then
2837 ac_cv_sizeof_int
=cross
2839 cat > conftest.
$ac_ext <<EOF
2840 #line 2841 "configure"
2841 #include "confdefs.h"
2845 FILE *f=fopen("conftestval", "w");
2847 fprintf(f, "%d\n", sizeof(int));
2851 if { (eval echo configure
:2852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2853 ac_cv_sizeof_int
=`cat conftestval`
2855 echo "configure: failed program was:" >&5
2856 cat conftest.
$ac_ext >&5
2864 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2865 cat >> confdefs.h
<<EOF
2866 #define SIZEOF_INT $ac_cv_sizeof_int
2870 echo $ac_n "checking size of long""... $ac_c" 1>&6
2871 echo "configure:2872: checking size of long" >&5
2872 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2873 echo $ac_n "(cached) $ac_c" 1>&6
2875 if test "$cross_compiling" = yes; then
2876 ac_cv_sizeof_long
=cross
2878 cat > conftest.
$ac_ext <<EOF
2879 #line 2880 "configure"
2880 #include "confdefs.h"
2884 FILE *f=fopen("conftestval", "w");
2886 fprintf(f, "%d\n", sizeof(long));
2890 if { (eval echo configure
:2891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2892 ac_cv_sizeof_long
=`cat conftestval`
2894 echo "configure: failed program was:" >&5
2895 cat conftest.
$ac_ext >&5
2903 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2904 cat >> confdefs.h
<<EOF
2905 #define SIZEOF_LONG $ac_cv_sizeof_long
2909 echo $ac_n "checking size of short""... $ac_c" 1>&6
2910 echo "configure:2911: checking size of short" >&5
2911 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2912 echo $ac_n "(cached) $ac_c" 1>&6
2914 if test "$cross_compiling" = yes; then
2915 ac_cv_sizeof_short
=cross
2917 cat > conftest.
$ac_ext <<EOF
2918 #line 2919 "configure"
2919 #include "confdefs.h"
2923 FILE *f=fopen("conftestval", "w");
2925 fprintf(f, "%d\n", sizeof(short));
2929 if { (eval echo configure
:2930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2931 ac_cv_sizeof_short
=`cat conftestval`
2933 echo "configure: failed program was:" >&5
2934 cat conftest.
$ac_ext >&5
2936 ac_cv_sizeof_short
=0
2942 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2943 cat >> confdefs.h
<<EOF
2944 #define SIZEOF_SHORT $ac_cv_sizeof_short
2949 echo $ac_n "checking for working const""... $ac_c" 1>&6
2950 echo "configure:2951: checking for working const" >&5
2951 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2952 echo $ac_n "(cached) $ac_c" 1>&6
2954 cat > conftest.
$ac_ext <<EOF
2955 #line 2956 "configure"
2956 #include "confdefs.h"
2960 /* Ultrix mips cc rejects this. */
2961 typedef int charset[2]; const charset x;
2962 /* SunOS 4.1.1 cc rejects this. */
2963 char const *const *ccp;
2965 /* NEC SVR4.0.2 mips cc rejects this. */
2966 struct point {int x, y;};
2967 static struct point const zero = {0,0};
2968 /* AIX XL C 1.02.0.0 rejects this.
2969 It does not let you subtract one const X* pointer from another in an arm
2970 of an if-expression whose if-part is not a constant expression */
2971 const char *g = "string";
2972 ccp = &g + (g ? g-g : 0);
2973 /* HPUX 7.0 cc rejects these. */
2976 ccp = (char const *const *) p;
2977 { /* SCO 3.2v4 cc rejects this. */
2979 char const *s = 0 ? (char *) 0 : (char const *) 0;
2983 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2985 const int *foo = &x[0];
2988 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2989 typedef const int *iptr;
2993 { /* AIX XL C 1.02.0.0 rejects this saying
2994 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2995 struct s { int j; const int *ap[3]; };
2996 struct s *b; b->j = 5;
2998 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3004 if { (eval echo configure
:3005: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3008 echo "configure: failed program was:" >&5
3009 cat conftest.
$ac_ext >&5
3016 echo "$ac_t""$ac_cv_c_const" 1>&6
3017 if test $ac_cv_c_const = no
; then
3018 cat >> confdefs.h
<<\EOF
3024 echo $ac_n "checking for inline""... $ac_c" 1>&6
3025 echo "configure:3026: checking for inline" >&5
3026 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3027 echo $ac_n "(cached) $ac_c" 1>&6
3030 for ac_kw
in inline __inline__ __inline
; do
3031 cat > conftest.
$ac_ext <<EOF
3032 #line 3033 "configure"
3033 #include "confdefs.h"
3039 if { (eval echo configure
:3040: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3041 ac_cv_c_inline
=$ac_kw; break
3043 echo "configure: failed program was:" >&5
3044 cat conftest.
$ac_ext >&5
3051 echo "$ac_t""$ac_cv_c_inline" 1>&6
3052 case "$ac_cv_c_inline" in
3054 no
) cat >> confdefs.h
<<\EOF
3058 *) cat >> confdefs.h
<<EOF
3059 #define inline $ac_cv_c_inline
3064 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3065 echo "configure:3066: checking whether byte ordering is bigendian" >&5
3066 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3067 echo $ac_n "(cached) $ac_c" 1>&6
3069 ac_cv_c_bigendian
=unknown
3070 # See if sys/param.h defines the BYTE_ORDER macro.
3071 cat > conftest.
$ac_ext <<EOF
3072 #line 3073 "configure"
3073 #include "confdefs.h"
3074 #include <sys/types.h>
3075 #include <sys/param.h>
3078 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3083 if { (eval echo configure
:3084: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3085 # It does; now see whether it defined to BIG_ENDIAN or not.
3086 cat > conftest.
$ac_ext <<EOF
3087 #line 3088 "configure"
3088 #include "confdefs.h"
3089 #include <sys/types.h>
3090 #include <sys/param.h>
3093 #if BYTE_ORDER != BIG_ENDIAN
3098 if { (eval echo configure
:3099: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3100 ac_cv_c_bigendian
=yes
3102 echo "configure: failed program was:" >&5
3103 cat conftest.
$ac_ext >&5
3105 ac_cv_c_bigendian
=no
3109 echo "configure: failed program was:" >&5
3110 cat conftest.
$ac_ext >&5
3113 if test $ac_cv_c_bigendian = unknown
; then
3114 if test "$cross_compiling" = yes; then
3115 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3117 cat > conftest.
$ac_ext <<EOF
3118 #line 3119 "configure"
3119 #include "confdefs.h"
3121 /* Are we little or big endian? From Harbison&Steele. */
3125 char c[sizeof (long)];
3128 exit (u.c[sizeof (long) - 1] == 1);
3131 if { (eval echo configure
:3132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3133 ac_cv_c_bigendian
=no
3135 echo "configure: failed program was:" >&5
3136 cat conftest.
$ac_ext >&5
3138 ac_cv_c_bigendian
=yes
3146 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3147 if test $ac_cv_c_bigendian = yes; then
3148 cat >> confdefs.h
<<\EOF
3149 #define WORDS_BIGENDIAN 1
3154 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
3155 echo "configure:3156: checking whether char is unsigned" >&5
3156 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
3157 echo $ac_n "(cached) $ac_c" 1>&6
3159 if test "$GCC" = yes; then
3160 # GCC predefines this symbol on systems where it applies.
3161 cat > conftest.
$ac_ext <<EOF
3162 #line 3163 "configure"
3163 #include "confdefs.h"
3164 #ifdef __CHAR_UNSIGNED__
3169 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3170 egrep "yes" >/dev
/null
2>&1; then
3172 ac_cv_c_char_unsigned
=yes
3175 ac_cv_c_char_unsigned
=no
3180 if test "$cross_compiling" = yes; then
3181 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3183 cat > conftest.
$ac_ext <<EOF
3184 #line 3185 "configure"
3185 #include "confdefs.h"
3186 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
3187 #if !defined(__STDC__) || __STDC__ != 1
3191 volatile char c = 255; exit(c < 0);
3194 if { (eval echo configure
:3195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3196 ac_cv_c_char_unsigned
=yes
3198 echo "configure: failed program was:" >&5
3199 cat conftest.
$ac_ext >&5
3201 ac_cv_c_char_unsigned
=no
3209 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
3210 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
3211 cat >> confdefs.h
<<\EOF
3212 #define __CHAR_UNSIGNED__ 1
3218 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3219 echo "configure:3220: checking return type of signal handlers" >&5
3220 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3221 echo $ac_n "(cached) $ac_c" 1>&6
3223 cat > conftest.
$ac_ext <<EOF
3224 #line 3225 "configure"
3225 #include "confdefs.h"
3226 #include <sys/types.h>
3232 extern "C" void (*signal (int, void (*)(int)))(int);
3234 void (*signal ()) ();
3241 if { (eval echo configure
:3242: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3243 ac_cv_type_signal
=void
3245 echo "configure: failed program was:" >&5
3246 cat conftest.
$ac_ext >&5
3248 ac_cv_type_signal
=int
3253 echo "$ac_t""$ac_cv_type_signal" 1>&6
3254 cat >> confdefs.h
<<EOF
3255 #define RETSIGTYPE $ac_cv_type_signal
3259 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3260 echo "configure:3261: checking for uid_t in sys/types.h" >&5
3261 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3262 echo $ac_n "(cached) $ac_c" 1>&6
3264 cat > conftest.
$ac_ext <<EOF
3265 #line 3266 "configure"
3266 #include "confdefs.h"
3267 #include <sys/types.h>
3269 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3270 egrep "uid_t" >/dev
/null
2>&1; then
3272 ac_cv_type_uid_t
=yes
3281 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3282 if test $ac_cv_type_uid_t = no
; then
3283 cat >> confdefs.h
<<\EOF
3287 cat >> confdefs.h
<<\EOF
3293 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3294 echo "configure:3295: checking for mode_t" >&5
3295 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3296 echo $ac_n "(cached) $ac_c" 1>&6
3298 cat > conftest.
$ac_ext <<EOF
3299 #line 3300 "configure"
3300 #include "confdefs.h"
3301 #include <sys/types.h>
3307 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3308 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3310 ac_cv_type_mode_t
=yes
3313 ac_cv_type_mode_t
=no
3318 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3319 if test $ac_cv_type_mode_t = no
; then
3320 cat >> confdefs.h
<<\EOF
3326 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3327 echo "configure:3328: checking for off_t" >&5
3328 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3329 echo $ac_n "(cached) $ac_c" 1>&6
3331 cat > conftest.
$ac_ext <<EOF
3332 #line 3333 "configure"
3333 #include "confdefs.h"
3334 #include <sys/types.h>
3340 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3341 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3343 ac_cv_type_off_t
=yes
3351 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3352 if test $ac_cv_type_off_t = no
; then
3353 cat >> confdefs.h
<<\EOF
3359 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3360 echo "configure:3361: checking for size_t" >&5
3361 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3362 echo $ac_n "(cached) $ac_c" 1>&6
3364 cat > conftest.
$ac_ext <<EOF
3365 #line 3366 "configure"
3366 #include "confdefs.h"
3367 #include <sys/types.h>
3373 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3374 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3376 ac_cv_type_size_t
=yes
3379 ac_cv_type_size_t
=no
3384 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3385 if test $ac_cv_type_size_t = no
; then
3386 cat >> confdefs.h
<<\EOF
3387 #define size_t unsigned
3392 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3393 echo "configure:3394: checking for pid_t" >&5
3394 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3395 echo $ac_n "(cached) $ac_c" 1>&6
3397 cat > conftest.
$ac_ext <<EOF
3398 #line 3399 "configure"
3399 #include "confdefs.h"
3400 #include <sys/types.h>
3406 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3407 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3409 ac_cv_type_pid_t
=yes
3417 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3418 if test $ac_cv_type_pid_t = no
; then
3419 cat >> confdefs.h
<<\EOF
3425 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3426 echo "configure:3427: checking for st_rdev in struct stat" >&5
3427 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3428 echo $ac_n "(cached) $ac_c" 1>&6
3430 cat > conftest.
$ac_ext <<EOF
3431 #line 3432 "configure"
3432 #include "confdefs.h"
3433 #include <sys/types.h>
3434 #include <sys/stat.h>
3436 struct stat s; s.st_rdev;
3439 if { (eval echo configure
:3440: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3441 ac_cv_struct_st_rdev
=yes
3443 echo "configure: failed program was:" >&5
3444 cat conftest.
$ac_ext >&5
3446 ac_cv_struct_st_rdev
=no
3451 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3452 if test $ac_cv_struct_st_rdev = yes; then
3453 cat >> confdefs.h
<<\EOF
3454 #define HAVE_ST_RDEV 1
3459 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
3460 echo "configure:3461: checking for d_off in dirent" >&5
3461 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
3462 echo $ac_n "(cached) $ac_c" 1>&6
3464 cat > conftest.
$ac_ext <<EOF
3465 #line 3466 "configure"
3466 #include "confdefs.h"
3469 #include <sys/types.h>
3472 struct dirent d; d.d_off;
3475 if { (eval echo configure
:3476: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3477 ac_cv_dirent_d_off
=yes
3479 echo "configure: failed program was:" >&5
3480 cat conftest.
$ac_ext >&5
3482 ac_cv_dirent_d_off
=no
3487 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
3488 if test $ac_cv_dirent_d_off = yes; then
3489 cat >> confdefs.h
<<\EOF
3490 #define HAVE_DIRENT_D_OFF 1
3495 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
3496 echo "configure:3497: checking for ino_t" >&5
3497 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
3498 echo $ac_n "(cached) $ac_c" 1>&6
3500 cat > conftest.
$ac_ext <<EOF
3501 #line 3502 "configure"
3502 #include "confdefs.h"
3503 #include <sys/types.h>
3509 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3510 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3512 ac_cv_type_ino_t
=yes
3520 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
3521 if test $ac_cv_type_ino_t = no
; then
3522 cat >> confdefs.h
<<\EOF
3523 #define ino_t unsigned
3528 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3529 echo "configure:3530: checking for loff_t" >&5
3530 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
3531 echo $ac_n "(cached) $ac_c" 1>&6
3533 cat > conftest.
$ac_ext <<EOF
3534 #line 3535 "configure"
3535 #include "confdefs.h"
3536 #include <sys/types.h>
3542 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3543 egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3545 ac_cv_type_loff_t
=yes
3548 ac_cv_type_loff_t
=no
3553 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
3554 if test $ac_cv_type_loff_t = no
; then
3555 cat >> confdefs.h
<<\EOF
3556 #define loff_t off_t
3561 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
3562 echo "configure:3563: checking for offset_t" >&5
3563 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
3564 echo $ac_n "(cached) $ac_c" 1>&6
3566 cat > conftest.
$ac_ext <<EOF
3567 #line 3568 "configure"
3568 #include "confdefs.h"
3569 #include <sys/types.h>
3575 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3576 egrep "(^|[^a-zA-Z_0-9])offset_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3578 ac_cv_type_offset_t
=yes
3581 ac_cv_type_offset_t
=no
3586 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
3587 if test $ac_cv_type_offset_t = no
; then
3588 cat >> confdefs.h
<<\EOF
3589 #define offset_t loff_t
3594 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3595 echo "configure:3596: checking for ssize_t" >&5
3596 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3597 echo $ac_n "(cached) $ac_c" 1>&6
3599 cat > conftest.
$ac_ext <<EOF
3600 #line 3601 "configure"
3601 #include "confdefs.h"
3602 #include <sys/types.h>
3608 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3609 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3611 ac_cv_type_ssize_t
=yes
3614 ac_cv_type_ssize_t
=no
3619 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3620 if test $ac_cv_type_ssize_t = no
; then
3621 cat >> confdefs.h
<<\EOF
3627 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
3628 echo "configure:3629: checking for wchar_t" >&5
3629 if eval "test \"`echo '$''{'ac_cv_type_wchar_t'+set}'`\" = set"; then
3630 echo $ac_n "(cached) $ac_c" 1>&6
3632 cat > conftest.
$ac_ext <<EOF
3633 #line 3634 "configure"
3634 #include "confdefs.h"
3635 #include <sys/types.h>
3641 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3642 egrep "(^|[^a-zA-Z_0-9])wchar_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3644 ac_cv_type_wchar_t
=yes
3647 ac_cv_type_wchar_t
=no
3652 echo "$ac_t""$ac_cv_type_wchar_t" 1>&6
3653 if test $ac_cv_type_wchar_t = no
; then
3654 cat >> confdefs.h
<<\EOF
3655 #define wchar_t unsigned short
3661 # we need libcups for CUPS support...
3662 echo $ac_n "checking for httpConnect in -lcups""... $ac_c" 1>&6
3663 echo "configure:3664: checking for httpConnect in -lcups" >&5
3664 ac_lib_var
=`echo cups'_'httpConnect | sed 'y%./+-%__p_%'`
3665 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3666 echo $ac_n "(cached) $ac_c" 1>&6
3668 ac_save_LIBS
="$LIBS"
3670 cat > conftest.
$ac_ext <<EOF
3671 #line 3672 "configure"
3672 #include "confdefs.h"
3673 /* Override any gcc2 internal prototype to avoid an error. */
3674 /* We use char because int might match the return type of a gcc2
3675 builtin and then its argument prototype would still apply. */
3682 if { (eval echo configure
:3683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3684 eval "ac_cv_lib_$ac_lib_var=yes"
3686 echo "configure: failed program was:" >&5
3687 cat conftest.
$ac_ext >&5
3689 eval "ac_cv_lib_$ac_lib_var=no"
3692 LIBS
="$ac_save_LIBS"
3695 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3696 echo "$ac_t""yes" 1>&6
3697 ac_tr_lib
=HAVE_LIB
`echo cups | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3698 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3699 cat >> confdefs.h
<<EOF
3700 #define $ac_tr_lib 1
3706 echo "$ac_t""no" 1>&6
3710 # we need libdl for PAM and the new VFS code
3711 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3712 echo "configure:3713: checking for dlopen in -ldl" >&5
3713 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3714 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3715 echo $ac_n "(cached) $ac_c" 1>&6
3717 ac_save_LIBS
="$LIBS"
3719 cat > conftest.
$ac_ext <<EOF
3720 #line 3721 "configure"
3721 #include "confdefs.h"
3722 /* Override any gcc2 internal prototype to avoid an error. */
3723 /* We use char because int might match the return type of a gcc2
3724 builtin and then its argument prototype would still apply. */
3731 if { (eval echo configure
:3732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3733 eval "ac_cv_lib_$ac_lib_var=yes"
3735 echo "configure: failed program was:" >&5
3736 cat conftest.
$ac_ext >&5
3738 eval "ac_cv_lib_$ac_lib_var=no"
3741 LIBS
="$ac_save_LIBS"
3744 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3745 echo "$ac_t""yes" 1>&6
3747 cat >> confdefs.h
<<\EOF
3748 #define HAVE_LIBDL 1
3752 echo "$ac_t""no" 1>&6
3756 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
3757 echo "configure:3758: checking for sig_atomic_t type" >&5
3758 if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+set}'`\" = set"; then
3759 echo $ac_n "(cached) $ac_c" 1>&6
3762 cat > conftest.
$ac_ext <<EOF
3763 #line 3764 "configure"
3764 #include "confdefs.h"
3766 #include <sys/types.h>
3776 if { (eval echo configure
:3777: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3778 samba_cv_sig_atomic_t
=yes
3780 echo "configure: failed program was:" >&5
3781 cat conftest.
$ac_ext >&5
3783 samba_cv_sig_atomic_t
=no
3788 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
3789 if test x
"$samba_cv_sig_atomic_t" = x
"yes"; then
3790 cat >> confdefs.h
<<\EOF
3791 #define HAVE_SIG_ATOMIC_T_TYPE 1
3796 echo $ac_n "checking for errno in errno.h""... $ac_c" 1>&6
3797 echo "configure:3798: checking for errno in errno.h" >&5
3798 if eval "test \"`echo '$''{'samba_cv_errno'+set}'`\" = set"; then
3799 echo $ac_n "(cached) $ac_c" 1>&6
3802 cat > conftest.
$ac_ext <<EOF
3803 #line 3804 "configure"
3804 #include "confdefs.h"
3810 if { (eval echo configure
:3811: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3814 echo "configure: failed program was:" >&5
3815 cat conftest.
$ac_ext >&5
3817 samba_cv_have_errno
=no
3822 echo "$ac_t""$samba_cv_errno" 1>&6
3823 if test x
"$samba_cv_errno" = x
"yes"; then
3824 cat >> confdefs.h
<<\EOF
3825 #define HAVE_ERRNO_DECL 1
3830 # stupid glibc has the functions but no declaration. grrrr.
3831 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
3832 echo "configure:3833: checking for setresuid declaration" >&5
3833 if eval "test \"`echo '$''{'samba_cv_have_setresuid_decl'+set}'`\" = set"; then
3834 echo $ac_n "(cached) $ac_c" 1>&6
3837 cat > conftest.
$ac_ext <<EOF
3838 #line 3839 "configure"
3839 #include "confdefs.h"
3842 int i = (int)setresuid
3845 if { (eval echo configure
:3846: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3847 samba_cv_have_setresuid_decl
=yes
3849 echo "configure: failed program was:" >&5
3850 cat conftest.
$ac_ext >&5
3852 samba_cv_have_setresuid_decl
=no
3857 echo "$ac_t""$samba_cv_have_setresuid_decl" 1>&6
3858 if test x
"$samba_cv_have_setresuid_decl" = x
"yes"; then
3859 cat >> confdefs.h
<<\EOF
3860 #define HAVE_SETRESUID_DECL 1
3865 # stupid glibc has the functions but no declaration. grrrr.
3866 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
3867 echo "configure:3868: checking for setresgid declaration" >&5
3868 if eval "test \"`echo '$''{'samba_cv_have_setresgid_decl'+set}'`\" = set"; then
3869 echo $ac_n "(cached) $ac_c" 1>&6
3872 cat > conftest.
$ac_ext <<EOF
3873 #line 3874 "configure"
3874 #include "confdefs.h"
3877 int i = (int)setresgid
3880 if { (eval echo configure
:3881: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3882 samba_cv_have_setresgid_decl
=yes
3884 echo "configure: failed program was:" >&5
3885 cat conftest.
$ac_ext >&5
3887 samba_cv_have_setresgid_decl
=no
3892 echo "$ac_t""$samba_cv_have_setresgid_decl" 1>&6
3893 if test x
"$samba_cv_have_setresgid_decl" = x
"yes"; then
3894 cat >> confdefs.h
<<\EOF
3895 #define HAVE_SETRESGID_DECL 1
3900 # and glibc has setresuid under linux but the function does
3901 # nothing until kernel 2.1.44! very dumb.
3902 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
3903 echo "configure:3904: checking for real setresuid" >&5
3904 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
3905 echo $ac_n "(cached) $ac_c" 1>&6
3908 if test "$cross_compiling" = yes; then
3909 samba_cv_have_setresuid
=cross
3911 cat > conftest.
$ac_ext <<EOF
3912 #line 3913 "configure"
3913 #include "confdefs.h"
3915 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
3917 if { (eval echo configure
:3918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3919 samba_cv_have_setresuid
=yes
3921 echo "configure: failed program was:" >&5
3922 cat conftest.
$ac_ext >&5
3924 samba_cv_have_setresuid
=no
3931 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
3932 if test x
"$samba_cv_have_setresuid" = x
"yes"; then
3933 cat >> confdefs.h
<<\EOF
3934 #define HAVE_SETRESUID 1
3939 # Do the same check for setresguid...
3941 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
3942 echo "configure:3943: checking for real setresgid" >&5
3943 if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then
3944 echo $ac_n "(cached) $ac_c" 1>&6
3947 if test "$cross_compiling" = yes; then
3948 samba_cv_have_setresgid
=cross
3950 cat > conftest.
$ac_ext <<EOF
3951 #line 3952 "configure"
3952 #include "confdefs.h"
3955 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
3957 if { (eval echo configure
:3958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3959 samba_cv_have_setresgid
=yes
3961 echo "configure: failed program was:" >&5
3962 cat conftest.
$ac_ext >&5
3964 samba_cv_have_setresgid
=no
3971 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
3972 if test x
"$samba_cv_have_setresgid" = x
"yes"; then
3973 cat >> confdefs.h
<<\EOF
3974 #define HAVE_SETRESGID 1
3979 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
3980 echo "configure:3981: checking for 8-bit clean memcmp" >&5
3981 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
3982 echo $ac_n "(cached) $ac_c" 1>&6
3984 if test "$cross_compiling" = yes; then
3985 ac_cv_func_memcmp_clean
=no
3987 cat > conftest.
$ac_ext <<EOF
3988 #line 3989 "configure"
3989 #include "confdefs.h"
3993 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
3994 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
3998 if { (eval echo configure
:3999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4000 ac_cv_func_memcmp_clean
=yes
4002 echo "configure: failed program was:" >&5
4003 cat conftest.
$ac_ext >&5
4005 ac_cv_func_memcmp_clean
=no
4012 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
4013 test $ac_cv_func_memcmp_clean = no
&& LIBOBJS
="$LIBOBJS memcmp.${ac_objext}"
4016 ###############################################
4017 # test for where we get crypt() from
4018 for ac_func
in crypt
4020 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4021 echo "configure:4022: checking for $ac_func" >&5
4022 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4023 echo $ac_n "(cached) $ac_c" 1>&6
4025 cat > conftest.
$ac_ext <<EOF
4026 #line 4027 "configure"
4027 #include "confdefs.h"
4028 /* System header to define __stub macros and hopefully few prototypes,
4029 which can conflict with char $ac_func(); below. */
4031 /* Override any gcc2 internal prototype to avoid an error. */
4032 /* We use char because int might match the return type of a gcc2
4033 builtin and then its argument prototype would still apply. */
4038 /* The GNU C library defines this for functions which it implements
4039 to always fail with ENOSYS. Some functions are actually named
4040 something starting with __ and the normal name is an alias. */
4041 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4049 if { (eval echo configure
:4050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4051 eval "ac_cv_func_$ac_func=yes"
4053 echo "configure: failed program was:" >&5
4054 cat conftest.
$ac_ext >&5
4056 eval "ac_cv_func_$ac_func=no"
4061 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4062 echo "$ac_t""yes" 1>&6
4063 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4064 cat >> confdefs.h
<<EOF
4065 #define $ac_tr_func 1
4069 echo "$ac_t""no" 1>&6
4073 if test x
"$ac_cv_func_crypt" = x
"no"; then
4074 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
4075 echo "configure:4076: checking for crypt in -lcrypt" >&5
4076 ac_lib_var
=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
4077 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4078 echo $ac_n "(cached) $ac_c" 1>&6
4080 ac_save_LIBS
="$LIBS"
4081 LIBS
="-lcrypt $LIBS"
4082 cat > conftest.
$ac_ext <<EOF
4083 #line 4084 "configure"
4084 #include "confdefs.h"
4085 /* Override any gcc2 internal prototype to avoid an error. */
4086 /* We use char because int might match the return type of a gcc2
4087 builtin and then its argument prototype would still apply. */
4094 if { (eval echo configure
:4095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4096 eval "ac_cv_lib_$ac_lib_var=yes"
4098 echo "configure: failed program was:" >&5
4099 cat conftest.
$ac_ext >&5
4101 eval "ac_cv_lib_$ac_lib_var=no"
4104 LIBS
="$ac_save_LIBS"
4107 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4108 echo "$ac_t""yes" 1>&6
4109 LIBS
="$LIBS -lcrypt";
4110 cat >> confdefs.h
<<\EOF
4111 #define HAVE_CRYPT 1
4115 echo "$ac_t""no" 1>&6
4121 ###############################################
4122 # test for where we get readline() from
4123 if test "$ac_cv_header_readline_h" = "yes" ||
4124 test "$ac_cv_header_readline_readline_h" = "yes"; then
4125 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
4126 echo "configure:4127: checking for readline in -lreadline" >&5
4127 ac_lib_var
=`echo readline'_'readline | sed 'y%./+-%__p_%'`
4128 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4129 echo $ac_n "(cached) $ac_c" 1>&6
4131 ac_save_LIBS
="$LIBS"
4132 LIBS
="-lreadline $LIBS"
4133 cat > conftest.
$ac_ext <<EOF
4134 #line 4135 "configure"
4135 #include "confdefs.h"
4136 /* Override any gcc2 internal prototype to avoid an error. */
4137 /* We use char because int might match the return type of a gcc2
4138 builtin and then its argument prototype would still apply. */
4145 if { (eval echo configure
:4146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4147 eval "ac_cv_lib_$ac_lib_var=yes"
4149 echo "configure: failed program was:" >&5
4150 cat conftest.
$ac_ext >&5
4152 eval "ac_cv_lib_$ac_lib_var=no"
4155 LIBS
="$ac_save_LIBS"
4158 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4159 echo "$ac_t""yes" 1>&6
4160 ac_tr_lib
=HAVE_LIB
`echo readline | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4161 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4162 cat >> confdefs.h
<<EOF
4163 #define $ac_tr_lib 1
4166 LIBS
="-lreadline $LIBS"
4169 echo "$ac_t""no" 1>&6
4175 # The following test taken from the cvs sources
4176 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
4177 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
4178 # libsocket.so which has a bad implementation of gethostbyname (it
4179 # only looks in /etc/hosts), so we only look for -lsocket if we need
4181 for ac_func
in connect
4183 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4184 echo "configure:4185: checking for $ac_func" >&5
4185 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4186 echo $ac_n "(cached) $ac_c" 1>&6
4188 cat > conftest.
$ac_ext <<EOF
4189 #line 4190 "configure"
4190 #include "confdefs.h"
4191 /* System header to define __stub macros and hopefully few prototypes,
4192 which can conflict with char $ac_func(); below. */
4194 /* Override any gcc2 internal prototype to avoid an error. */
4195 /* We use char because int might match the return type of a gcc2
4196 builtin and then its argument prototype would still apply. */
4201 /* The GNU C library defines this for functions which it implements
4202 to always fail with ENOSYS. Some functions are actually named
4203 something starting with __ and the normal name is an alias. */
4204 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4212 if { (eval echo configure
:4213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4214 eval "ac_cv_func_$ac_func=yes"
4216 echo "configure: failed program was:" >&5
4217 cat conftest.
$ac_ext >&5
4219 eval "ac_cv_func_$ac_func=no"
4224 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4225 echo "$ac_t""yes" 1>&6
4226 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4227 cat >> confdefs.h
<<EOF
4228 #define $ac_tr_func 1
4232 echo "$ac_t""no" 1>&6
4236 if test x
"$ac_cv_func_connect" = x
"no"; then
4239 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
4240 echo "configure:4241: checking for printf in -lnsl_s" >&5
4241 ac_lib_var
=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
4242 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4243 echo $ac_n "(cached) $ac_c" 1>&6
4245 ac_save_LIBS
="$LIBS"
4246 LIBS
="-lnsl_s $LIBS"
4247 cat > conftest.
$ac_ext <<EOF
4248 #line 4249 "configure"
4249 #include "confdefs.h"
4250 /* Override any gcc2 internal prototype to avoid an error. */
4251 /* We use char because int might match the return type of a gcc2
4252 builtin and then its argument prototype would still apply. */
4259 if { (eval echo configure
:4260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4261 eval "ac_cv_lib_$ac_lib_var=yes"
4263 echo "configure: failed program was:" >&5
4264 cat conftest.
$ac_ext >&5
4266 eval "ac_cv_lib_$ac_lib_var=no"
4269 LIBS
="$ac_save_LIBS"
4272 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4273 echo "$ac_t""yes" 1>&6
4274 ac_tr_lib
=HAVE_LIB
`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4275 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4276 cat >> confdefs.h
<<EOF
4277 #define $ac_tr_lib 1
4280 LIBS
="-lnsl_s $LIBS"
4283 echo "$ac_t""no" 1>&6
4289 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
4290 echo "configure:4291: checking for printf in -lnsl" >&5
4291 ac_lib_var
=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
4292 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4293 echo $ac_n "(cached) $ac_c" 1>&6
4295 ac_save_LIBS
="$LIBS"
4297 cat > conftest.
$ac_ext <<EOF
4298 #line 4299 "configure"
4299 #include "confdefs.h"
4300 /* Override any gcc2 internal prototype to avoid an error. */
4301 /* We use char because int might match the return type of a gcc2
4302 builtin and then its argument prototype would still apply. */
4309 if { (eval echo configure
:4310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4311 eval "ac_cv_lib_$ac_lib_var=yes"
4313 echo "configure: failed program was:" >&5
4314 cat conftest.
$ac_ext >&5
4316 eval "ac_cv_lib_$ac_lib_var=no"
4319 LIBS
="$ac_save_LIBS"
4322 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4323 echo "$ac_t""yes" 1>&6
4324 ac_tr_lib
=HAVE_LIB
`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4325 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4326 cat >> confdefs.h
<<EOF
4327 #define $ac_tr_lib 1
4333 echo "$ac_t""no" 1>&6
4339 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
4340 echo "configure:4341: checking for connect in -lsocket" >&5
4341 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
4342 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4343 echo $ac_n "(cached) $ac_c" 1>&6
4345 ac_save_LIBS
="$LIBS"
4346 LIBS
="-lsocket $LIBS"
4347 cat > conftest.
$ac_ext <<EOF
4348 #line 4349 "configure"
4349 #include "confdefs.h"
4350 /* Override any gcc2 internal prototype to avoid an error. */
4351 /* We use char because int might match the return type of a gcc2
4352 builtin and then its argument prototype would still apply. */
4359 if { (eval echo configure
:4360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4361 eval "ac_cv_lib_$ac_lib_var=yes"
4363 echo "configure: failed program was:" >&5
4364 cat conftest.
$ac_ext >&5
4366 eval "ac_cv_lib_$ac_lib_var=no"
4369 LIBS
="$ac_save_LIBS"
4372 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4373 echo "$ac_t""yes" 1>&6
4374 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4375 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4376 cat >> confdefs.h
<<EOF
4377 #define $ac_tr_lib 1
4380 LIBS
="-lsocket $LIBS"
4383 echo "$ac_t""no" 1>&6
4389 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
4390 echo "configure:4391: checking for connect in -linet" >&5
4391 ac_lib_var
=`echo inet'_'connect | sed 'y%./+-%__p_%'`
4392 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4393 echo $ac_n "(cached) $ac_c" 1>&6
4395 ac_save_LIBS
="$LIBS"
4397 cat > conftest.
$ac_ext <<EOF
4398 #line 4399 "configure"
4399 #include "confdefs.h"
4400 /* Override any gcc2 internal prototype to avoid an error. */
4401 /* We use char because int might match the return type of a gcc2
4402 builtin and then its argument prototype would still apply. */
4409 if { (eval echo configure
:4410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4411 eval "ac_cv_lib_$ac_lib_var=yes"
4413 echo "configure: failed program was:" >&5
4414 cat conftest.
$ac_ext >&5
4416 eval "ac_cv_lib_$ac_lib_var=no"
4419 LIBS
="$ac_save_LIBS"
4422 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4423 echo "$ac_t""yes" 1>&6
4424 ac_tr_lib
=HAVE_LIB
`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4425 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4426 cat >> confdefs.h
<<EOF
4427 #define $ac_tr_lib 1
4433 echo "$ac_t""no" 1>&6
4437 if test x
"$ac_cv_lib_socket_connect" = x
"yes" ||
4438 test x
"$ac_cv_lib_inet_connect" = x
"yes"; then
4439 # ac_cv_func_connect=yes
4440 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
4441 cat >> confdefs.h
<<\EOF
4442 #define HAVE_CONNECT 1
4448 ###############################################
4449 # test for where we get get_yp_default_domain() from
4450 for ac_func
in yp_get_default_domain
4452 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4453 echo "configure:4454: checking for $ac_func" >&5
4454 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4455 echo $ac_n "(cached) $ac_c" 1>&6
4457 cat > conftest.
$ac_ext <<EOF
4458 #line 4459 "configure"
4459 #include "confdefs.h"
4460 /* System header to define __stub macros and hopefully few prototypes,
4461 which can conflict with char $ac_func(); below. */
4463 /* Override any gcc2 internal prototype to avoid an error. */
4464 /* We use char because int might match the return type of a gcc2
4465 builtin and then its argument prototype would still apply. */
4470 /* The GNU C library defines this for functions which it implements
4471 to always fail with ENOSYS. Some functions are actually named
4472 something starting with __ and the normal name is an alias. */
4473 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4481 if { (eval echo configure
:4482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4483 eval "ac_cv_func_$ac_func=yes"
4485 echo "configure: failed program was:" >&5
4486 cat conftest.
$ac_ext >&5
4488 eval "ac_cv_func_$ac_func=no"
4493 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4494 echo "$ac_t""yes" 1>&6
4495 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4496 cat >> confdefs.h
<<EOF
4497 #define $ac_tr_func 1
4501 echo "$ac_t""no" 1>&6
4505 if test x
"$ac_cv_func_yp_get_default_domain" = x
"no"; then
4506 echo $ac_n "checking for yp_get_default_domain in -lnsl""... $ac_c" 1>&6
4507 echo "configure:4508: checking for yp_get_default_domain in -lnsl" >&5
4508 ac_lib_var
=`echo nsl'_'yp_get_default_domain | sed 'y%./+-%__p_%'`
4509 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4510 echo $ac_n "(cached) $ac_c" 1>&6
4512 ac_save_LIBS
="$LIBS"
4514 cat > conftest.
$ac_ext <<EOF
4515 #line 4516 "configure"
4516 #include "confdefs.h"
4517 /* Override any gcc2 internal prototype to avoid an error. */
4518 /* We use char because int might match the return type of a gcc2
4519 builtin and then its argument prototype would still apply. */
4520 char yp_get_default_domain();
4523 yp_get_default_domain()
4526 if { (eval echo configure
:4527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4528 eval "ac_cv_lib_$ac_lib_var=yes"
4530 echo "configure: failed program was:" >&5
4531 cat conftest.
$ac_ext >&5
4533 eval "ac_cv_lib_$ac_lib_var=no"
4536 LIBS
="$ac_save_LIBS"
4539 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4540 echo "$ac_t""yes" 1>&6
4542 cat >> confdefs.h
<<\EOF
4543 #define HAVE_YP_GET_DEFAULT_DOMAIN 1
4547 echo "$ac_t""no" 1>&6
4552 # Check if we have execl, if not we need to compile smbrun.
4553 for ac_func
in execl
4555 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4556 echo "configure:4557: checking for $ac_func" >&5
4557 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4558 echo $ac_n "(cached) $ac_c" 1>&6
4560 cat > conftest.
$ac_ext <<EOF
4561 #line 4562 "configure"
4562 #include "confdefs.h"
4563 /* System header to define __stub macros and hopefully few prototypes,
4564 which can conflict with char $ac_func(); below. */
4566 /* Override any gcc2 internal prototype to avoid an error. */
4567 /* We use char because int might match the return type of a gcc2
4568 builtin and then its argument prototype would still apply. */
4573 /* The GNU C library defines this for functions which it implements
4574 to always fail with ENOSYS. Some functions are actually named
4575 something starting with __ and the normal name is an alias. */
4576 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4584 if { (eval echo configure
:4585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4586 eval "ac_cv_func_$ac_func=yes"
4588 echo "configure: failed program was:" >&5
4589 cat conftest.
$ac_ext >&5
4591 eval "ac_cv_func_$ac_func=no"
4596 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4597 echo "$ac_t""yes" 1>&6
4598 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4599 cat >> confdefs.h
<<EOF
4600 #define $ac_tr_func 1
4604 echo "$ac_t""no" 1>&6
4608 if test x
"$ac_cv_func_execl" = x
"no"; then
4609 RUNPROG
="bin/smbrun"
4614 for ac_func
in waitpid getcwd strdup strtoul strerror chown
chmod chroot
4616 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4617 echo "configure:4618: checking for $ac_func" >&5
4618 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4619 echo $ac_n "(cached) $ac_c" 1>&6
4621 cat > conftest.
$ac_ext <<EOF
4622 #line 4623 "configure"
4623 #include "confdefs.h"
4624 /* System header to define __stub macros and hopefully few prototypes,
4625 which can conflict with char $ac_func(); below. */
4627 /* Override any gcc2 internal prototype to avoid an error. */
4628 /* We use char because int might match the return type of a gcc2
4629 builtin and then its argument prototype would still apply. */
4634 /* The GNU C library defines this for functions which it implements
4635 to always fail with ENOSYS. Some functions are actually named
4636 something starting with __ and the normal name is an alias. */
4637 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4645 if { (eval echo configure
:4646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4647 eval "ac_cv_func_$ac_func=yes"
4649 echo "configure: failed program was:" >&5
4650 cat conftest.
$ac_ext >&5
4652 eval "ac_cv_func_$ac_func=no"
4657 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4658 echo "$ac_t""yes" 1>&6
4659 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4660 cat >> confdefs.h
<<EOF
4661 #define $ac_tr_func 1
4665 echo "$ac_t""no" 1>&6
4669 for ac_func
in fstat strchr utime utimes getrlimit fsync bzero memset
4671 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4672 echo "configure:4673: checking for $ac_func" >&5
4673 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4674 echo $ac_n "(cached) $ac_c" 1>&6
4676 cat > conftest.
$ac_ext <<EOF
4677 #line 4678 "configure"
4678 #include "confdefs.h"
4679 /* System header to define __stub macros and hopefully few prototypes,
4680 which can conflict with char $ac_func(); below. */
4682 /* Override any gcc2 internal prototype to avoid an error. */
4683 /* We use char because int might match the return type of a gcc2
4684 builtin and then its argument prototype would still apply. */
4689 /* The GNU C library defines this for functions which it implements
4690 to always fail with ENOSYS. Some functions are actually named
4691 something starting with __ and the normal name is an alias. */
4692 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4700 if { (eval echo configure
:4701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4702 eval "ac_cv_func_$ac_func=yes"
4704 echo "configure: failed program was:" >&5
4705 cat conftest.
$ac_ext >&5
4707 eval "ac_cv_func_$ac_func=no"
4712 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4713 echo "$ac_t""yes" 1>&6
4714 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4715 cat >> confdefs.h
<<EOF
4716 #define $ac_tr_func 1
4720 echo "$ac_t""no" 1>&6
4724 for ac_func
in memmove vsnprintf snprintf setsid glob strpbrk pipe crypt16 getauthuid
4726 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4727 echo "configure:4728: checking for $ac_func" >&5
4728 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4729 echo $ac_n "(cached) $ac_c" 1>&6
4731 cat > conftest.
$ac_ext <<EOF
4732 #line 4733 "configure"
4733 #include "confdefs.h"
4734 /* System header to define __stub macros and hopefully few prototypes,
4735 which can conflict with char $ac_func(); below. */
4737 /* Override any gcc2 internal prototype to avoid an error. */
4738 /* We use char because int might match the return type of a gcc2
4739 builtin and then its argument prototype would still apply. */
4744 /* The GNU C library defines this for functions which it implements
4745 to always fail with ENOSYS. Some functions are actually named
4746 something starting with __ and the normal name is an alias. */
4747 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4755 if { (eval echo configure
:4756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4757 eval "ac_cv_func_$ac_func=yes"
4759 echo "configure: failed program was:" >&5
4760 cat conftest.
$ac_ext >&5
4762 eval "ac_cv_func_$ac_func=no"
4767 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4768 echo "$ac_t""yes" 1>&6
4769 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4770 cat >> confdefs.h
<<EOF
4771 #define $ac_tr_func 1
4775 echo "$ac_t""no" 1>&6
4779 for ac_func
in strftime sigprocmask sigblock sigaction innetgr setnetgrent getnetgrent endnetgrent
4781 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4782 echo "configure:4783: checking for $ac_func" >&5
4783 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4784 echo $ac_n "(cached) $ac_c" 1>&6
4786 cat > conftest.
$ac_ext <<EOF
4787 #line 4788 "configure"
4788 #include "confdefs.h"
4789 /* System header to define __stub macros and hopefully few prototypes,
4790 which can conflict with char $ac_func(); below. */
4792 /* Override any gcc2 internal prototype to avoid an error. */
4793 /* We use char because int might match the return type of a gcc2
4794 builtin and then its argument prototype would still apply. */
4799 /* The GNU C library defines this for functions which it implements
4800 to always fail with ENOSYS. Some functions are actually named
4801 something starting with __ and the normal name is an alias. */
4802 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4810 if { (eval echo configure
:4811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4812 eval "ac_cv_func_$ac_func=yes"
4814 echo "configure: failed program was:" >&5
4815 cat conftest.
$ac_ext >&5
4817 eval "ac_cv_func_$ac_func=no"
4822 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4823 echo "$ac_t""yes" 1>&6
4824 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4825 cat >> confdefs.h
<<EOF
4826 #define $ac_tr_func 1
4830 echo "$ac_t""no" 1>&6
4834 for ac_func
in initgroups
select poll rdchk getgrnam getgrent pathconf
4836 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4837 echo "configure:4838: checking for $ac_func" >&5
4838 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4839 echo $ac_n "(cached) $ac_c" 1>&6
4841 cat > conftest.
$ac_ext <<EOF
4842 #line 4843 "configure"
4843 #include "confdefs.h"
4844 /* System header to define __stub macros and hopefully few prototypes,
4845 which can conflict with char $ac_func(); below. */
4847 /* Override any gcc2 internal prototype to avoid an error. */
4848 /* We use char because int might match the return type of a gcc2
4849 builtin and then its argument prototype would still apply. */
4854 /* The GNU C library defines this for functions which it implements
4855 to always fail with ENOSYS. Some functions are actually named
4856 something starting with __ and the normal name is an alias. */
4857 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4865 if { (eval echo configure
:4866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4867 eval "ac_cv_func_$ac_func=yes"
4869 echo "configure: failed program was:" >&5
4870 cat conftest.
$ac_ext >&5
4872 eval "ac_cv_func_$ac_func=no"
4877 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4878 echo "$ac_t""yes" 1>&6
4879 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4880 cat >> confdefs.h
<<EOF
4881 #define $ac_tr_func 1
4885 echo "$ac_t""no" 1>&6
4889 for ac_func
in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
4891 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4892 echo "configure:4893: checking for $ac_func" >&5
4893 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4894 echo $ac_n "(cached) $ac_c" 1>&6
4896 cat > conftest.
$ac_ext <<EOF
4897 #line 4898 "configure"
4898 #include "confdefs.h"
4899 /* System header to define __stub macros and hopefully few prototypes,
4900 which can conflict with char $ac_func(); below. */
4902 /* Override any gcc2 internal prototype to avoid an error. */
4903 /* We use char because int might match the return type of a gcc2
4904 builtin and then its argument prototype would still apply. */
4909 /* The GNU C library defines this for functions which it implements
4910 to always fail with ENOSYS. Some functions are actually named
4911 something starting with __ and the normal name is an alias. */
4912 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4920 if { (eval echo configure
:4921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4922 eval "ac_cv_func_$ac_func=yes"
4924 echo "configure: failed program was:" >&5
4925 cat conftest.
$ac_ext >&5
4927 eval "ac_cv_func_$ac_func=no"
4932 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4933 echo "$ac_t""yes" 1>&6
4934 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4935 cat >> confdefs.h
<<EOF
4936 #define $ac_tr_func 1
4940 echo "$ac_t""no" 1>&6
4944 for ac_func
in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
4946 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4947 echo "configure:4948: checking for $ac_func" >&5
4948 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4949 echo $ac_n "(cached) $ac_c" 1>&6
4951 cat > conftest.
$ac_ext <<EOF
4952 #line 4953 "configure"
4953 #include "confdefs.h"
4954 /* System header to define __stub macros and hopefully few prototypes,
4955 which can conflict with char $ac_func(); below. */
4957 /* Override any gcc2 internal prototype to avoid an error. */
4958 /* We use char because int might match the return type of a gcc2
4959 builtin and then its argument prototype would still apply. */
4964 /* The GNU C library defines this for functions which it implements
4965 to always fail with ENOSYS. Some functions are actually named
4966 something starting with __ and the normal name is an alias. */
4967 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4975 if { (eval echo configure
:4976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4977 eval "ac_cv_func_$ac_func=yes"
4979 echo "configure: failed program was:" >&5
4980 cat conftest.
$ac_ext >&5
4982 eval "ac_cv_func_$ac_func=no"
4987 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4988 echo "$ac_t""yes" 1>&6
4989 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4990 cat >> confdefs.h
<<EOF
4991 #define $ac_tr_func 1
4995 echo "$ac_t""no" 1>&6
4999 for ac_func
in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam
5001 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5002 echo "configure:5003: checking for $ac_func" >&5
5003 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5004 echo $ac_n "(cached) $ac_c" 1>&6
5006 cat > conftest.
$ac_ext <<EOF
5007 #line 5008 "configure"
5008 #include "confdefs.h"
5009 /* System header to define __stub macros and hopefully few prototypes,
5010 which can conflict with char $ac_func(); below. */
5012 /* Override any gcc2 internal prototype to avoid an error. */
5013 /* We use char because int might match the return type of a gcc2
5014 builtin and then its argument prototype would still apply. */
5019 /* The GNU C library defines this for functions which it implements
5020 to always fail with ENOSYS. Some functions are actually named
5021 something starting with __ and the normal name is an alias. */
5022 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5030 if { (eval echo configure
:5031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5032 eval "ac_cv_func_$ac_func=yes"
5034 echo "configure: failed program was:" >&5
5035 cat conftest.
$ac_ext >&5
5037 eval "ac_cv_func_$ac_func=no"
5042 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5043 echo "$ac_t""yes" 1>&6
5044 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5045 cat >> confdefs.h
<<EOF
5046 #define $ac_tr_func 1
5050 echo "$ac_t""no" 1>&6
5054 for ac_func
in srandom random srand rand setenv
usleep strcasecmp fcvt fcvtl
5056 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5057 echo "configure:5058: checking for $ac_func" >&5
5058 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5059 echo $ac_n "(cached) $ac_c" 1>&6
5061 cat > conftest.
$ac_ext <<EOF
5062 #line 5063 "configure"
5063 #include "confdefs.h"
5064 /* System header to define __stub macros and hopefully few prototypes,
5065 which can conflict with char $ac_func(); below. */
5067 /* Override any gcc2 internal prototype to avoid an error. */
5068 /* We use char because int might match the return type of a gcc2
5069 builtin and then its argument prototype would still apply. */
5074 /* The GNU C library defines this for functions which it implements
5075 to always fail with ENOSYS. Some functions are actually named
5076 something starting with __ and the normal name is an alias. */
5077 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5085 if { (eval echo configure
:5086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5087 eval "ac_cv_func_$ac_func=yes"
5089 echo "configure: failed program was:" >&5
5090 cat conftest.
$ac_ext >&5
5092 eval "ac_cv_func_$ac_func=no"
5097 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5098 echo "$ac_t""yes" 1>&6
5099 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5100 cat >> confdefs.h
<<EOF
5101 #define $ac_tr_func 1
5105 echo "$ac_t""no" 1>&6
5110 # syscall() is needed for smbwrapper.
5111 for ac_func
in syscall
5113 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5114 echo "configure:5115: checking for $ac_func" >&5
5115 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5116 echo $ac_n "(cached) $ac_c" 1>&6
5118 cat > conftest.
$ac_ext <<EOF
5119 #line 5120 "configure"
5120 #include "confdefs.h"
5121 /* System header to define __stub macros and hopefully few prototypes,
5122 which can conflict with char $ac_func(); below. */
5124 /* Override any gcc2 internal prototype to avoid an error. */
5125 /* We use char because int might match the return type of a gcc2
5126 builtin and then its argument prototype would still apply. */
5131 /* The GNU C library defines this for functions which it implements
5132 to always fail with ENOSYS. Some functions are actually named
5133 something starting with __ and the normal name is an alias. */
5134 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5142 if { (eval echo configure
:5143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5144 eval "ac_cv_func_$ac_func=yes"
5146 echo "configure: failed program was:" >&5
5147 cat conftest.
$ac_ext >&5
5149 eval "ac_cv_func_$ac_func=no"
5154 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5155 echo "$ac_t""yes" 1>&6
5156 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5157 cat >> confdefs.h
<<EOF
5158 #define $ac_tr_func 1
5162 echo "$ac_t""no" 1>&6
5167 for ac_func
in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
5169 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5170 echo "configure:5171: checking for $ac_func" >&5
5171 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5172 echo $ac_n "(cached) $ac_c" 1>&6
5174 cat > conftest.
$ac_ext <<EOF
5175 #line 5176 "configure"
5176 #include "confdefs.h"
5177 /* System header to define __stub macros and hopefully few prototypes,
5178 which can conflict with char $ac_func(); below. */
5180 /* Override any gcc2 internal prototype to avoid an error. */
5181 /* We use char because int might match the return type of a gcc2
5182 builtin and then its argument prototype would still apply. */
5187 /* The GNU C library defines this for functions which it implements
5188 to always fail with ENOSYS. Some functions are actually named
5189 something starting with __ and the normal name is an alias. */
5190 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5198 if { (eval echo configure
:5199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5200 eval "ac_cv_func_$ac_func=yes"
5202 echo "configure: failed program was:" >&5
5203 cat conftest.
$ac_ext >&5
5205 eval "ac_cv_func_$ac_func=no"
5210 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5211 echo "$ac_t""yes" 1>&6
5212 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5213 cat >> confdefs.h
<<EOF
5214 #define $ac_tr_func 1
5218 echo "$ac_t""no" 1>&6
5222 for ac_func
in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
5224 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5225 echo "configure:5226: checking for $ac_func" >&5
5226 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5227 echo $ac_n "(cached) $ac_c" 1>&6
5229 cat > conftest.
$ac_ext <<EOF
5230 #line 5231 "configure"
5231 #include "confdefs.h"
5232 /* System header to define __stub macros and hopefully few prototypes,
5233 which can conflict with char $ac_func(); below. */
5235 /* Override any gcc2 internal prototype to avoid an error. */
5236 /* We use char because int might match the return type of a gcc2
5237 builtin and then its argument prototype would still apply. */
5242 /* The GNU C library defines this for functions which it implements
5243 to always fail with ENOSYS. Some functions are actually named
5244 something starting with __ and the normal name is an alias. */
5245 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5253 if { (eval echo configure
:5254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5255 eval "ac_cv_func_$ac_func=yes"
5257 echo "configure: failed program was:" >&5
5258 cat conftest.
$ac_ext >&5
5260 eval "ac_cv_func_$ac_func=no"
5265 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5266 echo "$ac_t""yes" 1>&6
5267 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5268 cat >> confdefs.h
<<EOF
5269 #define $ac_tr_func 1
5273 echo "$ac_t""no" 1>&6
5277 for ac_func
in __getcwd _getcwd
5279 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5280 echo "configure:5281: checking for $ac_func" >&5
5281 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5282 echo $ac_n "(cached) $ac_c" 1>&6
5284 cat > conftest.
$ac_ext <<EOF
5285 #line 5286 "configure"
5286 #include "confdefs.h"
5287 /* System header to define __stub macros and hopefully few prototypes,
5288 which can conflict with char $ac_func(); below. */
5290 /* Override any gcc2 internal prototype to avoid an error. */
5291 /* We use char because int might match the return type of a gcc2
5292 builtin and then its argument prototype would still apply. */
5297 /* The GNU C library defines this for functions which it implements
5298 to always fail with ENOSYS. Some functions are actually named
5299 something starting with __ and the normal name is an alias. */
5300 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5308 if { (eval echo configure
:5309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5310 eval "ac_cv_func_$ac_func=yes"
5312 echo "configure: failed program was:" >&5
5313 cat conftest.
$ac_ext >&5
5315 eval "ac_cv_func_$ac_func=no"
5320 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5321 echo "$ac_t""yes" 1>&6
5322 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5323 cat >> confdefs.h
<<EOF
5324 #define $ac_tr_func 1
5328 echo "$ac_t""no" 1>&6
5332 for ac_func
in __xstat __fxstat __lxstat
5334 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5335 echo "configure:5336: checking for $ac_func" >&5
5336 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5337 echo $ac_n "(cached) $ac_c" 1>&6
5339 cat > conftest.
$ac_ext <<EOF
5340 #line 5341 "configure"
5341 #include "confdefs.h"
5342 /* System header to define __stub macros and hopefully few prototypes,
5343 which can conflict with char $ac_func(); below. */
5345 /* Override any gcc2 internal prototype to avoid an error. */
5346 /* We use char because int might match the return type of a gcc2
5347 builtin and then its argument prototype would still apply. */
5352 /* The GNU C library defines this for functions which it implements
5353 to always fail with ENOSYS. Some functions are actually named
5354 something starting with __ and the normal name is an alias. */
5355 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5363 if { (eval echo configure
:5364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5365 eval "ac_cv_func_$ac_func=yes"
5367 echo "configure: failed program was:" >&5
5368 cat conftest.
$ac_ext >&5
5370 eval "ac_cv_func_$ac_func=no"
5375 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5376 echo "$ac_t""yes" 1>&6
5377 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5378 cat >> confdefs.h
<<EOF
5379 #define $ac_tr_func 1
5383 echo "$ac_t""no" 1>&6
5387 for ac_func
in _stat _lstat _fstat __stat __lstat __fstat
5389 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5390 echo "configure:5391: checking for $ac_func" >&5
5391 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5392 echo $ac_n "(cached) $ac_c" 1>&6
5394 cat > conftest.
$ac_ext <<EOF
5395 #line 5396 "configure"
5396 #include "confdefs.h"
5397 /* System header to define __stub macros and hopefully few prototypes,
5398 which can conflict with char $ac_func(); below. */
5400 /* Override any gcc2 internal prototype to avoid an error. */
5401 /* We use char because int might match the return type of a gcc2
5402 builtin and then its argument prototype would still apply. */
5407 /* The GNU C library defines this for functions which it implements
5408 to always fail with ENOSYS. Some functions are actually named
5409 something starting with __ and the normal name is an alias. */
5410 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5418 if { (eval echo configure
:5419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5420 eval "ac_cv_func_$ac_func=yes"
5422 echo "configure: failed program was:" >&5
5423 cat conftest.
$ac_ext >&5
5425 eval "ac_cv_func_$ac_func=no"
5430 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5431 echo "$ac_t""yes" 1>&6
5432 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5433 cat >> confdefs.h
<<EOF
5434 #define $ac_tr_func 1
5438 echo "$ac_t""no" 1>&6
5442 for ac_func
in _acl __acl _facl __facl _open __open _chdir __chdir
5444 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5445 echo "configure:5446: checking for $ac_func" >&5
5446 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5447 echo $ac_n "(cached) $ac_c" 1>&6
5449 cat > conftest.
$ac_ext <<EOF
5450 #line 5451 "configure"
5451 #include "confdefs.h"
5452 /* System header to define __stub macros and hopefully few prototypes,
5453 which can conflict with char $ac_func(); below. */
5455 /* Override any gcc2 internal prototype to avoid an error. */
5456 /* We use char because int might match the return type of a gcc2
5457 builtin and then its argument prototype would still apply. */
5462 /* The GNU C library defines this for functions which it implements
5463 to always fail with ENOSYS. Some functions are actually named
5464 something starting with __ and the normal name is an alias. */
5465 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5473 if { (eval echo configure
:5474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5475 eval "ac_cv_func_$ac_func=yes"
5477 echo "configure: failed program was:" >&5
5478 cat conftest.
$ac_ext >&5
5480 eval "ac_cv_func_$ac_func=no"
5485 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5486 echo "$ac_t""yes" 1>&6
5487 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5488 cat >> confdefs.h
<<EOF
5489 #define $ac_tr_func 1
5493 echo "$ac_t""no" 1>&6
5497 for ac_func
in _close __close _fchdir __fchdir _fcntl __fcntl
5499 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5500 echo "configure:5501: checking for $ac_func" >&5
5501 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5502 echo $ac_n "(cached) $ac_c" 1>&6
5504 cat > conftest.
$ac_ext <<EOF
5505 #line 5506 "configure"
5506 #include "confdefs.h"
5507 /* System header to define __stub macros and hopefully few prototypes,
5508 which can conflict with char $ac_func(); below. */
5510 /* Override any gcc2 internal prototype to avoid an error. */
5511 /* We use char because int might match the return type of a gcc2
5512 builtin and then its argument prototype would still apply. */
5517 /* The GNU C library defines this for functions which it implements
5518 to always fail with ENOSYS. Some functions are actually named
5519 something starting with __ and the normal name is an alias. */
5520 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5528 if { (eval echo configure
:5529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5530 eval "ac_cv_func_$ac_func=yes"
5532 echo "configure: failed program was:" >&5
5533 cat conftest.
$ac_ext >&5
5535 eval "ac_cv_func_$ac_func=no"
5540 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5541 echo "$ac_t""yes" 1>&6
5542 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5543 cat >> confdefs.h
<<EOF
5544 #define $ac_tr_func 1
5548 echo "$ac_t""no" 1>&6
5552 for ac_func
in getdents _getdents __getdents _lseek __lseek _read __read
5554 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5555 echo "configure:5556: checking for $ac_func" >&5
5556 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5557 echo $ac_n "(cached) $ac_c" 1>&6
5559 cat > conftest.
$ac_ext <<EOF
5560 #line 5561 "configure"
5561 #include "confdefs.h"
5562 /* System header to define __stub macros and hopefully few prototypes,
5563 which can conflict with char $ac_func(); below. */
5565 /* Override any gcc2 internal prototype to avoid an error. */
5566 /* We use char because int might match the return type of a gcc2
5567 builtin and then its argument prototype would still apply. */
5572 /* The GNU C library defines this for functions which it implements
5573 to always fail with ENOSYS. Some functions are actually named
5574 something starting with __ and the normal name is an alias. */
5575 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5583 if { (eval echo configure
:5584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5585 eval "ac_cv_func_$ac_func=yes"
5587 echo "configure: failed program was:" >&5
5588 cat conftest.
$ac_ext >&5
5590 eval "ac_cv_func_$ac_func=no"
5595 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5596 echo "$ac_t""yes" 1>&6
5597 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5598 cat >> confdefs.h
<<EOF
5599 #define $ac_tr_func 1
5603 echo "$ac_t""no" 1>&6
5607 for ac_func
in _write __write _fork __fork
5609 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5610 echo "configure:5611: checking for $ac_func" >&5
5611 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5612 echo $ac_n "(cached) $ac_c" 1>&6
5614 cat > conftest.
$ac_ext <<EOF
5615 #line 5616 "configure"
5616 #include "confdefs.h"
5617 /* System header to define __stub macros and hopefully few prototypes,
5618 which can conflict with char $ac_func(); below. */
5620 /* Override any gcc2 internal prototype to avoid an error. */
5621 /* We use char because int might match the return type of a gcc2
5622 builtin and then its argument prototype would still apply. */
5627 /* The GNU C library defines this for functions which it implements
5628 to always fail with ENOSYS. Some functions are actually named
5629 something starting with __ and the normal name is an alias. */
5630 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5638 if { (eval echo configure
:5639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5640 eval "ac_cv_func_$ac_func=yes"
5642 echo "configure: failed program was:" >&5
5643 cat conftest.
$ac_ext >&5
5645 eval "ac_cv_func_$ac_func=no"
5650 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5651 echo "$ac_t""yes" 1>&6
5652 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5653 cat >> confdefs.h
<<EOF
5654 #define $ac_tr_func 1
5658 echo "$ac_t""no" 1>&6
5662 for ac_func
in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
5664 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5665 echo "configure:5666: checking for $ac_func" >&5
5666 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5667 echo $ac_n "(cached) $ac_c" 1>&6
5669 cat > conftest.
$ac_ext <<EOF
5670 #line 5671 "configure"
5671 #include "confdefs.h"
5672 /* System header to define __stub macros and hopefully few prototypes,
5673 which can conflict with char $ac_func(); below. */
5675 /* Override any gcc2 internal prototype to avoid an error. */
5676 /* We use char because int might match the return type of a gcc2
5677 builtin and then its argument prototype would still apply. */
5682 /* The GNU C library defines this for functions which it implements
5683 to always fail with ENOSYS. Some functions are actually named
5684 something starting with __ and the normal name is an alias. */
5685 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5693 if { (eval echo configure
:5694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5695 eval "ac_cv_func_$ac_func=yes"
5697 echo "configure: failed program was:" >&5
5698 cat conftest.
$ac_ext >&5
5700 eval "ac_cv_func_$ac_func=no"
5705 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5706 echo "$ac_t""yes" 1>&6
5707 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5708 cat >> confdefs.h
<<EOF
5709 #define $ac_tr_func 1
5713 echo "$ac_t""no" 1>&6
5717 for ac_func
in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
5719 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5720 echo "configure:5721: checking for $ac_func" >&5
5721 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5722 echo $ac_n "(cached) $ac_c" 1>&6
5724 cat > conftest.
$ac_ext <<EOF
5725 #line 5726 "configure"
5726 #include "confdefs.h"
5727 /* System header to define __stub macros and hopefully few prototypes,
5728 which can conflict with char $ac_func(); below. */
5730 /* Override any gcc2 internal prototype to avoid an error. */
5731 /* We use char because int might match the return type of a gcc2
5732 builtin and then its argument prototype would still apply. */
5737 /* The GNU C library defines this for functions which it implements
5738 to always fail with ENOSYS. Some functions are actually named
5739 something starting with __ and the normal name is an alias. */
5740 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5748 if { (eval echo configure
:5749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5750 eval "ac_cv_func_$ac_func=yes"
5752 echo "configure: failed program was:" >&5
5753 cat conftest.
$ac_ext >&5
5755 eval "ac_cv_func_$ac_func=no"
5760 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5761 echo "$ac_t""yes" 1>&6
5762 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5763 cat >> confdefs.h
<<EOF
5764 #define $ac_tr_func 1
5768 echo "$ac_t""no" 1>&6
5772 for ac_func
in pread _pread __pread pread64 _pread64 __pread64
5774 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5775 echo "configure:5776: checking for $ac_func" >&5
5776 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5777 echo $ac_n "(cached) $ac_c" 1>&6
5779 cat > conftest.
$ac_ext <<EOF
5780 #line 5781 "configure"
5781 #include "confdefs.h"
5782 /* System header to define __stub macros and hopefully few prototypes,
5783 which can conflict with char $ac_func(); below. */
5785 /* Override any gcc2 internal prototype to avoid an error. */
5786 /* We use char because int might match the return type of a gcc2
5787 builtin and then its argument prototype would still apply. */
5792 /* The GNU C library defines this for functions which it implements
5793 to always fail with ENOSYS. Some functions are actually named
5794 something starting with __ and the normal name is an alias. */
5795 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5803 if { (eval echo configure
:5804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5805 eval "ac_cv_func_$ac_func=yes"
5807 echo "configure: failed program was:" >&5
5808 cat conftest.
$ac_ext >&5
5810 eval "ac_cv_func_$ac_func=no"
5815 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5816 echo "$ac_t""yes" 1>&6
5817 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5818 cat >> confdefs.h
<<EOF
5819 #define $ac_tr_func 1
5823 echo "$ac_t""no" 1>&6
5827 for ac_func
in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
5829 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5830 echo "configure:5831: checking for $ac_func" >&5
5831 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5832 echo $ac_n "(cached) $ac_c" 1>&6
5834 cat > conftest.
$ac_ext <<EOF
5835 #line 5836 "configure"
5836 #include "confdefs.h"
5837 /* System header to define __stub macros and hopefully few prototypes,
5838 which can conflict with char $ac_func(); below. */
5840 /* Override any gcc2 internal prototype to avoid an error. */
5841 /* We use char because int might match the return type of a gcc2
5842 builtin and then its argument prototype would still apply. */
5847 /* The GNU C library defines this for functions which it implements
5848 to always fail with ENOSYS. Some functions are actually named
5849 something starting with __ and the normal name is an alias. */
5850 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5858 if { (eval echo configure
:5859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5860 eval "ac_cv_func_$ac_func=yes"
5862 echo "configure: failed program was:" >&5
5863 cat conftest.
$ac_ext >&5
5865 eval "ac_cv_func_$ac_func=no"
5870 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5871 echo "$ac_t""yes" 1>&6
5872 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5873 cat >> confdefs.h
<<EOF
5874 #define $ac_tr_func 1
5878 echo "$ac_t""no" 1>&6
5882 for ac_func
in open64 _open64 __open64 creat64
5884 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5885 echo "configure:5886: checking for $ac_func" >&5
5886 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5887 echo $ac_n "(cached) $ac_c" 1>&6
5889 cat > conftest.
$ac_ext <<EOF
5890 #line 5891 "configure"
5891 #include "confdefs.h"
5892 /* System header to define __stub macros and hopefully few prototypes,
5893 which can conflict with char $ac_func(); below. */
5895 /* Override any gcc2 internal prototype to avoid an error. */
5896 /* We use char because int might match the return type of a gcc2
5897 builtin and then its argument prototype would still apply. */
5902 /* The GNU C library defines this for functions which it implements
5903 to always fail with ENOSYS. Some functions are actually named
5904 something starting with __ and the normal name is an alias. */
5905 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5913 if { (eval echo configure
:5914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5915 eval "ac_cv_func_$ac_func=yes"
5917 echo "configure: failed program was:" >&5
5918 cat conftest.
$ac_ext >&5
5920 eval "ac_cv_func_$ac_func=no"
5925 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5926 echo "$ac_t""yes" 1>&6
5927 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5928 cat >> confdefs.h
<<EOF
5929 #define $ac_tr_func 1
5933 echo "$ac_t""no" 1>&6
5939 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
5942 if test x
$ac_cv_func_stat64 = xno
; then
5943 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
5944 echo "configure:5945: checking for stat64 in <sys/stat.h>" >&5
5945 cat > conftest.
$ac_ext <<EOF
5946 #line 5947 "configure"
5947 #include "confdefs.h"
5949 #if defined(HAVE_UNISTD_H)
5952 #include <sys/stat.h>
5955 struct stat64 st64; exit(stat64(".",&st64));
5958 if { (eval echo configure
:5959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5960 ac_cv_func_stat64
=yes
5962 echo "configure: failed program was:" >&5
5963 cat conftest.
$ac_ext >&5
5966 echo "$ac_t""$ac_cv_func_stat64" 1>&6
5967 if test x
$ac_cv_func_stat64 = xyes
; then
5968 cat >> confdefs.h
<<\EOF
5969 #define HAVE_STAT64 1
5975 if test x
$ac_cv_func_lstat64 = xno
; then
5976 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
5977 echo "configure:5978: checking for lstat64 in <sys/stat.h>" >&5
5978 cat > conftest.
$ac_ext <<EOF
5979 #line 5980 "configure"
5980 #include "confdefs.h"
5982 #if defined(HAVE_UNISTD_H)
5985 #include <sys/stat.h>
5988 struct stat64 st64; exit(lstat64(".",&st64));
5991 if { (eval echo configure
:5992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5993 ac_cv_func_lstat64
=yes
5995 echo "configure: failed program was:" >&5
5996 cat conftest.
$ac_ext >&5
5999 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
6000 if test x
$ac_cv_func_lstat64 = xyes
; then
6001 cat >> confdefs.h
<<\EOF
6002 #define HAVE_LSTAT64 1
6008 if test x
$ac_cv_func_fstat64 = xno
; then
6009 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
6010 echo "configure:6011: checking for fstat64 in <sys/stat.h>" >&5
6011 cat > conftest.
$ac_ext <<EOF
6012 #line 6013 "configure"
6013 #include "confdefs.h"
6015 #if defined(HAVE_UNISTD_H)
6018 #include <sys/stat.h>
6021 struct stat64 st64; exit(fstat64(0,&st64));
6024 if { (eval echo configure
:6025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6026 ac_cv_func_fstat64
=yes
6028 echo "configure: failed program was:" >&5
6029 cat conftest.
$ac_ext >&5
6032 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
6033 if test x
$ac_cv_func_fstat64 = xyes
; then
6034 cat >> confdefs.h
<<\EOF
6035 #define HAVE_FSTAT64 1
6042 # If no strcasecmp, check for it in some known places
6043 # It is in -lresolv on ReliantUNIX and UnixWare
6044 # -lresolve *must* follow -lnsl for name resolution to work properly
6047 if test x
$ac_cv_func_strcasecmp = xno
; then
6048 echo $ac_n "checking for strcasecmp in -lresolv""... $ac_c" 1>&6
6049 echo "configure:6050: checking for strcasecmp in -lresolv" >&5
6050 ac_lib_var
=`echo resolv'_'strcasecmp | sed 'y%./+-%__p_%'`
6051 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6052 echo $ac_n "(cached) $ac_c" 1>&6
6054 ac_save_LIBS
="$LIBS"
6055 LIBS
="-lresolv $LIBS"
6056 cat > conftest.
$ac_ext <<EOF
6057 #line 6058 "configure"
6058 #include "confdefs.h"
6059 /* Override any gcc2 internal prototype to avoid an error. */
6060 /* We use char because int might match the return type of a gcc2
6061 builtin and then its argument prototype would still apply. */
6068 if { (eval echo configure
:6069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6070 eval "ac_cv_lib_$ac_lib_var=yes"
6072 echo "configure: failed program was:" >&5
6073 cat conftest.
$ac_ext >&5
6075 eval "ac_cv_lib_$ac_lib_var=no"
6078 LIBS
="$ac_save_LIBS"
6081 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6082 echo "$ac_t""yes" 1>&6
6083 LIBS
="$LIBS -lresolv"
6084 cat >> confdefs.h
<<\EOF
6085 #define HAVE_STRCASECMP 1
6089 echo "$ac_t""no" 1>&6
6095 # Check for the functions putprpwnam, set_auth_parameters,
6096 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
6097 # Needed for OSF1 and HPUX.
6101 *-lsecurity*) for ac_func
in putprpwnam
6103 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6104 echo "configure:6105: checking for $ac_func" >&5
6105 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6106 echo $ac_n "(cached) $ac_c" 1>&6
6108 cat > conftest.
$ac_ext <<EOF
6109 #line 6110 "configure"
6110 #include "confdefs.h"
6111 /* System header to define __stub macros and hopefully few prototypes,
6112 which can conflict with char $ac_func(); below. */
6114 /* Override any gcc2 internal prototype to avoid an error. */
6115 /* We use char because int might match the return type of a gcc2
6116 builtin and then its argument prototype would still apply. */
6121 /* The GNU C library defines this for functions which it implements
6122 to always fail with ENOSYS. Some functions are actually named
6123 something starting with __ and the normal name is an alias. */
6124 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6132 if { (eval echo configure
:6133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6134 eval "ac_cv_func_$ac_func=yes"
6136 echo "configure: failed program was:" >&5
6137 cat conftest.
$ac_ext >&5
6139 eval "ac_cv_func_$ac_func=no"
6144 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6145 echo "$ac_t""yes" 1>&6
6146 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6147 cat >> confdefs.h
<<EOF
6148 #define $ac_tr_func 1
6152 echo "$ac_t""no" 1>&6
6156 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
6157 echo "configure:6158: checking for putprpwnam in -lsecurity" >&5
6158 ac_lib_var
=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
6159 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6160 echo $ac_n "(cached) $ac_c" 1>&6
6162 ac_save_LIBS
="$LIBS"
6163 LIBS
="-lsecurity $LIBS"
6164 cat > conftest.
$ac_ext <<EOF
6165 #line 6166 "configure"
6166 #include "confdefs.h"
6167 /* Override any gcc2 internal prototype to avoid an error. */
6168 /* We use char because int might match the return type of a gcc2
6169 builtin and then its argument prototype would still apply. */
6176 if { (eval echo configure
:6177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6178 eval "ac_cv_lib_$ac_lib_var=yes"
6180 echo "configure: failed program was:" >&5
6181 cat conftest.
$ac_ext >&5
6183 eval "ac_cv_lib_$ac_lib_var=no"
6186 LIBS
="$ac_save_LIBS"
6189 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6190 echo "$ac_t""yes" 1>&6
6191 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6192 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6193 cat >> confdefs.h
<<EOF
6194 #define $ac_tr_lib 1
6197 LIBS
="-lsecurity $LIBS"
6200 echo "$ac_t""no" 1>&6
6203 for ac_func
in putprpwnam
6205 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6206 echo "configure:6207: checking for $ac_func" >&5
6207 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6208 echo $ac_n "(cached) $ac_c" 1>&6
6210 cat > conftest.
$ac_ext <<EOF
6211 #line 6212 "configure"
6212 #include "confdefs.h"
6213 /* System header to define __stub macros and hopefully few prototypes,
6214 which can conflict with char $ac_func(); below. */
6216 /* Override any gcc2 internal prototype to avoid an error. */
6217 /* We use char because int might match the return type of a gcc2
6218 builtin and then its argument prototype would still apply. */
6223 /* The GNU C library defines this for functions which it implements
6224 to always fail with ENOSYS. Some functions are actually named
6225 something starting with __ and the normal name is an alias. */
6226 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6234 if { (eval echo configure
:6235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6236 eval "ac_cv_func_$ac_func=yes"
6238 echo "configure: failed program was:" >&5
6239 cat conftest.
$ac_ext >&5
6241 eval "ac_cv_func_$ac_func=no"
6246 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6247 echo "$ac_t""yes" 1>&6
6248 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6249 cat >> confdefs.h
<<EOF
6250 #define $ac_tr_func 1
6254 echo "$ac_t""no" 1>&6
6262 *-lsec*) for ac_func
in putprpwnam
6264 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6265 echo "configure:6266: checking for $ac_func" >&5
6266 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6267 echo $ac_n "(cached) $ac_c" 1>&6
6269 cat > conftest.
$ac_ext <<EOF
6270 #line 6271 "configure"
6271 #include "confdefs.h"
6272 /* System header to define __stub macros and hopefully few prototypes,
6273 which can conflict with char $ac_func(); below. */
6275 /* Override any gcc2 internal prototype to avoid an error. */
6276 /* We use char because int might match the return type of a gcc2
6277 builtin and then its argument prototype would still apply. */
6282 /* The GNU C library defines this for functions which it implements
6283 to always fail with ENOSYS. Some functions are actually named
6284 something starting with __ and the normal name is an alias. */
6285 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6293 if { (eval echo configure
:6294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6295 eval "ac_cv_func_$ac_func=yes"
6297 echo "configure: failed program was:" >&5
6298 cat conftest.
$ac_ext >&5
6300 eval "ac_cv_func_$ac_func=no"
6305 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6306 echo "$ac_t""yes" 1>&6
6307 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6308 cat >> confdefs.h
<<EOF
6309 #define $ac_tr_func 1
6313 echo "$ac_t""no" 1>&6
6317 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
6318 echo "configure:6319: checking for putprpwnam in -lsec" >&5
6319 ac_lib_var
=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
6320 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6321 echo $ac_n "(cached) $ac_c" 1>&6
6323 ac_save_LIBS
="$LIBS"
6325 cat > conftest.
$ac_ext <<EOF
6326 #line 6327 "configure"
6327 #include "confdefs.h"
6328 /* Override any gcc2 internal prototype to avoid an error. */
6329 /* We use char because int might match the return type of a gcc2
6330 builtin and then its argument prototype would still apply. */
6337 if { (eval echo configure
:6338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6339 eval "ac_cv_lib_$ac_lib_var=yes"
6341 echo "configure: failed program was:" >&5
6342 cat conftest.
$ac_ext >&5
6344 eval "ac_cv_lib_$ac_lib_var=no"
6347 LIBS
="$ac_save_LIBS"
6350 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6351 echo "$ac_t""yes" 1>&6
6352 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6353 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6354 cat >> confdefs.h
<<EOF
6355 #define $ac_tr_lib 1
6361 echo "$ac_t""no" 1>&6
6364 for ac_func
in putprpwnam
6366 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6367 echo "configure:6368: checking for $ac_func" >&5
6368 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6369 echo $ac_n "(cached) $ac_c" 1>&6
6371 cat > conftest.
$ac_ext <<EOF
6372 #line 6373 "configure"
6373 #include "confdefs.h"
6374 /* System header to define __stub macros and hopefully few prototypes,
6375 which can conflict with char $ac_func(); below. */
6377 /* Override any gcc2 internal prototype to avoid an error. */
6378 /* We use char because int might match the return type of a gcc2
6379 builtin and then its argument prototype would still apply. */
6384 /* The GNU C library defines this for functions which it implements
6385 to always fail with ENOSYS. Some functions are actually named
6386 something starting with __ and the normal name is an alias. */
6387 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6395 if { (eval echo configure
:6396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6397 eval "ac_cv_func_$ac_func=yes"
6399 echo "configure: failed program was:" >&5
6400 cat conftest.
$ac_ext >&5
6402 eval "ac_cv_func_$ac_func=no"
6407 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6408 echo "$ac_t""yes" 1>&6
6409 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6410 cat >> confdefs.h
<<EOF
6411 #define $ac_tr_func 1
6415 echo "$ac_t""no" 1>&6
6424 *-lsecurity*) for ac_func
in set_auth_parameters
6426 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6427 echo "configure:6428: checking for $ac_func" >&5
6428 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6429 echo $ac_n "(cached) $ac_c" 1>&6
6431 cat > conftest.
$ac_ext <<EOF
6432 #line 6433 "configure"
6433 #include "confdefs.h"
6434 /* System header to define __stub macros and hopefully few prototypes,
6435 which can conflict with char $ac_func(); below. */
6437 /* Override any gcc2 internal prototype to avoid an error. */
6438 /* We use char because int might match the return type of a gcc2
6439 builtin and then its argument prototype would still apply. */
6444 /* The GNU C library defines this for functions which it implements
6445 to always fail with ENOSYS. Some functions are actually named
6446 something starting with __ and the normal name is an alias. */
6447 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6455 if { (eval echo configure
:6456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6457 eval "ac_cv_func_$ac_func=yes"
6459 echo "configure: failed program was:" >&5
6460 cat conftest.
$ac_ext >&5
6462 eval "ac_cv_func_$ac_func=no"
6467 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6468 echo "$ac_t""yes" 1>&6
6469 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6470 cat >> confdefs.h
<<EOF
6471 #define $ac_tr_func 1
6475 echo "$ac_t""no" 1>&6
6479 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
6480 echo "configure:6481: checking for set_auth_parameters in -lsecurity" >&5
6481 ac_lib_var
=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
6482 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6483 echo $ac_n "(cached) $ac_c" 1>&6
6485 ac_save_LIBS
="$LIBS"
6486 LIBS
="-lsecurity $LIBS"
6487 cat > conftest.
$ac_ext <<EOF
6488 #line 6489 "configure"
6489 #include "confdefs.h"
6490 /* Override any gcc2 internal prototype to avoid an error. */
6491 /* We use char because int might match the return type of a gcc2
6492 builtin and then its argument prototype would still apply. */
6493 char set_auth_parameters();
6496 set_auth_parameters()
6499 if { (eval echo configure
:6500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6501 eval "ac_cv_lib_$ac_lib_var=yes"
6503 echo "configure: failed program was:" >&5
6504 cat conftest.
$ac_ext >&5
6506 eval "ac_cv_lib_$ac_lib_var=no"
6509 LIBS
="$ac_save_LIBS"
6512 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6513 echo "$ac_t""yes" 1>&6
6514 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6515 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6516 cat >> confdefs.h
<<EOF
6517 #define $ac_tr_lib 1
6520 LIBS
="-lsecurity $LIBS"
6523 echo "$ac_t""no" 1>&6
6526 for ac_func
in set_auth_parameters
6528 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6529 echo "configure:6530: checking for $ac_func" >&5
6530 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6531 echo $ac_n "(cached) $ac_c" 1>&6
6533 cat > conftest.
$ac_ext <<EOF
6534 #line 6535 "configure"
6535 #include "confdefs.h"
6536 /* System header to define __stub macros and hopefully few prototypes,
6537 which can conflict with char $ac_func(); below. */
6539 /* Override any gcc2 internal prototype to avoid an error. */
6540 /* We use char because int might match the return type of a gcc2
6541 builtin and then its argument prototype would still apply. */
6546 /* The GNU C library defines this for functions which it implements
6547 to always fail with ENOSYS. Some functions are actually named
6548 something starting with __ and the normal name is an alias. */
6549 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6557 if { (eval echo configure
:6558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6559 eval "ac_cv_func_$ac_func=yes"
6561 echo "configure: failed program was:" >&5
6562 cat conftest.
$ac_ext >&5
6564 eval "ac_cv_func_$ac_func=no"
6569 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6570 echo "$ac_t""yes" 1>&6
6571 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6572 cat >> confdefs.h
<<EOF
6573 #define $ac_tr_func 1
6577 echo "$ac_t""no" 1>&6
6585 *-lsec*) for ac_func
in set_auth_parameters
6587 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6588 echo "configure:6589: checking for $ac_func" >&5
6589 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6590 echo $ac_n "(cached) $ac_c" 1>&6
6592 cat > conftest.
$ac_ext <<EOF
6593 #line 6594 "configure"
6594 #include "confdefs.h"
6595 /* System header to define __stub macros and hopefully few prototypes,
6596 which can conflict with char $ac_func(); below. */
6598 /* Override any gcc2 internal prototype to avoid an error. */
6599 /* We use char because int might match the return type of a gcc2
6600 builtin and then its argument prototype would still apply. */
6605 /* The GNU C library defines this for functions which it implements
6606 to always fail with ENOSYS. Some functions are actually named
6607 something starting with __ and the normal name is an alias. */
6608 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6616 if { (eval echo configure
:6617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6618 eval "ac_cv_func_$ac_func=yes"
6620 echo "configure: failed program was:" >&5
6621 cat conftest.
$ac_ext >&5
6623 eval "ac_cv_func_$ac_func=no"
6628 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6629 echo "$ac_t""yes" 1>&6
6630 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6631 cat >> confdefs.h
<<EOF
6632 #define $ac_tr_func 1
6636 echo "$ac_t""no" 1>&6
6640 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
6641 echo "configure:6642: checking for set_auth_parameters in -lsec" >&5
6642 ac_lib_var
=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
6643 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6644 echo $ac_n "(cached) $ac_c" 1>&6
6646 ac_save_LIBS
="$LIBS"
6648 cat > conftest.
$ac_ext <<EOF
6649 #line 6650 "configure"
6650 #include "confdefs.h"
6651 /* Override any gcc2 internal prototype to avoid an error. */
6652 /* We use char because int might match the return type of a gcc2
6653 builtin and then its argument prototype would still apply. */
6654 char set_auth_parameters();
6657 set_auth_parameters()
6660 if { (eval echo configure
:6661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6662 eval "ac_cv_lib_$ac_lib_var=yes"
6664 echo "configure: failed program was:" >&5
6665 cat conftest.
$ac_ext >&5
6667 eval "ac_cv_lib_$ac_lib_var=no"
6670 LIBS
="$ac_save_LIBS"
6673 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6674 echo "$ac_t""yes" 1>&6
6675 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6676 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6677 cat >> confdefs.h
<<EOF
6678 #define $ac_tr_lib 1
6684 echo "$ac_t""no" 1>&6
6687 for ac_func
in set_auth_parameters
6689 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6690 echo "configure:6691: checking for $ac_func" >&5
6691 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6692 echo $ac_n "(cached) $ac_c" 1>&6
6694 cat > conftest.
$ac_ext <<EOF
6695 #line 6696 "configure"
6696 #include "confdefs.h"
6697 /* System header to define __stub macros and hopefully few prototypes,
6698 which can conflict with char $ac_func(); below. */
6700 /* Override any gcc2 internal prototype to avoid an error. */
6701 /* We use char because int might match the return type of a gcc2
6702 builtin and then its argument prototype would still apply. */
6707 /* The GNU C library defines this for functions which it implements
6708 to always fail with ENOSYS. Some functions are actually named
6709 something starting with __ and the normal name is an alias. */
6710 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6718 if { (eval echo configure
:6719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6720 eval "ac_cv_func_$ac_func=yes"
6722 echo "configure: failed program was:" >&5
6723 cat conftest.
$ac_ext >&5
6725 eval "ac_cv_func_$ac_func=no"
6730 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6731 echo "$ac_t""yes" 1>&6
6732 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6733 cat >> confdefs.h
<<EOF
6734 #define $ac_tr_func 1
6738 echo "$ac_t""no" 1>&6
6746 # UnixWare 7.x has its getspnam in -lgen
6748 *-lgen*) for ac_func
in getspnam
6750 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6751 echo "configure:6752: checking for $ac_func" >&5
6752 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6753 echo $ac_n "(cached) $ac_c" 1>&6
6755 cat > conftest.
$ac_ext <<EOF
6756 #line 6757 "configure"
6757 #include "confdefs.h"
6758 /* System header to define __stub macros and hopefully few prototypes,
6759 which can conflict with char $ac_func(); below. */
6761 /* Override any gcc2 internal prototype to avoid an error. */
6762 /* We use char because int might match the return type of a gcc2
6763 builtin and then its argument prototype would still apply. */
6768 /* The GNU C library defines this for functions which it implements
6769 to always fail with ENOSYS. Some functions are actually named
6770 something starting with __ and the normal name is an alias. */
6771 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6779 if { (eval echo configure
:6780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6781 eval "ac_cv_func_$ac_func=yes"
6783 echo "configure: failed program was:" >&5
6784 cat conftest.
$ac_ext >&5
6786 eval "ac_cv_func_$ac_func=no"
6791 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6792 echo "$ac_t""yes" 1>&6
6793 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6794 cat >> confdefs.h
<<EOF
6795 #define $ac_tr_func 1
6799 echo "$ac_t""no" 1>&6
6803 *) echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
6804 echo "configure:6805: checking for getspnam in -lgen" >&5
6805 ac_lib_var
=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
6806 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6807 echo $ac_n "(cached) $ac_c" 1>&6
6809 ac_save_LIBS
="$LIBS"
6811 cat > conftest.
$ac_ext <<EOF
6812 #line 6813 "configure"
6813 #include "confdefs.h"
6814 /* Override any gcc2 internal prototype to avoid an error. */
6815 /* We use char because int might match the return type of a gcc2
6816 builtin and then its argument prototype would still apply. */
6823 if { (eval echo configure
:6824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6825 eval "ac_cv_lib_$ac_lib_var=yes"
6827 echo "configure: failed program was:" >&5
6828 cat conftest.
$ac_ext >&5
6830 eval "ac_cv_lib_$ac_lib_var=no"
6833 LIBS
="$ac_save_LIBS"
6836 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6837 echo "$ac_t""yes" 1>&6
6838 ac_tr_lib
=HAVE_LIB
`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6839 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6840 cat >> confdefs.h
<<EOF
6841 #define $ac_tr_lib 1
6847 echo "$ac_t""no" 1>&6
6850 for ac_func
in getspnam
6852 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6853 echo "configure:6854: checking for $ac_func" >&5
6854 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6855 echo $ac_n "(cached) $ac_c" 1>&6
6857 cat > conftest.
$ac_ext <<EOF
6858 #line 6859 "configure"
6859 #include "confdefs.h"
6860 /* System header to define __stub macros and hopefully few prototypes,
6861 which can conflict with char $ac_func(); below. */
6863 /* Override any gcc2 internal prototype to avoid an error. */
6864 /* We use char because int might match the return type of a gcc2
6865 builtin and then its argument prototype would still apply. */
6870 /* The GNU C library defines this for functions which it implements
6871 to always fail with ENOSYS. Some functions are actually named
6872 something starting with __ and the normal name is an alias. */
6873 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6881 if { (eval echo configure
:6882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6883 eval "ac_cv_func_$ac_func=yes"
6885 echo "configure: failed program was:" >&5
6886 cat conftest.
$ac_ext >&5
6888 eval "ac_cv_func_$ac_func=no"
6893 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6894 echo "$ac_t""yes" 1>&6
6895 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6896 cat >> confdefs.h
<<EOF
6897 #define $ac_tr_func 1
6901 echo "$ac_t""no" 1>&6
6910 *-lsecurity*) for ac_func
in getspnam
6912 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6913 echo "configure:6914: checking for $ac_func" >&5
6914 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6915 echo $ac_n "(cached) $ac_c" 1>&6
6917 cat > conftest.
$ac_ext <<EOF
6918 #line 6919 "configure"
6919 #include "confdefs.h"
6920 /* System header to define __stub macros and hopefully few prototypes,
6921 which can conflict with char $ac_func(); below. */
6923 /* Override any gcc2 internal prototype to avoid an error. */
6924 /* We use char because int might match the return type of a gcc2
6925 builtin and then its argument prototype would still apply. */
6930 /* The GNU C library defines this for functions which it implements
6931 to always fail with ENOSYS. Some functions are actually named
6932 something starting with __ and the normal name is an alias. */
6933 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6941 if { (eval echo configure
:6942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6943 eval "ac_cv_func_$ac_func=yes"
6945 echo "configure: failed program was:" >&5
6946 cat conftest.
$ac_ext >&5
6948 eval "ac_cv_func_$ac_func=no"
6953 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6954 echo "$ac_t""yes" 1>&6
6955 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6956 cat >> confdefs.h
<<EOF
6957 #define $ac_tr_func 1
6961 echo "$ac_t""no" 1>&6
6965 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
6966 echo "configure:6967: checking for getspnam in -lsecurity" >&5
6967 ac_lib_var
=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
6968 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6969 echo $ac_n "(cached) $ac_c" 1>&6
6971 ac_save_LIBS
="$LIBS"
6972 LIBS
="-lsecurity $LIBS"
6973 cat > conftest.
$ac_ext <<EOF
6974 #line 6975 "configure"
6975 #include "confdefs.h"
6976 /* Override any gcc2 internal prototype to avoid an error. */
6977 /* We use char because int might match the return type of a gcc2
6978 builtin and then its argument prototype would still apply. */
6985 if { (eval echo configure
:6986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6987 eval "ac_cv_lib_$ac_lib_var=yes"
6989 echo "configure: failed program was:" >&5
6990 cat conftest.
$ac_ext >&5
6992 eval "ac_cv_lib_$ac_lib_var=no"
6995 LIBS
="$ac_save_LIBS"
6998 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6999 echo "$ac_t""yes" 1>&6
7000 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7001 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7002 cat >> confdefs.h
<<EOF
7003 #define $ac_tr_lib 1
7006 LIBS
="-lsecurity $LIBS"
7009 echo "$ac_t""no" 1>&6
7012 for ac_func
in getspnam
7014 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7015 echo "configure:7016: checking for $ac_func" >&5
7016 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7017 echo $ac_n "(cached) $ac_c" 1>&6
7019 cat > conftest.
$ac_ext <<EOF
7020 #line 7021 "configure"
7021 #include "confdefs.h"
7022 /* System header to define __stub macros and hopefully few prototypes,
7023 which can conflict with char $ac_func(); below. */
7025 /* Override any gcc2 internal prototype to avoid an error. */
7026 /* We use char because int might match the return type of a gcc2
7027 builtin and then its argument prototype would still apply. */
7032 /* The GNU C library defines this for functions which it implements
7033 to always fail with ENOSYS. Some functions are actually named
7034 something starting with __ and the normal name is an alias. */
7035 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7043 if { (eval echo configure
:7044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7045 eval "ac_cv_func_$ac_func=yes"
7047 echo "configure: failed program was:" >&5
7048 cat conftest.
$ac_ext >&5
7050 eval "ac_cv_func_$ac_func=no"
7055 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7056 echo "$ac_t""yes" 1>&6
7057 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7058 cat >> confdefs.h
<<EOF
7059 #define $ac_tr_func 1
7063 echo "$ac_t""no" 1>&6
7071 *-lsec*) for ac_func
in getspnam
7073 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7074 echo "configure:7075: checking for $ac_func" >&5
7075 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7076 echo $ac_n "(cached) $ac_c" 1>&6
7078 cat > conftest.
$ac_ext <<EOF
7079 #line 7080 "configure"
7080 #include "confdefs.h"
7081 /* System header to define __stub macros and hopefully few prototypes,
7082 which can conflict with char $ac_func(); below. */
7084 /* Override any gcc2 internal prototype to avoid an error. */
7085 /* We use char because int might match the return type of a gcc2
7086 builtin and then its argument prototype would still apply. */
7091 /* The GNU C library defines this for functions which it implements
7092 to always fail with ENOSYS. Some functions are actually named
7093 something starting with __ and the normal name is an alias. */
7094 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7102 if { (eval echo configure
:7103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7104 eval "ac_cv_func_$ac_func=yes"
7106 echo "configure: failed program was:" >&5
7107 cat conftest.
$ac_ext >&5
7109 eval "ac_cv_func_$ac_func=no"
7114 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7115 echo "$ac_t""yes" 1>&6
7116 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7117 cat >> confdefs.h
<<EOF
7118 #define $ac_tr_func 1
7122 echo "$ac_t""no" 1>&6
7126 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
7127 echo "configure:7128: checking for getspnam in -lsec" >&5
7128 ac_lib_var
=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
7129 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7130 echo $ac_n "(cached) $ac_c" 1>&6
7132 ac_save_LIBS
="$LIBS"
7134 cat > conftest.
$ac_ext <<EOF
7135 #line 7136 "configure"
7136 #include "confdefs.h"
7137 /* Override any gcc2 internal prototype to avoid an error. */
7138 /* We use char because int might match the return type of a gcc2
7139 builtin and then its argument prototype would still apply. */
7146 if { (eval echo configure
:7147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7148 eval "ac_cv_lib_$ac_lib_var=yes"
7150 echo "configure: failed program was:" >&5
7151 cat conftest.
$ac_ext >&5
7153 eval "ac_cv_lib_$ac_lib_var=no"
7156 LIBS
="$ac_save_LIBS"
7159 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7160 echo "$ac_t""yes" 1>&6
7161 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7162 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7163 cat >> confdefs.h
<<EOF
7164 #define $ac_tr_lib 1
7170 echo "$ac_t""no" 1>&6
7173 for ac_func
in getspnam
7175 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7176 echo "configure:7177: checking for $ac_func" >&5
7177 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7178 echo $ac_n "(cached) $ac_c" 1>&6
7180 cat > conftest.
$ac_ext <<EOF
7181 #line 7182 "configure"
7182 #include "confdefs.h"
7183 /* System header to define __stub macros and hopefully few prototypes,
7184 which can conflict with char $ac_func(); below. */
7186 /* Override any gcc2 internal prototype to avoid an error. */
7187 /* We use char because int might match the return type of a gcc2
7188 builtin and then its argument prototype would still apply. */
7193 /* The GNU C library defines this for functions which it implements
7194 to always fail with ENOSYS. Some functions are actually named
7195 something starting with __ and the normal name is an alias. */
7196 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7204 if { (eval echo configure
:7205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7206 eval "ac_cv_func_$ac_func=yes"
7208 echo "configure: failed program was:" >&5
7209 cat conftest.
$ac_ext >&5
7211 eval "ac_cv_func_$ac_func=no"
7216 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7217 echo "$ac_t""yes" 1>&6
7218 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7219 cat >> confdefs.h
<<EOF
7220 #define $ac_tr_func 1
7224 echo "$ac_t""no" 1>&6
7233 *-lsecurity*) for ac_func
in bigcrypt
7235 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7236 echo "configure:7237: checking for $ac_func" >&5
7237 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7238 echo $ac_n "(cached) $ac_c" 1>&6
7240 cat > conftest.
$ac_ext <<EOF
7241 #line 7242 "configure"
7242 #include "confdefs.h"
7243 /* System header to define __stub macros and hopefully few prototypes,
7244 which can conflict with char $ac_func(); below. */
7246 /* Override any gcc2 internal prototype to avoid an error. */
7247 /* We use char because int might match the return type of a gcc2
7248 builtin and then its argument prototype would still apply. */
7253 /* The GNU C library defines this for functions which it implements
7254 to always fail with ENOSYS. Some functions are actually named
7255 something starting with __ and the normal name is an alias. */
7256 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7264 if { (eval echo configure
:7265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7266 eval "ac_cv_func_$ac_func=yes"
7268 echo "configure: failed program was:" >&5
7269 cat conftest.
$ac_ext >&5
7271 eval "ac_cv_func_$ac_func=no"
7276 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7277 echo "$ac_t""yes" 1>&6
7278 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7279 cat >> confdefs.h
<<EOF
7280 #define $ac_tr_func 1
7284 echo "$ac_t""no" 1>&6
7288 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
7289 echo "configure:7290: checking for bigcrypt in -lsecurity" >&5
7290 ac_lib_var
=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
7291 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7292 echo $ac_n "(cached) $ac_c" 1>&6
7294 ac_save_LIBS
="$LIBS"
7295 LIBS
="-lsecurity $LIBS"
7296 cat > conftest.
$ac_ext <<EOF
7297 #line 7298 "configure"
7298 #include "confdefs.h"
7299 /* Override any gcc2 internal prototype to avoid an error. */
7300 /* We use char because int might match the return type of a gcc2
7301 builtin and then its argument prototype would still apply. */
7308 if { (eval echo configure
:7309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7310 eval "ac_cv_lib_$ac_lib_var=yes"
7312 echo "configure: failed program was:" >&5
7313 cat conftest.
$ac_ext >&5
7315 eval "ac_cv_lib_$ac_lib_var=no"
7318 LIBS
="$ac_save_LIBS"
7321 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7322 echo "$ac_t""yes" 1>&6
7323 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7324 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7325 cat >> confdefs.h
<<EOF
7326 #define $ac_tr_lib 1
7329 LIBS
="-lsecurity $LIBS"
7332 echo "$ac_t""no" 1>&6
7335 for ac_func
in bigcrypt
7337 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7338 echo "configure:7339: checking for $ac_func" >&5
7339 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7340 echo $ac_n "(cached) $ac_c" 1>&6
7342 cat > conftest.
$ac_ext <<EOF
7343 #line 7344 "configure"
7344 #include "confdefs.h"
7345 /* System header to define __stub macros and hopefully few prototypes,
7346 which can conflict with char $ac_func(); below. */
7348 /* Override any gcc2 internal prototype to avoid an error. */
7349 /* We use char because int might match the return type of a gcc2
7350 builtin and then its argument prototype would still apply. */
7355 /* The GNU C library defines this for functions which it implements
7356 to always fail with ENOSYS. Some functions are actually named
7357 something starting with __ and the normal name is an alias. */
7358 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7366 if { (eval echo configure
:7367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7368 eval "ac_cv_func_$ac_func=yes"
7370 echo "configure: failed program was:" >&5
7371 cat conftest.
$ac_ext >&5
7373 eval "ac_cv_func_$ac_func=no"
7378 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7379 echo "$ac_t""yes" 1>&6
7380 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7381 cat >> confdefs.h
<<EOF
7382 #define $ac_tr_func 1
7386 echo "$ac_t""no" 1>&6
7394 *-lsec*) for ac_func
in bigcrypt
7396 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7397 echo "configure:7398: checking for $ac_func" >&5
7398 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7399 echo $ac_n "(cached) $ac_c" 1>&6
7401 cat > conftest.
$ac_ext <<EOF
7402 #line 7403 "configure"
7403 #include "confdefs.h"
7404 /* System header to define __stub macros and hopefully few prototypes,
7405 which can conflict with char $ac_func(); below. */
7407 /* Override any gcc2 internal prototype to avoid an error. */
7408 /* We use char because int might match the return type of a gcc2
7409 builtin and then its argument prototype would still apply. */
7414 /* The GNU C library defines this for functions which it implements
7415 to always fail with ENOSYS. Some functions are actually named
7416 something starting with __ and the normal name is an alias. */
7417 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7425 if { (eval echo configure
:7426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7427 eval "ac_cv_func_$ac_func=yes"
7429 echo "configure: failed program was:" >&5
7430 cat conftest.
$ac_ext >&5
7432 eval "ac_cv_func_$ac_func=no"
7437 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7438 echo "$ac_t""yes" 1>&6
7439 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7440 cat >> confdefs.h
<<EOF
7441 #define $ac_tr_func 1
7445 echo "$ac_t""no" 1>&6
7449 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
7450 echo "configure:7451: checking for bigcrypt in -lsec" >&5
7451 ac_lib_var
=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
7452 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7453 echo $ac_n "(cached) $ac_c" 1>&6
7455 ac_save_LIBS
="$LIBS"
7457 cat > conftest.
$ac_ext <<EOF
7458 #line 7459 "configure"
7459 #include "confdefs.h"
7460 /* Override any gcc2 internal prototype to avoid an error. */
7461 /* We use char because int might match the return type of a gcc2
7462 builtin and then its argument prototype would still apply. */
7469 if { (eval echo configure
:7470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7471 eval "ac_cv_lib_$ac_lib_var=yes"
7473 echo "configure: failed program was:" >&5
7474 cat conftest.
$ac_ext >&5
7476 eval "ac_cv_lib_$ac_lib_var=no"
7479 LIBS
="$ac_save_LIBS"
7482 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7483 echo "$ac_t""yes" 1>&6
7484 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7485 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7486 cat >> confdefs.h
<<EOF
7487 #define $ac_tr_lib 1
7493 echo "$ac_t""no" 1>&6
7496 for ac_func
in bigcrypt
7498 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7499 echo "configure:7500: checking for $ac_func" >&5
7500 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7501 echo $ac_n "(cached) $ac_c" 1>&6
7503 cat > conftest.
$ac_ext <<EOF
7504 #line 7505 "configure"
7505 #include "confdefs.h"
7506 /* System header to define __stub macros and hopefully few prototypes,
7507 which can conflict with char $ac_func(); below. */
7509 /* Override any gcc2 internal prototype to avoid an error. */
7510 /* We use char because int might match the return type of a gcc2
7511 builtin and then its argument prototype would still apply. */
7516 /* The GNU C library defines this for functions which it implements
7517 to always fail with ENOSYS. Some functions are actually named
7518 something starting with __ and the normal name is an alias. */
7519 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7527 if { (eval echo configure
:7528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7529 eval "ac_cv_func_$ac_func=yes"
7531 echo "configure: failed program was:" >&5
7532 cat conftest.
$ac_ext >&5
7534 eval "ac_cv_func_$ac_func=no"
7539 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7540 echo "$ac_t""yes" 1>&6
7541 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7542 cat >> confdefs.h
<<EOF
7543 #define $ac_tr_func 1
7547 echo "$ac_t""no" 1>&6
7556 *-lsecurity*) for ac_func
in getprpwnam
7558 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7559 echo "configure:7560: checking for $ac_func" >&5
7560 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7561 echo $ac_n "(cached) $ac_c" 1>&6
7563 cat > conftest.
$ac_ext <<EOF
7564 #line 7565 "configure"
7565 #include "confdefs.h"
7566 /* System header to define __stub macros and hopefully few prototypes,
7567 which can conflict with char $ac_func(); below. */
7569 /* Override any gcc2 internal prototype to avoid an error. */
7570 /* We use char because int might match the return type of a gcc2
7571 builtin and then its argument prototype would still apply. */
7576 /* The GNU C library defines this for functions which it implements
7577 to always fail with ENOSYS. Some functions are actually named
7578 something starting with __ and the normal name is an alias. */
7579 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7587 if { (eval echo configure
:7588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7589 eval "ac_cv_func_$ac_func=yes"
7591 echo "configure: failed program was:" >&5
7592 cat conftest.
$ac_ext >&5
7594 eval "ac_cv_func_$ac_func=no"
7599 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7600 echo "$ac_t""yes" 1>&6
7601 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7602 cat >> confdefs.h
<<EOF
7603 #define $ac_tr_func 1
7607 echo "$ac_t""no" 1>&6
7611 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
7612 echo "configure:7613: checking for getprpwnam in -lsecurity" >&5
7613 ac_lib_var
=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
7614 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7615 echo $ac_n "(cached) $ac_c" 1>&6
7617 ac_save_LIBS
="$LIBS"
7618 LIBS
="-lsecurity $LIBS"
7619 cat > conftest.
$ac_ext <<EOF
7620 #line 7621 "configure"
7621 #include "confdefs.h"
7622 /* Override any gcc2 internal prototype to avoid an error. */
7623 /* We use char because int might match the return type of a gcc2
7624 builtin and then its argument prototype would still apply. */
7631 if { (eval echo configure
:7632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7633 eval "ac_cv_lib_$ac_lib_var=yes"
7635 echo "configure: failed program was:" >&5
7636 cat conftest.
$ac_ext >&5
7638 eval "ac_cv_lib_$ac_lib_var=no"
7641 LIBS
="$ac_save_LIBS"
7644 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7645 echo "$ac_t""yes" 1>&6
7646 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7647 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7648 cat >> confdefs.h
<<EOF
7649 #define $ac_tr_lib 1
7652 LIBS
="-lsecurity $LIBS"
7655 echo "$ac_t""no" 1>&6
7658 for ac_func
in getprpwnam
7660 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7661 echo "configure:7662: checking for $ac_func" >&5
7662 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7663 echo $ac_n "(cached) $ac_c" 1>&6
7665 cat > conftest.
$ac_ext <<EOF
7666 #line 7667 "configure"
7667 #include "confdefs.h"
7668 /* System header to define __stub macros and hopefully few prototypes,
7669 which can conflict with char $ac_func(); below. */
7671 /* Override any gcc2 internal prototype to avoid an error. */
7672 /* We use char because int might match the return type of a gcc2
7673 builtin and then its argument prototype would still apply. */
7678 /* The GNU C library defines this for functions which it implements
7679 to always fail with ENOSYS. Some functions are actually named
7680 something starting with __ and the normal name is an alias. */
7681 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7689 if { (eval echo configure
:7690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7691 eval "ac_cv_func_$ac_func=yes"
7693 echo "configure: failed program was:" >&5
7694 cat conftest.
$ac_ext >&5
7696 eval "ac_cv_func_$ac_func=no"
7701 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7702 echo "$ac_t""yes" 1>&6
7703 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7704 cat >> confdefs.h
<<EOF
7705 #define $ac_tr_func 1
7709 echo "$ac_t""no" 1>&6
7717 *-lsec*) for ac_func
in getprpwnam
7719 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7720 echo "configure:7721: checking for $ac_func" >&5
7721 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7722 echo $ac_n "(cached) $ac_c" 1>&6
7724 cat > conftest.
$ac_ext <<EOF
7725 #line 7726 "configure"
7726 #include "confdefs.h"
7727 /* System header to define __stub macros and hopefully few prototypes,
7728 which can conflict with char $ac_func(); below. */
7730 /* Override any gcc2 internal prototype to avoid an error. */
7731 /* We use char because int might match the return type of a gcc2
7732 builtin and then its argument prototype would still apply. */
7737 /* The GNU C library defines this for functions which it implements
7738 to always fail with ENOSYS. Some functions are actually named
7739 something starting with __ and the normal name is an alias. */
7740 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7748 if { (eval echo configure
:7749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7750 eval "ac_cv_func_$ac_func=yes"
7752 echo "configure: failed program was:" >&5
7753 cat conftest.
$ac_ext >&5
7755 eval "ac_cv_func_$ac_func=no"
7760 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7761 echo "$ac_t""yes" 1>&6
7762 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7763 cat >> confdefs.h
<<EOF
7764 #define $ac_tr_func 1
7768 echo "$ac_t""no" 1>&6
7772 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
7773 echo "configure:7774: checking for getprpwnam in -lsec" >&5
7774 ac_lib_var
=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
7775 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7776 echo $ac_n "(cached) $ac_c" 1>&6
7778 ac_save_LIBS
="$LIBS"
7780 cat > conftest.
$ac_ext <<EOF
7781 #line 7782 "configure"
7782 #include "confdefs.h"
7783 /* Override any gcc2 internal prototype to avoid an error. */
7784 /* We use char because int might match the return type of a gcc2
7785 builtin and then its argument prototype would still apply. */
7792 if { (eval echo configure
:7793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7794 eval "ac_cv_lib_$ac_lib_var=yes"
7796 echo "configure: failed program was:" >&5
7797 cat conftest.
$ac_ext >&5
7799 eval "ac_cv_lib_$ac_lib_var=no"
7802 LIBS
="$ac_save_LIBS"
7805 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7806 echo "$ac_t""yes" 1>&6
7807 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7808 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7809 cat >> confdefs.h
<<EOF
7810 #define $ac_tr_lib 1
7816 echo "$ac_t""no" 1>&6
7819 for ac_func
in getprpwnam
7821 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7822 echo "configure:7823: checking for $ac_func" >&5
7823 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7824 echo $ac_n "(cached) $ac_c" 1>&6
7826 cat > conftest.
$ac_ext <<EOF
7827 #line 7828 "configure"
7828 #include "confdefs.h"
7829 /* System header to define __stub macros and hopefully few prototypes,
7830 which can conflict with char $ac_func(); below. */
7832 /* Override any gcc2 internal prototype to avoid an error. */
7833 /* We use char because int might match the return type of a gcc2
7834 builtin and then its argument prototype would still apply. */
7839 /* The GNU C library defines this for functions which it implements
7840 to always fail with ENOSYS. Some functions are actually named
7841 something starting with __ and the normal name is an alias. */
7842 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7850 if { (eval echo configure
:7851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7852 eval "ac_cv_func_$ac_func=yes"
7854 echo "configure: failed program was:" >&5
7855 cat conftest.
$ac_ext >&5
7857 eval "ac_cv_func_$ac_func=no"
7862 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7863 echo "$ac_t""yes" 1>&6
7864 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7865 cat >> confdefs.h
<<EOF
7866 #define $ac_tr_func 1
7870 echo "$ac_t""no" 1>&6
7878 # this bit needs to be modified for each OS that is suported by
7879 # smbwrapper. You need to specify how to created a shared library and
7880 # how to compile C code to produce PIC object files
7882 # these are the defaults, good for lots of systems
7888 # and these are for particular systems
7890 *linux
*) cat >> confdefs.h
<<\EOF
7894 *solaris
*) cat >> confdefs.h
<<\EOF
7900 *sunos
*) cat >> confdefs.h
<<\EOF
7906 *bsd
*) LDSHFLAGS
="-shared -Bshareable"
7908 *irix
*) cat >> confdefs.h
<<\EOF
7913 *irix6
*) cat >> confdefs.h
<<\EOF
7919 ATTEMPT_WRAP32_BUILD
=yes
7921 *aix
*) cat >> confdefs.h
<<\EOF
7925 *hpux
*) cat >> confdefs.h
<<\EOF
7930 # Use special PIC flags for the native HP-UX compiler.
7931 if test $ac_cv_prog_cc_Ae = yes; then
7936 *qnx
*) cat >> confdefs.h
<<\EOF
7940 *osf
*) cat >> confdefs.h
<<\EOF
7944 *sco
*) cat >> confdefs.h
<<\EOF
7948 *next2
*) cat >> confdefs.h
<<\EOF
7952 *dgux
*) # Extract the first word of "groff", so it can be a program name with args.
7953 set dummy
groff; ac_word
=$2
7954 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7955 echo "configure:7956: checking for $ac_word" >&5
7956 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
7957 echo $ac_n "(cached) $ac_c" 1>&6
7959 if test -n "$ROFF"; then
7960 ac_cv_prog_ROFF
="$ROFF" # Let the user override the test.
7962 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
7964 for ac_dir
in $ac_dummy; do
7965 test -z "$ac_dir" && ac_dir
=.
7966 if test -f $ac_dir/$ac_word; then
7967 ac_cv_prog_ROFF
="groff -etpsR -Tascii -man"
7974 ROFF
="$ac_cv_prog_ROFF"
7975 if test -n "$ROFF"; then
7976 echo "$ac_t""$ROFF" 1>&6
7978 echo "$ac_t""no" 1>&6
7983 *-univel-*) if test "$GCC" != yes ; then
7984 cat >> confdefs.h
<<\EOF
7985 #define HAVE_MEMSET 1
7991 *mips-sni-sysv4
*) cat >> confdefs.h
<<\EOF
7992 #define RELIANTUNIX 1
7998 if test "$GCC" != yes ; then
7999 cat >> confdefs.h
<<\EOF
8000 #define HAVE_MEMSET 1
8008 # try to work out how to produce pic code with this compiler
8009 echo $ac_n "checking whether ${CC-cc} accepts -fpic""... $ac_c" 1>&6
8010 echo "configure:8011: checking whether ${CC-cc} accepts -fpic" >&5
8011 if eval "test \"`echo '$''{'ac_cv_prog_cc_fpic'+set}'`\" = set"; then
8012 echo $ac_n "(cached) $ac_c" 1>&6
8014 echo 'void f(){}' > conftest.c
8015 if test -z "`${CC-cc} -fpic -c conftest.c 2>&1`"; then
8016 ac_cv_prog_cc_fpic
=yes
8018 ac_cv_prog_cc_fpic
=no
8024 echo "$ac_t""$ac_cv_prog_cc_fpic" 1>&6
8025 if test $ac_cv_prog_cc_fpic = yes; then
8028 if test x
$PICFLAG = x
; then
8029 echo $ac_n "checking whether ${CC-cc} accepts -Kpic""... $ac_c" 1>&6
8030 echo "configure:8031: checking whether ${CC-cc} accepts -Kpic" >&5
8031 if eval "test \"`echo '$''{'ac_cv_prog_cc_Kpic'+set}'`\" = set"; then
8032 echo $ac_n "(cached) $ac_c" 1>&6
8034 echo 'void f(){}' > conftest.c
8035 if test -z "`${CC-cc} -Kpic -c conftest.c 2>&1`"; then
8036 ac_cv_prog_cc_Kpic
=yes
8038 ac_cv_prog_cc_Kpic
=no
8044 echo "$ac_t""$ac_cv_prog_cc_Kpic" 1>&6
8045 if test $ac_cv_prog_cc_Kpic = yes; then
8049 if test x
$PICFLAG = x
; then
8050 echo $ac_n "checking whether ${CC-cc} accepts -KPIC""... $ac_c" 1>&6
8051 echo "configure:8052: checking whether ${CC-cc} accepts -KPIC" >&5
8052 if eval "test \"`echo '$''{'ac_cv_prog_cc_KPIC'+set}'`\" = set"; then
8053 echo $ac_n "(cached) $ac_c" 1>&6
8055 echo 'void f(){}' > conftest.c
8056 if test -z "`${CC-cc} -KPIC -c conftest.c 2>&1`"; then
8057 ac_cv_prog_cc_KPIC
=yes
8059 ac_cv_prog_cc_KPIC
=no
8065 echo "$ac_t""$ac_cv_prog_cc_KPIC" 1>&6
8066 if test $ac_cv_prog_cc_KPIC = yes; then
8073 echo $ac_n "checking for long long""... $ac_c" 1>&6
8074 echo "configure:8075: checking for long long" >&5
8075 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
8076 echo $ac_n "(cached) $ac_c" 1>&6
8079 if test "$cross_compiling" = yes; then
8080 samba_cv_have_longlong
=cross
8082 cat > conftest.
$ac_ext <<EOF
8083 #line 8084 "configure"
8084 #include "confdefs.h"
8086 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
8088 if { (eval echo configure
:8089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8090 samba_cv_have_longlong
=yes
8092 echo "configure: failed program was:" >&5
8093 cat conftest.
$ac_ext >&5
8095 samba_cv_have_longlong
=no
8102 echo "$ac_t""$samba_cv_have_longlong" 1>&6
8103 if test x
"$samba_cv_have_longlong" = x
"yes"; then
8104 cat >> confdefs.h
<<\EOF
8105 #define HAVE_LONGLONG 1
8111 # Check if the compiler supports the LL prefix on long long integers.
8114 echo $ac_n "checking for LL suffix on long long integers""... $ac_c" 1>&6
8115 echo "configure:8116: checking for LL suffix on long long integers" >&5
8116 if eval "test \"`echo '$''{'samba_cv_compiler_supports_ll'+set}'`\" = set"; then
8117 echo $ac_n "(cached) $ac_c" 1>&6
8120 cat > conftest.
$ac_ext <<EOF
8121 #line 8122 "configure"
8122 #include "confdefs.h"
8125 long long i = 0x8000000000LL
8128 if { (eval echo configure
:8129: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8130 samba_cv_compiler_supports_ll
=yes
8132 echo "configure: failed program was:" >&5
8133 cat conftest.
$ac_ext >&5
8135 samba_cv_compiler_supports_ll
=no
8140 echo "$ac_t""$samba_cv_compiler_supports_ll" 1>&6
8141 if test x
"$samba_cv_compiler_supports_ll" = x
"yes"; then
8142 cat >> confdefs.h
<<\EOF
8143 #define COMPILER_SUPPORTS_LL 1
8149 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
8150 echo "configure:8151: checking for 64 bit off_t" >&5
8151 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
8152 echo $ac_n "(cached) $ac_c" 1>&6
8155 if test "$cross_compiling" = yes; then
8156 samba_cv_SIZEOF_OFF_T
=cross
8158 cat > conftest.
$ac_ext <<EOF
8159 #line 8160 "configure"
8160 #include "confdefs.h"
8162 #include <sys/stat.h>
8163 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
8165 if { (eval echo configure
:8166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8167 samba_cv_SIZEOF_OFF_T
=yes
8169 echo "configure: failed program was:" >&5
8170 cat conftest.
$ac_ext >&5
8172 samba_cv_SIZEOF_OFF_T
=no
8179 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
8180 if test x
"$samba_cv_SIZEOF_OFF_T" = x
"yes"; then
8181 cat >> confdefs.h
<<\EOF
8182 #define SIZEOF_OFF_T 8
8187 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
8188 echo "configure:8189: checking for off64_t" >&5
8189 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
8190 echo $ac_n "(cached) $ac_c" 1>&6
8193 if test "$cross_compiling" = yes; then
8194 samba_cv_HAVE_OFF64_T
=cross
8196 cat > conftest.
$ac_ext <<EOF
8197 #line 8198 "configure"
8198 #include "confdefs.h"
8200 #if defined(HAVE_UNISTD_H)
8204 #include <sys/stat.h>
8205 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8207 if { (eval echo configure
:8208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8209 samba_cv_HAVE_OFF64_T
=yes
8211 echo "configure: failed program was:" >&5
8212 cat conftest.
$ac_ext >&5
8214 samba_cv_HAVE_OFF64_T
=no
8221 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
8222 if test x
"$samba_cv_HAVE_OFF64_T" = x
"yes"; then
8223 cat >> confdefs.h
<<\EOF
8224 #define HAVE_OFF64_T 1
8229 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
8230 echo "configure:8231: checking for 64 bit ino_t" >&5
8231 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
8232 echo $ac_n "(cached) $ac_c" 1>&6
8235 if test "$cross_compiling" = yes; then
8236 samba_cv_SIZEOF_INO_T
=cross
8238 cat > conftest.
$ac_ext <<EOF
8239 #line 8240 "configure"
8240 #include "confdefs.h"
8242 #include <sys/stat.h>
8243 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
8245 if { (eval echo configure
:8246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8247 samba_cv_SIZEOF_INO_T
=yes
8249 echo "configure: failed program was:" >&5
8250 cat conftest.
$ac_ext >&5
8252 samba_cv_SIZEOF_INO_T
=no
8259 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
8260 if test x
"$samba_cv_SIZEOF_INO_T" = x
"yes"; then
8261 cat >> confdefs.h
<<\EOF
8262 #define SIZEOF_INO_T 8
8267 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
8268 echo "configure:8269: checking for ino64_t" >&5
8269 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
8270 echo $ac_n "(cached) $ac_c" 1>&6
8273 if test "$cross_compiling" = yes; then
8274 samba_cv_HAVE_INO64_T
=cross
8276 cat > conftest.
$ac_ext <<EOF
8277 #line 8278 "configure"
8278 #include "confdefs.h"
8280 #if defined(HAVE_UNISTD_H)
8284 #include <sys/stat.h>
8285 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8287 if { (eval echo configure
:8288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8289 samba_cv_HAVE_INO64_T
=yes
8291 echo "configure: failed program was:" >&5
8292 cat conftest.
$ac_ext >&5
8294 samba_cv_HAVE_INO64_T
=no
8301 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
8302 if test x
"$samba_cv_HAVE_INO64_T" = x
"yes"; then
8303 cat >> confdefs.h
<<\EOF
8304 #define HAVE_INO64_T 1
8309 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
8310 echo "configure:8311: checking for struct dirent64" >&5
8311 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
8312 echo $ac_n "(cached) $ac_c" 1>&6
8315 cat > conftest.
$ac_ext <<EOF
8316 #line 8317 "configure"
8317 #include "confdefs.h"
8319 #if defined(HAVE_UNISTD_H)
8322 #include <sys/types.h>
8328 if { (eval echo configure
:8329: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8330 samba_cv_HAVE_STRUCT_DIRENT64
=yes
8332 echo "configure: failed program was:" >&5
8333 cat conftest.
$ac_ext >&5
8335 samba_cv_HAVE_STRUCT_DIRENT64
=no
8340 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
8341 if test x
"$samba_cv_HAVE_STRUCT_DIRENT64" = x
"yes"; then
8342 cat >> confdefs.h
<<\EOF
8343 #define HAVE_STRUCT_DIRENT64 1
8348 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
8349 echo "configure:8350: checking for unsigned char" >&5
8350 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
8351 echo $ac_n "(cached) $ac_c" 1>&6
8354 if test "$cross_compiling" = yes; then
8355 samba_cv_HAVE_UNSIGNED_CHAR
=cross
8357 cat > conftest.
$ac_ext <<EOF
8358 #line 8359 "configure"
8359 #include "confdefs.h"
8361 main() { char c; c=250; exit((c > 0)?0:1); }
8363 if { (eval echo configure
:8364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8365 samba_cv_HAVE_UNSIGNED_CHAR
=yes
8367 echo "configure: failed program was:" >&5
8368 cat conftest.
$ac_ext >&5
8370 samba_cv_HAVE_UNSIGNED_CHAR
=no
8377 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
8378 if test x
"$samba_cv_HAVE_UNSIGNED_CHAR" = x
"yes"; then
8379 cat >> confdefs.h
<<\EOF
8380 #define HAVE_UNSIGNED_CHAR 1
8385 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
8386 echo "configure:8387: checking for sin_len in sock" >&5
8387 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
8388 echo $ac_n "(cached) $ac_c" 1>&6
8391 cat > conftest.
$ac_ext <<EOF
8392 #line 8393 "configure"
8393 #include "confdefs.h"
8394 #include <sys/types.h>
8395 #include <sys/socket.h>
8396 #include <netinet/in.h>
8398 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
8401 if { (eval echo configure
:8402: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8403 samba_cv_HAVE_SOCK_SIN_LEN
=yes
8405 echo "configure: failed program was:" >&5
8406 cat conftest.
$ac_ext >&5
8408 samba_cv_HAVE_SOCK_SIN_LEN
=no
8413 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
8414 if test x
"$samba_cv_HAVE_SOCK_SIN_LEN" = x
"yes"; then
8415 cat >> confdefs.h
<<\EOF
8416 #define HAVE_SOCK_SIN_LEN 1
8421 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
8422 echo "configure:8423: checking whether seekdir returns void" >&5
8423 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
8424 echo $ac_n "(cached) $ac_c" 1>&6
8427 cat > conftest.
$ac_ext <<EOF
8428 #line 8429 "configure"
8429 #include "confdefs.h"
8430 #include <sys/types.h>
8432 void seekdir(DIR *d, long loc) { return; }
8437 if { (eval echo configure
:8438: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8439 samba_cv_SEEKDIR_RETURNS_VOID
=yes
8441 echo "configure: failed program was:" >&5
8442 cat conftest.
$ac_ext >&5
8444 samba_cv_SEEKDIR_RETURNS_VOID
=no
8449 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
8450 if test x
"$samba_cv_SEEKDIR_RETURNS_VOID" = x
"yes"; then
8451 cat >> confdefs.h
<<\EOF
8452 #define SEEKDIR_RETURNS_VOID 1
8457 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
8458 echo "configure:8459: checking for __FILE__ macro" >&5
8459 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
8460 echo $ac_n "(cached) $ac_c" 1>&6
8463 cat > conftest.
$ac_ext <<EOF
8464 #line 8465 "configure"
8465 #include "confdefs.h"
8468 printf("%s\n", __FILE__);
8471 if { (eval echo configure
:8472: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8473 samba_cv_HAVE_FILE_MACRO
=yes
8475 echo "configure: failed program was:" >&5
8476 cat conftest.
$ac_ext >&5
8478 samba_cv_HAVE_FILE_MACRO
=no
8483 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
8484 if test x
"$samba_cv_HAVE_FILE_MACRO" = x
"yes"; then
8485 cat >> confdefs.h
<<\EOF
8486 #define HAVE_FILE_MACRO 1
8491 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
8492 echo "configure:8493: checking for __FUNCTION__ macro" >&5
8493 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
8494 echo $ac_n "(cached) $ac_c" 1>&6
8497 cat > conftest.
$ac_ext <<EOF
8498 #line 8499 "configure"
8499 #include "confdefs.h"
8502 printf("%s\n", __FUNCTION__);
8505 if { (eval echo configure
:8506: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8507 samba_cv_HAVE_FUNCTION_MACRO
=yes
8509 echo "configure: failed program was:" >&5
8510 cat conftest.
$ac_ext >&5
8512 samba_cv_HAVE_FUNCTION_MACRO
=no
8517 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
8518 if test x
"$samba_cv_HAVE_FUNCTION_MACRO" = x
"yes"; then
8519 cat >> confdefs.h
<<\EOF
8520 #define HAVE_FUNCTION_MACRO 1
8525 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
8526 echo "configure:8527: checking if gettimeofday takes tz argument" >&5
8527 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
8528 echo $ac_n "(cached) $ac_c" 1>&6
8531 if test "$cross_compiling" = yes; then
8532 samba_cv_HAVE_GETTIMEOFDAY_TZ
=cross
8534 cat > conftest.
$ac_ext <<EOF
8535 #line 8536 "configure"
8536 #include "confdefs.h"
8538 #include <sys/time.h>
8540 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
8542 if { (eval echo configure
:8543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8544 samba_cv_HAVE_GETTIMEOFDAY_TZ
=yes
8546 echo "configure: failed program was:" >&5
8547 cat conftest.
$ac_ext >&5
8549 samba_cv_HAVE_GETTIMEOFDAY_TZ
=no
8556 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
8557 if test x
"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x
"yes"; then
8558 cat >> confdefs.h
<<\EOF
8559 #define HAVE_GETTIMEOFDAY_TZ 1
8565 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
8566 echo "configure:8567: checking for broken readdir" >&5
8567 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
8568 echo $ac_n "(cached) $ac_c" 1>&6
8571 if test "$cross_compiling" = yes; then
8572 samba_cv_HAVE_BROKEN_READDIR
=cross
8574 cat > conftest.
$ac_ext <<EOF
8575 #line 8576 "configure"
8576 #include "confdefs.h"
8577 #include <sys/types.h>
8579 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
8580 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
8581 di->d_name[0] == 0) exit(0); exit(1);}
8583 if { (eval echo configure
:8584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8585 samba_cv_HAVE_BROKEN_READDIR
=yes
8587 echo "configure: failed program was:" >&5
8588 cat conftest.
$ac_ext >&5
8590 samba_cv_HAVE_BROKEN_READDIR
=no
8597 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
8598 if test x
"$samba_cv_HAVE_BROKEN_READDIR" = x
"yes"; then
8599 cat >> confdefs.h
<<\EOF
8600 #define HAVE_BROKEN_READDIR 1
8605 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
8606 echo "configure:8607: checking for utimbuf" >&5
8607 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
8608 echo $ac_n "(cached) $ac_c" 1>&6
8611 cat > conftest.
$ac_ext <<EOF
8612 #line 8613 "configure"
8613 #include "confdefs.h"
8614 #include <sys/types.h>
8617 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
8620 if { (eval echo configure
:8621: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8622 samba_cv_HAVE_UTIMBUF
=yes
8624 echo "configure: failed program was:" >&5
8625 cat conftest.
$ac_ext >&5
8627 samba_cv_HAVE_UTIMBUF
=no
8632 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
8633 if test x
"$samba_cv_HAVE_UTIMBUF" = x
"yes"; then
8634 cat >> confdefs.h
<<\EOF
8635 #define HAVE_UTIMBUF 1
8641 for ac_func
in pututline pututxline updwtmp updwtmpx getutmpx
8643 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8644 echo "configure:8645: checking for $ac_func" >&5
8645 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8646 echo $ac_n "(cached) $ac_c" 1>&6
8648 cat > conftest.
$ac_ext <<EOF
8649 #line 8650 "configure"
8650 #include "confdefs.h"
8651 /* System header to define __stub macros and hopefully few prototypes,
8652 which can conflict with char $ac_func(); below. */
8654 /* Override any gcc2 internal prototype to avoid an error. */
8655 /* We use char because int might match the return type of a gcc2
8656 builtin and then its argument prototype would still apply. */
8661 /* The GNU C library defines this for functions which it implements
8662 to always fail with ENOSYS. Some functions are actually named
8663 something starting with __ and the normal name is an alias. */
8664 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8672 if { (eval echo configure
:8673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8674 eval "ac_cv_func_$ac_func=yes"
8676 echo "configure: failed program was:" >&5
8677 cat conftest.
$ac_ext >&5
8679 eval "ac_cv_func_$ac_func=no"
8684 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8685 echo "$ac_t""yes" 1>&6
8686 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8687 cat >> confdefs.h
<<EOF
8688 #define $ac_tr_func 1
8692 echo "$ac_t""no" 1>&6
8697 echo $ac_n "checking for ut_name in utmp""... $ac_c" 1>&6
8698 echo "configure:8699: checking for ut_name in utmp" >&5
8699 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_NAME'+set}'`\" = set"; then
8700 echo $ac_n "(cached) $ac_c" 1>&6
8703 cat > conftest.
$ac_ext <<EOF
8704 #line 8705 "configure"
8705 #include "confdefs.h"
8706 #include <sys/types.h>
8709 struct utmp ut; ut.ut_name[0] = 'a';
8712 if { (eval echo configure
:8713: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8714 samba_cv_HAVE_UT_UT_NAME
=yes
8716 echo "configure: failed program was:" >&5
8717 cat conftest.
$ac_ext >&5
8719 samba_cv_HAVE_UT_UT_NAME
=no
8724 echo "$ac_t""$samba_cv_HAVE_UT_UT_NAME" 1>&6
8725 if test x
"$samba_cv_HAVE_UT_UT_NAME" = x
"yes"; then
8726 cat >> confdefs.h
<<\EOF
8727 #define HAVE_UT_UT_NAME 1
8732 echo $ac_n "checking for ut_user in utmp""... $ac_c" 1>&6
8733 echo "configure:8734: checking for ut_user in utmp" >&5
8734 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_USER'+set}'`\" = set"; then
8735 echo $ac_n "(cached) $ac_c" 1>&6
8738 cat > conftest.
$ac_ext <<EOF
8739 #line 8740 "configure"
8740 #include "confdefs.h"
8741 #include <sys/types.h>
8744 struct utmp ut; ut.ut_user[0] = 'a';
8747 if { (eval echo configure
:8748: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8749 samba_cv_HAVE_UT_UT_USER
=yes
8751 echo "configure: failed program was:" >&5
8752 cat conftest.
$ac_ext >&5
8754 samba_cv_HAVE_UT_UT_USER
=no
8759 echo "$ac_t""$samba_cv_HAVE_UT_UT_USER" 1>&6
8760 if test x
"$samba_cv_HAVE_UT_UT_USER" = x
"yes"; then
8761 cat >> confdefs.h
<<\EOF
8762 #define HAVE_UT_UT_USER 1
8767 echo $ac_n "checking for ut_id in utmp""... $ac_c" 1>&6
8768 echo "configure:8769: checking for ut_id in utmp" >&5
8769 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ID'+set}'`\" = set"; then
8770 echo $ac_n "(cached) $ac_c" 1>&6
8773 cat > conftest.
$ac_ext <<EOF
8774 #line 8775 "configure"
8775 #include "confdefs.h"
8776 #include <sys/types.h>
8779 struct utmp ut; ut.ut_id[0] = 'a';
8782 if { (eval echo configure
:8783: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8784 samba_cv_HAVE_UT_UT_ID
=yes
8786 echo "configure: failed program was:" >&5
8787 cat conftest.
$ac_ext >&5
8789 samba_cv_HAVE_UT_UT_ID
=no
8794 echo "$ac_t""$samba_cv_HAVE_UT_UT_ID" 1>&6
8795 if test x
"$samba_cv_HAVE_UT_UT_ID" = x
"yes"; then
8796 cat >> confdefs.h
<<\EOF
8797 #define HAVE_UT_UT_ID 1
8802 echo $ac_n "checking for ut_host in utmp""... $ac_c" 1>&6
8803 echo "configure:8804: checking for ut_host in utmp" >&5
8804 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_HOST'+set}'`\" = set"; then
8805 echo $ac_n "(cached) $ac_c" 1>&6
8808 cat > conftest.
$ac_ext <<EOF
8809 #line 8810 "configure"
8810 #include "confdefs.h"
8811 #include <sys/types.h>
8814 struct utmp ut; ut.ut_host[0] = 'a';
8817 if { (eval echo configure
:8818: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8819 samba_cv_HAVE_UT_UT_HOST
=yes
8821 echo "configure: failed program was:" >&5
8822 cat conftest.
$ac_ext >&5
8824 samba_cv_HAVE_UT_UT_HOST
=no
8829 echo "$ac_t""$samba_cv_HAVE_UT_UT_HOST" 1>&6
8830 if test x
"$samba_cv_HAVE_UT_UT_HOST" = x
"yes"; then
8831 cat >> confdefs.h
<<\EOF
8832 #define HAVE_UT_UT_HOST 1
8837 echo $ac_n "checking for ut_time in utmp""... $ac_c" 1>&6
8838 echo "configure:8839: checking for ut_time in utmp" >&5
8839 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TIME'+set}'`\" = set"; then
8840 echo $ac_n "(cached) $ac_c" 1>&6
8843 cat > conftest.
$ac_ext <<EOF
8844 #line 8845 "configure"
8845 #include "confdefs.h"
8846 #include <sys/types.h>
8849 struct utmp ut; time_t t; ut.ut_time = t;
8852 if { (eval echo configure
:8853: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8854 samba_cv_HAVE_UT_UT_TIME
=yes
8856 echo "configure: failed program was:" >&5
8857 cat conftest.
$ac_ext >&5
8859 samba_cv_HAVE_UT_UT_TIME
=no
8864 echo "$ac_t""$samba_cv_HAVE_UT_UT_TIME" 1>&6
8865 if test x
"$samba_cv_HAVE_UT_UT_TIME" = x
"yes"; then
8866 cat >> confdefs.h
<<\EOF
8867 #define HAVE_UT_UT_TIME 1
8872 echo $ac_n "checking for ut_tv in utmp""... $ac_c" 1>&6
8873 echo "configure:8874: checking for ut_tv in utmp" >&5
8874 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TV'+set}'`\" = set"; then
8875 echo $ac_n "(cached) $ac_c" 1>&6
8878 cat > conftest.
$ac_ext <<EOF
8879 #line 8880 "configure"
8880 #include "confdefs.h"
8881 #include <sys/types.h>
8884 struct utmp ut; struct timeval tv; ut.ut_tv = tv;
8887 if { (eval echo configure
:8888: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8889 samba_cv_HAVE_UT_UT_TV
=yes
8891 echo "configure: failed program was:" >&5
8892 cat conftest.
$ac_ext >&5
8894 samba_cv_HAVE_UT_UT_TV
=no
8899 echo "$ac_t""$samba_cv_HAVE_UT_UT_TV" 1>&6
8900 if test x
"$samba_cv_HAVE_UT_UT_TV" = x
"yes"; then
8901 cat >> confdefs.h
<<\EOF
8902 #define HAVE_UT_UT_TV 1
8907 echo $ac_n "checking for ut_type in utmp""... $ac_c" 1>&6
8908 echo "configure:8909: checking for ut_type in utmp" >&5
8909 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TYPE'+set}'`\" = set"; then
8910 echo $ac_n "(cached) $ac_c" 1>&6
8913 cat > conftest.
$ac_ext <<EOF
8914 #line 8915 "configure"
8915 #include "confdefs.h"
8916 #include <sys/types.h>
8919 struct utmp ut; ut.ut_type = 0;
8922 if { (eval echo configure
:8923: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8924 samba_cv_HAVE_UT_UT_TYPE
=yes
8926 echo "configure: failed program was:" >&5
8927 cat conftest.
$ac_ext >&5
8929 samba_cv_HAVE_UT_UT_TYPE
=no
8934 echo "$ac_t""$samba_cv_HAVE_UT_UT_TYPE" 1>&6
8935 if test x
"$samba_cv_HAVE_UT_UT_TYPE" = x
"yes"; then
8936 cat >> confdefs.h
<<\EOF
8937 #define HAVE_UT_UT_TYPE 1
8942 echo $ac_n "checking for ut_pid in utmp""... $ac_c" 1>&6
8943 echo "configure:8944: checking for ut_pid in utmp" >&5
8944 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_PID'+set}'`\" = set"; then
8945 echo $ac_n "(cached) $ac_c" 1>&6
8948 cat > conftest.
$ac_ext <<EOF
8949 #line 8950 "configure"
8950 #include "confdefs.h"
8951 #include <sys/types.h>
8954 struct utmp ut; ut.ut_pid = 0;
8957 if { (eval echo configure
:8958: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8959 samba_cv_HAVE_UT_UT_PID
=yes
8961 echo "configure: failed program was:" >&5
8962 cat conftest.
$ac_ext >&5
8964 samba_cv_HAVE_UT_UT_PID
=no
8969 echo "$ac_t""$samba_cv_HAVE_UT_UT_PID" 1>&6
8970 if test x
"$samba_cv_HAVE_UT_UT_PID" = x
"yes"; then
8971 cat >> confdefs.h
<<\EOF
8972 #define HAVE_UT_UT_PID 1
8977 echo $ac_n "checking for ut_exit in utmp""... $ac_c" 1>&6
8978 echo "configure:8979: checking for ut_exit in utmp" >&5
8979 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_EXIT'+set}'`\" = set"; then
8980 echo $ac_n "(cached) $ac_c" 1>&6
8983 cat > conftest.
$ac_ext <<EOF
8984 #line 8985 "configure"
8985 #include "confdefs.h"
8986 #include <sys/types.h>
8989 struct utmp ut; ut.ut_exit.e_exit = 0;
8992 if { (eval echo configure
:8993: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8994 samba_cv_HAVE_UT_UT_EXIT
=yes
8996 echo "configure: failed program was:" >&5
8997 cat conftest.
$ac_ext >&5
8999 samba_cv_HAVE_UT_UT_EXIT
=no
9004 echo "$ac_t""$samba_cv_HAVE_UT_UT_EXIT" 1>&6
9005 if test x
"$samba_cv_HAVE_UT_UT_EXIT" = x
"yes"; then
9006 cat >> confdefs.h
<<\EOF
9007 #define HAVE_UT_UT_EXIT 1
9012 echo $ac_n "checking for ut_addr in utmp""... $ac_c" 1>&6
9013 echo "configure:9014: checking for ut_addr in utmp" >&5
9014 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ADDR'+set}'`\" = set"; then
9015 echo $ac_n "(cached) $ac_c" 1>&6
9018 cat > conftest.
$ac_ext <<EOF
9019 #line 9020 "configure"
9020 #include "confdefs.h"
9021 #include <sys/types.h>
9024 struct utmp ut; ut.ut_addr = 0;
9027 if { (eval echo configure
:9028: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9029 samba_cv_HAVE_UT_UT_ADDR
=yes
9031 echo "configure: failed program was:" >&5
9032 cat conftest.
$ac_ext >&5
9034 samba_cv_HAVE_UT_UT_ADDR
=no
9039 echo "$ac_t""$samba_cv_HAVE_UT_UT_ADDR" 1>&6
9040 if test x
"$samba_cv_HAVE_UT_UT_ADDR" = x
"yes"; then
9041 cat >> confdefs.h
<<\EOF
9042 #define HAVE_UT_UT_ADDR 1
9047 if test x
$ac_cv_func_pututline = xyes
; then
9048 echo $ac_n "checking whether pututline returns pointer""... $ac_c" 1>&6
9049 echo "configure:9050: checking whether pututline returns pointer" >&5
9050 if eval "test \"`echo '$''{'samba_cv_PUTUTLINE_RETURNS_UTMP'+set}'`\" = set"; then
9051 echo $ac_n "(cached) $ac_c" 1>&6
9054 cat > conftest.
$ac_ext <<EOF
9055 #line 9056 "configure"
9056 #include "confdefs.h"
9057 #include <sys/types.h>
9060 struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
9063 if { (eval echo configure
:9064: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9065 samba_cv_PUTUTLINE_RETURNS_UTMP
=yes
9067 echo "configure: failed program was:" >&5
9068 cat conftest.
$ac_ext >&5
9070 samba_cv_PUTUTLINE_RETURNS_UTMP
=no
9075 echo "$ac_t""$samba_cv_PUTUTLINE_RETURNS_UTMP" 1>&6
9076 if test x
"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x
"yes"; then
9077 cat >> confdefs.h
<<\EOF
9078 #define PUTUTLINE_RETURNS_UTMP 1
9084 echo $ac_n "checking for ut_syslen in utmpx""... $ac_c" 1>&6
9085 echo "configure:9086: checking for ut_syslen in utmpx" >&5
9086 if eval "test \"`echo '$''{'samba_cv_HAVE_UX_UT_SYSLEN'+set}'`\" = set"; then
9087 echo $ac_n "(cached) $ac_c" 1>&6
9090 cat > conftest.
$ac_ext <<EOF
9091 #line 9092 "configure"
9092 #include "confdefs.h"
9093 #include <sys/types.h>
9096 struct utmpx ux; ux.ut_syslen = 0;
9099 if { (eval echo configure
:9100: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9101 samba_cv_HAVE_UX_UT_SYSLEN
=yes
9103 echo "configure: failed program was:" >&5
9104 cat conftest.
$ac_ext >&5
9106 samba_cv_HAVE_UX_UT_SYSLEN
=no
9111 echo "$ac_t""$samba_cv_HAVE_UX_UT_SYSLEN" 1>&6
9112 if test x
"$samba_cv_HAVE_UX_UT_SYSLEN" = x
"yes"; then
9113 cat >> confdefs.h
<<\EOF
9114 #define HAVE_UX_UT_SYSLEN 1
9119 echo $ac_n "checking for Linux kernel oplocks""... $ac_c" 1>&6
9120 echo "configure:9121: checking for Linux kernel oplocks" >&5
9121 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_LINUX'+set}'`\" = set"; then
9122 echo $ac_n "(cached) $ac_c" 1>&6
9125 if test "$cross_compiling" = yes; then
9126 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=cross
9128 cat > conftest.
$ac_ext <<EOF
9129 #line 9130 "configure"
9130 #include "confdefs.h"
9132 #include <sys/types.h>
9135 #define F_GETLEASE 1025
9138 int fd = open("/dev/null", O_RDONLY);
9139 return fcntl(fd, F_GETLEASE, 0) == -1;
9143 if { (eval echo configure
:9144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9145 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=yes
9147 echo "configure: failed program was:" >&5
9148 cat conftest.
$ac_ext >&5
9150 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=no
9157 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" 1>&6
9158 if test x
"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x
"yes"; then
9159 cat >> confdefs.h
<<\EOF
9160 #define HAVE_KERNEL_OPLOCKS_LINUX 1
9165 echo $ac_n "checking for kernel change notify support""... $ac_c" 1>&6
9166 echo "configure:9167: checking for kernel change notify support" >&5
9167 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_CHANGE_NOTIFY'+set}'`\" = set"; then
9168 echo $ac_n "(cached) $ac_c" 1>&6
9171 if test "$cross_compiling" = yes; then
9172 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=cross
9174 cat > conftest.
$ac_ext <<EOF
9175 #line 9176 "configure"
9176 #include "confdefs.h"
9178 #include <sys/types.h>
9182 #define F_NOTIFY 1026
9185 exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0);
9189 if { (eval echo configure
:9190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9191 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=yes
9193 echo "configure: failed program was:" >&5
9194 cat conftest.
$ac_ext >&5
9196 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=no
9203 echo "$ac_t""$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" 1>&6
9204 if test x
"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x
"yes"; then
9205 cat >> confdefs.h
<<\EOF
9206 #define HAVE_KERNEL_CHANGE_NOTIFY 1
9211 echo $ac_n "checking for kernel share modes""... $ac_c" 1>&6
9212 echo "configure:9213: checking for kernel share modes" >&5
9213 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_SHARE_MODES'+set}'`\" = set"; then
9214 echo $ac_n "(cached) $ac_c" 1>&6
9217 if test "$cross_compiling" = yes; then
9218 samba_cv_HAVE_KERNEL_SHARE_MODES
=cross
9220 cat > conftest.
$ac_ext <<EOF
9221 #line 9222 "configure"
9222 #include "confdefs.h"
9224 #include <sys/types.h>
9227 #include <sys/file.h>
9229 #define LOCK_MAND 32
9230 #define LOCK_READ 64
9233 exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
9237 if { (eval echo configure
:9238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9239 samba_cv_HAVE_KERNEL_SHARE_MODES
=yes
9241 echo "configure: failed program was:" >&5
9242 cat conftest.
$ac_ext >&5
9244 samba_cv_HAVE_KERNEL_SHARE_MODES
=no
9251 echo "$ac_t""$samba_cv_HAVE_KERNEL_SHARE_MODES" 1>&6
9252 if test x
"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x
"yes"; then
9253 cat >> confdefs.h
<<\EOF
9254 #define HAVE_KERNEL_SHARE_MODES 1
9262 echo $ac_n "checking for IRIX kernel oplock type definitions""... $ac_c" 1>&6
9263 echo "configure:9264: checking for IRIX kernel oplock type definitions" >&5
9264 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_IRIX'+set}'`\" = set"; then
9265 echo $ac_n "(cached) $ac_c" 1>&6
9268 cat > conftest.
$ac_ext <<EOF
9269 #line 9270 "configure"
9270 #include "confdefs.h"
9271 #include <sys/types.h>
9274 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
9277 if { (eval echo configure
:9278: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9279 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX
=yes
9281 echo "configure: failed program was:" >&5
9282 cat conftest.
$ac_ext >&5
9284 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX
=no
9289 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" 1>&6
9290 if test x
"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x
"yes"; then
9291 cat >> confdefs.h
<<\EOF
9292 #define HAVE_KERNEL_OPLOCKS_IRIX 1
9297 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
9298 echo "configure:9299: checking for irix specific capabilities" >&5
9299 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
9300 echo $ac_n "(cached) $ac_c" 1>&6
9303 if test "$cross_compiling" = yes; then
9304 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=cross
9306 cat > conftest.
$ac_ext <<EOF
9307 #line 9308 "configure"
9308 #include "confdefs.h"
9309 #include <sys/types.h>
9310 #include <sys/capability.h>
9313 if ((cap = cap_get_proc()) == NULL)
9315 cap->cap_effective |= CAP_NETWORK_MGT;
9316 cap->cap_inheritable |= CAP_NETWORK_MGT;
9322 if { (eval echo configure
:9323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9324 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=yes
9326 echo "configure: failed program was:" >&5
9327 cat conftest.
$ac_ext >&5
9329 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=no
9336 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
9337 if test x
"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x
"yes"; then
9338 cat >> confdefs.h
<<\EOF
9339 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
9345 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
9346 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
9349 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9350 echo "configure:9351: checking for int16 typedef included by rpc/rpc.h" >&5
9351 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
9352 echo $ac_n "(cached) $ac_c" 1>&6
9355 cat > conftest.
$ac_ext <<EOF
9356 #line 9357 "configure"
9357 #include "confdefs.h"
9358 #include <sys/types.h>
9359 #if defined(HAVE_RPC_RPC_H)
9360 #include <rpc/rpc.h>
9366 if { (eval echo configure
:9367: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9368 samba_cv_HAVE_INT16_FROM_RPC_RPC_H
=yes
9370 echo "configure: failed program was:" >&5
9371 cat conftest.
$ac_ext >&5
9373 samba_cv_HAVE_INT16_FROM_RPC_RPC_H
=no
9378 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
9379 if test x
"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x
"yes"; then
9380 cat >> confdefs.h
<<\EOF
9381 #define HAVE_INT16_FROM_RPC_RPC_H 1
9386 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9387 echo "configure:9388: checking for uint16 typedef included by rpc/rpc.h" >&5
9388 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
9389 echo $ac_n "(cached) $ac_c" 1>&6
9392 cat > conftest.
$ac_ext <<EOF
9393 #line 9394 "configure"
9394 #include "confdefs.h"
9395 #include <sys/types.h>
9396 #if defined(HAVE_RPC_RPC_H)
9397 #include <rpc/rpc.h>
9403 if { (eval echo configure
:9404: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9405 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H
=yes
9407 echo "configure: failed program was:" >&5
9408 cat conftest.
$ac_ext >&5
9410 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H
=no
9415 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
9416 if test x
"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x
"yes"; then
9417 cat >> confdefs.h
<<\EOF
9418 #define HAVE_UINT16_FROM_RPC_RPC_H 1
9423 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9424 echo "configure:9425: checking for int32 typedef included by rpc/rpc.h" >&5
9425 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
9426 echo $ac_n "(cached) $ac_c" 1>&6
9429 cat > conftest.
$ac_ext <<EOF
9430 #line 9431 "configure"
9431 #include "confdefs.h"
9432 #include <sys/types.h>
9433 #if defined(HAVE_RPC_RPC_H)
9434 #include <rpc/rpc.h>
9440 if { (eval echo configure
:9441: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9442 samba_cv_HAVE_INT32_FROM_RPC_RPC_H
=yes
9444 echo "configure: failed program was:" >&5
9445 cat conftest.
$ac_ext >&5
9447 samba_cv_HAVE_INT32_FROM_RPC_RPC_H
=no
9452 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
9453 if test x
"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x
"yes"; then
9454 cat >> confdefs.h
<<\EOF
9455 #define HAVE_INT32_FROM_RPC_RPC_H 1
9460 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9461 echo "configure:9462: checking for uint32 typedef included by rpc/rpc.h" >&5
9462 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
9463 echo $ac_n "(cached) $ac_c" 1>&6
9466 cat > conftest.
$ac_ext <<EOF
9467 #line 9468 "configure"
9468 #include "confdefs.h"
9469 #include <sys/types.h>
9470 #if defined(HAVE_RPC_RPC_H)
9471 #include <rpc/rpc.h>
9477 if { (eval echo configure
:9478: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9479 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H
=yes
9481 echo "configure: failed program was:" >&5
9482 cat conftest.
$ac_ext >&5
9484 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H
=no
9489 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
9490 if test x
"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x
"yes"; then
9491 cat >> confdefs.h
<<\EOF
9492 #define HAVE_UINT32_FROM_RPC_RPC_H 1
9498 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
9499 echo "configure:9500: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
9500 if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
9501 echo $ac_n "(cached) $ac_c" 1>&6
9504 cat > conftest.
$ac_ext <<EOF
9505 #line 9506 "configure"
9506 #include "confdefs.h"
9507 #include <sys/types.h>
9508 #ifdef HAVE_SYS_SECURITY_H
9509 #include <sys/security.h>
9511 #endif /* HAVE_SYS_SECURITY_H */
9512 #if defined(HAVE_RPC_RPC_H)
9513 #include <rpc/rpc.h>
9519 if { (eval echo configure
:9520: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9521 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT
=no
9523 echo "configure: failed program was:" >&5
9524 cat conftest.
$ac_ext >&5
9526 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT
=yes
9531 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
9532 if test x
"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x
"yes"; then
9533 cat >> confdefs.h
<<\EOF
9534 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
9539 echo $ac_n "checking for test routines""... $ac_c" 1>&6
9540 echo "configure:9541: checking for test routines" >&5
9541 if test "$cross_compiling" = yes; then
9542 echo "configure: warning: cannot run when cross-compiling" 1>&2
9544 cat > conftest.
$ac_ext <<EOF
9545 #line 9546 "configure"
9546 #include "confdefs.h"
9547 #include "${srcdir-.}/tests/trivial.c"
9549 if { (eval echo configure
:9550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9551 echo "$ac_t""yes" 1>&6
9553 echo "configure: failed program was:" >&5
9554 cat conftest.
$ac_ext >&5
9556 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
9562 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
9563 echo "configure:9564: checking for ftruncate extend" >&5
9564 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
9565 echo $ac_n "(cached) $ac_c" 1>&6
9568 if test "$cross_compiling" = yes; then
9569 samba_cv_HAVE_FTRUNCATE_EXTEND
=cross
9571 cat > conftest.
$ac_ext <<EOF
9572 #line 9573 "configure"
9573 #include "confdefs.h"
9574 #include "${srcdir-.}/tests/ftruncate.c"
9576 if { (eval echo configure
:9577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9578 samba_cv_HAVE_FTRUNCATE_EXTEND
=yes
9580 echo "configure: failed program was:" >&5
9581 cat conftest.
$ac_ext >&5
9583 samba_cv_HAVE_FTRUNCATE_EXTEND
=no
9590 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
9591 if test x
"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x
"yes"; then
9592 cat >> confdefs.h
<<\EOF
9593 #define HAVE_FTRUNCATE_EXTEND 1
9598 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
9599 echo "configure:9600: checking for broken getgroups" >&5
9600 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
9601 echo $ac_n "(cached) $ac_c" 1>&6
9604 if test "$cross_compiling" = yes; then
9605 samba_cv_HAVE_BROKEN_GETGROUPS
=cross
9607 cat > conftest.
$ac_ext <<EOF
9608 #line 9609 "configure"
9609 #include "confdefs.h"
9610 #include "${srcdir-.}/tests/getgroups.c"
9612 if { (eval echo configure
:9613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9614 samba_cv_HAVE_BROKEN_GETGROUPS
=yes
9616 echo "configure: failed program was:" >&5
9617 cat conftest.
$ac_ext >&5
9619 samba_cv_HAVE_BROKEN_GETGROUPS
=no
9626 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
9627 if test x
"$samba_cv_HAVE_BROKEN_GETGROUPS" = x
"yes"; then
9628 cat >> confdefs.h
<<\EOF
9629 #define HAVE_BROKEN_GETGROUPS 1
9634 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
9635 echo "configure:9636: checking whether getpass should be replaced" >&5
9636 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
9637 echo $ac_n "(cached) $ac_c" 1>&6
9640 SAVE_CPPFLAGS
="$CPPFLAGS"
9641 CPPFLAGS
="$CPPFLAGS -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/smbwrapper"
9642 cat > conftest.
$ac_ext <<EOF
9643 #line 9644 "configure"
9644 #include "confdefs.h"
9646 #define REPLACE_GETPASS 1
9647 #define NO_CONFIG_H 1
9648 #define main dont_declare_main
9649 #include "${srcdir-.}/lib/getsmbpass.c"
9656 if { (eval echo configure
:9657: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9658 samba_cv_REPLACE_GETPASS
=yes
9660 echo "configure: failed program was:" >&5
9661 cat conftest.
$ac_ext >&5
9663 samba_cv_REPLACE_GETPASS
=no
9666 CPPFLAGS
="$SAVE_CPPFLAGS"
9670 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
9671 if test x
"$samba_cv_REPLACE_GETPASS" = x
"yes"; then
9672 cat >> confdefs.h
<<\EOF
9673 #define REPLACE_GETPASS 1
9678 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
9679 echo "configure:9680: checking for broken inet_ntoa" >&5
9680 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
9681 echo $ac_n "(cached) $ac_c" 1>&6
9684 if test "$cross_compiling" = yes; then
9685 samba_cv_REPLACE_INET_NTOA
=cross
9687 cat > conftest.
$ac_ext <<EOF
9688 #line 9689 "configure"
9689 #include "confdefs.h"
9692 #include <sys/types.h>
9693 #include <netinet/in.h>
9694 #ifdef HAVE_ARPA_INET_H
9695 #include <arpa/inet.h>
9697 main() { struct in_addr ip; ip.s_addr = 0x12345678;
9698 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
9699 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
9702 if { (eval echo configure
:9703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9704 samba_cv_REPLACE_INET_NTOA
=yes
9706 echo "configure: failed program was:" >&5
9707 cat conftest.
$ac_ext >&5
9709 samba_cv_REPLACE_INET_NTOA
=no
9716 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
9717 if test x
"$samba_cv_REPLACE_INET_NTOA" = x
"yes"; then
9718 cat >> confdefs.h
<<\EOF
9719 #define REPLACE_INET_NTOA 1
9724 echo $ac_n "checking for sysconf(_SC_NGROUPS_MAX)""... $ac_c" 1>&6
9725 echo "configure:9726: checking for sysconf(_SC_NGROUPS_MAX)" >&5
9726 if eval "test \"`echo '$''{'samba_cv_SYSCONF_SC_NGROUPS_MAX'+set}'`\" = set"; then
9727 echo $ac_n "(cached) $ac_c" 1>&6
9730 if test "$cross_compiling" = yes; then
9731 samba_cv_SYSCONF_SC_NGROUPS_MAX
=cross
9733 cat > conftest.
$ac_ext <<EOF
9734 #line 9735 "configure"
9735 #include "confdefs.h"
9737 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
9739 if { (eval echo configure
:9740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9741 samba_cv_SYSCONF_SC_NGROUPS_MAX
=yes
9743 echo "configure: failed program was:" >&5
9744 cat conftest.
$ac_ext >&5
9746 samba_cv_SYSCONF_SC_NGROUPS_MAX
=no
9753 echo "$ac_t""$samba_cv_SYSCONF_SC_NGROUPS_MAX" 1>&6
9754 if test x
"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x
"yes"; then
9755 cat >> confdefs.h
<<\EOF
9756 #define SYSCONF_SC_NGROUPS_MAX 1
9761 echo $ac_n "checking for root""... $ac_c" 1>&6
9762 echo "configure:9763: checking for root" >&5
9763 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
9764 echo $ac_n "(cached) $ac_c" 1>&6
9767 if test "$cross_compiling" = yes; then
9768 samba_cv_HAVE_ROOT
=cross
9770 cat > conftest.
$ac_ext <<EOF
9771 #line 9772 "configure"
9772 #include "confdefs.h"
9773 main() { exit(getuid() != 0); }
9775 if { (eval echo configure
:9776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9777 samba_cv_HAVE_ROOT
=yes
9779 echo "configure: failed program was:" >&5
9780 cat conftest.
$ac_ext >&5
9782 samba_cv_HAVE_ROOT
=no
9789 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
9790 if test x
"$samba_cv_HAVE_ROOT" = x
"yes"; then
9791 cat >> confdefs.h
<<\EOF
9796 echo "configure: warning: running as non-root will disable some tests" 1>&2
9800 # look for a method of finding the list of network interfaces
9802 echo $ac_n "checking for iface AIX""... $ac_c" 1>&6
9803 echo "configure:9804: checking for iface AIX" >&5
9804 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_AIX'+set}'`\" = set"; then
9805 echo $ac_n "(cached) $ac_c" 1>&6
9808 if test "$cross_compiling" = yes; then
9809 samba_cv_HAVE_IFACE_AIX
=cross
9811 cat > conftest.
$ac_ext <<EOF
9812 #line 9813 "configure"
9813 #include "confdefs.h"
9815 #define HAVE_IFACE_AIX 1
9816 #define AUTOCONF_TEST 1
9817 #include "confdefs.h"
9818 #include "${srcdir-.}/lib/interfaces.c"
9820 if { (eval echo configure
:9821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9822 samba_cv_HAVE_IFACE_AIX
=yes
9824 echo "configure: failed program was:" >&5
9825 cat conftest.
$ac_ext >&5
9827 samba_cv_HAVE_IFACE_AIX
=no
9834 echo "$ac_t""$samba_cv_HAVE_IFACE_AIX" 1>&6
9835 if test x
"$samba_cv_HAVE_IFACE_AIX" = x
"yes"; then
9836 iface
=yes;cat >> confdefs.h
<<\EOF
9837 #define HAVE_IFACE_AIX 1
9842 if test $iface = no
; then
9843 echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6
9844 echo "configure:9845: checking for iface ifconf" >&5
9845 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFCONF'+set}'`\" = set"; then
9846 echo $ac_n "(cached) $ac_c" 1>&6
9849 if test "$cross_compiling" = yes; then
9850 samba_cv_HAVE_IFACE_IFCONF
=cross
9852 cat > conftest.
$ac_ext <<EOF
9853 #line 9854 "configure"
9854 #include "confdefs.h"
9856 #define HAVE_IFACE_IFCONF 1
9857 #define AUTOCONF_TEST 1
9858 #include "confdefs.h"
9859 #include "${srcdir-.}/lib/interfaces.c"
9861 if { (eval echo configure
:9862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9863 samba_cv_HAVE_IFACE_IFCONF
=yes
9865 echo "configure: failed program was:" >&5
9866 cat conftest.
$ac_ext >&5
9868 samba_cv_HAVE_IFACE_IFCONF
=no
9875 echo "$ac_t""$samba_cv_HAVE_IFACE_IFCONF" 1>&6
9876 if test x
"$samba_cv_HAVE_IFACE_IFCONF" = x
"yes"; then
9877 iface
=yes;cat >> confdefs.h
<<\EOF
9878 #define HAVE_IFACE_IFCONF 1
9884 if test $iface = no
; then
9885 echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6
9886 echo "configure:9887: checking for iface ifreq" >&5
9887 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFREQ'+set}'`\" = set"; then
9888 echo $ac_n "(cached) $ac_c" 1>&6
9891 if test "$cross_compiling" = yes; then
9892 samba_cv_HAVE_IFACE_IFREQ
=cross
9894 cat > conftest.
$ac_ext <<EOF
9895 #line 9896 "configure"
9896 #include "confdefs.h"
9898 #define HAVE_IFACE_IFREQ 1
9899 #define AUTOCONF_TEST 1
9900 #include "confdefs.h"
9901 #include "${srcdir-.}/lib/interfaces.c"
9903 if { (eval echo configure
:9904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9905 samba_cv_HAVE_IFACE_IFREQ
=yes
9907 echo "configure: failed program was:" >&5
9908 cat conftest.
$ac_ext >&5
9910 samba_cv_HAVE_IFACE_IFREQ
=no
9917 echo "$ac_t""$samba_cv_HAVE_IFACE_IFREQ" 1>&6
9918 if test x
"$samba_cv_HAVE_IFACE_IFREQ" = x
"yes"; then
9919 iface
=yes;cat >> confdefs.h
<<\EOF
9920 #define HAVE_IFACE_IFREQ 1
9927 ################################################
9928 # look for a method of setting the effective uid
9930 if test $seteuid = no
; then
9931 echo $ac_n "checking for setresuid""... $ac_c" 1>&6
9932 echo "configure:9933: checking for setresuid" >&5
9933 if eval "test \"`echo '$''{'samba_cv_USE_SETRESUID'+set}'`\" = set"; then
9934 echo $ac_n "(cached) $ac_c" 1>&6
9937 if test "$cross_compiling" = yes; then
9938 samba_cv_USE_SETRESUID
=cross
9940 cat > conftest.
$ac_ext <<EOF
9941 #line 9942 "configure"
9942 #include "confdefs.h"
9944 #define AUTOCONF_TEST 1
9945 #define USE_SETRESUID 1
9946 #include "confdefs.h"
9947 #include "${srcdir-.}/lib/util_sec.c"
9949 if { (eval echo configure
:9950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9951 samba_cv_USE_SETRESUID
=yes
9953 echo "configure: failed program was:" >&5
9954 cat conftest.
$ac_ext >&5
9956 samba_cv_USE_SETRESUID
=no
9963 echo "$ac_t""$samba_cv_USE_SETRESUID" 1>&6
9964 if test x
"$samba_cv_USE_SETRESUID" = x
"yes"; then
9965 seteuid
=yes;cat >> confdefs.h
<<\EOF
9966 #define USE_SETRESUID 1
9973 if test $seteuid = no
; then
9974 echo $ac_n "checking for setreuid""... $ac_c" 1>&6
9975 echo "configure:9976: checking for setreuid" >&5
9976 if eval "test \"`echo '$''{'samba_cv_USE_SETREUID'+set}'`\" = set"; then
9977 echo $ac_n "(cached) $ac_c" 1>&6
9980 if test "$cross_compiling" = yes; then
9981 samba_cv_USE_SETREUID
=cross
9983 cat > conftest.
$ac_ext <<EOF
9984 #line 9985 "configure"
9985 #include "confdefs.h"
9987 #define AUTOCONF_TEST 1
9988 #define USE_SETREUID 1
9989 #include "confdefs.h"
9990 #include "${srcdir-.}/lib/util_sec.c"
9992 if { (eval echo configure
:9993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9994 samba_cv_USE_SETREUID
=yes
9996 echo "configure: failed program was:" >&5
9997 cat conftest.
$ac_ext >&5
9999 samba_cv_USE_SETREUID
=no
10006 echo "$ac_t""$samba_cv_USE_SETREUID" 1>&6
10007 if test x
"$samba_cv_USE_SETREUID" = x
"yes"; then
10008 seteuid
=yes;cat >> confdefs.h
<<\EOF
10009 #define USE_SETREUID 1
10015 if test $seteuid = no
; then
10016 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
10017 echo "configure:10018: checking for seteuid" >&5
10018 if eval "test \"`echo '$''{'samba_cv_USE_SETEUID'+set}'`\" = set"; then
10019 echo $ac_n "(cached) $ac_c" 1>&6
10022 if test "$cross_compiling" = yes; then
10023 samba_cv_USE_SETEUID
=cross
10025 cat > conftest.
$ac_ext <<EOF
10026 #line 10027 "configure"
10027 #include "confdefs.h"
10029 #define AUTOCONF_TEST 1
10030 #define USE_SETEUID 1
10031 #include "confdefs.h"
10032 #include "${srcdir-.}/lib/util_sec.c"
10034 if { (eval echo configure
:10035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10036 samba_cv_USE_SETEUID
=yes
10038 echo "configure: failed program was:" >&5
10039 cat conftest.
$ac_ext >&5
10041 samba_cv_USE_SETEUID
=no
10048 echo "$ac_t""$samba_cv_USE_SETEUID" 1>&6
10049 if test x
"$samba_cv_USE_SETEUID" = x
"yes"; then
10050 seteuid
=yes;cat >> confdefs.h
<<\EOF
10051 #define USE_SETEUID 1
10057 if test $seteuid = no
; then
10058 echo $ac_n "checking for setuidx""... $ac_c" 1>&6
10059 echo "configure:10060: checking for setuidx" >&5
10060 if eval "test \"`echo '$''{'samba_cv_USE_SETUIDX'+set}'`\" = set"; then
10061 echo $ac_n "(cached) $ac_c" 1>&6
10064 if test "$cross_compiling" = yes; then
10065 samba_cv_USE_SETUIDX
=cross
10067 cat > conftest.
$ac_ext <<EOF
10068 #line 10069 "configure"
10069 #include "confdefs.h"
10071 #define AUTOCONF_TEST 1
10072 #define USE_SETUIDX 1
10073 #include "confdefs.h"
10074 #include "${srcdir-.}/lib/util_sec.c"
10076 if { (eval echo configure
:10077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10078 samba_cv_USE_SETUIDX
=yes
10080 echo "configure: failed program was:" >&5
10081 cat conftest.
$ac_ext >&5
10083 samba_cv_USE_SETUIDX
=no
10090 echo "$ac_t""$samba_cv_USE_SETUIDX" 1>&6
10091 if test x
"$samba_cv_USE_SETUIDX" = x
"yes"; then
10092 seteuid
=yes;cat >> confdefs.h
<<\EOF
10093 #define USE_SETUIDX 1
10100 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
10101 echo "configure:10102: checking for working mmap" >&5
10102 if eval "test \"`echo '$''{'samba_cv_HAVE_MMAP'+set}'`\" = set"; then
10103 echo $ac_n "(cached) $ac_c" 1>&6
10106 if test "$cross_compiling" = yes; then
10107 samba_cv_HAVE_MMAP
=cross
10109 cat > conftest.
$ac_ext <<EOF
10110 #line 10111 "configure"
10111 #include "confdefs.h"
10112 #include "${srcdir-.}/tests/shared_mmap.c"
10114 if { (eval echo configure
:10115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10116 samba_cv_HAVE_MMAP
=yes
10118 echo "configure: failed program was:" >&5
10119 cat conftest.
$ac_ext >&5
10121 samba_cv_HAVE_MMAP
=no
10128 echo "$ac_t""$samba_cv_HAVE_MMAP" 1>&6
10129 if test x
"$samba_cv_HAVE_MMAP" = x
"yes"; then
10130 cat >> confdefs.h
<<\EOF
10131 #define HAVE_MMAP 1
10136 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
10137 echo "configure:10138: checking for ftruncate needs root" >&5
10138 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
10139 echo $ac_n "(cached) $ac_c" 1>&6
10142 if test "$cross_compiling" = yes; then
10143 samba_cv_FTRUNCATE_NEEDS_ROOT
=cross
10145 cat > conftest.
$ac_ext <<EOF
10146 #line 10147 "configure"
10147 #include "confdefs.h"
10148 #include "${srcdir-.}/tests/ftruncroot.c"
10150 if { (eval echo configure
:10151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10152 samba_cv_FTRUNCATE_NEEDS_ROOT
=yes
10154 echo "configure: failed program was:" >&5
10155 cat conftest.
$ac_ext >&5
10157 samba_cv_FTRUNCATE_NEEDS_ROOT
=no
10164 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
10165 if test x
"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x
"yes"; then
10166 cat >> confdefs.h
<<\EOF
10167 #define FTRUNCATE_NEEDS_ROOT 1
10172 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
10173 echo "configure:10174: checking for fcntl locking" >&5
10174 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
10175 echo $ac_n "(cached) $ac_c" 1>&6
10178 if test "$cross_compiling" = yes; then
10179 samba_cv_HAVE_FCNTL_LOCK
=cross
10181 cat > conftest.
$ac_ext <<EOF
10182 #line 10183 "configure"
10183 #include "confdefs.h"
10184 #include "${srcdir-.}/tests/fcntl_lock.c"
10186 if { (eval echo configure
:10187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10188 samba_cv_HAVE_FCNTL_LOCK
=yes
10190 echo "configure: failed program was:" >&5
10191 cat conftest.
$ac_ext >&5
10193 samba_cv_HAVE_FCNTL_LOCK
=no
10200 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
10201 if test x
"$samba_cv_HAVE_FCNTL_LOCK" = x
"yes"; then
10202 cat >> confdefs.h
<<\EOF
10203 #define HAVE_FCNTL_LOCK 1
10208 echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6
10209 echo "configure:10210: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
10210 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_FCNTL64_LOCKS'+set}'`\" = set"; then
10211 echo $ac_n "(cached) $ac_c" 1>&6
10214 if test "$cross_compiling" = yes; then
10215 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=cross
10217 cat > conftest.
$ac_ext <<EOF
10218 #line 10219 "configure"
10219 #include "confdefs.h"
10220 #include "${srcdir-.}/tests/fcntl_lock64.c"
10222 if { (eval echo configure
:10223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10224 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=yes
10226 echo "configure: failed program was:" >&5
10227 cat conftest.
$ac_ext >&5
10229 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=no
10236 echo "$ac_t""$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" 1>&6
10237 if test x
"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x
"yes"; then
10238 cat >> confdefs.h
<<\EOF
10239 #define HAVE_BROKEN_FCNTL64_LOCKS 1
10246 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
10247 echo "configure:10248: checking for 64 bit fcntl locking" >&5
10248 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
10249 echo $ac_n "(cached) $ac_c" 1>&6
10252 if test "$cross_compiling" = yes; then
10253 samba_cv_HAVE_STRUCT_FLOCK64
=cross
10255 cat > conftest.
$ac_ext <<EOF
10256 #line 10257 "configure"
10257 #include "confdefs.h"
10259 #if defined(HAVE_UNISTD_H)
10260 #include <unistd.h>
10263 #include <stdlib.h>
10265 #ifdef HAVE_FCNTL_H
10269 #ifdef HAVE_SYS_FCNTL_H
10270 #include <sys/fcntl.h>
10272 main() { struct flock64 fl64;
10273 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
10280 if { (eval echo configure
:10281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10282 samba_cv_HAVE_STRUCT_FLOCK64
=yes
10284 echo "configure: failed program was:" >&5
10285 cat conftest.
$ac_ext >&5
10287 samba_cv_HAVE_STRUCT_FLOCK64
=no
10294 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
10296 if test x
"$samba_cv_HAVE_STRUCT_FLOCK64" = x
"yes"; then
10297 cat >> confdefs.h
<<\EOF
10298 #define HAVE_STRUCT_FLOCK64 1
10304 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
10305 echo "configure:10306: checking for a crypt that needs truncated salt" >&5
10306 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
10307 echo $ac_n "(cached) $ac_c" 1>&6
10310 if test "$cross_compiling" = yes; then
10311 samba_cv_HAVE_TRUNCATED_SALT
=cross
10313 cat > conftest.
$ac_ext <<EOF
10314 #line 10315 "configure"
10315 #include "confdefs.h"
10316 #include "${srcdir-.}/tests/crypttest.c"
10318 if { (eval echo configure
:10319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10320 samba_cv_HAVE_TRUNCATED_SALT
=no
10322 echo "configure: failed program was:" >&5
10323 cat conftest.
$ac_ext >&5
10325 samba_cv_HAVE_TRUNCATED_SALT
=yes
10332 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
10333 if test x
"$samba_cv_HAVE_TRUNCATED_SALT" = x
"yes"; then
10334 cat >> confdefs.h
<<\EOF
10335 #define HAVE_TRUNCATED_SALT 1
10340 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
10341 echo "configure:10342: checking for broken nisplus include files" >&5
10342 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
10343 echo $ac_n "(cached) $ac_c" 1>&6
10346 cat > conftest.
$ac_ext <<EOF
10347 #line 10348 "configure"
10348 #include "confdefs.h"
10349 #include <sys/acl.h>
10350 #if defined(HAVE_RPCSVC_NIS_H)
10351 #include <rpcsvc/nis.h>
10357 if { (eval echo configure
:10358: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10359 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES
=no
10361 echo "configure: failed program was:" >&5
10362 cat conftest.
$ac_ext >&5
10364 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES
=yes
10369 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
10370 if test x
"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x
"yes"; then
10371 cat >> confdefs.h
<<\EOF
10372 #define BROKEN_NISPLUS_INCLUDE_FILES 1
10378 #################################################
10379 # check for smbwrapper support
10380 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
10381 echo "configure:10382: checking whether to use smbwrapper" >&5
10382 # Check whether --with-smbwrapper or --without-smbwrapper was given.
10383 if test "${with_smbwrapper+set}" = set; then
10384 withval
="$with_smbwrapper"
10387 echo "$ac_t""yes" 1>&6
10388 cat >> confdefs.h
<<\EOF
10389 #define WITH_SMBWRAPPER 1
10392 WRAP
="bin/smbsh bin/smbwrapper.$SHLIBEXT"
10394 if test x
$ATTEMPT_WRAP32_BUILD = x
; then
10397 WRAP32
=bin
/smbwrapper
.32.
$SHLIBEXT
10400 # Conditions under which smbwrapper should not be built.
10402 if test x
$PICFLAG = x
; then
10403 echo No support
for PIC code
- disabling smbwrapper and smbsh
10406 elif test x
$ac_cv_func_syscall = xno
; then
10407 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
10413 echo "$ac_t""no" 1>&6
10417 echo "$ac_t""no" 1>&6
10422 #################################################
10423 # check for the AFS filesystem
10424 echo $ac_n "checking whether to use AFS""... $ac_c" 1>&6
10425 echo "configure:10426: checking whether to use AFS" >&5
10426 # Check whether --with-afs or --without-afs was given.
10427 if test "${with_afs+set}" = set; then
10428 withval
="$with_afs"
10431 echo "$ac_t""yes" 1>&6
10432 cat >> confdefs.h
<<\EOF
10438 echo "$ac_t""no" 1>&6
10442 echo "$ac_t""no" 1>&6
10448 #################################################
10449 # check for the DFS auth system
10450 echo $ac_n "checking whether to use DFS auth""... $ac_c" 1>&6
10451 echo "configure:10452: checking whether to use DFS auth" >&5
10452 # Check whether --with-dfs or --without-dfs was given.
10453 if test "${with_dfs+set}" = set; then
10454 withval
="$with_dfs"
10457 echo "$ac_t""yes" 1>&6
10458 cat >> confdefs.h
<<\EOF
10464 echo "$ac_t""no" 1>&6
10468 echo "$ac_t""no" 1>&6
10473 #################################################
10474 # check for Kerberos IV auth system
10475 echo $ac_n "checking whether to use Kerberos IV""... $ac_c" 1>&6
10476 echo "configure:10477: checking whether to use Kerberos IV" >&5
10477 # Check whether --with-krb4 or --without-krb4 was given.
10478 if test "${with_krb4+set}" = set; then
10479 withval
="$with_krb4"
10480 echo "$ac_t""yes" 1>&6
10481 cat >> confdefs.h
<<\EOF
10482 #define KRB4_AUTH 1
10485 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
10486 echo "configure:10487: checking for dn_expand in -lresolv" >&5
10487 ac_lib_var
=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
10488 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10489 echo $ac_n "(cached) $ac_c" 1>&6
10491 ac_save_LIBS
="$LIBS"
10492 LIBS
="-lresolv $LIBS"
10493 cat > conftest.
$ac_ext <<EOF
10494 #line 10495 "configure"
10495 #include "confdefs.h"
10496 /* Override any gcc2 internal prototype to avoid an error. */
10497 /* We use char because int might match the return type of a gcc2
10498 builtin and then its argument prototype would still apply. */
10505 if { (eval echo configure
:10506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
10507 eval "ac_cv_lib_$ac_lib_var=yes"
10509 echo "configure: failed program was:" >&5
10510 cat conftest.
$ac_ext >&5
10512 eval "ac_cv_lib_$ac_lib_var=no"
10515 LIBS
="$ac_save_LIBS"
10518 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10519 echo "$ac_t""yes" 1>&6
10520 ac_tr_lib
=HAVE_LIB
`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10521 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10522 cat >> confdefs.h
<<EOF
10523 #define $ac_tr_lib 1
10526 LIBS
="-lresolv $LIBS"
10529 echo "$ac_t""no" 1>&6
10532 LIBS
="$LIBS -lkrb -ldes"
10533 CFLAGS
="$CFLAGS -I$withval/include"
10534 LDFLAGS
="$LDFLAGS -L$withval/lib"
10536 echo "$ac_t""no" 1>&6
10541 #################################################
10542 # check for Kerberos 5 auth system
10543 echo $ac_n "checking whether to use Kerberos 5""... $ac_c" 1>&6
10544 echo "configure:10545: checking whether to use Kerberos 5" >&5
10545 # Check whether --with-krb5 or --without-krb5 was given.
10546 if test "${with_krb5+set}" = set; then
10547 withval
="$with_krb5"
10548 echo "$ac_t""yes" 1>&6
10549 cat >> confdefs.h
<<\EOF
10550 #define KRB5_AUTH 1
10553 LIBS
="$LIBS -ldes425 -lkrb5 -lcrypto -lcom_err"
10554 CFLAGS
="$CFLAGS -I$withval/include"
10555 LDFLAGS
="$LDFLAGS -L$withval/lib"
10557 echo "$ac_t""no" 1>&6
10562 #################################################
10563 # check for automount support
10564 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
10565 echo "configure:10566: checking whether to use AUTOMOUNT" >&5
10566 # Check whether --with-automount or --without-automount was given.
10567 if test "${with_automount+set}" = set; then
10568 withval
="$with_automount"
10571 echo "$ac_t""yes" 1>&6
10572 cat >> confdefs.h
<<\EOF
10573 #define WITH_AUTOMOUNT 1
10578 echo "$ac_t""no" 1>&6
10582 echo "$ac_t""no" 1>&6
10587 #################################################
10588 # check for smbmount support
10589 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
10590 echo "configure:10591: checking whether to use SMBMOUNT" >&5
10591 # Check whether --with-smbmount or --without-smbmount was given.
10592 if test "${with_smbmount+set}" = set; then
10593 withval
="$with_smbmount"
10596 echo "$ac_t""yes" 1>&6
10597 cat >> confdefs.h
<<\EOF
10598 #define WITH_SMBMOUNT 1
10601 MPROGS
="bin/smbmount bin/smbmnt bin/smbumount"
10604 echo "$ac_t""no" 1>&6
10609 echo "$ac_t""no" 1>&6
10616 #################################################
10617 # check for a PAM password database
10618 echo $ac_n "checking whether to use PAM password database""... $ac_c" 1>&6
10619 echo "configure:10620: checking whether to use PAM password database" >&5
10620 # Check whether --with-pam or --without-pam was given.
10621 if test "${with_pam+set}" = set; then
10622 withval
="$with_pam"
10625 echo "$ac_t""yes" 1>&6
10626 cat >> confdefs.h
<<\EOF
10633 echo "$ac_t""no" 1>&6
10637 echo "$ac_t""no" 1>&6
10642 #################################################
10643 # check for a TDB password database
10644 echo $ac_n "checking whether to use TDB password database""... $ac_c" 1>&6
10645 echo "configure:10646: checking whether to use TDB password database" >&5
10646 # Check whether --with-tdbsam or --without-tdbsam was given.
10647 if test "${with_tdbsam+set}" = set; then
10648 withval
="$with_tdbsam"
10651 echo "$ac_t""yes" 1>&6
10652 cat >> confdefs.h
<<\EOF
10653 #define WITH_TDBPWD 1
10656 # AC_MSG_ERROR([TDB password database not supported in this version.])
10659 echo "$ac_t""no" 1>&6
10663 echo "$ac_t""no" 1>&6
10668 #################################################
10669 # check for a LDAP password database
10670 echo $ac_n "checking whether to use LDAP password database""... $ac_c" 1>&6
10671 echo "configure:10672: checking whether to use LDAP password database" >&5
10672 # Check whether --with-ldap or --without-ldap was given.
10673 if test "${with_ldap+set}" = set; then
10674 withval
="$with_ldap"
10677 echo "$ac_t""yes" 1>&6
10678 cat >> confdefs.h
<<\EOF
10679 #define WITH_LDAP 1
10682 { echo "configure: error: LDAP password database not supported in this version." 1>&2; exit 1; }
10685 echo "$ac_t""no" 1>&6
10689 echo "$ac_t""no" 1>&6
10694 #################################################
10695 # check for a NISPLUS password database
10696 echo $ac_n "checking whether to use NISPLUS password database""... $ac_c" 1>&6
10697 echo "configure:10698: checking whether to use NISPLUS password database" >&5
10698 # Check whether --with-nisplus or --without-nisplus was given.
10699 if test "${with_nisplus+set}" = set; then
10700 withval
="$with_nisplus"
10703 echo "$ac_t""yes" 1>&6
10704 cat >> confdefs.h
<<\EOF
10705 #define WITH_NISPLUS 1
10710 echo "$ac_t""no" 1>&6
10714 echo "$ac_t""no" 1>&6
10719 #################################################
10720 # check for a NISPLUS_HOME support
10721 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
10722 echo "configure:10723: checking whether to use NISPLUS_HOME" >&5
10723 # Check whether --with-nisplus-home or --without-nisplus-home was given.
10724 if test "${with_nisplus_home+set}" = set; then
10725 withval
="$with_nisplus_home"
10728 echo "$ac_t""yes" 1>&6
10729 cat >> confdefs.h
<<\EOF
10730 #define WITH_NISPLUS_HOME 1
10735 echo "$ac_t""no" 1>&6
10739 echo "$ac_t""no" 1>&6
10744 #################################################
10745 # check for the secure socket layer
10746 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
10747 echo "configure:10748: checking whether to use SSL" >&5
10748 # Check whether --with-ssl or --without-ssl was given.
10749 if test "${with_ssl+set}" = set; then
10750 withval
="$with_ssl"
10753 echo "$ac_t""yes" 1>&6
10754 cat >> confdefs.h
<<\EOF
10758 withval
="/usr/local/ssl" # default
10760 if test "${with_sslinc+set}" = set; then
10762 withval
="$with_sslinc"
10765 echo "configure: warning: --with-sslinc called without argument - will use default" 1>&w
10766 CFLAGS
="-I/usr/local/ssl/include $CFLAGS"
10767 LIBS
="-lssl -lcrypto $LIBS"
10768 LDFLAGS
="=L/usr/local/ssl/lib $LDFLAGS"
10771 CFLAGS
="-I${withval}/include $CFLAGS"
10772 LIBS
="-lssl -lcrypto $LIBS"
10773 LDFLAGS
="-L${withval}/lib $LDFLAGS"
10779 CFLAGS
="-I/usr/local/ssl/include $CFLAGS"
10780 LIBS
="-lssl -lcrypto $LIBS"
10781 LDFLAGS
="-L/usr/local/ssl/lib $LDFLAGS"
10785 if test ! -d ${withval}; then
10786 echo "configure: error: called with --with-ssl, but ssl base directory ${withval} does not exist or is not a directory. Aborting config" 1>&2
10790 CFLAGS
="-DHAVE_CRYPT_DECL $CFLAGS" # Damn, SSLeay defines its own
10794 echo "$ac_t""no" 1>&6
10798 echo "$ac_t""no" 1>&6
10803 #################################################
10804 # check for syslog logging
10805 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
10806 echo "configure:10807: checking whether to use syslog logging" >&5
10807 # Check whether --with-syslog or --without-syslog was given.
10808 if test "${with_syslog+set}" = set; then
10809 withval
="$with_syslog"
10812 echo "$ac_t""yes" 1>&6
10813 cat >> confdefs.h
<<\EOF
10814 #define WITH_SYSLOG 1
10819 echo "$ac_t""no" 1>&6
10823 echo "$ac_t""no" 1>&6
10828 #################################################
10829 # check for a shared memory profiling support
10830 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
10831 echo "configure:10832: checking whether to use profiling" >&5
10832 # Check whether --with-profile or --without-profile was given.
10833 if test "${with_profile+set}" = set; then
10834 withval
="$with_profile"
10837 echo "$ac_t""yes" 1>&6
10838 cat >> confdefs.h
<<\EOF
10839 #define WITH_PROFILE 1
10844 echo "$ac_t""no" 1>&6
10848 echo "$ac_t""no" 1>&6
10854 #################################################
10855 # check for experimental netatalk resource fork support
10856 echo $ac_n "checking whether to support netatalk""... $ac_c" 1>&6
10857 echo "configure:10858: checking whether to support netatalk" >&5
10858 # Check whether --with-netatalk or --without-netatalk was given.
10859 if test "${with_netatalk+set}" = set; then
10860 withval
="$with_netatalk"
10863 echo "$ac_t""yes" 1>&6
10864 cat >> confdefs.h
<<\EOF
10865 #define WITH_NETATALK 1
10870 echo "$ac_t""no" 1>&6
10874 echo "$ac_t""no" 1>&6
10879 #################################################
10880 # check for experimental disk-quotas support
10881 QUOTAOBJS
=smbd
/noquotas.o
10883 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
10884 echo "configure:10885: checking whether to support disk-quotas" >&5
10885 # Check whether --with-quotas or --without-quotas was given.
10886 if test "${with_quotas+set}" = set; then
10887 withval
="$with_quotas"
10890 echo "$ac_t""yes" 1>&6
10891 QUOTAOBJS
=smbd
/quotas.o
10894 echo "$ac_t""no" 1>&6
10898 echo "$ac_t""no" 1>&6
10904 #################################################
10905 # check for experimental utmp accounting
10907 echo $ac_n "checking whether to support utmp accounting""... $ac_c" 1>&6
10908 echo "configure:10909: checking whether to support utmp accounting" >&5
10909 # Check whether --with-utmp or --without-utmp was given.
10910 if test "${with_utmp+set}" = set; then
10911 withval
="$with_utmp"
10914 echo "$ac_t""yes" 1>&6
10915 cat >> confdefs.h
<<\EOF
10916 #define WITH_UTMP 1
10921 echo "$ac_t""no" 1>&6
10925 echo "$ac_t""no" 1>&6
10930 #################################################
10931 # check for MS Dfs support
10933 echo $ac_n "checking whether to support Microsoft Dfs""... $ac_c" 1>&6
10934 echo "configure:10935: checking whether to support Microsoft Dfs" >&5
10935 # Check whether --with-msdfs or --without-msdfs was given.
10936 if test "${with_msdfs+set}" = set; then
10937 withval
="$with_msdfs"
10940 echo "$ac_t""yes" 1>&6
10941 cat >> confdefs.h
<<\EOF
10942 #define WITH_MSDFS 1
10947 echo "$ac_t""no" 1>&6
10951 echo "$ac_t""no" 1>&6
10956 #################################################
10957 # set private directory location
10958 # Check whether --with-privatedir or --without-privatedir was given.
10959 if test "${with_privatedir+set}" = set; then
10960 withval
="$with_privatedir"
10964 # Just in case anybody calls it without argument
10966 echo "configure: warning: --with-privatedir called without argument - will use default" 1>&2
10967 privatedir
='${prefix}/private'
10970 privatedir
="$withval"
10975 privatedir
='${prefix}/private'
10981 #################################################
10982 # set lock directory location
10983 # Check whether --with-lockdir or --without-lockdir was given.
10984 if test "${with_lockdir+set}" = set; then
10985 withval
="$with_lockdir"
10989 # Just in case anybody calls it without argument
10991 echo "configure: warning: --with-lockdir called without argument - will use default" 1>&2
10992 lockdir
='$(VARDIR)/locks'
11000 lockdir
='$(VARDIR)/locks'
11006 #################################################
11007 # set SWAT directory location
11008 # Check whether --with-swatdir or --without-swatdir was given.
11009 if test "${with_swatdir+set}" = set; then
11010 withval
="$with_swatdir"
11014 # Just in case anybody does it
11016 echo "configure: warning: --with-swatdir called without argument - will use default" 1>&2
11017 swatdir
='${prefix}/swat'
11025 swatdir
='${prefix}/swat'
11031 #################################################
11032 # these tests are taken from the GNU fileutils package
11033 echo "checking how to get filesystem space usage" 1>&6
11034 echo "configure:11035: checking how to get filesystem space usage" >&5
11037 # Test for statvfs64.
11038 if test $space = no
; then
11040 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
11041 echo "configure:11042: checking statvfs64 function (SVR4)" >&5
11042 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
11043 echo $ac_n "(cached) $ac_c" 1>&6
11045 if test "$cross_compiling" = yes; then
11046 fu_cv_sys_stat_statvfs64
=cross
11048 cat > conftest.
$ac_ext <<EOF
11049 #line 11050 "configure"
11050 #include "confdefs.h"
11052 #if defined(HAVE_UNISTD_H)
11053 #include <unistd.h>
11055 #include <sys/types.h>
11056 #include <sys/statvfs.h>
11059 struct statvfs64 fsd;
11060 exit (statvfs64 (".", &fsd));
11063 if { (eval echo configure
:11064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11065 fu_cv_sys_stat_statvfs64
=yes
11067 echo "configure: failed program was:" >&5
11068 cat conftest.
$ac_ext >&5
11070 fu_cv_sys_stat_statvfs64
=no
11077 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
11078 if test $fu_cv_sys_stat_statvfs64 = yes; then
11080 cat >> confdefs.h
<<\EOF
11081 #define STAT_STATVFS64 1
11087 # Perform only the link test since it seems there are no variants of the
11088 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
11089 # because that got a false positive on SCO OSR5. Adding the declaration
11090 # of a `struct statvfs' causes this test to fail (as it should) on such
11091 # systems. That system is reported to work fine with STAT_STATFS4 which
11092 # is what it gets when this test fails.
11093 if test $space = no
; then
11095 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
11096 echo "configure:11097: checking statvfs function (SVR4)" >&5
11097 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
11098 echo $ac_n "(cached) $ac_c" 1>&6
11100 cat > conftest.
$ac_ext <<EOF
11101 #line 11102 "configure"
11102 #include "confdefs.h"
11103 #include <sys/types.h>
11104 #include <sys/statvfs.h>
11106 struct statvfs fsd; statvfs (0, &fsd);
11109 if { (eval echo configure
:11110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11111 fu_cv_sys_stat_statvfs
=yes
11113 echo "configure: failed program was:" >&5
11114 cat conftest.
$ac_ext >&5
11116 fu_cv_sys_stat_statvfs
=no
11121 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
11122 if test $fu_cv_sys_stat_statvfs = yes; then
11124 cat >> confdefs.h
<<\EOF
11125 #define STAT_STATVFS 1
11131 if test $space = no
; then
11132 # DEC Alpha running OSF/1
11133 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
11134 echo "configure:11135: checking for 3-argument statfs function (DEC OSF/1)" >&5
11135 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
11136 echo $ac_n "(cached) $ac_c" 1>&6
11138 if test "$cross_compiling" = yes; then
11139 fu_cv_sys_stat_statfs3_osf1
=no
11141 cat > conftest.
$ac_ext <<EOF
11142 #line 11143 "configure"
11143 #include "confdefs.h"
11145 #include <sys/param.h>
11146 #include <sys/types.h>
11147 #include <sys/mount.h>
11152 exit (statfs (".", &fsd, sizeof (struct statfs)));
11155 if { (eval echo configure
:11156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11157 fu_cv_sys_stat_statfs3_osf1
=yes
11159 echo "configure: failed program was:" >&5
11160 cat conftest.
$ac_ext >&5
11162 fu_cv_sys_stat_statfs3_osf1
=no
11169 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
11170 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
11172 cat >> confdefs.h
<<\EOF
11173 #define STAT_STATFS3_OSF1 1
11179 if test $space = no
; then
11181 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
11182 echo "configure:11183: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
11183 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
11184 echo $ac_n "(cached) $ac_c" 1>&6
11186 if test "$cross_compiling" = yes; then
11187 fu_cv_sys_stat_statfs2_bsize
=no
11189 cat > conftest.
$ac_ext <<EOF
11190 #line 11191 "configure"
11191 #include "confdefs.h"
11193 #ifdef HAVE_SYS_PARAM_H
11194 #include <sys/param.h>
11196 #ifdef HAVE_SYS_MOUNT_H
11197 #include <sys/mount.h>
11199 #ifdef HAVE_SYS_VFS_H
11200 #include <sys/vfs.h>
11206 exit (statfs (".", &fsd));
11209 if { (eval echo configure
:11210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11211 fu_cv_sys_stat_statfs2_bsize
=yes
11213 echo "configure: failed program was:" >&5
11214 cat conftest.
$ac_ext >&5
11216 fu_cv_sys_stat_statfs2_bsize
=no
11223 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
11224 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
11226 cat >> confdefs.h
<<\EOF
11227 #define STAT_STATFS2_BSIZE 1
11233 if test $space = no
; then
11235 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
11236 echo "configure:11237: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
11237 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
11238 echo $ac_n "(cached) $ac_c" 1>&6
11240 if test "$cross_compiling" = yes; then
11241 fu_cv_sys_stat_statfs4
=no
11243 cat > conftest.
$ac_ext <<EOF
11244 #line 11245 "configure"
11245 #include "confdefs.h"
11246 #include <sys/types.h>
11247 #include <sys/statfs.h>
11251 exit (statfs (".", &fsd, sizeof fsd, 0));
11254 if { (eval echo configure
:11255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11256 fu_cv_sys_stat_statfs4
=yes
11258 echo "configure: failed program was:" >&5
11259 cat conftest.
$ac_ext >&5
11261 fu_cv_sys_stat_statfs4
=no
11268 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
11269 if test $fu_cv_sys_stat_statfs4 = yes; then
11271 cat >> confdefs.h
<<\EOF
11272 #define STAT_STATFS4 1
11278 if test $space = no
; then
11279 # 4.4BSD and NetBSD
11280 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
11281 echo "configure:11282: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
11282 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
11283 echo $ac_n "(cached) $ac_c" 1>&6
11285 if test "$cross_compiling" = yes; then
11286 fu_cv_sys_stat_statfs2_fsize
=no
11288 cat > conftest.
$ac_ext <<EOF
11289 #line 11290 "configure"
11290 #include "confdefs.h"
11291 #include <sys/types.h>
11292 #ifdef HAVE_SYS_PARAM_H
11293 #include <sys/param.h>
11295 #ifdef HAVE_SYS_MOUNT_H
11296 #include <sys/mount.h>
11302 exit (statfs (".", &fsd));
11305 if { (eval echo configure
:11306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11307 fu_cv_sys_stat_statfs2_fsize
=yes
11309 echo "configure: failed program was:" >&5
11310 cat conftest.
$ac_ext >&5
11312 fu_cv_sys_stat_statfs2_fsize
=no
11319 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
11320 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
11322 cat >> confdefs.h
<<\EOF
11323 #define STAT_STATFS2_FSIZE 1
11329 if test $space = no
; then
11331 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
11332 echo "configure:11333: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
11333 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
11334 echo $ac_n "(cached) $ac_c" 1>&6
11336 if test "$cross_compiling" = yes; then
11337 fu_cv_sys_stat_fs_data
=no
11339 cat > conftest.
$ac_ext <<EOF
11340 #line 11341 "configure"
11341 #include "confdefs.h"
11342 #include <sys/types.h>
11343 #ifdef HAVE_SYS_PARAM_H
11344 #include <sys/param.h>
11346 #ifdef HAVE_SYS_MOUNT_H
11347 #include <sys/mount.h>
11349 #ifdef HAVE_SYS_FS_TYPES_H
11350 #include <sys/fs_types.h>
11354 struct fs_data fsd;
11355 /* Ultrix's statfs returns 1 for success,
11356 0 for not mounted, -1 for failure. */
11357 exit (statfs (".", &fsd) != 1);
11360 if { (eval echo configure
:11361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11362 fu_cv_sys_stat_fs_data
=yes
11364 echo "configure: failed program was:" >&5
11365 cat conftest.
$ac_ext >&5
11367 fu_cv_sys_stat_fs_data
=no
11374 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
11375 if test $fu_cv_sys_stat_fs_data = yes; then
11377 cat >> confdefs.h
<<\EOF
11378 #define STAT_STATFS2_FS_DATA 1
11385 # As a gating factor for large file support, in order to
11386 # use <4GB files we must have the following minimal support
11388 # long long, and a 64 bit off_t or off64_t.
11389 # If we don't have all of these then disable large
11392 echo "checking if large file support can be enabled"
11393 cat > conftest.
$ac_ext <<EOF
11394 #line 11395 "configure"
11395 #include "confdefs.h"
11397 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
11398 #include <sys/types.h>
11407 if { (eval echo configure
:11408: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11409 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT
=yes
11411 echo "configure: failed program was:" >&5
11412 cat conftest.
$ac_ext >&5
11414 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT
=no
11417 if test x
"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x
"yes"; then
11419 cat >> confdefs.h
<<\EOF
11420 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
11427 # Check whether --with-spinlocks or --without-spinlocks was given.
11428 if test "${with_spinlocks+set}" = set; then
11429 withval
="$with_spinlocks"
11433 if test "x$with_spinlocks" = "xyes"; then
11434 cat >> confdefs.h
<<\EOF
11435 #define USE_SPINLOCKS 1
11439 case "$host_cpu" in
11441 cat >> confdefs.h
<<\EOF
11442 #define SPARC_SPINLOCKS 1
11447 i386|i486|i586|i686
)
11448 cat >> confdefs.h
<<\EOF
11449 #define INTEL_SPINLOCKS 1
11455 cat >> confdefs.h
<<\EOF
11456 #define MIPS_SPINLOCKS 1
11462 cat >> confdefs.h
<<\EOF
11463 #define POWERPC_SPINLOCKS 1
11470 echo "checking configure summary"
11471 if test "$cross_compiling" = yes; then
11474 cat > conftest.
$ac_ext <<EOF
11475 #line 11476 "configure"
11476 #include "confdefs.h"
11477 #include "${srcdir-.}/tests/summary.c"
11479 if { (eval echo configure
:11480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11481 echo "configure OK";
11483 echo "configure: failed program was:" >&5
11484 cat conftest.
$ac_ext >&5
11486 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }
11496 cat > confcache
<<\EOF
11497 # This file is a shell script that caches the results of configure
11498 # tests run on this system so they can be shared between configure
11499 # scripts and configure runs. It is not useful on other systems.
11500 # If it contains results you don't want to keep, you may remove or edit it.
11502 # By default, configure uses ./config.cache as the cache file,
11503 # creating it if it does not exist already. You can give configure
11504 # the --cache-file=FILE option to use a different cache file; that is
11505 # what configure does when it calls configure scripts in
11506 # subdirectories, so they share the cache.
11507 # Giving --cache-file=/dev/null disables caching, for debugging configure.
11508 # config.status only pays attention to the cache file if you give it the
11509 # --recheck option to rerun configure.
11512 # The following way of writing the cache mishandles newlines in values,
11513 # but we know of no workaround that is simple, portable, and efficient.
11514 # So, don't put newlines in cache variables' values.
11515 # Ultrix sh set writes to stderr and can't be redirected directly,
11516 # and sets the high bit in the cache file unless we assign to the vars.
11518 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11520 # `set' does not quote correctly, so add quotes (double-quote substitution
11521 # turns \\\\ into \\, and sed turns \\ into \).
11523 -e "s/'/'\\\\''/g" \
11524 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
11527 # `set' quotes correctly as required by POSIX, so do not add quotes.
11528 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
11531 if cmp -s $cache_file confcache
; then
11534 if test -w $cache_file; then
11535 echo "updating cache $cache_file"
11536 cat confcache
> $cache_file
11538 echo "not updating unwritable cache $cache_file"
11543 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
11545 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
11546 # Let make expand exec_prefix.
11547 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
11549 # Any assignment to VPATH causes Sun make to only execute
11550 # the first set of double-colon rules, so remove it if not needed.
11551 # If there is a colon in the path, we need to keep it.
11552 if test "x$srcdir" = x.
; then
11553 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
11556 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
11558 DEFS
=-DHAVE_CONFIG_H
11560 # Without the "./", some shells look in PATH for config.status.
11561 : ${CONFIG_STATUS=./config.status}
11563 echo creating
$CONFIG_STATUS
11564 rm -f $CONFIG_STATUS
11565 cat > $CONFIG_STATUS <<EOF
11567 # Generated automatically by configure.
11568 # Run this file to recreate the current configuration.
11569 # This directory was configured as follows,
11570 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11572 # $0 $ac_configure_args
11574 # Compiler output produced by configure, useful for debugging
11575 # configure, is in ./config.log if it exists.
11577 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
11580 case "\$ac_option" in
11581 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11582 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
11583 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
11584 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
11585 echo "$CONFIG_STATUS generated by autoconf version 2.13"
11587 -help | --help | --hel | --he | --h)
11588 echo "\$ac_cs_usage"; exit 0 ;;
11589 *) echo "\$ac_cs_usage"; exit 1 ;;
11593 ac_given_srcdir=$srcdir
11594 ac_given_INSTALL="$INSTALL"
11596 trap 'rm -fr `echo "include/stamp-h Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
11598 cat >> $CONFIG_STATUS <<EOF
11600 # Protect against being on the right side of a sed subst in config.status.
11601 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
11602 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
11606 s%@CFLAGS@%$CFLAGS%g
11607 s%@CPPFLAGS@%$CPPFLAGS%g
11608 s%@CXXFLAGS@%$CXXFLAGS%g
11609 s%@FFLAGS@%$FFLAGS%g
11611 s%@LDFLAGS@%$LDFLAGS%g
11613 s%@exec_prefix@%$exec_prefix%g
11614 s%@prefix@%$prefix%g
11615 s%@program_transform_name@%$program_transform_name%g
11616 s%@bindir@%$bindir%g
11617 s%@sbindir@%$sbindir%g
11618 s%@libexecdir@%$libexecdir%g
11619 s%@datadir@%$datadir%g
11620 s%@sysconfdir@%$sysconfdir%g
11621 s%@sharedstatedir@%$sharedstatedir%g
11622 s%@localstatedir@%$localstatedir%g
11623 s%@libdir@%$libdir%g
11624 s%@includedir@%$includedir%g
11625 s%@oldincludedir@%$oldincludedir%g
11626 s%@infodir@%$infodir%g
11627 s%@mandir@%$mandir%g
11628 s%@RUNPROG@%$RUNPROG%g
11629 s%@MPROGS@%$MPROGS%g
11630 s%@LDSHFLAGS@%$LDSHFLAGS%g
11631 s%@HOST_OS@%$HOST_OS%g
11633 s%@WRAP32@%$WRAP32%g
11634 s%@PICFLAG@%$PICFLAG%g
11635 s%@SHLIBEXT@%$SHLIBEXT%g
11637 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
11638 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
11639 s%@INSTALL_DATA@%$INSTALL_DATA%g
11642 s%@host_alias@%$host_alias%g
11643 s%@host_cpu@%$host_cpu%g
11644 s%@host_vendor@%$host_vendor%g
11645 s%@host_os@%$host_os%g
11647 s%@build_alias@%$build_alias%g
11648 s%@build_cpu@%$build_cpu%g
11649 s%@build_vendor@%$build_vendor%g
11650 s%@build_os@%$build_os%g
11651 s%@RANLIB@%$RANLIB%g
11653 s%@LIBTOOL@%$LIBTOOL%g
11654 s%@LIBTOOL_DEPS@%$LIBTOOL_DEPS%g
11655 s%@BROKEN_CC@%$BROKEN_CC%g
11656 s%@target@%$target%g
11657 s%@target_alias@%$target_alias%g
11658 s%@target_cpu@%$target_cpu%g
11659 s%@target_vendor@%$target_vendor%g
11660 s%@target_os@%$target_os%g
11662 s%@LIBOBJS@%$LIBOBJS%g
11664 s%@QUOTAOBJS@%$QUOTAOBJS%g
11665 s%@privatedir@%$privatedir%g
11666 s%@lockdir@%$lockdir%g
11667 s%@swatdir@%$swatdir%g
11668 s%@builddir@%$builddir%g
11673 cat >> $CONFIG_STATUS <<\EOF
11675 # Split the substitutions into bite-sized pieces for seds with
11676 # small command number limits, like on Digital OSF/1 and HP-UX.
11677 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
11678 ac_file
=1 # Number of current file.
11679 ac_beg
=1 # First line for current file.
11680 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
11683 while $ac_more_lines; do
11684 if test $ac_beg -gt 1; then
11685 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
11687 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
11689 if test ! -s conftest.s
$ac_file; then
11690 ac_more_lines
=false
11691 rm -f conftest.s
$ac_file
11693 if test -z "$ac_sed_cmds"; then
11694 ac_sed_cmds
="sed -f conftest.s$ac_file"
11696 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
11698 ac_file
=`expr $ac_file + 1`
11700 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
11703 if test -z "$ac_sed_cmds"; then
11708 cat >> $CONFIG_STATUS <<EOF
11710 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile"}
11712 cat >> $CONFIG_STATUS <<\EOF
11713 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
11714 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11716 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
11717 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
11718 *) ac_file_in
="${ac_file}.in" ;;
11721 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
11723 # Remove last slash and all that follows it. Not all systems have dirname.
11724 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
11725 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
11726 # The file is in a subdirectory.
11727 test ! -d "$ac_dir" && mkdir
"$ac_dir"
11728 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
11729 # A "../" for each directory in $ac_dir_suffix.
11730 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
11732 ac_dir_suffix
= ac_dots
=
11735 case "$ac_given_srcdir" in
11737 if test -z "$ac_dots"; then top_srcdir
=.
11738 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
11739 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
11740 *) # Relative path.
11741 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
11742 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
11745 case "$ac_given_INSTALL" in
11746 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
11747 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
11750 echo creating
"$ac_file"
11752 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
11754 *Makefile
*) ac_comsub
="1i\\
11755 # $configure_input" ;;
11759 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
11761 s%@configure_input@%$configure_input%g
11762 s%@srcdir@%$srcdir%g
11763 s%@top_srcdir@%$top_srcdir%g
11764 s%@INSTALL@%$INSTALL%g
11765 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
11769 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11770 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11772 # ac_d sets the value in "#define NAME VALUE" lines.
11773 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11774 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
11777 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
11778 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11779 ac_uB
='\([ ]\)%\1#\2define\3'
11782 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11783 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11784 ac_eB
='$%\1#\2define\3'
11788 if test "${CONFIG_HEADERS+set}" != set; then
11790 cat >> $CONFIG_STATUS <<EOF
11791 CONFIG_HEADERS="include/config.h"
11793 cat >> $CONFIG_STATUS <<\EOF
11795 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
11796 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11798 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
11799 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
11800 *) ac_file_in
="${ac_file}.in" ;;
11803 echo creating
$ac_file
11805 rm -f conftest.frag conftest.
in conftest.out
11806 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
11807 cat $ac_file_inputs > conftest.
in
11811 # Transform confdefs.h into a sed script conftest.vals that substitutes
11812 # the proper values into config.h.in to produce config.h. And first:
11813 # Protect against being on the right side of a sed subst in config.status.
11814 # Protect against being in an unquoted here document in config.status.
11815 rm -f conftest.vals
11816 cat > conftest.hdr
<<\EOF
11819 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
11823 sed -n -f conftest.hdr confdefs.h > conftest.vals
11826 # This sed command replaces #undef with comments. This is necessary, for
11827 # example, in the case of _POSIX_SOURCE, which is predefined and required
11828 # on some systems where configure will not decide to define it.
11829 cat >> conftest.vals <<\EOF
11830 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
11833 # Break up conftest.vals because some shells have a limit on
11834 # the size of here documents, and old seds have small limits too.
11836 rm -f conftest.tail
11839 ac_lines=`grep -c . conftest.vals
`
11840 # grep -c gives empty output for an empty file on some AIX systems.
11841 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
11842 # Write a limited-size here document to conftest.frag.
11843 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
11844 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
11846 sed -f conftest.frag conftest.in > conftest.out
11848 mv conftest.out conftest.in
11849 ' >> $CONFIG_STATUS
11850 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
11851 rm -f conftest.vals
11852 mv conftest.tail conftest.vals
11854 rm -f conftest.vals
11856 cat >> $CONFIG_STATUS <<\EOF
11857 rm -f conftest.frag conftest.h
11858 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
11859 cat conftest.in >> conftest.h
11861 if cmp -s $ac_file conftest.h 2>/dev/null; then
11862 echo "$ac_file is unchanged"
11865 # Remove last slash and all that follows it. Not all systems have dirname.
11866 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
11867 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
11868 # The file is in a subdirectory.
11869 test ! -d "$ac_dir" && mkdir "$ac_dir"
11872 mv conftest.h $ac_file
11877 cat >> $CONFIG_STATUS <<EOF
11880 cat >> $CONFIG_STATUS <<\EOF
11884 chmod +x $CONFIG_STATUS
11885 rm -fr confdefs* $ac_clean_files
11886 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1