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-maintainer-mode enable some make rules for maintainers"
18 --enable-static[=PKGS] build static libraries [default=no]"
20 --enable-shared[=PKGS] build shared libraries [default=yes]"
22 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
24 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
26 --disable-libtool-lock avoid locking (might break parallel builds)"
28 --with-sam-pwdb={passdb,tdb,nt5ldap}
29 which password-database to use (passdb)"
31 --with-libmsrpc Include libmsrpc support (default)
32 --without-libmsrpc Don't include libmsrpc support "
34 --with-libubiqx Include SMB libubiqx support (default)
35 --without-libubiqx Don't include SMB libubiqx support "
37 --with-libsamba Include SMB libsamba support (default)
38 --without-libsamba Don't include SMB libsamba support "
40 --with-libnmb Include NMB libnmb support (default)
41 --without-libnmb Don't include NMB libnmb support "
43 --with-libsmbpw Include SMB libsmbpw support (default)
44 --without-libsmbpw Don't include SMB libsmbpw support "
46 --with-libsmb Include SMB libsmb support (default)
47 --without-libsmb Don't include SMB libsmb support "
49 --with-smbwrapper Include SMB wrapper support
50 --without-smbwrapper Don't include SMB wrapper support (default)"
52 --with-afs Include AFS support
53 --without-afs Don't include AFS support (default)"
55 --with-dfs Include DFS support
56 --without-dfs Don't include DFS support (default)"
58 --with-krb4=base-dir Include Kerberos IV support
59 --without-krb4 Don't include Kerberos IV support (default)"
61 --with-automount Include AUTOMOUNT support
62 --without-automount Don't include AUTOMOUNT support (default)"
64 --with-smbmount Include SMBMOUNT (Linux only) support
65 --without-smbmount Don't include SMBMOUNT support (default)"
67 --with-ldap Include LDAP support
68 --without-ldap Don't include LDAP support (default)"
70 --with-nt5ldap Include NT5 LDAP support
71 --without-nt5ldap Don't include NT5 LDAP support (default)"
73 --with-nt5ldap Include NT5 LDAP support
74 --without-nt5ldap Don't include NT5 LDAP support (default)"
76 --with-nisplus Include NISPLUS password database support
77 --without-nisplus Don't include NISPLUS password database support (default)"
79 --with-nisplus-home Include NISPLUS_HOME support
80 --without-nisplus-home Don't include NISPLUS_HOME support (default)"
82 --with-ssl Include SSL support
83 --without-ssl Don't include SSL support (default)"
85 --with-mmap Include experimental MMAP support
86 --without-mmap Don't include MMAP support (default)"
88 --with-syslog Include experimental SYSLOG support
89 --without-syslog Don't include SYSLOG support (default)"
91 --with-profile Include profile support
92 --without-profile Don't include profile support (default)"
94 --with-netatalk Include experimental Netatalk support
95 --without-netatalk Don't include experimental Netatalk support (default)"
97 --with-quotas Include experimental disk-quota support
98 --without-quotas Don't include experimental disk-quota support (default)"
100 # Initialize some variables set by options.
101 # The variables have the same names as the options, with
102 # dashes changed to underlines.
104 cache_file
=.
/config.cache
113 program_transform_name
=s
,x
,x
,
121 bindir
='${exec_prefix}/bin'
122 sbindir
='${exec_prefix}/sbin'
123 libexecdir
='${exec_prefix}/libexec'
124 datadir
='${prefix}/share'
125 sysconfdir
='${prefix}/etc'
126 sharedstatedir
='${prefix}/com'
127 localstatedir
='${prefix}/var'
128 libdir
='${exec_prefix}/lib'
129 includedir
='${prefix}/include'
130 oldincludedir
='/usr/include'
131 infodir
='${prefix}/info'
132 mandir
='${prefix}/man'
134 # Initialize some other variables.
137 SHELL
=${CONFIG_SHELL-/bin/sh}
138 # Maximum number of lines to put in a shell here document.
145 # If the previous option needs an argument, assign it.
146 if test -n "$ac_prev"; then
147 eval "$ac_prev=\$ac_option"
153 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
157 # Accept the important Cygnus configure options, so we can diagnose typos.
161 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
163 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
164 bindir
="$ac_optarg" ;;
166 -build |
--build |
--buil |
--bui |
--bu)
168 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
169 build
="$ac_optarg" ;;
171 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
172 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
173 ac_prev
=cache_file
;;
174 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
175 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
176 cache_file
="$ac_optarg" ;;
178 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
180 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
182 datadir
="$ac_optarg" ;;
184 -disable-* |
--disable-*)
185 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
186 # Reject names that are not valid shell variable names.
187 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
188 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
190 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
191 eval "enable_${ac_feature}=no" ;;
193 -enable-* |
--enable-*)
194 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
195 # Reject names that are not valid shell variable names.
196 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
197 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
199 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
204 eval "enable_${ac_feature}='$ac_optarg'" ;;
206 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
207 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
208 |
--exec |
--exe |
--ex)
209 ac_prev
=exec_prefix
;;
210 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
211 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
212 |
--exec=* |
--exe=* |
--ex=*)
213 exec_prefix
="$ac_optarg" ;;
215 -gas |
--gas |
--ga |
--g)
216 # Obsolete; use --with-gas.
219 -help |
--help |
--hel |
--he)
220 # Omit some internal or obsolete options to make the list less imposing.
221 # This message is too long to be a string in the A/UX 3.1 sh.
223 Usage: configure [options] [host]
224 Options: [defaults in brackets after descriptions]
226 --cache-file=FILE cache test results in FILE
227 --help print this message
228 --no-create do not create output files
229 --quiet, --silent do not print \`checking...' messages
230 --version print the version of autoconf that created configure
231 Directory and file names:
232 --prefix=PREFIX install architecture-independent files in PREFIX
234 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
236 --bindir=DIR user executables in DIR [EPREFIX/bin]
237 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
238 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
239 --datadir=DIR read-only architecture-independent data in DIR
241 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
242 --sharedstatedir=DIR modifiable architecture-independent data in DIR
244 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
245 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
246 --includedir=DIR C header files in DIR [PREFIX/include]
247 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
248 --infodir=DIR info documentation in DIR [PREFIX/info]
249 --mandir=DIR man documentation in DIR [PREFIX/man]
250 --srcdir=DIR find the sources in DIR [configure dir or ..]
251 --program-prefix=PREFIX prepend PREFIX to installed program names
252 --program-suffix=SUFFIX append SUFFIX to installed program names
253 --program-transform-name=PROGRAM
254 run sed PROGRAM on installed program names
258 --build=BUILD configure for building on BUILD [BUILD=HOST]
259 --host=HOST configure for HOST [guessed]
260 --target=TARGET configure for TARGET [TARGET=HOST]
261 Features and packages:
262 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
263 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
264 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
265 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
266 --x-includes=DIR X include files are in DIR
267 --x-libraries=DIR X library files are in DIR
269 if test -n "$ac_help"; then
270 echo "--enable and --with options recognized:$ac_help"
274 -host |
--host |
--hos |
--ho)
276 -host=* |
--host=* |
--hos=* |
--ho=*)
279 -includedir |
--includedir |
--includedi |
--included |
--include \
280 |
--includ |
--inclu |
--incl |
--inc)
281 ac_prev
=includedir
;;
282 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
283 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
284 includedir
="$ac_optarg" ;;
286 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
288 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
289 infodir
="$ac_optarg" ;;
291 -libdir |
--libdir |
--libdi |
--libd)
293 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
294 libdir
="$ac_optarg" ;;
296 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
297 |
--libexe |
--libex |
--libe)
298 ac_prev
=libexecdir
;;
299 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
300 |
--libexe=* |
--libex=* |
--libe=*)
301 libexecdir
="$ac_optarg" ;;
303 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
304 |
--localstate |
--localstat |
--localsta |
--localst \
305 |
--locals |
--local |
--loca |
--loc |
--lo)
306 ac_prev
=localstatedir
;;
307 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
308 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
309 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
310 localstatedir
="$ac_optarg" ;;
312 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
314 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
315 mandir
="$ac_optarg" ;;
318 # Obsolete; use --without-fp.
321 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
325 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
326 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
329 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
330 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
331 |
--oldin |
--oldi |
--old |
--ol |
--o)
332 ac_prev
=oldincludedir
;;
333 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
334 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
335 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
336 oldincludedir
="$ac_optarg" ;;
338 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
340 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
341 prefix
="$ac_optarg" ;;
343 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
344 |
--program-pre |
--program-pr |
--program-p)
345 ac_prev
=program_prefix
;;
346 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
347 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
348 program_prefix
="$ac_optarg" ;;
350 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
351 |
--program-suf |
--program-su |
--program-s)
352 ac_prev
=program_suffix
;;
353 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
354 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
355 program_suffix
="$ac_optarg" ;;
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 ac_prev
=program_transform_name
;;
365 -program-transform-name=* |
--program-transform-name=* \
366 |
--program-transform-nam=* |
--program-transform-na=* \
367 |
--program-transform-n=* |
--program-transform-=* \
368 |
--program-transform=* |
--program-transfor=* \
369 |
--program-transfo=* |
--program-transf=* \
370 |
--program-trans=* |
--program-tran=* \
371 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
372 program_transform_name
="$ac_optarg" ;;
374 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
375 |
-silent |
--silent |
--silen |
--sile |
--sil)
378 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
380 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
382 sbindir
="$ac_optarg" ;;
384 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
385 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
386 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
388 ac_prev
=sharedstatedir
;;
389 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
390 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
391 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
393 sharedstatedir
="$ac_optarg" ;;
395 -site |
--site |
--sit)
397 -site=* |
--site=* |
--sit=*)
400 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
402 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
403 srcdir
="$ac_optarg" ;;
405 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
406 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
407 ac_prev
=sysconfdir
;;
408 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
409 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
410 sysconfdir
="$ac_optarg" ;;
412 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
414 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
415 target
="$ac_optarg" ;;
417 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
420 -version |
--version |
--versio |
--versi |
--vers)
421 echo "configure generated by autoconf version 2.13"
425 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
426 # Reject names that are not valid shell variable names.
427 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
428 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
430 ac_package
=`echo $ac_package| sed 's/-/_/g'`
435 eval "with_${ac_package}='$ac_optarg'" ;;
437 -without-* |
--without-*)
438 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
439 # Reject names that are not valid shell variable names.
440 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
441 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
443 ac_package
=`echo $ac_package| sed 's/-/_/g'`
444 eval "with_${ac_package}=no" ;;
447 # Obsolete; use --with-x.
450 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
451 |
--x-incl |
--x-inc |
--x-in |
--x-i)
452 ac_prev
=x_includes
;;
453 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
454 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
455 x_includes
="$ac_optarg" ;;
457 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
458 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
459 ac_prev
=x_libraries
;;
460 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
461 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
462 x_libraries
="$ac_optarg" ;;
464 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
468 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
469 echo "configure: warning: $ac_option: invalid host type" 1>&2
471 if test "x$nonopt" != xNONE
; then
472 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
480 if test -n "$ac_prev"; then
481 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
484 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
486 # File descriptor usage:
489 # 2 errors and warnings
490 # 3 some systems may open it to /dev/tty
491 # 4 used on the Kubota Titan
492 # 6 checking for... messages and results
493 # 5 compiler messages saved in config.log
494 if test "$silent" = yes; then
502 This file contains any messages produced by compilers while
503 running configure, to aid debugging if configure makes a mistake.
506 # Strip out --no-create and --no-recursion so they do not pile up.
507 # Also quote any args containing shell metacharacters.
512 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
513 |
--no-cr |
--no-c) ;;
514 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
515 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
516 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
517 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
518 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
523 # Only set these to C if already set. These must not be set unconditionally
524 # because not all systems understand e.g. LANG=C (notably SCO).
525 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
526 # Non-C LC_CTYPE values break the ctype check.
527 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
528 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
529 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
530 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
532 # confdefs.h avoids OS command line length limits that DEFS can exceed.
533 rm -rf conftest
* confdefs.h
534 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
537 # A filename unique to this package, relative to the directory that
538 # configure is in, which we can look for to find out if srcdir is correct.
539 ac_unique_file
=include
/includes.h
541 # Find the source files, if location was not specified.
542 if test -z "$srcdir"; then
543 ac_srcdir_defaulted
=yes
544 # Try the directory containing this script, then its parent.
546 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
547 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
549 if test ! -r $srcdir/$ac_unique_file; then
553 ac_srcdir_defaulted
=no
555 if test ! -r $srcdir/$ac_unique_file; then
556 if test "$ac_srcdir_defaulted" = yes; then
557 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
559 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
562 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
564 # Prefer explicitly selected file to automatically selected ones.
565 if test -z "$CONFIG_SITE"; then
566 if test "x$prefix" != xNONE
; then
567 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
569 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
572 for ac_site_file
in $CONFIG_SITE; do
573 if test -r "$ac_site_file"; then
574 echo "loading site script $ac_site_file"
579 if test -r "$cache_file"; then
580 echo "loading cache $cache_file"
583 echo "creating cache $cache_file"
588 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
589 ac_cpp
='$CPP $CPPFLAGS'
590 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
591 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
592 cross_compiling
=$ac_cv_prog_cc_cross
596 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
597 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
598 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
605 ac_n
= ac_c
='\c' ac_t
=
610 # we want to be compatibe with older versions of Samba
633 # compile with optimisation and without debugging by default
634 CFLAGS
=${CFLAGS-"-O"}
636 # Extract the first word of "gcc", so it can be a program name with args.
637 set dummy gcc
; ac_word
=$2
638 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
639 echo "configure:640: checking for $ac_word" >&5
640 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
641 echo $ac_n "(cached) $ac_c" 1>&6
643 if test -n "$CC"; then
644 ac_cv_prog_CC
="$CC" # Let the user override the test.
646 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
648 for ac_dir
in $ac_dummy; do
649 test -z "$ac_dir" && ac_dir
=.
650 if test -f $ac_dir/$ac_word; then
659 if test -n "$CC"; then
660 echo "$ac_t""$CC" 1>&6
662 echo "$ac_t""no" 1>&6
665 if test -z "$CC"; then
666 # Extract the first word of "cc", so it can be a program name with args.
667 set dummy cc
; ac_word
=$2
668 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
669 echo "configure:670: checking for $ac_word" >&5
670 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
671 echo $ac_n "(cached) $ac_c" 1>&6
673 if test -n "$CC"; then
674 ac_cv_prog_CC
="$CC" # Let the user override the test.
676 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
679 for ac_dir
in $ac_dummy; do
680 test -z "$ac_dir" && ac_dir
=.
681 if test -f $ac_dir/$ac_word; then
682 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
691 if test $ac_prog_rejected = yes; then
692 # We found a bogon in the path, so make sure we never use it.
693 set dummy
$ac_cv_prog_CC
695 if test $# -gt 0; then
696 # We chose a different compiler from the bogus one.
697 # However, it has the same basename, so the bogon will be chosen
698 # first if we set CC to just the basename; use the full file name.
700 set dummy
"$ac_dir/$ac_word" "$@"
708 if test -n "$CC"; then
709 echo "$ac_t""$CC" 1>&6
711 echo "$ac_t""no" 1>&6
714 if test -z "$CC"; then
717 # Extract the first word of "cl", so it can be a program name with args.
718 set dummy cl
; ac_word
=$2
719 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
720 echo "configure:721: checking for $ac_word" >&5
721 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
722 echo $ac_n "(cached) $ac_c" 1>&6
724 if test -n "$CC"; then
725 ac_cv_prog_CC
="$CC" # Let the user override the test.
727 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
729 for ac_dir
in $ac_dummy; do
730 test -z "$ac_dir" && ac_dir
=.
731 if test -f $ac_dir/$ac_word; then
740 if test -n "$CC"; then
741 echo "$ac_t""$CC" 1>&6
743 echo "$ac_t""no" 1>&6
748 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
751 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
752 echo "configure:753: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
755 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
756 ac_cpp
='$CPP $CPPFLAGS'
757 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
758 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
759 cross_compiling
=$ac_cv_prog_cc_cross
761 cat > conftest.
$ac_ext << EOF
763 #line 764 "configure"
764 #include "confdefs.h"
768 if { (eval echo configure
:769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
769 ac_cv_prog_cc_works
=yes
770 # If we can't run a trivial program, we are probably using a cross compiler.
771 if (.
/conftest
; exit) 2>/dev
/null
; then
772 ac_cv_prog_cc_cross
=no
774 ac_cv_prog_cc_cross
=yes
777 echo "configure: failed program was:" >&5
778 cat conftest.
$ac_ext >&5
779 ac_cv_prog_cc_works
=no
783 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
784 ac_cpp
='$CPP $CPPFLAGS'
785 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
786 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
787 cross_compiling
=$ac_cv_prog_cc_cross
789 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
790 if test $ac_cv_prog_cc_works = no
; then
791 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
793 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
794 echo "configure:795: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
795 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
796 cross_compiling
=$ac_cv_prog_cc_cross
798 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
799 echo "configure:800: checking whether we are using GNU C" >&5
800 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
801 echo $ac_n "(cached) $ac_c" 1>&6
803 cat > conftest.c
<<EOF
808 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:809: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
815 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
817 if test $ac_cv_prog_gcc = yes; then
823 ac_test_CFLAGS
="${CFLAGS+set}"
824 ac_save_CFLAGS
="$CFLAGS"
826 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
827 echo "configure:828: checking whether ${CC-cc} accepts -g" >&5
828 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
829 echo $ac_n "(cached) $ac_c" 1>&6
831 echo 'void f(){}' > conftest.c
832 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
841 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
842 if test "$ac_test_CFLAGS" = set; then
843 CFLAGS
="$ac_save_CFLAGS"
844 elif test $ac_cv_prog_cc_g = yes; then
845 if test "$GCC" = yes; then
851 if test "$GCC" = yes; then
859 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
860 if test -f $ac_dir/install-sh
; then
862 ac_install_sh
="$ac_aux_dir/install-sh -c"
864 elif test -f $ac_dir/install.sh
; then
866 ac_install_sh
="$ac_aux_dir/install.sh -c"
870 if test -z "$ac_aux_dir"; then
871 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
873 ac_config_guess
=$ac_aux_dir/config.guess
874 ac_config_sub
=$ac_aux_dir/config.sub
875 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
877 # Find a good install program. We prefer a C program (faster),
878 # so one script is as good as another. But avoid the broken or
879 # incompatible versions:
880 # SysV /etc/install, /usr/sbin/install
881 # SunOS /usr/etc/install
884 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
885 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
886 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
887 # ./install, which can be erroneously created by make from ./install.sh.
888 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
889 echo "configure:890: checking for a BSD compatible install" >&5
890 if test -z "$INSTALL"; then
891 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
892 echo $ac_n "(cached) $ac_c" 1>&6
894 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
895 for ac_dir
in $PATH; do
896 # Account for people who put trailing slashes in PATH elements.
898 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
900 # OSF1 and SCO ODT 3.0 have their own names for install.
901 # Don't use installbsd from OSF since it installs stuff as root
903 for ac_prog
in ginstall scoinst
install; do
904 if test -f $ac_dir/$ac_prog; then
905 if test $ac_prog = install &&
906 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
907 # AIX install. It has an incompatible calling convention.
910 ac_cv_path_install
="$ac_dir/$ac_prog -c"
921 if test "${ac_cv_path_install+set}" = set; then
922 INSTALL
="$ac_cv_path_install"
924 # As a last resort, use the slow shell script. We don't cache a
925 # path for INSTALL within a source directory, because that will
926 # break other packages using the cache if that directory is
927 # removed, or if the path is relative.
928 INSTALL
="$ac_install_sh"
931 echo "$ac_t""$INSTALL" 1>&6
933 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
934 # It thinks the first close brace ends the variable substitution.
935 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
937 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
939 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
941 for ac_prog
in mawk gawk nawk
awk
943 # Extract the first word of "$ac_prog", so it can be a program name with args.
944 set dummy
$ac_prog; ac_word
=$2
945 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
946 echo "configure:947: checking for $ac_word" >&5
947 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
948 echo $ac_n "(cached) $ac_c" 1>&6
950 if test -n "$AWK"; then
951 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
953 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
955 for ac_dir
in $ac_dummy; do
956 test -z "$ac_dir" && ac_dir
=.
957 if test -f $ac_dir/$ac_word; then
958 ac_cv_prog_AWK
="$ac_prog"
965 AWK
="$ac_cv_prog_AWK"
966 if test -n "$AWK"; then
967 echo "$ac_t""$AWK" 1>&6
969 echo "$ac_t""no" 1>&6
972 test -n "$AWK" && break
977 # Do some error checking and defaulting for the host and target type.
979 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
982 # 1. You are not allowed to specify --host, --target, and nonopt at the
984 # 2. Host defaults to nonopt.
985 # 3. If nonopt is not specified, then host defaults to the current host,
986 # as determined by config.guess.
987 # 4. Target and build default to nonopt.
988 # 5. If nonopt is not specified, then target and build default to host.
990 # The aliases save the names the user supplied, while $host etc.
991 # will get canonicalized.
992 case $host---$target---$nonopt in
993 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
994 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
998 # Make sure we can run config.sub.
999 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1000 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1003 echo $ac_n "checking host system type""... $ac_c" 1>&6
1004 echo "configure:1005: checking host system type" >&5
1007 case "$host_alias" in
1011 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1012 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1014 *) host_alias
=$nonopt ;;
1018 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1019 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1020 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1021 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1022 echo "$ac_t""$host" 1>&6
1024 echo $ac_n "checking target system type""... $ac_c" 1>&6
1025 echo "configure:1026: checking target system type" >&5
1027 target_alias
=$target
1028 case "$target_alias" in
1031 NONE
) target_alias
=$host_alias ;;
1032 *) target_alias
=$nonopt ;;
1036 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1037 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1038 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1039 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1040 echo "$ac_t""$target" 1>&6
1042 echo $ac_n "checking build system type""... $ac_c" 1>&6
1043 echo "configure:1044: checking build system type" >&5
1046 case "$build_alias" in
1049 NONE
) build_alias
=$host_alias ;;
1050 *) build_alias
=$nonopt ;;
1054 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1055 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1056 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1057 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1058 echo "$ac_t""$build" 1>&6
1060 test "$host_alias" != "$target_alias" &&
1061 test "$program_prefix$program_suffix$program_transform_name" = \
1063 program_prefix
=${target_alias}-
1067 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
1068 echo "configure:1069: checking config.cache system type" >&5
1069 if { test x
"${ac_cv_host_system_type+set}" = x
"set" &&
1070 test x
"$ac_cv_host_system_type" != x
"$host"; } ||
1071 { test x
"${ac_cv_build_system_type+set}" = x
"set" &&
1072 test x
"$ac_cv_build_system_type" != x
"$build"; } ||
1073 { test x
"${ac_cv_target_system_type+set}" = x
"set" &&
1074 test x
"$ac_cv_target_system_type" != x
"$target"; }; then
1075 echo "$ac_t""different" 1>&6
1076 { echo "configure: error: "you must remove config.cache and restart configure
"" 1>&2; exit 1; }
1078 echo "$ac_t""same" 1>&6
1080 ac_cv_host_system_type
="$host"
1081 ac_cv_build_system_type
="$build"
1082 ac_cv_target_system_type
="$target"
1085 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1086 if test "${enable_maintainer_mode+set}" = set; then
1087 enableval
="$enable_maintainer_mode"
1088 maint_mode
=$enableval
1093 if test x
"$maint_mode" = x
"yes"; then MAINT
=; else MAINT
='#'; fi
1095 # Extract the first word of "autoconf", so it can be a program name with args.
1096 set dummy autoconf
; ac_word
=$2
1097 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1098 echo "configure:1099: checking for $ac_word" >&5
1099 if eval "test \"`echo '$''{'ac_cv_path_AUTOCONF'+set}'`\" = set"; then
1100 echo $ac_n "(cached) $ac_c" 1>&6
1104 ac_cv_path_AUTOCONF
="$AUTOCONF" # Let the user override the test with a path.
1107 ac_cv_path_AUTOCONF
="$AUTOCONF" # Let the user override the test with a dos path.
1110 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1112 for ac_dir
in $ac_dummy; do
1113 test -z "$ac_dir" && ac_dir
=.
1114 if test -f $ac_dir/$ac_word; then
1115 ac_cv_path_AUTOCONF
="$ac_dir/$ac_word"
1120 test -z "$ac_cv_path_AUTOCONF" && ac_cv_path_AUTOCONF
="autoconf"
1124 AUTOCONF
="$ac_cv_path_AUTOCONF"
1125 if test -n "$AUTOCONF"; then
1126 echo "$ac_t""$AUTOCONF" 1>&6
1128 echo "$ac_t""no" 1>&6
1132 # Extract the first word of "autoheader", so it can be a program name with args.
1133 set dummy autoheader
; ac_word
=$2
1134 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1135 echo "configure:1136: checking for $ac_word" >&5
1136 if eval "test \"`echo '$''{'ac_cv_path_AUTOHEADER'+set}'`\" = set"; then
1137 echo $ac_n "(cached) $ac_c" 1>&6
1139 case "$AUTOHEADER" in
1141 ac_cv_path_AUTOHEADER
="$AUTOHEADER" # Let the user override the test with a path.
1144 ac_cv_path_AUTOHEADER
="$AUTOHEADER" # Let the user override the test with a dos path.
1147 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1149 for ac_dir
in $ac_dummy; do
1150 test -z "$ac_dir" && ac_dir
=.
1151 if test -f $ac_dir/$ac_word; then
1152 ac_cv_path_AUTOHEADER
="$ac_dir/$ac_word"
1157 test -z "$ac_cv_path_AUTOHEADER" && ac_cv_path_AUTOHEADER
="autoheader"
1161 AUTOHEADER
="$ac_cv_path_AUTOHEADER"
1162 if test -n "$AUTOHEADER"; then
1163 echo "$ac_t""$AUTOHEADER" 1>&6
1165 echo "$ac_t""no" 1>&6
1172 # Config CPPFLAG settings for strange OS's that must be set
1173 # before other tests.
1176 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1178 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1179 echo "configure:1180: checking whether ${CC-cc} accepts -Ae" >&5
1180 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1181 echo $ac_n "(cached) $ac_c" 1>&6
1183 echo 'void f(){}' > conftest.c
1184 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1185 ac_cv_prog_cc_Ae
=yes
1193 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1194 if test $ac_cv_prog_cc_Ae = yes; then
1195 CPPFLAGS
="$CPPFLAGS -Ae"
1199 # AIX4.x is *so* broken. It doesn't even admit to having large
1200 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1203 CPPFLAGS
="$CPPFLAGS -D_LARGE_FILES"
1207 echo $ac_n "checking for inline""... $ac_c" 1>&6
1208 echo "configure:1209: checking for inline" >&5
1209 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1210 echo $ac_n "(cached) $ac_c" 1>&6
1213 for ac_kw
in inline __inline__ __inline
; do
1214 cat > conftest.
$ac_ext <<EOF
1215 #line 1216 "configure"
1216 #include "confdefs.h"
1222 if { (eval echo configure
:1223: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1224 ac_cv_c_inline
=$ac_kw; break
1226 echo "configure: failed program was:" >&5
1227 cat conftest.
$ac_ext >&5
1234 echo "$ac_t""$ac_cv_c_inline" 1>&6
1235 case "$ac_cv_c_inline" in
1237 no
) cat >> confdefs.h
<<\EOF
1241 *) cat >> confdefs.h
<<EOF
1242 #define inline $ac_cv_c_inline
1247 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1248 echo "configure:1249: checking how to run the C preprocessor" >&5
1249 # On Suns, sometimes $CPP names a directory.
1250 if test -n "$CPP" && test -d "$CPP"; then
1253 if test -z "$CPP"; then
1254 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1255 echo $ac_n "(cached) $ac_c" 1>&6
1257 # This must be in double quotes, not single quotes, because CPP may get
1258 # substituted into the Makefile and "${CC-cc}" will confuse make.
1260 # On the NeXT, cc -E runs the code through the compiler's parser,
1261 # not just through cpp.
1262 cat > conftest.
$ac_ext <<EOF
1263 #line 1264 "configure"
1264 #include "confdefs.h"
1268 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1269 { (eval echo configure
:1270: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1270 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1271 if test -z "$ac_err"; then
1275 echo "configure: failed program was:" >&5
1276 cat conftest.
$ac_ext >&5
1278 CPP
="${CC-cc} -E -traditional-cpp"
1279 cat > conftest.
$ac_ext <<EOF
1280 #line 1281 "configure"
1281 #include "confdefs.h"
1285 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1286 { (eval echo configure
:1287: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1287 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1288 if test -z "$ac_err"; then
1292 echo "configure: failed program was:" >&5
1293 cat conftest.
$ac_ext >&5
1295 CPP
="${CC-cc} -nologo -E"
1296 cat > conftest.
$ac_ext <<EOF
1297 #line 1298 "configure"
1298 #include "confdefs.h"
1302 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1303 { (eval echo configure
:1304: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1304 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1305 if test -z "$ac_err"; then
1309 echo "configure: failed program was:" >&5
1310 cat conftest.
$ac_ext >&5
1319 ac_cv_prog_CPP
="$CPP"
1321 CPP
="$ac_cv_prog_CPP"
1323 ac_cv_prog_CPP
="$CPP"
1325 echo "$ac_t""$CPP" 1>&6
1327 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1328 echo "configure:1329: checking for ANSI C header files" >&5
1329 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1330 echo $ac_n "(cached) $ac_c" 1>&6
1332 cat > conftest.
$ac_ext <<EOF
1333 #line 1334 "configure"
1334 #include "confdefs.h"
1340 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1341 { (eval echo configure
:1342: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1342 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1343 if test -z "$ac_err"; then
1345 ac_cv_header_stdc
=yes
1348 echo "configure: failed program was:" >&5
1349 cat conftest.
$ac_ext >&5
1351 ac_cv_header_stdc
=no
1355 if test $ac_cv_header_stdc = yes; then
1356 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1357 cat > conftest.
$ac_ext <<EOF
1358 #line 1359 "configure"
1359 #include "confdefs.h"
1362 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1363 egrep "memchr" >/dev
/null
2>&1; then
1367 ac_cv_header_stdc
=no
1373 if test $ac_cv_header_stdc = yes; then
1374 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1375 cat > conftest.
$ac_ext <<EOF
1376 #line 1377 "configure"
1377 #include "confdefs.h"
1380 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1381 egrep "free" >/dev
/null
2>&1; then
1385 ac_cv_header_stdc
=no
1391 if test $ac_cv_header_stdc = yes; then
1392 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1393 if test "$cross_compiling" = yes; then
1396 cat > conftest.
$ac_ext <<EOF
1397 #line 1398 "configure"
1398 #include "confdefs.h"
1400 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1401 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1402 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1403 int main () { int i; for (i = 0; i < 256; i++)
1404 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1408 if { (eval echo configure
:1409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1412 echo "configure: failed program was:" >&5
1413 cat conftest.
$ac_ext >&5
1415 ac_cv_header_stdc
=no
1423 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1424 if test $ac_cv_header_stdc = yes; then
1425 cat >> confdefs.h
<<\EOF
1426 #define STDC_HEADERS 1
1432 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
1434 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1435 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1436 echo "configure:1437: checking for $ac_hdr that defines DIR" >&5
1437 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1438 echo $ac_n "(cached) $ac_c" 1>&6
1440 cat > conftest.
$ac_ext <<EOF
1441 #line 1442 "configure"
1442 #include "confdefs.h"
1443 #include <sys/types.h>
1449 if { (eval echo configure
:1450: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1451 eval "ac_cv_header_dirent_$ac_safe=yes"
1453 echo "configure: failed program was:" >&5
1454 cat conftest.
$ac_ext >&5
1456 eval "ac_cv_header_dirent_$ac_safe=no"
1460 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1461 echo "$ac_t""yes" 1>&6
1462 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1463 cat >> confdefs.h
<<EOF
1464 #define $ac_tr_hdr 1
1466 ac_header_dirent
=$ac_hdr; break
1468 echo "$ac_t""no" 1>&6
1471 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1472 if test $ac_header_dirent = dirent.h
; then
1473 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1474 echo "configure:1475: checking for opendir in -ldir" >&5
1475 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1476 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1477 echo $ac_n "(cached) $ac_c" 1>&6
1479 ac_save_LIBS
="$LIBS"
1481 cat > conftest.
$ac_ext <<EOF
1482 #line 1483 "configure"
1483 #include "confdefs.h"
1484 /* Override any gcc2 internal prototype to avoid an error. */
1485 /* We use char because int might match the return type of a gcc2
1486 builtin and then its argument prototype would still apply. */
1493 if { (eval echo configure
:1494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1495 eval "ac_cv_lib_$ac_lib_var=yes"
1497 echo "configure: failed program was:" >&5
1498 cat conftest.
$ac_ext >&5
1500 eval "ac_cv_lib_$ac_lib_var=no"
1503 LIBS
="$ac_save_LIBS"
1506 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1507 echo "$ac_t""yes" 1>&6
1510 echo "$ac_t""no" 1>&6
1514 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1515 echo "configure:1516: checking for opendir in -lx" >&5
1516 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1517 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1518 echo $ac_n "(cached) $ac_c" 1>&6
1520 ac_save_LIBS
="$LIBS"
1522 cat > conftest.
$ac_ext <<EOF
1523 #line 1524 "configure"
1524 #include "confdefs.h"
1525 /* Override any gcc2 internal prototype to avoid an error. */
1526 /* We use char because int might match the return type of a gcc2
1527 builtin and then its argument prototype would still apply. */
1534 if { (eval echo configure
:1535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1536 eval "ac_cv_lib_$ac_lib_var=yes"
1538 echo "configure: failed program was:" >&5
1539 cat conftest.
$ac_ext >&5
1541 eval "ac_cv_lib_$ac_lib_var=no"
1544 LIBS
="$ac_save_LIBS"
1547 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1548 echo "$ac_t""yes" 1>&6
1551 echo "$ac_t""no" 1>&6
1556 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1557 echo "configure:1558: checking whether time.h and sys/time.h may both be included" >&5
1558 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1559 echo $ac_n "(cached) $ac_c" 1>&6
1561 cat > conftest.
$ac_ext <<EOF
1562 #line 1563 "configure"
1563 #include "confdefs.h"
1564 #include <sys/types.h>
1565 #include <sys/time.h>
1571 if { (eval echo configure
:1572: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1573 ac_cv_header_time
=yes
1575 echo "configure: failed program was:" >&5
1576 cat conftest.
$ac_ext >&5
1578 ac_cv_header_time
=no
1583 echo "$ac_t""$ac_cv_header_time" 1>&6
1584 if test $ac_cv_header_time = yes; then
1585 cat >> confdefs.h
<<\EOF
1586 #define TIME_WITH_SYS_TIME 1
1591 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1592 echo "configure:1593: checking for sys/wait.h that is POSIX.1 compatible" >&5
1593 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1594 echo $ac_n "(cached) $ac_c" 1>&6
1596 cat > conftest.
$ac_ext <<EOF
1597 #line 1598 "configure"
1598 #include "confdefs.h"
1599 #include <sys/types.h>
1600 #include <sys/wait.h>
1602 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1605 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1610 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1613 if { (eval echo configure
:1614: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1615 ac_cv_header_sys_wait_h
=yes
1617 echo "configure: failed program was:" >&5
1618 cat conftest.
$ac_ext >&5
1620 ac_cv_header_sys_wait_h
=no
1625 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1626 if test $ac_cv_header_sys_wait_h = yes; then
1627 cat >> confdefs.h
<<\EOF
1628 #define HAVE_SYS_WAIT_H 1
1633 for ac_hdr
in sys
/fcntl.h sys
/select.h fcntl.h sys
/time.h sys
/unistd.h
1635 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1636 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1637 echo "configure:1638: checking for $ac_hdr" >&5
1638 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1639 echo $ac_n "(cached) $ac_c" 1>&6
1641 cat > conftest.
$ac_ext <<EOF
1642 #line 1643 "configure"
1643 #include "confdefs.h"
1646 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1647 { (eval echo configure
:1648: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1648 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1649 if test -z "$ac_err"; then
1651 eval "ac_cv_header_$ac_safe=yes"
1654 echo "configure: failed program was:" >&5
1655 cat conftest.
$ac_ext >&5
1657 eval "ac_cv_header_$ac_safe=no"
1661 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1662 echo "$ac_t""yes" 1>&6
1663 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1664 cat >> confdefs.h
<<EOF
1665 #define $ac_tr_hdr 1
1669 echo "$ac_t""no" 1>&6
1673 for ac_hdr
in sys
/param.h ctype.h
1675 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1676 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1677 echo "configure:1678: checking for $ac_hdr" >&5
1678 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1679 echo $ac_n "(cached) $ac_c" 1>&6
1681 cat > conftest.
$ac_ext <<EOF
1682 #line 1683 "configure"
1683 #include "confdefs.h"
1686 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1687 { (eval echo configure
:1688: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1688 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1689 if test -z "$ac_err"; then
1691 eval "ac_cv_header_$ac_safe=yes"
1694 echo "configure: failed program was:" >&5
1695 cat conftest.
$ac_ext >&5
1697 eval "ac_cv_header_$ac_safe=no"
1701 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1702 echo "$ac_t""yes" 1>&6
1703 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1704 cat >> confdefs.h
<<EOF
1705 #define $ac_tr_hdr 1
1709 echo "$ac_t""no" 1>&6
1713 for ac_hdr
in unistd.h utime.h grp.h sys
/id.h limits.h memory.h net
/route.h net
/if.h
1715 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1716 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1717 echo "configure:1718: checking for $ac_hdr" >&5
1718 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1719 echo $ac_n "(cached) $ac_c" 1>&6
1721 cat > conftest.
$ac_ext <<EOF
1722 #line 1723 "configure"
1723 #include "confdefs.h"
1726 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1727 { (eval echo configure
:1728: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1728 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1729 if test -z "$ac_err"; then
1731 eval "ac_cv_header_$ac_safe=yes"
1734 echo "configure: failed program was:" >&5
1735 cat conftest.
$ac_ext >&5
1737 eval "ac_cv_header_$ac_safe=no"
1741 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1742 echo "$ac_t""yes" 1>&6
1743 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1744 cat >> confdefs.h
<<EOF
1745 #define $ac_tr_hdr 1
1749 echo "$ac_t""no" 1>&6
1753 for ac_hdr
in compat.h rpc
/rpc.h rpcsvc
/yp_prot.h rpcsvc
/ypclnt.h sys
/param.h ctype.h
1755 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1756 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1757 echo "configure:1758: checking for $ac_hdr" >&5
1758 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1759 echo $ac_n "(cached) $ac_c" 1>&6
1761 cat > conftest.
$ac_ext <<EOF
1762 #line 1763 "configure"
1763 #include "confdefs.h"
1766 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1767 { (eval echo configure
:1768: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1768 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1769 if test -z "$ac_err"; then
1771 eval "ac_cv_header_$ac_safe=yes"
1774 echo "configure: failed program was:" >&5
1775 cat conftest.
$ac_ext >&5
1777 eval "ac_cv_header_$ac_safe=no"
1781 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1782 echo "$ac_t""yes" 1>&6
1783 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1784 cat >> confdefs.h
<<EOF
1785 #define $ac_tr_hdr 1
1789 echo "$ac_t""no" 1>&6
1793 for ac_hdr
in sys
/wait.h sys
/resource.h sys
/ioctl.h sys
/mode.h sys
/mman.h
1795 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1796 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1797 echo "configure:1798: checking for $ac_hdr" >&5
1798 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1799 echo $ac_n "(cached) $ac_c" 1>&6
1801 cat > conftest.
$ac_ext <<EOF
1802 #line 1803 "configure"
1803 #include "confdefs.h"
1806 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1807 { (eval echo configure
:1808: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1808 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1809 if test -z "$ac_err"; then
1811 eval "ac_cv_header_$ac_safe=yes"
1814 echo "configure: failed program was:" >&5
1815 cat conftest.
$ac_ext >&5
1817 eval "ac_cv_header_$ac_safe=no"
1821 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1822 echo "$ac_t""yes" 1>&6
1823 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1824 cat >> confdefs.h
<<EOF
1825 #define $ac_tr_hdr 1
1829 echo "$ac_t""no" 1>&6
1833 for ac_hdr
in sys
/filio.h string.h
strings.h stdlib.h sys
/socket.h sys
/un.h
1835 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1836 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1837 echo "configure:1838: checking for $ac_hdr" >&5
1838 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1839 echo $ac_n "(cached) $ac_c" 1>&6
1841 cat > conftest.
$ac_ext <<EOF
1842 #line 1843 "configure"
1843 #include "confdefs.h"
1846 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1847 { (eval echo configure
:1848: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1848 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1849 if test -z "$ac_err"; then
1851 eval "ac_cv_header_$ac_safe=yes"
1854 echo "configure: failed program was:" >&5
1855 cat conftest.
$ac_ext >&5
1857 eval "ac_cv_header_$ac_safe=no"
1861 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1862 echo "$ac_t""yes" 1>&6
1863 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1864 cat >> confdefs.h
<<EOF
1865 #define $ac_tr_hdr 1
1869 echo "$ac_t""no" 1>&6
1873 for ac_hdr
in sys
/mount.h sys
/vfs.h sys
/fs
/s5param.h sys
/filsys.h termios.h
1875 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1876 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1877 echo "configure:1878: checking for $ac_hdr" >&5
1878 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1879 echo $ac_n "(cached) $ac_c" 1>&6
1881 cat > conftest.
$ac_ext <<EOF
1882 #line 1883 "configure"
1883 #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
1891 eval "ac_cv_header_$ac_safe=yes"
1894 echo "configure: failed program was:" >&5
1895 cat conftest.
$ac_ext >&5
1897 eval "ac_cv_header_$ac_safe=no"
1901 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1902 echo "$ac_t""yes" 1>&6
1903 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1904 cat >> confdefs.h
<<EOF
1905 #define $ac_tr_hdr 1
1909 echo "$ac_t""no" 1>&6
1913 for ac_hdr
in sys
/statfs.h sys
/dustat.h sys
/statvfs.h stdarg.h sys
/sockio.h
1915 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1916 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1917 echo "configure:1918: checking for $ac_hdr" >&5
1918 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1919 echo $ac_n "(cached) $ac_c" 1>&6
1921 cat > conftest.
$ac_ext <<EOF
1922 #line 1923 "configure"
1923 #include "confdefs.h"
1926 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1927 { (eval echo configure
:1928: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1928 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1929 if test -z "$ac_err"; then
1931 eval "ac_cv_header_$ac_safe=yes"
1934 echo "configure: failed program was:" >&5
1935 cat conftest.
$ac_ext >&5
1937 eval "ac_cv_header_$ac_safe=no"
1941 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1942 echo "$ac_t""yes" 1>&6
1943 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1944 cat >> confdefs.h
<<EOF
1945 #define $ac_tr_hdr 1
1949 echo "$ac_t""no" 1>&6
1953 for ac_hdr
in shadow.h netinet
/tcp.h sys
/security.h security
/pam_appl.h
1955 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1956 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1957 echo "configure:1958: checking for $ac_hdr" >&5
1958 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1959 echo $ac_n "(cached) $ac_c" 1>&6
1961 cat > conftest.
$ac_ext <<EOF
1962 #line 1963 "configure"
1963 #include "confdefs.h"
1966 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1967 { (eval echo configure
:1968: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1968 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1969 if test -z "$ac_err"; then
1971 eval "ac_cv_header_$ac_safe=yes"
1974 echo "configure: failed program was:" >&5
1975 cat conftest.
$ac_ext >&5
1977 eval "ac_cv_header_$ac_safe=no"
1981 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1982 echo "$ac_t""yes" 1>&6
1983 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1984 cat >> confdefs.h
<<EOF
1985 #define $ac_tr_hdr 1
1989 echo "$ac_t""no" 1>&6
1993 for ac_hdr
in stropts.h poll.h readline.h
history.h readline
/readline.h
1995 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1996 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1997 echo "configure:1998: checking for $ac_hdr" >&5
1998 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1999 echo $ac_n "(cached) $ac_c" 1>&6
2001 cat > conftest.
$ac_ext <<EOF
2002 #line 2003 "configure"
2003 #include "confdefs.h"
2006 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2007 { (eval echo configure
:2008: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2008 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2009 if test -z "$ac_err"; then
2011 eval "ac_cv_header_$ac_safe=yes"
2014 echo "configure: failed program was:" >&5
2015 cat conftest.
$ac_ext >&5
2017 eval "ac_cv_header_$ac_safe=no"
2021 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2022 echo "$ac_t""yes" 1>&6
2023 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2024 cat >> confdefs.h
<<EOF
2025 #define $ac_tr_hdr 1
2029 echo "$ac_t""no" 1>&6
2033 for ac_hdr
in readline
/history.h sys
/capability.h syscall.h sys
/syscall.h
2035 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2036 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2037 echo "configure:2038: checking for $ac_hdr" >&5
2038 if eval "test \"`echo '$''{'ac_cv_header_$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"
2046 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2047 { (eval echo configure
:2048: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2048 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2049 if test -z "$ac_err"; then
2051 eval "ac_cv_header_$ac_safe=yes"
2054 echo "configure: failed program was:" >&5
2055 cat conftest.
$ac_ext >&5
2057 eval "ac_cv_header_$ac_safe=no"
2061 if eval "test \"`echo '$ac_cv_header_'$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
2069 echo "$ac_t""no" 1>&6
2073 for ac_hdr
in sys
/acl.h sys
/cdefs.h glob.h mysql.h
2075 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2076 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2077 echo "configure:2078: checking for $ac_hdr" >&5
2078 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2079 echo $ac_n "(cached) $ac_c" 1>&6
2081 cat > conftest.
$ac_ext <<EOF
2082 #line 2083 "configure"
2083 #include "confdefs.h"
2086 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2087 { (eval echo configure
:2088: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2088 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2089 if test -z "$ac_err"; then
2091 eval "ac_cv_header_$ac_safe=yes"
2094 echo "configure: failed program was:" >&5
2095 cat conftest.
$ac_ext >&5
2097 eval "ac_cv_header_$ac_safe=no"
2101 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2102 echo "$ac_t""yes" 1>&6
2103 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2104 cat >> confdefs.h
<<EOF
2105 #define $ac_tr_hdr 1
2109 echo "$ac_t""no" 1>&6
2114 echo $ac_n "checking size of int""... $ac_c" 1>&6
2115 echo "configure:2116: checking size of int" >&5
2116 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2117 echo $ac_n "(cached) $ac_c" 1>&6
2119 if test "$cross_compiling" = yes; then
2120 ac_cv_sizeof_int
=cross
2122 cat > conftest.
$ac_ext <<EOF
2123 #line 2124 "configure"
2124 #include "confdefs.h"
2128 FILE *f=fopen("conftestval", "w");
2130 fprintf(f, "%d\n", sizeof(int));
2134 if { (eval echo configure
:2135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2136 ac_cv_sizeof_int
=`cat conftestval`
2138 echo "configure: failed program was:" >&5
2139 cat conftest.
$ac_ext >&5
2147 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2148 cat >> confdefs.h
<<EOF
2149 #define SIZEOF_INT $ac_cv_sizeof_int
2153 echo $ac_n "checking size of long""... $ac_c" 1>&6
2154 echo "configure:2155: checking size of long" >&5
2155 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2156 echo $ac_n "(cached) $ac_c" 1>&6
2158 if test "$cross_compiling" = yes; then
2159 ac_cv_sizeof_long
=cross
2161 cat > conftest.
$ac_ext <<EOF
2162 #line 2163 "configure"
2163 #include "confdefs.h"
2167 FILE *f=fopen("conftestval", "w");
2169 fprintf(f, "%d\n", sizeof(long));
2173 if { (eval echo configure
:2174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2175 ac_cv_sizeof_long
=`cat conftestval`
2177 echo "configure: failed program was:" >&5
2178 cat conftest.
$ac_ext >&5
2186 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2187 cat >> confdefs.h
<<EOF
2188 #define SIZEOF_LONG $ac_cv_sizeof_long
2192 echo $ac_n "checking size of short""... $ac_c" 1>&6
2193 echo "configure:2194: checking size of short" >&5
2194 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2195 echo $ac_n "(cached) $ac_c" 1>&6
2197 if test "$cross_compiling" = yes; then
2198 ac_cv_sizeof_short
=cross
2200 cat > conftest.
$ac_ext <<EOF
2201 #line 2202 "configure"
2202 #include "confdefs.h"
2206 FILE *f=fopen("conftestval", "w");
2208 fprintf(f, "%d\n", sizeof(short));
2212 if { (eval echo configure
:2213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2214 ac_cv_sizeof_short
=`cat conftestval`
2216 echo "configure: failed program was:" >&5
2217 cat conftest.
$ac_ext >&5
2219 ac_cv_sizeof_short
=0
2225 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2226 cat >> confdefs.h
<<EOF
2227 #define SIZEOF_SHORT $ac_cv_sizeof_short
2232 echo $ac_n "checking for working const""... $ac_c" 1>&6
2233 echo "configure:2234: checking for working const" >&5
2234 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2235 echo $ac_n "(cached) $ac_c" 1>&6
2237 cat > conftest.
$ac_ext <<EOF
2238 #line 2239 "configure"
2239 #include "confdefs.h"
2243 /* Ultrix mips cc rejects this. */
2244 typedef int charset[2]; const charset x;
2245 /* SunOS 4.1.1 cc rejects this. */
2246 char const *const *ccp;
2248 /* NEC SVR4.0.2 mips cc rejects this. */
2249 struct point {int x, y;};
2250 static struct point const zero = {0,0};
2251 /* AIX XL C 1.02.0.0 rejects this.
2252 It does not let you subtract one const X* pointer from another in an arm
2253 of an if-expression whose if-part is not a constant expression */
2254 const char *g = "string";
2255 ccp = &g + (g ? g-g : 0);
2256 /* HPUX 7.0 cc rejects these. */
2259 ccp = (char const *const *) p;
2260 { /* SCO 3.2v4 cc rejects this. */
2262 char const *s = 0 ? (char *) 0 : (char const *) 0;
2266 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2268 const int *foo = &x[0];
2271 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2272 typedef const int *iptr;
2276 { /* AIX XL C 1.02.0.0 rejects this saying
2277 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2278 struct s { int j; const int *ap[3]; };
2279 struct s *b; b->j = 5;
2281 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2287 if { (eval echo configure
:2288: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2291 echo "configure: failed program was:" >&5
2292 cat conftest.
$ac_ext >&5
2299 echo "$ac_t""$ac_cv_c_const" 1>&6
2300 if test $ac_cv_c_const = no
; then
2301 cat >> confdefs.h
<<\EOF
2307 echo $ac_n "checking for inline""... $ac_c" 1>&6
2308 echo "configure:2309: checking for inline" >&5
2309 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2310 echo $ac_n "(cached) $ac_c" 1>&6
2313 for ac_kw
in inline __inline__ __inline
; do
2314 cat > conftest.
$ac_ext <<EOF
2315 #line 2316 "configure"
2316 #include "confdefs.h"
2322 if { (eval echo configure
:2323: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2324 ac_cv_c_inline
=$ac_kw; break
2326 echo "configure: failed program was:" >&5
2327 cat conftest.
$ac_ext >&5
2334 echo "$ac_t""$ac_cv_c_inline" 1>&6
2335 case "$ac_cv_c_inline" in
2337 no
) cat >> confdefs.h
<<\EOF
2341 *) cat >> confdefs.h
<<EOF
2342 #define inline $ac_cv_c_inline
2347 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
2348 echo "configure:2349: checking whether byte ordering is bigendian" >&5
2349 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
2350 echo $ac_n "(cached) $ac_c" 1>&6
2352 ac_cv_c_bigendian
=unknown
2353 # See if sys/param.h defines the BYTE_ORDER macro.
2354 cat > conftest.
$ac_ext <<EOF
2355 #line 2356 "configure"
2356 #include "confdefs.h"
2357 #include <sys/types.h>
2358 #include <sys/param.h>
2361 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2366 if { (eval echo configure
:2367: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2368 # It does; now see whether it defined to BIG_ENDIAN or not.
2369 cat > conftest.
$ac_ext <<EOF
2370 #line 2371 "configure"
2371 #include "confdefs.h"
2372 #include <sys/types.h>
2373 #include <sys/param.h>
2376 #if BYTE_ORDER != BIG_ENDIAN
2381 if { (eval echo configure
:2382: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2383 ac_cv_c_bigendian
=yes
2385 echo "configure: failed program was:" >&5
2386 cat conftest.
$ac_ext >&5
2388 ac_cv_c_bigendian
=no
2392 echo "configure: failed program was:" >&5
2393 cat conftest.
$ac_ext >&5
2396 if test $ac_cv_c_bigendian = unknown
; then
2397 if test "$cross_compiling" = yes; then
2398 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2400 cat > conftest.
$ac_ext <<EOF
2401 #line 2402 "configure"
2402 #include "confdefs.h"
2404 /* Are we little or big endian? From Harbison&Steele. */
2408 char c[sizeof (long)];
2411 exit (u.c[sizeof (long) - 1] == 1);
2414 if { (eval echo configure
:2415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2416 ac_cv_c_bigendian
=no
2418 echo "configure: failed program was:" >&5
2419 cat conftest.
$ac_ext >&5
2421 ac_cv_c_bigendian
=yes
2429 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
2430 if test $ac_cv_c_bigendian = yes; then
2431 cat >> confdefs.h
<<\EOF
2432 #define WORDS_BIGENDIAN 1
2437 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
2438 echo "configure:2439: checking whether char is unsigned" >&5
2439 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
2440 echo $ac_n "(cached) $ac_c" 1>&6
2442 if test "$GCC" = yes; then
2443 # GCC predefines this symbol on systems where it applies.
2444 cat > conftest.
$ac_ext <<EOF
2445 #line 2446 "configure"
2446 #include "confdefs.h"
2447 #ifdef __CHAR_UNSIGNED__
2452 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2453 egrep "yes" >/dev
/null
2>&1; then
2455 ac_cv_c_char_unsigned
=yes
2458 ac_cv_c_char_unsigned
=no
2463 if test "$cross_compiling" = yes; then
2464 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2466 cat > conftest.
$ac_ext <<EOF
2467 #line 2468 "configure"
2468 #include "confdefs.h"
2469 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
2470 #if !defined(__STDC__) || __STDC__ != 1
2474 volatile char c = 255; exit(c < 0);
2477 if { (eval echo configure
:2478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2479 ac_cv_c_char_unsigned
=yes
2481 echo "configure: failed program was:" >&5
2482 cat conftest.
$ac_ext >&5
2484 ac_cv_c_char_unsigned
=no
2492 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
2493 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
2494 cat >> confdefs.h
<<\EOF
2495 #define __CHAR_UNSIGNED__ 1
2501 # Check whether --enable-static or --disable-static was given.
2502 if test "${enable_static+set}" = set; then
2503 enableval
="$enable_static"
2504 p
=${PACKAGE-default}
2505 case "$enableval" in
2506 yes) enable_static
=yes ;;
2507 no
) enable_static
=no
;;
2510 # Look at the argument we got. We use all the common list separators.
2511 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
2512 for pkg
in $enableval; do
2513 if test "X$pkg" = "X$p"; then
2524 # Check whether --enable-shared or --disable-shared was given.
2525 if test "${enable_shared+set}" = set; then
2526 enableval
="$enable_shared"
2527 p
=${PACKAGE-default}
2528 case "$enableval" in
2529 yes) enable_shared
=yes ;;
2530 no
) enable_shared
=no
;;
2533 # Look at the argument we got. We use all the common list separators.
2534 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
2535 for pkg
in $enableval; do
2536 if test "X$pkg" = "X$p"; then
2547 # Check whether --enable-fast-install or --disable-fast-install was given.
2548 if test "${enable_fast_install+set}" = set; then
2549 enableval
="$enable_fast_install"
2550 p
=${PACKAGE-default}
2551 case "$enableval" in
2552 yes) enable_fast_install
=yes ;;
2553 no
) enable_fast_install
=no
;;
2555 enable_fast_install
=no
2556 # Look at the argument we got. We use all the common list separators.
2557 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
2558 for pkg
in $enableval; do
2559 if test "X$pkg" = "X$p"; then
2560 enable_fast_install
=yes
2567 enable_fast_install
=yes
2570 # Extract the first word of "ranlib", so it can be a program name with args.
2571 set dummy ranlib
; ac_word
=$2
2572 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2573 echo "configure:2574: checking for $ac_word" >&5
2574 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2575 echo $ac_n "(cached) $ac_c" 1>&6
2577 if test -n "$RANLIB"; then
2578 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2580 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2582 for ac_dir
in $ac_dummy; do
2583 test -z "$ac_dir" && ac_dir
=.
2584 if test -f $ac_dir/$ac_word; then
2585 ac_cv_prog_RANLIB
="ranlib"
2590 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
2593 RANLIB
="$ac_cv_prog_RANLIB"
2594 if test -n "$RANLIB"; then
2595 echo "$ac_t""$RANLIB" 1>&6
2597 echo "$ac_t""no" 1>&6
2600 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2601 if test "${with_gnu_ld+set}" = set; then
2602 withval
="$with_gnu_ld"
2603 test "$withval" = no || with_gnu_ld
=yes
2609 if test "$ac_cv_prog_gcc" = yes; then
2610 # Check if gcc -print-prog-name=ld gives a path.
2611 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
2612 echo "configure:2613: checking for ld used by GCC" >&5
2613 ac_prog
=`($CC -print-prog-name=ld) 2>&5`
2615 # Accept absolute paths.
2616 [\\/]* |
[A-Za-z
]:[\\/]*)
2617 re_direlt
='/[^/][^/]*/\.\./'
2618 # Canonicalize the path of ld
2619 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
2620 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
2621 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
2623 test -z "$LD" && LD
="$ac_prog"
2626 # If it fails, then pretend we aren't using GCC.
2630 # If it is relative, then search for the first ld in PATH.
2634 elif test "$with_gnu_ld" = yes; then
2635 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
2636 echo "configure:2637: checking for GNU ld" >&5
2638 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
2639 echo "configure:2640: checking for non-GNU ld" >&5
2641 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
2642 echo $ac_n "(cached) $ac_c" 1>&6
2644 if test -z "$LD"; then
2645 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2646 for ac_dir
in $PATH; do
2647 test -z "$ac_dir" && ac_dir
=.
2648 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
2649 ac_cv_path_LD
="$ac_dir/$ac_prog"
2650 # Check to see if the program is GNU ld. I'd rather use --version,
2651 # but apparently some GNU ld's only accept -v.
2652 # Break only if it was the GNU/non-GNU ld that we prefer.
2653 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
2654 test "$with_gnu_ld" != no
&& break
2656 test "$with_gnu_ld" != yes && break
2662 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
2667 if test -n "$LD"; then
2668 echo "$ac_t""$LD" 1>&6
2670 echo "$ac_t""no" 1>&6
2672 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
2673 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
2674 echo "configure:2675: checking if the linker ($LD) is GNU ld" >&5
2675 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
2676 echo $ac_n "(cached) $ac_c" 1>&6
2678 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2679 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
2680 ac_cv_prog_gnu_ld
=yes
2682 ac_cv_prog_gnu_ld
=no
2686 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
2689 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
2690 echo "configure:2691: checking for BSD-compatible nm" >&5
2691 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
2692 echo $ac_n "(cached) $ac_c" 1>&6
2694 if test -n "$NM"; then
2695 # Let the user override the test.
2698 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2699 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
2700 test -z "$ac_dir" && ac_dir
=.
2701 if test -f $ac_dir/nm ||
test -f $ac_dir/nm
$ac_exeext ; then
2702 # Check to see if the nm accepts a BSD-compat flag.
2703 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2704 # nm: unknown option "B" ignored
2705 if ($ac_dir/nm
-B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
2706 ac_cv_path_NM
="$ac_dir/nm -B"
2708 elif ($ac_dir/nm
-p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
2709 ac_cv_path_NM
="$ac_dir/nm -p"
2712 ac_cv_path_NM
=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
2713 continue # so that we can try to find one that supports BSD flags
2718 test -z "$ac_cv_path_NM" && ac_cv_path_NM
=nm
2723 echo "$ac_t""$NM" 1>&6
2725 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2726 echo "configure:2727: checking whether ln -s works" >&5
2727 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2728 echo $ac_n "(cached) $ac_c" 1>&6
2731 if ln -s X conftestdata
2>/dev
/null
2734 ac_cv_prog_LN_S
="ln -s"
2739 LN_S
="$ac_cv_prog_LN_S"
2740 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2741 echo "$ac_t""yes" 1>&6
2743 echo "$ac_t""no" 1>&6
2748 NONE
) lt_target
="$host" ;;
2749 *) lt_target
="$target" ;;
2752 # Check for any special flags to pass to ltconfig.
2753 libtool_flags
="--cache-file=$cache_file"
2754 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
2755 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
2756 test "$enable_fast_install" = no
&& libtool_flags
="$libtool_flags --disable-fast-install"
2757 test "$ac_cv_prog_gcc" = yes && libtool_flags
="$libtool_flags --with-gcc"
2758 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
2761 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2762 if test "${enable_libtool_lock+set}" = set; then
2763 enableval
="$enable_libtool_lock"
2767 test "x$enable_libtool_lock" = xno
&& libtool_flags
="$libtool_flags --disable-lock"
2768 test x
"$silent" = xyes
&& libtool_flags
="$libtool_flags --silent"
2770 # Some flags need to be propagated to the compiler or linker for good
2772 case "$lt_target" in
2774 # Find out which ABI we are using.
2775 echo '#line 2776 "configure"' > conftest.
$ac_ext
2776 if { (eval echo configure
:2777: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2777 case "`/usr/bin/file conftest.o`" in
2793 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2794 SAVE_CFLAGS
="$CFLAGS"
2795 CFLAGS
="$CFLAGS -belf"
2796 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2797 echo "configure:2798: checking whether the C compiler needs -belf" >&5
2798 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2799 echo $ac_n "(cached) $ac_c" 1>&6
2801 cat > conftest.
$ac_ext <<EOF
2802 #line 2803 "configure"
2803 #include "confdefs.h"
2809 if { (eval echo configure
:2810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2811 lt_cv_cc_needs_belf
=yes
2813 echo "configure: failed program was:" >&5
2814 cat conftest.
$ac_ext >&5
2816 lt_cv_cc_needs_belf
=no
2821 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2822 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
2823 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2824 CFLAGS
="$SAVE_CFLAGS"
2832 # Save cache, so that ltconfig can load it
2833 cat > confcache
<<\EOF
2834 # This file is a shell script that caches the results of configure
2835 # tests run on this system so they can be shared between configure
2836 # scripts and configure runs. It is not useful on other systems.
2837 # If it contains results you don't want to keep, you may remove or edit it.
2839 # By default, configure uses ./config.cache as the cache file,
2840 # creating it if it does not exist already. You can give configure
2841 # the --cache-file=FILE option to use a different cache file; that is
2842 # what configure does when it calls configure scripts in
2843 # subdirectories, so they share the cache.
2844 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2845 # config.status only pays attention to the cache file if you give it the
2846 # --recheck option to rerun configure.
2849 # The following way of writing the cache mishandles newlines in values,
2850 # but we know of no workaround that is simple, portable, and efficient.
2851 # So, don't put newlines in cache variables' values.
2852 # Ultrix sh set writes to stderr and can't be redirected directly,
2853 # and sets the high bit in the cache file unless we assign to the vars.
2855 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2857 # `set' does not quote correctly, so add quotes (double-quote substitution
2858 # turns \\\\ into \\, and sed turns \\ into \).
2860 -e "s/'/'\\\\''/g" \
2861 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2864 # `set' quotes correctly as required by POSIX, so do not add quotes.
2865 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2868 if cmp -s $cache_file confcache
; then
2871 if test -w $cache_file; then
2872 echo "updating cache $cache_file"
2873 cat confcache
> $cache_file
2875 echo "not updating unwritable cache $cache_file"
2881 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2882 CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
2883 LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
2884 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" \
2885 DLLTOOL
="$DLLTOOL" AS
="$AS" OBJDUMP
="$OBJDUMP" \
2886 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
2887 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh
$lt_target \
2888 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2890 # Reload cache, that may have been modified by ltconfig
2891 if test -r "$cache_file"; then
2892 echo "loading cache $cache_file"
2895 echo "creating cache $cache_file"
2900 # This can be used to rebuild libtool when needed
2901 LIBTOOL_DEPS
="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
2903 # Always use our own libtool.
2904 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
2906 # Redirect the config.log output again, so that the ltconfig log is not
2907 # clobbered by the next message.
2908 exec 5>>.
/config.log
2912 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2913 echo "configure:2914: checking return type of signal handlers" >&5
2914 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2915 echo $ac_n "(cached) $ac_c" 1>&6
2917 cat > conftest.
$ac_ext <<EOF
2918 #line 2919 "configure"
2919 #include "confdefs.h"
2920 #include <sys/types.h>
2926 extern "C" void (*signal (int, void (*)(int)))(int);
2928 void (*signal ()) ();
2935 if { (eval echo configure
:2936: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2937 ac_cv_type_signal
=void
2939 echo "configure: failed program was:" >&5
2940 cat conftest.
$ac_ext >&5
2942 ac_cv_type_signal
=int
2947 echo "$ac_t""$ac_cv_type_signal" 1>&6
2948 cat >> confdefs.h
<<EOF
2949 #define RETSIGTYPE $ac_cv_type_signal
2953 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2954 echo "configure:2955: checking for uid_t in sys/types.h" >&5
2955 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
2956 echo $ac_n "(cached) $ac_c" 1>&6
2958 cat > conftest.
$ac_ext <<EOF
2959 #line 2960 "configure"
2960 #include "confdefs.h"
2961 #include <sys/types.h>
2963 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2964 egrep "uid_t" >/dev
/null
2>&1; then
2966 ac_cv_type_uid_t
=yes
2975 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
2976 if test $ac_cv_type_uid_t = no
; then
2977 cat >> confdefs.h
<<\EOF
2981 cat >> confdefs.h
<<\EOF
2987 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
2988 echo "configure:2989: checking for mode_t" >&5
2989 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
2990 echo $ac_n "(cached) $ac_c" 1>&6
2992 cat > conftest.
$ac_ext <<EOF
2993 #line 2994 "configure"
2994 #include "confdefs.h"
2995 #include <sys/types.h>
3001 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3002 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3004 ac_cv_type_mode_t
=yes
3007 ac_cv_type_mode_t
=no
3012 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3013 if test $ac_cv_type_mode_t = no
; then
3014 cat >> confdefs.h
<<\EOF
3020 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3021 echo "configure:3022: checking for off_t" >&5
3022 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3023 echo $ac_n "(cached) $ac_c" 1>&6
3025 cat > conftest.
$ac_ext <<EOF
3026 #line 3027 "configure"
3027 #include "confdefs.h"
3028 #include <sys/types.h>
3034 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3035 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3037 ac_cv_type_off_t
=yes
3045 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3046 if test $ac_cv_type_off_t = no
; then
3047 cat >> confdefs.h
<<\EOF
3053 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3054 echo "configure:3055: checking for size_t" >&5
3055 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3056 echo $ac_n "(cached) $ac_c" 1>&6
3058 cat > conftest.
$ac_ext <<EOF
3059 #line 3060 "configure"
3060 #include "confdefs.h"
3061 #include <sys/types.h>
3067 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3068 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3070 ac_cv_type_size_t
=yes
3073 ac_cv_type_size_t
=no
3078 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3079 if test $ac_cv_type_size_t = no
; then
3080 cat >> confdefs.h
<<\EOF
3081 #define size_t unsigned
3086 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3087 echo "configure:3088: checking for pid_t" >&5
3088 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3089 echo $ac_n "(cached) $ac_c" 1>&6
3091 cat > conftest.
$ac_ext <<EOF
3092 #line 3093 "configure"
3093 #include "confdefs.h"
3094 #include <sys/types.h>
3100 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3101 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3103 ac_cv_type_pid_t
=yes
3111 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3112 if test $ac_cv_type_pid_t = no
; then
3113 cat >> confdefs.h
<<\EOF
3119 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3120 echo "configure:3121: checking for st_rdev in struct stat" >&5
3121 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3122 echo $ac_n "(cached) $ac_c" 1>&6
3124 cat > conftest.
$ac_ext <<EOF
3125 #line 3126 "configure"
3126 #include "confdefs.h"
3127 #include <sys/types.h>
3128 #include <sys/stat.h>
3130 struct stat s; s.st_rdev;
3133 if { (eval echo configure
:3134: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3135 ac_cv_struct_st_rdev
=yes
3137 echo "configure: failed program was:" >&5
3138 cat conftest.
$ac_ext >&5
3140 ac_cv_struct_st_rdev
=no
3145 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3146 if test $ac_cv_struct_st_rdev = yes; then
3147 cat >> confdefs.h
<<\EOF
3148 #define HAVE_ST_RDEV 1
3153 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
3154 echo "configure:3155: checking for d_off in dirent" >&5
3155 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
3156 echo $ac_n "(cached) $ac_c" 1>&6
3158 cat > conftest.
$ac_ext <<EOF
3159 #line 3160 "configure"
3160 #include "confdefs.h"
3163 #include <sys/types.h>
3166 struct dirent d; d.d_off;
3169 if { (eval echo configure
:3170: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3171 ac_cv_dirent_d_off
=yes
3173 echo "configure: failed program was:" >&5
3174 cat conftest.
$ac_ext >&5
3176 ac_cv_dirent_d_off
=no
3181 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
3182 if test $ac_cv_dirent_d_off = yes; then
3183 cat >> confdefs.h
<<\EOF
3184 #define HAVE_DIRENT_D_OFF 1
3189 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
3190 echo "configure:3191: checking for ino_t" >&5
3191 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
3192 echo $ac_n "(cached) $ac_c" 1>&6
3194 cat > conftest.
$ac_ext <<EOF
3195 #line 3196 "configure"
3196 #include "confdefs.h"
3197 #include <sys/types.h>
3203 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3204 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3206 ac_cv_type_ino_t
=yes
3214 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
3215 if test $ac_cv_type_ino_t = no
; then
3216 cat >> confdefs.h
<<\EOF
3217 #define ino_t unsigned
3222 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3223 echo "configure:3224: checking for loff_t" >&5
3224 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
3225 echo $ac_n "(cached) $ac_c" 1>&6
3227 cat > conftest.
$ac_ext <<EOF
3228 #line 3229 "configure"
3229 #include "confdefs.h"
3230 #include <sys/types.h>
3236 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3237 egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3239 ac_cv_type_loff_t
=yes
3242 ac_cv_type_loff_t
=no
3247 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
3248 if test $ac_cv_type_loff_t = no
; then
3249 cat >> confdefs.h
<<\EOF
3250 #define loff_t off_t
3255 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
3256 echo "configure:3257: checking for offset_t" >&5
3257 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
3258 echo $ac_n "(cached) $ac_c" 1>&6
3260 cat > conftest.
$ac_ext <<EOF
3261 #line 3262 "configure"
3262 #include "confdefs.h"
3263 #include <sys/types.h>
3269 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3270 egrep "(^|[^a-zA-Z_0-9])offset_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3272 ac_cv_type_offset_t
=yes
3275 ac_cv_type_offset_t
=no
3280 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
3281 if test $ac_cv_type_offset_t = no
; then
3282 cat >> confdefs.h
<<\EOF
3283 #define offset_t loff_t
3288 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3289 echo "configure:3290: checking for ssize_t" >&5
3290 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3291 echo $ac_n "(cached) $ac_c" 1>&6
3293 cat > conftest.
$ac_ext <<EOF
3294 #line 3295 "configure"
3295 #include "confdefs.h"
3296 #include <sys/types.h>
3302 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3303 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3305 ac_cv_type_ssize_t
=yes
3308 ac_cv_type_ssize_t
=no
3313 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3314 if test $ac_cv_type_ssize_t = no
; then
3315 cat >> confdefs.h
<<\EOF
3322 echo $ac_n "checking for errno in errno.h""... $ac_c" 1>&6
3323 echo "configure:3324: checking for errno in errno.h" >&5
3324 if eval "test \"`echo '$''{'samba_cv_errno'+set}'`\" = set"; then
3325 echo $ac_n "(cached) $ac_c" 1>&6
3328 cat > conftest.
$ac_ext <<EOF
3329 #line 3330 "configure"
3330 #include "confdefs.h"
3336 if { (eval echo configure
:3337: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3340 echo "configure: failed program was:" >&5
3341 cat conftest.
$ac_ext >&5
3343 samba_cv_have_errno_decl
=no
3348 echo "$ac_t""$samba_cv_errno" 1>&6
3349 if test x
"$samba_cv_errno" = x
"yes"; then
3350 cat >> confdefs.h
<<\EOF
3351 #define HAVE_ERRNO_DECL 1
3356 # stupid glibc has the functions but no declaration. grrrr.
3357 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
3358 echo "configure:3359: checking for setresuid declaration" >&5
3359 if eval "test \"`echo '$''{'samba_cv_have_setresuid_decl'+set}'`\" = set"; then
3360 echo $ac_n "(cached) $ac_c" 1>&6
3363 cat > conftest.
$ac_ext <<EOF
3364 #line 3365 "configure"
3365 #include "confdefs.h"
3368 int i = (int)setresuid
3371 if { (eval echo configure
:3372: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3373 samba_cv_have_setresuid_decl
=yes
3375 echo "configure: failed program was:" >&5
3376 cat conftest.
$ac_ext >&5
3378 samba_cv_have_setresuid_decl
=no
3383 echo "$ac_t""$samba_cv_have_setresuid_decl" 1>&6
3384 if test x
"$samba_cv_have_setresuid_decl" = x
"yes"; then
3385 cat >> confdefs.h
<<\EOF
3386 #define HAVE_SETRESUID_DECL 1
3391 # stupid glibc has the functions but no declaration. grrrr.
3392 echo $ac_n "checking for crypt declaration""... $ac_c" 1>&6
3393 echo "configure:3394: checking for crypt declaration" >&5
3394 if eval "test \"`echo '$''{'samba_cv_have_crypt_decl'+set}'`\" = set"; then
3395 echo $ac_n "(cached) $ac_c" 1>&6
3398 cat > conftest.
$ac_ext <<EOF
3399 #line 3400 "configure"
3400 #include "confdefs.h"
3406 if { (eval echo configure
:3407: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3408 samba_cv_have_crypt_decl
=yes
3410 echo "configure: failed program was:" >&5
3411 cat conftest.
$ac_ext >&5
3413 samba_cv_have_crypt_decl
=no
3418 echo "$ac_t""$samba_cv_have_crypt_decl" 1>&6
3419 if test x
"$samba_cv_have_crypt_decl" = x
"yes"; then
3420 cat >> confdefs.h
<<\EOF
3421 #define HAVE_CRYPT_DECL 1
3426 # and glibc has setresuid under linux but the function does
3427 # nothing until kernel 2.1.44! very dumb.
3428 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
3429 echo "configure:3430: checking for real setresuid" >&5
3430 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
3431 echo $ac_n "(cached) $ac_c" 1>&6
3434 if test "$cross_compiling" = yes; then
3435 samba_cv_have_setresuid
=cross
3437 cat > conftest.
$ac_ext <<EOF
3438 #line 3439 "configure"
3439 #include "confdefs.h"
3441 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
3443 if { (eval echo configure
:3444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3445 samba_cv_have_setresuid
=yes
3447 echo "configure: failed program was:" >&5
3448 cat conftest.
$ac_ext >&5
3450 samba_cv_have_setresuid
=no
3457 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
3458 if test x
"$samba_cv_have_setresuid" = x
"yes"; then
3459 cat >> confdefs.h
<<\EOF
3460 #define HAVE_SETRESUID 1
3465 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
3466 echo "configure:3467: checking for 8-bit clean memcmp" >&5
3467 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
3468 echo $ac_n "(cached) $ac_c" 1>&6
3470 if test "$cross_compiling" = yes; then
3471 ac_cv_func_memcmp_clean
=no
3473 cat > conftest.
$ac_ext <<EOF
3474 #line 3475 "configure"
3475 #include "confdefs.h"
3479 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
3480 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
3484 if { (eval echo configure
:3485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3486 ac_cv_func_memcmp_clean
=yes
3488 echo "configure: failed program was:" >&5
3489 cat conftest.
$ac_ext >&5
3491 ac_cv_func_memcmp_clean
=no
3498 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
3499 test $ac_cv_func_memcmp_clean = no
&& LIBOBJS
="$LIBOBJS memcmp.${ac_objext}"
3502 ###############################################
3503 # test for where we get crypt() from
3504 for ac_func
in crypt
3506 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3507 echo "configure:3508: checking for $ac_func" >&5
3508 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3509 echo $ac_n "(cached) $ac_c" 1>&6
3511 cat > conftest.
$ac_ext <<EOF
3512 #line 3513 "configure"
3513 #include "confdefs.h"
3514 /* System header to define __stub macros and hopefully few prototypes,
3515 which can conflict with char $ac_func(); below. */
3517 /* Override any gcc2 internal prototype to avoid an error. */
3518 /* We use char because int might match the return type of a gcc2
3519 builtin and then its argument prototype would still apply. */
3524 /* The GNU C library defines this for functions which it implements
3525 to always fail with ENOSYS. Some functions are actually named
3526 something starting with __ and the normal name is an alias. */
3527 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3535 if { (eval echo configure
:3536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3537 eval "ac_cv_func_$ac_func=yes"
3539 echo "configure: failed program was:" >&5
3540 cat conftest.
$ac_ext >&5
3542 eval "ac_cv_func_$ac_func=no"
3547 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3548 echo "$ac_t""yes" 1>&6
3549 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3550 cat >> confdefs.h
<<EOF
3551 #define $ac_tr_func 1
3555 echo "$ac_t""no" 1>&6
3559 if test x
"$ac_cv_func_crypt" = x
"no"; then
3560 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
3561 echo "configure:3562: checking for crypt in -lcrypt" >&5
3562 ac_lib_var
=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
3563 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3564 echo $ac_n "(cached) $ac_c" 1>&6
3566 ac_save_LIBS
="$LIBS"
3567 LIBS
="-lcrypt $LIBS"
3568 cat > conftest.
$ac_ext <<EOF
3569 #line 3570 "configure"
3570 #include "confdefs.h"
3571 /* Override any gcc2 internal prototype to avoid an error. */
3572 /* We use char because int might match the return type of a gcc2
3573 builtin and then its argument prototype would still apply. */
3580 if { (eval echo configure
:3581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3582 eval "ac_cv_lib_$ac_lib_var=yes"
3584 echo "configure: failed program was:" >&5
3585 cat conftest.
$ac_ext >&5
3587 eval "ac_cv_lib_$ac_lib_var=no"
3590 LIBS
="$ac_save_LIBS"
3593 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3594 echo "$ac_t""yes" 1>&6
3595 LIBS
="$LIBS -lcrypt";
3596 cat >> confdefs.h
<<\EOF
3597 #define HAVE_CRYPT 1
3601 echo "$ac_t""no" 1>&6
3607 ###############################################
3608 # test for where we get pam_authenticate() from
3609 # might need libdl for this to work
3610 if test "$ac_cv_header_security_pam_appl_h" = "yes"; then
3611 echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
3612 echo "configure:3613: checking for main in -ldl" >&5
3613 ac_lib_var
=`echo dl'_'main | sed 'y%./+-%__p_%'`
3614 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3615 echo $ac_n "(cached) $ac_c" 1>&6
3617 ac_save_LIBS
="$LIBS"
3619 cat > conftest.
$ac_ext <<EOF
3620 #line 3621 "configure"
3621 #include "confdefs.h"
3627 if { (eval echo configure
:3628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3629 eval "ac_cv_lib_$ac_lib_var=yes"
3631 echo "configure: failed program was:" >&5
3632 cat conftest.
$ac_ext >&5
3634 eval "ac_cv_lib_$ac_lib_var=no"
3637 LIBS
="$ac_save_LIBS"
3640 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3641 echo "$ac_t""yes" 1>&6
3642 ac_tr_lib
=HAVE_LIB
`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3643 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3644 cat >> confdefs.h
<<EOF
3645 #define $ac_tr_lib 1
3651 echo "$ac_t""no" 1>&6
3655 for ac_func
in pam_authenticate
3657 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3658 echo "configure:3659: checking for $ac_func" >&5
3659 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3660 echo $ac_n "(cached) $ac_c" 1>&6
3662 cat > conftest.
$ac_ext <<EOF
3663 #line 3664 "configure"
3664 #include "confdefs.h"
3665 /* System header to define __stub macros and hopefully few prototypes,
3666 which can conflict with char $ac_func(); below. */
3668 /* Override any gcc2 internal prototype to avoid an error. */
3669 /* We use char because int might match the return type of a gcc2
3670 builtin and then its argument prototype would still apply. */
3675 /* The GNU C library defines this for functions which it implements
3676 to always fail with ENOSYS. Some functions are actually named
3677 something starting with __ and the normal name is an alias. */
3678 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3686 if { (eval echo configure
:3687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3688 eval "ac_cv_func_$ac_func=yes"
3690 echo "configure: failed program was:" >&5
3691 cat conftest.
$ac_ext >&5
3693 eval "ac_cv_func_$ac_func=no"
3698 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3699 echo "$ac_t""yes" 1>&6
3700 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3701 cat >> confdefs.h
<<EOF
3702 #define $ac_tr_func 1
3706 echo "$ac_t""no" 1>&6
3710 if test x
"$ac_cv_func_pam_authenticate" = x
"no"; then
3711 echo $ac_n "checking for pam_authenticate in -lpam""... $ac_c" 1>&6
3712 echo "configure:3713: checking for pam_authenticate in -lpam" >&5
3713 ac_lib_var
=`echo pam'_'pam_authenticate | 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. */
3725 char pam_authenticate();
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_PAM_AUTHENTICATE 1
3752 echo "$ac_t""no" 1>&6
3757 ###############################################
3758 # readline requires some curses routines
3759 if test "$ac_cv_header_readline_h" = "yes" ||
3760 test "$ac_cv_header_readline_readline_h" = "yes"; then
3761 for ac_func
in tputs
3763 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3764 echo "configure:3765: checking for $ac_func" >&5
3765 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3766 echo $ac_n "(cached) $ac_c" 1>&6
3768 cat > conftest.
$ac_ext <<EOF
3769 #line 3770 "configure"
3770 #include "confdefs.h"
3771 /* System header to define __stub macros and hopefully few prototypes,
3772 which can conflict with char $ac_func(); below. */
3774 /* Override any gcc2 internal prototype to avoid an error. */
3775 /* We use char because int might match the return type of a gcc2
3776 builtin and then its argument prototype would still apply. */
3781 /* The GNU C library defines this for functions which it implements
3782 to always fail with ENOSYS. Some functions are actually named
3783 something starting with __ and the normal name is an alias. */
3784 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3792 if { (eval echo configure
:3793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3794 eval "ac_cv_func_$ac_func=yes"
3796 echo "configure: failed program was:" >&5
3797 cat conftest.
$ac_ext >&5
3799 eval "ac_cv_func_$ac_func=no"
3804 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3805 echo "$ac_t""yes" 1>&6
3806 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3807 cat >> confdefs.h
<<EOF
3808 #define $ac_tr_func 1
3812 echo "$ac_t""no" 1>&6
3816 echo $ac_n "checking for tputs in -lcurses""... $ac_c" 1>&6
3817 echo "configure:3818: checking for tputs in -lcurses" >&5
3818 ac_lib_var
=`echo curses'_'tputs | sed 'y%./+-%__p_%'`
3819 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3820 echo $ac_n "(cached) $ac_c" 1>&6
3822 ac_save_LIBS
="$LIBS"
3823 LIBS
="-lcurses $LIBS"
3824 cat > conftest.
$ac_ext <<EOF
3825 #line 3826 "configure"
3826 #include "confdefs.h"
3827 /* Override any gcc2 internal prototype to avoid an error. */
3828 /* We use char because int might match the return type of a gcc2
3829 builtin and then its argument prototype would still apply. */
3836 if { (eval echo configure
:3837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3838 eval "ac_cv_lib_$ac_lib_var=yes"
3840 echo "configure: failed program was:" >&5
3841 cat conftest.
$ac_ext >&5
3843 eval "ac_cv_lib_$ac_lib_var=no"
3846 LIBS
="$ac_save_LIBS"
3849 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3850 echo "$ac_t""yes" 1>&6
3851 LIBS
="$LIBS -lcurses"
3853 echo "$ac_t""no" 1>&6
3856 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
3857 echo "configure:3858: checking for readline in -lreadline" >&5
3858 ac_lib_var
=`echo readline'_'readline | sed 'y%./+-%__p_%'`
3859 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3860 echo $ac_n "(cached) $ac_c" 1>&6
3862 ac_save_LIBS
="$LIBS"
3863 LIBS
="-lreadline $LIBS"
3864 cat > conftest.
$ac_ext <<EOF
3865 #line 3866 "configure"
3866 #include "confdefs.h"
3867 /* Override any gcc2 internal prototype to avoid an error. */
3868 /* We use char because int might match the return type of a gcc2
3869 builtin and then its argument prototype would still apply. */
3876 if { (eval echo configure
:3877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3878 eval "ac_cv_lib_$ac_lib_var=yes"
3880 echo "configure: failed program was:" >&5
3881 cat conftest.
$ac_ext >&5
3883 eval "ac_cv_lib_$ac_lib_var=no"
3886 LIBS
="$ac_save_LIBS"
3889 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3890 echo "$ac_t""yes" 1>&6
3891 ac_tr_lib
=HAVE_LIB
`echo readline | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3892 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3893 cat >> confdefs.h
<<EOF
3894 #define $ac_tr_lib 1
3897 LIBS
="-lreadline $LIBS"
3900 echo "$ac_t""no" 1>&6
3903 echo $ac_n "checking for filename_completion_function proto""... $ac_c" 1>&6
3904 echo "configure:3905: checking for filename_completion_function proto" >&5
3905 if eval "test \"`echo '$''{'samba_cv_have_fcf_proto'+set}'`\" = set"; then
3906 echo $ac_n "(cached) $ac_c" 1>&6
3909 cat > conftest.
$ac_ext <<EOF
3910 #line 3911 "configure"
3911 #include "confdefs.h"
3913 #ifdef HAVE_READLINE_H
3914 #include <readline.h>
3916 #include <readline/readline.h>
3919 filename_completion_function
3922 if { (eval echo configure
:3923: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3924 samba_cv_have_fcf_proto
=yes
3926 echo "configure: failed program was:" >&5
3927 cat conftest.
$ac_ext >&5
3929 samba_cv_have_fcf_proto
=no
3934 echo "$ac_t""$samba_cv_have_fcf_proto" 1>&6
3935 if test x
"$samba_cv_have_fcf_proto" = x
"yes"; then
3936 cat >> confdefs.h
<<\EOF
3937 #define HAVE_READLINE_FCF_PROTO 1
3943 # The following test taken from the cvs sources
3944 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
3945 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
3946 # libsocket.so which has a bad implementation of gethostbyname (it
3947 # only looks in /etc/hosts), so we only look for -lsocket if we need
3949 for ac_func
in connect
3951 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3952 echo "configure:3953: checking for $ac_func" >&5
3953 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3954 echo $ac_n "(cached) $ac_c" 1>&6
3956 cat > conftest.
$ac_ext <<EOF
3957 #line 3958 "configure"
3958 #include "confdefs.h"
3959 /* System header to define __stub macros and hopefully few prototypes,
3960 which can conflict with char $ac_func(); below. */
3962 /* Override any gcc2 internal prototype to avoid an error. */
3963 /* We use char because int might match the return type of a gcc2
3964 builtin and then its argument prototype would still apply. */
3969 /* The GNU C library defines this for functions which it implements
3970 to always fail with ENOSYS. Some functions are actually named
3971 something starting with __ and the normal name is an alias. */
3972 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3980 if { (eval echo configure
:3981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3982 eval "ac_cv_func_$ac_func=yes"
3984 echo "configure: failed program was:" >&5
3985 cat conftest.
$ac_ext >&5
3987 eval "ac_cv_func_$ac_func=no"
3992 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3993 echo "$ac_t""yes" 1>&6
3994 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3995 cat >> confdefs.h
<<EOF
3996 #define $ac_tr_func 1
4000 echo "$ac_t""no" 1>&6
4004 if test x
"$ac_cv_func_connect" = x
"no"; then
4007 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
4008 echo "configure:4009: checking for printf in -lnsl_s" >&5
4009 ac_lib_var
=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
4010 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4011 echo $ac_n "(cached) $ac_c" 1>&6
4013 ac_save_LIBS
="$LIBS"
4014 LIBS
="-lnsl_s $LIBS"
4015 cat > conftest.
$ac_ext <<EOF
4016 #line 4017 "configure"
4017 #include "confdefs.h"
4018 /* Override any gcc2 internal prototype to avoid an error. */
4019 /* We use char because int might match the return type of a gcc2
4020 builtin and then its argument prototype would still apply. */
4027 if { (eval echo configure
:4028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4029 eval "ac_cv_lib_$ac_lib_var=yes"
4031 echo "configure: failed program was:" >&5
4032 cat conftest.
$ac_ext >&5
4034 eval "ac_cv_lib_$ac_lib_var=no"
4037 LIBS
="$ac_save_LIBS"
4040 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4041 echo "$ac_t""yes" 1>&6
4042 ac_tr_lib
=HAVE_LIB
`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4043 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4044 cat >> confdefs.h
<<EOF
4045 #define $ac_tr_lib 1
4048 LIBS
="-lnsl_s $LIBS"
4051 echo "$ac_t""no" 1>&6
4057 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
4058 echo "configure:4059: checking for printf in -lnsl" >&5
4059 ac_lib_var
=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
4060 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4061 echo $ac_n "(cached) $ac_c" 1>&6
4063 ac_save_LIBS
="$LIBS"
4065 cat > conftest.
$ac_ext <<EOF
4066 #line 4067 "configure"
4067 #include "confdefs.h"
4068 /* Override any gcc2 internal prototype to avoid an error. */
4069 /* We use char because int might match the return type of a gcc2
4070 builtin and then its argument prototype would still apply. */
4077 if { (eval echo configure
:4078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4079 eval "ac_cv_lib_$ac_lib_var=yes"
4081 echo "configure: failed program was:" >&5
4082 cat conftest.
$ac_ext >&5
4084 eval "ac_cv_lib_$ac_lib_var=no"
4087 LIBS
="$ac_save_LIBS"
4090 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4091 echo "$ac_t""yes" 1>&6
4092 ac_tr_lib
=HAVE_LIB
`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4093 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4094 cat >> confdefs.h
<<EOF
4095 #define $ac_tr_lib 1
4101 echo "$ac_t""no" 1>&6
4107 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
4108 echo "configure:4109: checking for connect in -lsocket" >&5
4109 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
4110 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4111 echo $ac_n "(cached) $ac_c" 1>&6
4113 ac_save_LIBS
="$LIBS"
4114 LIBS
="-lsocket $LIBS"
4115 cat > conftest.
$ac_ext <<EOF
4116 #line 4117 "configure"
4117 #include "confdefs.h"
4118 /* Override any gcc2 internal prototype to avoid an error. */
4119 /* We use char because int might match the return type of a gcc2
4120 builtin and then its argument prototype would still apply. */
4127 if { (eval echo configure
:4128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4129 eval "ac_cv_lib_$ac_lib_var=yes"
4131 echo "configure: failed program was:" >&5
4132 cat conftest.
$ac_ext >&5
4134 eval "ac_cv_lib_$ac_lib_var=no"
4137 LIBS
="$ac_save_LIBS"
4140 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4141 echo "$ac_t""yes" 1>&6
4142 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4143 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4144 cat >> confdefs.h
<<EOF
4145 #define $ac_tr_lib 1
4148 LIBS
="-lsocket $LIBS"
4151 echo "$ac_t""no" 1>&6
4157 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
4158 echo "configure:4159: checking for connect in -linet" >&5
4159 ac_lib_var
=`echo inet'_'connect | sed 'y%./+-%__p_%'`
4160 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4161 echo $ac_n "(cached) $ac_c" 1>&6
4163 ac_save_LIBS
="$LIBS"
4165 cat > conftest.
$ac_ext <<EOF
4166 #line 4167 "configure"
4167 #include "confdefs.h"
4168 /* Override any gcc2 internal prototype to avoid an error. */
4169 /* We use char because int might match the return type of a gcc2
4170 builtin and then its argument prototype would still apply. */
4177 if { (eval echo configure
:4178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4179 eval "ac_cv_lib_$ac_lib_var=yes"
4181 echo "configure: failed program was:" >&5
4182 cat conftest.
$ac_ext >&5
4184 eval "ac_cv_lib_$ac_lib_var=no"
4187 LIBS
="$ac_save_LIBS"
4190 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4191 echo "$ac_t""yes" 1>&6
4192 ac_tr_lib
=HAVE_LIB
`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4193 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4194 cat >> confdefs.h
<<EOF
4195 #define $ac_tr_lib 1
4201 echo "$ac_t""no" 1>&6
4205 if test x
"$ac_cv_lib_socket_connect" = x
"yes" ||
4206 test x
"$ac_cv_lib_inet_connect" = x
"yes"; then
4207 # ac_cv_func_connect=yes
4208 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
4209 cat >> confdefs.h
<<\EOF
4210 #define HAVE_CONNECT 1
4217 for ac_func
in waitpid getcwd strdup strtoul strerror chown
chmod chroot
4219 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4220 echo "configure:4221: checking for $ac_func" >&5
4221 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4222 echo $ac_n "(cached) $ac_c" 1>&6
4224 cat > conftest.
$ac_ext <<EOF
4225 #line 4226 "configure"
4226 #include "confdefs.h"
4227 /* System header to define __stub macros and hopefully few prototypes,
4228 which can conflict with char $ac_func(); below. */
4230 /* Override any gcc2 internal prototype to avoid an error. */
4231 /* We use char because int might match the return type of a gcc2
4232 builtin and then its argument prototype would still apply. */
4237 /* The GNU C library defines this for functions which it implements
4238 to always fail with ENOSYS. Some functions are actually named
4239 something starting with __ and the normal name is an alias. */
4240 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4248 if { (eval echo configure
:4249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4250 eval "ac_cv_func_$ac_func=yes"
4252 echo "configure: failed program was:" >&5
4253 cat conftest.
$ac_ext >&5
4255 eval "ac_cv_func_$ac_func=no"
4260 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4261 echo "$ac_t""yes" 1>&6
4262 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4263 cat >> confdefs.h
<<EOF
4264 #define $ac_tr_func 1
4268 echo "$ac_t""no" 1>&6
4272 for ac_func
in fstat strchr utime utimes getrlimit fsync execl bzero memset
4274 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4275 echo "configure:4276: checking for $ac_func" >&5
4276 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4277 echo $ac_n "(cached) $ac_c" 1>&6
4279 cat > conftest.
$ac_ext <<EOF
4280 #line 4281 "configure"
4281 #include "confdefs.h"
4282 /* System header to define __stub macros and hopefully few prototypes,
4283 which can conflict with char $ac_func(); below. */
4285 /* Override any gcc2 internal prototype to avoid an error. */
4286 /* We use char because int might match the return type of a gcc2
4287 builtin and then its argument prototype would still apply. */
4292 /* The GNU C library defines this for functions which it implements
4293 to always fail with ENOSYS. Some functions are actually named
4294 something starting with __ and the normal name is an alias. */
4295 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4303 if { (eval echo configure
:4304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4305 eval "ac_cv_func_$ac_func=yes"
4307 echo "configure: failed program was:" >&5
4308 cat conftest.
$ac_ext >&5
4310 eval "ac_cv_func_$ac_func=no"
4315 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4316 echo "$ac_t""yes" 1>&6
4317 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4318 cat >> confdefs.h
<<EOF
4319 #define $ac_tr_func 1
4323 echo "$ac_t""no" 1>&6
4327 for ac_func
in memmove vsnprintf snprintf setsid glob strpbrk pipe crypt16 getauthuid
4329 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4330 echo "configure:4331: checking for $ac_func" >&5
4331 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4332 echo $ac_n "(cached) $ac_c" 1>&6
4334 cat > conftest.
$ac_ext <<EOF
4335 #line 4336 "configure"
4336 #include "confdefs.h"
4337 /* System header to define __stub macros and hopefully few prototypes,
4338 which can conflict with char $ac_func(); below. */
4340 /* Override any gcc2 internal prototype to avoid an error. */
4341 /* We use char because int might match the return type of a gcc2
4342 builtin and then its argument prototype would still apply. */
4347 /* The GNU C library defines this for functions which it implements
4348 to always fail with ENOSYS. Some functions are actually named
4349 something starting with __ and the normal name is an alias. */
4350 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4358 if { (eval echo configure
:4359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4360 eval "ac_cv_func_$ac_func=yes"
4362 echo "configure: failed program was:" >&5
4363 cat conftest.
$ac_ext >&5
4365 eval "ac_cv_func_$ac_func=no"
4370 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4371 echo "$ac_t""yes" 1>&6
4372 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4373 cat >> confdefs.h
<<EOF
4374 #define $ac_tr_func 1
4378 echo "$ac_t""no" 1>&6
4382 for ac_func
in strftime sigprocmask sigblock sigaction innetgr setnetgrent getnetgrent endnetgrent
4384 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4385 echo "configure:4386: checking for $ac_func" >&5
4386 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4387 echo $ac_n "(cached) $ac_c" 1>&6
4389 cat > conftest.
$ac_ext <<EOF
4390 #line 4391 "configure"
4391 #include "confdefs.h"
4392 /* System header to define __stub macros and hopefully few prototypes,
4393 which can conflict with char $ac_func(); below. */
4395 /* Override any gcc2 internal prototype to avoid an error. */
4396 /* We use char because int might match the return type of a gcc2
4397 builtin and then its argument prototype would still apply. */
4402 /* The GNU C library defines this for functions which it implements
4403 to always fail with ENOSYS. Some functions are actually named
4404 something starting with __ and the normal name is an alias. */
4405 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4413 if { (eval echo configure
:4414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4415 eval "ac_cv_func_$ac_func=yes"
4417 echo "configure: failed program was:" >&5
4418 cat conftest.
$ac_ext >&5
4420 eval "ac_cv_func_$ac_func=no"
4425 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4426 echo "$ac_t""yes" 1>&6
4427 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4428 cat >> confdefs.h
<<EOF
4429 #define $ac_tr_func 1
4433 echo "$ac_t""no" 1>&6
4437 for ac_func
in initgroups
select rdchk getgrnam pathconf
4439 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4440 echo "configure:4441: checking for $ac_func" >&5
4441 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4442 echo $ac_n "(cached) $ac_c" 1>&6
4444 cat > conftest.
$ac_ext <<EOF
4445 #line 4446 "configure"
4446 #include "confdefs.h"
4447 /* System header to define __stub macros and hopefully few prototypes,
4448 which can conflict with char $ac_func(); below. */
4450 /* Override any gcc2 internal prototype to avoid an error. */
4451 /* We use char because int might match the return type of a gcc2
4452 builtin and then its argument prototype would still apply. */
4457 /* The GNU C library defines this for functions which it implements
4458 to always fail with ENOSYS. Some functions are actually named
4459 something starting with __ and the normal name is an alias. */
4460 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4468 if { (eval echo configure
:4469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4470 eval "ac_cv_func_$ac_func=yes"
4472 echo "configure: failed program was:" >&5
4473 cat conftest.
$ac_ext >&5
4475 eval "ac_cv_func_$ac_func=no"
4480 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4481 echo "$ac_t""yes" 1>&6
4482 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4483 cat >> confdefs.h
<<EOF
4484 #define $ac_tr_func 1
4488 echo "$ac_t""no" 1>&6
4492 for ac_func
in setuidx setgroups mktime rename ftruncate stat64 fstat64 lstat64 fopen64
4494 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4495 echo "configure:4496: checking for $ac_func" >&5
4496 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4497 echo $ac_n "(cached) $ac_c" 1>&6
4499 cat > conftest.
$ac_ext <<EOF
4500 #line 4501 "configure"
4501 #include "confdefs.h"
4502 /* System header to define __stub macros and hopefully few prototypes,
4503 which can conflict with char $ac_func(); below. */
4505 /* Override any gcc2 internal prototype to avoid an error. */
4506 /* We use char because int might match the return type of a gcc2
4507 builtin and then its argument prototype would still apply. */
4512 /* The GNU C library defines this for functions which it implements
4513 to always fail with ENOSYS. Some functions are actually named
4514 something starting with __ and the normal name is an alias. */
4515 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4523 if { (eval echo configure
:4524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4525 eval "ac_cv_func_$ac_func=yes"
4527 echo "configure: failed program was:" >&5
4528 cat conftest.
$ac_ext >&5
4530 eval "ac_cv_func_$ac_func=no"
4535 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4536 echo "$ac_t""yes" 1>&6
4537 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4538 cat >> confdefs.h
<<EOF
4539 #define $ac_tr_func 1
4543 echo "$ac_t""no" 1>&6
4547 for ac_func
in atexit grantpt dup2 lseek64 ftruncate64
4549 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4550 echo "configure:4551: checking for $ac_func" >&5
4551 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4552 echo $ac_n "(cached) $ac_c" 1>&6
4554 cat > conftest.
$ac_ext <<EOF
4555 #line 4556 "configure"
4556 #include "confdefs.h"
4557 /* System header to define __stub macros and hopefully few prototypes,
4558 which can conflict with char $ac_func(); below. */
4560 /* Override any gcc2 internal prototype to avoid an error. */
4561 /* We use char because int might match the return type of a gcc2
4562 builtin and then its argument prototype would still apply. */
4567 /* The GNU C library defines this for functions which it implements
4568 to always fail with ENOSYS. Some functions are actually named
4569 something starting with __ and the normal name is an alias. */
4570 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4578 if { (eval echo configure
:4579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4580 eval "ac_cv_func_$ac_func=yes"
4582 echo "configure: failed program was:" >&5
4583 cat conftest.
$ac_ext >&5
4585 eval "ac_cv_func_$ac_func=no"
4590 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4591 echo "$ac_t""yes" 1>&6
4592 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4593 cat >> confdefs.h
<<EOF
4594 #define $ac_tr_func 1
4598 echo "$ac_t""no" 1>&6
4602 for ac_func
in fseek64 ftell64 setluid yp_get_default_domain getpwanam
4604 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4605 echo "configure:4606: checking for $ac_func" >&5
4606 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4607 echo $ac_n "(cached) $ac_c" 1>&6
4609 cat > conftest.
$ac_ext <<EOF
4610 #line 4611 "configure"
4611 #include "confdefs.h"
4612 /* System header to define __stub macros and hopefully few prototypes,
4613 which can conflict with char $ac_func(); below. */
4615 /* Override any gcc2 internal prototype to avoid an error. */
4616 /* We use char because int might match the return type of a gcc2
4617 builtin and then its argument prototype would still apply. */
4622 /* The GNU C library defines this for functions which it implements
4623 to always fail with ENOSYS. Some functions are actually named
4624 something starting with __ and the normal name is an alias. */
4625 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4633 if { (eval echo configure
:4634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4635 eval "ac_cv_func_$ac_func=yes"
4637 echo "configure: failed program was:" >&5
4638 cat conftest.
$ac_ext >&5
4640 eval "ac_cv_func_$ac_func=no"
4645 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4646 echo "$ac_t""yes" 1>&6
4647 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4648 cat >> confdefs.h
<<EOF
4649 #define $ac_tr_func 1
4653 echo "$ac_t""no" 1>&6
4657 for ac_func
in srandom random srand rand setenv mmap64
4659 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4660 echo "configure:4661: checking for $ac_func" >&5
4661 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4662 echo $ac_n "(cached) $ac_c" 1>&6
4664 cat > conftest.
$ac_ext <<EOF
4665 #line 4666 "configure"
4666 #include "confdefs.h"
4667 /* System header to define __stub macros and hopefully few prototypes,
4668 which can conflict with char $ac_func(); below. */
4670 /* Override any gcc2 internal prototype to avoid an error. */
4671 /* We use char because int might match the return type of a gcc2
4672 builtin and then its argument prototype would still apply. */
4677 /* The GNU C library defines this for functions which it implements
4678 to always fail with ENOSYS. Some functions are actually named
4679 something starting with __ and the normal name is an alias. */
4680 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4688 if { (eval echo configure
:4689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4690 eval "ac_cv_func_$ac_func=yes"
4692 echo "configure: failed program was:" >&5
4693 cat conftest.
$ac_ext >&5
4695 eval "ac_cv_func_$ac_func=no"
4700 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4701 echo "$ac_t""yes" 1>&6
4702 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4703 cat >> confdefs.h
<<EOF
4704 #define $ac_tr_func 1
4708 echo "$ac_t""no" 1>&6
4712 # syscall() is needed for smbwrapper.
4713 for ac_func
in syscall
4715 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4716 echo "configure:4717: checking for $ac_func" >&5
4717 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4718 echo $ac_n "(cached) $ac_c" 1>&6
4720 cat > conftest.
$ac_ext <<EOF
4721 #line 4722 "configure"
4722 #include "confdefs.h"
4723 /* System header to define __stub macros and hopefully few prototypes,
4724 which can conflict with char $ac_func(); below. */
4726 /* Override any gcc2 internal prototype to avoid an error. */
4727 /* We use char because int might match the return type of a gcc2
4728 builtin and then its argument prototype would still apply. */
4733 /* The GNU C library defines this for functions which it implements
4734 to always fail with ENOSYS. Some functions are actually named
4735 something starting with __ and the normal name is an alias. */
4736 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4744 if { (eval echo configure
:4745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4746 eval "ac_cv_func_$ac_func=yes"
4748 echo "configure: failed program was:" >&5
4749 cat conftest.
$ac_ext >&5
4751 eval "ac_cv_func_$ac_func=no"
4756 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4757 echo "$ac_t""yes" 1>&6
4758 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4759 cat >> confdefs.h
<<EOF
4760 #define $ac_tr_func 1
4764 echo "$ac_t""no" 1>&6
4769 for ac_func
in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
4771 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4772 echo "configure:4773: checking for $ac_func" >&5
4773 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4774 echo $ac_n "(cached) $ac_c" 1>&6
4776 cat > conftest.
$ac_ext <<EOF
4777 #line 4778 "configure"
4778 #include "confdefs.h"
4779 /* System header to define __stub macros and hopefully few prototypes,
4780 which can conflict with char $ac_func(); below. */
4782 /* Override any gcc2 internal prototype to avoid an error. */
4783 /* We use char because int might match the return type of a gcc2
4784 builtin and then its argument prototype would still apply. */
4789 /* The GNU C library defines this for functions which it implements
4790 to always fail with ENOSYS. Some functions are actually named
4791 something starting with __ and the normal name is an alias. */
4792 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4800 if { (eval echo configure
:4801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4802 eval "ac_cv_func_$ac_func=yes"
4804 echo "configure: failed program was:" >&5
4805 cat conftest.
$ac_ext >&5
4807 eval "ac_cv_func_$ac_func=no"
4812 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4813 echo "$ac_t""yes" 1>&6
4814 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4815 cat >> confdefs.h
<<EOF
4816 #define $ac_tr_func 1
4820 echo "$ac_t""no" 1>&6
4824 for ac_func
in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
4826 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4827 echo "configure:4828: checking for $ac_func" >&5
4828 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4829 echo $ac_n "(cached) $ac_c" 1>&6
4831 cat > conftest.
$ac_ext <<EOF
4832 #line 4833 "configure"
4833 #include "confdefs.h"
4834 /* System header to define __stub macros and hopefully few prototypes,
4835 which can conflict with char $ac_func(); below. */
4837 /* Override any gcc2 internal prototype to avoid an error. */
4838 /* We use char because int might match the return type of a gcc2
4839 builtin and then its argument prototype would still apply. */
4844 /* The GNU C library defines this for functions which it implements
4845 to always fail with ENOSYS. Some functions are actually named
4846 something starting with __ and the normal name is an alias. */
4847 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4855 if { (eval echo configure
:4856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4857 eval "ac_cv_func_$ac_func=yes"
4859 echo "configure: failed program was:" >&5
4860 cat conftest.
$ac_ext >&5
4862 eval "ac_cv_func_$ac_func=no"
4867 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4868 echo "$ac_t""yes" 1>&6
4869 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4870 cat >> confdefs.h
<<EOF
4871 #define $ac_tr_func 1
4875 echo "$ac_t""no" 1>&6
4879 for ac_func
in __getcwd _getcwd
4881 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4882 echo "configure:4883: checking for $ac_func" >&5
4883 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4884 echo $ac_n "(cached) $ac_c" 1>&6
4886 cat > conftest.
$ac_ext <<EOF
4887 #line 4888 "configure"
4888 #include "confdefs.h"
4889 /* System header to define __stub macros and hopefully few prototypes,
4890 which can conflict with char $ac_func(); below. */
4892 /* Override any gcc2 internal prototype to avoid an error. */
4893 /* We use char because int might match the return type of a gcc2
4894 builtin and then its argument prototype would still apply. */
4899 /* The GNU C library defines this for functions which it implements
4900 to always fail with ENOSYS. Some functions are actually named
4901 something starting with __ and the normal name is an alias. */
4902 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4910 if { (eval echo configure
:4911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4912 eval "ac_cv_func_$ac_func=yes"
4914 echo "configure: failed program was:" >&5
4915 cat conftest.
$ac_ext >&5
4917 eval "ac_cv_func_$ac_func=no"
4922 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4923 echo "$ac_t""yes" 1>&6
4924 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4925 cat >> confdefs.h
<<EOF
4926 #define $ac_tr_func 1
4930 echo "$ac_t""no" 1>&6
4934 for ac_func
in __xstat __fxstat __lxstat
4936 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4937 echo "configure:4938: checking for $ac_func" >&5
4938 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4939 echo $ac_n "(cached) $ac_c" 1>&6
4941 cat > conftest.
$ac_ext <<EOF
4942 #line 4943 "configure"
4943 #include "confdefs.h"
4944 /* System header to define __stub macros and hopefully few prototypes,
4945 which can conflict with char $ac_func(); below. */
4947 /* Override any gcc2 internal prototype to avoid an error. */
4948 /* We use char because int might match the return type of a gcc2
4949 builtin and then its argument prototype would still apply. */
4954 /* The GNU C library defines this for functions which it implements
4955 to always fail with ENOSYS. Some functions are actually named
4956 something starting with __ and the normal name is an alias. */
4957 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4965 if { (eval echo configure
:4966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4967 eval "ac_cv_func_$ac_func=yes"
4969 echo "configure: failed program was:" >&5
4970 cat conftest.
$ac_ext >&5
4972 eval "ac_cv_func_$ac_func=no"
4977 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4978 echo "$ac_t""yes" 1>&6
4979 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4980 cat >> confdefs.h
<<EOF
4981 #define $ac_tr_func 1
4985 echo "$ac_t""no" 1>&6
4989 for ac_func
in _stat _lstat _fstat __stat __lstat __fstat
4991 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4992 echo "configure:4993: checking for $ac_func" >&5
4993 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4994 echo $ac_n "(cached) $ac_c" 1>&6
4996 cat > conftest.
$ac_ext <<EOF
4997 #line 4998 "configure"
4998 #include "confdefs.h"
4999 /* System header to define __stub macros and hopefully few prototypes,
5000 which can conflict with char $ac_func(); below. */
5002 /* Override any gcc2 internal prototype to avoid an error. */
5003 /* We use char because int might match the return type of a gcc2
5004 builtin and then its argument prototype would still apply. */
5009 /* The GNU C library defines this for functions which it implements
5010 to always fail with ENOSYS. Some functions are actually named
5011 something starting with __ and the normal name is an alias. */
5012 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5020 if { (eval echo configure
:5021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5022 eval "ac_cv_func_$ac_func=yes"
5024 echo "configure: failed program was:" >&5
5025 cat conftest.
$ac_ext >&5
5027 eval "ac_cv_func_$ac_func=no"
5032 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5033 echo "$ac_t""yes" 1>&6
5034 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5035 cat >> confdefs.h
<<EOF
5036 #define $ac_tr_func 1
5040 echo "$ac_t""no" 1>&6
5044 for ac_func
in _acl __acl _facl __facl _open __open _chdir __chdir
5046 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5047 echo "configure:5048: checking for $ac_func" >&5
5048 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5049 echo $ac_n "(cached) $ac_c" 1>&6
5051 cat > conftest.
$ac_ext <<EOF
5052 #line 5053 "configure"
5053 #include "confdefs.h"
5054 /* System header to define __stub macros and hopefully few prototypes,
5055 which can conflict with char $ac_func(); below. */
5057 /* Override any gcc2 internal prototype to avoid an error. */
5058 /* We use char because int might match the return type of a gcc2
5059 builtin and then its argument prototype would still apply. */
5064 /* The GNU C library defines this for functions which it implements
5065 to always fail with ENOSYS. Some functions are actually named
5066 something starting with __ and the normal name is an alias. */
5067 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5075 if { (eval echo configure
:5076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5077 eval "ac_cv_func_$ac_func=yes"
5079 echo "configure: failed program was:" >&5
5080 cat conftest.
$ac_ext >&5
5082 eval "ac_cv_func_$ac_func=no"
5087 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5088 echo "$ac_t""yes" 1>&6
5089 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5090 cat >> confdefs.h
<<EOF
5091 #define $ac_tr_func 1
5095 echo "$ac_t""no" 1>&6
5099 for ac_func
in _close __close _fchdir __fchdir _fcntl __fcntl
5101 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5102 echo "configure:5103: checking for $ac_func" >&5
5103 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5104 echo $ac_n "(cached) $ac_c" 1>&6
5106 cat > conftest.
$ac_ext <<EOF
5107 #line 5108 "configure"
5108 #include "confdefs.h"
5109 /* System header to define __stub macros and hopefully few prototypes,
5110 which can conflict with char $ac_func(); below. */
5112 /* Override any gcc2 internal prototype to avoid an error. */
5113 /* We use char because int might match the return type of a gcc2
5114 builtin and then its argument prototype would still apply. */
5119 /* The GNU C library defines this for functions which it implements
5120 to always fail with ENOSYS. Some functions are actually named
5121 something starting with __ and the normal name is an alias. */
5122 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5130 if { (eval echo configure
:5131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5132 eval "ac_cv_func_$ac_func=yes"
5134 echo "configure: failed program was:" >&5
5135 cat conftest.
$ac_ext >&5
5137 eval "ac_cv_func_$ac_func=no"
5142 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5143 echo "$ac_t""yes" 1>&6
5144 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5145 cat >> confdefs.h
<<EOF
5146 #define $ac_tr_func 1
5150 echo "$ac_t""no" 1>&6
5154 for ac_func
in getdents _getdents __getdents _lseek __lseek _read __read
5156 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5157 echo "configure:5158: checking for $ac_func" >&5
5158 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5159 echo $ac_n "(cached) $ac_c" 1>&6
5161 cat > conftest.
$ac_ext <<EOF
5162 #line 5163 "configure"
5163 #include "confdefs.h"
5164 /* System header to define __stub macros and hopefully few prototypes,
5165 which can conflict with char $ac_func(); below. */
5167 /* Override any gcc2 internal prototype to avoid an error. */
5168 /* We use char because int might match the return type of a gcc2
5169 builtin and then its argument prototype would still apply. */
5174 /* The GNU C library defines this for functions which it implements
5175 to always fail with ENOSYS. Some functions are actually named
5176 something starting with __ and the normal name is an alias. */
5177 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5185 if { (eval echo configure
:5186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5187 eval "ac_cv_func_$ac_func=yes"
5189 echo "configure: failed program was:" >&5
5190 cat conftest.
$ac_ext >&5
5192 eval "ac_cv_func_$ac_func=no"
5197 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5198 echo "$ac_t""yes" 1>&6
5199 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5200 cat >> confdefs.h
<<EOF
5201 #define $ac_tr_func 1
5205 echo "$ac_t""no" 1>&6
5209 for ac_func
in _write __write _fork __fork
5211 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5212 echo "configure:5213: checking for $ac_func" >&5
5213 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5214 echo $ac_n "(cached) $ac_c" 1>&6
5216 cat > conftest.
$ac_ext <<EOF
5217 #line 5218 "configure"
5218 #include "confdefs.h"
5219 /* System header to define __stub macros and hopefully few prototypes,
5220 which can conflict with char $ac_func(); below. */
5222 /* Override any gcc2 internal prototype to avoid an error. */
5223 /* We use char because int might match the return type of a gcc2
5224 builtin and then its argument prototype would still apply. */
5229 /* The GNU C library defines this for functions which it implements
5230 to always fail with ENOSYS. Some functions are actually named
5231 something starting with __ and the normal name is an alias. */
5232 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5240 if { (eval echo configure
:5241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5242 eval "ac_cv_func_$ac_func=yes"
5244 echo "configure: failed program was:" >&5
5245 cat conftest.
$ac_ext >&5
5247 eval "ac_cv_func_$ac_func=no"
5252 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5253 echo "$ac_t""yes" 1>&6
5254 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5255 cat >> confdefs.h
<<EOF
5256 #define $ac_tr_func 1
5260 echo "$ac_t""no" 1>&6
5264 for ac_func
in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
5266 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5267 echo "configure:5268: checking for $ac_func" >&5
5268 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5269 echo $ac_n "(cached) $ac_c" 1>&6
5271 cat > conftest.
$ac_ext <<EOF
5272 #line 5273 "configure"
5273 #include "confdefs.h"
5274 /* System header to define __stub macros and hopefully few prototypes,
5275 which can conflict with char $ac_func(); below. */
5277 /* Override any gcc2 internal prototype to avoid an error. */
5278 /* We use char because int might match the return type of a gcc2
5279 builtin and then its argument prototype would still apply. */
5284 /* The GNU C library defines this for functions which it implements
5285 to always fail with ENOSYS. Some functions are actually named
5286 something starting with __ and the normal name is an alias. */
5287 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5295 if { (eval echo configure
:5296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5297 eval "ac_cv_func_$ac_func=yes"
5299 echo "configure: failed program was:" >&5
5300 cat conftest.
$ac_ext >&5
5302 eval "ac_cv_func_$ac_func=no"
5307 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5308 echo "$ac_t""yes" 1>&6
5309 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5310 cat >> confdefs.h
<<EOF
5311 #define $ac_tr_func 1
5315 echo "$ac_t""no" 1>&6
5319 for ac_func
in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
5321 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5322 echo "configure:5323: checking for $ac_func" >&5
5323 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5324 echo $ac_n "(cached) $ac_c" 1>&6
5326 cat > conftest.
$ac_ext <<EOF
5327 #line 5328 "configure"
5328 #include "confdefs.h"
5329 /* System header to define __stub macros and hopefully few prototypes,
5330 which can conflict with char $ac_func(); below. */
5332 /* Override any gcc2 internal prototype to avoid an error. */
5333 /* We use char because int might match the return type of a gcc2
5334 builtin and then its argument prototype would still apply. */
5339 /* The GNU C library defines this for functions which it implements
5340 to always fail with ENOSYS. Some functions are actually named
5341 something starting with __ and the normal name is an alias. */
5342 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5350 if { (eval echo configure
:5351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5352 eval "ac_cv_func_$ac_func=yes"
5354 echo "configure: failed program was:" >&5
5355 cat conftest.
$ac_ext >&5
5357 eval "ac_cv_func_$ac_func=no"
5362 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5363 echo "$ac_t""yes" 1>&6
5364 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5365 cat >> confdefs.h
<<EOF
5366 #define $ac_tr_func 1
5370 echo "$ac_t""no" 1>&6
5374 for ac_func
in pread _pread __pread pread64 _pread64 __pread64
5376 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5377 echo "configure:5378: checking for $ac_func" >&5
5378 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5379 echo $ac_n "(cached) $ac_c" 1>&6
5381 cat > conftest.
$ac_ext <<EOF
5382 #line 5383 "configure"
5383 #include "confdefs.h"
5384 /* System header to define __stub macros and hopefully few prototypes,
5385 which can conflict with char $ac_func(); below. */
5387 /* Override any gcc2 internal prototype to avoid an error. */
5388 /* We use char because int might match the return type of a gcc2
5389 builtin and then its argument prototype would still apply. */
5394 /* The GNU C library defines this for functions which it implements
5395 to always fail with ENOSYS. Some functions are actually named
5396 something starting with __ and the normal name is an alias. */
5397 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5405 if { (eval echo configure
:5406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5407 eval "ac_cv_func_$ac_func=yes"
5409 echo "configure: failed program was:" >&5
5410 cat conftest.
$ac_ext >&5
5412 eval "ac_cv_func_$ac_func=no"
5417 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5418 echo "$ac_t""yes" 1>&6
5419 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5420 cat >> confdefs.h
<<EOF
5421 #define $ac_tr_func 1
5425 echo "$ac_t""no" 1>&6
5429 for ac_func
in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
5431 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5432 echo "configure:5433: checking for $ac_func" >&5
5433 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5434 echo $ac_n "(cached) $ac_c" 1>&6
5436 cat > conftest.
$ac_ext <<EOF
5437 #line 5438 "configure"
5438 #include "confdefs.h"
5439 /* System header to define __stub macros and hopefully few prototypes,
5440 which can conflict with char $ac_func(); below. */
5442 /* Override any gcc2 internal prototype to avoid an error. */
5443 /* We use char because int might match the return type of a gcc2
5444 builtin and then its argument prototype would still apply. */
5449 /* The GNU C library defines this for functions which it implements
5450 to always fail with ENOSYS. Some functions are actually named
5451 something starting with __ and the normal name is an alias. */
5452 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5460 if { (eval echo configure
:5461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5462 eval "ac_cv_func_$ac_func=yes"
5464 echo "configure: failed program was:" >&5
5465 cat conftest.
$ac_ext >&5
5467 eval "ac_cv_func_$ac_func=no"
5472 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5473 echo "$ac_t""yes" 1>&6
5474 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5475 cat >> confdefs.h
<<EOF
5476 #define $ac_tr_func 1
5480 echo "$ac_t""no" 1>&6
5484 for ac_func
in open64 _open64 __open64 creat64
5486 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5487 echo "configure:5488: checking for $ac_func" >&5
5488 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5489 echo $ac_n "(cached) $ac_c" 1>&6
5491 cat > conftest.
$ac_ext <<EOF
5492 #line 5493 "configure"
5493 #include "confdefs.h"
5494 /* System header to define __stub macros and hopefully few prototypes,
5495 which can conflict with char $ac_func(); below. */
5497 /* Override any gcc2 internal prototype to avoid an error. */
5498 /* We use char because int might match the return type of a gcc2
5499 builtin and then its argument prototype would still apply. */
5504 /* The GNU C library defines this for functions which it implements
5505 to always fail with ENOSYS. Some functions are actually named
5506 something starting with __ and the normal name is an alias. */
5507 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5515 if { (eval echo configure
:5516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5517 eval "ac_cv_func_$ac_func=yes"
5519 echo "configure: failed program was:" >&5
5520 cat conftest.
$ac_ext >&5
5522 eval "ac_cv_func_$ac_func=no"
5527 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5528 echo "$ac_t""yes" 1>&6
5529 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5530 cat >> confdefs.h
<<EOF
5531 #define $ac_tr_func 1
5535 echo "$ac_t""no" 1>&6
5541 # Check for the functions putprpwnam, set_auth_parameters,
5542 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
5543 # Needed for OSF1 and HPUX.
5547 *-lsecurity*) for ac_func
in putprpwnam
5549 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5550 echo "configure:5551: checking for $ac_func" >&5
5551 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5552 echo $ac_n "(cached) $ac_c" 1>&6
5554 cat > conftest.
$ac_ext <<EOF
5555 #line 5556 "configure"
5556 #include "confdefs.h"
5557 /* System header to define __stub macros and hopefully few prototypes,
5558 which can conflict with char $ac_func(); below. */
5560 /* Override any gcc2 internal prototype to avoid an error. */
5561 /* We use char because int might match the return type of a gcc2
5562 builtin and then its argument prototype would still apply. */
5567 /* The GNU C library defines this for functions which it implements
5568 to always fail with ENOSYS. Some functions are actually named
5569 something starting with __ and the normal name is an alias. */
5570 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5578 if { (eval echo configure
:5579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5580 eval "ac_cv_func_$ac_func=yes"
5582 echo "configure: failed program was:" >&5
5583 cat conftest.
$ac_ext >&5
5585 eval "ac_cv_func_$ac_func=no"
5590 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5591 echo "$ac_t""yes" 1>&6
5592 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5593 cat >> confdefs.h
<<EOF
5594 #define $ac_tr_func 1
5598 echo "$ac_t""no" 1>&6
5602 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
5603 echo "configure:5604: checking for putprpwnam in -lsecurity" >&5
5604 ac_lib_var
=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
5605 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5606 echo $ac_n "(cached) $ac_c" 1>&6
5608 ac_save_LIBS
="$LIBS"
5609 LIBS
="-lsecurity $LIBS"
5610 cat > conftest.
$ac_ext <<EOF
5611 #line 5612 "configure"
5612 #include "confdefs.h"
5613 /* Override any gcc2 internal prototype to avoid an error. */
5614 /* We use char because int might match the return type of a gcc2
5615 builtin and then its argument prototype would still apply. */
5622 if { (eval echo configure
:5623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5624 eval "ac_cv_lib_$ac_lib_var=yes"
5626 echo "configure: failed program was:" >&5
5627 cat conftest.
$ac_ext >&5
5629 eval "ac_cv_lib_$ac_lib_var=no"
5632 LIBS
="$ac_save_LIBS"
5635 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5636 echo "$ac_t""yes" 1>&6
5637 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5638 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5639 cat >> confdefs.h
<<EOF
5640 #define $ac_tr_lib 1
5643 LIBS
="-lsecurity $LIBS"
5646 echo "$ac_t""no" 1>&6
5649 for ac_func
in putprpwnam
5651 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5652 echo "configure:5653: checking for $ac_func" >&5
5653 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5654 echo $ac_n "(cached) $ac_c" 1>&6
5656 cat > conftest.
$ac_ext <<EOF
5657 #line 5658 "configure"
5658 #include "confdefs.h"
5659 /* System header to define __stub macros and hopefully few prototypes,
5660 which can conflict with char $ac_func(); below. */
5662 /* Override any gcc2 internal prototype to avoid an error. */
5663 /* We use char because int might match the return type of a gcc2
5664 builtin and then its argument prototype would still apply. */
5669 /* The GNU C library defines this for functions which it implements
5670 to always fail with ENOSYS. Some functions are actually named
5671 something starting with __ and the normal name is an alias. */
5672 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5680 if { (eval echo configure
:5681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5682 eval "ac_cv_func_$ac_func=yes"
5684 echo "configure: failed program was:" >&5
5685 cat conftest.
$ac_ext >&5
5687 eval "ac_cv_func_$ac_func=no"
5692 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5693 echo "$ac_t""yes" 1>&6
5694 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5695 cat >> confdefs.h
<<EOF
5696 #define $ac_tr_func 1
5700 echo "$ac_t""no" 1>&6
5708 *-lsec*) for ac_func
in putprpwnam
5710 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5711 echo "configure:5712: checking for $ac_func" >&5
5712 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5713 echo $ac_n "(cached) $ac_c" 1>&6
5715 cat > conftest.
$ac_ext <<EOF
5716 #line 5717 "configure"
5717 #include "confdefs.h"
5718 /* System header to define __stub macros and hopefully few prototypes,
5719 which can conflict with char $ac_func(); below. */
5721 /* Override any gcc2 internal prototype to avoid an error. */
5722 /* We use char because int might match the return type of a gcc2
5723 builtin and then its argument prototype would still apply. */
5728 /* The GNU C library defines this for functions which it implements
5729 to always fail with ENOSYS. Some functions are actually named
5730 something starting with __ and the normal name is an alias. */
5731 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5739 if { (eval echo configure
:5740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5741 eval "ac_cv_func_$ac_func=yes"
5743 echo "configure: failed program was:" >&5
5744 cat conftest.
$ac_ext >&5
5746 eval "ac_cv_func_$ac_func=no"
5751 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5752 echo "$ac_t""yes" 1>&6
5753 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5754 cat >> confdefs.h
<<EOF
5755 #define $ac_tr_func 1
5759 echo "$ac_t""no" 1>&6
5763 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
5764 echo "configure:5765: checking for putprpwnam in -lsec" >&5
5765 ac_lib_var
=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
5766 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5767 echo $ac_n "(cached) $ac_c" 1>&6
5769 ac_save_LIBS
="$LIBS"
5771 cat > conftest.
$ac_ext <<EOF
5772 #line 5773 "configure"
5773 #include "confdefs.h"
5774 /* Override any gcc2 internal prototype to avoid an error. */
5775 /* We use char because int might match the return type of a gcc2
5776 builtin and then its argument prototype would still apply. */
5783 if { (eval echo configure
:5784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5785 eval "ac_cv_lib_$ac_lib_var=yes"
5787 echo "configure: failed program was:" >&5
5788 cat conftest.
$ac_ext >&5
5790 eval "ac_cv_lib_$ac_lib_var=no"
5793 LIBS
="$ac_save_LIBS"
5796 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5797 echo "$ac_t""yes" 1>&6
5798 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5799 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5800 cat >> confdefs.h
<<EOF
5801 #define $ac_tr_lib 1
5807 echo "$ac_t""no" 1>&6
5810 for ac_func
in putprpwnam
5812 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5813 echo "configure:5814: checking for $ac_func" >&5
5814 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5815 echo $ac_n "(cached) $ac_c" 1>&6
5817 cat > conftest.
$ac_ext <<EOF
5818 #line 5819 "configure"
5819 #include "confdefs.h"
5820 /* System header to define __stub macros and hopefully few prototypes,
5821 which can conflict with char $ac_func(); below. */
5823 /* Override any gcc2 internal prototype to avoid an error. */
5824 /* We use char because int might match the return type of a gcc2
5825 builtin and then its argument prototype would still apply. */
5830 /* The GNU C library defines this for functions which it implements
5831 to always fail with ENOSYS. Some functions are actually named
5832 something starting with __ and the normal name is an alias. */
5833 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5841 if { (eval echo configure
:5842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5843 eval "ac_cv_func_$ac_func=yes"
5845 echo "configure: failed program was:" >&5
5846 cat conftest.
$ac_ext >&5
5848 eval "ac_cv_func_$ac_func=no"
5853 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5854 echo "$ac_t""yes" 1>&6
5855 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5856 cat >> confdefs.h
<<EOF
5857 #define $ac_tr_func 1
5861 echo "$ac_t""no" 1>&6
5870 *-lsecurity*) for ac_func
in set_auth_parameters
5872 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5873 echo "configure:5874: checking for $ac_func" >&5
5874 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5875 echo $ac_n "(cached) $ac_c" 1>&6
5877 cat > conftest.
$ac_ext <<EOF
5878 #line 5879 "configure"
5879 #include "confdefs.h"
5880 /* System header to define __stub macros and hopefully few prototypes,
5881 which can conflict with char $ac_func(); below. */
5883 /* Override any gcc2 internal prototype to avoid an error. */
5884 /* We use char because int might match the return type of a gcc2
5885 builtin and then its argument prototype would still apply. */
5890 /* The GNU C library defines this for functions which it implements
5891 to always fail with ENOSYS. Some functions are actually named
5892 something starting with __ and the normal name is an alias. */
5893 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5901 if { (eval echo configure
:5902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5903 eval "ac_cv_func_$ac_func=yes"
5905 echo "configure: failed program was:" >&5
5906 cat conftest.
$ac_ext >&5
5908 eval "ac_cv_func_$ac_func=no"
5913 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5914 echo "$ac_t""yes" 1>&6
5915 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5916 cat >> confdefs.h
<<EOF
5917 #define $ac_tr_func 1
5921 echo "$ac_t""no" 1>&6
5925 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
5926 echo "configure:5927: checking for set_auth_parameters in -lsecurity" >&5
5927 ac_lib_var
=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
5928 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5929 echo $ac_n "(cached) $ac_c" 1>&6
5931 ac_save_LIBS
="$LIBS"
5932 LIBS
="-lsecurity $LIBS"
5933 cat > conftest.
$ac_ext <<EOF
5934 #line 5935 "configure"
5935 #include "confdefs.h"
5936 /* Override any gcc2 internal prototype to avoid an error. */
5937 /* We use char because int might match the return type of a gcc2
5938 builtin and then its argument prototype would still apply. */
5939 char set_auth_parameters();
5942 set_auth_parameters()
5945 if { (eval echo configure
:5946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5947 eval "ac_cv_lib_$ac_lib_var=yes"
5949 echo "configure: failed program was:" >&5
5950 cat conftest.
$ac_ext >&5
5952 eval "ac_cv_lib_$ac_lib_var=no"
5955 LIBS
="$ac_save_LIBS"
5958 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5959 echo "$ac_t""yes" 1>&6
5960 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5961 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5962 cat >> confdefs.h
<<EOF
5963 #define $ac_tr_lib 1
5966 LIBS
="-lsecurity $LIBS"
5969 echo "$ac_t""no" 1>&6
5972 for ac_func
in set_auth_parameters
5974 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5975 echo "configure:5976: checking for $ac_func" >&5
5976 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5977 echo $ac_n "(cached) $ac_c" 1>&6
5979 cat > conftest.
$ac_ext <<EOF
5980 #line 5981 "configure"
5981 #include "confdefs.h"
5982 /* System header to define __stub macros and hopefully few prototypes,
5983 which can conflict with char $ac_func(); below. */
5985 /* Override any gcc2 internal prototype to avoid an error. */
5986 /* We use char because int might match the return type of a gcc2
5987 builtin and then its argument prototype would still apply. */
5992 /* The GNU C library defines this for functions which it implements
5993 to always fail with ENOSYS. Some functions are actually named
5994 something starting with __ and the normal name is an alias. */
5995 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6003 if { (eval echo configure
:6004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6005 eval "ac_cv_func_$ac_func=yes"
6007 echo "configure: failed program was:" >&5
6008 cat conftest.
$ac_ext >&5
6010 eval "ac_cv_func_$ac_func=no"
6015 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6016 echo "$ac_t""yes" 1>&6
6017 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6018 cat >> confdefs.h
<<EOF
6019 #define $ac_tr_func 1
6023 echo "$ac_t""no" 1>&6
6031 *-lsec*) for ac_func
in set_auth_parameters
6033 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6034 echo "configure:6035: checking for $ac_func" >&5
6035 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6036 echo $ac_n "(cached) $ac_c" 1>&6
6038 cat > conftest.
$ac_ext <<EOF
6039 #line 6040 "configure"
6040 #include "confdefs.h"
6041 /* System header to define __stub macros and hopefully few prototypes,
6042 which can conflict with char $ac_func(); below. */
6044 /* Override any gcc2 internal prototype to avoid an error. */
6045 /* We use char because int might match the return type of a gcc2
6046 builtin and then its argument prototype would still apply. */
6051 /* The GNU C library defines this for functions which it implements
6052 to always fail with ENOSYS. Some functions are actually named
6053 something starting with __ and the normal name is an alias. */
6054 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6062 if { (eval echo configure
:6063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6064 eval "ac_cv_func_$ac_func=yes"
6066 echo "configure: failed program was:" >&5
6067 cat conftest.
$ac_ext >&5
6069 eval "ac_cv_func_$ac_func=no"
6074 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6075 echo "$ac_t""yes" 1>&6
6076 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6077 cat >> confdefs.h
<<EOF
6078 #define $ac_tr_func 1
6082 echo "$ac_t""no" 1>&6
6086 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
6087 echo "configure:6088: checking for set_auth_parameters in -lsec" >&5
6088 ac_lib_var
=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
6089 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6090 echo $ac_n "(cached) $ac_c" 1>&6
6092 ac_save_LIBS
="$LIBS"
6094 cat > conftest.
$ac_ext <<EOF
6095 #line 6096 "configure"
6096 #include "confdefs.h"
6097 /* Override any gcc2 internal prototype to avoid an error. */
6098 /* We use char because int might match the return type of a gcc2
6099 builtin and then its argument prototype would still apply. */
6100 char set_auth_parameters();
6103 set_auth_parameters()
6106 if { (eval echo configure
:6107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6108 eval "ac_cv_lib_$ac_lib_var=yes"
6110 echo "configure: failed program was:" >&5
6111 cat conftest.
$ac_ext >&5
6113 eval "ac_cv_lib_$ac_lib_var=no"
6116 LIBS
="$ac_save_LIBS"
6119 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6120 echo "$ac_t""yes" 1>&6
6121 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6122 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6123 cat >> confdefs.h
<<EOF
6124 #define $ac_tr_lib 1
6130 echo "$ac_t""no" 1>&6
6133 for ac_func
in set_auth_parameters
6135 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6136 echo "configure:6137: checking for $ac_func" >&5
6137 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6138 echo $ac_n "(cached) $ac_c" 1>&6
6140 cat > conftest.
$ac_ext <<EOF
6141 #line 6142 "configure"
6142 #include "confdefs.h"
6143 /* System header to define __stub macros and hopefully few prototypes,
6144 which can conflict with char $ac_func(); below. */
6146 /* Override any gcc2 internal prototype to avoid an error. */
6147 /* We use char because int might match the return type of a gcc2
6148 builtin and then its argument prototype would still apply. */
6153 /* The GNU C library defines this for functions which it implements
6154 to always fail with ENOSYS. Some functions are actually named
6155 something starting with __ and the normal name is an alias. */
6156 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6164 if { (eval echo configure
:6165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6166 eval "ac_cv_func_$ac_func=yes"
6168 echo "configure: failed program was:" >&5
6169 cat conftest.
$ac_ext >&5
6171 eval "ac_cv_func_$ac_func=no"
6176 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6177 echo "$ac_t""yes" 1>&6
6178 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6179 cat >> confdefs.h
<<EOF
6180 #define $ac_tr_func 1
6184 echo "$ac_t""no" 1>&6
6193 *-lsecurity*) for ac_func
in getspnam
6195 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6196 echo "configure:6197: checking for $ac_func" >&5
6197 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6198 echo $ac_n "(cached) $ac_c" 1>&6
6200 cat > conftest.
$ac_ext <<EOF
6201 #line 6202 "configure"
6202 #include "confdefs.h"
6203 /* System header to define __stub macros and hopefully few prototypes,
6204 which can conflict with char $ac_func(); below. */
6206 /* Override any gcc2 internal prototype to avoid an error. */
6207 /* We use char because int might match the return type of a gcc2
6208 builtin and then its argument prototype would still apply. */
6213 /* The GNU C library defines this for functions which it implements
6214 to always fail with ENOSYS. Some functions are actually named
6215 something starting with __ and the normal name is an alias. */
6216 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6224 if { (eval echo configure
:6225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6226 eval "ac_cv_func_$ac_func=yes"
6228 echo "configure: failed program was:" >&5
6229 cat conftest.
$ac_ext >&5
6231 eval "ac_cv_func_$ac_func=no"
6236 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6237 echo "$ac_t""yes" 1>&6
6238 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6239 cat >> confdefs.h
<<EOF
6240 #define $ac_tr_func 1
6244 echo "$ac_t""no" 1>&6
6248 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
6249 echo "configure:6250: checking for getspnam in -lsecurity" >&5
6250 ac_lib_var
=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
6251 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6252 echo $ac_n "(cached) $ac_c" 1>&6
6254 ac_save_LIBS
="$LIBS"
6255 LIBS
="-lsecurity $LIBS"
6256 cat > conftest.
$ac_ext <<EOF
6257 #line 6258 "configure"
6258 #include "confdefs.h"
6259 /* Override any gcc2 internal prototype to avoid an error. */
6260 /* We use char because int might match the return type of a gcc2
6261 builtin and then its argument prototype would still apply. */
6268 if { (eval echo configure
:6269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6270 eval "ac_cv_lib_$ac_lib_var=yes"
6272 echo "configure: failed program was:" >&5
6273 cat conftest.
$ac_ext >&5
6275 eval "ac_cv_lib_$ac_lib_var=no"
6278 LIBS
="$ac_save_LIBS"
6281 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6282 echo "$ac_t""yes" 1>&6
6283 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6284 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6285 cat >> confdefs.h
<<EOF
6286 #define $ac_tr_lib 1
6289 LIBS
="-lsecurity $LIBS"
6292 echo "$ac_t""no" 1>&6
6295 for ac_func
in getspnam
6297 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6298 echo "configure:6299: checking for $ac_func" >&5
6299 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6300 echo $ac_n "(cached) $ac_c" 1>&6
6302 cat > conftest.
$ac_ext <<EOF
6303 #line 6304 "configure"
6304 #include "confdefs.h"
6305 /* System header to define __stub macros and hopefully few prototypes,
6306 which can conflict with char $ac_func(); below. */
6308 /* Override any gcc2 internal prototype to avoid an error. */
6309 /* We use char because int might match the return type of a gcc2
6310 builtin and then its argument prototype would still apply. */
6315 /* The GNU C library defines this for functions which it implements
6316 to always fail with ENOSYS. Some functions are actually named
6317 something starting with __ and the normal name is an alias. */
6318 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6326 if { (eval echo configure
:6327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6328 eval "ac_cv_func_$ac_func=yes"
6330 echo "configure: failed program was:" >&5
6331 cat conftest.
$ac_ext >&5
6333 eval "ac_cv_func_$ac_func=no"
6338 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6339 echo "$ac_t""yes" 1>&6
6340 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6341 cat >> confdefs.h
<<EOF
6342 #define $ac_tr_func 1
6346 echo "$ac_t""no" 1>&6
6354 *-lsec*) for ac_func
in getspnam
6356 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6357 echo "configure:6358: checking for $ac_func" >&5
6358 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6359 echo $ac_n "(cached) $ac_c" 1>&6
6361 cat > conftest.
$ac_ext <<EOF
6362 #line 6363 "configure"
6363 #include "confdefs.h"
6364 /* System header to define __stub macros and hopefully few prototypes,
6365 which can conflict with char $ac_func(); below. */
6367 /* Override any gcc2 internal prototype to avoid an error. */
6368 /* We use char because int might match the return type of a gcc2
6369 builtin and then its argument prototype would still apply. */
6374 /* The GNU C library defines this for functions which it implements
6375 to always fail with ENOSYS. Some functions are actually named
6376 something starting with __ and the normal name is an alias. */
6377 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6385 if { (eval echo configure
:6386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6387 eval "ac_cv_func_$ac_func=yes"
6389 echo "configure: failed program was:" >&5
6390 cat conftest.
$ac_ext >&5
6392 eval "ac_cv_func_$ac_func=no"
6397 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6398 echo "$ac_t""yes" 1>&6
6399 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6400 cat >> confdefs.h
<<EOF
6401 #define $ac_tr_func 1
6405 echo "$ac_t""no" 1>&6
6409 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
6410 echo "configure:6411: checking for getspnam in -lsec" >&5
6411 ac_lib_var
=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
6412 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6413 echo $ac_n "(cached) $ac_c" 1>&6
6415 ac_save_LIBS
="$LIBS"
6417 cat > conftest.
$ac_ext <<EOF
6418 #line 6419 "configure"
6419 #include "confdefs.h"
6420 /* Override any gcc2 internal prototype to avoid an error. */
6421 /* We use char because int might match the return type of a gcc2
6422 builtin and then its argument prototype would still apply. */
6429 if { (eval echo configure
:6430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6431 eval "ac_cv_lib_$ac_lib_var=yes"
6433 echo "configure: failed program was:" >&5
6434 cat conftest.
$ac_ext >&5
6436 eval "ac_cv_lib_$ac_lib_var=no"
6439 LIBS
="$ac_save_LIBS"
6442 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6443 echo "$ac_t""yes" 1>&6
6444 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6445 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6446 cat >> confdefs.h
<<EOF
6447 #define $ac_tr_lib 1
6453 echo "$ac_t""no" 1>&6
6456 for ac_func
in getspnam
6458 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6459 echo "configure:6460: checking for $ac_func" >&5
6460 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6461 echo $ac_n "(cached) $ac_c" 1>&6
6463 cat > conftest.
$ac_ext <<EOF
6464 #line 6465 "configure"
6465 #include "confdefs.h"
6466 /* System header to define __stub macros and hopefully few prototypes,
6467 which can conflict with char $ac_func(); below. */
6469 /* Override any gcc2 internal prototype to avoid an error. */
6470 /* We use char because int might match the return type of a gcc2
6471 builtin and then its argument prototype would still apply. */
6476 /* The GNU C library defines this for functions which it implements
6477 to always fail with ENOSYS. Some functions are actually named
6478 something starting with __ and the normal name is an alias. */
6479 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6487 if { (eval echo configure
:6488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6489 eval "ac_cv_func_$ac_func=yes"
6491 echo "configure: failed program was:" >&5
6492 cat conftest.
$ac_ext >&5
6494 eval "ac_cv_func_$ac_func=no"
6499 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6500 echo "$ac_t""yes" 1>&6
6501 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6502 cat >> confdefs.h
<<EOF
6503 #define $ac_tr_func 1
6507 echo "$ac_t""no" 1>&6
6516 *-lsecurity*) for ac_func
in bigcrypt
6518 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6519 echo "configure:6520: checking for $ac_func" >&5
6520 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6521 echo $ac_n "(cached) $ac_c" 1>&6
6523 cat > conftest.
$ac_ext <<EOF
6524 #line 6525 "configure"
6525 #include "confdefs.h"
6526 /* System header to define __stub macros and hopefully few prototypes,
6527 which can conflict with char $ac_func(); below. */
6529 /* Override any gcc2 internal prototype to avoid an error. */
6530 /* We use char because int might match the return type of a gcc2
6531 builtin and then its argument prototype would still apply. */
6536 /* The GNU C library defines this for functions which it implements
6537 to always fail with ENOSYS. Some functions are actually named
6538 something starting with __ and the normal name is an alias. */
6539 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6547 if { (eval echo configure
:6548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6549 eval "ac_cv_func_$ac_func=yes"
6551 echo "configure: failed program was:" >&5
6552 cat conftest.
$ac_ext >&5
6554 eval "ac_cv_func_$ac_func=no"
6559 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6560 echo "$ac_t""yes" 1>&6
6561 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6562 cat >> confdefs.h
<<EOF
6563 #define $ac_tr_func 1
6567 echo "$ac_t""no" 1>&6
6571 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
6572 echo "configure:6573: checking for bigcrypt in -lsecurity" >&5
6573 ac_lib_var
=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
6574 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6575 echo $ac_n "(cached) $ac_c" 1>&6
6577 ac_save_LIBS
="$LIBS"
6578 LIBS
="-lsecurity $LIBS"
6579 cat > conftest.
$ac_ext <<EOF
6580 #line 6581 "configure"
6581 #include "confdefs.h"
6582 /* Override any gcc2 internal prototype to avoid an error. */
6583 /* We use char because int might match the return type of a gcc2
6584 builtin and then its argument prototype would still apply. */
6591 if { (eval echo configure
:6592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6593 eval "ac_cv_lib_$ac_lib_var=yes"
6595 echo "configure: failed program was:" >&5
6596 cat conftest.
$ac_ext >&5
6598 eval "ac_cv_lib_$ac_lib_var=no"
6601 LIBS
="$ac_save_LIBS"
6604 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6605 echo "$ac_t""yes" 1>&6
6606 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6607 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6608 cat >> confdefs.h
<<EOF
6609 #define $ac_tr_lib 1
6612 LIBS
="-lsecurity $LIBS"
6615 echo "$ac_t""no" 1>&6
6618 for ac_func
in bigcrypt
6620 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6621 echo "configure:6622: checking for $ac_func" >&5
6622 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6623 echo $ac_n "(cached) $ac_c" 1>&6
6625 cat > conftest.
$ac_ext <<EOF
6626 #line 6627 "configure"
6627 #include "confdefs.h"
6628 /* System header to define __stub macros and hopefully few prototypes,
6629 which can conflict with char $ac_func(); below. */
6631 /* Override any gcc2 internal prototype to avoid an error. */
6632 /* We use char because int might match the return type of a gcc2
6633 builtin and then its argument prototype would still apply. */
6638 /* The GNU C library defines this for functions which it implements
6639 to always fail with ENOSYS. Some functions are actually named
6640 something starting with __ and the normal name is an alias. */
6641 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6649 if { (eval echo configure
:6650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6651 eval "ac_cv_func_$ac_func=yes"
6653 echo "configure: failed program was:" >&5
6654 cat conftest.
$ac_ext >&5
6656 eval "ac_cv_func_$ac_func=no"
6661 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6662 echo "$ac_t""yes" 1>&6
6663 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6664 cat >> confdefs.h
<<EOF
6665 #define $ac_tr_func 1
6669 echo "$ac_t""no" 1>&6
6677 *-lsec*) for ac_func
in bigcrypt
6679 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6680 echo "configure:6681: checking for $ac_func" >&5
6681 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6682 echo $ac_n "(cached) $ac_c" 1>&6
6684 cat > conftest.
$ac_ext <<EOF
6685 #line 6686 "configure"
6686 #include "confdefs.h"
6687 /* System header to define __stub macros and hopefully few prototypes,
6688 which can conflict with char $ac_func(); below. */
6690 /* Override any gcc2 internal prototype to avoid an error. */
6691 /* We use char because int might match the return type of a gcc2
6692 builtin and then its argument prototype would still apply. */
6697 /* The GNU C library defines this for functions which it implements
6698 to always fail with ENOSYS. Some functions are actually named
6699 something starting with __ and the normal name is an alias. */
6700 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6708 if { (eval echo configure
:6709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6710 eval "ac_cv_func_$ac_func=yes"
6712 echo "configure: failed program was:" >&5
6713 cat conftest.
$ac_ext >&5
6715 eval "ac_cv_func_$ac_func=no"
6720 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6721 echo "$ac_t""yes" 1>&6
6722 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6723 cat >> confdefs.h
<<EOF
6724 #define $ac_tr_func 1
6728 echo "$ac_t""no" 1>&6
6732 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
6733 echo "configure:6734: checking for bigcrypt in -lsec" >&5
6734 ac_lib_var
=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
6735 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6736 echo $ac_n "(cached) $ac_c" 1>&6
6738 ac_save_LIBS
="$LIBS"
6740 cat > conftest.
$ac_ext <<EOF
6741 #line 6742 "configure"
6742 #include "confdefs.h"
6743 /* Override any gcc2 internal prototype to avoid an error. */
6744 /* We use char because int might match the return type of a gcc2
6745 builtin and then its argument prototype would still apply. */
6752 if { (eval echo configure
:6753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6754 eval "ac_cv_lib_$ac_lib_var=yes"
6756 echo "configure: failed program was:" >&5
6757 cat conftest.
$ac_ext >&5
6759 eval "ac_cv_lib_$ac_lib_var=no"
6762 LIBS
="$ac_save_LIBS"
6765 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6766 echo "$ac_t""yes" 1>&6
6767 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6768 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6769 cat >> confdefs.h
<<EOF
6770 #define $ac_tr_lib 1
6776 echo "$ac_t""no" 1>&6
6779 for ac_func
in bigcrypt
6781 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6782 echo "configure:6783: checking for $ac_func" >&5
6783 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6784 echo $ac_n "(cached) $ac_c" 1>&6
6786 cat > conftest.
$ac_ext <<EOF
6787 #line 6788 "configure"
6788 #include "confdefs.h"
6789 /* System header to define __stub macros and hopefully few prototypes,
6790 which can conflict with char $ac_func(); below. */
6792 /* Override any gcc2 internal prototype to avoid an error. */
6793 /* We use char because int might match the return type of a gcc2
6794 builtin and then its argument prototype would still apply. */
6799 /* The GNU C library defines this for functions which it implements
6800 to always fail with ENOSYS. Some functions are actually named
6801 something starting with __ and the normal name is an alias. */
6802 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6810 if { (eval echo configure
:6811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6812 eval "ac_cv_func_$ac_func=yes"
6814 echo "configure: failed program was:" >&5
6815 cat conftest.
$ac_ext >&5
6817 eval "ac_cv_func_$ac_func=no"
6822 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6823 echo "$ac_t""yes" 1>&6
6824 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6825 cat >> confdefs.h
<<EOF
6826 #define $ac_tr_func 1
6830 echo "$ac_t""no" 1>&6
6839 *-lsecurity*) for ac_func
in getprpwnam
6841 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6842 echo "configure:6843: checking for $ac_func" >&5
6843 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6844 echo $ac_n "(cached) $ac_c" 1>&6
6846 cat > conftest.
$ac_ext <<EOF
6847 #line 6848 "configure"
6848 #include "confdefs.h"
6849 /* System header to define __stub macros and hopefully few prototypes,
6850 which can conflict with char $ac_func(); below. */
6852 /* Override any gcc2 internal prototype to avoid an error. */
6853 /* We use char because int might match the return type of a gcc2
6854 builtin and then its argument prototype would still apply. */
6859 /* The GNU C library defines this for functions which it implements
6860 to always fail with ENOSYS. Some functions are actually named
6861 something starting with __ and the normal name is an alias. */
6862 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6870 if { (eval echo configure
:6871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6872 eval "ac_cv_func_$ac_func=yes"
6874 echo "configure: failed program was:" >&5
6875 cat conftest.
$ac_ext >&5
6877 eval "ac_cv_func_$ac_func=no"
6882 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6883 echo "$ac_t""yes" 1>&6
6884 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6885 cat >> confdefs.h
<<EOF
6886 #define $ac_tr_func 1
6890 echo "$ac_t""no" 1>&6
6894 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
6895 echo "configure:6896: checking for getprpwnam in -lsecurity" >&5
6896 ac_lib_var
=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
6897 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6898 echo $ac_n "(cached) $ac_c" 1>&6
6900 ac_save_LIBS
="$LIBS"
6901 LIBS
="-lsecurity $LIBS"
6902 cat > conftest.
$ac_ext <<EOF
6903 #line 6904 "configure"
6904 #include "confdefs.h"
6905 /* Override any gcc2 internal prototype to avoid an error. */
6906 /* We use char because int might match the return type of a gcc2
6907 builtin and then its argument prototype would still apply. */
6914 if { (eval echo configure
:6915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6916 eval "ac_cv_lib_$ac_lib_var=yes"
6918 echo "configure: failed program was:" >&5
6919 cat conftest.
$ac_ext >&5
6921 eval "ac_cv_lib_$ac_lib_var=no"
6924 LIBS
="$ac_save_LIBS"
6927 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6928 echo "$ac_t""yes" 1>&6
6929 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6930 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6931 cat >> confdefs.h
<<EOF
6932 #define $ac_tr_lib 1
6935 LIBS
="-lsecurity $LIBS"
6938 echo "$ac_t""no" 1>&6
6941 for ac_func
in getprpwnam
6943 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6944 echo "configure:6945: checking for $ac_func" >&5
6945 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6946 echo $ac_n "(cached) $ac_c" 1>&6
6948 cat > conftest.
$ac_ext <<EOF
6949 #line 6950 "configure"
6950 #include "confdefs.h"
6951 /* System header to define __stub macros and hopefully few prototypes,
6952 which can conflict with char $ac_func(); below. */
6954 /* Override any gcc2 internal prototype to avoid an error. */
6955 /* We use char because int might match the return type of a gcc2
6956 builtin and then its argument prototype would still apply. */
6961 /* The GNU C library defines this for functions which it implements
6962 to always fail with ENOSYS. Some functions are actually named
6963 something starting with __ and the normal name is an alias. */
6964 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6972 if { (eval echo configure
:6973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6974 eval "ac_cv_func_$ac_func=yes"
6976 echo "configure: failed program was:" >&5
6977 cat conftest.
$ac_ext >&5
6979 eval "ac_cv_func_$ac_func=no"
6984 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6985 echo "$ac_t""yes" 1>&6
6986 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6987 cat >> confdefs.h
<<EOF
6988 #define $ac_tr_func 1
6992 echo "$ac_t""no" 1>&6
7000 *-lsec*) for ac_func
in getprpwnam
7002 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7003 echo "configure:7004: checking for $ac_func" >&5
7004 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7005 echo $ac_n "(cached) $ac_c" 1>&6
7007 cat > conftest.
$ac_ext <<EOF
7008 #line 7009 "configure"
7009 #include "confdefs.h"
7010 /* System header to define __stub macros and hopefully few prototypes,
7011 which can conflict with char $ac_func(); below. */
7013 /* Override any gcc2 internal prototype to avoid an error. */
7014 /* We use char because int might match the return type of a gcc2
7015 builtin and then its argument prototype would still apply. */
7020 /* The GNU C library defines this for functions which it implements
7021 to always fail with ENOSYS. Some functions are actually named
7022 something starting with __ and the normal name is an alias. */
7023 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7031 if { (eval echo configure
:7032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7033 eval "ac_cv_func_$ac_func=yes"
7035 echo "configure: failed program was:" >&5
7036 cat conftest.
$ac_ext >&5
7038 eval "ac_cv_func_$ac_func=no"
7043 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7044 echo "$ac_t""yes" 1>&6
7045 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7046 cat >> confdefs.h
<<EOF
7047 #define $ac_tr_func 1
7051 echo "$ac_t""no" 1>&6
7055 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
7056 echo "configure:7057: checking for getprpwnam in -lsec" >&5
7057 ac_lib_var
=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
7058 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7059 echo $ac_n "(cached) $ac_c" 1>&6
7061 ac_save_LIBS
="$LIBS"
7063 cat > conftest.
$ac_ext <<EOF
7064 #line 7065 "configure"
7065 #include "confdefs.h"
7066 /* Override any gcc2 internal prototype to avoid an error. */
7067 /* We use char because int might match the return type of a gcc2
7068 builtin and then its argument prototype would still apply. */
7075 if { (eval echo configure
:7076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7077 eval "ac_cv_lib_$ac_lib_var=yes"
7079 echo "configure: failed program was:" >&5
7080 cat conftest.
$ac_ext >&5
7082 eval "ac_cv_lib_$ac_lib_var=no"
7085 LIBS
="$ac_save_LIBS"
7088 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7089 echo "$ac_t""yes" 1>&6
7090 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7091 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7092 cat >> confdefs.h
<<EOF
7093 #define $ac_tr_lib 1
7099 echo "$ac_t""no" 1>&6
7102 for ac_func
in getprpwnam
7104 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7105 echo "configure:7106: checking for $ac_func" >&5
7106 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7107 echo $ac_n "(cached) $ac_c" 1>&6
7109 cat > conftest.
$ac_ext <<EOF
7110 #line 7111 "configure"
7111 #include "confdefs.h"
7112 /* System header to define __stub macros and hopefully few prototypes,
7113 which can conflict with char $ac_func(); below. */
7115 /* Override any gcc2 internal prototype to avoid an error. */
7116 /* We use char because int might match the return type of a gcc2
7117 builtin and then its argument prototype would still apply. */
7122 /* The GNU C library defines this for functions which it implements
7123 to always fail with ENOSYS. Some functions are actually named
7124 something starting with __ and the normal name is an alias. */
7125 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7133 if { (eval echo configure
:7134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7135 eval "ac_cv_func_$ac_func=yes"
7137 echo "configure: failed program was:" >&5
7138 cat conftest.
$ac_ext >&5
7140 eval "ac_cv_func_$ac_func=no"
7145 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7146 echo "$ac_t""yes" 1>&6
7147 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7148 cat >> confdefs.h
<<EOF
7149 #define $ac_tr_func 1
7153 echo "$ac_t""no" 1>&6
7161 # this bit needs to be modified for each OS that is suported by
7162 # smbwrapper. You need to specify how to created a shared library and
7163 # how to compile C code to produce PIC object files
7165 # these are the defaults, good for lots of systems
7169 # and these are for particular systems
7171 *linux
*) cat >> confdefs.h
<<\EOF
7175 *solaris
*) cat >> confdefs.h
<<\EOF
7181 *sunos
*) cat >> confdefs.h
<<\EOF
7187 *bsd
*) LDSHFLAGS
="-shared -Bshareable"
7189 *irix
*) cat >> confdefs.h
<<\EOF
7193 ATTEMPT_WRAP32_BUILD
=yes
7194 ATTEMPT_LIBSMB32_BUILD
=yes
7195 ATTEMPT_LIBSMBPW32_BUILD
=yes
7196 ATTEMPT_LIBNMB32_BUILD
=yes
7197 ATTEMPT_LIBSAMBA32_BUILD
=yes
7198 ATTEMPT_LIBUBIQX32_BUILD
=yes
7199 ATTEMPT_LIBMSRPC32_BUILD
=yes
7201 *aix
*) cat >> confdefs.h
<<\EOF
7205 *hpux
*) cat >> confdefs.h
<<\EOF
7209 *qnx
*) cat >> confdefs.h
<<\EOF
7213 *osf
*) cat >> confdefs.h
<<\EOF
7217 *sco
*) cat >> confdefs.h
<<\EOF
7221 *next2
*) cat >> confdefs.h
<<\EOF
7225 *dgux
*) # Extract the first word of "groff", so it can be a program name with args.
7226 set dummy
groff; ac_word
=$2
7227 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7228 echo "configure:7229: checking for $ac_word" >&5
7229 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
7230 echo $ac_n "(cached) $ac_c" 1>&6
7232 if test -n "$ROFF"; then
7233 ac_cv_prog_ROFF
="$ROFF" # Let the user override the test.
7235 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
7237 for ac_dir
in $ac_dummy; do
7238 test -z "$ac_dir" && ac_dir
=.
7239 if test -f $ac_dir/$ac_word; then
7240 ac_cv_prog_ROFF
="groff -etpsR -Tascii -man"
7247 ROFF
="$ac_cv_prog_ROFF"
7248 if test -n "$ROFF"; then
7249 echo "$ac_t""$ROFF" 1>&6
7251 echo "$ac_t""no" 1>&6
7254 *sysv4.2
*) echo $ac_n "checking for strcasecmp in -lresolv""... $ac_c" 1>&6
7255 echo "configure:7256: checking for strcasecmp in -lresolv" >&5
7256 ac_lib_var
=`echo resolv'_'strcasecmp | sed 'y%./+-%__p_%'`
7257 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7258 echo $ac_n "(cached) $ac_c" 1>&6
7260 ac_save_LIBS
="$LIBS"
7261 LIBS
="-lresolv $LIBS"
7262 cat > conftest.
$ac_ext <<EOF
7263 #line 7264 "configure"
7264 #include "confdefs.h"
7265 /* Override any gcc2 internal prototype to avoid an error. */
7266 /* We use char because int might match the return type of a gcc2
7267 builtin and then its argument prototype would still apply. */
7274 if { (eval echo configure
:7275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7276 eval "ac_cv_lib_$ac_lib_var=yes"
7278 echo "configure: failed program was:" >&5
7279 cat conftest.
$ac_ext >&5
7281 eval "ac_cv_lib_$ac_lib_var=no"
7284 LIBS
="$ac_save_LIBS"
7287 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7288 echo "$ac_t""yes" 1>&6
7289 ac_tr_lib
=HAVE_LIB
`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7290 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7291 cat >> confdefs.h
<<EOF
7292 #define $ac_tr_lib 1
7295 LIBS
="-lresolv $LIBS"
7298 echo "$ac_t""no" 1>&6
7303 # try to work out how to produce pic code with this compiler
7305 echo $ac_n "checking whether ${CC-cc} accepts -fpic""... $ac_c" 1>&6
7306 echo "configure:7307: checking whether ${CC-cc} accepts -fpic" >&5
7307 if eval "test \"`echo '$''{'ac_cv_prog_cc_fpic'+set}'`\" = set"; then
7308 echo $ac_n "(cached) $ac_c" 1>&6
7310 echo 'void f(){}' > conftest.c
7311 if test -z "`${CC-cc} -fpic -c conftest.c 2>&1`"; then
7312 ac_cv_prog_cc_fpic
=yes
7314 ac_cv_prog_cc_fpic
=no
7320 echo "$ac_t""$ac_cv_prog_cc_fpic" 1>&6
7321 if test $ac_cv_prog_cc_fpic = yes; then
7324 if test x
$PICFLAG = x
; then
7325 echo $ac_n "checking whether ${CC-cc} accepts -Kpic""... $ac_c" 1>&6
7326 echo "configure:7327: checking whether ${CC-cc} accepts -Kpic" >&5
7327 if eval "test \"`echo '$''{'ac_cv_prog_cc_Kpic'+set}'`\" = set"; then
7328 echo $ac_n "(cached) $ac_c" 1>&6
7330 echo 'void f(){}' > conftest.c
7331 if test -z "`${CC-cc} -Kpic -c conftest.c 2>&1`"; then
7332 ac_cv_prog_cc_Kpic
=yes
7334 ac_cv_prog_cc_Kpic
=no
7340 echo "$ac_t""$ac_cv_prog_cc_Kpic" 1>&6
7341 if test $ac_cv_prog_cc_Kpic = yes; then
7345 if test x
$PICFLAG = x
; then
7346 echo $ac_n "checking whether ${CC-cc} accepts -KPIC""... $ac_c" 1>&6
7347 echo "configure:7348: checking whether ${CC-cc} accepts -KPIC" >&5
7348 if eval "test \"`echo '$''{'ac_cv_prog_cc_KPIC'+set}'`\" = set"; then
7349 echo $ac_n "(cached) $ac_c" 1>&6
7351 echo 'void f(){}' > conftest.c
7352 if test -z "`${CC-cc} -KPIC -c conftest.c 2>&1`"; then
7353 ac_cv_prog_cc_KPIC
=yes
7355 ac_cv_prog_cc_KPIC
=no
7361 echo "$ac_t""$ac_cv_prog_cc_KPIC" 1>&6
7362 if test $ac_cv_prog_cc_KPIC = yes; then
7369 echo $ac_n "checking for long long""... $ac_c" 1>&6
7370 echo "configure:7371: checking for long long" >&5
7371 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
7372 echo $ac_n "(cached) $ac_c" 1>&6
7375 if test "$cross_compiling" = yes; then
7376 samba_cv_have_longlong
=cross
7378 cat > conftest.
$ac_ext <<EOF
7379 #line 7380 "configure"
7380 #include "confdefs.h"
7382 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
7384 if { (eval echo configure
:7385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
7386 samba_cv_have_longlong
=yes
7388 echo "configure: failed program was:" >&5
7389 cat conftest.
$ac_ext >&5
7391 samba_cv_have_longlong
=no
7398 echo "$ac_t""$samba_cv_have_longlong" 1>&6
7399 if test x
"$samba_cv_have_longlong" = x
"yes"; then
7400 cat >> confdefs.h
<<\EOF
7401 #define HAVE_LONGLONG 1
7406 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
7407 echo "configure:7408: checking for 64 bit off_t" >&5
7408 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
7409 echo $ac_n "(cached) $ac_c" 1>&6
7412 if test "$cross_compiling" = yes; then
7413 samba_cv_SIZEOF_OFF_T
=cross
7415 cat > conftest.
$ac_ext <<EOF
7416 #line 7417 "configure"
7417 #include "confdefs.h"
7419 #include <sys/stat.h>
7420 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
7422 if { (eval echo configure
:7423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
7424 samba_cv_SIZEOF_OFF_T
=yes
7426 echo "configure: failed program was:" >&5
7427 cat conftest.
$ac_ext >&5
7429 samba_cv_SIZEOF_OFF_T
=no
7436 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
7437 if test x
"$samba_cv_SIZEOF_OFF_T" = x
"yes"; then
7438 cat >> confdefs.h
<<\EOF
7439 #define SIZEOF_OFF_T 8
7444 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
7445 echo "configure:7446: checking for off64_t" >&5
7446 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
7447 echo $ac_n "(cached) $ac_c" 1>&6
7450 if test "$cross_compiling" = yes; then
7451 samba_cv_HAVE_OFF64_T
=cross
7453 cat > conftest.
$ac_ext <<EOF
7454 #line 7455 "configure"
7455 #include "confdefs.h"
7457 #include <sys/stat.h>
7458 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
7460 if { (eval echo configure
:7461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
7462 samba_cv_HAVE_OFF64_T
=yes
7464 echo "configure: failed program was:" >&5
7465 cat conftest.
$ac_ext >&5
7467 samba_cv_HAVE_OFF64_T
=no
7474 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
7475 if test x
"$samba_cv_HAVE_OFF64_T" = x
"yes"; then
7476 cat >> confdefs.h
<<\EOF
7477 #define HAVE_OFF64_T 1
7482 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
7483 echo "configure:7484: checking for 64 bit ino_t" >&5
7484 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
7485 echo $ac_n "(cached) $ac_c" 1>&6
7488 if test "$cross_compiling" = yes; then
7489 samba_cv_SIZEOF_INO_T
=cross
7491 cat > conftest.
$ac_ext <<EOF
7492 #line 7493 "configure"
7493 #include "confdefs.h"
7495 #include <sys/stat.h>
7496 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
7498 if { (eval echo configure
:7499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
7500 samba_cv_SIZEOF_INO_T
=yes
7502 echo "configure: failed program was:" >&5
7503 cat conftest.
$ac_ext >&5
7505 samba_cv_SIZEOF_INO_T
=no
7512 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
7513 if test x
"$samba_cv_SIZEOF_INO_T" = x
"yes"; then
7514 cat >> confdefs.h
<<\EOF
7515 #define SIZEOF_INO_T 8
7520 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
7521 echo "configure:7522: checking for ino64_t" >&5
7522 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
7523 echo $ac_n "(cached) $ac_c" 1>&6
7526 if test "$cross_compiling" = yes; then
7527 samba_cv_HAVE_INO64_T
=cross
7529 cat > conftest.
$ac_ext <<EOF
7530 #line 7531 "configure"
7531 #include "confdefs.h"
7533 #include <sys/stat.h>
7534 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
7536 if { (eval echo configure
:7537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
7538 samba_cv_HAVE_INO64_T
=yes
7540 echo "configure: failed program was:" >&5
7541 cat conftest.
$ac_ext >&5
7543 samba_cv_HAVE_INO64_T
=no
7550 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
7551 if test x
"$samba_cv_HAVE_INO64_T" = x
"yes"; then
7552 cat >> confdefs.h
<<\EOF
7553 #define HAVE_INO64_T 1
7558 echo $ac_n "checking for union semun""... $ac_c" 1>&6
7559 echo "configure:7560: checking for union semun" >&5
7560 if eval "test \"`echo '$''{'samba_cv_HAVE_UNION_SEMUN'+set}'`\" = set"; then
7561 echo $ac_n "(cached) $ac_c" 1>&6
7564 if test "$cross_compiling" = yes; then
7565 samba_cv_HAVE_UNION_SEMUN
=cross
7567 cat > conftest.
$ac_ext <<EOF
7568 #line 7569 "configure"
7569 #include "confdefs.h"
7571 #include <sys/types.h>
7572 #include <sys/ipc.h>
7573 #include <sys/sem.h>
7574 main() { union semun ss; exit(0); }
7576 if { (eval echo configure
:7577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
7578 samba_cv_HAVE_UNION_SEMUN
=yes
7580 echo "configure: failed program was:" >&5
7581 cat conftest.
$ac_ext >&5
7583 samba_cv_HAVE_UNION_SEMUN
=no
7590 echo "$ac_t""$samba_cv_HAVE_UNION_SEMUN" 1>&6
7591 if test x
"$samba_cv_HAVE_UNION_SEMUN" = x
"yes"; then
7592 cat >> confdefs.h
<<\EOF
7593 #define HAVE_UNION_SEMUN 1
7598 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
7599 echo "configure:7600: checking for unsigned char" >&5
7600 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
7601 echo $ac_n "(cached) $ac_c" 1>&6
7604 if test "$cross_compiling" = yes; then
7605 samba_cv_HAVE_UNSIGNED_CHAR
=cross
7607 cat > conftest.
$ac_ext <<EOF
7608 #line 7609 "configure"
7609 #include "confdefs.h"
7611 main() { char c; c=250; exit((c > 0)?0:1); }
7613 if { (eval echo configure
:7614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
7615 samba_cv_HAVE_UNSIGNED_CHAR
=yes
7617 echo "configure: failed program was:" >&5
7618 cat conftest.
$ac_ext >&5
7620 samba_cv_HAVE_UNSIGNED_CHAR
=no
7627 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
7628 if test x
"$samba_cv_HAVE_UNSIGNED_CHAR" = x
"yes"; then
7629 cat >> confdefs.h
<<\EOF
7630 #define HAVE_UNSIGNED_CHAR 1
7635 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
7636 echo "configure:7637: checking for sin_len in sock" >&5
7637 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
7638 echo $ac_n "(cached) $ac_c" 1>&6
7641 cat > conftest.
$ac_ext <<EOF
7642 #line 7643 "configure"
7643 #include "confdefs.h"
7644 #include <sys/types.h>
7645 #include <sys/socket.h>
7646 #include <netinet/in.h>
7648 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
7651 if { (eval echo configure
:7652: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7653 samba_cv_HAVE_SOCK_SIN_LEN
=yes
7655 echo "configure: failed program was:" >&5
7656 cat conftest.
$ac_ext >&5
7658 samba_cv_HAVE_SOCK_SIN_LEN
=no
7663 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
7664 if test x
"$samba_cv_HAVE_SOCK_SIN_LEN" = x
"yes"; then
7665 cat >> confdefs.h
<<\EOF
7666 #define HAVE_SOCK_SIN_LEN 1
7671 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
7672 echo "configure:7673: checking whether seekdir returns void" >&5
7673 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
7674 echo $ac_n "(cached) $ac_c" 1>&6
7677 cat > conftest.
$ac_ext <<EOF
7678 #line 7679 "configure"
7679 #include "confdefs.h"
7680 #include <sys/types.h>
7682 void seekdir(DIR *d, long loc) { return; }
7687 if { (eval echo configure
:7688: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7689 samba_cv_SEEKDIR_RETURNS_VOID
=yes
7691 echo "configure: failed program was:" >&5
7692 cat conftest.
$ac_ext >&5
7694 samba_cv_SEEKDIR_RETURNS_VOID
=no
7699 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
7700 if test x
"$samba_cv_SEEKDIR_RETURNS_VOID" = x
"yes"; then
7701 cat >> confdefs.h
<<\EOF
7702 #define SEEKDIR_RETURNS_VOID 1
7707 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
7708 echo "configure:7709: checking for __FILE__ macro" >&5
7709 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
7710 echo $ac_n "(cached) $ac_c" 1>&6
7713 cat > conftest.
$ac_ext <<EOF
7714 #line 7715 "configure"
7715 #include "confdefs.h"
7718 printf("%s\n", __FILE__);
7721 if { (eval echo configure
:7722: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7723 samba_cv_HAVE_FILE_MACRO
=yes
7725 echo "configure: failed program was:" >&5
7726 cat conftest.
$ac_ext >&5
7728 samba_cv_HAVE_FILE_MACRO
=no
7733 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
7734 if test x
"$samba_cv_HAVE_FILE_MACRO" = x
"yes"; then
7735 cat >> confdefs.h
<<\EOF
7736 #define HAVE_FILE_MACRO 1
7741 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
7742 echo "configure:7743: checking for __FUNCTION__ macro" >&5
7743 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
7744 echo $ac_n "(cached) $ac_c" 1>&6
7747 cat > conftest.
$ac_ext <<EOF
7748 #line 7749 "configure"
7749 #include "confdefs.h"
7752 printf("%s\n", __FUNCTION__);
7755 if { (eval echo configure
:7756: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7757 samba_cv_HAVE_FUNCTION_MACRO
=yes
7759 echo "configure: failed program was:" >&5
7760 cat conftest.
$ac_ext >&5
7762 samba_cv_HAVE_FUNCTION_MACRO
=no
7767 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
7768 if test x
"$samba_cv_HAVE_FUNCTION_MACRO" = x
"yes"; then
7769 cat >> confdefs.h
<<\EOF
7770 #define HAVE_FUNCTION_MACRO 1
7775 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
7776 echo "configure:7777: checking if gettimeofday takes tz argument" >&5
7777 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
7778 echo $ac_n "(cached) $ac_c" 1>&6
7781 if test "$cross_compiling" = yes; then
7782 samba_cv_HAVE_GETTIMEOFDAY_TZ
=cross
7784 cat > conftest.
$ac_ext <<EOF
7785 #line 7786 "configure"
7786 #include "confdefs.h"
7788 #include <sys/time.h>
7790 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
7792 if { (eval echo configure
:7793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
7794 samba_cv_HAVE_GETTIMEOFDAY_TZ
=yes
7796 echo "configure: failed program was:" >&5
7797 cat conftest.
$ac_ext >&5
7799 samba_cv_HAVE_GETTIMEOFDAY_TZ
=no
7806 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
7807 if test x
"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x
"yes"; then
7808 cat >> confdefs.h
<<\EOF
7809 #define HAVE_GETTIMEOFDAY_TZ 1
7815 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
7816 echo "configure:7817: checking for broken readdir" >&5
7817 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
7818 echo $ac_n "(cached) $ac_c" 1>&6
7821 if test "$cross_compiling" = yes; then
7822 samba_cv_HAVE_BROKEN_READDIR
=cross
7824 cat > conftest.
$ac_ext <<EOF
7825 #line 7826 "configure"
7826 #include "confdefs.h"
7827 #include <sys/types.h>
7829 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
7830 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
7831 di->d_name[0] == 0) exit(0); exit(1);}
7833 if { (eval echo configure
:7834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
7835 samba_cv_HAVE_BROKEN_READDIR
=yes
7837 echo "configure: failed program was:" >&5
7838 cat conftest.
$ac_ext >&5
7840 samba_cv_HAVE_BROKEN_READDIR
=no
7847 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
7848 if test x
"$samba_cv_HAVE_BROKEN_READDIR" = x
"yes"; then
7849 cat >> confdefs.h
<<\EOF
7850 #define HAVE_BROKEN_READDIR 1
7855 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
7856 echo "configure:7857: checking for utimbuf" >&5
7857 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
7858 echo $ac_n "(cached) $ac_c" 1>&6
7861 cat > conftest.
$ac_ext <<EOF
7862 #line 7863 "configure"
7863 #include "confdefs.h"
7864 #include <sys/types.h>
7867 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
7870 if { (eval echo configure
:7871: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7872 samba_cv_HAVE_UTIMBUF
=yes
7874 echo "configure: failed program was:" >&5
7875 cat conftest.
$ac_ext >&5
7877 samba_cv_HAVE_UTIMBUF
=no
7882 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
7883 if test x
"$samba_cv_HAVE_UTIMBUF" = x
"yes"; then
7884 cat >> confdefs.h
<<\EOF
7885 #define HAVE_UTIMBUF 1
7890 echo $ac_n "checking for kernel oplock type definitions""... $ac_c" 1>&6
7891 echo "configure:7892: checking for kernel oplock type definitions" >&5
7892 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS'+set}'`\" = set"; then
7893 echo $ac_n "(cached) $ac_c" 1>&6
7896 cat > conftest.
$ac_ext <<EOF
7897 #line 7898 "configure"
7898 #include "confdefs.h"
7899 #include <sys/types.h>
7902 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
7905 if { (eval echo configure
:7906: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7907 samba_cv_HAVE_KERNEL_OPLOCKS
=yes
7909 echo "configure: failed program was:" >&5
7910 cat conftest.
$ac_ext >&5
7912 samba_cv_HAVE_KERNEL_OPLOCKS
=no
7917 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS" 1>&6
7918 if test x
"$samba_cv_HAVE_KERNEL_OPLOCKS" = x
"yes"; then
7919 cat >> confdefs.h
<<\EOF
7920 #define HAVE_KERNEL_OPLOCKS 1
7925 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
7926 echo "configure:7927: checking for irix specific capabilities" >&5
7927 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
7928 echo $ac_n "(cached) $ac_c" 1>&6
7931 if test "$cross_compiling" = yes; then
7932 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=cross
7934 cat > conftest.
$ac_ext <<EOF
7935 #line 7936 "configure"
7936 #include "confdefs.h"
7937 #include <sys/types.h>
7938 #include <sys/capability.h>
7941 if ((cap = cap_get_proc()) == NULL)
7943 cap->cap_effective |= CAP_NETWORK_MGT;
7944 cap->cap_inheritable |= CAP_NETWORK_MGT;
7950 if { (eval echo configure
:7951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
7952 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=yes
7954 echo "configure: failed program was:" >&5
7955 cat conftest.
$ac_ext >&5
7957 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=no
7964 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
7965 if test x
"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x
"yes"; then
7966 cat >> confdefs.h
<<\EOF
7967 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
7973 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
7974 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
7977 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
7978 echo "configure:7979: checking for int16 typedef included by rpc/rpc.h" >&5
7979 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
7980 echo $ac_n "(cached) $ac_c" 1>&6
7983 cat > conftest.
$ac_ext <<EOF
7984 #line 7985 "configure"
7985 #include "confdefs.h"
7986 #include <sys/types.h>
7987 #if defined(HAVE_RPC_RPC_H)
7988 #include <rpc/rpc.h>
7994 if { (eval echo configure
:7995: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7996 samba_cv_HAVE_INT16_FROM_RPC_RPC_H
=yes
7998 echo "configure: failed program was:" >&5
7999 cat conftest.
$ac_ext >&5
8001 samba_cv_HAVE_INT16_FROM_RPC_RPC_H
=no
8006 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
8007 if test x
"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x
"yes"; then
8008 cat >> confdefs.h
<<\EOF
8009 #define HAVE_INT16_FROM_RPC_RPC_H 1
8014 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
8015 echo "configure:8016: checking for uint16 typedef included by rpc/rpc.h" >&5
8016 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
8017 echo $ac_n "(cached) $ac_c" 1>&6
8020 cat > conftest.
$ac_ext <<EOF
8021 #line 8022 "configure"
8022 #include "confdefs.h"
8023 #include <sys/types.h>
8024 #if defined(HAVE_RPC_RPC_H)
8025 #include <rpc/rpc.h>
8031 if { (eval echo configure
:8032: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8033 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H
=yes
8035 echo "configure: failed program was:" >&5
8036 cat conftest.
$ac_ext >&5
8038 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H
=no
8043 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
8044 if test x
"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x
"yes"; then
8045 cat >> confdefs.h
<<\EOF
8046 #define HAVE_UINT16_FROM_RPC_RPC_H 1
8051 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
8052 echo "configure:8053: checking for int32 typedef included by rpc/rpc.h" >&5
8053 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
8054 echo $ac_n "(cached) $ac_c" 1>&6
8057 cat > conftest.
$ac_ext <<EOF
8058 #line 8059 "configure"
8059 #include "confdefs.h"
8060 #include <sys/types.h>
8061 #if defined(HAVE_RPC_RPC_H)
8062 #include <rpc/rpc.h>
8068 if { (eval echo configure
:8069: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8070 samba_cv_HAVE_INT32_FROM_RPC_RPC_H
=yes
8072 echo "configure: failed program was:" >&5
8073 cat conftest.
$ac_ext >&5
8075 samba_cv_HAVE_INT32_FROM_RPC_RPC_H
=no
8080 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
8081 if test x
"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x
"yes"; then
8082 cat >> confdefs.h
<<\EOF
8083 #define HAVE_INT32_FROM_RPC_RPC_H 1
8088 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
8089 echo "configure:8090: checking for uint32 typedef included by rpc/rpc.h" >&5
8090 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
8091 echo $ac_n "(cached) $ac_c" 1>&6
8094 cat > conftest.
$ac_ext <<EOF
8095 #line 8096 "configure"
8096 #include "confdefs.h"
8097 #include <sys/types.h>
8098 #if defined(HAVE_RPC_RPC_H)
8099 #include <rpc/rpc.h>
8105 if { (eval echo configure
:8106: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8107 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H
=yes
8109 echo "configure: failed program was:" >&5
8110 cat conftest.
$ac_ext >&5
8112 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H
=no
8117 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
8118 if test x
"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x
"yes"; then
8119 cat >> confdefs.h
<<\EOF
8120 #define HAVE_UINT32_FROM_RPC_RPC_H 1
8125 echo $ac_n "checking for test routines""... $ac_c" 1>&6
8126 echo "configure:8127: checking for test routines" >&5
8127 if test "$cross_compiling" = yes; then
8128 echo "configure: warning: cannot run when cross-compiling" 1>&2
8130 cat > conftest.
$ac_ext <<EOF
8131 #line 8132 "configure"
8132 #include "confdefs.h"
8133 #include "${srcdir-.}/tests/trivial.c"
8135 if { (eval echo configure
:8136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8137 echo "$ac_t""yes" 1>&6
8139 echo "configure: failed program was:" >&5
8140 cat conftest.
$ac_ext >&5
8142 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
8148 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
8149 echo "configure:8150: checking for ftruncate extend" >&5
8150 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
8151 echo $ac_n "(cached) $ac_c" 1>&6
8154 if test "$cross_compiling" = yes; then
8155 samba_cv_HAVE_FTRUNCATE_EXTEND
=cross
8157 cat > conftest.
$ac_ext <<EOF
8158 #line 8159 "configure"
8159 #include "confdefs.h"
8160 #include "${srcdir-.}/tests/ftruncate.c"
8162 if { (eval echo configure
:8163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8164 samba_cv_HAVE_FTRUNCATE_EXTEND
=yes
8166 echo "configure: failed program was:" >&5
8167 cat conftest.
$ac_ext >&5
8169 samba_cv_HAVE_FTRUNCATE_EXTEND
=no
8176 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
8177 if test x
"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x
"yes"; then
8178 cat >> confdefs.h
<<\EOF
8179 #define HAVE_FTRUNCATE_EXTEND 1
8184 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
8185 echo "configure:8186: checking for broken getgroups" >&5
8186 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
8187 echo $ac_n "(cached) $ac_c" 1>&6
8190 if test "$cross_compiling" = yes; then
8191 samba_cv_HAVE_BROKEN_GETGROUPS
=cross
8193 cat > conftest.
$ac_ext <<EOF
8194 #line 8195 "configure"
8195 #include "confdefs.h"
8196 #include "${srcdir-.}/tests/getgroups.c"
8198 if { (eval echo configure
:8199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8200 samba_cv_HAVE_BROKEN_GETGROUPS
=yes
8202 echo "configure: failed program was:" >&5
8203 cat conftest.
$ac_ext >&5
8205 samba_cv_HAVE_BROKEN_GETGROUPS
=no
8212 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
8213 if test x
"$samba_cv_HAVE_BROKEN_GETGROUPS" = x
"yes"; then
8214 cat >> confdefs.h
<<\EOF
8215 #define HAVE_BROKEN_GETGROUPS 1
8220 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
8221 echo "configure:8222: checking whether getpass should be replaced" >&5
8222 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
8223 echo $ac_n "(cached) $ac_c" 1>&6
8226 SAVE_CPPFLAGS
="$CPPFLAGS"
8227 CPPFLAGS
="$CPPFLAGS -I${srcdir-.}/include -I${srcdir-.}/ubiqx"
8228 cat > conftest.
$ac_ext <<EOF
8229 #line 8230 "configure"
8230 #include "confdefs.h"
8232 #define REPLACE_GETPASS 1
8233 #define NO_CONFIG_H 1
8234 #define main dont_declare_main
8235 #include "${srcdir-.}/lib/getsmbpass.c"
8242 if { (eval echo configure
:8243: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8244 samba_cv_REPLACE_GETPASS
=yes
8246 echo "configure: failed program was:" >&5
8247 cat conftest.
$ac_ext >&5
8249 samba_cv_REPLACE_GETPASS
=no
8252 CPPFLAGS
="$SAVE_CPPFLAGS"
8256 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
8257 if test x
"$samba_cv_REPLACE_GETPASS" = x
"yes"; then
8258 cat >> confdefs.h
<<\EOF
8259 #define REPLACE_GETPASS 1
8264 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
8265 echo "configure:8266: checking for broken inet_ntoa" >&5
8266 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
8267 echo $ac_n "(cached) $ac_c" 1>&6
8270 if test "$cross_compiling" = yes; then
8271 samba_cv_REPLACE_INET_NTOA
=cross
8273 cat > conftest.
$ac_ext <<EOF
8274 #line 8275 "configure"
8275 #include "confdefs.h"
8278 #include <sys/types.h>
8279 #include <netinet/in.h>
8280 #include <arpa/inet.h>
8281 main() { struct in_addr ip; ip.s_addr = 0x12345678;
8282 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
8283 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
8286 if { (eval echo configure
:8287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8288 samba_cv_REPLACE_INET_NTOA
=yes
8290 echo "configure: failed program was:" >&5
8291 cat conftest.
$ac_ext >&5
8293 samba_cv_REPLACE_INET_NTOA
=no
8300 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
8301 if test x
"$samba_cv_REPLACE_INET_NTOA" = x
"yes"; then
8302 cat >> confdefs.h
<<\EOF
8303 #define REPLACE_INET_NTOA 1
8308 echo $ac_n "checking for root""... $ac_c" 1>&6
8309 echo "configure:8310: checking for root" >&5
8310 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
8311 echo $ac_n "(cached) $ac_c" 1>&6
8314 if test "$cross_compiling" = yes; then
8315 samba_cv_HAVE_ROOT
=cross
8317 cat > conftest.
$ac_ext <<EOF
8318 #line 8319 "configure"
8319 #include "confdefs.h"
8320 main() { exit(getuid() != 0); }
8322 if { (eval echo configure
:8323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8324 samba_cv_HAVE_ROOT
=yes
8326 echo "configure: failed program was:" >&5
8327 cat conftest.
$ac_ext >&5
8329 samba_cv_HAVE_ROOT
=no
8336 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
8337 if test x
"$samba_cv_HAVE_ROOT" = x
"yes"; then
8338 cat >> confdefs.h
<<\EOF
8343 echo "configure: warning: running as non-root will disable some tests" 1>&2
8347 echo $ac_n "checking for netmask ifconf""... $ac_c" 1>&6
8348 echo "configure:8349: checking for netmask ifconf" >&5
8349 if eval "test \"`echo '$''{'samba_cv_HAVE_NETMASK_IFCONF'+set}'`\" = set"; then
8350 echo $ac_n "(cached) $ac_c" 1>&6
8353 if test "$cross_compiling" = yes; then
8354 samba_cv_HAVE_NETMASK_IFCONF
=cross
8356 cat > conftest.
$ac_ext <<EOF
8357 #line 8358 "configure"
8358 #include "confdefs.h"
8360 #define HAVE_NETMASK_IFCONF 1
8362 #include "${srcdir-.}/lib/netmask.c"
8364 if { (eval echo configure
:8365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8366 samba_cv_HAVE_NETMASK_IFCONF
=yes
8368 echo "configure: failed program was:" >&5
8369 cat conftest.
$ac_ext >&5
8371 samba_cv_HAVE_NETMASK_IFCONF
=no
8378 echo "$ac_t""$samba_cv_HAVE_NETMASK_IFCONF" 1>&6
8379 if test x
"$samba_cv_HAVE_NETMASK_IFCONF" = x
"yes"; then
8380 netmask
=yes;cat >> confdefs.h
<<\EOF
8381 #define HAVE_NETMASK_IFCONF 1
8386 if test $netmask = no
; then
8387 echo $ac_n "checking for netmask ifreq""... $ac_c" 1>&6
8388 echo "configure:8389: checking for netmask ifreq" >&5
8389 if eval "test \"`echo '$''{'samba_cv_HAVE_NETMASK_IFREQ'+set}'`\" = set"; then
8390 echo $ac_n "(cached) $ac_c" 1>&6
8393 if test "$cross_compiling" = yes; then
8394 samba_cv_HAVE_NETMASK_IFREQ
=cross
8396 cat > conftest.
$ac_ext <<EOF
8397 #line 8398 "configure"
8398 #include "confdefs.h"
8400 #define HAVE_NETMASK_IFREQ 1
8402 #include "${srcdir-.}/lib/netmask.c"
8404 if { (eval echo configure
:8405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8406 samba_cv_HAVE_NETMASK_IFREQ
=yes
8408 echo "configure: failed program was:" >&5
8409 cat conftest.
$ac_ext >&5
8411 samba_cv_HAVE_NETMASK_IFREQ
=no
8418 echo "$ac_t""$samba_cv_HAVE_NETMASK_IFREQ" 1>&6
8419 if test x
"$samba_cv_HAVE_NETMASK_IFREQ" = x
"yes"; then
8420 netmask
=yes;cat >> confdefs.h
<<\EOF
8421 #define HAVE_NETMASK_IFREQ 1
8427 if test $netmask = no
; then
8428 echo $ac_n "checking for netmask AIX""... $ac_c" 1>&6
8429 echo "configure:8430: checking for netmask AIX" >&5
8430 if eval "test \"`echo '$''{'samba_cv_HAVE_NETMASK_AIX'+set}'`\" = set"; then
8431 echo $ac_n "(cached) $ac_c" 1>&6
8434 if test "$cross_compiling" = yes; then
8435 samba_cv_HAVE_NETMASK_AIX
=cross
8437 cat > conftest.
$ac_ext <<EOF
8438 #line 8439 "configure"
8439 #include "confdefs.h"
8441 #define HAVE_NETMASK_AIX 1
8443 #include "${srcdir-.}/lib/netmask.c"
8445 if { (eval echo configure
:8446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8447 samba_cv_HAVE_NETMASK_AIX
=yes
8449 echo "configure: failed program was:" >&5
8450 cat conftest.
$ac_ext >&5
8452 samba_cv_HAVE_NETMASK_AIX
=no
8459 echo "$ac_t""$samba_cv_HAVE_NETMASK_AIX" 1>&6
8460 if test x
"$samba_cv_HAVE_NETMASK_AIX" = x
"yes"; then
8461 netmask
=yes;cat >> confdefs.h
<<\EOF
8462 #define HAVE_NETMASK_AIX 1
8468 echo $ac_n "checking for trapdoor seteuid""... $ac_c" 1>&6
8469 echo "configure:8470: checking for trapdoor seteuid" >&5
8470 if eval "test \"`echo '$''{'samba_cv_HAVE_TRAPDOOR_UID'+set}'`\" = set"; then
8471 echo $ac_n "(cached) $ac_c" 1>&6
8474 if test "$cross_compiling" = yes; then
8477 cat > conftest.
$ac_ext <<EOF
8478 #line 8479 "configure"
8479 #include "confdefs.h"
8480 #include "${srcdir-.}/tests/trapdoor.c"
8482 if { (eval echo configure
:8483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8484 samba_cv_HAVE_TRAPDOOR_UID
=no
8486 echo "configure: failed program was:" >&5
8487 cat conftest.
$ac_ext >&5
8489 samba_cv_HAVE_TRAPDOOR_UID
=yes
8496 echo "$ac_t""$samba_cv_HAVE_TRAPDOOR_UID" 1>&6
8497 if test x
"$samba_cv_HAVE_TRAPDOOR_UID" = x
"yes"; then
8498 cat >> confdefs.h
<<\EOF
8499 #define HAVE_TRAPDOOR_UID 1
8504 echo $ac_n "checking for shared mmap""... $ac_c" 1>&6
8505 echo "configure:8506: checking for shared mmap" >&5
8506 if eval "test \"`echo '$''{'samba_cv_HAVE_SHARED_MMAP'+set}'`\" = set"; then
8507 echo $ac_n "(cached) $ac_c" 1>&6
8510 if test "$cross_compiling" = yes; then
8511 samba_cv_HAVE_SHARED_MMAP
=cross
8513 cat > conftest.
$ac_ext <<EOF
8514 #line 8515 "configure"
8515 #include "confdefs.h"
8516 #include "${srcdir-.}/tests/shared_mmap.c"
8518 if { (eval echo configure
:8519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8520 samba_cv_HAVE_SHARED_MMAP
=yes
8522 echo "configure: failed program was:" >&5
8523 cat conftest.
$ac_ext >&5
8525 samba_cv_HAVE_SHARED_MMAP
=no
8532 echo "$ac_t""$samba_cv_HAVE_SHARED_MMAP" 1>&6
8533 if test x
"$samba_cv_HAVE_SHARED_MMAP" = x
"yes"; then
8534 cat >> confdefs.h
<<\EOF
8535 #define HAVE_SHARED_MMAP 1
8540 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
8541 echo "configure:8542: checking for fcntl locking" >&5
8542 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
8543 echo $ac_n "(cached) $ac_c" 1>&6
8546 if test "$cross_compiling" = yes; then
8547 samba_cv_HAVE_FCNTL_LOCK
=cross
8549 cat > conftest.
$ac_ext <<EOF
8550 #line 8551 "configure"
8551 #include "confdefs.h"
8552 #include "${srcdir-.}/tests/fcntl_lock.c"
8554 if { (eval echo configure
:8555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8556 samba_cv_HAVE_FCNTL_LOCK
=yes
8558 echo "configure: failed program was:" >&5
8559 cat conftest.
$ac_ext >&5
8561 samba_cv_HAVE_FCNTL_LOCK
=no
8568 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
8569 if test x
"$samba_cv_HAVE_FCNTL_LOCK" = x
"yes"; then
8570 cat >> confdefs.h
<<\EOF
8571 #define HAVE_FCNTL_LOCK 1
8576 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
8577 echo "configure:8578: checking for 64 bit fcntl locking" >&5
8578 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
8579 echo $ac_n "(cached) $ac_c" 1>&6
8582 if test "$cross_compiling" = yes; then
8583 samba_cv_HAVE_STRUCT_FLOCK64
=cross
8585 cat > conftest.
$ac_ext <<EOF
8586 #line 8587 "configure"
8587 #include "confdefs.h"
8596 #ifdef HAVE_SYS_FCNTL_H
8597 #include <sys/fcntl.h>
8599 main() { struct flock64 fl64;
8600 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
8607 if { (eval echo configure
:8608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8609 samba_cv_HAVE_STRUCT_FLOCK64
=yes
8611 echo "configure: failed program was:" >&5
8612 cat conftest.
$ac_ext >&5
8614 samba_cv_HAVE_STRUCT_FLOCK64
=no
8621 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
8622 if test x
"$samba_cv_HAVE_STRUCT_FLOCK64" = x
"yes"; then
8623 cat >> confdefs.h
<<\EOF
8624 #define HAVE_STRUCT_FLOCK64 1
8629 echo $ac_n "checking for sysv ipc""... $ac_c" 1>&6
8630 echo "configure:8631: checking for sysv ipc" >&5
8631 if eval "test \"`echo '$''{'samba_cv_HAVE_SYSV_IPC'+set}'`\" = set"; then
8632 echo $ac_n "(cached) $ac_c" 1>&6
8635 if test "$cross_compiling" = yes; then
8636 samba_cv_HAVE_SYSV_IPC
=cross
8638 cat > conftest.
$ac_ext <<EOF
8639 #line 8640 "configure"
8640 #include "confdefs.h"
8641 #include "${srcdir-.}/tests/sysv_ipc.c"
8643 if { (eval echo configure
:8644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8645 samba_cv_HAVE_SYSV_IPC
=yes
8647 echo "configure: failed program was:" >&5
8648 cat conftest.
$ac_ext >&5
8650 samba_cv_HAVE_SYSV_IPC
=no
8657 echo "$ac_t""$samba_cv_HAVE_SYSV_IPC" 1>&6
8658 if test x
"$samba_cv_HAVE_SYSV_IPC" = x
"yes"; then
8659 cat >> confdefs.h
<<\EOF
8660 #define HAVE_SYSV_IPC 1
8665 #################################################
8666 # decide for the default sam-password-database
8667 echo $ac_n "checking which sam password database to use""... $ac_c" 1>&6
8668 echo "configure:8669: checking which sam password database to use" >&5
8669 # Check whether --with-sam_pwdb or --without-sam_pwdb was given.
8670 if test "${with_sam_pwdb+set}" = set; then
8671 withval
="$with_sam_pwdb"
8674 SAM_PWDB_LIB
='$(SAMRPASSLIB) $(SMBPWLIB)'
8675 sampwlibname
="passdb"
8678 SAM_PWDB_LIB
='$(SAMRTDBLIB)'
8682 SAM_PWDB_LIB
='$(SAMRNT5LDAPLIB)'
8683 sampwlibname
="nt5ldap (must also specify --with-nt5ldap)"
8686 SAM_PWDB_LIB
='$(SAMRPASSLIB)'
8687 sampwlibname
="passdb (unknown specified!)"
8692 SAM_PWDB_LIB
='$(SAMRPASSLIB) $(SMBPWLIB)'
8693 sampwlibname
="passdb (default)"
8697 echo "$ac_t""$sampwlibname" 1>&6
8701 #################################################
8702 # check for libmsrpc support
8703 echo $ac_n "checking whether to use libmsrpc""... $ac_c" 1>&6
8704 echo "configure:8705: checking whether to use libmsrpc" >&5
8705 # Check whether --with-libmsrpc or --without-libmsrpc was given.
8706 if test "${with_libmsrpc+set}" = set; then
8707 withval
="$with_libmsrpc"
8710 echo "$ac_t""yes" 1>&6
8711 cat >> confdefs.h
<<\EOF
8712 #define WITH_LIBMSRPC 1
8715 LIBMSRPC
="bin/libmsrpc.so"
8717 if test x
$ATTEMPT_LIBMSRPC32_BUILD = x
; then
8720 LIBMSRPC32
=bin
/libmsrpc
.32.so
8723 # Conditions under which libmsrpc should not be built.
8725 if test x
$PICFLAG = x
; then
8726 echo No support
for PIC code
- disabling libmsrpc
8732 echo "$ac_t""no" 1>&6
8736 echo "$ac_t""yes" 1>&6
8741 #################################################
8742 # check for libubiqx support
8743 echo $ac_n "checking whether to use libubiqx""... $ac_c" 1>&6
8744 echo "configure:8745: checking whether to use libubiqx" >&5
8745 # Check whether --with-libubiqx or --without-libubiqx was given.
8746 if test "${with_libubiqx+set}" = set; then
8747 withval
="$with_libubiqx"
8750 echo "$ac_t""yes" 1>&6
8751 cat >> confdefs.h
<<\EOF
8752 #define WITH_LIBUBIQX 1
8755 LIBUBIQX
="bin/libubiqx.so"
8757 if test x
$ATTEMPT_LIBUBIQX32_BUILD = x
; then
8760 LIBUBIQX32
=bin
/libubiqx
.32.so
8763 # Conditions under which libubiqx should not be built.
8765 if test x
$PICFLAG = x
; then
8766 echo No support
for PIC code
- disabling libubiqx
8772 echo "$ac_t""no" 1>&6
8776 echo "$ac_t""yes" 1>&6
8781 #################################################
8782 # check for libsamba support
8783 echo $ac_n "checking whether to use libsamba""... $ac_c" 1>&6
8784 echo "configure:8785: checking whether to use libsamba" >&5
8785 # Check whether --with-libsamba or --without-libsamba was given.
8786 if test "${with_libsamba+set}" = set; then
8787 withval
="$with_libsamba"
8790 echo "$ac_t""yes" 1>&6
8791 cat >> confdefs.h
<<\EOF
8792 #define WITH_LIBSAMBA 1
8795 LIBSAMBA
="bin/libsamba.so"
8797 if test x
$ATTEMPT_LIBSAMBA32_BUILD = x
; then
8800 LIBSAMBA32
=bin
/libsamba
.32.so
8803 # Conditions under which libsamba should not be built.
8805 if test x
$PICFLAG = x
; then
8806 echo No support
for PIC code
- disabling libsamba
8812 echo "$ac_t""no" 1>&6
8816 echo "$ac_t""yes" 1>&6
8821 #################################################
8822 # check for libnmb support
8823 echo $ac_n "checking whether to use libnmb""... $ac_c" 1>&6
8824 echo "configure:8825: checking whether to use libnmb" >&5
8825 # Check whether --with-libnmb or --without-libnmb was given.
8826 if test "${with_libnmb+set}" = set; then
8827 withval
="$with_libnmb"
8830 echo "$ac_t""yes" 1>&6
8831 cat >> confdefs.h
<<\EOF
8832 #define WITH_LIBNMB 1
8835 LIBNMB
="bin/libnmb.so"
8837 if test x
$ATTEMPT_LIBNMB32_BUILD = x
; then
8840 LIBNMB32
=bin
/libnmb
.32.so
8843 # Conditions under which libnmb should not be built.
8845 if test x
$PICFLAG = x
; then
8846 echo No support
for PIC code
- disabling libnmb
8852 echo "$ac_t""no" 1>&6
8856 echo "$ac_t""yes" 1>&6
8861 #################################################
8862 # check for libsmbpw support
8863 echo $ac_n "checking whether to use libsmbpw""... $ac_c" 1>&6
8864 echo "configure:8865: checking whether to use libsmbpw" >&5
8865 # Check whether --with-libsmbpw or --without-libsmbpw was given.
8866 if test "${with_libsmbpw+set}" = set; then
8867 withval
="$with_libsmbpw"
8870 echo "$ac_t""yes" 1>&6
8871 cat >> confdefs.h
<<\EOF
8872 #define WITH_LIBSMBPW 1
8875 LIBSMBPW
="bin/libsmbpw.so"
8877 if test x
$ATTEMPT_LIBSMBPW32_BUILD = x
; then
8880 LIBSMBPW32
=bin
/libsmbpw
.32.so
8883 # Conditions under which libsmbpw should not be built.
8885 if test x
$PICFLAG = x
; then
8886 echo No support
for PIC code
- disabling libsmbpw
8892 echo "$ac_t""no" 1>&6
8896 echo "$ac_t""yes" 1>&6
8902 #################################################
8903 # check for libsmb support
8904 echo $ac_n "checking whether to use libsmb""... $ac_c" 1>&6
8905 echo "configure:8906: checking whether to use libsmb" >&5
8906 # Check whether --with-libsmb or --without-libsmb was given.
8907 if test "${with_libsmb+set}" = set; then
8908 withval
="$with_libsmb"
8911 echo "$ac_t""yes" 1>&6
8912 cat >> confdefs.h
<<\EOF
8913 #define WITH_LIBSMB 1
8916 LIBSMB
="bin/libsmb.so"
8918 if test x
$ATTEMPT_LIBSMB32_BUILD = x
; then
8921 LIBSMB32
=bin
/libsmb
.32.so
8924 # Conditions under which libsmb should not be built.
8926 if test x
$PICFLAG = x
; then
8927 echo No support
for PIC code
- disabling libsmb
8933 echo "$ac_t""no" 1>&6
8937 echo "$ac_t""yes" 1>&6
8943 #################################################
8944 # check for smbwrapper support
8945 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
8946 echo "configure:8947: checking whether to use smbwrapper" >&5
8947 # Check whether --with-smbwrapper or --without-smbwrapper was given.
8948 if test "${with_smbwrapper+set}" = set; then
8949 withval
="$with_smbwrapper"
8952 echo "$ac_t""yes" 1>&6
8953 cat >> confdefs.h
<<\EOF
8954 #define WITH_SMBWRAPPER 1
8957 WRAP
="bin/smbsh bin/smbwrapper.so"
8959 if test x
$ATTEMPT_WRAP32_BUILD = x
; then
8962 WRAP32
=bin
/smbwrapper
.32.so
8965 # Conditions under which smbwrapper should not be built.
8967 if test x
$PICFLAG = x
; then
8968 echo No support
for PIC code
- disabling smbwrapper and smbsh
8971 elif test x
$ac_cv_func_syscall = xno
; then
8972 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
8978 echo "$ac_t""no" 1>&6
8982 echo "$ac_t""no" 1>&6
8987 #################################################
8988 # check for the AFS filesystem
8989 echo $ac_n "checking whether to use AFS""... $ac_c" 1>&6
8990 echo "configure:8991: checking whether to use AFS" >&5
8991 # Check whether --with-afs or --without-afs was given.
8992 if test "${with_afs+set}" = set; then
8996 echo "$ac_t""yes" 1>&6
8997 cat >> confdefs.h
<<\EOF
9003 echo "$ac_t""no" 1>&6
9007 echo "$ac_t""no" 1>&6
9013 #################################################
9014 # check for the DFS auth system
9015 echo $ac_n "checking whether to use DFS auth""... $ac_c" 1>&6
9016 echo "configure:9017: checking whether to use DFS auth" >&5
9017 # Check whether --with-dfs or --without-dfs was given.
9018 if test "${with_dfs+set}" = set; then
9022 echo "$ac_t""yes" 1>&6
9023 cat >> confdefs.h
<<\EOF
9029 echo "$ac_t""no" 1>&6
9033 echo "$ac_t""no" 1>&6
9038 #################################################
9039 # check for Kerberos IV auth system
9040 echo $ac_n "checking whether to use Kerberos IV""... $ac_c" 1>&6
9041 echo "configure:9042: checking whether to use Kerberos IV" >&5
9042 # Check whether --with-krb4 or --without-krb4 was given.
9043 if test "${with_krb4+set}" = set; then
9044 withval
="$with_krb4"
9045 echo "$ac_t""yes" 1>&6
9046 cat >> confdefs.h
<<\EOF
9050 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
9051 echo "configure:9052: checking for dn_expand in -lresolv" >&5
9052 ac_lib_var
=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
9053 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9054 echo $ac_n "(cached) $ac_c" 1>&6
9056 ac_save_LIBS
="$LIBS"
9057 LIBS
="-lresolv $LIBS"
9058 cat > conftest.
$ac_ext <<EOF
9059 #line 9060 "configure"
9060 #include "confdefs.h"
9061 /* Override any gcc2 internal prototype to avoid an error. */
9062 /* We use char because int might match the return type of a gcc2
9063 builtin and then its argument prototype would still apply. */
9070 if { (eval echo configure
:9071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9072 eval "ac_cv_lib_$ac_lib_var=yes"
9074 echo "configure: failed program was:" >&5
9075 cat conftest.
$ac_ext >&5
9077 eval "ac_cv_lib_$ac_lib_var=no"
9080 LIBS
="$ac_save_LIBS"
9083 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9084 echo "$ac_t""yes" 1>&6
9085 ac_tr_lib
=HAVE_LIB
`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9086 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9087 cat >> confdefs.h
<<EOF
9088 #define $ac_tr_lib 1
9091 LIBS
="-lresolv $LIBS"
9094 echo "$ac_t""no" 1>&6
9097 LIBS
="$LIBS -lkrb -ldes"
9098 CFLAGS
="$CFLAGS -I$withval/include"
9099 LDFLAGS
="$LDFLAGS -L$withval/lib"
9101 echo "$ac_t""no" 1>&6
9106 #################################################
9107 # check for automount support
9108 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
9109 echo "configure:9110: checking whether to use AUTOMOUNT" >&5
9110 # Check whether --with-automount or --without-automount was given.
9111 if test "${with_automount+set}" = set; then
9112 withval
="$with_automount"
9115 echo "$ac_t""yes" 1>&6
9116 cat >> confdefs.h
<<\EOF
9117 #define WITH_AUTOMOUNT 1
9122 echo "$ac_t""no" 1>&6
9126 echo "$ac_t""no" 1>&6
9131 #################################################
9132 # check for smbmount support
9133 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
9134 echo "configure:9135: checking whether to use SMBMOUNT" >&5
9135 # Check whether --with-smbmount or --without-smbmount was given.
9136 if test "${with_smbmount+set}" = set; then
9137 withval
="$with_smbmount"
9140 echo "$ac_t""yes" 1>&6
9141 cat >> confdefs.h
<<\EOF
9142 #define WITH_SMBMOUNT 1
9145 MPROGS
="bin/smbmount bin/smbmnt bin/smbumount"
9148 echo "$ac_t""no" 1>&6
9153 echo "$ac_t""no" 1>&6
9159 #################################################
9160 # check for a LDAP password database
9161 echo $ac_n "checking whether to use LDAP password database""... $ac_c" 1>&6
9162 echo "configure:9163: checking whether to use LDAP password database" >&5
9163 # Check whether --with-ldap or --without-ldap was given.
9164 if test "${with_ldap+set}" = set; then
9165 withval
="$with_ldap"
9168 echo "$ac_t""yes" 1>&6
9169 cat >> confdefs.h
<<\EOF
9173 LIBS
="$LIBS -lldap -llber"
9176 echo "$ac_t""no" 1>&6
9180 echo "$ac_t""no" 1>&6
9185 #################################################
9186 # check for a LDAP password database
9187 echo $ac_n "checking whether to use LDAP password database""... $ac_c" 1>&6
9188 echo "configure:9189: checking whether to use LDAP password database" >&5
9189 # Check whether --with-nt5ldap or --without-nt5ldap was given.
9190 if test "${with_nt5ldap+set}" = set; then
9191 withval
="$with_nt5ldap"
9194 echo "$ac_t""yes" 1>&6
9195 cat >> confdefs.h
<<\EOF
9196 #define WITH_NT5LDAP 1
9199 LIBS
="$LIBS -lldap -llber"
9202 echo "$ac_t""no" 1>&6
9206 echo "$ac_t""no" 1>&6
9211 #################################################
9212 # check for a LDAP password database
9213 echo $ac_n "checking whether to use LDAP password database""... $ac_c" 1>&6
9214 echo "configure:9215: checking whether to use LDAP password database" >&5
9215 # Check whether --with-nt5ldap or --without-nt5ldap was given.
9216 if test "${with_nt5ldap+set}" = set; then
9217 withval
="$with_nt5ldap"
9220 echo "$ac_t""yes" 1>&6
9221 cat >> confdefs.h
<<\EOF
9222 #define WITH_NT5LDAP 1
9225 LIBS
="$LIBS -lldap -llber"
9228 echo "$ac_t""no" 1>&6
9232 echo "$ac_t""no" 1>&6
9237 #################################################
9238 # check for a NISPLUS password database
9239 echo $ac_n "checking whether to use NISPLUS password database""... $ac_c" 1>&6
9240 echo "configure:9241: checking whether to use NISPLUS password database" >&5
9241 # Check whether --with-nisplus or --without-nisplus was given.
9242 if test "${with_nisplus+set}" = set; then
9243 withval
="$with_nisplus"
9246 echo "$ac_t""yes" 1>&6
9247 cat >> confdefs.h
<<\EOF
9248 #define WITH_NISPLUS 1
9253 echo "$ac_t""no" 1>&6
9257 echo "$ac_t""no" 1>&6
9262 #################################################
9263 # check for a NISPLUS_HOME support
9264 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
9265 echo "configure:9266: checking whether to use NISPLUS_HOME" >&5
9266 # Check whether --with-nisplus-home or --without-nisplus-home was given.
9267 if test "${with_nisplus_home+set}" = set; then
9268 withval
="$with_nisplus_home"
9271 echo "$ac_t""yes" 1>&6
9272 cat >> confdefs.h
<<\EOF
9273 #define WITH_NISPLUS_HOME 1
9278 echo "$ac_t""no" 1>&6
9282 echo "$ac_t""no" 1>&6
9287 #################################################
9288 # check for the secure socket layer
9289 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
9290 echo "configure:9291: checking whether to use SSL" >&5
9291 # Check whether --with-ssl or --without-ssl was given.
9292 if test "${with_ssl+set}" = set; then
9296 echo "$ac_t""yes" 1>&6
9297 cat >> confdefs.h
<<\EOF
9303 echo "$ac_t""no" 1>&6
9307 echo "$ac_t""no" 1>&6
9312 #################################################
9313 # check for experimental mmap support
9314 echo $ac_n "checking whether to use MMAP""... $ac_c" 1>&6
9315 echo "configure:9316: checking whether to use MMAP" >&5
9316 # Check whether --with-mmap or --without-mmap was given.
9317 if test "${with_mmap+set}" = set; then
9318 withval
="$with_mmap"
9321 echo "$ac_t""yes" 1>&6
9322 cat >> confdefs.h
<<\EOF
9328 echo "$ac_t""no" 1>&6
9332 echo "$ac_t""no" 1>&6
9337 #################################################
9338 # check for syslog logging
9339 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
9340 echo "configure:9341: checking whether to use syslog logging" >&5
9341 # Check whether --with-syslog or --without-syslog was given.
9342 if test "${with_syslog+set}" = set; then
9343 withval
="$with_syslog"
9346 echo "$ac_t""yes" 1>&6
9347 cat >> confdefs.h
<<\EOF
9348 #define WITH_SYSLOG 1
9353 echo "$ac_t""no" 1>&6
9357 echo "$ac_t""no" 1>&6
9362 #################################################
9363 # check for a shared memory profiling support
9364 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
9365 echo "configure:9366: checking whether to use profiling" >&5
9366 # Check whether --with-profile or --without-profile was given.
9367 if test "${with_profile+set}" = set; then
9368 withval
="$with_profile"
9371 echo "$ac_t""yes" 1>&6
9372 cat >> confdefs.h
<<\EOF
9373 #define WITH_PROFILE 1
9378 echo "$ac_t""no" 1>&6
9382 echo "$ac_t""no" 1>&6
9388 #################################################
9389 # check for experimental netatalk resource fork support
9390 echo $ac_n "checking whether to support netatalk""... $ac_c" 1>&6
9391 echo "configure:9392: checking whether to support netatalk" >&5
9392 # Check whether --with-netatalk or --without-netatalk was given.
9393 if test "${with_netatalk+set}" = set; then
9394 withval
="$with_netatalk"
9397 echo "$ac_t""yes" 1>&6
9398 cat >> confdefs.h
<<\EOF
9399 #define WITH_NETATALK 1
9404 echo "$ac_t""no" 1>&6
9408 echo "$ac_t""no" 1>&6
9413 #################################################
9414 # check for experimental disk-quotas support
9415 QUOTAOBJS
=noquotas.o
9417 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
9418 echo "configure:9419: checking whether to support disk-quotas" >&5
9419 # Check whether --with-quotas or --without-quotas was given.
9420 if test "${with_quotas+set}" = set; then
9421 withval
="$with_quotas"
9424 echo "$ac_t""yes" 1>&6
9428 echo "$ac_t""no" 1>&6
9432 echo "$ac_t""no" 1>&6
9438 #################################################
9439 # these tests are taken from the GNU fileutils package
9440 echo "checking how to get filesystem space usage" 1>&6
9441 echo "configure:9442: checking how to get filesystem space usage" >&5
9444 # Test for statvfs64.
9445 if test $space = no
; then
9447 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
9448 echo "configure:9449: checking statvfs64 function (SVR4)" >&5
9449 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
9450 echo $ac_n "(cached) $ac_c" 1>&6
9452 if test "$cross_compiling" = yes; then
9453 fu_cv_sys_stat_statvfs64
=cross
9455 cat > conftest.
$ac_ext <<EOF
9456 #line 9457 "configure"
9457 #include "confdefs.h"
9459 #include <sys/types.h>
9460 #include <sys/statvfs.h>
9463 struct statvfs64 fsd;
9464 exit (statfs64 (".", &fsd));
9467 if { (eval echo configure
:9468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9469 fu_cv_sys_stat_statvfs64
=yes
9471 echo "configure: failed program was:" >&5
9472 cat conftest.
$ac_ext >&5
9474 fu_cv_sys_stat_statvfs64
=no
9481 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
9482 if test $fu_cv_sys_stat_statvfs64 = yes; then
9484 cat >> confdefs.h
<<\EOF
9485 #define STAT_STATVFS64 1
9491 # Perform only the link test since it seems there are no variants of the
9492 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
9493 # because that got a false positive on SCO OSR5. Adding the declaration
9494 # of a `struct statvfs' causes this test to fail (as it should) on such
9495 # systems. That system is reported to work fine with STAT_STATFS4 which
9496 # is what it gets when this test fails.
9497 if test $space = no
; then
9499 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
9500 echo "configure:9501: checking statvfs function (SVR4)" >&5
9501 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
9502 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 #include <sys/statvfs.h>
9510 struct statvfs fsd; statvfs (0, &fsd);
9513 if { (eval echo configure
:9514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9515 fu_cv_sys_stat_statvfs
=yes
9517 echo "configure: failed program was:" >&5
9518 cat conftest.
$ac_ext >&5
9520 fu_cv_sys_stat_statvfs
=no
9525 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
9526 if test $fu_cv_sys_stat_statvfs = yes; then
9528 cat >> confdefs.h
<<\EOF
9529 #define STAT_STATVFS 1
9535 if test $space = no
; then
9536 # DEC Alpha running OSF/1
9537 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
9538 echo "configure:9539: checking for 3-argument statfs function (DEC OSF/1)" >&5
9539 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
9540 echo $ac_n "(cached) $ac_c" 1>&6
9542 if test "$cross_compiling" = yes; then
9543 fu_cv_sys_stat_statfs3_osf1
=no
9545 cat > conftest.
$ac_ext <<EOF
9546 #line 9547 "configure"
9547 #include "confdefs.h"
9549 #include <sys/param.h>
9550 #include <sys/types.h>
9551 #include <sys/mount.h>
9556 exit (statfs (".", &fsd, sizeof (struct statfs)));
9559 if { (eval echo configure
:9560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9561 fu_cv_sys_stat_statfs3_osf1
=yes
9563 echo "configure: failed program was:" >&5
9564 cat conftest.
$ac_ext >&5
9566 fu_cv_sys_stat_statfs3_osf1
=no
9573 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
9574 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
9576 cat >> confdefs.h
<<\EOF
9577 #define STAT_STATFS3_OSF1 1
9583 if test $space = no
; then
9585 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
9586 echo "configure:9587: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
9587 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
9588 echo $ac_n "(cached) $ac_c" 1>&6
9590 if test "$cross_compiling" = yes; then
9591 fu_cv_sys_stat_statfs2_bsize
=no
9593 cat > conftest.
$ac_ext <<EOF
9594 #line 9595 "configure"
9595 #include "confdefs.h"
9597 #ifdef HAVE_SYS_PARAM_H
9598 #include <sys/param.h>
9600 #ifdef HAVE_SYS_MOUNT_H
9601 #include <sys/mount.h>
9603 #ifdef HAVE_SYS_VFS_H
9604 #include <sys/vfs.h>
9610 exit (statfs (".", &fsd));
9613 if { (eval echo configure
:9614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9615 fu_cv_sys_stat_statfs2_bsize
=yes
9617 echo "configure: failed program was:" >&5
9618 cat conftest.
$ac_ext >&5
9620 fu_cv_sys_stat_statfs2_bsize
=no
9627 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
9628 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
9630 cat >> confdefs.h
<<\EOF
9631 #define STAT_STATFS2_BSIZE 1
9637 if test $space = no
; then
9639 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
9640 echo "configure:9641: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
9641 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
9642 echo $ac_n "(cached) $ac_c" 1>&6
9644 if test "$cross_compiling" = yes; then
9645 fu_cv_sys_stat_statfs4
=no
9647 cat > conftest.
$ac_ext <<EOF
9648 #line 9649 "configure"
9649 #include "confdefs.h"
9650 #include <sys/types.h>
9651 #include <sys/statfs.h>
9655 exit (statfs (".", &fsd, sizeof fsd, 0));
9658 if { (eval echo configure
:9659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9660 fu_cv_sys_stat_statfs4
=yes
9662 echo "configure: failed program was:" >&5
9663 cat conftest.
$ac_ext >&5
9665 fu_cv_sys_stat_statfs4
=no
9672 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
9673 if test $fu_cv_sys_stat_statfs4 = yes; then
9675 cat >> confdefs.h
<<\EOF
9676 #define STAT_STATFS4 1
9682 if test $space = no
; then
9684 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
9685 echo "configure:9686: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
9686 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
9687 echo $ac_n "(cached) $ac_c" 1>&6
9689 if test "$cross_compiling" = yes; then
9690 fu_cv_sys_stat_statfs2_fsize
=no
9692 cat > conftest.
$ac_ext <<EOF
9693 #line 9694 "configure"
9694 #include "confdefs.h"
9695 #include <sys/types.h>
9696 #ifdef HAVE_SYS_PARAM_H
9697 #include <sys/param.h>
9699 #ifdef HAVE_SYS_MOUNT_H
9700 #include <sys/mount.h>
9706 exit (statfs (".", &fsd));
9709 if { (eval echo configure
:9710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9711 fu_cv_sys_stat_statfs2_fsize
=yes
9713 echo "configure: failed program was:" >&5
9714 cat conftest.
$ac_ext >&5
9716 fu_cv_sys_stat_statfs2_fsize
=no
9723 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
9724 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
9726 cat >> confdefs.h
<<\EOF
9727 #define STAT_STATFS2_FSIZE 1
9733 if test $space = no
; then
9735 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
9736 echo "configure:9737: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
9737 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
9738 echo $ac_n "(cached) $ac_c" 1>&6
9740 if test "$cross_compiling" = yes; then
9741 fu_cv_sys_stat_fs_data
=no
9743 cat > conftest.
$ac_ext <<EOF
9744 #line 9745 "configure"
9745 #include "confdefs.h"
9746 #include <sys/types.h>
9747 #ifdef HAVE_SYS_PARAM_H
9748 #include <sys/param.h>
9750 #ifdef HAVE_SYS_MOUNT_H
9751 #include <sys/mount.h>
9753 #ifdef HAVE_SYS_FS_TYPES_H
9754 #include <sys/fs_types.h>
9759 /* Ultrix's statfs returns 1 for success,
9760 0 for not mounted, -1 for failure. */
9761 exit (statfs (".", &fsd) != 1);
9764 if { (eval echo configure
:9765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9766 fu_cv_sys_stat_fs_data
=yes
9768 echo "configure: failed program was:" >&5
9769 cat conftest.
$ac_ext >&5
9771 fu_cv_sys_stat_fs_data
=no
9778 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
9779 if test $fu_cv_sys_stat_fs_data = yes; then
9781 cat >> confdefs.h
<<\EOF
9782 #define STAT_STATFS2_FS_DATA 1
9788 echo "checking configure summary"
9789 if test "$cross_compiling" = yes; then
9792 cat > conftest.
$ac_ext <<EOF
9793 #line 9794 "configure"
9794 #include "confdefs.h"
9795 #include "${srcdir-.}/tests/summary.c"
9797 if { (eval echo configure
:9798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9799 echo "configure OK";
9801 echo "configure: failed program was:" >&5
9802 cat conftest.
$ac_ext >&5
9804 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }
9814 cat > confcache
<<\EOF
9815 # This file is a shell script that caches the results of configure
9816 # tests run on this system so they can be shared between configure
9817 # scripts and configure runs. It is not useful on other systems.
9818 # If it contains results you don't want to keep, you may remove or edit it.
9820 # By default, configure uses ./config.cache as the cache file,
9821 # creating it if it does not exist already. You can give configure
9822 # the --cache-file=FILE option to use a different cache file; that is
9823 # what configure does when it calls configure scripts in
9824 # subdirectories, so they share the cache.
9825 # Giving --cache-file=/dev/null disables caching, for debugging configure.
9826 # config.status only pays attention to the cache file if you give it the
9827 # --recheck option to rerun configure.
9830 # The following way of writing the cache mishandles newlines in values,
9831 # but we know of no workaround that is simple, portable, and efficient.
9832 # So, don't put newlines in cache variables' values.
9833 # Ultrix sh set writes to stderr and can't be redirected directly,
9834 # and sets the high bit in the cache file unless we assign to the vars.
9836 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9838 # `set' does not quote correctly, so add quotes (double-quote substitution
9839 # turns \\\\ into \\, and sed turns \\ into \).
9841 -e "s/'/'\\\\''/g" \
9842 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9845 # `set' quotes correctly as required by POSIX, so do not add quotes.
9846 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9849 if cmp -s $cache_file confcache
; then
9852 if test -w $cache_file; then
9853 echo "updating cache $cache_file"
9854 cat confcache
> $cache_file
9856 echo "not updating unwritable cache $cache_file"
9861 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
9863 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
9864 # Let make expand exec_prefix.
9865 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9867 # Any assignment to VPATH causes Sun make to only execute
9868 # the first set of double-colon rules, so remove it if not needed.
9869 # If there is a colon in the path, we need to keep it.
9870 if test "x$srcdir" = x.
; then
9871 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
9874 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
9876 DEFS
=-DHAVE_CONFIG_H
9878 # Without the "./", some shells look in PATH for config.status.
9879 : ${CONFIG_STATUS=./config.status}
9881 echo creating
$CONFIG_STATUS
9882 rm -f $CONFIG_STATUS
9883 cat > $CONFIG_STATUS <<EOF
9885 # Generated automatically by configure.
9886 # Run this file to recreate the current configuration.
9887 # This directory was configured as follows,
9888 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9890 # $0 $ac_configure_args
9892 # Compiler output produced by configure, useful for debugging
9893 # configure, is in ./config.log if it exists.
9895 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
9898 case "\$ac_option" in
9899 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9900 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
9901 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
9902 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
9903 echo "$CONFIG_STATUS generated by autoconf version 2.13"
9905 -help | --help | --hel | --he | --h)
9906 echo "\$ac_cs_usage"; exit 0 ;;
9907 *) echo "\$ac_cs_usage"; exit 1 ;;
9911 ac_given_srcdir=$srcdir
9912 ac_given_INSTALL="$INSTALL"
9914 trap 'rm -fr `echo "include/stamp-h Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
9916 cat >> $CONFIG_STATUS <<EOF
9918 # Protect against being on the right side of a sed subst in config.status.
9919 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
9920 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
9924 s%@CFLAGS@%$CFLAGS%g
9925 s%@CPPFLAGS@%$CPPFLAGS%g
9926 s%@CXXFLAGS@%$CXXFLAGS%g
9927 s%@FFLAGS@%$FFLAGS%g
9929 s%@LDFLAGS@%$LDFLAGS%g
9931 s%@exec_prefix@%$exec_prefix%g
9932 s%@prefix@%$prefix%g
9933 s%@program_transform_name@%$program_transform_name%g
9934 s%@bindir@%$bindir%g
9935 s%@sbindir@%$sbindir%g
9936 s%@libexecdir@%$libexecdir%g
9937 s%@datadir@%$datadir%g
9938 s%@sysconfdir@%$sysconfdir%g
9939 s%@sharedstatedir@%$sharedstatedir%g
9940 s%@localstatedir@%$localstatedir%g
9941 s%@libdir@%$libdir%g
9942 s%@includedir@%$includedir%g
9943 s%@oldincludedir@%$oldincludedir%g
9944 s%@infodir@%$infodir%g
9945 s%@mandir@%$mandir%g
9946 s%@MPROGS@%$MPROGS%g
9947 s%@LDSHFLAGS@%$LDSHFLAGS%g
9948 s%@HOST_OS@%$HOST_OS%g
9949 s%@LIBMSRPC@%$LIBMSRPC%g
9950 s%@LIBMSRPC32@%$LIBMSRPC32%g
9951 s%@LIBNMB@%$LIBNMB%g
9952 s%@LIBNMB32@%$LIBNMB32%g
9953 s%@LIBSMB@%$LIBSMB%g
9954 s%@LIBSMBPW@%$LIBSMBPW%g
9955 s%@LIBSMB32@%$LIBSMB32%g
9956 s%@LIBSMBPW32@%$LIBSMBPW32%g
9957 s%@LIBUBIQX@%$LIBUBIQX%g
9958 s%@LIBUBIQX32@%$LIBUBIQX32%g
9959 s%@LIBSAMBA@%$LIBSAMBA%g
9960 s%@LIBSAMBA32@%$LIBSAMBA32%g
9962 s%@WRAP32@%$WRAP32%g
9963 s%@PICFLAG@%$PICFLAG%g
9965 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
9966 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
9967 s%@INSTALL_DATA@%$INSTALL_DATA%g
9970 s%@host_alias@%$host_alias%g
9971 s%@host_cpu@%$host_cpu%g
9972 s%@host_vendor@%$host_vendor%g
9973 s%@host_os@%$host_os%g
9974 s%@target@%$target%g
9975 s%@target_alias@%$target_alias%g
9976 s%@target_cpu@%$target_cpu%g
9977 s%@target_vendor@%$target_vendor%g
9978 s%@target_os@%$target_os%g
9980 s%@build_alias@%$build_alias%g
9981 s%@build_cpu@%$build_cpu%g
9982 s%@build_vendor@%$build_vendor%g
9983 s%@build_os@%$build_os%g
9985 s%@AUTOCONF@%$AUTOCONF%g
9986 s%@AUTOHEADER@%$AUTOHEADER%g
9988 s%@RANLIB@%$RANLIB%g
9990 s%@LIBTOOL@%$LIBTOOL%g
9991 s%@LIBTOOL_DEPS@%$LIBTOOL_DEPS%g
9992 s%@LIBOBJS@%$LIBOBJS%g
9994 s%@SAM_PWDB_LIB@%$SAM_PWDB_LIB%g
9995 s%@QUOTAOBJS@%$QUOTAOBJS%g
9996 s%@builddir@%$builddir%g
10001 cat >> $CONFIG_STATUS <<\EOF
10003 # Split the substitutions into bite-sized pieces for seds with
10004 # small command number limits, like on Digital OSF/1 and HP-UX.
10005 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
10006 ac_file
=1 # Number of current file.
10007 ac_beg
=1 # First line for current file.
10008 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
10011 while $ac_more_lines; do
10012 if test $ac_beg -gt 1; then
10013 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
10015 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
10017 if test ! -s conftest.s
$ac_file; then
10018 ac_more_lines
=false
10019 rm -f conftest.s
$ac_file
10021 if test -z "$ac_sed_cmds"; then
10022 ac_sed_cmds
="sed -f conftest.s$ac_file"
10024 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
10026 ac_file
=`expr $ac_file + 1`
10028 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
10031 if test -z "$ac_sed_cmds"; then
10036 cat >> $CONFIG_STATUS <<EOF
10038 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile"}
10040 cat >> $CONFIG_STATUS <<\EOF
10041 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
10042 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10044 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
10045 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
10046 *) ac_file_in
="${ac_file}.in" ;;
10049 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
10051 # Remove last slash and all that follows it. Not all systems have dirname.
10052 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10053 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
10054 # The file is in a subdirectory.
10055 test ! -d "$ac_dir" && mkdir
"$ac_dir"
10056 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
10057 # A "../" for each directory in $ac_dir_suffix.
10058 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
10060 ac_dir_suffix
= ac_dots
=
10063 case "$ac_given_srcdir" in
10065 if test -z "$ac_dots"; then top_srcdir
=.
10066 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
10067 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
10068 *) # Relative path.
10069 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
10070 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
10073 case "$ac_given_INSTALL" in
10074 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
10075 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
10078 echo creating
"$ac_file"
10080 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
10082 *Makefile
*) ac_comsub
="1i\\
10083 # $configure_input" ;;
10087 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
10089 s%@configure_input@%$configure_input%g
10090 s%@srcdir@%$srcdir%g
10091 s%@top_srcdir@%$top_srcdir%g
10092 s%@INSTALL@%$INSTALL%g
10093 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
10097 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10098 # NAME is the cpp macro being defined and VALUE is the value it is being given.
10100 # ac_d sets the value in "#define NAME VALUE" lines.
10101 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10102 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
10105 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
10106 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10107 ac_uB
='\([ ]\)%\1#\2define\3'
10110 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10111 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10112 ac_eB
='$%\1#\2define\3'
10116 if test "${CONFIG_HEADERS+set}" != set; then
10118 cat >> $CONFIG_STATUS <<EOF
10119 CONFIG_HEADERS="include/config.h"
10121 cat >> $CONFIG_STATUS <<\EOF
10123 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
10124 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10126 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
10127 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
10128 *) ac_file_in
="${ac_file}.in" ;;
10131 echo creating
$ac_file
10133 rm -f conftest.frag conftest.
in conftest.out
10134 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
10135 cat $ac_file_inputs > conftest.
in
10139 # Transform confdefs.h into a sed script conftest.vals that substitutes
10140 # the proper values into config.h.in to produce config.h. And first:
10141 # Protect against being on the right side of a sed subst in config.status.
10142 # Protect against being in an unquoted here document in config.status.
10143 rm -f conftest.vals
10144 cat > conftest.hdr
<<\EOF
10147 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
10151 sed -n -f conftest.hdr confdefs.h > conftest.vals
10154 # This sed command replaces #undef with comments. This is necessary, for
10155 # example, in the case of _POSIX_SOURCE, which is predefined and required
10156 # on some systems where configure will not decide to define it.
10157 cat >> conftest.vals <<\EOF
10158 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
10161 # Break up conftest.vals because some shells have a limit on
10162 # the size of here documents, and old seds have small limits too.
10164 rm -f conftest.tail
10167 ac_lines=`grep -c . conftest.vals
`
10168 # grep -c gives empty output for an empty file on some AIX systems.
10169 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
10170 # Write a limited-size here document to conftest.frag.
10171 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
10172 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10174 sed -f conftest.frag conftest.in > conftest.out
10176 mv conftest.out conftest.in
10177 ' >> $CONFIG_STATUS
10178 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
10179 rm -f conftest.vals
10180 mv conftest.tail conftest.vals
10182 rm -f conftest.vals
10184 cat >> $CONFIG_STATUS <<\EOF
10185 rm -f conftest.frag conftest.h
10186 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
10187 cat conftest.in >> conftest.h
10189 if cmp -s $ac_file conftest.h 2>/dev/null; then
10190 echo "$ac_file is unchanged"
10193 # Remove last slash and all that follows it. Not all systems have dirname.
10194 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
10195 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
10196 # The file is in a subdirectory.
10197 test ! -d "$ac_dir" && mkdir "$ac_dir"
10200 mv conftest.h $ac_file
10205 cat >> $CONFIG_STATUS <<EOF
10208 cat >> $CONFIG_STATUS <<\EOF
10212 chmod +x $CONFIG_STATUS
10213 rm -fr confdefs* $ac_clean_files
10214 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1