old merge from 2.2
[Samba/gbeck.git] / source / configure
blobc851f13ebfd5de370ab2ac1d6f4c9b07b69d9e98
1 #! /bin/sh
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_default_prefix=/usr/local/samba
15 ac_help="$ac_help
16 --enable-debug turn on debugging [default=no]"
17 ac_help="$ac_help
18 --enable-developer turn on developer warnings and debugging [default=no]"
19 ac_help="$ac_help
20 --with-readline[=DIR] Look for readline include/libs in DIR (default=auto) "
21 ac_help="$ac_help
22 --with-libiconv=BASEDIR Use libiconv in BASEDIR/lib and BASEDIR/include (default=auto) "
23 ac_help="$ac_help
24 --with-smbwrapper Include SMB wrapper support (default=no) "
25 ac_help="$ac_help
26 --with-afs Include AFS support (default=no) "
27 ac_help="$ac_help
28 --with-dce-dfs Include DCE/DFS support (default=no)"
29 ac_help="$ac_help
30 --with-krb4=base-dir Include Kerberos IV support (default=no)"
31 ac_help="$ac_help
32 --with-krb5=base-dir Include Kerberos 5 support (default=no)"
33 ac_help="$ac_help
34 --with-automount Include AUTOMOUNT support (default=no)"
35 ac_help="$ac_help
36 --with-smbmount Include SMBMOUNT (Linux only) support (default=no)"
37 ac_help="$ac_help
38 --with-pam Include PAM password database support (default=no)"
39 ac_help="$ac_help
40 --with-pam_smbpass Build a PAM module to allow other applications to use our smbpasswd file (default=no)"
41 ac_help="$ac_help
42 --with-tdbsam Include experimental TDB SAM support (default=no)"
43 ac_help="$ac_help
44 --with-ldapsam Include experimental LDAP SAM support (default=no)"
45 ac_help="$ac_help
46 --with-nisplussam Include NISPLUS SAM support (default=no)"
47 ac_help="$ac_help
48 --with-nisplus-home Include NISPLUS_HOME support (default=no)"
49 ac_help="$ac_help
50 --with-ssl Include SSL support (default=no)
51 --with-sslinc=DIR Where the SSL includes are (defaults to /usr/local/ssl/include)
52 --with-ssllib=DIR Where the SSL libraries are (defaults to /usr/local/ssl/lib)"
53 ac_help="$ac_help
54 --with-syslog Include experimental SYSLOG support (default=no)"
55 ac_help="$ac_help
56 --with-profiling-data Include gathering source code profile information (default=no)"
57 ac_help="$ac_help
58 --with-quotas Include experimental disk-quota support (default=no)"
59 ac_help="$ac_help
60 --with-utmp Include experimental utmp accounting (default=no)"
61 ac_help="$ac_help
62 --with-privatedir=DIR Where to put smbpasswd ($ac_default_prefix/private)"
63 ac_help="$ac_help
64 --with-lockdir=DIR Where to put lock files ($ac_default_prefix/var/locks)"
65 ac_help="$ac_help
66 --with-swatdir=DIR Where to put SWAT files ($ac_default_prefix/swat)"
67 ac_help="$ac_help
68 --with-manpages-langs={en,ja,pl} Choose man pages' language(s). (en)"
69 ac_help="$ac_help
70 --with-spinlocks Use spin locks instead of fcntl locks (default=no) "
71 ac_help="$ac_help
72 --with-acl-support Include ACL support (default=no)"
73 ac_help="$ac_help
74 --with-winbind Build winbind (default, if supported by OS)"
75 ac_help="$ac_help
76 --with-included-popt use bundled popt library, not from system"
78 # Initialize some variables set by options.
79 # The variables have the same names as the options, with
80 # dashes changed to underlines.
81 build=NONE
82 cache_file=./config.cache
83 exec_prefix=NONE
84 host=NONE
85 no_create=
86 nonopt=NONE
87 no_recursion=
88 prefix=NONE
89 program_prefix=NONE
90 program_suffix=NONE
91 program_transform_name=s,x,x,
92 silent=
93 site=
94 srcdir=
95 target=NONE
96 verbose=
97 x_includes=NONE
98 x_libraries=NONE
99 bindir='${exec_prefix}/bin'
100 sbindir='${exec_prefix}/sbin'
101 libexecdir='${exec_prefix}/libexec'
102 datadir='${prefix}/share'
103 sysconfdir='${prefix}/etc'
104 sharedstatedir='${prefix}/com'
105 localstatedir='${prefix}/var'
106 libdir='${exec_prefix}/lib'
107 includedir='${prefix}/include'
108 oldincludedir='/usr/include'
109 infodir='${prefix}/info'
110 mandir='${prefix}/man'
112 # Initialize some other variables.
113 subdirs=
114 MFLAGS= MAKEFLAGS=
115 SHELL=${CONFIG_SHELL-/bin/sh}
116 # Maximum number of lines to put in a shell here document.
117 ac_max_here_lines=12
119 ac_prev=
120 for ac_option
123 # If the previous option needs an argument, assign it.
124 if test -n "$ac_prev"; then
125 eval "$ac_prev=\$ac_option"
126 ac_prev=
127 continue
130 case "$ac_option" in
131 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
132 *) ac_optarg= ;;
133 esac
135 # Accept the important Cygnus configure options, so we can diagnose typos.
137 case "$ac_option" in
139 -bindir | --bindir | --bindi | --bind | --bin | --bi)
140 ac_prev=bindir ;;
141 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
142 bindir="$ac_optarg" ;;
144 -build | --build | --buil | --bui | --bu)
145 ac_prev=build ;;
146 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
147 build="$ac_optarg" ;;
149 -cache-file | --cache-file | --cache-fil | --cache-fi \
150 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
151 ac_prev=cache_file ;;
152 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
153 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
154 cache_file="$ac_optarg" ;;
156 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
157 ac_prev=datadir ;;
158 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
159 | --da=*)
160 datadir="$ac_optarg" ;;
162 -disable-* | --disable-*)
163 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
164 # Reject names that are not valid shell variable names.
165 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
166 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
168 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
169 eval "enable_${ac_feature}=no" ;;
171 -enable-* | --enable-*)
172 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
173 # Reject names that are not valid shell variable names.
174 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
175 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
177 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
178 case "$ac_option" in
179 *=*) ;;
180 *) ac_optarg=yes ;;
181 esac
182 eval "enable_${ac_feature}='$ac_optarg'" ;;
184 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
185 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
186 | --exec | --exe | --ex)
187 ac_prev=exec_prefix ;;
188 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
189 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
190 | --exec=* | --exe=* | --ex=*)
191 exec_prefix="$ac_optarg" ;;
193 -gas | --gas | --ga | --g)
194 # Obsolete; use --with-gas.
195 with_gas=yes ;;
197 -help | --help | --hel | --he)
198 # Omit some internal or obsolete options to make the list less imposing.
199 # This message is too long to be a string in the A/UX 3.1 sh.
200 cat << EOF
201 Usage: configure [options] [host]
202 Options: [defaults in brackets after descriptions]
203 Configuration:
204 --cache-file=FILE cache test results in FILE
205 --help print this message
206 --no-create do not create output files
207 --quiet, --silent do not print \`checking...' messages
208 --version print the version of autoconf that created configure
209 Directory and file names:
210 --prefix=PREFIX install architecture-independent files in PREFIX
211 [$ac_default_prefix]
212 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
213 [same as prefix]
214 --bindir=DIR user executables in DIR [EPREFIX/bin]
215 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
216 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
217 --datadir=DIR read-only architecture-independent data in DIR
218 [PREFIX/share]
219 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
220 --sharedstatedir=DIR modifiable architecture-independent data in DIR
221 [PREFIX/com]
222 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
223 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
224 --includedir=DIR C header files in DIR [PREFIX/include]
225 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
226 --infodir=DIR info documentation in DIR [PREFIX/info]
227 --mandir=DIR man documentation in DIR [PREFIX/man]
228 --srcdir=DIR find the sources in DIR [configure dir or ..]
229 --program-prefix=PREFIX prepend PREFIX to installed program names
230 --program-suffix=SUFFIX append SUFFIX to installed program names
231 --program-transform-name=PROGRAM
232 run sed PROGRAM on installed program names
234 cat << EOF
235 Host type:
236 --build=BUILD configure for building on BUILD [BUILD=HOST]
237 --host=HOST configure for HOST [guessed]
238 --target=TARGET configure for TARGET [TARGET=HOST]
239 Features and packages:
240 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
241 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
242 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
243 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
244 --x-includes=DIR X include files are in DIR
245 --x-libraries=DIR X library files are in DIR
247 if test -n "$ac_help"; then
248 echo "--enable and --with options recognized:$ac_help"
250 exit 0 ;;
252 -host | --host | --hos | --ho)
253 ac_prev=host ;;
254 -host=* | --host=* | --hos=* | --ho=*)
255 host="$ac_optarg" ;;
257 -includedir | --includedir | --includedi | --included | --include \
258 | --includ | --inclu | --incl | --inc)
259 ac_prev=includedir ;;
260 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
261 | --includ=* | --inclu=* | --incl=* | --inc=*)
262 includedir="$ac_optarg" ;;
264 -infodir | --infodir | --infodi | --infod | --info | --inf)
265 ac_prev=infodir ;;
266 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
267 infodir="$ac_optarg" ;;
269 -libdir | --libdir | --libdi | --libd)
270 ac_prev=libdir ;;
271 -libdir=* | --libdir=* | --libdi=* | --libd=*)
272 libdir="$ac_optarg" ;;
274 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
275 | --libexe | --libex | --libe)
276 ac_prev=libexecdir ;;
277 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
278 | --libexe=* | --libex=* | --libe=*)
279 libexecdir="$ac_optarg" ;;
281 -localstatedir | --localstatedir | --localstatedi | --localstated \
282 | --localstate | --localstat | --localsta | --localst \
283 | --locals | --local | --loca | --loc | --lo)
284 ac_prev=localstatedir ;;
285 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
286 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
287 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
288 localstatedir="$ac_optarg" ;;
290 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
291 ac_prev=mandir ;;
292 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
293 mandir="$ac_optarg" ;;
295 -nfp | --nfp | --nf)
296 # Obsolete; use --without-fp.
297 with_fp=no ;;
299 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
300 | --no-cr | --no-c)
301 no_create=yes ;;
303 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
304 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
305 no_recursion=yes ;;
307 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
308 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
309 | --oldin | --oldi | --old | --ol | --o)
310 ac_prev=oldincludedir ;;
311 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
312 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
313 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
314 oldincludedir="$ac_optarg" ;;
316 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
317 ac_prev=prefix ;;
318 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
319 prefix="$ac_optarg" ;;
321 -program-prefix | --program-prefix | --program-prefi | --program-pref \
322 | --program-pre | --program-pr | --program-p)
323 ac_prev=program_prefix ;;
324 -program-prefix=* | --program-prefix=* | --program-prefi=* \
325 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
326 program_prefix="$ac_optarg" ;;
328 -program-suffix | --program-suffix | --program-suffi | --program-suff \
329 | --program-suf | --program-su | --program-s)
330 ac_prev=program_suffix ;;
331 -program-suffix=* | --program-suffix=* | --program-suffi=* \
332 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
333 program_suffix="$ac_optarg" ;;
335 -program-transform-name | --program-transform-name \
336 | --program-transform-nam | --program-transform-na \
337 | --program-transform-n | --program-transform- \
338 | --program-transform | --program-transfor \
339 | --program-transfo | --program-transf \
340 | --program-trans | --program-tran \
341 | --progr-tra | --program-tr | --program-t)
342 ac_prev=program_transform_name ;;
343 -program-transform-name=* | --program-transform-name=* \
344 | --program-transform-nam=* | --program-transform-na=* \
345 | --program-transform-n=* | --program-transform-=* \
346 | --program-transform=* | --program-transfor=* \
347 | --program-transfo=* | --program-transf=* \
348 | --program-trans=* | --program-tran=* \
349 | --progr-tra=* | --program-tr=* | --program-t=*)
350 program_transform_name="$ac_optarg" ;;
352 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
353 | -silent | --silent | --silen | --sile | --sil)
354 silent=yes ;;
356 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
357 ac_prev=sbindir ;;
358 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
359 | --sbi=* | --sb=*)
360 sbindir="$ac_optarg" ;;
362 -sharedstatedir | --sharedstatedir | --sharedstatedi \
363 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
364 | --sharedst | --shareds | --shared | --share | --shar \
365 | --sha | --sh)
366 ac_prev=sharedstatedir ;;
367 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
368 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
369 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
370 | --sha=* | --sh=*)
371 sharedstatedir="$ac_optarg" ;;
373 -site | --site | --sit)
374 ac_prev=site ;;
375 -site=* | --site=* | --sit=*)
376 site="$ac_optarg" ;;
378 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
379 ac_prev=srcdir ;;
380 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
381 srcdir="$ac_optarg" ;;
383 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
384 | --syscon | --sysco | --sysc | --sys | --sy)
385 ac_prev=sysconfdir ;;
386 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
387 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
388 sysconfdir="$ac_optarg" ;;
390 -target | --target | --targe | --targ | --tar | --ta | --t)
391 ac_prev=target ;;
392 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
393 target="$ac_optarg" ;;
395 -v | -verbose | --verbose | --verbos | --verbo | --verb)
396 verbose=yes ;;
398 -version | --version | --versio | --versi | --vers)
399 echo "configure generated by autoconf version 2.13"
400 exit 0 ;;
402 -with-* | --with-*)
403 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
404 # Reject names that are not valid shell variable names.
405 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
406 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
408 ac_package=`echo $ac_package| sed 's/-/_/g'`
409 case "$ac_option" in
410 *=*) ;;
411 *) ac_optarg=yes ;;
412 esac
413 eval "with_${ac_package}='$ac_optarg'" ;;
415 -without-* | --without-*)
416 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
417 # Reject names that are not valid shell variable names.
418 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
419 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
421 ac_package=`echo $ac_package| sed 's/-/_/g'`
422 eval "with_${ac_package}=no" ;;
424 --x)
425 # Obsolete; use --with-x.
426 with_x=yes ;;
428 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
429 | --x-incl | --x-inc | --x-in | --x-i)
430 ac_prev=x_includes ;;
431 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
432 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
433 x_includes="$ac_optarg" ;;
435 -x-libraries | --x-libraries | --x-librarie | --x-librari \
436 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
437 ac_prev=x_libraries ;;
438 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
439 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
440 x_libraries="$ac_optarg" ;;
442 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
446 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
447 echo "configure: warning: $ac_option: invalid host type" 1>&2
449 if test "x$nonopt" != xNONE; then
450 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
452 nonopt="$ac_option"
455 esac
456 done
458 if test -n "$ac_prev"; then
459 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
462 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
464 # File descriptor usage:
465 # 0 standard input
466 # 1 file creation
467 # 2 errors and warnings
468 # 3 some systems may open it to /dev/tty
469 # 4 used on the Kubota Titan
470 # 6 checking for... messages and results
471 # 5 compiler messages saved in config.log
472 if test "$silent" = yes; then
473 exec 6>/dev/null
474 else
475 exec 6>&1
477 exec 5>./config.log
479 echo "\
480 This file contains any messages produced by compilers while
481 running configure, to aid debugging if configure makes a mistake.
482 " 1>&5
484 # Strip out --no-create and --no-recursion so they do not pile up.
485 # Also quote any args containing shell metacharacters.
486 ac_configure_args=
487 for ac_arg
489 case "$ac_arg" in
490 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
491 | --no-cr | --no-c) ;;
492 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
493 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
494 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
495 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
496 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
497 esac
498 done
500 # NLS nuisances.
501 # Only set these to C if already set. These must not be set unconditionally
502 # because not all systems understand e.g. LANG=C (notably SCO).
503 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
504 # Non-C LC_CTYPE values break the ctype check.
505 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
506 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
507 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
508 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
510 # confdefs.h avoids OS command line length limits that DEFS can exceed.
511 rm -rf conftest* confdefs.h
512 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
513 echo > confdefs.h
515 # A filename unique to this package, relative to the directory that
516 # configure is in, which we can look for to find out if srcdir is correct.
517 ac_unique_file=include/includes.h
519 # Find the source files, if location was not specified.
520 if test -z "$srcdir"; then
521 ac_srcdir_defaulted=yes
522 # Try the directory containing this script, then its parent.
523 ac_prog=$0
524 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
525 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
526 srcdir=$ac_confdir
527 if test ! -r $srcdir/$ac_unique_file; then
528 srcdir=..
530 else
531 ac_srcdir_defaulted=no
533 if test ! -r $srcdir/$ac_unique_file; then
534 if test "$ac_srcdir_defaulted" = yes; then
535 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
536 else
537 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
540 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
542 # Prefer explicitly selected file to automatically selected ones.
543 if test -z "$CONFIG_SITE"; then
544 if test "x$prefix" != xNONE; then
545 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
546 else
547 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
550 for ac_site_file in $CONFIG_SITE; do
551 if test -r "$ac_site_file"; then
552 echo "loading site script $ac_site_file"
553 . "$ac_site_file"
555 done
557 if test -r "$cache_file"; then
558 echo "loading cache $cache_file"
559 . $cache_file
560 else
561 echo "creating cache $cache_file"
562 > $cache_file
565 ac_ext=c
566 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
567 ac_cpp='$CPP $CPPFLAGS'
568 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
569 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
570 cross_compiling=$ac_cv_prog_cc_cross
572 ac_exeext=
573 ac_objext=o
574 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
575 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
576 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
577 ac_n= ac_c='
578 ' ac_t=' '
579 else
580 ac_n=-n ac_c= ac_t=
582 else
583 ac_n= ac_c='\c' ac_t=
588 # we want to be compatibe with older versions of Samba
606 # compile with optimisation and without debugging by default
607 CFLAGS="-O ${CFLAGS}"
609 # Check whether --enable-debug or --disable-debug was given.
610 if test "${enable_debug+set}" = set; then
611 enableval="$enable_debug"
612 if eval "test x$enable_debug = xyes"; then
613 CFLAGS="${CFLAGS} -g"
618 # Check whether --enable-developer or --disable-developer was given.
619 if test "${enable_developer+set}" = set; then
620 enableval="$enable_developer"
621 if eval "test x$enable_developer = xyes"; then
622 CFLAGS="${CFLAGS} -g -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual -Wcast-align -DDEBUG_PASSWORD -DDEVELOPER"
627 # Extract the first word of "gcc", so it can be a program name with args.
628 set dummy gcc; ac_word=$2
629 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
630 echo "configure:631: checking for $ac_word" >&5
631 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
632 echo $ac_n "(cached) $ac_c" 1>&6
633 else
634 if test -n "$CC"; then
635 ac_cv_prog_CC="$CC" # Let the user override the test.
636 else
637 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
638 ac_dummy="$PATH"
639 for ac_dir in $ac_dummy; do
640 test -z "$ac_dir" && ac_dir=.
641 if test -f $ac_dir/$ac_word; then
642 ac_cv_prog_CC="gcc"
643 break
645 done
646 IFS="$ac_save_ifs"
649 CC="$ac_cv_prog_CC"
650 if test -n "$CC"; then
651 echo "$ac_t""$CC" 1>&6
652 else
653 echo "$ac_t""no" 1>&6
656 if test -z "$CC"; then
657 # Extract the first word of "cc", so it can be a program name with args.
658 set dummy cc; ac_word=$2
659 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
660 echo "configure:661: checking for $ac_word" >&5
661 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
662 echo $ac_n "(cached) $ac_c" 1>&6
663 else
664 if test -n "$CC"; then
665 ac_cv_prog_CC="$CC" # Let the user override the test.
666 else
667 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
668 ac_prog_rejected=no
669 ac_dummy="$PATH"
670 for ac_dir in $ac_dummy; do
671 test -z "$ac_dir" && ac_dir=.
672 if test -f $ac_dir/$ac_word; then
673 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
674 ac_prog_rejected=yes
675 continue
677 ac_cv_prog_CC="cc"
678 break
680 done
681 IFS="$ac_save_ifs"
682 if test $ac_prog_rejected = yes; then
683 # We found a bogon in the path, so make sure we never use it.
684 set dummy $ac_cv_prog_CC
685 shift
686 if test $# -gt 0; then
687 # We chose a different compiler from the bogus one.
688 # However, it has the same basename, so the bogon will be chosen
689 # first if we set CC to just the basename; use the full file name.
690 shift
691 set dummy "$ac_dir/$ac_word" "$@"
692 shift
693 ac_cv_prog_CC="$@"
698 CC="$ac_cv_prog_CC"
699 if test -n "$CC"; then
700 echo "$ac_t""$CC" 1>&6
701 else
702 echo "$ac_t""no" 1>&6
705 if test -z "$CC"; then
706 case "`uname -s`" in
707 *win32* | *WIN32*)
708 # Extract the first word of "cl", so it can be a program name with args.
709 set dummy cl; ac_word=$2
710 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
711 echo "configure:712: checking for $ac_word" >&5
712 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
713 echo $ac_n "(cached) $ac_c" 1>&6
714 else
715 if test -n "$CC"; then
716 ac_cv_prog_CC="$CC" # Let the user override the test.
717 else
718 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
719 ac_dummy="$PATH"
720 for ac_dir in $ac_dummy; do
721 test -z "$ac_dir" && ac_dir=.
722 if test -f $ac_dir/$ac_word; then
723 ac_cv_prog_CC="cl"
724 break
726 done
727 IFS="$ac_save_ifs"
730 CC="$ac_cv_prog_CC"
731 if test -n "$CC"; then
732 echo "$ac_t""$CC" 1>&6
733 else
734 echo "$ac_t""no" 1>&6
737 esac
739 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
742 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
743 echo "configure:744: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
745 ac_ext=c
746 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
747 ac_cpp='$CPP $CPPFLAGS'
748 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
749 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
750 cross_compiling=$ac_cv_prog_cc_cross
752 cat > conftest.$ac_ext << EOF
754 #line 755 "configure"
755 #include "confdefs.h"
757 main(){return(0);}
759 if { (eval echo configure:760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
760 ac_cv_prog_cc_works=yes
761 # If we can't run a trivial program, we are probably using a cross compiler.
762 if (./conftest; exit) 2>/dev/null; then
763 ac_cv_prog_cc_cross=no
764 else
765 ac_cv_prog_cc_cross=yes
767 else
768 echo "configure: failed program was:" >&5
769 cat conftest.$ac_ext >&5
770 ac_cv_prog_cc_works=no
772 rm -fr conftest*
773 ac_ext=c
774 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
775 ac_cpp='$CPP $CPPFLAGS'
776 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
777 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
778 cross_compiling=$ac_cv_prog_cc_cross
780 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
781 if test $ac_cv_prog_cc_works = no; then
782 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
784 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
785 echo "configure:786: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
786 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
787 cross_compiling=$ac_cv_prog_cc_cross
789 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
790 echo "configure:791: checking whether we are using GNU C" >&5
791 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
792 echo $ac_n "(cached) $ac_c" 1>&6
793 else
794 cat > conftest.c <<EOF
795 #ifdef __GNUC__
796 yes;
797 #endif
799 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:800: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
800 ac_cv_prog_gcc=yes
801 else
802 ac_cv_prog_gcc=no
806 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
808 if test $ac_cv_prog_gcc = yes; then
809 GCC=yes
810 else
811 GCC=
814 ac_test_CFLAGS="${CFLAGS+set}"
815 ac_save_CFLAGS="$CFLAGS"
816 CFLAGS=
817 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
818 echo "configure:819: checking whether ${CC-cc} accepts -g" >&5
819 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
820 echo $ac_n "(cached) $ac_c" 1>&6
821 else
822 echo 'void f(){}' > conftest.c
823 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
824 ac_cv_prog_cc_g=yes
825 else
826 ac_cv_prog_cc_g=no
828 rm -f conftest*
832 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
833 if test "$ac_test_CFLAGS" = set; then
834 CFLAGS="$ac_save_CFLAGS"
835 elif test $ac_cv_prog_cc_g = yes; then
836 if test "$GCC" = yes; then
837 CFLAGS="-g -O2"
838 else
839 CFLAGS="-g"
841 else
842 if test "$GCC" = yes; then
843 CFLAGS="-O2"
844 else
845 CFLAGS=
849 ac_aux_dir=
850 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
851 if test -f $ac_dir/install-sh; then
852 ac_aux_dir=$ac_dir
853 ac_install_sh="$ac_aux_dir/install-sh -c"
854 break
855 elif test -f $ac_dir/install.sh; then
856 ac_aux_dir=$ac_dir
857 ac_install_sh="$ac_aux_dir/install.sh -c"
858 break
860 done
861 if test -z "$ac_aux_dir"; then
862 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
864 ac_config_guess=$ac_aux_dir/config.guess
865 ac_config_sub=$ac_aux_dir/config.sub
866 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
868 # Find a good install program. We prefer a C program (faster),
869 # so one script is as good as another. But avoid the broken or
870 # incompatible versions:
871 # SysV /etc/install, /usr/sbin/install
872 # SunOS /usr/etc/install
873 # IRIX /sbin/install
874 # AIX /bin/install
875 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
876 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
877 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
878 # ./install, which can be erroneously created by make from ./install.sh.
879 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
880 echo "configure:881: checking for a BSD compatible install" >&5
881 if test -z "$INSTALL"; then
882 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
883 echo $ac_n "(cached) $ac_c" 1>&6
884 else
885 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
886 for ac_dir in $PATH; do
887 # Account for people who put trailing slashes in PATH elements.
888 case "$ac_dir/" in
889 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
891 # OSF1 and SCO ODT 3.0 have their own names for install.
892 # Don't use installbsd from OSF since it installs stuff as root
893 # by default.
894 for ac_prog in ginstall scoinst install; do
895 if test -f $ac_dir/$ac_prog; then
896 if test $ac_prog = install &&
897 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
898 # AIX install. It has an incompatible calling convention.
900 else
901 ac_cv_path_install="$ac_dir/$ac_prog -c"
902 break 2
905 done
907 esac
908 done
909 IFS="$ac_save_IFS"
912 if test "${ac_cv_path_install+set}" = set; then
913 INSTALL="$ac_cv_path_install"
914 else
915 # As a last resort, use the slow shell script. We don't cache a
916 # path for INSTALL within a source directory, because that will
917 # break other packages using the cache if that directory is
918 # removed, or if the path is relative.
919 INSTALL="$ac_install_sh"
922 echo "$ac_t""$INSTALL" 1>&6
924 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
925 # It thinks the first close brace ends the variable substitution.
926 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
928 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
930 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
932 for ac_prog in gawk mawk nawk awk
934 # Extract the first word of "$ac_prog", so it can be a program name with args.
935 set dummy $ac_prog; ac_word=$2
936 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
937 echo "configure:938: checking for $ac_word" >&5
938 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
939 echo $ac_n "(cached) $ac_c" 1>&6
940 else
941 if test -n "$AWK"; then
942 ac_cv_prog_AWK="$AWK" # Let the user override the test.
943 else
944 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
945 ac_dummy="$PATH"
946 for ac_dir in $ac_dummy; do
947 test -z "$ac_dir" && ac_dir=.
948 if test -f $ac_dir/$ac_word; then
949 ac_cv_prog_AWK="$ac_prog"
950 break
952 done
953 IFS="$ac_save_ifs"
956 AWK="$ac_cv_prog_AWK"
957 if test -n "$AWK"; then
958 echo "$ac_t""$AWK" 1>&6
959 else
960 echo "$ac_t""no" 1>&6
963 test -n "$AWK" && break
964 done
967 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
968 echo "configure:969: checking for POSIXized ISC" >&5
969 if test -d /etc/conf/kconfig.d &&
970 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
971 then
972 echo "$ac_t""yes" 1>&6
973 ISC=yes # If later tests want to check for ISC.
974 cat >> confdefs.h <<\EOF
975 #define _POSIX_SOURCE 1
978 if test "$GCC" = yes; then
979 CC="$CC -posix"
980 else
981 CC="$CC -Xp"
983 else
984 echo "$ac_t""no" 1>&6
985 ISC=
989 if test "x$CC" != xcc; then
990 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
991 echo "configure:992: checking whether $CC and cc understand -c and -o together" >&5
992 else
993 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
994 echo "configure:995: checking whether cc understands -c and -o together" >&5
996 set dummy $CC; ac_cc="`echo $2 |
997 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
998 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
999 echo $ac_n "(cached) $ac_c" 1>&6
1000 else
1001 echo 'foo(){}' > conftest.c
1002 # Make sure it works both with $CC and with simple cc.
1003 # We do the test twice because some compilers refuse to overwrite an
1004 # existing .o file with -o, though they will create one.
1005 ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1006 if { (eval echo configure:1007: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1007 test -f conftest.o && { (eval echo configure:1008: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1008 then
1009 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
1010 if test "x$CC" != xcc; then
1011 # Test first that cc exists at all.
1012 if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:1013: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1013 ac_try='cc -c conftest.c -o conftest.o 1>&5'
1014 if { (eval echo configure:1015: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1015 test -f conftest.o && { (eval echo configure:1016: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1016 then
1017 # cc works too.
1019 else
1020 # cc exists but doesn't like -o.
1021 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1025 else
1026 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1028 rm -f conftest*
1031 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1032 echo "$ac_t""yes" 1>&6
1033 else
1034 echo "$ac_t""no" 1>&6
1035 cat >> confdefs.h <<\EOF
1036 #define NO_MINUS_C_MINUS_O 1
1041 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1042 BROKEN_CC=
1043 else
1044 BROKEN_CC=#
1048 echo $ac_n "checking that the C compiler understands volatile""... $ac_c" 1>&6
1049 echo "configure:1050: checking that the C compiler understands volatile" >&5
1050 if eval "test \"`echo '$''{'samba_cv_volatile'+set}'`\" = set"; then
1051 echo $ac_n "(cached) $ac_c" 1>&6
1052 else
1054 cat > conftest.$ac_ext <<EOF
1055 #line 1056 "configure"
1056 #include "confdefs.h"
1057 #include <sys/types.h>
1058 int main() {
1059 volatile int i = 0
1060 ; return 0; }
1062 if { (eval echo configure:1063: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1063 rm -rf conftest*
1064 samba_cv_volatile=yes
1065 else
1066 echo "configure: failed program was:" >&5
1067 cat conftest.$ac_ext >&5
1068 rm -rf conftest*
1069 samba_cv_volatile=no
1071 rm -f conftest*
1074 echo "$ac_t""$samba_cv_volatile" 1>&6
1075 if test x"$samba_cv_volatile" = x"yes"; then
1076 cat >> confdefs.h <<\EOF
1077 #define HAVE_VOLATILE 1
1084 # Do some error checking and defaulting for the host and target type.
1085 # The inputs are:
1086 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1088 # The rules are:
1089 # 1. You are not allowed to specify --host, --target, and nonopt at the
1090 # same time.
1091 # 2. Host defaults to nonopt.
1092 # 3. If nonopt is not specified, then host defaults to the current host,
1093 # as determined by config.guess.
1094 # 4. Target and build default to nonopt.
1095 # 5. If nonopt is not specified, then target and build default to host.
1097 # The aliases save the names the user supplied, while $host etc.
1098 # will get canonicalized.
1099 case $host---$target---$nonopt in
1100 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1101 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1102 esac
1105 # Make sure we can run config.sub.
1106 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1107 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1110 echo $ac_n "checking host system type""... $ac_c" 1>&6
1111 echo "configure:1112: checking host system type" >&5
1113 host_alias=$host
1114 case "$host_alias" in
1115 NONE)
1116 case $nonopt in
1117 NONE)
1118 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1119 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1120 fi ;;
1121 *) host_alias=$nonopt ;;
1122 esac ;;
1123 esac
1125 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1126 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1127 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1128 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1129 echo "$ac_t""$host" 1>&6
1131 echo $ac_n "checking target system type""... $ac_c" 1>&6
1132 echo "configure:1133: checking target system type" >&5
1134 target_alias=$target
1135 case "$target_alias" in
1136 NONE)
1137 case $nonopt in
1138 NONE) target_alias=$host_alias ;;
1139 *) target_alias=$nonopt ;;
1140 esac ;;
1141 esac
1143 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1144 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1145 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1146 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1147 echo "$ac_t""$target" 1>&6
1149 echo $ac_n "checking build system type""... $ac_c" 1>&6
1150 echo "configure:1151: checking build system type" >&5
1152 build_alias=$build
1153 case "$build_alias" in
1154 NONE)
1155 case $nonopt in
1156 NONE) build_alias=$host_alias ;;
1157 *) build_alias=$nonopt ;;
1158 esac ;;
1159 esac
1161 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1162 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1163 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1164 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1165 echo "$ac_t""$build" 1>&6
1167 test "$host_alias" != "$target_alias" &&
1168 test "$program_prefix$program_suffix$program_transform_name" = \
1169 NONENONEs,x,x, &&
1170 program_prefix=${target_alias}-
1173 case "$host_os" in
1174 *irix6*) cat >> confdefs.h <<\EOF
1175 #include <standards.h>
1179 esac
1183 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
1184 echo "configure:1185: checking config.cache system type" >&5
1185 if { test x"${ac_cv_host_system_type+set}" = x"set" &&
1186 test x"$ac_cv_host_system_type" != x"$host"; } ||
1187 { test x"${ac_cv_build_system_type+set}" = x"set" &&
1188 test x"$ac_cv_build_system_type" != x"$build"; } ||
1189 { test x"${ac_cv_target_system_type+set}" = x"set" &&
1190 test x"$ac_cv_target_system_type" != x"$target"; }; then
1191 echo "$ac_t""different" 1>&6
1192 { echo "configure: error: "you must remove config.cache and restart configure"" 1>&2; exit 1; }
1193 else
1194 echo "$ac_t""same" 1>&6
1196 ac_cv_host_system_type="$host"
1197 ac_cv_build_system_type="$build"
1198 ac_cv_target_system_type="$target"
1202 # Config CPPFLAG settings for strange OS's that must be set
1203 # before other tests.
1205 case "$host_os" in
1206 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1207 *hpux*)
1208 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1209 echo "configure:1210: checking whether ${CC-cc} accepts -Ae" >&5
1210 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1211 echo $ac_n "(cached) $ac_c" 1>&6
1212 else
1213 echo 'void f(){}' > conftest.c
1214 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1215 ac_cv_prog_cc_Ae=yes
1216 else
1217 ac_cv_prog_cc_Ae=no
1219 rm -f conftest*
1223 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1224 # mmap on HPUX is completely broken...
1225 cat >> confdefs.h <<\EOF
1226 #define MMAP_BLACKLIST 1
1229 if test $ac_cv_prog_cc_Ae = yes; then
1230 CPPFLAGS="$CPPFLAGS -Ae"
1233 # Defines needed for HPUX support.
1234 # HPUX has bigcrypt but (sometimes?) doesn't use it for
1235 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
1237 case `uname -r` in
1238 *9*|*10*)
1239 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE"
1240 cat >> confdefs.h <<\EOF
1241 #define USE_BOTH_CRYPT_CALLS 1
1245 *11*)
1246 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE"
1247 cat >> confdefs.h <<\EOF
1248 #define USE_BOTH_CRYPT_CALLS 1
1252 esac
1255 # AIX4.x doesn't even admit to having large
1256 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1258 *aix4*)
1259 echo "$ac_t""enabling large file support" 1>&6
1260 CPPFLAGS="$CPPFLAGS -D_LARGE_FILES"
1263 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
1264 # to the existance of large files..
1265 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
1266 # recommendations on large file support, however it makes the
1267 # compile work using gcc 2.7 and 2.8, whereas using the Sun
1268 # recommendation makes the compile fail on gcc2.7. JRA.
1270 *solaris*)
1271 case `uname -r` in
1272 5.0*|5.1*|5.2*|5.3*|5.5*)
1273 echo "$ac_t""no large file support" 1>&6
1275 5.*)
1276 echo "$ac_t""enabling large file support" 1>&6
1277 if test "$ac_cv_prog_gcc" = yes; then
1278 ${CC-cc} -v >conftest.c 2>&1
1279 ac_cv_gcc_compiler_version_number=`grep 'gcc version' conftest.c`
1280 rm -fr conftest.c
1281 case "$ac_cv_gcc_compiler_version_number" in
1282 *"gcc version 2.6"*|*"gcc version 2.7"*)
1283 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
1286 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1288 esac
1289 else
1290 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1293 esac
1296 # Tests needed for SINIX large file support.
1298 *sysv4*)
1299 if test $host = mips-sni-sysv4 ; then
1300 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1301 echo "configure:1302: checking for LFS support" >&5
1302 old_CPPFLAGS="$CPPFLAGS"
1303 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1304 if test "$cross_compiling" = yes; then
1305 SINIX_LFS_SUPPORT=cross
1306 else
1307 cat > conftest.$ac_ext <<EOF
1308 #line 1309 "configure"
1309 #include "confdefs.h"
1311 #include <unistd.h>
1312 main () {
1313 #if _LFS64_LARGEFILE == 1
1314 exit(0);
1315 #else
1316 exit(1);
1317 #endif
1320 if { (eval echo configure:1321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1321 then
1322 SINIX_LFS_SUPPORT=yes
1323 else
1324 echo "configure: failed program was:" >&5
1325 cat conftest.$ac_ext >&5
1326 rm -fr conftest*
1327 SINIX_LFS_SUPPORT=no
1329 rm -fr conftest*
1332 CPPFLAGS="$old_CPPFLAGS"
1333 if test x$SINIX_LFS_SUPPORT = xyes ; then
1334 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1335 CFLAGS="`getconf LFS64_CFLAGS` $CFLAGS"
1336 LDFLAGS="`getconf LFS64_LDFLAGS` $LDFLAGS"
1337 LIBS="`getconf LFS64_LIBS` $LIBS"
1339 echo "$ac_t""$SINIX_LFS_SUPPORT" 1>&6
1343 # Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
1345 *linux*)
1346 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1347 echo "configure:1348: checking for LFS support" >&5
1348 old_CPPFLAGS="$CPPFLAGS"
1349 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1350 if test "$cross_compiling" = yes; then
1351 LINUX_LFS_SUPPORT=cross
1352 else
1353 cat > conftest.$ac_ext <<EOF
1354 #line 1355 "configure"
1355 #include "confdefs.h"
1357 #include <unistd.h>
1358 #include <sys/utsname.h>
1359 main() {
1360 #if _LFS64_LARGEFILE == 1
1361 struct utsname uts;
1362 char *release;
1363 int major, minor;
1365 /* Ensure this is glibc 2.2 or higher */
1366 #if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
1367 int libc_major = __GLIBC__;
1368 int libc_minor = __GLIBC_MINOR__;
1370 if (libc_major < 2)
1371 exit(1);
1372 if (libc_minor < 2)
1373 exit(1);
1374 #endif
1376 /* Ensure this is kernel 2.4 or higher */
1378 uname(&uts);
1379 release = uts.release;
1380 major = atoi(strsep(&release, "."));
1381 minor = atoi(strsep(&release, "."));
1383 if (major > 2 || (major == 2 && minor > 3))
1384 exit(0);
1385 exit(1);
1386 #else
1387 exit(1);
1388 #endif
1392 if { (eval echo configure:1393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1393 then
1394 LINUX_LFS_SUPPORT=yes
1395 else
1396 echo "configure: failed program was:" >&5
1397 cat conftest.$ac_ext >&5
1398 rm -fr conftest*
1399 LINUX_LFS_SUPPORT=no
1401 rm -fr conftest*
1404 CPPFLAGS="$old_CPPFLAGS"
1405 if test x$LINUX_LFS_SUPPORT = xyes ; then
1406 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1408 echo "$ac_t""$LINUX_LFS_SUPPORT" 1>&6
1411 *hurd*)
1412 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1413 echo "configure:1414: checking for LFS support" >&5
1414 old_CPPFLAGS="$CPPFLAGS"
1415 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1416 if test "$cross_compiling" = yes; then
1417 GLIBC_LFS_SUPPORT=cross
1418 else
1419 cat > conftest.$ac_ext <<EOF
1420 #line 1421 "configure"
1421 #include "confdefs.h"
1423 #include <unistd.h>
1424 main () {
1425 #if _LFS64_LARGEFILE == 1
1426 exit(0);
1427 #else
1428 exit(1);
1429 #endif
1432 if { (eval echo configure:1433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1433 then
1434 GLIBC_LFS_SUPPORT=yes
1435 else
1436 echo "configure: failed program was:" >&5
1437 cat conftest.$ac_ext >&5
1438 rm -fr conftest*
1439 GLIBC_LFS_SUPPORT=no
1441 rm -fr conftest*
1444 CPPFLAGS="$old_CPPFLAGS"
1445 if test x$GLIBC_LFS_SUPPORT = xyes ; then
1446 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1448 echo "$ac_t""$GLIBC_LFS_SUPPORT" 1>&6
1451 esac
1453 echo $ac_n "checking for inline""... $ac_c" 1>&6
1454 echo "configure:1455: checking for inline" >&5
1455 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1456 echo $ac_n "(cached) $ac_c" 1>&6
1457 else
1458 ac_cv_c_inline=no
1459 for ac_kw in inline __inline__ __inline; do
1460 cat > conftest.$ac_ext <<EOF
1461 #line 1462 "configure"
1462 #include "confdefs.h"
1464 int main() {
1465 } $ac_kw foo() {
1466 ; return 0; }
1468 if { (eval echo configure:1469: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1469 rm -rf conftest*
1470 ac_cv_c_inline=$ac_kw; break
1471 else
1472 echo "configure: failed program was:" >&5
1473 cat conftest.$ac_ext >&5
1475 rm -f conftest*
1476 done
1480 echo "$ac_t""$ac_cv_c_inline" 1>&6
1481 case "$ac_cv_c_inline" in
1482 inline | yes) ;;
1483 no) cat >> confdefs.h <<\EOF
1484 #define inline
1487 *) cat >> confdefs.h <<EOF
1488 #define inline $ac_cv_c_inline
1491 esac
1493 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1494 echo "configure:1495: checking how to run the C preprocessor" >&5
1495 # On Suns, sometimes $CPP names a directory.
1496 if test -n "$CPP" && test -d "$CPP"; then
1497 CPP=
1499 if test -z "$CPP"; then
1500 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1501 echo $ac_n "(cached) $ac_c" 1>&6
1502 else
1503 # This must be in double quotes, not single quotes, because CPP may get
1504 # substituted into the Makefile and "${CC-cc}" will confuse make.
1505 CPP="${CC-cc} -E"
1506 # On the NeXT, cc -E runs the code through the compiler's parser,
1507 # not just through cpp.
1508 cat > conftest.$ac_ext <<EOF
1509 #line 1510 "configure"
1510 #include "confdefs.h"
1511 #include <assert.h>
1512 Syntax Error
1514 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1515 { (eval echo configure:1516: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1516 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1517 if test -z "$ac_err"; then
1519 else
1520 echo "$ac_err" >&5
1521 echo "configure: failed program was:" >&5
1522 cat conftest.$ac_ext >&5
1523 rm -rf conftest*
1524 CPP="${CC-cc} -E -traditional-cpp"
1525 cat > conftest.$ac_ext <<EOF
1526 #line 1527 "configure"
1527 #include "confdefs.h"
1528 #include <assert.h>
1529 Syntax Error
1531 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1532 { (eval echo configure:1533: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1533 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1534 if test -z "$ac_err"; then
1536 else
1537 echo "$ac_err" >&5
1538 echo "configure: failed program was:" >&5
1539 cat conftest.$ac_ext >&5
1540 rm -rf conftest*
1541 CPP="${CC-cc} -nologo -E"
1542 cat > conftest.$ac_ext <<EOF
1543 #line 1544 "configure"
1544 #include "confdefs.h"
1545 #include <assert.h>
1546 Syntax Error
1548 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1549 { (eval echo configure:1550: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1550 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1551 if test -z "$ac_err"; then
1553 else
1554 echo "$ac_err" >&5
1555 echo "configure: failed program was:" >&5
1556 cat conftest.$ac_ext >&5
1557 rm -rf conftest*
1558 CPP=/lib/cpp
1560 rm -f conftest*
1562 rm -f conftest*
1564 rm -f conftest*
1565 ac_cv_prog_CPP="$CPP"
1567 CPP="$ac_cv_prog_CPP"
1568 else
1569 ac_cv_prog_CPP="$CPP"
1571 echo "$ac_t""$CPP" 1>&6
1573 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1574 echo "configure:1575: checking for ANSI C header files" >&5
1575 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1576 echo $ac_n "(cached) $ac_c" 1>&6
1577 else
1578 cat > conftest.$ac_ext <<EOF
1579 #line 1580 "configure"
1580 #include "confdefs.h"
1581 #include <stdlib.h>
1582 #include <stdarg.h>
1583 #include <string.h>
1584 #include <float.h>
1586 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1587 { (eval echo configure:1588: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1588 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1589 if test -z "$ac_err"; then
1590 rm -rf conftest*
1591 ac_cv_header_stdc=yes
1592 else
1593 echo "$ac_err" >&5
1594 echo "configure: failed program was:" >&5
1595 cat conftest.$ac_ext >&5
1596 rm -rf conftest*
1597 ac_cv_header_stdc=no
1599 rm -f conftest*
1601 if test $ac_cv_header_stdc = yes; then
1602 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1603 cat > conftest.$ac_ext <<EOF
1604 #line 1605 "configure"
1605 #include "confdefs.h"
1606 #include <string.h>
1608 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1609 egrep "memchr" >/dev/null 2>&1; then
1611 else
1612 rm -rf conftest*
1613 ac_cv_header_stdc=no
1615 rm -f conftest*
1619 if test $ac_cv_header_stdc = yes; then
1620 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1621 cat > conftest.$ac_ext <<EOF
1622 #line 1623 "configure"
1623 #include "confdefs.h"
1624 #include <stdlib.h>
1626 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1627 egrep "free" >/dev/null 2>&1; then
1629 else
1630 rm -rf conftest*
1631 ac_cv_header_stdc=no
1633 rm -f conftest*
1637 if test $ac_cv_header_stdc = yes; then
1638 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1639 if test "$cross_compiling" = yes; then
1641 else
1642 cat > conftest.$ac_ext <<EOF
1643 #line 1644 "configure"
1644 #include "confdefs.h"
1645 #include <ctype.h>
1646 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1647 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1648 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1649 int main () { int i; for (i = 0; i < 256; i++)
1650 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1651 exit (0); }
1654 if { (eval echo configure:1655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1655 then
1657 else
1658 echo "configure: failed program was:" >&5
1659 cat conftest.$ac_ext >&5
1660 rm -fr conftest*
1661 ac_cv_header_stdc=no
1663 rm -fr conftest*
1669 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1670 if test $ac_cv_header_stdc = yes; then
1671 cat >> confdefs.h <<\EOF
1672 #define STDC_HEADERS 1
1677 ac_header_dirent=no
1678 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1680 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1681 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1682 echo "configure:1683: checking for $ac_hdr that defines DIR" >&5
1683 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1684 echo $ac_n "(cached) $ac_c" 1>&6
1685 else
1686 cat > conftest.$ac_ext <<EOF
1687 #line 1688 "configure"
1688 #include "confdefs.h"
1689 #include <sys/types.h>
1690 #include <$ac_hdr>
1691 int main() {
1692 DIR *dirp = 0;
1693 ; return 0; }
1695 if { (eval echo configure:1696: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1696 rm -rf conftest*
1697 eval "ac_cv_header_dirent_$ac_safe=yes"
1698 else
1699 echo "configure: failed program was:" >&5
1700 cat conftest.$ac_ext >&5
1701 rm -rf conftest*
1702 eval "ac_cv_header_dirent_$ac_safe=no"
1704 rm -f conftest*
1706 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1707 echo "$ac_t""yes" 1>&6
1708 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1709 cat >> confdefs.h <<EOF
1710 #define $ac_tr_hdr 1
1712 ac_header_dirent=$ac_hdr; break
1713 else
1714 echo "$ac_t""no" 1>&6
1716 done
1717 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1718 if test $ac_header_dirent = dirent.h; then
1719 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1720 echo "configure:1721: checking for opendir in -ldir" >&5
1721 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1722 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1723 echo $ac_n "(cached) $ac_c" 1>&6
1724 else
1725 ac_save_LIBS="$LIBS"
1726 LIBS="-ldir $LIBS"
1727 cat > conftest.$ac_ext <<EOF
1728 #line 1729 "configure"
1729 #include "confdefs.h"
1730 /* Override any gcc2 internal prototype to avoid an error. */
1731 /* We use char because int might match the return type of a gcc2
1732 builtin and then its argument prototype would still apply. */
1733 char opendir();
1735 int main() {
1736 opendir()
1737 ; return 0; }
1739 if { (eval echo configure:1740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1740 rm -rf conftest*
1741 eval "ac_cv_lib_$ac_lib_var=yes"
1742 else
1743 echo "configure: failed program was:" >&5
1744 cat conftest.$ac_ext >&5
1745 rm -rf conftest*
1746 eval "ac_cv_lib_$ac_lib_var=no"
1748 rm -f conftest*
1749 LIBS="$ac_save_LIBS"
1752 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1753 echo "$ac_t""yes" 1>&6
1754 LIBS="$LIBS -ldir"
1755 else
1756 echo "$ac_t""no" 1>&6
1759 else
1760 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1761 echo "configure:1762: checking for opendir in -lx" >&5
1762 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1763 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1764 echo $ac_n "(cached) $ac_c" 1>&6
1765 else
1766 ac_save_LIBS="$LIBS"
1767 LIBS="-lx $LIBS"
1768 cat > conftest.$ac_ext <<EOF
1769 #line 1770 "configure"
1770 #include "confdefs.h"
1771 /* Override any gcc2 internal prototype to avoid an error. */
1772 /* We use char because int might match the return type of a gcc2
1773 builtin and then its argument prototype would still apply. */
1774 char opendir();
1776 int main() {
1777 opendir()
1778 ; return 0; }
1780 if { (eval echo configure:1781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1781 rm -rf conftest*
1782 eval "ac_cv_lib_$ac_lib_var=yes"
1783 else
1784 echo "configure: failed program was:" >&5
1785 cat conftest.$ac_ext >&5
1786 rm -rf conftest*
1787 eval "ac_cv_lib_$ac_lib_var=no"
1789 rm -f conftest*
1790 LIBS="$ac_save_LIBS"
1793 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1794 echo "$ac_t""yes" 1>&6
1795 LIBS="$LIBS -lx"
1796 else
1797 echo "$ac_t""no" 1>&6
1802 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1803 echo "configure:1804: checking whether time.h and sys/time.h may both be included" >&5
1804 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1805 echo $ac_n "(cached) $ac_c" 1>&6
1806 else
1807 cat > conftest.$ac_ext <<EOF
1808 #line 1809 "configure"
1809 #include "confdefs.h"
1810 #include <sys/types.h>
1811 #include <sys/time.h>
1812 #include <time.h>
1813 int main() {
1814 struct tm *tp;
1815 ; return 0; }
1817 if { (eval echo configure:1818: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1818 rm -rf conftest*
1819 ac_cv_header_time=yes
1820 else
1821 echo "configure: failed program was:" >&5
1822 cat conftest.$ac_ext >&5
1823 rm -rf conftest*
1824 ac_cv_header_time=no
1826 rm -f conftest*
1829 echo "$ac_t""$ac_cv_header_time" 1>&6
1830 if test $ac_cv_header_time = yes; then
1831 cat >> confdefs.h <<\EOF
1832 #define TIME_WITH_SYS_TIME 1
1837 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1838 echo "configure:1839: checking for sys/wait.h that is POSIX.1 compatible" >&5
1839 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1840 echo $ac_n "(cached) $ac_c" 1>&6
1841 else
1842 cat > conftest.$ac_ext <<EOF
1843 #line 1844 "configure"
1844 #include "confdefs.h"
1845 #include <sys/types.h>
1846 #include <sys/wait.h>
1847 #ifndef WEXITSTATUS
1848 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1849 #endif
1850 #ifndef WIFEXITED
1851 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1852 #endif
1853 int main() {
1854 int s;
1855 wait (&s);
1856 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1857 ; return 0; }
1859 if { (eval echo configure:1860: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1860 rm -rf conftest*
1861 ac_cv_header_sys_wait_h=yes
1862 else
1863 echo "configure: failed program was:" >&5
1864 cat conftest.$ac_ext >&5
1865 rm -rf conftest*
1866 ac_cv_header_sys_wait_h=no
1868 rm -f conftest*
1871 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1872 if test $ac_cv_header_sys_wait_h = yes; then
1873 cat >> confdefs.h <<\EOF
1874 #define HAVE_SYS_WAIT_H 1
1879 for ac_hdr in arpa/inet.h sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h
1881 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1882 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1883 echo "configure:1884: checking for $ac_hdr" >&5
1884 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1885 echo $ac_n "(cached) $ac_c" 1>&6
1886 else
1887 cat > conftest.$ac_ext <<EOF
1888 #line 1889 "configure"
1889 #include "confdefs.h"
1890 #include <$ac_hdr>
1892 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1893 { (eval echo configure:1894: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1894 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1895 if test -z "$ac_err"; then
1896 rm -rf conftest*
1897 eval "ac_cv_header_$ac_safe=yes"
1898 else
1899 echo "$ac_err" >&5
1900 echo "configure: failed program was:" >&5
1901 cat conftest.$ac_ext >&5
1902 rm -rf conftest*
1903 eval "ac_cv_header_$ac_safe=no"
1905 rm -f conftest*
1907 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1908 echo "$ac_t""yes" 1>&6
1909 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1910 cat >> confdefs.h <<EOF
1911 #define $ac_tr_hdr 1
1914 else
1915 echo "$ac_t""no" 1>&6
1917 done
1919 for ac_hdr in unistd.h utime.h grp.h sys/id.h limits.h memory.h net/if.h
1921 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1922 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1923 echo "configure:1924: checking for $ac_hdr" >&5
1924 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1925 echo $ac_n "(cached) $ac_c" 1>&6
1926 else
1927 cat > conftest.$ac_ext <<EOF
1928 #line 1929 "configure"
1929 #include "confdefs.h"
1930 #include <$ac_hdr>
1932 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1933 { (eval echo configure:1934: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1934 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1935 if test -z "$ac_err"; then
1936 rm -rf conftest*
1937 eval "ac_cv_header_$ac_safe=yes"
1938 else
1939 echo "$ac_err" >&5
1940 echo "configure: failed program was:" >&5
1941 cat conftest.$ac_ext >&5
1942 rm -rf conftest*
1943 eval "ac_cv_header_$ac_safe=no"
1945 rm -f conftest*
1947 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1948 echo "$ac_t""yes" 1>&6
1949 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1950 cat >> confdefs.h <<EOF
1951 #define $ac_tr_hdr 1
1954 else
1955 echo "$ac_t""no" 1>&6
1957 done
1959 for ac_hdr in compat.h rpc/rpc.h rpcsvc/nis.h rpcsvc/yp_prot.h rpcsvc/ypclnt.h
1961 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1962 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1963 echo "configure:1964: checking for $ac_hdr" >&5
1964 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1965 echo $ac_n "(cached) $ac_c" 1>&6
1966 else
1967 cat > conftest.$ac_ext <<EOF
1968 #line 1969 "configure"
1969 #include "confdefs.h"
1970 #include <$ac_hdr>
1972 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1973 { (eval echo configure:1974: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1974 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1975 if test -z "$ac_err"; then
1976 rm -rf conftest*
1977 eval "ac_cv_header_$ac_safe=yes"
1978 else
1979 echo "$ac_err" >&5
1980 echo "configure: failed program was:" >&5
1981 cat conftest.$ac_ext >&5
1982 rm -rf conftest*
1983 eval "ac_cv_header_$ac_safe=no"
1985 rm -f conftest*
1987 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1988 echo "$ac_t""yes" 1>&6
1989 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1990 cat >> confdefs.h <<EOF
1991 #define $ac_tr_hdr 1
1994 else
1995 echo "$ac_t""no" 1>&6
1997 done
1999 for ac_hdr in sys/param.h ctype.h sys/wait.h sys/resource.h sys/ioctl.h sys/ipc.h sys/mode.h
2001 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2002 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2003 echo "configure:2004: checking for $ac_hdr" >&5
2004 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2005 echo $ac_n "(cached) $ac_c" 1>&6
2006 else
2007 cat > conftest.$ac_ext <<EOF
2008 #line 2009 "configure"
2009 #include "confdefs.h"
2010 #include <$ac_hdr>
2012 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2013 { (eval echo configure:2014: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2014 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2015 if test -z "$ac_err"; then
2016 rm -rf conftest*
2017 eval "ac_cv_header_$ac_safe=yes"
2018 else
2019 echo "$ac_err" >&5
2020 echo "configure: failed program was:" >&5
2021 cat conftest.$ac_ext >&5
2022 rm -rf conftest*
2023 eval "ac_cv_header_$ac_safe=no"
2025 rm -f conftest*
2027 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2028 echo "$ac_t""yes" 1>&6
2029 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2030 cat >> confdefs.h <<EOF
2031 #define $ac_tr_hdr 1
2034 else
2035 echo "$ac_t""no" 1>&6
2037 done
2039 for ac_hdr in sys/mman.h sys/filio.h sys/priv.h sys/shm.h string.h strings.h stdlib.h sys/socket.h
2041 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2042 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2043 echo "configure:2044: checking for $ac_hdr" >&5
2044 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2045 echo $ac_n "(cached) $ac_c" 1>&6
2046 else
2047 cat > conftest.$ac_ext <<EOF
2048 #line 2049 "configure"
2049 #include "confdefs.h"
2050 #include <$ac_hdr>
2052 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2053 { (eval echo configure:2054: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2054 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2055 if test -z "$ac_err"; then
2056 rm -rf conftest*
2057 eval "ac_cv_header_$ac_safe=yes"
2058 else
2059 echo "$ac_err" >&5
2060 echo "configure: failed program was:" >&5
2061 cat conftest.$ac_ext >&5
2062 rm -rf conftest*
2063 eval "ac_cv_header_$ac_safe=no"
2065 rm -f conftest*
2067 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2068 echo "$ac_t""yes" 1>&6
2069 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2070 cat >> confdefs.h <<EOF
2071 #define $ac_tr_hdr 1
2074 else
2075 echo "$ac_t""no" 1>&6
2077 done
2079 for ac_hdr in sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h termio.h
2081 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2082 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2083 echo "configure:2084: checking for $ac_hdr" >&5
2084 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2085 echo $ac_n "(cached) $ac_c" 1>&6
2086 else
2087 cat > conftest.$ac_ext <<EOF
2088 #line 2089 "configure"
2089 #include "confdefs.h"
2090 #include <$ac_hdr>
2092 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2093 { (eval echo configure:2094: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2094 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2095 if test -z "$ac_err"; then
2096 rm -rf conftest*
2097 eval "ac_cv_header_$ac_safe=yes"
2098 else
2099 echo "$ac_err" >&5
2100 echo "configure: failed program was:" >&5
2101 cat conftest.$ac_ext >&5
2102 rm -rf conftest*
2103 eval "ac_cv_header_$ac_safe=no"
2105 rm -f conftest*
2107 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2108 echo "$ac_t""yes" 1>&6
2109 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2110 cat >> confdefs.h <<EOF
2111 #define $ac_tr_hdr 1
2114 else
2115 echo "$ac_t""no" 1>&6
2117 done
2119 for ac_hdr in sys/termio.h sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h
2121 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2122 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2123 echo "configure:2124: checking for $ac_hdr" >&5
2124 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2125 echo $ac_n "(cached) $ac_c" 1>&6
2126 else
2127 cat > conftest.$ac_ext <<EOF
2128 #line 2129 "configure"
2129 #include "confdefs.h"
2130 #include <$ac_hdr>
2132 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2133 { (eval echo configure:2134: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2134 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2135 if test -z "$ac_err"; then
2136 rm -rf conftest*
2137 eval "ac_cv_header_$ac_safe=yes"
2138 else
2139 echo "$ac_err" >&5
2140 echo "configure: failed program was:" >&5
2141 cat conftest.$ac_ext >&5
2142 rm -rf conftest*
2143 eval "ac_cv_header_$ac_safe=no"
2145 rm -f conftest*
2147 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2148 echo "$ac_t""yes" 1>&6
2149 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2150 cat >> confdefs.h <<EOF
2151 #define $ac_tr_hdr 1
2154 else
2155 echo "$ac_t""no" 1>&6
2157 done
2159 for ac_hdr in security/pam_modules.h security/_pam_macros.h
2161 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2162 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2163 echo "configure:2164: checking for $ac_hdr" >&5
2164 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2165 echo $ac_n "(cached) $ac_c" 1>&6
2166 else
2167 cat > conftest.$ac_ext <<EOF
2168 #line 2169 "configure"
2169 #include "confdefs.h"
2170 #include <$ac_hdr>
2172 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2173 { (eval echo configure:2174: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2174 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2175 if test -z "$ac_err"; then
2176 rm -rf conftest*
2177 eval "ac_cv_header_$ac_safe=yes"
2178 else
2179 echo "$ac_err" >&5
2180 echo "configure: failed program was:" >&5
2181 cat conftest.$ac_ext >&5
2182 rm -rf conftest*
2183 eval "ac_cv_header_$ac_safe=no"
2185 rm -f conftest*
2187 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2188 echo "$ac_t""yes" 1>&6
2189 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2190 cat >> confdefs.h <<EOF
2191 #define $ac_tr_hdr 1
2194 else
2195 echo "$ac_t""no" 1>&6
2197 done
2201 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
2202 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
2204 case "$host_os" in
2205 *hpux*)
2206 cat > conftest.$ac_ext <<EOF
2207 #line 2208 "configure"
2208 #include "confdefs.h"
2209 #include <shadow.h>
2210 int main() {
2211 struct spwd testme
2212 ; return 0; }
2214 if { (eval echo configure:2215: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2215 rm -rf conftest*
2216 ac_cv_header_shadow_h=yes
2217 else
2218 echo "configure: failed program was:" >&5
2219 cat conftest.$ac_ext >&5
2220 rm -rf conftest*
2221 ac_cv_header_shadow_h=no
2223 rm -f conftest*
2224 if test x"$ac_cv_header_shadow_h" = x"yes"; then
2225 cat >> confdefs.h <<\EOF
2226 #define HAVE_SHADOW_H 1
2231 esac
2232 for ac_hdr in shadow.h netinet/ip.h netinet/tcp.h netinet/in_systm.h netinet/in_ip.h
2234 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2235 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2236 echo "configure:2237: checking for $ac_hdr" >&5
2237 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2238 echo $ac_n "(cached) $ac_c" 1>&6
2239 else
2240 cat > conftest.$ac_ext <<EOF
2241 #line 2242 "configure"
2242 #include "confdefs.h"
2243 #include <$ac_hdr>
2245 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2246 { (eval echo configure:2247: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2247 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2248 if test -z "$ac_err"; then
2249 rm -rf conftest*
2250 eval "ac_cv_header_$ac_safe=yes"
2251 else
2252 echo "$ac_err" >&5
2253 echo "configure: failed program was:" >&5
2254 cat conftest.$ac_ext >&5
2255 rm -rf conftest*
2256 eval "ac_cv_header_$ac_safe=no"
2258 rm -f conftest*
2260 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2261 echo "$ac_t""yes" 1>&6
2262 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2263 cat >> confdefs.h <<EOF
2264 #define $ac_tr_hdr 1
2267 else
2268 echo "$ac_t""no" 1>&6
2270 done
2272 for ac_hdr in nss.h nss_common.h sys/security.h security/pam_appl.h security/pam_modules.h
2274 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2275 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2276 echo "configure:2277: checking for $ac_hdr" >&5
2277 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2278 echo $ac_n "(cached) $ac_c" 1>&6
2279 else
2280 cat > conftest.$ac_ext <<EOF
2281 #line 2282 "configure"
2282 #include "confdefs.h"
2283 #include <$ac_hdr>
2285 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2286 { (eval echo configure:2287: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2287 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2288 if test -z "$ac_err"; then
2289 rm -rf conftest*
2290 eval "ac_cv_header_$ac_safe=yes"
2291 else
2292 echo "$ac_err" >&5
2293 echo "configure: failed program was:" >&5
2294 cat conftest.$ac_ext >&5
2295 rm -rf conftest*
2296 eval "ac_cv_header_$ac_safe=no"
2298 rm -f conftest*
2300 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2301 echo "$ac_t""yes" 1>&6
2302 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2303 cat >> confdefs.h <<EOF
2304 #define $ac_tr_hdr 1
2307 else
2308 echo "$ac_t""no" 1>&6
2310 done
2312 for ac_hdr in stropts.h poll.h
2314 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2315 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2316 echo "configure:2317: checking for $ac_hdr" >&5
2317 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2318 echo $ac_n "(cached) $ac_c" 1>&6
2319 else
2320 cat > conftest.$ac_ext <<EOF
2321 #line 2322 "configure"
2322 #include "confdefs.h"
2323 #include <$ac_hdr>
2325 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2326 { (eval echo configure:2327: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2327 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2328 if test -z "$ac_err"; then
2329 rm -rf conftest*
2330 eval "ac_cv_header_$ac_safe=yes"
2331 else
2332 echo "$ac_err" >&5
2333 echo "configure: failed program was:" >&5
2334 cat conftest.$ac_ext >&5
2335 rm -rf conftest*
2336 eval "ac_cv_header_$ac_safe=no"
2338 rm -f conftest*
2340 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2341 echo "$ac_t""yes" 1>&6
2342 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2343 cat >> confdefs.h <<EOF
2344 #define $ac_tr_hdr 1
2347 else
2348 echo "$ac_t""no" 1>&6
2350 done
2352 for ac_hdr in sys/capability.h syscall.h sys/syscall.h
2354 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2355 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2356 echo "configure:2357: checking for $ac_hdr" >&5
2357 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2358 echo $ac_n "(cached) $ac_c" 1>&6
2359 else
2360 cat > conftest.$ac_ext <<EOF
2361 #line 2362 "configure"
2362 #include "confdefs.h"
2363 #include <$ac_hdr>
2365 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2366 { (eval echo configure:2367: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2367 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2368 if test -z "$ac_err"; then
2369 rm -rf conftest*
2370 eval "ac_cv_header_$ac_safe=yes"
2371 else
2372 echo "$ac_err" >&5
2373 echo "configure: failed program was:" >&5
2374 cat conftest.$ac_ext >&5
2375 rm -rf conftest*
2376 eval "ac_cv_header_$ac_safe=no"
2378 rm -f conftest*
2380 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2381 echo "$ac_t""yes" 1>&6
2382 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2383 cat >> confdefs.h <<EOF
2384 #define $ac_tr_hdr 1
2387 else
2388 echo "$ac_t""no" 1>&6
2390 done
2392 for ac_hdr in sys/acl.h sys/cdefs.h glob.h
2394 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2395 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2396 echo "configure:2397: checking for $ac_hdr" >&5
2397 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2398 echo $ac_n "(cached) $ac_c" 1>&6
2399 else
2400 cat > conftest.$ac_ext <<EOF
2401 #line 2402 "configure"
2402 #include "confdefs.h"
2403 #include <$ac_hdr>
2405 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2406 { (eval echo configure:2407: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2407 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2408 if test -z "$ac_err"; then
2409 rm -rf conftest*
2410 eval "ac_cv_header_$ac_safe=yes"
2411 else
2412 echo "$ac_err" >&5
2413 echo "configure: failed program was:" >&5
2414 cat conftest.$ac_ext >&5
2415 rm -rf conftest*
2416 eval "ac_cv_header_$ac_safe=no"
2418 rm -f conftest*
2420 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2421 echo "$ac_t""yes" 1>&6
2422 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2423 cat >> confdefs.h <<EOF
2424 #define $ac_tr_hdr 1
2427 else
2428 echo "$ac_t""no" 1>&6
2430 done
2433 # For experimental utmp support (lastlog on some BSD-like systems)
2434 for ac_hdr in utmp.h utmpx.h lastlog.h
2436 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2437 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2438 echo "configure:2439: checking for $ac_hdr" >&5
2439 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2440 echo $ac_n "(cached) $ac_c" 1>&6
2441 else
2442 cat > conftest.$ac_ext <<EOF
2443 #line 2444 "configure"
2444 #include "confdefs.h"
2445 #include <$ac_hdr>
2447 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2448 { (eval echo configure:2449: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2449 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2450 if test -z "$ac_err"; then
2451 rm -rf conftest*
2452 eval "ac_cv_header_$ac_safe=yes"
2453 else
2454 echo "$ac_err" >&5
2455 echo "configure: failed program was:" >&5
2456 cat conftest.$ac_ext >&5
2457 rm -rf conftest*
2458 eval "ac_cv_header_$ac_safe=no"
2460 rm -f conftest*
2462 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2463 echo "$ac_t""yes" 1>&6
2464 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2465 cat >> confdefs.h <<EOF
2466 #define $ac_tr_hdr 1
2469 else
2470 echo "$ac_t""no" 1>&6
2472 done
2475 # For quotas on Veritas VxFS filesystems
2476 for ac_hdr in sys/fs/vx_quota.h
2478 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2479 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2480 echo "configure:2481: checking for $ac_hdr" >&5
2481 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2482 echo $ac_n "(cached) $ac_c" 1>&6
2483 else
2484 cat > conftest.$ac_ext <<EOF
2485 #line 2486 "configure"
2486 #include "confdefs.h"
2487 #include <$ac_hdr>
2489 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2490 { (eval echo configure:2491: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2491 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2492 if test -z "$ac_err"; then
2493 rm -rf conftest*
2494 eval "ac_cv_header_$ac_safe=yes"
2495 else
2496 echo "$ac_err" >&5
2497 echo "configure: failed program was:" >&5
2498 cat conftest.$ac_ext >&5
2499 rm -rf conftest*
2500 eval "ac_cv_header_$ac_safe=no"
2502 rm -f conftest*
2504 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2505 echo "$ac_t""yes" 1>&6
2506 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2507 cat >> confdefs.h <<EOF
2508 #define $ac_tr_hdr 1
2511 else
2512 echo "$ac_t""no" 1>&6
2514 done
2517 echo $ac_n "checking size of int""... $ac_c" 1>&6
2518 echo "configure:2519: checking size of int" >&5
2519 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2520 echo $ac_n "(cached) $ac_c" 1>&6
2521 else
2522 if test "$cross_compiling" = yes; then
2523 ac_cv_sizeof_int=cross
2524 else
2525 cat > conftest.$ac_ext <<EOF
2526 #line 2527 "configure"
2527 #include "confdefs.h"
2528 #include <stdio.h>
2529 main()
2531 FILE *f=fopen("conftestval", "w");
2532 if (!f) exit(1);
2533 fprintf(f, "%d\n", sizeof(int));
2534 exit(0);
2537 if { (eval echo configure:2538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2538 then
2539 ac_cv_sizeof_int=`cat conftestval`
2540 else
2541 echo "configure: failed program was:" >&5
2542 cat conftest.$ac_ext >&5
2543 rm -fr conftest*
2544 ac_cv_sizeof_int=0
2546 rm -fr conftest*
2550 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2551 cat >> confdefs.h <<EOF
2552 #define SIZEOF_INT $ac_cv_sizeof_int
2556 echo $ac_n "checking size of long""... $ac_c" 1>&6
2557 echo "configure:2558: checking size of long" >&5
2558 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2559 echo $ac_n "(cached) $ac_c" 1>&6
2560 else
2561 if test "$cross_compiling" = yes; then
2562 ac_cv_sizeof_long=cross
2563 else
2564 cat > conftest.$ac_ext <<EOF
2565 #line 2566 "configure"
2566 #include "confdefs.h"
2567 #include <stdio.h>
2568 main()
2570 FILE *f=fopen("conftestval", "w");
2571 if (!f) exit(1);
2572 fprintf(f, "%d\n", sizeof(long));
2573 exit(0);
2576 if { (eval echo configure:2577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2577 then
2578 ac_cv_sizeof_long=`cat conftestval`
2579 else
2580 echo "configure: failed program was:" >&5
2581 cat conftest.$ac_ext >&5
2582 rm -fr conftest*
2583 ac_cv_sizeof_long=0
2585 rm -fr conftest*
2589 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2590 cat >> confdefs.h <<EOF
2591 #define SIZEOF_LONG $ac_cv_sizeof_long
2595 echo $ac_n "checking size of short""... $ac_c" 1>&6
2596 echo "configure:2597: checking size of short" >&5
2597 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2598 echo $ac_n "(cached) $ac_c" 1>&6
2599 else
2600 if test "$cross_compiling" = yes; then
2601 ac_cv_sizeof_short=cross
2602 else
2603 cat > conftest.$ac_ext <<EOF
2604 #line 2605 "configure"
2605 #include "confdefs.h"
2606 #include <stdio.h>
2607 main()
2609 FILE *f=fopen("conftestval", "w");
2610 if (!f) exit(1);
2611 fprintf(f, "%d\n", sizeof(short));
2612 exit(0);
2615 if { (eval echo configure:2616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2616 then
2617 ac_cv_sizeof_short=`cat conftestval`
2618 else
2619 echo "configure: failed program was:" >&5
2620 cat conftest.$ac_ext >&5
2621 rm -fr conftest*
2622 ac_cv_sizeof_short=0
2624 rm -fr conftest*
2628 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2629 cat >> confdefs.h <<EOF
2630 #define SIZEOF_SHORT $ac_cv_sizeof_short
2635 echo $ac_n "checking for working const""... $ac_c" 1>&6
2636 echo "configure:2637: checking for working const" >&5
2637 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2638 echo $ac_n "(cached) $ac_c" 1>&6
2639 else
2640 cat > conftest.$ac_ext <<EOF
2641 #line 2642 "configure"
2642 #include "confdefs.h"
2644 int main() {
2646 /* Ultrix mips cc rejects this. */
2647 typedef int charset[2]; const charset x;
2648 /* SunOS 4.1.1 cc rejects this. */
2649 char const *const *ccp;
2650 char **p;
2651 /* NEC SVR4.0.2 mips cc rejects this. */
2652 struct point {int x, y;};
2653 static struct point const zero = {0,0};
2654 /* AIX XL C 1.02.0.0 rejects this.
2655 It does not let you subtract one const X* pointer from another in an arm
2656 of an if-expression whose if-part is not a constant expression */
2657 const char *g = "string";
2658 ccp = &g + (g ? g-g : 0);
2659 /* HPUX 7.0 cc rejects these. */
2660 ++ccp;
2661 p = (char**) ccp;
2662 ccp = (char const *const *) p;
2663 { /* SCO 3.2v4 cc rejects this. */
2664 char *t;
2665 char const *s = 0 ? (char *) 0 : (char const *) 0;
2667 *t++ = 0;
2669 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2670 int x[] = {25, 17};
2671 const int *foo = &x[0];
2672 ++foo;
2674 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2675 typedef const int *iptr;
2676 iptr p = 0;
2677 ++p;
2679 { /* AIX XL C 1.02.0.0 rejects this saying
2680 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2681 struct s { int j; const int *ap[3]; };
2682 struct s *b; b->j = 5;
2684 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2685 const int foo = 10;
2688 ; return 0; }
2690 if { (eval echo configure:2691: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2691 rm -rf conftest*
2692 ac_cv_c_const=yes
2693 else
2694 echo "configure: failed program was:" >&5
2695 cat conftest.$ac_ext >&5
2696 rm -rf conftest*
2697 ac_cv_c_const=no
2699 rm -f conftest*
2702 echo "$ac_t""$ac_cv_c_const" 1>&6
2703 if test $ac_cv_c_const = no; then
2704 cat >> confdefs.h <<\EOF
2705 #define const
2710 echo $ac_n "checking for inline""... $ac_c" 1>&6
2711 echo "configure:2712: checking for inline" >&5
2712 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2713 echo $ac_n "(cached) $ac_c" 1>&6
2714 else
2715 ac_cv_c_inline=no
2716 for ac_kw in inline __inline__ __inline; do
2717 cat > conftest.$ac_ext <<EOF
2718 #line 2719 "configure"
2719 #include "confdefs.h"
2721 int main() {
2722 } $ac_kw foo() {
2723 ; return 0; }
2725 if { (eval echo configure:2726: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2726 rm -rf conftest*
2727 ac_cv_c_inline=$ac_kw; break
2728 else
2729 echo "configure: failed program was:" >&5
2730 cat conftest.$ac_ext >&5
2732 rm -f conftest*
2733 done
2737 echo "$ac_t""$ac_cv_c_inline" 1>&6
2738 case "$ac_cv_c_inline" in
2739 inline | yes) ;;
2740 no) cat >> confdefs.h <<\EOF
2741 #define inline
2744 *) cat >> confdefs.h <<EOF
2745 #define inline $ac_cv_c_inline
2748 esac
2750 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
2751 echo "configure:2752: checking whether byte ordering is bigendian" >&5
2752 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
2753 echo $ac_n "(cached) $ac_c" 1>&6
2754 else
2755 ac_cv_c_bigendian=unknown
2756 # See if sys/param.h defines the BYTE_ORDER macro.
2757 cat > conftest.$ac_ext <<EOF
2758 #line 2759 "configure"
2759 #include "confdefs.h"
2760 #include <sys/types.h>
2761 #include <sys/param.h>
2762 int main() {
2764 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2765 bogus endian macros
2766 #endif
2767 ; return 0; }
2769 if { (eval echo configure:2770: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2770 rm -rf conftest*
2771 # It does; now see whether it defined to BIG_ENDIAN or not.
2772 cat > conftest.$ac_ext <<EOF
2773 #line 2774 "configure"
2774 #include "confdefs.h"
2775 #include <sys/types.h>
2776 #include <sys/param.h>
2777 int main() {
2779 #if BYTE_ORDER != BIG_ENDIAN
2780 not big endian
2781 #endif
2782 ; return 0; }
2784 if { (eval echo configure:2785: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2785 rm -rf conftest*
2786 ac_cv_c_bigendian=yes
2787 else
2788 echo "configure: failed program was:" >&5
2789 cat conftest.$ac_ext >&5
2790 rm -rf conftest*
2791 ac_cv_c_bigendian=no
2793 rm -f conftest*
2794 else
2795 echo "configure: failed program was:" >&5
2796 cat conftest.$ac_ext >&5
2798 rm -f conftest*
2799 if test $ac_cv_c_bigendian = unknown; then
2800 if test "$cross_compiling" = yes; then
2801 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2802 else
2803 cat > conftest.$ac_ext <<EOF
2804 #line 2805 "configure"
2805 #include "confdefs.h"
2806 main () {
2807 /* Are we little or big endian? From Harbison&Steele. */
2808 union
2810 long l;
2811 char c[sizeof (long)];
2812 } u;
2813 u.l = 1;
2814 exit (u.c[sizeof (long) - 1] == 1);
2817 if { (eval echo configure:2818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2818 then
2819 ac_cv_c_bigendian=no
2820 else
2821 echo "configure: failed program was:" >&5
2822 cat conftest.$ac_ext >&5
2823 rm -fr conftest*
2824 ac_cv_c_bigendian=yes
2826 rm -fr conftest*
2832 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
2833 if test $ac_cv_c_bigendian = yes; then
2834 cat >> confdefs.h <<\EOF
2835 #define WORDS_BIGENDIAN 1
2840 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
2841 echo "configure:2842: checking whether char is unsigned" >&5
2842 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
2843 echo $ac_n "(cached) $ac_c" 1>&6
2844 else
2845 if test "$GCC" = yes; then
2846 # GCC predefines this symbol on systems where it applies.
2847 cat > conftest.$ac_ext <<EOF
2848 #line 2849 "configure"
2849 #include "confdefs.h"
2850 #ifdef __CHAR_UNSIGNED__
2852 #endif
2855 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2856 egrep "yes" >/dev/null 2>&1; then
2857 rm -rf conftest*
2858 ac_cv_c_char_unsigned=yes
2859 else
2860 rm -rf conftest*
2861 ac_cv_c_char_unsigned=no
2863 rm -f conftest*
2865 else
2866 if test "$cross_compiling" = yes; then
2867 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2868 else
2869 cat > conftest.$ac_ext <<EOF
2870 #line 2871 "configure"
2871 #include "confdefs.h"
2872 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
2873 #if !defined(__STDC__) || __STDC__ != 1
2874 #define volatile
2875 #endif
2876 main() {
2877 volatile char c = 255; exit(c < 0);
2880 if { (eval echo configure:2881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2881 then
2882 ac_cv_c_char_unsigned=yes
2883 else
2884 echo "configure: failed program was:" >&5
2885 cat conftest.$ac_ext >&5
2886 rm -fr conftest*
2887 ac_cv_c_char_unsigned=no
2889 rm -fr conftest*
2895 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
2896 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
2897 cat >> confdefs.h <<\EOF
2898 #define __CHAR_UNSIGNED__ 1
2904 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2905 echo "configure:2906: checking return type of signal handlers" >&5
2906 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2907 echo $ac_n "(cached) $ac_c" 1>&6
2908 else
2909 cat > conftest.$ac_ext <<EOF
2910 #line 2911 "configure"
2911 #include "confdefs.h"
2912 #include <sys/types.h>
2913 #include <signal.h>
2914 #ifdef signal
2915 #undef signal
2916 #endif
2917 #ifdef __cplusplus
2918 extern "C" void (*signal (int, void (*)(int)))(int);
2919 #else
2920 void (*signal ()) ();
2921 #endif
2923 int main() {
2924 int i;
2925 ; return 0; }
2927 if { (eval echo configure:2928: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2928 rm -rf conftest*
2929 ac_cv_type_signal=void
2930 else
2931 echo "configure: failed program was:" >&5
2932 cat conftest.$ac_ext >&5
2933 rm -rf conftest*
2934 ac_cv_type_signal=int
2936 rm -f conftest*
2939 echo "$ac_t""$ac_cv_type_signal" 1>&6
2940 cat >> confdefs.h <<EOF
2941 #define RETSIGTYPE $ac_cv_type_signal
2945 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2946 echo "configure:2947: checking for uid_t in sys/types.h" >&5
2947 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
2948 echo $ac_n "(cached) $ac_c" 1>&6
2949 else
2950 cat > conftest.$ac_ext <<EOF
2951 #line 2952 "configure"
2952 #include "confdefs.h"
2953 #include <sys/types.h>
2955 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2956 egrep "uid_t" >/dev/null 2>&1; then
2957 rm -rf conftest*
2958 ac_cv_type_uid_t=yes
2959 else
2960 rm -rf conftest*
2961 ac_cv_type_uid_t=no
2963 rm -f conftest*
2967 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
2968 if test $ac_cv_type_uid_t = no; then
2969 cat >> confdefs.h <<\EOF
2970 #define uid_t int
2973 cat >> confdefs.h <<\EOF
2974 #define gid_t int
2979 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
2980 echo "configure:2981: checking for mode_t" >&5
2981 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
2982 echo $ac_n "(cached) $ac_c" 1>&6
2983 else
2984 cat > conftest.$ac_ext <<EOF
2985 #line 2986 "configure"
2986 #include "confdefs.h"
2987 #include <sys/types.h>
2988 #if STDC_HEADERS
2989 #include <stdlib.h>
2990 #include <stddef.h>
2991 #endif
2993 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2994 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2995 rm -rf conftest*
2996 ac_cv_type_mode_t=yes
2997 else
2998 rm -rf conftest*
2999 ac_cv_type_mode_t=no
3001 rm -f conftest*
3004 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3005 if test $ac_cv_type_mode_t = no; then
3006 cat >> confdefs.h <<\EOF
3007 #define mode_t int
3012 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3013 echo "configure:3014: checking for off_t" >&5
3014 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3015 echo $ac_n "(cached) $ac_c" 1>&6
3016 else
3017 cat > conftest.$ac_ext <<EOF
3018 #line 3019 "configure"
3019 #include "confdefs.h"
3020 #include <sys/types.h>
3021 #if STDC_HEADERS
3022 #include <stdlib.h>
3023 #include <stddef.h>
3024 #endif
3026 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3027 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3028 rm -rf conftest*
3029 ac_cv_type_off_t=yes
3030 else
3031 rm -rf conftest*
3032 ac_cv_type_off_t=no
3034 rm -f conftest*
3037 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3038 if test $ac_cv_type_off_t = no; then
3039 cat >> confdefs.h <<\EOF
3040 #define off_t long
3045 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3046 echo "configure:3047: checking for size_t" >&5
3047 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3048 echo $ac_n "(cached) $ac_c" 1>&6
3049 else
3050 cat > conftest.$ac_ext <<EOF
3051 #line 3052 "configure"
3052 #include "confdefs.h"
3053 #include <sys/types.h>
3054 #if STDC_HEADERS
3055 #include <stdlib.h>
3056 #include <stddef.h>
3057 #endif
3059 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3060 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3061 rm -rf conftest*
3062 ac_cv_type_size_t=yes
3063 else
3064 rm -rf conftest*
3065 ac_cv_type_size_t=no
3067 rm -f conftest*
3070 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3071 if test $ac_cv_type_size_t = no; then
3072 cat >> confdefs.h <<\EOF
3073 #define size_t unsigned
3078 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3079 echo "configure:3080: checking for pid_t" >&5
3080 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3081 echo $ac_n "(cached) $ac_c" 1>&6
3082 else
3083 cat > conftest.$ac_ext <<EOF
3084 #line 3085 "configure"
3085 #include "confdefs.h"
3086 #include <sys/types.h>
3087 #if STDC_HEADERS
3088 #include <stdlib.h>
3089 #include <stddef.h>
3090 #endif
3092 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3093 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3094 rm -rf conftest*
3095 ac_cv_type_pid_t=yes
3096 else
3097 rm -rf conftest*
3098 ac_cv_type_pid_t=no
3100 rm -f conftest*
3103 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3104 if test $ac_cv_type_pid_t = no; then
3105 cat >> confdefs.h <<\EOF
3106 #define pid_t int
3111 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3112 echo "configure:3113: checking for st_rdev in struct stat" >&5
3113 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3114 echo $ac_n "(cached) $ac_c" 1>&6
3115 else
3116 cat > conftest.$ac_ext <<EOF
3117 #line 3118 "configure"
3118 #include "confdefs.h"
3119 #include <sys/types.h>
3120 #include <sys/stat.h>
3121 int main() {
3122 struct stat s; s.st_rdev;
3123 ; return 0; }
3125 if { (eval echo configure:3126: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3126 rm -rf conftest*
3127 ac_cv_struct_st_rdev=yes
3128 else
3129 echo "configure: failed program was:" >&5
3130 cat conftest.$ac_ext >&5
3131 rm -rf conftest*
3132 ac_cv_struct_st_rdev=no
3134 rm -f conftest*
3137 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3138 if test $ac_cv_struct_st_rdev = yes; then
3139 cat >> confdefs.h <<\EOF
3140 #define HAVE_ST_RDEV 1
3145 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
3146 echo "configure:3147: checking for d_off in dirent" >&5
3147 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
3148 echo $ac_n "(cached) $ac_c" 1>&6
3149 else
3150 cat > conftest.$ac_ext <<EOF
3151 #line 3152 "configure"
3152 #include "confdefs.h"
3154 #include <unistd.h>
3155 #include <sys/types.h>
3156 #include <dirent.h>
3157 int main() {
3158 struct dirent d; d.d_off;
3159 ; return 0; }
3161 if { (eval echo configure:3162: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3162 rm -rf conftest*
3163 ac_cv_dirent_d_off=yes
3164 else
3165 echo "configure: failed program was:" >&5
3166 cat conftest.$ac_ext >&5
3167 rm -rf conftest*
3168 ac_cv_dirent_d_off=no
3170 rm -f conftest*
3173 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
3174 if test $ac_cv_dirent_d_off = yes; then
3175 cat >> confdefs.h <<\EOF
3176 #define HAVE_DIRENT_D_OFF 1
3181 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
3182 echo "configure:3183: checking for ino_t" >&5
3183 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
3184 echo $ac_n "(cached) $ac_c" 1>&6
3185 else
3186 cat > conftest.$ac_ext <<EOF
3187 #line 3188 "configure"
3188 #include "confdefs.h"
3189 #include <sys/types.h>
3190 #if STDC_HEADERS
3191 #include <stdlib.h>
3192 #include <stddef.h>
3193 #endif
3195 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3196 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3197 rm -rf conftest*
3198 ac_cv_type_ino_t=yes
3199 else
3200 rm -rf conftest*
3201 ac_cv_type_ino_t=no
3203 rm -f conftest*
3206 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
3207 if test $ac_cv_type_ino_t = no; then
3208 cat >> confdefs.h <<\EOF
3209 #define ino_t unsigned
3214 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3215 echo "configure:3216: checking for loff_t" >&5
3216 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
3217 echo $ac_n "(cached) $ac_c" 1>&6
3218 else
3219 cat > conftest.$ac_ext <<EOF
3220 #line 3221 "configure"
3221 #include "confdefs.h"
3222 #include <sys/types.h>
3223 #if STDC_HEADERS
3224 #include <stdlib.h>
3225 #include <stddef.h>
3226 #endif
3228 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3229 egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3230 rm -rf conftest*
3231 ac_cv_type_loff_t=yes
3232 else
3233 rm -rf conftest*
3234 ac_cv_type_loff_t=no
3236 rm -f conftest*
3239 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
3240 if test $ac_cv_type_loff_t = no; then
3241 cat >> confdefs.h <<\EOF
3242 #define loff_t off_t
3247 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
3248 echo "configure:3249: checking for offset_t" >&5
3249 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
3250 echo $ac_n "(cached) $ac_c" 1>&6
3251 else
3252 cat > conftest.$ac_ext <<EOF
3253 #line 3254 "configure"
3254 #include "confdefs.h"
3255 #include <sys/types.h>
3256 #if STDC_HEADERS
3257 #include <stdlib.h>
3258 #include <stddef.h>
3259 #endif
3261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3262 egrep "(^|[^a-zA-Z_0-9])offset_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3263 rm -rf conftest*
3264 ac_cv_type_offset_t=yes
3265 else
3266 rm -rf conftest*
3267 ac_cv_type_offset_t=no
3269 rm -f conftest*
3272 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
3273 if test $ac_cv_type_offset_t = no; then
3274 cat >> confdefs.h <<\EOF
3275 #define offset_t loff_t
3280 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3281 echo "configure:3282: checking for ssize_t" >&5
3282 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3283 echo $ac_n "(cached) $ac_c" 1>&6
3284 else
3285 cat > conftest.$ac_ext <<EOF
3286 #line 3287 "configure"
3287 #include "confdefs.h"
3288 #include <sys/types.h>
3289 #if STDC_HEADERS
3290 #include <stdlib.h>
3291 #include <stddef.h>
3292 #endif
3294 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3295 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3296 rm -rf conftest*
3297 ac_cv_type_ssize_t=yes
3298 else
3299 rm -rf conftest*
3300 ac_cv_type_ssize_t=no
3302 rm -f conftest*
3305 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3306 if test $ac_cv_type_ssize_t = no; then
3307 cat >> confdefs.h <<\EOF
3308 #define ssize_t int
3313 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
3314 echo "configure:3315: checking for wchar_t" >&5
3315 if eval "test \"`echo '$''{'ac_cv_type_wchar_t'+set}'`\" = set"; then
3316 echo $ac_n "(cached) $ac_c" 1>&6
3317 else
3318 cat > conftest.$ac_ext <<EOF
3319 #line 3320 "configure"
3320 #include "confdefs.h"
3321 #include <sys/types.h>
3322 #if STDC_HEADERS
3323 #include <stdlib.h>
3324 #include <stddef.h>
3325 #endif
3327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3328 egrep "(^|[^a-zA-Z_0-9])wchar_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3329 rm -rf conftest*
3330 ac_cv_type_wchar_t=yes
3331 else
3332 rm -rf conftest*
3333 ac_cv_type_wchar_t=no
3335 rm -f conftest*
3338 echo "$ac_t""$ac_cv_type_wchar_t" 1>&6
3339 if test $ac_cv_type_wchar_t = no; then
3340 cat >> confdefs.h <<\EOF
3341 #define wchar_t unsigned short
3347 ############################################
3348 # for cups support we need libcups, and a handful of header files
3350 echo $ac_n "checking for httpConnect in -lcups""... $ac_c" 1>&6
3351 echo "configure:3352: checking for httpConnect in -lcups" >&5
3352 ac_lib_var=`echo cups'_'httpConnect | sed 'y%./+-%__p_%'`
3353 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3354 echo $ac_n "(cached) $ac_c" 1>&6
3355 else
3356 ac_save_LIBS="$LIBS"
3357 LIBS="-lcups $LIBS"
3358 cat > conftest.$ac_ext <<EOF
3359 #line 3360 "configure"
3360 #include "confdefs.h"
3361 /* Override any gcc2 internal prototype to avoid an error. */
3362 /* We use char because int might match the return type of a gcc2
3363 builtin and then its argument prototype would still apply. */
3364 char httpConnect();
3366 int main() {
3367 httpConnect()
3368 ; return 0; }
3370 if { (eval echo configure:3371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3371 rm -rf conftest*
3372 eval "ac_cv_lib_$ac_lib_var=yes"
3373 else
3374 echo "configure: failed program was:" >&5
3375 cat conftest.$ac_ext >&5
3376 rm -rf conftest*
3377 eval "ac_cv_lib_$ac_lib_var=no"
3379 rm -f conftest*
3380 LIBS="$ac_save_LIBS"
3383 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3384 echo "$ac_t""yes" 1>&6
3385 ac_tr_lib=HAVE_LIB`echo cups | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3386 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3387 cat >> confdefs.h <<EOF
3388 #define $ac_tr_lib 1
3391 LIBS="-lcups $LIBS"
3393 else
3394 echo "$ac_t""no" 1>&6
3398 # I wonder if there is a nicer way of doing this?
3400 if test x"$ac_cv_lib_cups_httpConnect" = x"yes"; then
3401 for ac_hdr in cups/cups.h cups/language.h
3403 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3404 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3405 echo "configure:3406: checking for $ac_hdr" >&5
3406 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3407 echo $ac_n "(cached) $ac_c" 1>&6
3408 else
3409 cat > conftest.$ac_ext <<EOF
3410 #line 3411 "configure"
3411 #include "confdefs.h"
3412 #include <$ac_hdr>
3414 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3415 { (eval echo configure:3416: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3416 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3417 if test -z "$ac_err"; then
3418 rm -rf conftest*
3419 eval "ac_cv_header_$ac_safe=yes"
3420 else
3421 echo "$ac_err" >&5
3422 echo "configure: failed program was:" >&5
3423 cat conftest.$ac_ext >&5
3424 rm -rf conftest*
3425 eval "ac_cv_header_$ac_safe=no"
3427 rm -f conftest*
3429 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3430 echo "$ac_t""yes" 1>&6
3431 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3432 cat >> confdefs.h <<EOF
3433 #define $ac_tr_hdr 1
3436 else
3437 echo "$ac_t""no" 1>&6
3439 done
3441 if test x"$ac_cv_header_cups_cups_h" = x"yes"; then
3442 if test x"$ac_cv_header_cups_language_h" = x"yes"; then
3443 cat >> confdefs.h <<\EOF
3444 #define HAVE_CUPS 1
3451 ############################################
3452 # we need libdl for PAM and the new VFS code
3453 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3454 echo "configure:3455: checking for dlopen in -ldl" >&5
3455 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3456 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3457 echo $ac_n "(cached) $ac_c" 1>&6
3458 else
3459 ac_save_LIBS="$LIBS"
3460 LIBS="-ldl $LIBS"
3461 cat > conftest.$ac_ext <<EOF
3462 #line 3463 "configure"
3463 #include "confdefs.h"
3464 /* Override any gcc2 internal prototype to avoid an error. */
3465 /* We use char because int might match the return type of a gcc2
3466 builtin and then its argument prototype would still apply. */
3467 char dlopen();
3469 int main() {
3470 dlopen()
3471 ; return 0; }
3473 if { (eval echo configure:3474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3474 rm -rf conftest*
3475 eval "ac_cv_lib_$ac_lib_var=yes"
3476 else
3477 echo "configure: failed program was:" >&5
3478 cat conftest.$ac_ext >&5
3479 rm -rf conftest*
3480 eval "ac_cv_lib_$ac_lib_var=no"
3482 rm -f conftest*
3483 LIBS="$ac_save_LIBS"
3486 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3487 echo "$ac_t""yes" 1>&6
3488 LIBS="$LIBS -ldl";
3489 cat >> confdefs.h <<\EOF
3490 #define HAVE_LIBDL 1
3493 else
3494 echo "$ac_t""no" 1>&6
3498 ############################################
3499 # check if the compiler can do immediate structures
3500 echo $ac_n "checking for immediate structures""... $ac_c" 1>&6
3501 echo "configure:3502: checking for immediate structures" >&5
3502 if eval "test \"`echo '$''{'samba_cv_immediate_structures'+set}'`\" = set"; then
3503 echo $ac_n "(cached) $ac_c" 1>&6
3504 else
3506 cat > conftest.$ac_ext <<EOF
3507 #line 3508 "configure"
3508 #include "confdefs.h"
3510 #include <stdio.h>
3511 int main() {
3513 #define X_FOOBAR(x) ((FOOBAR) { x })
3514 typedef struct {unsigned x;} FOOBAR;
3515 FOOBAR f = X_FOOBAR(1);
3517 ; return 0; }
3519 if { (eval echo configure:3520: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3520 rm -rf conftest*
3521 samba_cv_immediate_structures=yes
3522 else
3523 echo "configure: failed program was:" >&5
3524 cat conftest.$ac_ext >&5
3525 rm -rf conftest*
3526 samba_cv_immediate_structures=no
3528 rm -f conftest*
3531 echo "$ac_t""$samba_cv_immediate_structures" 1>&6
3532 if test x"$samba_cv_immediate_structures" = x"yes"; then
3533 cat >> confdefs.h <<\EOF
3534 #define HAVE_IMMEDIATE_STRUCTURES 1
3539 ############################################
3540 # check for unix domain sockets
3541 echo $ac_n "checking for unix domain sockets""... $ac_c" 1>&6
3542 echo "configure:3543: checking for unix domain sockets" >&5
3543 if eval "test \"`echo '$''{'samba_cv_unixsocket'+set}'`\" = set"; then
3544 echo $ac_n "(cached) $ac_c" 1>&6
3545 else
3547 cat > conftest.$ac_ext <<EOF
3548 #line 3549 "configure"
3549 #include "confdefs.h"
3551 #include <sys/types.h>
3552 #include <stdlib.h>
3553 #include <stddef.h>
3554 #include <sys/socket.h>
3555 #include <sys/un.h>
3556 int main() {
3558 struct sockaddr_un sunaddr;
3559 sunaddr.sun_family = AF_UNIX;
3561 ; return 0; }
3563 if { (eval echo configure:3564: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3564 rm -rf conftest*
3565 samba_cv_unixsocket=yes
3566 else
3567 echo "configure: failed program was:" >&5
3568 cat conftest.$ac_ext >&5
3569 rm -rf conftest*
3570 samba_cv_unixsocket=no
3572 rm -f conftest*
3575 echo "$ac_t""$samba_cv_unixsocket" 1>&6
3576 if test x"$samba_cv_unixsocket" = x"yes"; then
3577 cat >> confdefs.h <<\EOF
3578 #define HAVE_UNIXSOCKET 1
3584 echo $ac_n "checking for socklen_t type""... $ac_c" 1>&6
3585 echo "configure:3586: checking for socklen_t type" >&5
3586 if eval "test \"`echo '$''{'samba_cv_socklen_t'+set}'`\" = set"; then
3587 echo $ac_n "(cached) $ac_c" 1>&6
3588 else
3590 cat > conftest.$ac_ext <<EOF
3591 #line 3592 "configure"
3592 #include "confdefs.h"
3594 #include <sys/types.h>
3595 #if STDC_HEADERS
3596 #include <stdlib.h>
3597 #include <stddef.h>
3598 #endif
3599 #include <sys/socket.h>
3600 int main() {
3601 socklen_t i = 0
3602 ; return 0; }
3604 if { (eval echo configure:3605: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3605 rm -rf conftest*
3606 samba_cv_socklen_t=yes
3607 else
3608 echo "configure: failed program was:" >&5
3609 cat conftest.$ac_ext >&5
3610 rm -rf conftest*
3611 samba_cv_socklen_t=no
3613 rm -f conftest*
3616 echo "$ac_t""$samba_cv_socklen_t" 1>&6
3617 if test x"$samba_cv_socklen_t" = x"yes"; then
3618 cat >> confdefs.h <<\EOF
3619 #define HAVE_SOCKLEN_T_TYPE 1
3624 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
3625 echo "configure:3626: checking for sig_atomic_t type" >&5
3626 if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+set}'`\" = set"; then
3627 echo $ac_n "(cached) $ac_c" 1>&6
3628 else
3630 cat > conftest.$ac_ext <<EOF
3631 #line 3632 "configure"
3632 #include "confdefs.h"
3634 #include <sys/types.h>
3635 #if STDC_HEADERS
3636 #include <stdlib.h>
3637 #include <stddef.h>
3638 #endif
3639 #include <signal.h>
3640 int main() {
3641 sig_atomic_t i = 0
3642 ; return 0; }
3644 if { (eval echo configure:3645: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3645 rm -rf conftest*
3646 samba_cv_sig_atomic_t=yes
3647 else
3648 echo "configure: failed program was:" >&5
3649 cat conftest.$ac_ext >&5
3650 rm -rf conftest*
3651 samba_cv_sig_atomic_t=no
3653 rm -f conftest*
3656 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
3657 if test x"$samba_cv_sig_atomic_t" = x"yes"; then
3658 cat >> confdefs.h <<\EOF
3659 #define HAVE_SIG_ATOMIC_T_TYPE 1
3664 # stupid headers have the functions but no declaration. grrrr.
3666 echo $ac_n "checking for errno declaration""... $ac_c" 1>&6
3667 echo "configure:3668: checking for errno declaration" >&5
3668 if eval "test \"`echo '$''{'ac_cv_have_errno_decl'+set}'`\" = set"; then
3669 echo $ac_n "(cached) $ac_c" 1>&6
3670 else
3672 cat > conftest.$ac_ext <<EOF
3673 #line 3674 "configure"
3674 #include "confdefs.h"
3675 #include <errno.h>
3676 int main() {
3677 int i = (int)errno
3678 ; return 0; }
3680 if { (eval echo configure:3681: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3681 rm -rf conftest*
3682 ac_cv_have_errno_decl=yes
3683 else
3684 echo "configure: failed program was:" >&5
3685 cat conftest.$ac_ext >&5
3686 rm -rf conftest*
3687 ac_cv_have_errno_decl=no
3689 rm -f conftest*
3692 echo "$ac_t""$ac_cv_have_errno_decl" 1>&6
3693 if test x"$ac_cv_have_errno_decl" = x"yes"; then
3694 cat >> confdefs.h <<\EOF
3695 #define HAVE_ERRNO_DECL 1
3701 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
3702 echo "configure:3703: checking for setresuid declaration" >&5
3703 if eval "test \"`echo '$''{'ac_cv_have_setresuid_decl'+set}'`\" = set"; then
3704 echo $ac_n "(cached) $ac_c" 1>&6
3705 else
3707 cat > conftest.$ac_ext <<EOF
3708 #line 3709 "configure"
3709 #include "confdefs.h"
3710 #include <unistd.h>
3711 int main() {
3712 int i = (int)setresuid
3713 ; return 0; }
3715 if { (eval echo configure:3716: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3716 rm -rf conftest*
3717 ac_cv_have_setresuid_decl=yes
3718 else
3719 echo "configure: failed program was:" >&5
3720 cat conftest.$ac_ext >&5
3721 rm -rf conftest*
3722 ac_cv_have_setresuid_decl=no
3724 rm -f conftest*
3727 echo "$ac_t""$ac_cv_have_setresuid_decl" 1>&6
3728 if test x"$ac_cv_have_setresuid_decl" = x"yes"; then
3729 cat >> confdefs.h <<\EOF
3730 #define HAVE_SETRESUID_DECL 1
3736 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
3737 echo "configure:3738: checking for setresgid declaration" >&5
3738 if eval "test \"`echo '$''{'ac_cv_have_setresgid_decl'+set}'`\" = set"; then
3739 echo $ac_n "(cached) $ac_c" 1>&6
3740 else
3742 cat > conftest.$ac_ext <<EOF
3743 #line 3744 "configure"
3744 #include "confdefs.h"
3745 #include <unistd.h>
3746 int main() {
3747 int i = (int)setresgid
3748 ; return 0; }
3750 if { (eval echo configure:3751: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3751 rm -rf conftest*
3752 ac_cv_have_setresgid_decl=yes
3753 else
3754 echo "configure: failed program was:" >&5
3755 cat conftest.$ac_ext >&5
3756 rm -rf conftest*
3757 ac_cv_have_setresgid_decl=no
3759 rm -f conftest*
3762 echo "$ac_t""$ac_cv_have_setresgid_decl" 1>&6
3763 if test x"$ac_cv_have_setresgid_decl" = x"yes"; then
3764 cat >> confdefs.h <<\EOF
3765 #define HAVE_SETRESGID_DECL 1
3771 echo $ac_n "checking for asprintf declaration""... $ac_c" 1>&6
3772 echo "configure:3773: checking for asprintf declaration" >&5
3773 if eval "test \"`echo '$''{'ac_cv_have_asprintf_decl'+set}'`\" = set"; then
3774 echo $ac_n "(cached) $ac_c" 1>&6
3775 else
3777 cat > conftest.$ac_ext <<EOF
3778 #line 3779 "configure"
3779 #include "confdefs.h"
3780 #include <stdio.h>
3781 int main() {
3782 int i = (int)asprintf
3783 ; return 0; }
3785 if { (eval echo configure:3786: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3786 rm -rf conftest*
3787 ac_cv_have_asprintf_decl=yes
3788 else
3789 echo "configure: failed program was:" >&5
3790 cat conftest.$ac_ext >&5
3791 rm -rf conftest*
3792 ac_cv_have_asprintf_decl=no
3794 rm -f conftest*
3797 echo "$ac_t""$ac_cv_have_asprintf_decl" 1>&6
3798 if test x"$ac_cv_have_asprintf_decl" = x"yes"; then
3799 cat >> confdefs.h <<\EOF
3800 #define HAVE_ASPRINTF_DECL 1
3806 echo $ac_n "checking for vasprintf declaration""... $ac_c" 1>&6
3807 echo "configure:3808: checking for vasprintf declaration" >&5
3808 if eval "test \"`echo '$''{'ac_cv_have_vasprintf_decl'+set}'`\" = set"; then
3809 echo $ac_n "(cached) $ac_c" 1>&6
3810 else
3812 cat > conftest.$ac_ext <<EOF
3813 #line 3814 "configure"
3814 #include "confdefs.h"
3815 #include <stdio.h>
3816 int main() {
3817 int i = (int)vasprintf
3818 ; return 0; }
3820 if { (eval echo configure:3821: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3821 rm -rf conftest*
3822 ac_cv_have_vasprintf_decl=yes
3823 else
3824 echo "configure: failed program was:" >&5
3825 cat conftest.$ac_ext >&5
3826 rm -rf conftest*
3827 ac_cv_have_vasprintf_decl=no
3829 rm -f conftest*
3832 echo "$ac_t""$ac_cv_have_vasprintf_decl" 1>&6
3833 if test x"$ac_cv_have_vasprintf_decl" = x"yes"; then
3834 cat >> confdefs.h <<\EOF
3835 #define HAVE_VASPRINTF_DECL 1
3841 echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6
3842 echo "configure:3843: checking for vsnprintf declaration" >&5
3843 if eval "test \"`echo '$''{'ac_cv_have_vsnprintf_decl'+set}'`\" = set"; then
3844 echo $ac_n "(cached) $ac_c" 1>&6
3845 else
3847 cat > conftest.$ac_ext <<EOF
3848 #line 3849 "configure"
3849 #include "confdefs.h"
3850 #include <stdio.h>
3851 int main() {
3852 int i = (int)vsnprintf
3853 ; return 0; }
3855 if { (eval echo configure:3856: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3856 rm -rf conftest*
3857 ac_cv_have_vsnprintf_decl=yes
3858 else
3859 echo "configure: failed program was:" >&5
3860 cat conftest.$ac_ext >&5
3861 rm -rf conftest*
3862 ac_cv_have_vsnprintf_decl=no
3864 rm -f conftest*
3867 echo "$ac_t""$ac_cv_have_vsnprintf_decl" 1>&6
3868 if test x"$ac_cv_have_vsnprintf_decl" = x"yes"; then
3869 cat >> confdefs.h <<\EOF
3870 #define HAVE_VSNPRINTF_DECL 1
3876 echo $ac_n "checking for snprintf declaration""... $ac_c" 1>&6
3877 echo "configure:3878: checking for snprintf declaration" >&5
3878 if eval "test \"`echo '$''{'ac_cv_have_snprintf_decl'+set}'`\" = set"; then
3879 echo $ac_n "(cached) $ac_c" 1>&6
3880 else
3882 cat > conftest.$ac_ext <<EOF
3883 #line 3884 "configure"
3884 #include "confdefs.h"
3885 #include <stdio.h>
3886 int main() {
3887 int i = (int)snprintf
3888 ; return 0; }
3890 if { (eval echo configure:3891: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3891 rm -rf conftest*
3892 ac_cv_have_snprintf_decl=yes
3893 else
3894 echo "configure: failed program was:" >&5
3895 cat conftest.$ac_ext >&5
3896 rm -rf conftest*
3897 ac_cv_have_snprintf_decl=no
3899 rm -f conftest*
3902 echo "$ac_t""$ac_cv_have_snprintf_decl" 1>&6
3903 if test x"$ac_cv_have_snprintf_decl" = x"yes"; then
3904 cat >> confdefs.h <<\EOF
3905 #define HAVE_SNPRINTF_DECL 1
3911 # and glibc has setresuid under linux but the function does
3912 # nothing until kernel 2.1.44! very dumb.
3913 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
3914 echo "configure:3915: checking for real setresuid" >&5
3915 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
3916 echo $ac_n "(cached) $ac_c" 1>&6
3917 else
3919 if test "$cross_compiling" = yes; then
3920 samba_cv_have_setresuid=cross
3921 else
3922 cat > conftest.$ac_ext <<EOF
3923 #line 3924 "configure"
3924 #include "confdefs.h"
3925 #include <errno.h>
3926 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
3928 if { (eval echo configure:3929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3929 then
3930 samba_cv_have_setresuid=yes
3931 else
3932 echo "configure: failed program was:" >&5
3933 cat conftest.$ac_ext >&5
3934 rm -fr conftest*
3935 samba_cv_have_setresuid=no
3937 rm -fr conftest*
3942 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
3943 if test x"$samba_cv_have_setresuid" = x"yes"; then
3944 cat >> confdefs.h <<\EOF
3945 #define HAVE_SETRESUID 1
3950 # Do the same check for setresguid...
3952 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
3953 echo "configure:3954: checking for real setresgid" >&5
3954 if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then
3955 echo $ac_n "(cached) $ac_c" 1>&6
3956 else
3958 if test "$cross_compiling" = yes; then
3959 samba_cv_have_setresgid=cross
3960 else
3961 cat > conftest.$ac_ext <<EOF
3962 #line 3963 "configure"
3963 #include "confdefs.h"
3964 #include <unistd.h>
3965 #include <errno.h>
3966 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
3968 if { (eval echo configure:3969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3969 then
3970 samba_cv_have_setresgid=yes
3971 else
3972 echo "configure: failed program was:" >&5
3973 cat conftest.$ac_ext >&5
3974 rm -fr conftest*
3975 samba_cv_have_setresgid=no
3977 rm -fr conftest*
3982 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
3983 if test x"$samba_cv_have_setresgid" = x"yes"; then
3984 cat >> confdefs.h <<\EOF
3985 #define HAVE_SETRESGID 1
3990 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
3991 echo "configure:3992: checking for 8-bit clean memcmp" >&5
3992 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
3993 echo $ac_n "(cached) $ac_c" 1>&6
3994 else
3995 if test "$cross_compiling" = yes; then
3996 ac_cv_func_memcmp_clean=no
3997 else
3998 cat > conftest.$ac_ext <<EOF
3999 #line 4000 "configure"
4000 #include "confdefs.h"
4002 main()
4004 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4005 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
4009 if { (eval echo configure:4010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4010 then
4011 ac_cv_func_memcmp_clean=yes
4012 else
4013 echo "configure: failed program was:" >&5
4014 cat conftest.$ac_ext >&5
4015 rm -fr conftest*
4016 ac_cv_func_memcmp_clean=no
4018 rm -fr conftest*
4023 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
4024 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
4027 ###############################################
4028 # test for where we get crypt() from
4029 for ac_func in crypt
4031 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4032 echo "configure:4033: checking for $ac_func" >&5
4033 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4034 echo $ac_n "(cached) $ac_c" 1>&6
4035 else
4036 cat > conftest.$ac_ext <<EOF
4037 #line 4038 "configure"
4038 #include "confdefs.h"
4039 /* System header to define __stub macros and hopefully few prototypes,
4040 which can conflict with char $ac_func(); below. */
4041 #include <assert.h>
4042 /* Override any gcc2 internal prototype to avoid an error. */
4043 /* We use char because int might match the return type of a gcc2
4044 builtin and then its argument prototype would still apply. */
4045 char $ac_func();
4047 int main() {
4049 /* The GNU C library defines this for functions which it implements
4050 to always fail with ENOSYS. Some functions are actually named
4051 something starting with __ and the normal name is an alias. */
4052 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4053 choke me
4054 #else
4055 $ac_func();
4056 #endif
4058 ; return 0; }
4060 if { (eval echo configure:4061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4061 rm -rf conftest*
4062 eval "ac_cv_func_$ac_func=yes"
4063 else
4064 echo "configure: failed program was:" >&5
4065 cat conftest.$ac_ext >&5
4066 rm -rf conftest*
4067 eval "ac_cv_func_$ac_func=no"
4069 rm -f conftest*
4072 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4073 echo "$ac_t""yes" 1>&6
4074 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4075 cat >> confdefs.h <<EOF
4076 #define $ac_tr_func 1
4079 else
4080 echo "$ac_t""no" 1>&6
4082 done
4084 if test x"$ac_cv_func_crypt" = x"no"; then
4085 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
4086 echo "configure:4087: checking for crypt in -lcrypt" >&5
4087 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
4088 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4089 echo $ac_n "(cached) $ac_c" 1>&6
4090 else
4091 ac_save_LIBS="$LIBS"
4092 LIBS="-lcrypt $LIBS"
4093 cat > conftest.$ac_ext <<EOF
4094 #line 4095 "configure"
4095 #include "confdefs.h"
4096 /* Override any gcc2 internal prototype to avoid an error. */
4097 /* We use char because int might match the return type of a gcc2
4098 builtin and then its argument prototype would still apply. */
4099 char crypt();
4101 int main() {
4102 crypt()
4103 ; return 0; }
4105 if { (eval echo configure:4106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4106 rm -rf conftest*
4107 eval "ac_cv_lib_$ac_lib_var=yes"
4108 else
4109 echo "configure: failed program was:" >&5
4110 cat conftest.$ac_ext >&5
4111 rm -rf conftest*
4112 eval "ac_cv_lib_$ac_lib_var=no"
4114 rm -f conftest*
4115 LIBS="$ac_save_LIBS"
4118 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4119 echo "$ac_t""yes" 1>&6
4120 LIBS="$LIBS -lcrypt";
4121 cat >> confdefs.h <<\EOF
4122 #define HAVE_CRYPT 1
4125 else
4126 echo "$ac_t""no" 1>&6
4132 ###############################################
4133 # Readline included by default unless explicitly asked not to
4134 test "${with_readline+set}" != "set" && with_readline=yes
4136 # test for where we get readline() from
4137 echo $ac_n "checking whether to use readline""... $ac_c" 1>&6
4138 echo "configure:4139: checking whether to use readline" >&5
4139 # Check whether --with-readline or --without-readline was given.
4140 if test "${with_readline+set}" = set; then
4141 withval="$with_readline"
4142 case "$with_readline" in
4143 yes)
4144 echo "$ac_t""yes" 1>&6
4146 for ac_hdr in readline.h history.h readline/readline.h
4148 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4149 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4150 echo "configure:4151: checking for $ac_hdr" >&5
4151 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4152 echo $ac_n "(cached) $ac_c" 1>&6
4153 else
4154 cat > conftest.$ac_ext <<EOF
4155 #line 4156 "configure"
4156 #include "confdefs.h"
4157 #include <$ac_hdr>
4159 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4160 { (eval echo configure:4161: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4161 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4162 if test -z "$ac_err"; then
4163 rm -rf conftest*
4164 eval "ac_cv_header_$ac_safe=yes"
4165 else
4166 echo "$ac_err" >&5
4167 echo "configure: failed program was:" >&5
4168 cat conftest.$ac_ext >&5
4169 rm -rf conftest*
4170 eval "ac_cv_header_$ac_safe=no"
4172 rm -f conftest*
4174 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4175 echo "$ac_t""yes" 1>&6
4176 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4177 cat >> confdefs.h <<EOF
4178 #define $ac_tr_hdr 1
4181 else
4182 echo "$ac_t""no" 1>&6
4184 done
4186 for ac_hdr in readline/history.h
4188 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4189 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4190 echo "configure:4191: checking for $ac_hdr" >&5
4191 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4192 echo $ac_n "(cached) $ac_c" 1>&6
4193 else
4194 cat > conftest.$ac_ext <<EOF
4195 #line 4196 "configure"
4196 #include "confdefs.h"
4197 #include <$ac_hdr>
4199 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4200 { (eval echo configure:4201: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4201 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4202 if test -z "$ac_err"; then
4203 rm -rf conftest*
4204 eval "ac_cv_header_$ac_safe=yes"
4205 else
4206 echo "$ac_err" >&5
4207 echo "configure: failed program was:" >&5
4208 cat conftest.$ac_ext >&5
4209 rm -rf conftest*
4210 eval "ac_cv_header_$ac_safe=no"
4212 rm -f conftest*
4214 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4215 echo "$ac_t""yes" 1>&6
4216 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4217 cat >> confdefs.h <<EOF
4218 #define $ac_tr_hdr 1
4221 else
4222 echo "$ac_t""no" 1>&6
4224 done
4227 for ac_hdr in readline.h readline/readline.h
4229 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4230 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4231 echo "configure:4232: checking for $ac_hdr" >&5
4232 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4233 echo $ac_n "(cached) $ac_c" 1>&6
4234 else
4235 cat > conftest.$ac_ext <<EOF
4236 #line 4237 "configure"
4237 #include "confdefs.h"
4238 #include <$ac_hdr>
4240 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4241 { (eval echo configure:4242: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4242 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4243 if test -z "$ac_err"; then
4244 rm -rf conftest*
4245 eval "ac_cv_header_$ac_safe=yes"
4246 else
4247 echo "$ac_err" >&5
4248 echo "configure: failed program was:" >&5
4249 cat conftest.$ac_ext >&5
4250 rm -rf conftest*
4251 eval "ac_cv_header_$ac_safe=no"
4253 rm -f conftest*
4255 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4256 echo "$ac_t""yes" 1>&6
4257 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4258 cat >> confdefs.h <<EOF
4259 #define $ac_tr_hdr 1
4262 for termlib in ncurses curses termcap terminfo termlib; do
4263 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4264 echo "configure:4265: checking for tgetent in -l${termlib}" >&5
4265 ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4266 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4267 echo $ac_n "(cached) $ac_c" 1>&6
4268 else
4269 ac_save_LIBS="$LIBS"
4270 LIBS="-l${termlib} $LIBS"
4271 cat > conftest.$ac_ext <<EOF
4272 #line 4273 "configure"
4273 #include "confdefs.h"
4274 /* Override any gcc2 internal prototype to avoid an error. */
4275 /* We use char because int might match the return type of a gcc2
4276 builtin and then its argument prototype would still apply. */
4277 char tgetent();
4279 int main() {
4280 tgetent()
4281 ; return 0; }
4283 if { (eval echo configure:4284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4284 rm -rf conftest*
4285 eval "ac_cv_lib_$ac_lib_var=yes"
4286 else
4287 echo "configure: failed program was:" >&5
4288 cat conftest.$ac_ext >&5
4289 rm -rf conftest*
4290 eval "ac_cv_lib_$ac_lib_var=no"
4292 rm -f conftest*
4293 LIBS="$ac_save_LIBS"
4296 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4297 echo "$ac_t""yes" 1>&6
4298 TERMLIBS="-l${termlib}"; break
4299 else
4300 echo "$ac_t""no" 1>&6
4303 done
4304 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4305 echo "configure:4306: checking for rl_callback_handler_install in -lreadline" >&5
4306 ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4307 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4308 echo $ac_n "(cached) $ac_c" 1>&6
4309 else
4310 ac_save_LIBS="$LIBS"
4311 LIBS="-lreadline $TERMLIBS $LIBS"
4312 cat > conftest.$ac_ext <<EOF
4313 #line 4314 "configure"
4314 #include "confdefs.h"
4315 /* Override any gcc2 internal prototype to avoid an error. */
4316 /* We use char because int might match the return type of a gcc2
4317 builtin and then its argument prototype would still apply. */
4318 char rl_callback_handler_install();
4320 int main() {
4321 rl_callback_handler_install()
4322 ; return 0; }
4324 if { (eval echo configure:4325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4325 rm -rf conftest*
4326 eval "ac_cv_lib_$ac_lib_var=yes"
4327 else
4328 echo "configure: failed program was:" >&5
4329 cat conftest.$ac_ext >&5
4330 rm -rf conftest*
4331 eval "ac_cv_lib_$ac_lib_var=no"
4333 rm -f conftest*
4334 LIBS="$ac_save_LIBS"
4337 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4338 echo "$ac_t""yes" 1>&6
4339 TERMLIBS="-lreadline $TERMLIBS"
4340 cat >> confdefs.h <<\EOF
4341 #define HAVE_LIBREADLINE 1
4344 break
4345 else
4346 echo "$ac_t""no" 1>&6
4347 TERMLIBS=
4350 else
4351 echo "$ac_t""no" 1>&6
4353 done
4357 echo "$ac_t""no" 1>&6
4360 echo "$ac_t""yes" 1>&6
4362 # Needed for AC_CHECK_HEADERS and AC_CHECK_LIB to look at
4363 # alternate readline path
4364 _ldflags=${LDFLAGS}
4365 _cppflags=${CPPFLAGS}
4367 # Add additional search path
4368 LDFLAGS="-L$with_readline/lib $LDFLAGS"
4369 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
4371 for ac_hdr in readline.h history.h readline/readline.h
4373 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4374 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4375 echo "configure:4376: checking for $ac_hdr" >&5
4376 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4377 echo $ac_n "(cached) $ac_c" 1>&6
4378 else
4379 cat > conftest.$ac_ext <<EOF
4380 #line 4381 "configure"
4381 #include "confdefs.h"
4382 #include <$ac_hdr>
4384 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4385 { (eval echo configure:4386: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4386 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4387 if test -z "$ac_err"; then
4388 rm -rf conftest*
4389 eval "ac_cv_header_$ac_safe=yes"
4390 else
4391 echo "$ac_err" >&5
4392 echo "configure: failed program was:" >&5
4393 cat conftest.$ac_ext >&5
4394 rm -rf conftest*
4395 eval "ac_cv_header_$ac_safe=no"
4397 rm -f conftest*
4399 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4400 echo "$ac_t""yes" 1>&6
4401 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4402 cat >> confdefs.h <<EOF
4403 #define $ac_tr_hdr 1
4406 else
4407 echo "$ac_t""no" 1>&6
4409 done
4411 for ac_hdr in readline/history.h
4413 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4414 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4415 echo "configure:4416: checking for $ac_hdr" >&5
4416 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4417 echo $ac_n "(cached) $ac_c" 1>&6
4418 else
4419 cat > conftest.$ac_ext <<EOF
4420 #line 4421 "configure"
4421 #include "confdefs.h"
4422 #include <$ac_hdr>
4424 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4425 { (eval echo configure:4426: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4426 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4427 if test -z "$ac_err"; then
4428 rm -rf conftest*
4429 eval "ac_cv_header_$ac_safe=yes"
4430 else
4431 echo "$ac_err" >&5
4432 echo "configure: failed program was:" >&5
4433 cat conftest.$ac_ext >&5
4434 rm -rf conftest*
4435 eval "ac_cv_header_$ac_safe=no"
4437 rm -f conftest*
4439 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4440 echo "$ac_t""yes" 1>&6
4441 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4442 cat >> confdefs.h <<EOF
4443 #define $ac_tr_hdr 1
4446 else
4447 echo "$ac_t""no" 1>&6
4449 done
4452 for ac_hdr in readline.h readline/readline.h
4454 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4455 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4456 echo "configure:4457: checking for $ac_hdr" >&5
4457 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4458 echo $ac_n "(cached) $ac_c" 1>&6
4459 else
4460 cat > conftest.$ac_ext <<EOF
4461 #line 4462 "configure"
4462 #include "confdefs.h"
4463 #include <$ac_hdr>
4465 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4466 { (eval echo configure:4467: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4467 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4468 if test -z "$ac_err"; then
4469 rm -rf conftest*
4470 eval "ac_cv_header_$ac_safe=yes"
4471 else
4472 echo "$ac_err" >&5
4473 echo "configure: failed program was:" >&5
4474 cat conftest.$ac_ext >&5
4475 rm -rf conftest*
4476 eval "ac_cv_header_$ac_safe=no"
4478 rm -f conftest*
4480 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4481 echo "$ac_t""yes" 1>&6
4482 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4483 cat >> confdefs.h <<EOF
4484 #define $ac_tr_hdr 1
4487 for termlib in ncurses curses termcap terminfo termlib; do
4488 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4489 echo "configure:4490: checking for tgetent in -l${termlib}" >&5
4490 ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4491 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4492 echo $ac_n "(cached) $ac_c" 1>&6
4493 else
4494 ac_save_LIBS="$LIBS"
4495 LIBS="-l${termlib} $LIBS"
4496 cat > conftest.$ac_ext <<EOF
4497 #line 4498 "configure"
4498 #include "confdefs.h"
4499 /* Override any gcc2 internal prototype to avoid an error. */
4500 /* We use char because int might match the return type of a gcc2
4501 builtin and then its argument prototype would still apply. */
4502 char tgetent();
4504 int main() {
4505 tgetent()
4506 ; return 0; }
4508 if { (eval echo configure:4509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4509 rm -rf conftest*
4510 eval "ac_cv_lib_$ac_lib_var=yes"
4511 else
4512 echo "configure: failed program was:" >&5
4513 cat conftest.$ac_ext >&5
4514 rm -rf conftest*
4515 eval "ac_cv_lib_$ac_lib_var=no"
4517 rm -f conftest*
4518 LIBS="$ac_save_LIBS"
4521 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4522 echo "$ac_t""yes" 1>&6
4523 TERMLIBS="-l${termlib}"; break
4524 else
4525 echo "$ac_t""no" 1>&6
4528 done
4529 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4530 echo "configure:4531: checking for rl_callback_handler_install in -lreadline" >&5
4531 ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4532 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4533 echo $ac_n "(cached) $ac_c" 1>&6
4534 else
4535 ac_save_LIBS="$LIBS"
4536 LIBS="-lreadline $TERMLIBS $LIBS"
4537 cat > conftest.$ac_ext <<EOF
4538 #line 4539 "configure"
4539 #include "confdefs.h"
4540 /* Override any gcc2 internal prototype to avoid an error. */
4541 /* We use char because int might match the return type of a gcc2
4542 builtin and then its argument prototype would still apply. */
4543 char rl_callback_handler_install();
4545 int main() {
4546 rl_callback_handler_install()
4547 ; return 0; }
4549 if { (eval echo configure:4550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4550 rm -rf conftest*
4551 eval "ac_cv_lib_$ac_lib_var=yes"
4552 else
4553 echo "configure: failed program was:" >&5
4554 cat conftest.$ac_ext >&5
4555 rm -rf conftest*
4556 eval "ac_cv_lib_$ac_lib_var=no"
4558 rm -f conftest*
4559 LIBS="$ac_save_LIBS"
4562 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4563 echo "$ac_t""yes" 1>&6
4564 TERMLDFLAGS="-L$with_readline/lib"
4565 TERMCPPFLAGS="-I$with_readline/include"
4566 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
4567 TERMLIBS="-lreadline $TERMLIBS"
4568 cat >> confdefs.h <<\EOF
4569 #define HAVE_LIBREADLINE 1
4572 break
4573 else
4574 echo "$ac_t""no" 1>&6
4575 TERMLIBS= CPPFLAGS=$_cppflags
4578 else
4579 echo "$ac_t""no" 1>&6
4581 done
4584 LDFLAGS=$_ldflags
4586 esac
4587 else
4588 echo "$ac_t""no" 1>&6
4595 # The following test taken from the cvs sources
4596 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
4597 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
4598 # libsocket.so which has a bad implementation of gethostbyname (it
4599 # only looks in /etc/hosts), so we only look for -lsocket if we need
4600 # it.
4601 for ac_func in connect
4603 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4604 echo "configure:4605: checking for $ac_func" >&5
4605 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4606 echo $ac_n "(cached) $ac_c" 1>&6
4607 else
4608 cat > conftest.$ac_ext <<EOF
4609 #line 4610 "configure"
4610 #include "confdefs.h"
4611 /* System header to define __stub macros and hopefully few prototypes,
4612 which can conflict with char $ac_func(); below. */
4613 #include <assert.h>
4614 /* Override any gcc2 internal prototype to avoid an error. */
4615 /* We use char because int might match the return type of a gcc2
4616 builtin and then its argument prototype would still apply. */
4617 char $ac_func();
4619 int main() {
4621 /* The GNU C library defines this for functions which it implements
4622 to always fail with ENOSYS. Some functions are actually named
4623 something starting with __ and the normal name is an alias. */
4624 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4625 choke me
4626 #else
4627 $ac_func();
4628 #endif
4630 ; return 0; }
4632 if { (eval echo configure:4633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4633 rm -rf conftest*
4634 eval "ac_cv_func_$ac_func=yes"
4635 else
4636 echo "configure: failed program was:" >&5
4637 cat conftest.$ac_ext >&5
4638 rm -rf conftest*
4639 eval "ac_cv_func_$ac_func=no"
4641 rm -f conftest*
4644 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4645 echo "$ac_t""yes" 1>&6
4646 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4647 cat >> confdefs.h <<EOF
4648 #define $ac_tr_func 1
4651 else
4652 echo "$ac_t""no" 1>&6
4654 done
4656 if test x"$ac_cv_func_connect" = x"no"; then
4657 case "$LIBS" in
4658 *-lnsl*) ;;
4659 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
4660 echo "configure:4661: checking for printf in -lnsl_s" >&5
4661 ac_lib_var=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
4662 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4663 echo $ac_n "(cached) $ac_c" 1>&6
4664 else
4665 ac_save_LIBS="$LIBS"
4666 LIBS="-lnsl_s $LIBS"
4667 cat > conftest.$ac_ext <<EOF
4668 #line 4669 "configure"
4669 #include "confdefs.h"
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. */
4673 char printf();
4675 int main() {
4676 printf()
4677 ; return 0; }
4679 if { (eval echo configure:4680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4680 rm -rf conftest*
4681 eval "ac_cv_lib_$ac_lib_var=yes"
4682 else
4683 echo "configure: failed program was:" >&5
4684 cat conftest.$ac_ext >&5
4685 rm -rf conftest*
4686 eval "ac_cv_lib_$ac_lib_var=no"
4688 rm -f conftest*
4689 LIBS="$ac_save_LIBS"
4692 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4693 echo "$ac_t""yes" 1>&6
4694 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4695 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4696 cat >> confdefs.h <<EOF
4697 #define $ac_tr_lib 1
4700 LIBS="-lnsl_s $LIBS"
4702 else
4703 echo "$ac_t""no" 1>&6
4706 esac
4707 case "$LIBS" in
4708 *-lnsl*) ;;
4709 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
4710 echo "configure:4711: checking for printf in -lnsl" >&5
4711 ac_lib_var=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
4712 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4713 echo $ac_n "(cached) $ac_c" 1>&6
4714 else
4715 ac_save_LIBS="$LIBS"
4716 LIBS="-lnsl $LIBS"
4717 cat > conftest.$ac_ext <<EOF
4718 #line 4719 "configure"
4719 #include "confdefs.h"
4720 /* Override any gcc2 internal prototype to avoid an error. */
4721 /* We use char because int might match the return type of a gcc2
4722 builtin and then its argument prototype would still apply. */
4723 char printf();
4725 int main() {
4726 printf()
4727 ; return 0; }
4729 if { (eval echo configure:4730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4730 rm -rf conftest*
4731 eval "ac_cv_lib_$ac_lib_var=yes"
4732 else
4733 echo "configure: failed program was:" >&5
4734 cat conftest.$ac_ext >&5
4735 rm -rf conftest*
4736 eval "ac_cv_lib_$ac_lib_var=no"
4738 rm -f conftest*
4739 LIBS="$ac_save_LIBS"
4742 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4743 echo "$ac_t""yes" 1>&6
4744 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4745 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4746 cat >> confdefs.h <<EOF
4747 #define $ac_tr_lib 1
4750 LIBS="-lnsl $LIBS"
4752 else
4753 echo "$ac_t""no" 1>&6
4756 esac
4757 case "$LIBS" in
4758 *-lsocket*) ;;
4759 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
4760 echo "configure:4761: checking for connect in -lsocket" >&5
4761 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
4762 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4763 echo $ac_n "(cached) $ac_c" 1>&6
4764 else
4765 ac_save_LIBS="$LIBS"
4766 LIBS="-lsocket $LIBS"
4767 cat > conftest.$ac_ext <<EOF
4768 #line 4769 "configure"
4769 #include "confdefs.h"
4770 /* Override any gcc2 internal prototype to avoid an error. */
4771 /* We use char because int might match the return type of a gcc2
4772 builtin and then its argument prototype would still apply. */
4773 char connect();
4775 int main() {
4776 connect()
4777 ; return 0; }
4779 if { (eval echo configure:4780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4780 rm -rf conftest*
4781 eval "ac_cv_lib_$ac_lib_var=yes"
4782 else
4783 echo "configure: failed program was:" >&5
4784 cat conftest.$ac_ext >&5
4785 rm -rf conftest*
4786 eval "ac_cv_lib_$ac_lib_var=no"
4788 rm -f conftest*
4789 LIBS="$ac_save_LIBS"
4792 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4793 echo "$ac_t""yes" 1>&6
4794 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4795 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4796 cat >> confdefs.h <<EOF
4797 #define $ac_tr_lib 1
4800 LIBS="-lsocket $LIBS"
4802 else
4803 echo "$ac_t""no" 1>&6
4806 esac
4807 case "$LIBS" in
4808 *-linet*) ;;
4809 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
4810 echo "configure:4811: checking for connect in -linet" >&5
4811 ac_lib_var=`echo inet'_'connect | sed 'y%./+-%__p_%'`
4812 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4813 echo $ac_n "(cached) $ac_c" 1>&6
4814 else
4815 ac_save_LIBS="$LIBS"
4816 LIBS="-linet $LIBS"
4817 cat > conftest.$ac_ext <<EOF
4818 #line 4819 "configure"
4819 #include "confdefs.h"
4820 /* Override any gcc2 internal prototype to avoid an error. */
4821 /* We use char because int might match the return type of a gcc2
4822 builtin and then its argument prototype would still apply. */
4823 char connect();
4825 int main() {
4826 connect()
4827 ; return 0; }
4829 if { (eval echo configure:4830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4830 rm -rf conftest*
4831 eval "ac_cv_lib_$ac_lib_var=yes"
4832 else
4833 echo "configure: failed program was:" >&5
4834 cat conftest.$ac_ext >&5
4835 rm -rf conftest*
4836 eval "ac_cv_lib_$ac_lib_var=no"
4838 rm -f conftest*
4839 LIBS="$ac_save_LIBS"
4842 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4843 echo "$ac_t""yes" 1>&6
4844 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4845 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4846 cat >> confdefs.h <<EOF
4847 #define $ac_tr_lib 1
4850 LIBS="-linet $LIBS"
4852 else
4853 echo "$ac_t""no" 1>&6
4856 esac
4857 if test x"$ac_cv_lib_socket_connect" = x"yes" ||
4858 test x"$ac_cv_lib_inet_connect" = x"yes"; then
4859 # ac_cv_func_connect=yes
4860 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
4861 cat >> confdefs.h <<\EOF
4862 #define HAVE_CONNECT 1
4868 ###############################################
4869 # test for where we get get_yp_default_domain() from
4870 for ac_func in yp_get_default_domain
4872 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4873 echo "configure:4874: checking for $ac_func" >&5
4874 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4875 echo $ac_n "(cached) $ac_c" 1>&6
4876 else
4877 cat > conftest.$ac_ext <<EOF
4878 #line 4879 "configure"
4879 #include "confdefs.h"
4880 /* System header to define __stub macros and hopefully few prototypes,
4881 which can conflict with char $ac_func(); below. */
4882 #include <assert.h>
4883 /* Override any gcc2 internal prototype to avoid an error. */
4884 /* We use char because int might match the return type of a gcc2
4885 builtin and then its argument prototype would still apply. */
4886 char $ac_func();
4888 int main() {
4890 /* The GNU C library defines this for functions which it implements
4891 to always fail with ENOSYS. Some functions are actually named
4892 something starting with __ and the normal name is an alias. */
4893 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4894 choke me
4895 #else
4896 $ac_func();
4897 #endif
4899 ; return 0; }
4901 if { (eval echo configure:4902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4902 rm -rf conftest*
4903 eval "ac_cv_func_$ac_func=yes"
4904 else
4905 echo "configure: failed program was:" >&5
4906 cat conftest.$ac_ext >&5
4907 rm -rf conftest*
4908 eval "ac_cv_func_$ac_func=no"
4910 rm -f conftest*
4913 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4914 echo "$ac_t""yes" 1>&6
4915 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4916 cat >> confdefs.h <<EOF
4917 #define $ac_tr_func 1
4920 else
4921 echo "$ac_t""no" 1>&6
4923 done
4925 if test x"$ac_cv_func_yp_get_default_domain" = x"no"; then
4926 echo $ac_n "checking for yp_get_default_domain in -lnsl""... $ac_c" 1>&6
4927 echo "configure:4928: checking for yp_get_default_domain in -lnsl" >&5
4928 ac_lib_var=`echo nsl'_'yp_get_default_domain | sed 'y%./+-%__p_%'`
4929 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4930 echo $ac_n "(cached) $ac_c" 1>&6
4931 else
4932 ac_save_LIBS="$LIBS"
4933 LIBS="-lnsl $LIBS"
4934 cat > conftest.$ac_ext <<EOF
4935 #line 4936 "configure"
4936 #include "confdefs.h"
4937 /* Override any gcc2 internal prototype to avoid an error. */
4938 /* We use char because int might match the return type of a gcc2
4939 builtin and then its argument prototype would still apply. */
4940 char yp_get_default_domain();
4942 int main() {
4943 yp_get_default_domain()
4944 ; return 0; }
4946 if { (eval echo configure:4947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4947 rm -rf conftest*
4948 eval "ac_cv_lib_$ac_lib_var=yes"
4949 else
4950 echo "configure: failed program was:" >&5
4951 cat conftest.$ac_ext >&5
4952 rm -rf conftest*
4953 eval "ac_cv_lib_$ac_lib_var=no"
4955 rm -f conftest*
4956 LIBS="$ac_save_LIBS"
4959 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4960 echo "$ac_t""yes" 1>&6
4961 LIBS="$LIBS -lnsl";
4962 cat >> confdefs.h <<\EOF
4963 #define HAVE_YP_GET_DEFAULT_DOMAIN 1
4966 else
4967 echo "$ac_t""no" 1>&6
4972 # Check if we have execl, if not we need to compile smbrun.
4973 for ac_func in execl
4975 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4976 echo "configure:4977: checking for $ac_func" >&5
4977 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4978 echo $ac_n "(cached) $ac_c" 1>&6
4979 else
4980 cat > conftest.$ac_ext <<EOF
4981 #line 4982 "configure"
4982 #include "confdefs.h"
4983 /* System header to define __stub macros and hopefully few prototypes,
4984 which can conflict with char $ac_func(); below. */
4985 #include <assert.h>
4986 /* Override any gcc2 internal prototype to avoid an error. */
4987 /* We use char because int might match the return type of a gcc2
4988 builtin and then its argument prototype would still apply. */
4989 char $ac_func();
4991 int main() {
4993 /* The GNU C library defines this for functions which it implements
4994 to always fail with ENOSYS. Some functions are actually named
4995 something starting with __ and the normal name is an alias. */
4996 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4997 choke me
4998 #else
4999 $ac_func();
5000 #endif
5002 ; return 0; }
5004 if { (eval echo configure:5005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5005 rm -rf conftest*
5006 eval "ac_cv_func_$ac_func=yes"
5007 else
5008 echo "configure: failed program was:" >&5
5009 cat conftest.$ac_ext >&5
5010 rm -rf conftest*
5011 eval "ac_cv_func_$ac_func=no"
5013 rm -f conftest*
5016 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5017 echo "$ac_t""yes" 1>&6
5018 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5019 cat >> confdefs.h <<EOF
5020 #define $ac_tr_func 1
5023 else
5024 echo "$ac_t""no" 1>&6
5026 done
5028 if test x"$ac_cv_func_execl" = x"no"; then
5029 RUNPROG="bin/smbrun"
5030 else
5031 RUNPROG=""
5034 for ac_func in waitpid getcwd strdup strtoul strerror chown fchown chmod fchmod chroot
5036 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5037 echo "configure:5038: checking for $ac_func" >&5
5038 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5039 echo $ac_n "(cached) $ac_c" 1>&6
5040 else
5041 cat > conftest.$ac_ext <<EOF
5042 #line 5043 "configure"
5043 #include "confdefs.h"
5044 /* System header to define __stub macros and hopefully few prototypes,
5045 which can conflict with char $ac_func(); below. */
5046 #include <assert.h>
5047 /* Override any gcc2 internal prototype to avoid an error. */
5048 /* We use char because int might match the return type of a gcc2
5049 builtin and then its argument prototype would still apply. */
5050 char $ac_func();
5052 int main() {
5054 /* The GNU C library defines this for functions which it implements
5055 to always fail with ENOSYS. Some functions are actually named
5056 something starting with __ and the normal name is an alias. */
5057 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5058 choke me
5059 #else
5060 $ac_func();
5061 #endif
5063 ; return 0; }
5065 if { (eval echo configure:5066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5066 rm -rf conftest*
5067 eval "ac_cv_func_$ac_func=yes"
5068 else
5069 echo "configure: failed program was:" >&5
5070 cat conftest.$ac_ext >&5
5071 rm -rf conftest*
5072 eval "ac_cv_func_$ac_func=no"
5074 rm -f conftest*
5077 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5078 echo "$ac_t""yes" 1>&6
5079 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5080 cat >> confdefs.h <<EOF
5081 #define $ac_tr_func 1
5084 else
5085 echo "$ac_t""no" 1>&6
5087 done
5089 for ac_func in fstat strchr utime utimes getrlimit fsync bzero memset
5091 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5092 echo "configure:5093: checking for $ac_func" >&5
5093 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5094 echo $ac_n "(cached) $ac_c" 1>&6
5095 else
5096 cat > conftest.$ac_ext <<EOF
5097 #line 5098 "configure"
5098 #include "confdefs.h"
5099 /* System header to define __stub macros and hopefully few prototypes,
5100 which can conflict with char $ac_func(); below. */
5101 #include <assert.h>
5102 /* Override any gcc2 internal prototype to avoid an error. */
5103 /* We use char because int might match the return type of a gcc2
5104 builtin and then its argument prototype would still apply. */
5105 char $ac_func();
5107 int main() {
5109 /* The GNU C library defines this for functions which it implements
5110 to always fail with ENOSYS. Some functions are actually named
5111 something starting with __ and the normal name is an alias. */
5112 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5113 choke me
5114 #else
5115 $ac_func();
5116 #endif
5118 ; return 0; }
5120 if { (eval echo configure:5121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5121 rm -rf conftest*
5122 eval "ac_cv_func_$ac_func=yes"
5123 else
5124 echo "configure: failed program was:" >&5
5125 cat conftest.$ac_ext >&5
5126 rm -rf conftest*
5127 eval "ac_cv_func_$ac_func=no"
5129 rm -f conftest*
5132 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5133 echo "$ac_t""yes" 1>&6
5134 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5135 cat >> confdefs.h <<EOF
5136 #define $ac_tr_func 1
5139 else
5140 echo "$ac_t""no" 1>&6
5142 done
5144 for ac_func in memmove vsnprintf snprintf asprintf vasprintf setsid glob strpbrk pipe crypt16 getauthuid
5146 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5147 echo "configure:5148: checking for $ac_func" >&5
5148 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5149 echo $ac_n "(cached) $ac_c" 1>&6
5150 else
5151 cat > conftest.$ac_ext <<EOF
5152 #line 5153 "configure"
5153 #include "confdefs.h"
5154 /* System header to define __stub macros and hopefully few prototypes,
5155 which can conflict with char $ac_func(); below. */
5156 #include <assert.h>
5157 /* Override any gcc2 internal prototype to avoid an error. */
5158 /* We use char because int might match the return type of a gcc2
5159 builtin and then its argument prototype would still apply. */
5160 char $ac_func();
5162 int main() {
5164 /* The GNU C library defines this for functions which it implements
5165 to always fail with ENOSYS. Some functions are actually named
5166 something starting with __ and the normal name is an alias. */
5167 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5168 choke me
5169 #else
5170 $ac_func();
5171 #endif
5173 ; return 0; }
5175 if { (eval echo configure:5176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5176 rm -rf conftest*
5177 eval "ac_cv_func_$ac_func=yes"
5178 else
5179 echo "configure: failed program was:" >&5
5180 cat conftest.$ac_ext >&5
5181 rm -rf conftest*
5182 eval "ac_cv_func_$ac_func=no"
5184 rm -f conftest*
5187 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5188 echo "$ac_t""yes" 1>&6
5189 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5190 cat >> confdefs.h <<EOF
5191 #define $ac_tr_func 1
5194 else
5195 echo "$ac_t""no" 1>&6
5197 done
5199 for ac_func in strftime sigprocmask sigblock sigaction sigset innetgr setnetgrent getnetgrent endnetgrent
5201 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5202 echo "configure:5203: checking for $ac_func" >&5
5203 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5204 echo $ac_n "(cached) $ac_c" 1>&6
5205 else
5206 cat > conftest.$ac_ext <<EOF
5207 #line 5208 "configure"
5208 #include "confdefs.h"
5209 /* System header to define __stub macros and hopefully few prototypes,
5210 which can conflict with char $ac_func(); below. */
5211 #include <assert.h>
5212 /* Override any gcc2 internal prototype to avoid an error. */
5213 /* We use char because int might match the return type of a gcc2
5214 builtin and then its argument prototype would still apply. */
5215 char $ac_func();
5217 int main() {
5219 /* The GNU C library defines this for functions which it implements
5220 to always fail with ENOSYS. Some functions are actually named
5221 something starting with __ and the normal name is an alias. */
5222 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5223 choke me
5224 #else
5225 $ac_func();
5226 #endif
5228 ; return 0; }
5230 if { (eval echo configure:5231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5231 rm -rf conftest*
5232 eval "ac_cv_func_$ac_func=yes"
5233 else
5234 echo "configure: failed program was:" >&5
5235 cat conftest.$ac_ext >&5
5236 rm -rf conftest*
5237 eval "ac_cv_func_$ac_func=no"
5239 rm -f conftest*
5242 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5243 echo "$ac_t""yes" 1>&6
5244 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5245 cat >> confdefs.h <<EOF
5246 #define $ac_tr_func 1
5249 else
5250 echo "$ac_t""no" 1>&6
5252 done
5254 for ac_func in initgroups select poll rdchk getgrnam getgrent pathconf
5256 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5257 echo "configure:5258: checking for $ac_func" >&5
5258 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5259 echo $ac_n "(cached) $ac_c" 1>&6
5260 else
5261 cat > conftest.$ac_ext <<EOF
5262 #line 5263 "configure"
5263 #include "confdefs.h"
5264 /* System header to define __stub macros and hopefully few prototypes,
5265 which can conflict with char $ac_func(); below. */
5266 #include <assert.h>
5267 /* Override any gcc2 internal prototype to avoid an error. */
5268 /* We use char because int might match the return type of a gcc2
5269 builtin and then its argument prototype would still apply. */
5270 char $ac_func();
5272 int main() {
5274 /* The GNU C library defines this for functions which it implements
5275 to always fail with ENOSYS. Some functions are actually named
5276 something starting with __ and the normal name is an alias. */
5277 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5278 choke me
5279 #else
5280 $ac_func();
5281 #endif
5283 ; return 0; }
5285 if { (eval echo configure:5286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5286 rm -rf conftest*
5287 eval "ac_cv_func_$ac_func=yes"
5288 else
5289 echo "configure: failed program was:" >&5
5290 cat conftest.$ac_ext >&5
5291 rm -rf conftest*
5292 eval "ac_cv_func_$ac_func=no"
5294 rm -f conftest*
5297 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5298 echo "$ac_t""yes" 1>&6
5299 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5300 cat >> confdefs.h <<EOF
5301 #define $ac_tr_func 1
5304 else
5305 echo "$ac_t""no" 1>&6
5307 done
5309 for ac_func in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
5311 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5312 echo "configure:5313: checking for $ac_func" >&5
5313 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5314 echo $ac_n "(cached) $ac_c" 1>&6
5315 else
5316 cat > conftest.$ac_ext <<EOF
5317 #line 5318 "configure"
5318 #include "confdefs.h"
5319 /* System header to define __stub macros and hopefully few prototypes,
5320 which can conflict with char $ac_func(); below. */
5321 #include <assert.h>
5322 /* Override any gcc2 internal prototype to avoid an error. */
5323 /* We use char because int might match the return type of a gcc2
5324 builtin and then its argument prototype would still apply. */
5325 char $ac_func();
5327 int main() {
5329 /* The GNU C library defines this for functions which it implements
5330 to always fail with ENOSYS. Some functions are actually named
5331 something starting with __ and the normal name is an alias. */
5332 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5333 choke me
5334 #else
5335 $ac_func();
5336 #endif
5338 ; return 0; }
5340 if { (eval echo configure:5341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5341 rm -rf conftest*
5342 eval "ac_cv_func_$ac_func=yes"
5343 else
5344 echo "configure: failed program was:" >&5
5345 cat conftest.$ac_ext >&5
5346 rm -rf conftest*
5347 eval "ac_cv_func_$ac_func=no"
5349 rm -f conftest*
5352 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5353 echo "$ac_t""yes" 1>&6
5354 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5355 cat >> confdefs.h <<EOF
5356 #define $ac_tr_func 1
5359 else
5360 echo "$ac_t""no" 1>&6
5362 done
5364 for ac_func in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
5366 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5367 echo "configure:5368: checking for $ac_func" >&5
5368 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5369 echo $ac_n "(cached) $ac_c" 1>&6
5370 else
5371 cat > conftest.$ac_ext <<EOF
5372 #line 5373 "configure"
5373 #include "confdefs.h"
5374 /* System header to define __stub macros and hopefully few prototypes,
5375 which can conflict with char $ac_func(); below. */
5376 #include <assert.h>
5377 /* Override any gcc2 internal prototype to avoid an error. */
5378 /* We use char because int might match the return type of a gcc2
5379 builtin and then its argument prototype would still apply. */
5380 char $ac_func();
5382 int main() {
5384 /* The GNU C library defines this for functions which it implements
5385 to always fail with ENOSYS. Some functions are actually named
5386 something starting with __ and the normal name is an alias. */
5387 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5388 choke me
5389 #else
5390 $ac_func();
5391 #endif
5393 ; return 0; }
5395 if { (eval echo configure:5396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5396 rm -rf conftest*
5397 eval "ac_cv_func_$ac_func=yes"
5398 else
5399 echo "configure: failed program was:" >&5
5400 cat conftest.$ac_ext >&5
5401 rm -rf conftest*
5402 eval "ac_cv_func_$ac_func=no"
5404 rm -f conftest*
5407 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5408 echo "$ac_t""yes" 1>&6
5409 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5410 cat >> confdefs.h <<EOF
5411 #define $ac_tr_func 1
5414 else
5415 echo "$ac_t""no" 1>&6
5417 done
5419 for ac_func in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam setlinebuf
5421 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5422 echo "configure:5423: checking for $ac_func" >&5
5423 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5424 echo $ac_n "(cached) $ac_c" 1>&6
5425 else
5426 cat > conftest.$ac_ext <<EOF
5427 #line 5428 "configure"
5428 #include "confdefs.h"
5429 /* System header to define __stub macros and hopefully few prototypes,
5430 which can conflict with char $ac_func(); below. */
5431 #include <assert.h>
5432 /* Override any gcc2 internal prototype to avoid an error. */
5433 /* We use char because int might match the return type of a gcc2
5434 builtin and then its argument prototype would still apply. */
5435 char $ac_func();
5437 int main() {
5439 /* The GNU C library defines this for functions which it implements
5440 to always fail with ENOSYS. Some functions are actually named
5441 something starting with __ and the normal name is an alias. */
5442 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5443 choke me
5444 #else
5445 $ac_func();
5446 #endif
5448 ; return 0; }
5450 if { (eval echo configure:5451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5451 rm -rf conftest*
5452 eval "ac_cv_func_$ac_func=yes"
5453 else
5454 echo "configure: failed program was:" >&5
5455 cat conftest.$ac_ext >&5
5456 rm -rf conftest*
5457 eval "ac_cv_func_$ac_func=no"
5459 rm -f conftest*
5462 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5463 echo "$ac_t""yes" 1>&6
5464 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5465 cat >> confdefs.h <<EOF
5466 #define $ac_tr_func 1
5469 else
5470 echo "$ac_t""no" 1>&6
5472 done
5474 for ac_func in srandom random srand rand setenv usleep strcasecmp fcvt fcvtl symlink readlink
5476 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5477 echo "configure:5478: checking for $ac_func" >&5
5478 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5479 echo $ac_n "(cached) $ac_c" 1>&6
5480 else
5481 cat > conftest.$ac_ext <<EOF
5482 #line 5483 "configure"
5483 #include "confdefs.h"
5484 /* System header to define __stub macros and hopefully few prototypes,
5485 which can conflict with char $ac_func(); below. */
5486 #include <assert.h>
5487 /* Override any gcc2 internal prototype to avoid an error. */
5488 /* We use char because int might match the return type of a gcc2
5489 builtin and then its argument prototype would still apply. */
5490 char $ac_func();
5492 int main() {
5494 /* The GNU C library defines this for functions which it implements
5495 to always fail with ENOSYS. Some functions are actually named
5496 something starting with __ and the normal name is an alias. */
5497 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5498 choke me
5499 #else
5500 $ac_func();
5501 #endif
5503 ; return 0; }
5505 if { (eval echo configure:5506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5506 rm -rf conftest*
5507 eval "ac_cv_func_$ac_func=yes"
5508 else
5509 echo "configure: failed program was:" >&5
5510 cat conftest.$ac_ext >&5
5511 rm -rf conftest*
5512 eval "ac_cv_func_$ac_func=no"
5514 rm -f conftest*
5517 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5518 echo "$ac_t""yes" 1>&6
5519 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5520 cat >> confdefs.h <<EOF
5521 #define $ac_tr_func 1
5524 else
5525 echo "$ac_t""no" 1>&6
5527 done
5529 # setbuffer is needed for smbtorture
5530 for ac_func in setbuffer
5532 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5533 echo "configure:5534: checking for $ac_func" >&5
5534 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5535 echo $ac_n "(cached) $ac_c" 1>&6
5536 else
5537 cat > conftest.$ac_ext <<EOF
5538 #line 5539 "configure"
5539 #include "confdefs.h"
5540 /* System header to define __stub macros and hopefully few prototypes,
5541 which can conflict with char $ac_func(); below. */
5542 #include <assert.h>
5543 /* Override any gcc2 internal prototype to avoid an error. */
5544 /* We use char because int might match the return type of a gcc2
5545 builtin and then its argument prototype would still apply. */
5546 char $ac_func();
5548 int main() {
5550 /* The GNU C library defines this for functions which it implements
5551 to always fail with ENOSYS. Some functions are actually named
5552 something starting with __ and the normal name is an alias. */
5553 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5554 choke me
5555 #else
5556 $ac_func();
5557 #endif
5559 ; return 0; }
5561 if { (eval echo configure:5562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5562 rm -rf conftest*
5563 eval "ac_cv_func_$ac_func=yes"
5564 else
5565 echo "configure: failed program was:" >&5
5566 cat conftest.$ac_ext >&5
5567 rm -rf conftest*
5568 eval "ac_cv_func_$ac_func=no"
5570 rm -f conftest*
5573 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5574 echo "$ac_t""yes" 1>&6
5575 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5576 cat >> confdefs.h <<EOF
5577 #define $ac_tr_func 1
5580 else
5581 echo "$ac_t""no" 1>&6
5583 done
5586 # syscall() is needed for smbwrapper.
5587 for ac_func in syscall
5589 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5590 echo "configure:5591: checking for $ac_func" >&5
5591 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5592 echo $ac_n "(cached) $ac_c" 1>&6
5593 else
5594 cat > conftest.$ac_ext <<EOF
5595 #line 5596 "configure"
5596 #include "confdefs.h"
5597 /* System header to define __stub macros and hopefully few prototypes,
5598 which can conflict with char $ac_func(); below. */
5599 #include <assert.h>
5600 /* Override any gcc2 internal prototype to avoid an error. */
5601 /* We use char because int might match the return type of a gcc2
5602 builtin and then its argument prototype would still apply. */
5603 char $ac_func();
5605 int main() {
5607 /* The GNU C library defines this for functions which it implements
5608 to always fail with ENOSYS. Some functions are actually named
5609 something starting with __ and the normal name is an alias. */
5610 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5611 choke me
5612 #else
5613 $ac_func();
5614 #endif
5616 ; return 0; }
5618 if { (eval echo configure:5619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5619 rm -rf conftest*
5620 eval "ac_cv_func_$ac_func=yes"
5621 else
5622 echo "configure: failed program was:" >&5
5623 cat conftest.$ac_ext >&5
5624 rm -rf conftest*
5625 eval "ac_cv_func_$ac_func=no"
5627 rm -f conftest*
5630 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5631 echo "$ac_t""yes" 1>&6
5632 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5633 cat >> confdefs.h <<EOF
5634 #define $ac_tr_func 1
5637 else
5638 echo "$ac_t""no" 1>&6
5640 done
5643 for ac_func in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
5645 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5646 echo "configure:5647: checking for $ac_func" >&5
5647 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5648 echo $ac_n "(cached) $ac_c" 1>&6
5649 else
5650 cat > conftest.$ac_ext <<EOF
5651 #line 5652 "configure"
5652 #include "confdefs.h"
5653 /* System header to define __stub macros and hopefully few prototypes,
5654 which can conflict with char $ac_func(); below. */
5655 #include <assert.h>
5656 /* Override any gcc2 internal prototype to avoid an error. */
5657 /* We use char because int might match the return type of a gcc2
5658 builtin and then its argument prototype would still apply. */
5659 char $ac_func();
5661 int main() {
5663 /* The GNU C library defines this for functions which it implements
5664 to always fail with ENOSYS. Some functions are actually named
5665 something starting with __ and the normal name is an alias. */
5666 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5667 choke me
5668 #else
5669 $ac_func();
5670 #endif
5672 ; return 0; }
5674 if { (eval echo configure:5675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5675 rm -rf conftest*
5676 eval "ac_cv_func_$ac_func=yes"
5677 else
5678 echo "configure: failed program was:" >&5
5679 cat conftest.$ac_ext >&5
5680 rm -rf conftest*
5681 eval "ac_cv_func_$ac_func=no"
5683 rm -f conftest*
5686 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5687 echo "$ac_t""yes" 1>&6
5688 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5689 cat >> confdefs.h <<EOF
5690 #define $ac_tr_func 1
5693 else
5694 echo "$ac_t""no" 1>&6
5696 done
5698 for ac_func in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
5700 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5701 echo "configure:5702: checking for $ac_func" >&5
5702 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5703 echo $ac_n "(cached) $ac_c" 1>&6
5704 else
5705 cat > conftest.$ac_ext <<EOF
5706 #line 5707 "configure"
5707 #include "confdefs.h"
5708 /* System header to define __stub macros and hopefully few prototypes,
5709 which can conflict with char $ac_func(); below. */
5710 #include <assert.h>
5711 /* Override any gcc2 internal prototype to avoid an error. */
5712 /* We use char because int might match the return type of a gcc2
5713 builtin and then its argument prototype would still apply. */
5714 char $ac_func();
5716 int main() {
5718 /* The GNU C library defines this for functions which it implements
5719 to always fail with ENOSYS. Some functions are actually named
5720 something starting with __ and the normal name is an alias. */
5721 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5722 choke me
5723 #else
5724 $ac_func();
5725 #endif
5727 ; return 0; }
5729 if { (eval echo configure:5730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5730 rm -rf conftest*
5731 eval "ac_cv_func_$ac_func=yes"
5732 else
5733 echo "configure: failed program was:" >&5
5734 cat conftest.$ac_ext >&5
5735 rm -rf conftest*
5736 eval "ac_cv_func_$ac_func=no"
5738 rm -f conftest*
5741 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5742 echo "$ac_t""yes" 1>&6
5743 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5744 cat >> confdefs.h <<EOF
5745 #define $ac_tr_func 1
5748 else
5749 echo "$ac_t""no" 1>&6
5751 done
5753 for ac_func in __getcwd _getcwd
5755 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5756 echo "configure:5757: checking for $ac_func" >&5
5757 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5758 echo $ac_n "(cached) $ac_c" 1>&6
5759 else
5760 cat > conftest.$ac_ext <<EOF
5761 #line 5762 "configure"
5762 #include "confdefs.h"
5763 /* System header to define __stub macros and hopefully few prototypes,
5764 which can conflict with char $ac_func(); below. */
5765 #include <assert.h>
5766 /* Override any gcc2 internal prototype to avoid an error. */
5767 /* We use char because int might match the return type of a gcc2
5768 builtin and then its argument prototype would still apply. */
5769 char $ac_func();
5771 int main() {
5773 /* The GNU C library defines this for functions which it implements
5774 to always fail with ENOSYS. Some functions are actually named
5775 something starting with __ and the normal name is an alias. */
5776 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5777 choke me
5778 #else
5779 $ac_func();
5780 #endif
5782 ; return 0; }
5784 if { (eval echo configure:5785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5785 rm -rf conftest*
5786 eval "ac_cv_func_$ac_func=yes"
5787 else
5788 echo "configure: failed program was:" >&5
5789 cat conftest.$ac_ext >&5
5790 rm -rf conftest*
5791 eval "ac_cv_func_$ac_func=no"
5793 rm -f conftest*
5796 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5797 echo "$ac_t""yes" 1>&6
5798 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5799 cat >> confdefs.h <<EOF
5800 #define $ac_tr_func 1
5803 else
5804 echo "$ac_t""no" 1>&6
5806 done
5808 for ac_func in __xstat __fxstat __lxstat
5810 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5811 echo "configure:5812: checking for $ac_func" >&5
5812 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5813 echo $ac_n "(cached) $ac_c" 1>&6
5814 else
5815 cat > conftest.$ac_ext <<EOF
5816 #line 5817 "configure"
5817 #include "confdefs.h"
5818 /* System header to define __stub macros and hopefully few prototypes,
5819 which can conflict with char $ac_func(); below. */
5820 #include <assert.h>
5821 /* Override any gcc2 internal prototype to avoid an error. */
5822 /* We use char because int might match the return type of a gcc2
5823 builtin and then its argument prototype would still apply. */
5824 char $ac_func();
5826 int main() {
5828 /* The GNU C library defines this for functions which it implements
5829 to always fail with ENOSYS. Some functions are actually named
5830 something starting with __ and the normal name is an alias. */
5831 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5832 choke me
5833 #else
5834 $ac_func();
5835 #endif
5837 ; return 0; }
5839 if { (eval echo configure:5840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5840 rm -rf conftest*
5841 eval "ac_cv_func_$ac_func=yes"
5842 else
5843 echo "configure: failed program was:" >&5
5844 cat conftest.$ac_ext >&5
5845 rm -rf conftest*
5846 eval "ac_cv_func_$ac_func=no"
5848 rm -f conftest*
5851 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5852 echo "$ac_t""yes" 1>&6
5853 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5854 cat >> confdefs.h <<EOF
5855 #define $ac_tr_func 1
5858 else
5859 echo "$ac_t""no" 1>&6
5861 done
5863 for ac_func in _stat _lstat _fstat __stat __lstat __fstat
5865 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5866 echo "configure:5867: checking for $ac_func" >&5
5867 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5868 echo $ac_n "(cached) $ac_c" 1>&6
5869 else
5870 cat > conftest.$ac_ext <<EOF
5871 #line 5872 "configure"
5872 #include "confdefs.h"
5873 /* System header to define __stub macros and hopefully few prototypes,
5874 which can conflict with char $ac_func(); below. */
5875 #include <assert.h>
5876 /* Override any gcc2 internal prototype to avoid an error. */
5877 /* We use char because int might match the return type of a gcc2
5878 builtin and then its argument prototype would still apply. */
5879 char $ac_func();
5881 int main() {
5883 /* The GNU C library defines this for functions which it implements
5884 to always fail with ENOSYS. Some functions are actually named
5885 something starting with __ and the normal name is an alias. */
5886 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5887 choke me
5888 #else
5889 $ac_func();
5890 #endif
5892 ; return 0; }
5894 if { (eval echo configure:5895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5895 rm -rf conftest*
5896 eval "ac_cv_func_$ac_func=yes"
5897 else
5898 echo "configure: failed program was:" >&5
5899 cat conftest.$ac_ext >&5
5900 rm -rf conftest*
5901 eval "ac_cv_func_$ac_func=no"
5903 rm -f conftest*
5906 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5907 echo "$ac_t""yes" 1>&6
5908 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5909 cat >> confdefs.h <<EOF
5910 #define $ac_tr_func 1
5913 else
5914 echo "$ac_t""no" 1>&6
5916 done
5918 for ac_func in _acl __acl _facl __facl _open __open _chdir __chdir
5920 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5921 echo "configure:5922: checking for $ac_func" >&5
5922 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5923 echo $ac_n "(cached) $ac_c" 1>&6
5924 else
5925 cat > conftest.$ac_ext <<EOF
5926 #line 5927 "configure"
5927 #include "confdefs.h"
5928 /* System header to define __stub macros and hopefully few prototypes,
5929 which can conflict with char $ac_func(); below. */
5930 #include <assert.h>
5931 /* Override any gcc2 internal prototype to avoid an error. */
5932 /* We use char because int might match the return type of a gcc2
5933 builtin and then its argument prototype would still apply. */
5934 char $ac_func();
5936 int main() {
5938 /* The GNU C library defines this for functions which it implements
5939 to always fail with ENOSYS. Some functions are actually named
5940 something starting with __ and the normal name is an alias. */
5941 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5942 choke me
5943 #else
5944 $ac_func();
5945 #endif
5947 ; return 0; }
5949 if { (eval echo configure:5950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5950 rm -rf conftest*
5951 eval "ac_cv_func_$ac_func=yes"
5952 else
5953 echo "configure: failed program was:" >&5
5954 cat conftest.$ac_ext >&5
5955 rm -rf conftest*
5956 eval "ac_cv_func_$ac_func=no"
5958 rm -f conftest*
5961 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5962 echo "$ac_t""yes" 1>&6
5963 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5964 cat >> confdefs.h <<EOF
5965 #define $ac_tr_func 1
5968 else
5969 echo "$ac_t""no" 1>&6
5971 done
5973 for ac_func in _close __close _fchdir __fchdir _fcntl __fcntl
5975 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5976 echo "configure:5977: checking for $ac_func" >&5
5977 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5978 echo $ac_n "(cached) $ac_c" 1>&6
5979 else
5980 cat > conftest.$ac_ext <<EOF
5981 #line 5982 "configure"
5982 #include "confdefs.h"
5983 /* System header to define __stub macros and hopefully few prototypes,
5984 which can conflict with char $ac_func(); below. */
5985 #include <assert.h>
5986 /* Override any gcc2 internal prototype to avoid an error. */
5987 /* We use char because int might match the return type of a gcc2
5988 builtin and then its argument prototype would still apply. */
5989 char $ac_func();
5991 int main() {
5993 /* The GNU C library defines this for functions which it implements
5994 to always fail with ENOSYS. Some functions are actually named
5995 something starting with __ and the normal name is an alias. */
5996 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5997 choke me
5998 #else
5999 $ac_func();
6000 #endif
6002 ; return 0; }
6004 if { (eval echo configure:6005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6005 rm -rf conftest*
6006 eval "ac_cv_func_$ac_func=yes"
6007 else
6008 echo "configure: failed program was:" >&5
6009 cat conftest.$ac_ext >&5
6010 rm -rf conftest*
6011 eval "ac_cv_func_$ac_func=no"
6013 rm -f conftest*
6016 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6017 echo "$ac_t""yes" 1>&6
6018 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6019 cat >> confdefs.h <<EOF
6020 #define $ac_tr_func 1
6023 else
6024 echo "$ac_t""no" 1>&6
6026 done
6028 for ac_func in getdents _getdents __getdents _lseek __lseek _read __read
6030 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6031 echo "configure:6032: checking for $ac_func" >&5
6032 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6033 echo $ac_n "(cached) $ac_c" 1>&6
6034 else
6035 cat > conftest.$ac_ext <<EOF
6036 #line 6037 "configure"
6037 #include "confdefs.h"
6038 /* System header to define __stub macros and hopefully few prototypes,
6039 which can conflict with char $ac_func(); below. */
6040 #include <assert.h>
6041 /* Override any gcc2 internal prototype to avoid an error. */
6042 /* We use char because int might match the return type of a gcc2
6043 builtin and then its argument prototype would still apply. */
6044 char $ac_func();
6046 int main() {
6048 /* The GNU C library defines this for functions which it implements
6049 to always fail with ENOSYS. Some functions are actually named
6050 something starting with __ and the normal name is an alias. */
6051 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6052 choke me
6053 #else
6054 $ac_func();
6055 #endif
6057 ; return 0; }
6059 if { (eval echo configure:6060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6060 rm -rf conftest*
6061 eval "ac_cv_func_$ac_func=yes"
6062 else
6063 echo "configure: failed program was:" >&5
6064 cat conftest.$ac_ext >&5
6065 rm -rf conftest*
6066 eval "ac_cv_func_$ac_func=no"
6068 rm -f conftest*
6071 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6072 echo "$ac_t""yes" 1>&6
6073 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6074 cat >> confdefs.h <<EOF
6075 #define $ac_tr_func 1
6078 else
6079 echo "$ac_t""no" 1>&6
6081 done
6083 for ac_func in _write __write _fork __fork
6085 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6086 echo "configure:6087: checking for $ac_func" >&5
6087 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6088 echo $ac_n "(cached) $ac_c" 1>&6
6089 else
6090 cat > conftest.$ac_ext <<EOF
6091 #line 6092 "configure"
6092 #include "confdefs.h"
6093 /* System header to define __stub macros and hopefully few prototypes,
6094 which can conflict with char $ac_func(); below. */
6095 #include <assert.h>
6096 /* Override any gcc2 internal prototype to avoid an error. */
6097 /* We use char because int might match the return type of a gcc2
6098 builtin and then its argument prototype would still apply. */
6099 char $ac_func();
6101 int main() {
6103 /* The GNU C library defines this for functions which it implements
6104 to always fail with ENOSYS. Some functions are actually named
6105 something starting with __ and the normal name is an alias. */
6106 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6107 choke me
6108 #else
6109 $ac_func();
6110 #endif
6112 ; return 0; }
6114 if { (eval echo configure:6115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6115 rm -rf conftest*
6116 eval "ac_cv_func_$ac_func=yes"
6117 else
6118 echo "configure: failed program was:" >&5
6119 cat conftest.$ac_ext >&5
6120 rm -rf conftest*
6121 eval "ac_cv_func_$ac_func=no"
6123 rm -f conftest*
6126 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6127 echo "$ac_t""yes" 1>&6
6128 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6129 cat >> confdefs.h <<EOF
6130 #define $ac_tr_func 1
6133 else
6134 echo "$ac_t""no" 1>&6
6136 done
6138 for ac_func in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
6140 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6141 echo "configure:6142: checking for $ac_func" >&5
6142 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6143 echo $ac_n "(cached) $ac_c" 1>&6
6144 else
6145 cat > conftest.$ac_ext <<EOF
6146 #line 6147 "configure"
6147 #include "confdefs.h"
6148 /* System header to define __stub macros and hopefully few prototypes,
6149 which can conflict with char $ac_func(); below. */
6150 #include <assert.h>
6151 /* Override any gcc2 internal prototype to avoid an error. */
6152 /* We use char because int might match the return type of a gcc2
6153 builtin and then its argument prototype would still apply. */
6154 char $ac_func();
6156 int main() {
6158 /* The GNU C library defines this for functions which it implements
6159 to always fail with ENOSYS. Some functions are actually named
6160 something starting with __ and the normal name is an alias. */
6161 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6162 choke me
6163 #else
6164 $ac_func();
6165 #endif
6167 ; return 0; }
6169 if { (eval echo configure:6170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6170 rm -rf conftest*
6171 eval "ac_cv_func_$ac_func=yes"
6172 else
6173 echo "configure: failed program was:" >&5
6174 cat conftest.$ac_ext >&5
6175 rm -rf conftest*
6176 eval "ac_cv_func_$ac_func=no"
6178 rm -f conftest*
6181 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6182 echo "$ac_t""yes" 1>&6
6183 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6184 cat >> confdefs.h <<EOF
6185 #define $ac_tr_func 1
6188 else
6189 echo "$ac_t""no" 1>&6
6191 done
6193 for ac_func in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
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
6199 else
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. */
6205 #include <assert.h>
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. */
6209 char $ac_func();
6211 int main() {
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)
6217 choke me
6218 #else
6219 $ac_func();
6220 #endif
6222 ; return 0; }
6224 if { (eval echo configure:6225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6225 rm -rf conftest*
6226 eval "ac_cv_func_$ac_func=yes"
6227 else
6228 echo "configure: failed program was:" >&5
6229 cat conftest.$ac_ext >&5
6230 rm -rf conftest*
6231 eval "ac_cv_func_$ac_func=no"
6233 rm -f conftest*
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
6243 else
6244 echo "$ac_t""no" 1>&6
6246 done
6248 for ac_func in pread _pread __pread pread64 _pread64 __pread64
6250 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6251 echo "configure:6252: checking for $ac_func" >&5
6252 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6253 echo $ac_n "(cached) $ac_c" 1>&6
6254 else
6255 cat > conftest.$ac_ext <<EOF
6256 #line 6257 "configure"
6257 #include "confdefs.h"
6258 /* System header to define __stub macros and hopefully few prototypes,
6259 which can conflict with char $ac_func(); below. */
6260 #include <assert.h>
6261 /* Override any gcc2 internal prototype to avoid an error. */
6262 /* We use char because int might match the return type of a gcc2
6263 builtin and then its argument prototype would still apply. */
6264 char $ac_func();
6266 int main() {
6268 /* The GNU C library defines this for functions which it implements
6269 to always fail with ENOSYS. Some functions are actually named
6270 something starting with __ and the normal name is an alias. */
6271 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6272 choke me
6273 #else
6274 $ac_func();
6275 #endif
6277 ; return 0; }
6279 if { (eval echo configure:6280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6280 rm -rf conftest*
6281 eval "ac_cv_func_$ac_func=yes"
6282 else
6283 echo "configure: failed program was:" >&5
6284 cat conftest.$ac_ext >&5
6285 rm -rf conftest*
6286 eval "ac_cv_func_$ac_func=no"
6288 rm -f conftest*
6291 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6292 echo "$ac_t""yes" 1>&6
6293 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6294 cat >> confdefs.h <<EOF
6295 #define $ac_tr_func 1
6298 else
6299 echo "$ac_t""no" 1>&6
6301 done
6303 for ac_func in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
6305 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6306 echo "configure:6307: checking for $ac_func" >&5
6307 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6308 echo $ac_n "(cached) $ac_c" 1>&6
6309 else
6310 cat > conftest.$ac_ext <<EOF
6311 #line 6312 "configure"
6312 #include "confdefs.h"
6313 /* System header to define __stub macros and hopefully few prototypes,
6314 which can conflict with char $ac_func(); below. */
6315 #include <assert.h>
6316 /* Override any gcc2 internal prototype to avoid an error. */
6317 /* We use char because int might match the return type of a gcc2
6318 builtin and then its argument prototype would still apply. */
6319 char $ac_func();
6321 int main() {
6323 /* The GNU C library defines this for functions which it implements
6324 to always fail with ENOSYS. Some functions are actually named
6325 something starting with __ and the normal name is an alias. */
6326 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6327 choke me
6328 #else
6329 $ac_func();
6330 #endif
6332 ; return 0; }
6334 if { (eval echo configure:6335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6335 rm -rf conftest*
6336 eval "ac_cv_func_$ac_func=yes"
6337 else
6338 echo "configure: failed program was:" >&5
6339 cat conftest.$ac_ext >&5
6340 rm -rf conftest*
6341 eval "ac_cv_func_$ac_func=no"
6343 rm -f conftest*
6346 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6347 echo "$ac_t""yes" 1>&6
6348 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6349 cat >> confdefs.h <<EOF
6350 #define $ac_tr_func 1
6353 else
6354 echo "$ac_t""no" 1>&6
6356 done
6358 for ac_func in open64 _open64 __open64 creat64
6360 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6361 echo "configure:6362: checking for $ac_func" >&5
6362 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6363 echo $ac_n "(cached) $ac_c" 1>&6
6364 else
6365 cat > conftest.$ac_ext <<EOF
6366 #line 6367 "configure"
6367 #include "confdefs.h"
6368 /* System header to define __stub macros and hopefully few prototypes,
6369 which can conflict with char $ac_func(); below. */
6370 #include <assert.h>
6371 /* Override any gcc2 internal prototype to avoid an error. */
6372 /* We use char because int might match the return type of a gcc2
6373 builtin and then its argument prototype would still apply. */
6374 char $ac_func();
6376 int main() {
6378 /* The GNU C library defines this for functions which it implements
6379 to always fail with ENOSYS. Some functions are actually named
6380 something starting with __ and the normal name is an alias. */
6381 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6382 choke me
6383 #else
6384 $ac_func();
6385 #endif
6387 ; return 0; }
6389 if { (eval echo configure:6390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6390 rm -rf conftest*
6391 eval "ac_cv_func_$ac_func=yes"
6392 else
6393 echo "configure: failed program was:" >&5
6394 cat conftest.$ac_ext >&5
6395 rm -rf conftest*
6396 eval "ac_cv_func_$ac_func=no"
6398 rm -f conftest*
6401 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6402 echo "$ac_t""yes" 1>&6
6403 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6404 cat >> confdefs.h <<EOF
6405 #define $ac_tr_func 1
6408 else
6409 echo "$ac_t""no" 1>&6
6411 done
6415 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
6418 if test x$ac_cv_func_stat64 = xno ; then
6419 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
6420 echo "configure:6421: checking for stat64 in <sys/stat.h>" >&5
6421 cat > conftest.$ac_ext <<EOF
6422 #line 6423 "configure"
6423 #include "confdefs.h"
6425 #if defined(HAVE_UNISTD_H)
6426 #include <unistd.h>
6427 #endif
6428 #include <sys/stat.h>
6430 int main() {
6431 struct stat64 st64; exit(stat64(".",&st64));
6432 ; return 0; }
6434 if { (eval echo configure:6435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6435 rm -rf conftest*
6436 ac_cv_func_stat64=yes
6437 else
6438 echo "configure: failed program was:" >&5
6439 cat conftest.$ac_ext >&5
6441 rm -f conftest*
6442 echo "$ac_t""$ac_cv_func_stat64" 1>&6
6443 if test x$ac_cv_func_stat64 = xyes ; then
6444 cat >> confdefs.h <<\EOF
6445 #define HAVE_STAT64 1
6451 if test x$ac_cv_func_lstat64 = xno ; then
6452 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
6453 echo "configure:6454: checking for lstat64 in <sys/stat.h>" >&5
6454 cat > conftest.$ac_ext <<EOF
6455 #line 6456 "configure"
6456 #include "confdefs.h"
6458 #if defined(HAVE_UNISTD_H)
6459 #include <unistd.h>
6460 #endif
6461 #include <sys/stat.h>
6463 int main() {
6464 struct stat64 st64; exit(lstat64(".",&st64));
6465 ; return 0; }
6467 if { (eval echo configure:6468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6468 rm -rf conftest*
6469 ac_cv_func_lstat64=yes
6470 else
6471 echo "configure: failed program was:" >&5
6472 cat conftest.$ac_ext >&5
6474 rm -f conftest*
6475 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
6476 if test x$ac_cv_func_lstat64 = xyes ; then
6477 cat >> confdefs.h <<\EOF
6478 #define HAVE_LSTAT64 1
6484 if test x$ac_cv_func_fstat64 = xno ; then
6485 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
6486 echo "configure:6487: checking for fstat64 in <sys/stat.h>" >&5
6487 cat > conftest.$ac_ext <<EOF
6488 #line 6489 "configure"
6489 #include "confdefs.h"
6491 #if defined(HAVE_UNISTD_H)
6492 #include <unistd.h>
6493 #endif
6494 #include <sys/stat.h>
6496 int main() {
6497 struct stat64 st64; exit(fstat64(0,&st64));
6498 ; return 0; }
6500 if { (eval echo configure:6501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6501 rm -rf conftest*
6502 ac_cv_func_fstat64=yes
6503 else
6504 echo "configure: failed program was:" >&5
6505 cat conftest.$ac_ext >&5
6507 rm -f conftest*
6508 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
6509 if test x$ac_cv_func_fstat64 = xyes ; then
6510 cat >> confdefs.h <<\EOF
6511 #define HAVE_FSTAT64 1
6517 #####################################
6518 # we might need the resolv library on some systems
6519 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
6520 echo "configure:6521: checking for dn_expand in -lresolv" >&5
6521 ac_lib_var=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
6522 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6523 echo $ac_n "(cached) $ac_c" 1>&6
6524 else
6525 ac_save_LIBS="$LIBS"
6526 LIBS="-lresolv $LIBS"
6527 cat > conftest.$ac_ext <<EOF
6528 #line 6529 "configure"
6529 #include "confdefs.h"
6530 /* Override any gcc2 internal prototype to avoid an error. */
6531 /* We use char because int might match the return type of a gcc2
6532 builtin and then its argument prototype would still apply. */
6533 char dn_expand();
6535 int main() {
6536 dn_expand()
6537 ; return 0; }
6539 if { (eval echo configure:6540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6540 rm -rf conftest*
6541 eval "ac_cv_lib_$ac_lib_var=yes"
6542 else
6543 echo "configure: failed program was:" >&5
6544 cat conftest.$ac_ext >&5
6545 rm -rf conftest*
6546 eval "ac_cv_lib_$ac_lib_var=no"
6548 rm -f conftest*
6549 LIBS="$ac_save_LIBS"
6552 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6553 echo "$ac_t""yes" 1>&6
6554 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6555 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6556 cat >> confdefs.h <<EOF
6557 #define $ac_tr_lib 1
6560 LIBS="-lresolv $LIBS"
6562 else
6563 echo "$ac_t""no" 1>&6
6568 # Check for the functions putprpwnam, set_auth_parameters,
6569 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
6570 # Needed for OSF1 and HPUX.
6573 case "$LIBS" in
6574 *-lsecurity*) for ac_func in putprpwnam
6576 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6577 echo "configure:6578: checking for $ac_func" >&5
6578 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6579 echo $ac_n "(cached) $ac_c" 1>&6
6580 else
6581 cat > conftest.$ac_ext <<EOF
6582 #line 6583 "configure"
6583 #include "confdefs.h"
6584 /* System header to define __stub macros and hopefully few prototypes,
6585 which can conflict with char $ac_func(); below. */
6586 #include <assert.h>
6587 /* Override any gcc2 internal prototype to avoid an error. */
6588 /* We use char because int might match the return type of a gcc2
6589 builtin and then its argument prototype would still apply. */
6590 char $ac_func();
6592 int main() {
6594 /* The GNU C library defines this for functions which it implements
6595 to always fail with ENOSYS. Some functions are actually named
6596 something starting with __ and the normal name is an alias. */
6597 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6598 choke me
6599 #else
6600 $ac_func();
6601 #endif
6603 ; return 0; }
6605 if { (eval echo configure:6606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6606 rm -rf conftest*
6607 eval "ac_cv_func_$ac_func=yes"
6608 else
6609 echo "configure: failed program was:" >&5
6610 cat conftest.$ac_ext >&5
6611 rm -rf conftest*
6612 eval "ac_cv_func_$ac_func=no"
6614 rm -f conftest*
6617 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6618 echo "$ac_t""yes" 1>&6
6619 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6620 cat >> confdefs.h <<EOF
6621 #define $ac_tr_func 1
6624 else
6625 echo "$ac_t""no" 1>&6
6627 done
6629 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
6630 echo "configure:6631: checking for putprpwnam in -lsecurity" >&5
6631 ac_lib_var=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
6632 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6633 echo $ac_n "(cached) $ac_c" 1>&6
6634 else
6635 ac_save_LIBS="$LIBS"
6636 LIBS="-lsecurity $LIBS"
6637 cat > conftest.$ac_ext <<EOF
6638 #line 6639 "configure"
6639 #include "confdefs.h"
6640 /* Override any gcc2 internal prototype to avoid an error. */
6641 /* We use char because int might match the return type of a gcc2
6642 builtin and then its argument prototype would still apply. */
6643 char putprpwnam();
6645 int main() {
6646 putprpwnam()
6647 ; return 0; }
6649 if { (eval echo configure:6650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6650 rm -rf conftest*
6651 eval "ac_cv_lib_$ac_lib_var=yes"
6652 else
6653 echo "configure: failed program was:" >&5
6654 cat conftest.$ac_ext >&5
6655 rm -rf conftest*
6656 eval "ac_cv_lib_$ac_lib_var=no"
6658 rm -f conftest*
6659 LIBS="$ac_save_LIBS"
6662 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6663 echo "$ac_t""yes" 1>&6
6664 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6665 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6666 cat >> confdefs.h <<EOF
6667 #define $ac_tr_lib 1
6670 LIBS="-lsecurity $LIBS"
6672 else
6673 echo "$ac_t""no" 1>&6
6676 for ac_func in putprpwnam
6678 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6679 echo "configure:6680: checking for $ac_func" >&5
6680 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6681 echo $ac_n "(cached) $ac_c" 1>&6
6682 else
6683 cat > conftest.$ac_ext <<EOF
6684 #line 6685 "configure"
6685 #include "confdefs.h"
6686 /* System header to define __stub macros and hopefully few prototypes,
6687 which can conflict with char $ac_func(); below. */
6688 #include <assert.h>
6689 /* Override any gcc2 internal prototype to avoid an error. */
6690 /* We use char because int might match the return type of a gcc2
6691 builtin and then its argument prototype would still apply. */
6692 char $ac_func();
6694 int main() {
6696 /* The GNU C library defines this for functions which it implements
6697 to always fail with ENOSYS. Some functions are actually named
6698 something starting with __ and the normal name is an alias. */
6699 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6700 choke me
6701 #else
6702 $ac_func();
6703 #endif
6705 ; return 0; }
6707 if { (eval echo configure:6708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6708 rm -rf conftest*
6709 eval "ac_cv_func_$ac_func=yes"
6710 else
6711 echo "configure: failed program was:" >&5
6712 cat conftest.$ac_ext >&5
6713 rm -rf conftest*
6714 eval "ac_cv_func_$ac_func=no"
6716 rm -f conftest*
6719 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6720 echo "$ac_t""yes" 1>&6
6721 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6722 cat >> confdefs.h <<EOF
6723 #define $ac_tr_func 1
6726 else
6727 echo "$ac_t""no" 1>&6
6729 done
6732 esac
6734 case "$LIBS" in
6735 *-lsec*) for ac_func in putprpwnam
6737 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6738 echo "configure:6739: checking for $ac_func" >&5
6739 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6740 echo $ac_n "(cached) $ac_c" 1>&6
6741 else
6742 cat > conftest.$ac_ext <<EOF
6743 #line 6744 "configure"
6744 #include "confdefs.h"
6745 /* System header to define __stub macros and hopefully few prototypes,
6746 which can conflict with char $ac_func(); below. */
6747 #include <assert.h>
6748 /* Override any gcc2 internal prototype to avoid an error. */
6749 /* We use char because int might match the return type of a gcc2
6750 builtin and then its argument prototype would still apply. */
6751 char $ac_func();
6753 int main() {
6755 /* The GNU C library defines this for functions which it implements
6756 to always fail with ENOSYS. Some functions are actually named
6757 something starting with __ and the normal name is an alias. */
6758 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6759 choke me
6760 #else
6761 $ac_func();
6762 #endif
6764 ; return 0; }
6766 if { (eval echo configure:6767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6767 rm -rf conftest*
6768 eval "ac_cv_func_$ac_func=yes"
6769 else
6770 echo "configure: failed program was:" >&5
6771 cat conftest.$ac_ext >&5
6772 rm -rf conftest*
6773 eval "ac_cv_func_$ac_func=no"
6775 rm -f conftest*
6778 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6779 echo "$ac_t""yes" 1>&6
6780 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6781 cat >> confdefs.h <<EOF
6782 #define $ac_tr_func 1
6785 else
6786 echo "$ac_t""no" 1>&6
6788 done
6790 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
6791 echo "configure:6792: checking for putprpwnam in -lsec" >&5
6792 ac_lib_var=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
6793 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6794 echo $ac_n "(cached) $ac_c" 1>&6
6795 else
6796 ac_save_LIBS="$LIBS"
6797 LIBS="-lsec $LIBS"
6798 cat > conftest.$ac_ext <<EOF
6799 #line 6800 "configure"
6800 #include "confdefs.h"
6801 /* Override any gcc2 internal prototype to avoid an error. */
6802 /* We use char because int might match the return type of a gcc2
6803 builtin and then its argument prototype would still apply. */
6804 char putprpwnam();
6806 int main() {
6807 putprpwnam()
6808 ; return 0; }
6810 if { (eval echo configure:6811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6811 rm -rf conftest*
6812 eval "ac_cv_lib_$ac_lib_var=yes"
6813 else
6814 echo "configure: failed program was:" >&5
6815 cat conftest.$ac_ext >&5
6816 rm -rf conftest*
6817 eval "ac_cv_lib_$ac_lib_var=no"
6819 rm -f conftest*
6820 LIBS="$ac_save_LIBS"
6823 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6824 echo "$ac_t""yes" 1>&6
6825 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6826 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6827 cat >> confdefs.h <<EOF
6828 #define $ac_tr_lib 1
6831 LIBS="-lsec $LIBS"
6833 else
6834 echo "$ac_t""no" 1>&6
6837 for ac_func in putprpwnam
6839 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6840 echo "configure:6841: checking for $ac_func" >&5
6841 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6842 echo $ac_n "(cached) $ac_c" 1>&6
6843 else
6844 cat > conftest.$ac_ext <<EOF
6845 #line 6846 "configure"
6846 #include "confdefs.h"
6847 /* System header to define __stub macros and hopefully few prototypes,
6848 which can conflict with char $ac_func(); below. */
6849 #include <assert.h>
6850 /* Override any gcc2 internal prototype to avoid an error. */
6851 /* We use char because int might match the return type of a gcc2
6852 builtin and then its argument prototype would still apply. */
6853 char $ac_func();
6855 int main() {
6857 /* The GNU C library defines this for functions which it implements
6858 to always fail with ENOSYS. Some functions are actually named
6859 something starting with __ and the normal name is an alias. */
6860 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6861 choke me
6862 #else
6863 $ac_func();
6864 #endif
6866 ; return 0; }
6868 if { (eval echo configure:6869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6869 rm -rf conftest*
6870 eval "ac_cv_func_$ac_func=yes"
6871 else
6872 echo "configure: failed program was:" >&5
6873 cat conftest.$ac_ext >&5
6874 rm -rf conftest*
6875 eval "ac_cv_func_$ac_func=no"
6877 rm -f conftest*
6880 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6881 echo "$ac_t""yes" 1>&6
6882 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6883 cat >> confdefs.h <<EOF
6884 #define $ac_tr_func 1
6887 else
6888 echo "$ac_t""no" 1>&6
6890 done
6893 esac
6896 case "$LIBS" in
6897 *-lsecurity*) for ac_func in set_auth_parameters
6899 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6900 echo "configure:6901: checking for $ac_func" >&5
6901 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6902 echo $ac_n "(cached) $ac_c" 1>&6
6903 else
6904 cat > conftest.$ac_ext <<EOF
6905 #line 6906 "configure"
6906 #include "confdefs.h"
6907 /* System header to define __stub macros and hopefully few prototypes,
6908 which can conflict with char $ac_func(); below. */
6909 #include <assert.h>
6910 /* Override any gcc2 internal prototype to avoid an error. */
6911 /* We use char because int might match the return type of a gcc2
6912 builtin and then its argument prototype would still apply. */
6913 char $ac_func();
6915 int main() {
6917 /* The GNU C library defines this for functions which it implements
6918 to always fail with ENOSYS. Some functions are actually named
6919 something starting with __ and the normal name is an alias. */
6920 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6921 choke me
6922 #else
6923 $ac_func();
6924 #endif
6926 ; return 0; }
6928 if { (eval echo configure:6929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6929 rm -rf conftest*
6930 eval "ac_cv_func_$ac_func=yes"
6931 else
6932 echo "configure: failed program was:" >&5
6933 cat conftest.$ac_ext >&5
6934 rm -rf conftest*
6935 eval "ac_cv_func_$ac_func=no"
6937 rm -f conftest*
6940 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6941 echo "$ac_t""yes" 1>&6
6942 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6943 cat >> confdefs.h <<EOF
6944 #define $ac_tr_func 1
6947 else
6948 echo "$ac_t""no" 1>&6
6950 done
6952 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
6953 echo "configure:6954: checking for set_auth_parameters in -lsecurity" >&5
6954 ac_lib_var=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
6955 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6956 echo $ac_n "(cached) $ac_c" 1>&6
6957 else
6958 ac_save_LIBS="$LIBS"
6959 LIBS="-lsecurity $LIBS"
6960 cat > conftest.$ac_ext <<EOF
6961 #line 6962 "configure"
6962 #include "confdefs.h"
6963 /* Override any gcc2 internal prototype to avoid an error. */
6964 /* We use char because int might match the return type of a gcc2
6965 builtin and then its argument prototype would still apply. */
6966 char set_auth_parameters();
6968 int main() {
6969 set_auth_parameters()
6970 ; return 0; }
6972 if { (eval echo configure:6973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6973 rm -rf conftest*
6974 eval "ac_cv_lib_$ac_lib_var=yes"
6975 else
6976 echo "configure: failed program was:" >&5
6977 cat conftest.$ac_ext >&5
6978 rm -rf conftest*
6979 eval "ac_cv_lib_$ac_lib_var=no"
6981 rm -f conftest*
6982 LIBS="$ac_save_LIBS"
6985 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6986 echo "$ac_t""yes" 1>&6
6987 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6988 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6989 cat >> confdefs.h <<EOF
6990 #define $ac_tr_lib 1
6993 LIBS="-lsecurity $LIBS"
6995 else
6996 echo "$ac_t""no" 1>&6
6999 for ac_func in set_auth_parameters
7001 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7002 echo "configure:7003: checking for $ac_func" >&5
7003 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7004 echo $ac_n "(cached) $ac_c" 1>&6
7005 else
7006 cat > conftest.$ac_ext <<EOF
7007 #line 7008 "configure"
7008 #include "confdefs.h"
7009 /* System header to define __stub macros and hopefully few prototypes,
7010 which can conflict with char $ac_func(); below. */
7011 #include <assert.h>
7012 /* Override any gcc2 internal prototype to avoid an error. */
7013 /* We use char because int might match the return type of a gcc2
7014 builtin and then its argument prototype would still apply. */
7015 char $ac_func();
7017 int main() {
7019 /* The GNU C library defines this for functions which it implements
7020 to always fail with ENOSYS. Some functions are actually named
7021 something starting with __ and the normal name is an alias. */
7022 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7023 choke me
7024 #else
7025 $ac_func();
7026 #endif
7028 ; return 0; }
7030 if { (eval echo configure:7031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7031 rm -rf conftest*
7032 eval "ac_cv_func_$ac_func=yes"
7033 else
7034 echo "configure: failed program was:" >&5
7035 cat conftest.$ac_ext >&5
7036 rm -rf conftest*
7037 eval "ac_cv_func_$ac_func=no"
7039 rm -f conftest*
7042 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7043 echo "$ac_t""yes" 1>&6
7044 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7045 cat >> confdefs.h <<EOF
7046 #define $ac_tr_func 1
7049 else
7050 echo "$ac_t""no" 1>&6
7052 done
7055 esac
7057 case "$LIBS" in
7058 *-lsec*) for ac_func in set_auth_parameters
7060 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7061 echo "configure:7062: checking for $ac_func" >&5
7062 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7063 echo $ac_n "(cached) $ac_c" 1>&6
7064 else
7065 cat > conftest.$ac_ext <<EOF
7066 #line 7067 "configure"
7067 #include "confdefs.h"
7068 /* System header to define __stub macros and hopefully few prototypes,
7069 which can conflict with char $ac_func(); below. */
7070 #include <assert.h>
7071 /* Override any gcc2 internal prototype to avoid an error. */
7072 /* We use char because int might match the return type of a gcc2
7073 builtin and then its argument prototype would still apply. */
7074 char $ac_func();
7076 int main() {
7078 /* The GNU C library defines this for functions which it implements
7079 to always fail with ENOSYS. Some functions are actually named
7080 something starting with __ and the normal name is an alias. */
7081 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7082 choke me
7083 #else
7084 $ac_func();
7085 #endif
7087 ; return 0; }
7089 if { (eval echo configure:7090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7090 rm -rf conftest*
7091 eval "ac_cv_func_$ac_func=yes"
7092 else
7093 echo "configure: failed program was:" >&5
7094 cat conftest.$ac_ext >&5
7095 rm -rf conftest*
7096 eval "ac_cv_func_$ac_func=no"
7098 rm -f conftest*
7101 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7102 echo "$ac_t""yes" 1>&6
7103 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7104 cat >> confdefs.h <<EOF
7105 #define $ac_tr_func 1
7108 else
7109 echo "$ac_t""no" 1>&6
7111 done
7113 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
7114 echo "configure:7115: checking for set_auth_parameters in -lsec" >&5
7115 ac_lib_var=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7116 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7117 echo $ac_n "(cached) $ac_c" 1>&6
7118 else
7119 ac_save_LIBS="$LIBS"
7120 LIBS="-lsec $LIBS"
7121 cat > conftest.$ac_ext <<EOF
7122 #line 7123 "configure"
7123 #include "confdefs.h"
7124 /* Override any gcc2 internal prototype to avoid an error. */
7125 /* We use char because int might match the return type of a gcc2
7126 builtin and then its argument prototype would still apply. */
7127 char set_auth_parameters();
7129 int main() {
7130 set_auth_parameters()
7131 ; return 0; }
7133 if { (eval echo configure:7134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7134 rm -rf conftest*
7135 eval "ac_cv_lib_$ac_lib_var=yes"
7136 else
7137 echo "configure: failed program was:" >&5
7138 cat conftest.$ac_ext >&5
7139 rm -rf conftest*
7140 eval "ac_cv_lib_$ac_lib_var=no"
7142 rm -f conftest*
7143 LIBS="$ac_save_LIBS"
7146 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7147 echo "$ac_t""yes" 1>&6
7148 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7149 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7150 cat >> confdefs.h <<EOF
7151 #define $ac_tr_lib 1
7154 LIBS="-lsec $LIBS"
7156 else
7157 echo "$ac_t""no" 1>&6
7160 for ac_func in set_auth_parameters
7162 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7163 echo "configure:7164: checking for $ac_func" >&5
7164 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7165 echo $ac_n "(cached) $ac_c" 1>&6
7166 else
7167 cat > conftest.$ac_ext <<EOF
7168 #line 7169 "configure"
7169 #include "confdefs.h"
7170 /* System header to define __stub macros and hopefully few prototypes,
7171 which can conflict with char $ac_func(); below. */
7172 #include <assert.h>
7173 /* Override any gcc2 internal prototype to avoid an error. */
7174 /* We use char because int might match the return type of a gcc2
7175 builtin and then its argument prototype would still apply. */
7176 char $ac_func();
7178 int main() {
7180 /* The GNU C library defines this for functions which it implements
7181 to always fail with ENOSYS. Some functions are actually named
7182 something starting with __ and the normal name is an alias. */
7183 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7184 choke me
7185 #else
7186 $ac_func();
7187 #endif
7189 ; return 0; }
7191 if { (eval echo configure:7192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7192 rm -rf conftest*
7193 eval "ac_cv_func_$ac_func=yes"
7194 else
7195 echo "configure: failed program was:" >&5
7196 cat conftest.$ac_ext >&5
7197 rm -rf conftest*
7198 eval "ac_cv_func_$ac_func=no"
7200 rm -f conftest*
7203 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7204 echo "$ac_t""yes" 1>&6
7205 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7206 cat >> confdefs.h <<EOF
7207 #define $ac_tr_func 1
7210 else
7211 echo "$ac_t""no" 1>&6
7213 done
7216 esac
7219 # UnixWare 7.x has its getspnam in -lgen
7220 case "$LIBS" in
7221 *-lgen*) for ac_func in getspnam
7223 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7224 echo "configure:7225: checking for $ac_func" >&5
7225 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7226 echo $ac_n "(cached) $ac_c" 1>&6
7227 else
7228 cat > conftest.$ac_ext <<EOF
7229 #line 7230 "configure"
7230 #include "confdefs.h"
7231 /* System header to define __stub macros and hopefully few prototypes,
7232 which can conflict with char $ac_func(); below. */
7233 #include <assert.h>
7234 /* Override any gcc2 internal prototype to avoid an error. */
7235 /* We use char because int might match the return type of a gcc2
7236 builtin and then its argument prototype would still apply. */
7237 char $ac_func();
7239 int main() {
7241 /* The GNU C library defines this for functions which it implements
7242 to always fail with ENOSYS. Some functions are actually named
7243 something starting with __ and the normal name is an alias. */
7244 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7245 choke me
7246 #else
7247 $ac_func();
7248 #endif
7250 ; return 0; }
7252 if { (eval echo configure:7253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7253 rm -rf conftest*
7254 eval "ac_cv_func_$ac_func=yes"
7255 else
7256 echo "configure: failed program was:" >&5
7257 cat conftest.$ac_ext >&5
7258 rm -rf conftest*
7259 eval "ac_cv_func_$ac_func=no"
7261 rm -f conftest*
7264 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7265 echo "$ac_t""yes" 1>&6
7266 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7267 cat >> confdefs.h <<EOF
7268 #define $ac_tr_func 1
7271 else
7272 echo "$ac_t""no" 1>&6
7274 done
7276 *) echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
7277 echo "configure:7278: checking for getspnam in -lgen" >&5
7278 ac_lib_var=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
7279 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7280 echo $ac_n "(cached) $ac_c" 1>&6
7281 else
7282 ac_save_LIBS="$LIBS"
7283 LIBS="-lgen $LIBS"
7284 cat > conftest.$ac_ext <<EOF
7285 #line 7286 "configure"
7286 #include "confdefs.h"
7287 /* Override any gcc2 internal prototype to avoid an error. */
7288 /* We use char because int might match the return type of a gcc2
7289 builtin and then its argument prototype would still apply. */
7290 char getspnam();
7292 int main() {
7293 getspnam()
7294 ; return 0; }
7296 if { (eval echo configure:7297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7297 rm -rf conftest*
7298 eval "ac_cv_lib_$ac_lib_var=yes"
7299 else
7300 echo "configure: failed program was:" >&5
7301 cat conftest.$ac_ext >&5
7302 rm -rf conftest*
7303 eval "ac_cv_lib_$ac_lib_var=no"
7305 rm -f conftest*
7306 LIBS="$ac_save_LIBS"
7309 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7310 echo "$ac_t""yes" 1>&6
7311 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7312 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7313 cat >> confdefs.h <<EOF
7314 #define $ac_tr_lib 1
7317 LIBS="-lgen $LIBS"
7319 else
7320 echo "$ac_t""no" 1>&6
7323 for ac_func in getspnam
7325 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7326 echo "configure:7327: checking for $ac_func" >&5
7327 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7328 echo $ac_n "(cached) $ac_c" 1>&6
7329 else
7330 cat > conftest.$ac_ext <<EOF
7331 #line 7332 "configure"
7332 #include "confdefs.h"
7333 /* System header to define __stub macros and hopefully few prototypes,
7334 which can conflict with char $ac_func(); below. */
7335 #include <assert.h>
7336 /* Override any gcc2 internal prototype to avoid an error. */
7337 /* We use char because int might match the return type of a gcc2
7338 builtin and then its argument prototype would still apply. */
7339 char $ac_func();
7341 int main() {
7343 /* The GNU C library defines this for functions which it implements
7344 to always fail with ENOSYS. Some functions are actually named
7345 something starting with __ and the normal name is an alias. */
7346 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7347 choke me
7348 #else
7349 $ac_func();
7350 #endif
7352 ; return 0; }
7354 if { (eval echo configure:7355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7355 rm -rf conftest*
7356 eval "ac_cv_func_$ac_func=yes"
7357 else
7358 echo "configure: failed program was:" >&5
7359 cat conftest.$ac_ext >&5
7360 rm -rf conftest*
7361 eval "ac_cv_func_$ac_func=no"
7363 rm -f conftest*
7366 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7367 echo "$ac_t""yes" 1>&6
7368 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7369 cat >> confdefs.h <<EOF
7370 #define $ac_tr_func 1
7373 else
7374 echo "$ac_t""no" 1>&6
7376 done
7379 esac
7382 case "$LIBS" in
7383 *-lsecurity*) for ac_func in getspnam
7385 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7386 echo "configure:7387: checking for $ac_func" >&5
7387 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7388 echo $ac_n "(cached) $ac_c" 1>&6
7389 else
7390 cat > conftest.$ac_ext <<EOF
7391 #line 7392 "configure"
7392 #include "confdefs.h"
7393 /* System header to define __stub macros and hopefully few prototypes,
7394 which can conflict with char $ac_func(); below. */
7395 #include <assert.h>
7396 /* Override any gcc2 internal prototype to avoid an error. */
7397 /* We use char because int might match the return type of a gcc2
7398 builtin and then its argument prototype would still apply. */
7399 char $ac_func();
7401 int main() {
7403 /* The GNU C library defines this for functions which it implements
7404 to always fail with ENOSYS. Some functions are actually named
7405 something starting with __ and the normal name is an alias. */
7406 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7407 choke me
7408 #else
7409 $ac_func();
7410 #endif
7412 ; return 0; }
7414 if { (eval echo configure:7415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7415 rm -rf conftest*
7416 eval "ac_cv_func_$ac_func=yes"
7417 else
7418 echo "configure: failed program was:" >&5
7419 cat conftest.$ac_ext >&5
7420 rm -rf conftest*
7421 eval "ac_cv_func_$ac_func=no"
7423 rm -f conftest*
7426 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7427 echo "$ac_t""yes" 1>&6
7428 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7429 cat >> confdefs.h <<EOF
7430 #define $ac_tr_func 1
7433 else
7434 echo "$ac_t""no" 1>&6
7436 done
7438 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
7439 echo "configure:7440: checking for getspnam in -lsecurity" >&5
7440 ac_lib_var=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
7441 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7442 echo $ac_n "(cached) $ac_c" 1>&6
7443 else
7444 ac_save_LIBS="$LIBS"
7445 LIBS="-lsecurity $LIBS"
7446 cat > conftest.$ac_ext <<EOF
7447 #line 7448 "configure"
7448 #include "confdefs.h"
7449 /* Override any gcc2 internal prototype to avoid an error. */
7450 /* We use char because int might match the return type of a gcc2
7451 builtin and then its argument prototype would still apply. */
7452 char getspnam();
7454 int main() {
7455 getspnam()
7456 ; return 0; }
7458 if { (eval echo configure:7459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7459 rm -rf conftest*
7460 eval "ac_cv_lib_$ac_lib_var=yes"
7461 else
7462 echo "configure: failed program was:" >&5
7463 cat conftest.$ac_ext >&5
7464 rm -rf conftest*
7465 eval "ac_cv_lib_$ac_lib_var=no"
7467 rm -f conftest*
7468 LIBS="$ac_save_LIBS"
7471 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7472 echo "$ac_t""yes" 1>&6
7473 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7474 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7475 cat >> confdefs.h <<EOF
7476 #define $ac_tr_lib 1
7479 LIBS="-lsecurity $LIBS"
7481 else
7482 echo "$ac_t""no" 1>&6
7485 for ac_func in getspnam
7487 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7488 echo "configure:7489: checking for $ac_func" >&5
7489 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7490 echo $ac_n "(cached) $ac_c" 1>&6
7491 else
7492 cat > conftest.$ac_ext <<EOF
7493 #line 7494 "configure"
7494 #include "confdefs.h"
7495 /* System header to define __stub macros and hopefully few prototypes,
7496 which can conflict with char $ac_func(); below. */
7497 #include <assert.h>
7498 /* Override any gcc2 internal prototype to avoid an error. */
7499 /* We use char because int might match the return type of a gcc2
7500 builtin and then its argument prototype would still apply. */
7501 char $ac_func();
7503 int main() {
7505 /* The GNU C library defines this for functions which it implements
7506 to always fail with ENOSYS. Some functions are actually named
7507 something starting with __ and the normal name is an alias. */
7508 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7509 choke me
7510 #else
7511 $ac_func();
7512 #endif
7514 ; return 0; }
7516 if { (eval echo configure:7517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7517 rm -rf conftest*
7518 eval "ac_cv_func_$ac_func=yes"
7519 else
7520 echo "configure: failed program was:" >&5
7521 cat conftest.$ac_ext >&5
7522 rm -rf conftest*
7523 eval "ac_cv_func_$ac_func=no"
7525 rm -f conftest*
7528 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7529 echo "$ac_t""yes" 1>&6
7530 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7531 cat >> confdefs.h <<EOF
7532 #define $ac_tr_func 1
7535 else
7536 echo "$ac_t""no" 1>&6
7538 done
7541 esac
7543 case "$LIBS" in
7544 *-lsec*) for ac_func in getspnam
7546 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7547 echo "configure:7548: checking for $ac_func" >&5
7548 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7549 echo $ac_n "(cached) $ac_c" 1>&6
7550 else
7551 cat > conftest.$ac_ext <<EOF
7552 #line 7553 "configure"
7553 #include "confdefs.h"
7554 /* System header to define __stub macros and hopefully few prototypes,
7555 which can conflict with char $ac_func(); below. */
7556 #include <assert.h>
7557 /* Override any gcc2 internal prototype to avoid an error. */
7558 /* We use char because int might match the return type of a gcc2
7559 builtin and then its argument prototype would still apply. */
7560 char $ac_func();
7562 int main() {
7564 /* The GNU C library defines this for functions which it implements
7565 to always fail with ENOSYS. Some functions are actually named
7566 something starting with __ and the normal name is an alias. */
7567 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7568 choke me
7569 #else
7570 $ac_func();
7571 #endif
7573 ; return 0; }
7575 if { (eval echo configure:7576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7576 rm -rf conftest*
7577 eval "ac_cv_func_$ac_func=yes"
7578 else
7579 echo "configure: failed program was:" >&5
7580 cat conftest.$ac_ext >&5
7581 rm -rf conftest*
7582 eval "ac_cv_func_$ac_func=no"
7584 rm -f conftest*
7587 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7588 echo "$ac_t""yes" 1>&6
7589 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7590 cat >> confdefs.h <<EOF
7591 #define $ac_tr_func 1
7594 else
7595 echo "$ac_t""no" 1>&6
7597 done
7599 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
7600 echo "configure:7601: checking for getspnam in -lsec" >&5
7601 ac_lib_var=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
7602 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7603 echo $ac_n "(cached) $ac_c" 1>&6
7604 else
7605 ac_save_LIBS="$LIBS"
7606 LIBS="-lsec $LIBS"
7607 cat > conftest.$ac_ext <<EOF
7608 #line 7609 "configure"
7609 #include "confdefs.h"
7610 /* Override any gcc2 internal prototype to avoid an error. */
7611 /* We use char because int might match the return type of a gcc2
7612 builtin and then its argument prototype would still apply. */
7613 char getspnam();
7615 int main() {
7616 getspnam()
7617 ; return 0; }
7619 if { (eval echo configure:7620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7620 rm -rf conftest*
7621 eval "ac_cv_lib_$ac_lib_var=yes"
7622 else
7623 echo "configure: failed program was:" >&5
7624 cat conftest.$ac_ext >&5
7625 rm -rf conftest*
7626 eval "ac_cv_lib_$ac_lib_var=no"
7628 rm -f conftest*
7629 LIBS="$ac_save_LIBS"
7632 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7633 echo "$ac_t""yes" 1>&6
7634 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7635 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7636 cat >> confdefs.h <<EOF
7637 #define $ac_tr_lib 1
7640 LIBS="-lsec $LIBS"
7642 else
7643 echo "$ac_t""no" 1>&6
7646 for ac_func in getspnam
7648 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7649 echo "configure:7650: checking for $ac_func" >&5
7650 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7651 echo $ac_n "(cached) $ac_c" 1>&6
7652 else
7653 cat > conftest.$ac_ext <<EOF
7654 #line 7655 "configure"
7655 #include "confdefs.h"
7656 /* System header to define __stub macros and hopefully few prototypes,
7657 which can conflict with char $ac_func(); below. */
7658 #include <assert.h>
7659 /* Override any gcc2 internal prototype to avoid an error. */
7660 /* We use char because int might match the return type of a gcc2
7661 builtin and then its argument prototype would still apply. */
7662 char $ac_func();
7664 int main() {
7666 /* The GNU C library defines this for functions which it implements
7667 to always fail with ENOSYS. Some functions are actually named
7668 something starting with __ and the normal name is an alias. */
7669 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7670 choke me
7671 #else
7672 $ac_func();
7673 #endif
7675 ; return 0; }
7677 if { (eval echo configure:7678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7678 rm -rf conftest*
7679 eval "ac_cv_func_$ac_func=yes"
7680 else
7681 echo "configure: failed program was:" >&5
7682 cat conftest.$ac_ext >&5
7683 rm -rf conftest*
7684 eval "ac_cv_func_$ac_func=no"
7686 rm -f conftest*
7689 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7690 echo "$ac_t""yes" 1>&6
7691 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7692 cat >> confdefs.h <<EOF
7693 #define $ac_tr_func 1
7696 else
7697 echo "$ac_t""no" 1>&6
7699 done
7702 esac
7705 case "$LIBS" in
7706 *-lsecurity*) for ac_func in bigcrypt
7708 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7709 echo "configure:7710: checking for $ac_func" >&5
7710 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7711 echo $ac_n "(cached) $ac_c" 1>&6
7712 else
7713 cat > conftest.$ac_ext <<EOF
7714 #line 7715 "configure"
7715 #include "confdefs.h"
7716 /* System header to define __stub macros and hopefully few prototypes,
7717 which can conflict with char $ac_func(); below. */
7718 #include <assert.h>
7719 /* Override any gcc2 internal prototype to avoid an error. */
7720 /* We use char because int might match the return type of a gcc2
7721 builtin and then its argument prototype would still apply. */
7722 char $ac_func();
7724 int main() {
7726 /* The GNU C library defines this for functions which it implements
7727 to always fail with ENOSYS. Some functions are actually named
7728 something starting with __ and the normal name is an alias. */
7729 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7730 choke me
7731 #else
7732 $ac_func();
7733 #endif
7735 ; return 0; }
7737 if { (eval echo configure:7738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7738 rm -rf conftest*
7739 eval "ac_cv_func_$ac_func=yes"
7740 else
7741 echo "configure: failed program was:" >&5
7742 cat conftest.$ac_ext >&5
7743 rm -rf conftest*
7744 eval "ac_cv_func_$ac_func=no"
7746 rm -f conftest*
7749 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7750 echo "$ac_t""yes" 1>&6
7751 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7752 cat >> confdefs.h <<EOF
7753 #define $ac_tr_func 1
7756 else
7757 echo "$ac_t""no" 1>&6
7759 done
7761 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
7762 echo "configure:7763: checking for bigcrypt in -lsecurity" >&5
7763 ac_lib_var=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
7764 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7765 echo $ac_n "(cached) $ac_c" 1>&6
7766 else
7767 ac_save_LIBS="$LIBS"
7768 LIBS="-lsecurity $LIBS"
7769 cat > conftest.$ac_ext <<EOF
7770 #line 7771 "configure"
7771 #include "confdefs.h"
7772 /* Override any gcc2 internal prototype to avoid an error. */
7773 /* We use char because int might match the return type of a gcc2
7774 builtin and then its argument prototype would still apply. */
7775 char bigcrypt();
7777 int main() {
7778 bigcrypt()
7779 ; return 0; }
7781 if { (eval echo configure:7782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7782 rm -rf conftest*
7783 eval "ac_cv_lib_$ac_lib_var=yes"
7784 else
7785 echo "configure: failed program was:" >&5
7786 cat conftest.$ac_ext >&5
7787 rm -rf conftest*
7788 eval "ac_cv_lib_$ac_lib_var=no"
7790 rm -f conftest*
7791 LIBS="$ac_save_LIBS"
7794 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7795 echo "$ac_t""yes" 1>&6
7796 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7797 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7798 cat >> confdefs.h <<EOF
7799 #define $ac_tr_lib 1
7802 LIBS="-lsecurity $LIBS"
7804 else
7805 echo "$ac_t""no" 1>&6
7808 for ac_func in bigcrypt
7810 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7811 echo "configure:7812: checking for $ac_func" >&5
7812 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7813 echo $ac_n "(cached) $ac_c" 1>&6
7814 else
7815 cat > conftest.$ac_ext <<EOF
7816 #line 7817 "configure"
7817 #include "confdefs.h"
7818 /* System header to define __stub macros and hopefully few prototypes,
7819 which can conflict with char $ac_func(); below. */
7820 #include <assert.h>
7821 /* Override any gcc2 internal prototype to avoid an error. */
7822 /* We use char because int might match the return type of a gcc2
7823 builtin and then its argument prototype would still apply. */
7824 char $ac_func();
7826 int main() {
7828 /* The GNU C library defines this for functions which it implements
7829 to always fail with ENOSYS. Some functions are actually named
7830 something starting with __ and the normal name is an alias. */
7831 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7832 choke me
7833 #else
7834 $ac_func();
7835 #endif
7837 ; return 0; }
7839 if { (eval echo configure:7840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7840 rm -rf conftest*
7841 eval "ac_cv_func_$ac_func=yes"
7842 else
7843 echo "configure: failed program was:" >&5
7844 cat conftest.$ac_ext >&5
7845 rm -rf conftest*
7846 eval "ac_cv_func_$ac_func=no"
7848 rm -f conftest*
7851 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7852 echo "$ac_t""yes" 1>&6
7853 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7854 cat >> confdefs.h <<EOF
7855 #define $ac_tr_func 1
7858 else
7859 echo "$ac_t""no" 1>&6
7861 done
7864 esac
7866 case "$LIBS" in
7867 *-lsec*) for ac_func in bigcrypt
7869 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7870 echo "configure:7871: checking for $ac_func" >&5
7871 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7872 echo $ac_n "(cached) $ac_c" 1>&6
7873 else
7874 cat > conftest.$ac_ext <<EOF
7875 #line 7876 "configure"
7876 #include "confdefs.h"
7877 /* System header to define __stub macros and hopefully few prototypes,
7878 which can conflict with char $ac_func(); below. */
7879 #include <assert.h>
7880 /* Override any gcc2 internal prototype to avoid an error. */
7881 /* We use char because int might match the return type of a gcc2
7882 builtin and then its argument prototype would still apply. */
7883 char $ac_func();
7885 int main() {
7887 /* The GNU C library defines this for functions which it implements
7888 to always fail with ENOSYS. Some functions are actually named
7889 something starting with __ and the normal name is an alias. */
7890 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7891 choke me
7892 #else
7893 $ac_func();
7894 #endif
7896 ; return 0; }
7898 if { (eval echo configure:7899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7899 rm -rf conftest*
7900 eval "ac_cv_func_$ac_func=yes"
7901 else
7902 echo "configure: failed program was:" >&5
7903 cat conftest.$ac_ext >&5
7904 rm -rf conftest*
7905 eval "ac_cv_func_$ac_func=no"
7907 rm -f conftest*
7910 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7911 echo "$ac_t""yes" 1>&6
7912 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7913 cat >> confdefs.h <<EOF
7914 #define $ac_tr_func 1
7917 else
7918 echo "$ac_t""no" 1>&6
7920 done
7922 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
7923 echo "configure:7924: checking for bigcrypt in -lsec" >&5
7924 ac_lib_var=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
7925 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7926 echo $ac_n "(cached) $ac_c" 1>&6
7927 else
7928 ac_save_LIBS="$LIBS"
7929 LIBS="-lsec $LIBS"
7930 cat > conftest.$ac_ext <<EOF
7931 #line 7932 "configure"
7932 #include "confdefs.h"
7933 /* Override any gcc2 internal prototype to avoid an error. */
7934 /* We use char because int might match the return type of a gcc2
7935 builtin and then its argument prototype would still apply. */
7936 char bigcrypt();
7938 int main() {
7939 bigcrypt()
7940 ; return 0; }
7942 if { (eval echo configure:7943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7943 rm -rf conftest*
7944 eval "ac_cv_lib_$ac_lib_var=yes"
7945 else
7946 echo "configure: failed program was:" >&5
7947 cat conftest.$ac_ext >&5
7948 rm -rf conftest*
7949 eval "ac_cv_lib_$ac_lib_var=no"
7951 rm -f conftest*
7952 LIBS="$ac_save_LIBS"
7955 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7956 echo "$ac_t""yes" 1>&6
7957 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7958 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7959 cat >> confdefs.h <<EOF
7960 #define $ac_tr_lib 1
7963 LIBS="-lsec $LIBS"
7965 else
7966 echo "$ac_t""no" 1>&6
7969 for ac_func in bigcrypt
7971 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7972 echo "configure:7973: checking for $ac_func" >&5
7973 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7974 echo $ac_n "(cached) $ac_c" 1>&6
7975 else
7976 cat > conftest.$ac_ext <<EOF
7977 #line 7978 "configure"
7978 #include "confdefs.h"
7979 /* System header to define __stub macros and hopefully few prototypes,
7980 which can conflict with char $ac_func(); below. */
7981 #include <assert.h>
7982 /* Override any gcc2 internal prototype to avoid an error. */
7983 /* We use char because int might match the return type of a gcc2
7984 builtin and then its argument prototype would still apply. */
7985 char $ac_func();
7987 int main() {
7989 /* The GNU C library defines this for functions which it implements
7990 to always fail with ENOSYS. Some functions are actually named
7991 something starting with __ and the normal name is an alias. */
7992 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7993 choke me
7994 #else
7995 $ac_func();
7996 #endif
7998 ; return 0; }
8000 if { (eval echo configure:8001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8001 rm -rf conftest*
8002 eval "ac_cv_func_$ac_func=yes"
8003 else
8004 echo "configure: failed program was:" >&5
8005 cat conftest.$ac_ext >&5
8006 rm -rf conftest*
8007 eval "ac_cv_func_$ac_func=no"
8009 rm -f conftest*
8012 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8013 echo "$ac_t""yes" 1>&6
8014 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8015 cat >> confdefs.h <<EOF
8016 #define $ac_tr_func 1
8019 else
8020 echo "$ac_t""no" 1>&6
8022 done
8025 esac
8028 case "$LIBS" in
8029 *-lsecurity*) for ac_func in getprpwnam
8031 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8032 echo "configure:8033: checking for $ac_func" >&5
8033 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8034 echo $ac_n "(cached) $ac_c" 1>&6
8035 else
8036 cat > conftest.$ac_ext <<EOF
8037 #line 8038 "configure"
8038 #include "confdefs.h"
8039 /* System header to define __stub macros and hopefully few prototypes,
8040 which can conflict with char $ac_func(); below. */
8041 #include <assert.h>
8042 /* Override any gcc2 internal prototype to avoid an error. */
8043 /* We use char because int might match the return type of a gcc2
8044 builtin and then its argument prototype would still apply. */
8045 char $ac_func();
8047 int main() {
8049 /* The GNU C library defines this for functions which it implements
8050 to always fail with ENOSYS. Some functions are actually named
8051 something starting with __ and the normal name is an alias. */
8052 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8053 choke me
8054 #else
8055 $ac_func();
8056 #endif
8058 ; return 0; }
8060 if { (eval echo configure:8061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8061 rm -rf conftest*
8062 eval "ac_cv_func_$ac_func=yes"
8063 else
8064 echo "configure: failed program was:" >&5
8065 cat conftest.$ac_ext >&5
8066 rm -rf conftest*
8067 eval "ac_cv_func_$ac_func=no"
8069 rm -f conftest*
8072 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8073 echo "$ac_t""yes" 1>&6
8074 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8075 cat >> confdefs.h <<EOF
8076 #define $ac_tr_func 1
8079 else
8080 echo "$ac_t""no" 1>&6
8082 done
8084 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
8085 echo "configure:8086: checking for getprpwnam in -lsecurity" >&5
8086 ac_lib_var=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
8087 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8088 echo $ac_n "(cached) $ac_c" 1>&6
8089 else
8090 ac_save_LIBS="$LIBS"
8091 LIBS="-lsecurity $LIBS"
8092 cat > conftest.$ac_ext <<EOF
8093 #line 8094 "configure"
8094 #include "confdefs.h"
8095 /* Override any gcc2 internal prototype to avoid an error. */
8096 /* We use char because int might match the return type of a gcc2
8097 builtin and then its argument prototype would still apply. */
8098 char getprpwnam();
8100 int main() {
8101 getprpwnam()
8102 ; return 0; }
8104 if { (eval echo configure:8105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8105 rm -rf conftest*
8106 eval "ac_cv_lib_$ac_lib_var=yes"
8107 else
8108 echo "configure: failed program was:" >&5
8109 cat conftest.$ac_ext >&5
8110 rm -rf conftest*
8111 eval "ac_cv_lib_$ac_lib_var=no"
8113 rm -f conftest*
8114 LIBS="$ac_save_LIBS"
8117 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8118 echo "$ac_t""yes" 1>&6
8119 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8120 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8121 cat >> confdefs.h <<EOF
8122 #define $ac_tr_lib 1
8125 LIBS="-lsecurity $LIBS"
8127 else
8128 echo "$ac_t""no" 1>&6
8131 for ac_func in getprpwnam
8133 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8134 echo "configure:8135: checking for $ac_func" >&5
8135 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8136 echo $ac_n "(cached) $ac_c" 1>&6
8137 else
8138 cat > conftest.$ac_ext <<EOF
8139 #line 8140 "configure"
8140 #include "confdefs.h"
8141 /* System header to define __stub macros and hopefully few prototypes,
8142 which can conflict with char $ac_func(); below. */
8143 #include <assert.h>
8144 /* Override any gcc2 internal prototype to avoid an error. */
8145 /* We use char because int might match the return type of a gcc2
8146 builtin and then its argument prototype would still apply. */
8147 char $ac_func();
8149 int main() {
8151 /* The GNU C library defines this for functions which it implements
8152 to always fail with ENOSYS. Some functions are actually named
8153 something starting with __ and the normal name is an alias. */
8154 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8155 choke me
8156 #else
8157 $ac_func();
8158 #endif
8160 ; return 0; }
8162 if { (eval echo configure:8163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8163 rm -rf conftest*
8164 eval "ac_cv_func_$ac_func=yes"
8165 else
8166 echo "configure: failed program was:" >&5
8167 cat conftest.$ac_ext >&5
8168 rm -rf conftest*
8169 eval "ac_cv_func_$ac_func=no"
8171 rm -f conftest*
8174 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8175 echo "$ac_t""yes" 1>&6
8176 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8177 cat >> confdefs.h <<EOF
8178 #define $ac_tr_func 1
8181 else
8182 echo "$ac_t""no" 1>&6
8184 done
8187 esac
8189 case "$LIBS" in
8190 *-lsec*) for ac_func in getprpwnam
8192 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8193 echo "configure:8194: checking for $ac_func" >&5
8194 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8195 echo $ac_n "(cached) $ac_c" 1>&6
8196 else
8197 cat > conftest.$ac_ext <<EOF
8198 #line 8199 "configure"
8199 #include "confdefs.h"
8200 /* System header to define __stub macros and hopefully few prototypes,
8201 which can conflict with char $ac_func(); below. */
8202 #include <assert.h>
8203 /* Override any gcc2 internal prototype to avoid an error. */
8204 /* We use char because int might match the return type of a gcc2
8205 builtin and then its argument prototype would still apply. */
8206 char $ac_func();
8208 int main() {
8210 /* The GNU C library defines this for functions which it implements
8211 to always fail with ENOSYS. Some functions are actually named
8212 something starting with __ and the normal name is an alias. */
8213 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8214 choke me
8215 #else
8216 $ac_func();
8217 #endif
8219 ; return 0; }
8221 if { (eval echo configure:8222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8222 rm -rf conftest*
8223 eval "ac_cv_func_$ac_func=yes"
8224 else
8225 echo "configure: failed program was:" >&5
8226 cat conftest.$ac_ext >&5
8227 rm -rf conftest*
8228 eval "ac_cv_func_$ac_func=no"
8230 rm -f conftest*
8233 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8234 echo "$ac_t""yes" 1>&6
8235 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8236 cat >> confdefs.h <<EOF
8237 #define $ac_tr_func 1
8240 else
8241 echo "$ac_t""no" 1>&6
8243 done
8245 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
8246 echo "configure:8247: checking for getprpwnam in -lsec" >&5
8247 ac_lib_var=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
8248 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8249 echo $ac_n "(cached) $ac_c" 1>&6
8250 else
8251 ac_save_LIBS="$LIBS"
8252 LIBS="-lsec $LIBS"
8253 cat > conftest.$ac_ext <<EOF
8254 #line 8255 "configure"
8255 #include "confdefs.h"
8256 /* Override any gcc2 internal prototype to avoid an error. */
8257 /* We use char because int might match the return type of a gcc2
8258 builtin and then its argument prototype would still apply. */
8259 char getprpwnam();
8261 int main() {
8262 getprpwnam()
8263 ; return 0; }
8265 if { (eval echo configure:8266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8266 rm -rf conftest*
8267 eval "ac_cv_lib_$ac_lib_var=yes"
8268 else
8269 echo "configure: failed program was:" >&5
8270 cat conftest.$ac_ext >&5
8271 rm -rf conftest*
8272 eval "ac_cv_lib_$ac_lib_var=no"
8274 rm -f conftest*
8275 LIBS="$ac_save_LIBS"
8278 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8279 echo "$ac_t""yes" 1>&6
8280 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8281 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8282 cat >> confdefs.h <<EOF
8283 #define $ac_tr_lib 1
8286 LIBS="-lsec $LIBS"
8288 else
8289 echo "$ac_t""no" 1>&6
8292 for ac_func in getprpwnam
8294 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8295 echo "configure:8296: checking for $ac_func" >&5
8296 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8297 echo $ac_n "(cached) $ac_c" 1>&6
8298 else
8299 cat > conftest.$ac_ext <<EOF
8300 #line 8301 "configure"
8301 #include "confdefs.h"
8302 /* System header to define __stub macros and hopefully few prototypes,
8303 which can conflict with char $ac_func(); below. */
8304 #include <assert.h>
8305 /* Override any gcc2 internal prototype to avoid an error. */
8306 /* We use char because int might match the return type of a gcc2
8307 builtin and then its argument prototype would still apply. */
8308 char $ac_func();
8310 int main() {
8312 /* The GNU C library defines this for functions which it implements
8313 to always fail with ENOSYS. Some functions are actually named
8314 something starting with __ and the normal name is an alias. */
8315 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8316 choke me
8317 #else
8318 $ac_func();
8319 #endif
8321 ; return 0; }
8323 if { (eval echo configure:8324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8324 rm -rf conftest*
8325 eval "ac_cv_func_$ac_func=yes"
8326 else
8327 echo "configure: failed program was:" >&5
8328 cat conftest.$ac_ext >&5
8329 rm -rf conftest*
8330 eval "ac_cv_func_$ac_func=no"
8332 rm -f conftest*
8335 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8336 echo "$ac_t""yes" 1>&6
8337 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8338 cat >> confdefs.h <<EOF
8339 #define $ac_tr_func 1
8342 else
8343 echo "$ac_t""no" 1>&6
8345 done
8348 esac
8351 # this bit needs to be modified for each OS that is suported by
8352 # smbwrapper. You need to specify how to created a shared library and
8353 # how to compile C code to produce PIC object files
8355 # these are the defaults, good for lots of systems
8356 HOST_OS="$host_os"
8357 LDSHFLAGS="-shared"
8358 SHLD="\${CC}"
8359 PICFLAG=""
8360 PICSUFFIX="po"
8361 POBAD_CC="#"
8362 SHLIBEXT="so"
8363 BLDSHARED="false"
8365 # and these are for particular systems
8366 case "$host_os" in
8367 *linux*) cat >> confdefs.h <<\EOF
8368 #define LINUX 1
8371 BLDSHARED="true"
8372 LDSHFLAGS="-shared"
8373 PICFLAG="-fPIC"
8375 *solaris*) cat >> confdefs.h <<\EOF
8376 #define SUNOS5 1
8379 BLDSHARED="true"
8380 LDSHFLAGS="-Wl,-h,\$@.so -G"
8381 if test "${ac_cv_prog_CC}" = "gcc"; then
8382 PICFLAG="-fPIC"
8383 else
8384 PICFLAG="-KPIC"
8385 POBAD_CC=""
8386 PICSUFFIX="po.o"
8389 *sunos*) cat >> confdefs.h <<\EOF
8390 #define SUNOS4 1
8393 BLDSHARED="true"
8394 LDSHFLAGS="-Wl,-h,\$@ -G"
8395 PICFLAG="-KPIC" # Is this correct for SunOS
8397 *bsd*) BLDSHARED="true"
8398 LDSHFLAGS="-Wl,-soname,\$@ -shared"
8399 PICFLAG="-fPIC"
8401 *irix*) cat >> confdefs.h <<\EOF
8402 #define IRIX 1
8405 case "$host_os" in
8406 *irix6*) cat >> confdefs.h <<\EOF
8407 #define IRIX6 1
8411 esac
8412 ATTEMPT_WRAP32_BUILD=yes
8413 BLDSHARED="true"
8414 LDSHFLAGS="-Wl,-soname,\$@ -shared"
8415 if test "${ac_cv_prog_CC}" = "gcc"; then
8416 PICFLAG="-fPIC"
8417 else
8418 PICFLAG="-KPIC"
8421 *aix*) cat >> confdefs.h <<\EOF
8422 #define AIX 1
8425 BLDSHARED="true"
8426 LDSHFLAGS="-Wl,-bexpall,-bM:SRE,-bnoentry"
8427 PICFLAG="-O2 -qmaxmem=6000"
8429 *hpux*) cat >> confdefs.h <<\EOF
8430 #define HPUX 1
8433 SHLIBEXT="sl"
8434 # Use special PIC flags for the native HP-UX compiler.
8435 if test $ac_cv_prog_cc_Ae = yes; then
8436 #BLDSHARED="true"
8437 LDSHFLAGS="-b -z +h \$@"
8438 PICFLAG="+z"
8441 *qnx*) cat >> confdefs.h <<\EOF
8442 #define QNX 1
8445 *osf*) cat >> confdefs.h <<\EOF
8446 #define OSF1 1
8449 BLDSHARED="true"
8450 LDSHFLAGS="-Wl,-soname,\$@ -shared"
8451 PICFLAG="-fPIC"
8453 *sco*) cat >> confdefs.h <<\EOF
8454 #define SCO 1
8457 *unixware*) cat >> confdefs.h <<\EOF
8458 #define UNIXWARE 1
8461 BLDSHARED="true"
8462 LDSHFLAGS="-Wl,-soname,\$@ -shared"
8463 PICFLAG="-KPIC"
8465 *next2*) cat >> confdefs.h <<\EOF
8466 #define NEXT2 1
8469 *dgux*) # Extract the first word of "groff", so it can be a program name with args.
8470 set dummy groff; ac_word=$2
8471 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8472 echo "configure:8473: checking for $ac_word" >&5
8473 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
8474 echo $ac_n "(cached) $ac_c" 1>&6
8475 else
8476 if test -n "$ROFF"; then
8477 ac_cv_prog_ROFF="$ROFF" # Let the user override the test.
8478 else
8479 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8480 ac_dummy="$PATH"
8481 for ac_dir in $ac_dummy; do
8482 test -z "$ac_dir" && ac_dir=.
8483 if test -f $ac_dir/$ac_word; then
8484 ac_cv_prog_ROFF="groff -etpsR -Tascii -man"
8485 break
8487 done
8488 IFS="$ac_save_ifs"
8491 ROFF="$ac_cv_prog_ROFF"
8492 if test -n "$ROFF"; then
8493 echo "$ac_t""$ROFF" 1>&6
8494 else
8495 echo "$ac_t""no" 1>&6
8498 *sysv4*)
8499 case "$host" in
8500 *-univel-*) if test "$GCC" != yes ; then
8501 cat >> confdefs.h <<\EOF
8502 #define HAVE_MEMSET 1
8506 LDSHFLAGS="-G"
8508 *mips-sni-sysv4*) cat >> confdefs.h <<\EOF
8509 #define RELIANTUNIX 1
8512 esac
8514 *sysv5*)
8515 if test "$GCC" != yes ; then
8516 cat >> confdefs.h <<\EOF
8517 #define HAVE_MEMSET 1
8521 LDSHFLAGS="-G"
8523 esac
8525 # this updates our target list if we can build shared libs
8526 if test $BLDSHARED = true; then
8527 LIBSMBCLIENT_SHARED=bin/libsmbclient.$SHLIBEXT
8528 else
8529 LIBSMBCLIENT_SHARED=
8532 ################
8534 echo $ac_n "checking for long long""... $ac_c" 1>&6
8535 echo "configure:8536: checking for long long" >&5
8536 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
8537 echo $ac_n "(cached) $ac_c" 1>&6
8538 else
8540 if test "$cross_compiling" = yes; then
8541 samba_cv_have_longlong=cross
8542 else
8543 cat > conftest.$ac_ext <<EOF
8544 #line 8545 "configure"
8545 #include "confdefs.h"
8546 #include <stdio.h>
8547 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
8549 if { (eval echo configure:8550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8550 then
8551 samba_cv_have_longlong=yes
8552 else
8553 echo "configure: failed program was:" >&5
8554 cat conftest.$ac_ext >&5
8555 rm -fr conftest*
8556 samba_cv_have_longlong=no
8558 rm -fr conftest*
8563 echo "$ac_t""$samba_cv_have_longlong" 1>&6
8564 if test x"$samba_cv_have_longlong" = x"yes"; then
8565 cat >> confdefs.h <<\EOF
8566 #define HAVE_LONGLONG 1
8572 # Check if the compiler supports the LL prefix on long long integers.
8573 # AIX needs this.
8575 echo $ac_n "checking for LL suffix on long long integers""... $ac_c" 1>&6
8576 echo "configure:8577: checking for LL suffix on long long integers" >&5
8577 if eval "test \"`echo '$''{'samba_cv_compiler_supports_ll'+set}'`\" = set"; then
8578 echo $ac_n "(cached) $ac_c" 1>&6
8579 else
8581 cat > conftest.$ac_ext <<EOF
8582 #line 8583 "configure"
8583 #include "confdefs.h"
8584 #include <stdio.h>
8585 int main() {
8586 long long i = 0x8000000000LL
8587 ; return 0; }
8589 if { (eval echo configure:8590: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8590 rm -rf conftest*
8591 samba_cv_compiler_supports_ll=yes
8592 else
8593 echo "configure: failed program was:" >&5
8594 cat conftest.$ac_ext >&5
8595 rm -rf conftest*
8596 samba_cv_compiler_supports_ll=no
8598 rm -f conftest*
8601 echo "$ac_t""$samba_cv_compiler_supports_ll" 1>&6
8602 if test x"$samba_cv_compiler_supports_ll" = x"yes"; then
8603 cat >> confdefs.h <<\EOF
8604 #define COMPILER_SUPPORTS_LL 1
8610 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
8611 echo "configure:8612: checking for 64 bit off_t" >&5
8612 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
8613 echo $ac_n "(cached) $ac_c" 1>&6
8614 else
8616 if test "$cross_compiling" = yes; then
8617 samba_cv_SIZEOF_OFF_T=cross
8618 else
8619 cat > conftest.$ac_ext <<EOF
8620 #line 8621 "configure"
8621 #include "confdefs.h"
8622 #include <stdio.h>
8623 #include <sys/stat.h>
8624 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
8626 if { (eval echo configure:8627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8627 then
8628 samba_cv_SIZEOF_OFF_T=yes
8629 else
8630 echo "configure: failed program was:" >&5
8631 cat conftest.$ac_ext >&5
8632 rm -fr conftest*
8633 samba_cv_SIZEOF_OFF_T=no
8635 rm -fr conftest*
8640 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
8641 if test x"$samba_cv_SIZEOF_OFF_T" = x"yes"; then
8642 cat >> confdefs.h <<\EOF
8643 #define SIZEOF_OFF_T 8
8648 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
8649 echo "configure:8650: checking for off64_t" >&5
8650 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
8651 echo $ac_n "(cached) $ac_c" 1>&6
8652 else
8654 if test "$cross_compiling" = yes; then
8655 samba_cv_HAVE_OFF64_T=cross
8656 else
8657 cat > conftest.$ac_ext <<EOF
8658 #line 8659 "configure"
8659 #include "confdefs.h"
8661 #if defined(HAVE_UNISTD_H)
8662 #include <unistd.h>
8663 #endif
8664 #include <stdio.h>
8665 #include <sys/stat.h>
8666 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8668 if { (eval echo configure:8669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8669 then
8670 samba_cv_HAVE_OFF64_T=yes
8671 else
8672 echo "configure: failed program was:" >&5
8673 cat conftest.$ac_ext >&5
8674 rm -fr conftest*
8675 samba_cv_HAVE_OFF64_T=no
8677 rm -fr conftest*
8682 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
8683 if test x"$samba_cv_HAVE_OFF64_T" = x"yes"; then
8684 cat >> confdefs.h <<\EOF
8685 #define HAVE_OFF64_T 1
8690 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
8691 echo "configure:8692: checking for 64 bit ino_t" >&5
8692 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
8693 echo $ac_n "(cached) $ac_c" 1>&6
8694 else
8696 if test "$cross_compiling" = yes; then
8697 samba_cv_SIZEOF_INO_T=cross
8698 else
8699 cat > conftest.$ac_ext <<EOF
8700 #line 8701 "configure"
8701 #include "confdefs.h"
8702 #include <stdio.h>
8703 #include <sys/stat.h>
8704 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
8706 if { (eval echo configure:8707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8707 then
8708 samba_cv_SIZEOF_INO_T=yes
8709 else
8710 echo "configure: failed program was:" >&5
8711 cat conftest.$ac_ext >&5
8712 rm -fr conftest*
8713 samba_cv_SIZEOF_INO_T=no
8715 rm -fr conftest*
8720 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
8721 if test x"$samba_cv_SIZEOF_INO_T" = x"yes"; then
8722 cat >> confdefs.h <<\EOF
8723 #define SIZEOF_INO_T 8
8728 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
8729 echo "configure:8730: checking for ino64_t" >&5
8730 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
8731 echo $ac_n "(cached) $ac_c" 1>&6
8732 else
8734 if test "$cross_compiling" = yes; then
8735 samba_cv_HAVE_INO64_T=cross
8736 else
8737 cat > conftest.$ac_ext <<EOF
8738 #line 8739 "configure"
8739 #include "confdefs.h"
8741 #if defined(HAVE_UNISTD_H)
8742 #include <unistd.h>
8743 #endif
8744 #include <stdio.h>
8745 #include <sys/stat.h>
8746 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8748 if { (eval echo configure:8749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8749 then
8750 samba_cv_HAVE_INO64_T=yes
8751 else
8752 echo "configure: failed program was:" >&5
8753 cat conftest.$ac_ext >&5
8754 rm -fr conftest*
8755 samba_cv_HAVE_INO64_T=no
8757 rm -fr conftest*
8762 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
8763 if test x"$samba_cv_HAVE_INO64_T" = x"yes"; then
8764 cat >> confdefs.h <<\EOF
8765 #define HAVE_INO64_T 1
8770 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
8771 echo "configure:8772: checking for struct dirent64" >&5
8772 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
8773 echo $ac_n "(cached) $ac_c" 1>&6
8774 else
8776 cat > conftest.$ac_ext <<EOF
8777 #line 8778 "configure"
8778 #include "confdefs.h"
8780 #if defined(HAVE_UNISTD_H)
8781 #include <unistd.h>
8782 #endif
8783 #include <sys/types.h>
8784 #include <dirent.h>
8785 int main() {
8786 struct dirent64 de;
8787 ; return 0; }
8789 if { (eval echo configure:8790: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8790 rm -rf conftest*
8791 samba_cv_HAVE_STRUCT_DIRENT64=yes
8792 else
8793 echo "configure: failed program was:" >&5
8794 cat conftest.$ac_ext >&5
8795 rm -rf conftest*
8796 samba_cv_HAVE_STRUCT_DIRENT64=no
8798 rm -f conftest*
8801 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
8802 if test x"$samba_cv_HAVE_STRUCT_DIRENT64" = x"yes"; then
8803 cat >> confdefs.h <<\EOF
8804 #define HAVE_STRUCT_DIRENT64 1
8809 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
8810 echo "configure:8811: checking for unsigned char" >&5
8811 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
8812 echo $ac_n "(cached) $ac_c" 1>&6
8813 else
8815 if test "$cross_compiling" = yes; then
8816 samba_cv_HAVE_UNSIGNED_CHAR=cross
8817 else
8818 cat > conftest.$ac_ext <<EOF
8819 #line 8820 "configure"
8820 #include "confdefs.h"
8821 #include <stdio.h>
8822 main() { char c; c=250; exit((c > 0)?0:1); }
8824 if { (eval echo configure:8825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8825 then
8826 samba_cv_HAVE_UNSIGNED_CHAR=yes
8827 else
8828 echo "configure: failed program was:" >&5
8829 cat conftest.$ac_ext >&5
8830 rm -fr conftest*
8831 samba_cv_HAVE_UNSIGNED_CHAR=no
8833 rm -fr conftest*
8838 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
8839 if test x"$samba_cv_HAVE_UNSIGNED_CHAR" = x"yes"; then
8840 cat >> confdefs.h <<\EOF
8841 #define HAVE_UNSIGNED_CHAR 1
8846 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
8847 echo "configure:8848: checking for sin_len in sock" >&5
8848 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
8849 echo $ac_n "(cached) $ac_c" 1>&6
8850 else
8852 cat > conftest.$ac_ext <<EOF
8853 #line 8854 "configure"
8854 #include "confdefs.h"
8855 #include <sys/types.h>
8856 #include <sys/socket.h>
8857 #include <netinet/in.h>
8858 int main() {
8859 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
8860 ; return 0; }
8862 if { (eval echo configure:8863: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8863 rm -rf conftest*
8864 samba_cv_HAVE_SOCK_SIN_LEN=yes
8865 else
8866 echo "configure: failed program was:" >&5
8867 cat conftest.$ac_ext >&5
8868 rm -rf conftest*
8869 samba_cv_HAVE_SOCK_SIN_LEN=no
8871 rm -f conftest*
8874 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
8875 if test x"$samba_cv_HAVE_SOCK_SIN_LEN" = x"yes"; then
8876 cat >> confdefs.h <<\EOF
8877 #define HAVE_SOCK_SIN_LEN 1
8882 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
8883 echo "configure:8884: checking whether seekdir returns void" >&5
8884 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
8885 echo $ac_n "(cached) $ac_c" 1>&6
8886 else
8888 cat > conftest.$ac_ext <<EOF
8889 #line 8890 "configure"
8890 #include "confdefs.h"
8891 #include <sys/types.h>
8892 #include <dirent.h>
8893 void seekdir(DIR *d, long loc) { return; }
8894 int main() {
8895 return 0;
8896 ; return 0; }
8898 if { (eval echo configure:8899: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8899 rm -rf conftest*
8900 samba_cv_SEEKDIR_RETURNS_VOID=yes
8901 else
8902 echo "configure: failed program was:" >&5
8903 cat conftest.$ac_ext >&5
8904 rm -rf conftest*
8905 samba_cv_SEEKDIR_RETURNS_VOID=no
8907 rm -f conftest*
8910 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
8911 if test x"$samba_cv_SEEKDIR_RETURNS_VOID" = x"yes"; then
8912 cat >> confdefs.h <<\EOF
8913 #define SEEKDIR_RETURNS_VOID 1
8918 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
8919 echo "configure:8920: checking for __FILE__ macro" >&5
8920 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
8921 echo $ac_n "(cached) $ac_c" 1>&6
8922 else
8924 cat > conftest.$ac_ext <<EOF
8925 #line 8926 "configure"
8926 #include "confdefs.h"
8927 #include <stdio.h>
8928 int main() {
8929 printf("%s\n", __FILE__);
8930 ; return 0; }
8932 if { (eval echo configure:8933: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8933 rm -rf conftest*
8934 samba_cv_HAVE_FILE_MACRO=yes
8935 else
8936 echo "configure: failed program was:" >&5
8937 cat conftest.$ac_ext >&5
8938 rm -rf conftest*
8939 samba_cv_HAVE_FILE_MACRO=no
8941 rm -f conftest*
8944 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
8945 if test x"$samba_cv_HAVE_FILE_MACRO" = x"yes"; then
8946 cat >> confdefs.h <<\EOF
8947 #define HAVE_FILE_MACRO 1
8952 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
8953 echo "configure:8954: checking for __FUNCTION__ macro" >&5
8954 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
8955 echo $ac_n "(cached) $ac_c" 1>&6
8956 else
8958 cat > conftest.$ac_ext <<EOF
8959 #line 8960 "configure"
8960 #include "confdefs.h"
8961 #include <stdio.h>
8962 int main() {
8963 printf("%s\n", __FUNCTION__);
8964 ; return 0; }
8966 if { (eval echo configure:8967: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8967 rm -rf conftest*
8968 samba_cv_HAVE_FUNCTION_MACRO=yes
8969 else
8970 echo "configure: failed program was:" >&5
8971 cat conftest.$ac_ext >&5
8972 rm -rf conftest*
8973 samba_cv_HAVE_FUNCTION_MACRO=no
8975 rm -f conftest*
8978 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
8979 if test x"$samba_cv_HAVE_FUNCTION_MACRO" = x"yes"; then
8980 cat >> confdefs.h <<\EOF
8981 #define HAVE_FUNCTION_MACRO 1
8986 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
8987 echo "configure:8988: checking if gettimeofday takes tz argument" >&5
8988 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
8989 echo $ac_n "(cached) $ac_c" 1>&6
8990 else
8992 if test "$cross_compiling" = yes; then
8993 samba_cv_HAVE_GETTIMEOFDAY_TZ=cross
8994 else
8995 cat > conftest.$ac_ext <<EOF
8996 #line 8997 "configure"
8997 #include "confdefs.h"
8999 #include <sys/time.h>
9000 #include <unistd.h>
9001 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
9003 if { (eval echo configure:9004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9004 then
9005 samba_cv_HAVE_GETTIMEOFDAY_TZ=yes
9006 else
9007 echo "configure: failed program was:" >&5
9008 cat conftest.$ac_ext >&5
9009 rm -fr conftest*
9010 samba_cv_HAVE_GETTIMEOFDAY_TZ=no
9012 rm -fr conftest*
9017 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
9018 if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
9019 cat >> confdefs.h <<\EOF
9020 #define HAVE_GETTIMEOFDAY_TZ 1
9025 echo $ac_n "checking for C99 vsnprintf""... $ac_c" 1>&6
9026 echo "configure:9027: checking for C99 vsnprintf" >&5
9027 if eval "test \"`echo '$''{'samba_cv_HAVE_C99_VSNPRINTF'+set}'`\" = set"; then
9028 echo $ac_n "(cached) $ac_c" 1>&6
9029 else
9031 if test "$cross_compiling" = yes; then
9032 samba_cv_HAVE_C99_VSNPRINTF=cross
9033 else
9034 cat > conftest.$ac_ext <<EOF
9035 #line 9036 "configure"
9036 #include "confdefs.h"
9038 #include <sys/types.h>
9039 #include <stdarg.h>
9040 void foo(const char *format, ...) {
9041 va_list ap;
9042 int len;
9043 char buf[5];
9045 va_start(ap, format);
9046 len = vsnprintf(0, 0, format, ap);
9047 va_end(ap);
9048 if (len != 5) exit(1);
9050 if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
9052 exit(0);
9054 main() { foo("hello"); }
9057 if { (eval echo configure:9058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9058 then
9059 samba_cv_HAVE_C99_VSNPRINTF=yes
9060 else
9061 echo "configure: failed program was:" >&5
9062 cat conftest.$ac_ext >&5
9063 rm -fr conftest*
9064 samba_cv_HAVE_C99_VSNPRINTF=no
9066 rm -fr conftest*
9071 echo "$ac_t""$samba_cv_HAVE_C99_VSNPRINTF" 1>&6
9072 if test x"$samba_cv_HAVE_C99_VSNPRINTF" = x"yes"; then
9073 cat >> confdefs.h <<\EOF
9074 #define HAVE_C99_VSNPRINTF 1
9079 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
9080 echo "configure:9081: checking for broken readdir" >&5
9081 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
9082 echo $ac_n "(cached) $ac_c" 1>&6
9083 else
9085 if test "$cross_compiling" = yes; then
9086 samba_cv_HAVE_BROKEN_READDIR=cross
9087 else
9088 cat > conftest.$ac_ext <<EOF
9089 #line 9090 "configure"
9090 #include "confdefs.h"
9091 #include <sys/types.h>
9092 #include <dirent.h>
9093 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
9094 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
9095 di->d_name[0] == 0) exit(0); exit(1);}
9097 if { (eval echo configure:9098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9098 then
9099 samba_cv_HAVE_BROKEN_READDIR=yes
9100 else
9101 echo "configure: failed program was:" >&5
9102 cat conftest.$ac_ext >&5
9103 rm -fr conftest*
9104 samba_cv_HAVE_BROKEN_READDIR=no
9106 rm -fr conftest*
9111 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
9112 if test x"$samba_cv_HAVE_BROKEN_READDIR" = x"yes"; then
9113 cat >> confdefs.h <<\EOF
9114 #define HAVE_BROKEN_READDIR 1
9119 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
9120 echo "configure:9121: checking for utimbuf" >&5
9121 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
9122 echo $ac_n "(cached) $ac_c" 1>&6
9123 else
9125 cat > conftest.$ac_ext <<EOF
9126 #line 9127 "configure"
9127 #include "confdefs.h"
9128 #include <sys/types.h>
9129 #include <utime.h>
9130 int main() {
9131 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
9132 ; return 0; }
9134 if { (eval echo configure:9135: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9135 rm -rf conftest*
9136 samba_cv_HAVE_UTIMBUF=yes
9137 else
9138 echo "configure: failed program was:" >&5
9139 cat conftest.$ac_ext >&5
9140 rm -rf conftest*
9141 samba_cv_HAVE_UTIMBUF=no
9143 rm -f conftest*
9146 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
9147 if test x"$samba_cv_HAVE_UTIMBUF" = x"yes"; then
9148 cat >> confdefs.h <<\EOF
9149 #define HAVE_UTIMBUF 1
9155 for ac_func in pututline pututxline updwtmp updwtmpx getutmpx
9157 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9158 echo "configure:9159: checking for $ac_func" >&5
9159 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9160 echo $ac_n "(cached) $ac_c" 1>&6
9161 else
9162 cat > conftest.$ac_ext <<EOF
9163 #line 9164 "configure"
9164 #include "confdefs.h"
9165 /* System header to define __stub macros and hopefully few prototypes,
9166 which can conflict with char $ac_func(); below. */
9167 #include <assert.h>
9168 /* Override any gcc2 internal prototype to avoid an error. */
9169 /* We use char because int might match the return type of a gcc2
9170 builtin and then its argument prototype would still apply. */
9171 char $ac_func();
9173 int main() {
9175 /* The GNU C library defines this for functions which it implements
9176 to always fail with ENOSYS. Some functions are actually named
9177 something starting with __ and the normal name is an alias. */
9178 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9179 choke me
9180 #else
9181 $ac_func();
9182 #endif
9184 ; return 0; }
9186 if { (eval echo configure:9187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9187 rm -rf conftest*
9188 eval "ac_cv_func_$ac_func=yes"
9189 else
9190 echo "configure: failed program was:" >&5
9191 cat conftest.$ac_ext >&5
9192 rm -rf conftest*
9193 eval "ac_cv_func_$ac_func=no"
9195 rm -f conftest*
9198 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9199 echo "$ac_t""yes" 1>&6
9200 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9201 cat >> confdefs.h <<EOF
9202 #define $ac_tr_func 1
9205 else
9206 echo "$ac_t""no" 1>&6
9208 done
9211 echo $ac_n "checking for ut_name in utmp""... $ac_c" 1>&6
9212 echo "configure:9213: checking for ut_name in utmp" >&5
9213 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_NAME'+set}'`\" = set"; then
9214 echo $ac_n "(cached) $ac_c" 1>&6
9215 else
9217 cat > conftest.$ac_ext <<EOF
9218 #line 9219 "configure"
9219 #include "confdefs.h"
9220 #include <sys/types.h>
9221 #include <utmp.h>
9222 int main() {
9223 struct utmp ut; ut.ut_name[0] = 'a';
9224 ; return 0; }
9226 if { (eval echo configure:9227: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9227 rm -rf conftest*
9228 samba_cv_HAVE_UT_UT_NAME=yes
9229 else
9230 echo "configure: failed program was:" >&5
9231 cat conftest.$ac_ext >&5
9232 rm -rf conftest*
9233 samba_cv_HAVE_UT_UT_NAME=no
9235 rm -f conftest*
9238 echo "$ac_t""$samba_cv_HAVE_UT_UT_NAME" 1>&6
9239 if test x"$samba_cv_HAVE_UT_UT_NAME" = x"yes"; then
9240 cat >> confdefs.h <<\EOF
9241 #define HAVE_UT_UT_NAME 1
9246 echo $ac_n "checking for ut_user in utmp""... $ac_c" 1>&6
9247 echo "configure:9248: checking for ut_user in utmp" >&5
9248 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_USER'+set}'`\" = set"; then
9249 echo $ac_n "(cached) $ac_c" 1>&6
9250 else
9252 cat > conftest.$ac_ext <<EOF
9253 #line 9254 "configure"
9254 #include "confdefs.h"
9255 #include <sys/types.h>
9256 #include <utmp.h>
9257 int main() {
9258 struct utmp ut; ut.ut_user[0] = 'a';
9259 ; return 0; }
9261 if { (eval echo configure:9262: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9262 rm -rf conftest*
9263 samba_cv_HAVE_UT_UT_USER=yes
9264 else
9265 echo "configure: failed program was:" >&5
9266 cat conftest.$ac_ext >&5
9267 rm -rf conftest*
9268 samba_cv_HAVE_UT_UT_USER=no
9270 rm -f conftest*
9273 echo "$ac_t""$samba_cv_HAVE_UT_UT_USER" 1>&6
9274 if test x"$samba_cv_HAVE_UT_UT_USER" = x"yes"; then
9275 cat >> confdefs.h <<\EOF
9276 #define HAVE_UT_UT_USER 1
9281 echo $ac_n "checking for ut_id in utmp""... $ac_c" 1>&6
9282 echo "configure:9283: checking for ut_id in utmp" >&5
9283 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ID'+set}'`\" = set"; then
9284 echo $ac_n "(cached) $ac_c" 1>&6
9285 else
9287 cat > conftest.$ac_ext <<EOF
9288 #line 9289 "configure"
9289 #include "confdefs.h"
9290 #include <sys/types.h>
9291 #include <utmp.h>
9292 int main() {
9293 struct utmp ut; ut.ut_id[0] = 'a';
9294 ; return 0; }
9296 if { (eval echo configure:9297: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9297 rm -rf conftest*
9298 samba_cv_HAVE_UT_UT_ID=yes
9299 else
9300 echo "configure: failed program was:" >&5
9301 cat conftest.$ac_ext >&5
9302 rm -rf conftest*
9303 samba_cv_HAVE_UT_UT_ID=no
9305 rm -f conftest*
9308 echo "$ac_t""$samba_cv_HAVE_UT_UT_ID" 1>&6
9309 if test x"$samba_cv_HAVE_UT_UT_ID" = x"yes"; then
9310 cat >> confdefs.h <<\EOF
9311 #define HAVE_UT_UT_ID 1
9316 echo $ac_n "checking for ut_host in utmp""... $ac_c" 1>&6
9317 echo "configure:9318: checking for ut_host in utmp" >&5
9318 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_HOST'+set}'`\" = set"; then
9319 echo $ac_n "(cached) $ac_c" 1>&6
9320 else
9322 cat > conftest.$ac_ext <<EOF
9323 #line 9324 "configure"
9324 #include "confdefs.h"
9325 #include <sys/types.h>
9326 #include <utmp.h>
9327 int main() {
9328 struct utmp ut; ut.ut_host[0] = 'a';
9329 ; return 0; }
9331 if { (eval echo configure:9332: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9332 rm -rf conftest*
9333 samba_cv_HAVE_UT_UT_HOST=yes
9334 else
9335 echo "configure: failed program was:" >&5
9336 cat conftest.$ac_ext >&5
9337 rm -rf conftest*
9338 samba_cv_HAVE_UT_UT_HOST=no
9340 rm -f conftest*
9343 echo "$ac_t""$samba_cv_HAVE_UT_UT_HOST" 1>&6
9344 if test x"$samba_cv_HAVE_UT_UT_HOST" = x"yes"; then
9345 cat >> confdefs.h <<\EOF
9346 #define HAVE_UT_UT_HOST 1
9351 echo $ac_n "checking for ut_time in utmp""... $ac_c" 1>&6
9352 echo "configure:9353: checking for ut_time in utmp" >&5
9353 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TIME'+set}'`\" = set"; then
9354 echo $ac_n "(cached) $ac_c" 1>&6
9355 else
9357 cat > conftest.$ac_ext <<EOF
9358 #line 9359 "configure"
9359 #include "confdefs.h"
9360 #include <sys/types.h>
9361 #include <utmp.h>
9362 int main() {
9363 struct utmp ut; time_t t; ut.ut_time = t;
9364 ; return 0; }
9366 if { (eval echo configure:9367: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9367 rm -rf conftest*
9368 samba_cv_HAVE_UT_UT_TIME=yes
9369 else
9370 echo "configure: failed program was:" >&5
9371 cat conftest.$ac_ext >&5
9372 rm -rf conftest*
9373 samba_cv_HAVE_UT_UT_TIME=no
9375 rm -f conftest*
9378 echo "$ac_t""$samba_cv_HAVE_UT_UT_TIME" 1>&6
9379 if test x"$samba_cv_HAVE_UT_UT_TIME" = x"yes"; then
9380 cat >> confdefs.h <<\EOF
9381 #define HAVE_UT_UT_TIME 1
9386 echo $ac_n "checking for ut_tv in utmp""... $ac_c" 1>&6
9387 echo "configure:9388: checking for ut_tv in utmp" >&5
9388 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TV'+set}'`\" = set"; then
9389 echo $ac_n "(cached) $ac_c" 1>&6
9390 else
9392 cat > conftest.$ac_ext <<EOF
9393 #line 9394 "configure"
9394 #include "confdefs.h"
9395 #include <sys/types.h>
9396 #include <utmp.h>
9397 int main() {
9398 struct utmp ut; struct timeval tv; ut.ut_tv = tv;
9399 ; return 0; }
9401 if { (eval echo configure:9402: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9402 rm -rf conftest*
9403 samba_cv_HAVE_UT_UT_TV=yes
9404 else
9405 echo "configure: failed program was:" >&5
9406 cat conftest.$ac_ext >&5
9407 rm -rf conftest*
9408 samba_cv_HAVE_UT_UT_TV=no
9410 rm -f conftest*
9413 echo "$ac_t""$samba_cv_HAVE_UT_UT_TV" 1>&6
9414 if test x"$samba_cv_HAVE_UT_UT_TV" = x"yes"; then
9415 cat >> confdefs.h <<\EOF
9416 #define HAVE_UT_UT_TV 1
9421 echo $ac_n "checking for ut_type in utmp""... $ac_c" 1>&6
9422 echo "configure:9423: checking for ut_type in utmp" >&5
9423 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TYPE'+set}'`\" = set"; then
9424 echo $ac_n "(cached) $ac_c" 1>&6
9425 else
9427 cat > conftest.$ac_ext <<EOF
9428 #line 9429 "configure"
9429 #include "confdefs.h"
9430 #include <sys/types.h>
9431 #include <utmp.h>
9432 int main() {
9433 struct utmp ut; ut.ut_type = 0;
9434 ; return 0; }
9436 if { (eval echo configure:9437: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9437 rm -rf conftest*
9438 samba_cv_HAVE_UT_UT_TYPE=yes
9439 else
9440 echo "configure: failed program was:" >&5
9441 cat conftest.$ac_ext >&5
9442 rm -rf conftest*
9443 samba_cv_HAVE_UT_UT_TYPE=no
9445 rm -f conftest*
9448 echo "$ac_t""$samba_cv_HAVE_UT_UT_TYPE" 1>&6
9449 if test x"$samba_cv_HAVE_UT_UT_TYPE" = x"yes"; then
9450 cat >> confdefs.h <<\EOF
9451 #define HAVE_UT_UT_TYPE 1
9456 echo $ac_n "checking for ut_pid in utmp""... $ac_c" 1>&6
9457 echo "configure:9458: checking for ut_pid in utmp" >&5
9458 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_PID'+set}'`\" = set"; then
9459 echo $ac_n "(cached) $ac_c" 1>&6
9460 else
9462 cat > conftest.$ac_ext <<EOF
9463 #line 9464 "configure"
9464 #include "confdefs.h"
9465 #include <sys/types.h>
9466 #include <utmp.h>
9467 int main() {
9468 struct utmp ut; ut.ut_pid = 0;
9469 ; return 0; }
9471 if { (eval echo configure:9472: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9472 rm -rf conftest*
9473 samba_cv_HAVE_UT_UT_PID=yes
9474 else
9475 echo "configure: failed program was:" >&5
9476 cat conftest.$ac_ext >&5
9477 rm -rf conftest*
9478 samba_cv_HAVE_UT_UT_PID=no
9480 rm -f conftest*
9483 echo "$ac_t""$samba_cv_HAVE_UT_UT_PID" 1>&6
9484 if test x"$samba_cv_HAVE_UT_UT_PID" = x"yes"; then
9485 cat >> confdefs.h <<\EOF
9486 #define HAVE_UT_UT_PID 1
9491 echo $ac_n "checking for ut_exit in utmp""... $ac_c" 1>&6
9492 echo "configure:9493: checking for ut_exit in utmp" >&5
9493 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_EXIT'+set}'`\" = set"; then
9494 echo $ac_n "(cached) $ac_c" 1>&6
9495 else
9497 cat > conftest.$ac_ext <<EOF
9498 #line 9499 "configure"
9499 #include "confdefs.h"
9500 #include <sys/types.h>
9501 #include <utmp.h>
9502 int main() {
9503 struct utmp ut; ut.ut_exit.e_exit = 0;
9504 ; return 0; }
9506 if { (eval echo configure:9507: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9507 rm -rf conftest*
9508 samba_cv_HAVE_UT_UT_EXIT=yes
9509 else
9510 echo "configure: failed program was:" >&5
9511 cat conftest.$ac_ext >&5
9512 rm -rf conftest*
9513 samba_cv_HAVE_UT_UT_EXIT=no
9515 rm -f conftest*
9518 echo "$ac_t""$samba_cv_HAVE_UT_UT_EXIT" 1>&6
9519 if test x"$samba_cv_HAVE_UT_UT_EXIT" = x"yes"; then
9520 cat >> confdefs.h <<\EOF
9521 #define HAVE_UT_UT_EXIT 1
9526 echo $ac_n "checking for ut_addr in utmp""... $ac_c" 1>&6
9527 echo "configure:9528: checking for ut_addr in utmp" >&5
9528 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ADDR'+set}'`\" = set"; then
9529 echo $ac_n "(cached) $ac_c" 1>&6
9530 else
9532 cat > conftest.$ac_ext <<EOF
9533 #line 9534 "configure"
9534 #include "confdefs.h"
9535 #include <sys/types.h>
9536 #include <utmp.h>
9537 int main() {
9538 struct utmp ut; ut.ut_addr = 0;
9539 ; return 0; }
9541 if { (eval echo configure:9542: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9542 rm -rf conftest*
9543 samba_cv_HAVE_UT_UT_ADDR=yes
9544 else
9545 echo "configure: failed program was:" >&5
9546 cat conftest.$ac_ext >&5
9547 rm -rf conftest*
9548 samba_cv_HAVE_UT_UT_ADDR=no
9550 rm -f conftest*
9553 echo "$ac_t""$samba_cv_HAVE_UT_UT_ADDR" 1>&6
9554 if test x"$samba_cv_HAVE_UT_UT_ADDR" = x"yes"; then
9555 cat >> confdefs.h <<\EOF
9556 #define HAVE_UT_UT_ADDR 1
9561 if test x$ac_cv_func_pututline = xyes ; then
9562 echo $ac_n "checking whether pututline returns pointer""... $ac_c" 1>&6
9563 echo "configure:9564: checking whether pututline returns pointer" >&5
9564 if eval "test \"`echo '$''{'samba_cv_PUTUTLINE_RETURNS_UTMP'+set}'`\" = set"; then
9565 echo $ac_n "(cached) $ac_c" 1>&6
9566 else
9568 cat > conftest.$ac_ext <<EOF
9569 #line 9570 "configure"
9570 #include "confdefs.h"
9571 #include <sys/types.h>
9572 #include <utmp.h>
9573 int main() {
9574 struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
9575 ; return 0; }
9577 if { (eval echo configure:9578: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9578 rm -rf conftest*
9579 samba_cv_PUTUTLINE_RETURNS_UTMP=yes
9580 else
9581 echo "configure: failed program was:" >&5
9582 cat conftest.$ac_ext >&5
9583 rm -rf conftest*
9584 samba_cv_PUTUTLINE_RETURNS_UTMP=no
9586 rm -f conftest*
9589 echo "$ac_t""$samba_cv_PUTUTLINE_RETURNS_UTMP" 1>&6
9590 if test x"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x"yes"; then
9591 cat >> confdefs.h <<\EOF
9592 #define PUTUTLINE_RETURNS_UTMP 1
9598 echo $ac_n "checking for ut_syslen in utmpx""... $ac_c" 1>&6
9599 echo "configure:9600: checking for ut_syslen in utmpx" >&5
9600 if eval "test \"`echo '$''{'samba_cv_HAVE_UX_UT_SYSLEN'+set}'`\" = set"; then
9601 echo $ac_n "(cached) $ac_c" 1>&6
9602 else
9604 cat > conftest.$ac_ext <<EOF
9605 #line 9606 "configure"
9606 #include "confdefs.h"
9607 #include <sys/types.h>
9608 #include <utmpx.h>
9609 int main() {
9610 struct utmpx ux; ux.ut_syslen = 0;
9611 ; return 0; }
9613 if { (eval echo configure:9614: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9614 rm -rf conftest*
9615 samba_cv_HAVE_UX_UT_SYSLEN=yes
9616 else
9617 echo "configure: failed program was:" >&5
9618 cat conftest.$ac_ext >&5
9619 rm -rf conftest*
9620 samba_cv_HAVE_UX_UT_SYSLEN=no
9622 rm -f conftest*
9625 echo "$ac_t""$samba_cv_HAVE_UX_UT_SYSLEN" 1>&6
9626 if test x"$samba_cv_HAVE_UX_UT_SYSLEN" = x"yes"; then
9627 cat >> confdefs.h <<\EOF
9628 #define HAVE_UX_UT_SYSLEN 1
9634 #################################################
9635 # check for libiconv support
9636 echo $ac_n "checking whether to use libiconv""... $ac_c" 1>&6
9637 echo "configure:9638: checking whether to use libiconv" >&5
9638 # Check whether --with-libiconv or --without-libiconv was given.
9639 if test "${with_libiconv+set}" = set; then
9640 withval="$with_libiconv"
9641 case "$withval" in
9643 echo "$ac_t""no" 1>&6
9646 echo "$ac_t""yes" 1>&6
9647 CFLAGS="$CFLAGS -I$withval/include"
9648 LDFLAGS="$LDFLAGS -L$withval/lib"
9649 echo $ac_n "checking for iconv_open in -liconv""... $ac_c" 1>&6
9650 echo "configure:9651: checking for iconv_open in -liconv" >&5
9651 ac_lib_var=`echo iconv'_'iconv_open | sed 'y%./+-%__p_%'`
9652 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9653 echo $ac_n "(cached) $ac_c" 1>&6
9654 else
9655 ac_save_LIBS="$LIBS"
9656 LIBS="-liconv $LIBS"
9657 cat > conftest.$ac_ext <<EOF
9658 #line 9659 "configure"
9659 #include "confdefs.h"
9660 /* Override any gcc2 internal prototype to avoid an error. */
9661 /* We use char because int might match the return type of a gcc2
9662 builtin and then its argument prototype would still apply. */
9663 char iconv_open();
9665 int main() {
9666 iconv_open()
9667 ; return 0; }
9669 if { (eval echo configure:9670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9670 rm -rf conftest*
9671 eval "ac_cv_lib_$ac_lib_var=yes"
9672 else
9673 echo "configure: failed program was:" >&5
9674 cat conftest.$ac_ext >&5
9675 rm -rf conftest*
9676 eval "ac_cv_lib_$ac_lib_var=no"
9678 rm -f conftest*
9679 LIBS="$ac_save_LIBS"
9682 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9683 echo "$ac_t""yes" 1>&6
9684 ac_tr_lib=HAVE_LIB`echo iconv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9685 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9686 cat >> confdefs.h <<EOF
9687 #define $ac_tr_lib 1
9690 LIBS="-liconv $LIBS"
9692 else
9693 echo "$ac_t""no" 1>&6
9696 cat >> confdefs.h <<EOF
9697 #define WITH_LIBICONV "${withval}"
9701 esac
9702 else
9703 echo "$ac_t""no" 1>&6
9709 ############
9710 # check for iconv in libc
9711 echo $ac_n "checking for working iconv""... $ac_c" 1>&6
9712 echo "configure:9713: checking for working iconv" >&5
9713 if eval "test \"`echo '$''{'samba_cv_HAVE_NATIVE_ICONV'+set}'`\" = set"; then
9714 echo $ac_n "(cached) $ac_c" 1>&6
9715 else
9717 if test "$cross_compiling" = yes; then
9718 samba_cv_HAVE_NATIVE_ICONV=cross
9719 else
9720 cat > conftest.$ac_ext <<EOF
9721 #line 9722 "configure"
9722 #include "confdefs.h"
9724 #include <iconv.h>
9725 main() {
9726 iconv_t cd = iconv_open("ASCII", "UCS-2LE");
9727 if (cd == 0 || cd == (iconv_t)-1) return -1;
9728 return 0;
9732 if { (eval echo configure:9733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9733 then
9734 samba_cv_HAVE_NATIVE_ICONV=yes
9735 else
9736 echo "configure: failed program was:" >&5
9737 cat conftest.$ac_ext >&5
9738 rm -fr conftest*
9739 samba_cv_HAVE_NATIVE_ICONV=no
9741 rm -fr conftest*
9746 echo "$ac_t""$samba_cv_HAVE_NATIVE_ICONV" 1>&6
9747 if test x"$samba_cv_HAVE_NATIVE_ICONV" = x"yes"; then
9748 cat >> confdefs.h <<\EOF
9749 #define HAVE_NATIVE_ICONV 1
9755 echo $ac_n "checking for Linux kernel oplocks""... $ac_c" 1>&6
9756 echo "configure:9757: checking for Linux kernel oplocks" >&5
9757 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_LINUX'+set}'`\" = set"; then
9758 echo $ac_n "(cached) $ac_c" 1>&6
9759 else
9761 if test "$cross_compiling" = yes; then
9762 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=cross
9763 else
9764 cat > conftest.$ac_ext <<EOF
9765 #line 9766 "configure"
9766 #include "confdefs.h"
9768 #include <sys/types.h>
9769 #include <fcntl.h>
9770 #ifndef F_GETLEASE
9771 #define F_GETLEASE 1025
9772 #endif
9773 main() {
9774 int fd = open("/dev/null", O_RDONLY);
9775 return fcntl(fd, F_GETLEASE, 0) == -1;
9779 if { (eval echo configure:9780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9780 then
9781 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=yes
9782 else
9783 echo "configure: failed program was:" >&5
9784 cat conftest.$ac_ext >&5
9785 rm -fr conftest*
9786 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=no
9788 rm -fr conftest*
9793 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" 1>&6
9794 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x"yes"; then
9795 cat >> confdefs.h <<\EOF
9796 #define HAVE_KERNEL_OPLOCKS_LINUX 1
9801 echo $ac_n "checking for kernel change notify support""... $ac_c" 1>&6
9802 echo "configure:9803: checking for kernel change notify support" >&5
9803 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_CHANGE_NOTIFY'+set}'`\" = set"; then
9804 echo $ac_n "(cached) $ac_c" 1>&6
9805 else
9807 if test "$cross_compiling" = yes; then
9808 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=cross
9809 else
9810 cat > conftest.$ac_ext <<EOF
9811 #line 9812 "configure"
9812 #include "confdefs.h"
9814 #include <sys/types.h>
9815 #include <fcntl.h>
9816 #include <signal.h>
9817 #ifndef F_NOTIFY
9818 #define F_NOTIFY 1026
9819 #endif
9820 main() {
9821 exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0);
9825 if { (eval echo configure:9826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9826 then
9827 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=yes
9828 else
9829 echo "configure: failed program was:" >&5
9830 cat conftest.$ac_ext >&5
9831 rm -fr conftest*
9832 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=no
9834 rm -fr conftest*
9839 echo "$ac_t""$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" 1>&6
9840 if test x"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x"yes"; then
9841 cat >> confdefs.h <<\EOF
9842 #define HAVE_KERNEL_CHANGE_NOTIFY 1
9847 echo $ac_n "checking for kernel share modes""... $ac_c" 1>&6
9848 echo "configure:9849: checking for kernel share modes" >&5
9849 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_SHARE_MODES'+set}'`\" = set"; then
9850 echo $ac_n "(cached) $ac_c" 1>&6
9851 else
9853 if test "$cross_compiling" = yes; then
9854 samba_cv_HAVE_KERNEL_SHARE_MODES=cross
9855 else
9856 cat > conftest.$ac_ext <<EOF
9857 #line 9858 "configure"
9858 #include "confdefs.h"
9860 #include <sys/types.h>
9861 #include <fcntl.h>
9862 #include <signal.h>
9863 #include <sys/file.h>
9864 #ifndef LOCK_MAND
9865 #define LOCK_MAND 32
9866 #define LOCK_READ 64
9867 #endif
9868 main() {
9869 exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
9873 if { (eval echo configure:9874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9874 then
9875 samba_cv_HAVE_KERNEL_SHARE_MODES=yes
9876 else
9877 echo "configure: failed program was:" >&5
9878 cat conftest.$ac_ext >&5
9879 rm -fr conftest*
9880 samba_cv_HAVE_KERNEL_SHARE_MODES=no
9882 rm -fr conftest*
9887 echo "$ac_t""$samba_cv_HAVE_KERNEL_SHARE_MODES" 1>&6
9888 if test x"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x"yes"; then
9889 cat >> confdefs.h <<\EOF
9890 #define HAVE_KERNEL_SHARE_MODES 1
9898 echo $ac_n "checking for IRIX kernel oplock type definitions""... $ac_c" 1>&6
9899 echo "configure:9900: checking for IRIX kernel oplock type definitions" >&5
9900 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_IRIX'+set}'`\" = set"; then
9901 echo $ac_n "(cached) $ac_c" 1>&6
9902 else
9904 cat > conftest.$ac_ext <<EOF
9905 #line 9906 "configure"
9906 #include "confdefs.h"
9907 #include <sys/types.h>
9908 #include <fcntl.h>
9909 int main() {
9910 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
9911 ; return 0; }
9913 if { (eval echo configure:9914: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9914 rm -rf conftest*
9915 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=yes
9916 else
9917 echo "configure: failed program was:" >&5
9918 cat conftest.$ac_ext >&5
9919 rm -rf conftest*
9920 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=no
9922 rm -f conftest*
9925 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" 1>&6
9926 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x"yes"; then
9927 cat >> confdefs.h <<\EOF
9928 #define HAVE_KERNEL_OPLOCKS_IRIX 1
9933 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
9934 echo "configure:9935: checking for irix specific capabilities" >&5
9935 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
9936 echo $ac_n "(cached) $ac_c" 1>&6
9937 else
9939 if test "$cross_compiling" = yes; then
9940 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=cross
9941 else
9942 cat > conftest.$ac_ext <<EOF
9943 #line 9944 "configure"
9944 #include "confdefs.h"
9945 #include <sys/types.h>
9946 #include <sys/capability.h>
9947 main() {
9948 cap_t cap;
9949 if ((cap = cap_get_proc()) == NULL)
9950 exit(1);
9951 cap->cap_effective |= CAP_NETWORK_MGT;
9952 cap->cap_inheritable |= CAP_NETWORK_MGT;
9953 cap_set_proc(cap);
9954 exit(0);
9958 if { (eval echo configure:9959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9959 then
9960 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=yes
9961 else
9962 echo "configure: failed program was:" >&5
9963 cat conftest.$ac_ext >&5
9964 rm -fr conftest*
9965 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=no
9967 rm -fr conftest*
9972 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
9973 if test x"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x"yes"; then
9974 cat >> confdefs.h <<\EOF
9975 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
9981 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
9982 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
9985 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9986 echo "configure:9987: checking for int16 typedef included by rpc/rpc.h" >&5
9987 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
9988 echo $ac_n "(cached) $ac_c" 1>&6
9989 else
9991 cat > conftest.$ac_ext <<EOF
9992 #line 9993 "configure"
9993 #include "confdefs.h"
9994 #include <sys/types.h>
9995 #if defined(HAVE_RPC_RPC_H)
9996 #include <rpc/rpc.h>
9997 #endif
9998 int main() {
9999 int16 testvar;
10000 ; return 0; }
10002 if { (eval echo configure:10003: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10003 rm -rf conftest*
10004 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=yes
10005 else
10006 echo "configure: failed program was:" >&5
10007 cat conftest.$ac_ext >&5
10008 rm -rf conftest*
10009 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=no
10011 rm -f conftest*
10014 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
10015 if test x"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x"yes"; then
10016 cat >> confdefs.h <<\EOF
10017 #define HAVE_INT16_FROM_RPC_RPC_H 1
10022 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10023 echo "configure:10024: checking for uint16 typedef included by rpc/rpc.h" >&5
10024 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10025 echo $ac_n "(cached) $ac_c" 1>&6
10026 else
10028 cat > conftest.$ac_ext <<EOF
10029 #line 10030 "configure"
10030 #include "confdefs.h"
10031 #include <sys/types.h>
10032 #if defined(HAVE_RPC_RPC_H)
10033 #include <rpc/rpc.h>
10034 #endif
10035 int main() {
10036 uint16 testvar;
10037 ; return 0; }
10039 if { (eval echo configure:10040: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10040 rm -rf conftest*
10041 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=yes
10042 else
10043 echo "configure: failed program was:" >&5
10044 cat conftest.$ac_ext >&5
10045 rm -rf conftest*
10046 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=no
10048 rm -f conftest*
10051 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
10052 if test x"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x"yes"; then
10053 cat >> confdefs.h <<\EOF
10054 #define HAVE_UINT16_FROM_RPC_RPC_H 1
10059 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10060 echo "configure:10061: checking for int32 typedef included by rpc/rpc.h" >&5
10061 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10062 echo $ac_n "(cached) $ac_c" 1>&6
10063 else
10065 cat > conftest.$ac_ext <<EOF
10066 #line 10067 "configure"
10067 #include "confdefs.h"
10068 #include <sys/types.h>
10069 #if defined(HAVE_RPC_RPC_H)
10070 #include <rpc/rpc.h>
10071 #endif
10072 int main() {
10073 int32 testvar;
10074 ; return 0; }
10076 if { (eval echo configure:10077: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10077 rm -rf conftest*
10078 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=yes
10079 else
10080 echo "configure: failed program was:" >&5
10081 cat conftest.$ac_ext >&5
10082 rm -rf conftest*
10083 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=no
10085 rm -f conftest*
10088 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
10089 if test x"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x"yes"; then
10090 cat >> confdefs.h <<\EOF
10091 #define HAVE_INT32_FROM_RPC_RPC_H 1
10096 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10097 echo "configure:10098: checking for uint32 typedef included by rpc/rpc.h" >&5
10098 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10099 echo $ac_n "(cached) $ac_c" 1>&6
10100 else
10102 cat > conftest.$ac_ext <<EOF
10103 #line 10104 "configure"
10104 #include "confdefs.h"
10105 #include <sys/types.h>
10106 #if defined(HAVE_RPC_RPC_H)
10107 #include <rpc/rpc.h>
10108 #endif
10109 int main() {
10110 uint32 testvar;
10111 ; return 0; }
10113 if { (eval echo configure:10114: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10114 rm -rf conftest*
10115 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=yes
10116 else
10117 echo "configure: failed program was:" >&5
10118 cat conftest.$ac_ext >&5
10119 rm -rf conftest*
10120 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=no
10122 rm -f conftest*
10125 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
10126 if test x"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x"yes"; then
10127 cat >> confdefs.h <<\EOF
10128 #define HAVE_UINT32_FROM_RPC_RPC_H 1
10134 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
10135 echo "configure:10136: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
10136 if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
10137 echo $ac_n "(cached) $ac_c" 1>&6
10138 else
10140 cat > conftest.$ac_ext <<EOF
10141 #line 10142 "configure"
10142 #include "confdefs.h"
10143 #include <sys/types.h>
10144 #ifdef HAVE_SYS_SECURITY_H
10145 #include <sys/security.h>
10146 #include <prot.h>
10147 #endif /* HAVE_SYS_SECURITY_H */
10148 #if defined(HAVE_RPC_RPC_H)
10149 #include <rpc/rpc.h>
10150 #endif
10151 int main() {
10152 int testvar;
10153 ; return 0; }
10155 if { (eval echo configure:10156: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10156 rm -rf conftest*
10157 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=no
10158 else
10159 echo "configure: failed program was:" >&5
10160 cat conftest.$ac_ext >&5
10161 rm -rf conftest*
10162 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=yes
10164 rm -f conftest*
10167 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
10168 if test x"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x"yes"; then
10169 cat >> confdefs.h <<\EOF
10170 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
10175 echo $ac_n "checking for test routines""... $ac_c" 1>&6
10176 echo "configure:10177: checking for test routines" >&5
10177 if test "$cross_compiling" = yes; then
10178 echo "configure: warning: cannot run when cross-compiling" 1>&2
10179 else
10180 cat > conftest.$ac_ext <<EOF
10181 #line 10182 "configure"
10182 #include "confdefs.h"
10183 #include "${srcdir-.}/tests/trivial.c"
10185 if { (eval echo configure:10186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10186 then
10187 echo "$ac_t""yes" 1>&6
10188 else
10189 echo "configure: failed program was:" >&5
10190 cat conftest.$ac_ext >&5
10191 rm -fr conftest*
10192 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
10194 rm -fr conftest*
10198 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
10199 echo "configure:10200: checking for ftruncate extend" >&5
10200 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
10201 echo $ac_n "(cached) $ac_c" 1>&6
10202 else
10204 if test "$cross_compiling" = yes; then
10205 samba_cv_HAVE_FTRUNCATE_EXTEND=cross
10206 else
10207 cat > conftest.$ac_ext <<EOF
10208 #line 10209 "configure"
10209 #include "confdefs.h"
10210 #include "${srcdir-.}/tests/ftruncate.c"
10212 if { (eval echo configure:10213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10213 then
10214 samba_cv_HAVE_FTRUNCATE_EXTEND=yes
10215 else
10216 echo "configure: failed program was:" >&5
10217 cat conftest.$ac_ext >&5
10218 rm -fr conftest*
10219 samba_cv_HAVE_FTRUNCATE_EXTEND=no
10221 rm -fr conftest*
10226 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
10227 if test x"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x"yes"; then
10228 cat >> confdefs.h <<\EOF
10229 #define HAVE_FTRUNCATE_EXTEND 1
10234 echo $ac_n "checking for AF_LOCAL socket support""... $ac_c" 1>&6
10235 echo "configure:10236: checking for AF_LOCAL socket support" >&5
10236 if eval "test \"`echo '$''{'samba_cv_HAVE_WORKING_AF_LOCAL'+set}'`\" = set"; then
10237 echo $ac_n "(cached) $ac_c" 1>&6
10238 else
10240 if test "$cross_compiling" = yes; then
10241 samba_cv_HAVE_WORKING_AF_LOCAL=cross
10242 else
10243 cat > conftest.$ac_ext <<EOF
10244 #line 10245 "configure"
10245 #include "confdefs.h"
10246 #include "${srcdir-.}/tests/unixsock.c"
10248 if { (eval echo configure:10249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10249 then
10250 samba_cv_HAVE_WORKING_AF_LOCAL=yes
10251 else
10252 echo "configure: failed program was:" >&5
10253 cat conftest.$ac_ext >&5
10254 rm -fr conftest*
10255 samba_cv_HAVE_WORKING_AF_LOCAL=no
10257 rm -fr conftest*
10262 echo "$ac_t""$samba_cv_HAVE_WORKING_AF_LOCAL" 1>&6
10263 if test x"$samba_cv_HAVE_WORKING_AF_LOCAL" != xno
10264 then
10265 cat >> confdefs.h <<\EOF
10266 #define HAVE_WORKING_AF_LOCAL 1
10271 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
10272 echo "configure:10273: checking for broken getgroups" >&5
10273 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
10274 echo $ac_n "(cached) $ac_c" 1>&6
10275 else
10277 if test "$cross_compiling" = yes; then
10278 samba_cv_HAVE_BROKEN_GETGROUPS=cross
10279 else
10280 cat > conftest.$ac_ext <<EOF
10281 #line 10282 "configure"
10282 #include "confdefs.h"
10283 #include "${srcdir-.}/tests/getgroups.c"
10285 if { (eval echo configure:10286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10286 then
10287 samba_cv_HAVE_BROKEN_GETGROUPS=yes
10288 else
10289 echo "configure: failed program was:" >&5
10290 cat conftest.$ac_ext >&5
10291 rm -fr conftest*
10292 samba_cv_HAVE_BROKEN_GETGROUPS=no
10294 rm -fr conftest*
10299 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
10300 if test x"$samba_cv_HAVE_BROKEN_GETGROUPS" = x"yes"; then
10301 cat >> confdefs.h <<\EOF
10302 #define HAVE_BROKEN_GETGROUPS 1
10307 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
10308 echo "configure:10309: checking whether getpass should be replaced" >&5
10309 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
10310 echo $ac_n "(cached) $ac_c" 1>&6
10311 else
10313 SAVE_CPPFLAGS="$CPPFLAGS"
10314 CPPFLAGS="$CPPFLAGS -I${srcdir-.}/ -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/smbwrapper"
10315 cat > conftest.$ac_ext <<EOF
10316 #line 10317 "configure"
10317 #include "confdefs.h"
10319 #define REPLACE_GETPASS 1
10320 #define NO_CONFIG_H 1
10321 #define main dont_declare_main
10322 #include "${srcdir-.}/lib/getsmbpass.c"
10323 #undef main
10325 int main() {
10327 ; return 0; }
10329 if { (eval echo configure:10330: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10330 rm -rf conftest*
10331 samba_cv_REPLACE_GETPASS=yes
10332 else
10333 echo "configure: failed program was:" >&5
10334 cat conftest.$ac_ext >&5
10335 rm -rf conftest*
10336 samba_cv_REPLACE_GETPASS=no
10338 rm -f conftest*
10339 CPPFLAGS="$SAVE_CPPFLAGS"
10343 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
10344 if test x"$samba_cv_REPLACE_GETPASS" = x"yes"; then
10345 cat >> confdefs.h <<\EOF
10346 #define REPLACE_GETPASS 1
10351 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
10352 echo "configure:10353: checking for broken inet_ntoa" >&5
10353 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
10354 echo $ac_n "(cached) $ac_c" 1>&6
10355 else
10357 if test "$cross_compiling" = yes; then
10358 samba_cv_REPLACE_INET_NTOA=cross
10359 else
10360 cat > conftest.$ac_ext <<EOF
10361 #line 10362 "configure"
10362 #include "confdefs.h"
10364 #include <stdio.h>
10365 #include <sys/types.h>
10366 #include <netinet/in.h>
10367 #ifdef HAVE_ARPA_INET_H
10368 #include <arpa/inet.h>
10369 #endif
10370 main() { struct in_addr ip; ip.s_addr = 0x12345678;
10371 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
10372 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
10373 exit(1);}
10375 if { (eval echo configure:10376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10376 then
10377 samba_cv_REPLACE_INET_NTOA=yes
10378 else
10379 echo "configure: failed program was:" >&5
10380 cat conftest.$ac_ext >&5
10381 rm -fr conftest*
10382 samba_cv_REPLACE_INET_NTOA=no
10384 rm -fr conftest*
10389 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
10390 if test x"$samba_cv_REPLACE_INET_NTOA" = x"yes"; then
10391 cat >> confdefs.h <<\EOF
10392 #define REPLACE_INET_NTOA 1
10397 echo $ac_n "checking for secure mkstemp""... $ac_c" 1>&6
10398 echo "configure:10399: checking for secure mkstemp" >&5
10399 if eval "test \"`echo '$''{'samba_cv_HAVE_SECURE_MKSTEMP'+set}'`\" = set"; then
10400 echo $ac_n "(cached) $ac_c" 1>&6
10401 else
10403 if test "$cross_compiling" = yes; then
10404 samba_cv_HAVE_SECURE_MKSTEMP=cross
10405 else
10406 cat > conftest.$ac_ext <<EOF
10407 #line 10408 "configure"
10408 #include "confdefs.h"
10409 #include <stdlib.h>
10410 #include <sys/types.h>
10411 #include <sys/stat.h>
10412 #include <unistd.h>
10413 main() {
10414 struct stat st;
10415 char tpl[20]="/tmp/test.XXXXXX";
10416 int fd = mkstemp(tpl);
10417 if (fd == -1) exit(1);
10418 unlink(tpl);
10419 if (fstat(fd, &st) != 0) exit(1);
10420 if ((st.st_mode & 0777) != 0600) exit(1);
10421 exit(0);
10424 if { (eval echo configure:10425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10425 then
10426 samba_cv_HAVE_SECURE_MKSTEMP=yes
10427 else
10428 echo "configure: failed program was:" >&5
10429 cat conftest.$ac_ext >&5
10430 rm -fr conftest*
10431 samba_cv_HAVE_SECURE_MKSTEMP=no
10433 rm -fr conftest*
10438 echo "$ac_t""$samba_cv_HAVE_SECURE_MKSTEMP" 1>&6
10439 if test x"$samba_cv_HAVE_SECURE_MKSTEMP" = x"yes"; then
10440 cat >> confdefs.h <<\EOF
10441 #define HAVE_SECURE_MKSTEMP 1
10446 echo $ac_n "checking for sysconf(_SC_NGROUPS_MAX)""... $ac_c" 1>&6
10447 echo "configure:10448: checking for sysconf(_SC_NGROUPS_MAX)" >&5
10448 if eval "test \"`echo '$''{'samba_cv_SYSCONF_SC_NGROUPS_MAX'+set}'`\" = set"; then
10449 echo $ac_n "(cached) $ac_c" 1>&6
10450 else
10452 if test "$cross_compiling" = yes; then
10453 samba_cv_SYSCONF_SC_NGROUPS_MAX=cross
10454 else
10455 cat > conftest.$ac_ext <<EOF
10456 #line 10457 "configure"
10457 #include "confdefs.h"
10458 #include <unistd.h>
10459 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
10461 if { (eval echo configure:10462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10462 then
10463 samba_cv_SYSCONF_SC_NGROUPS_MAX=yes
10464 else
10465 echo "configure: failed program was:" >&5
10466 cat conftest.$ac_ext >&5
10467 rm -fr conftest*
10468 samba_cv_SYSCONF_SC_NGROUPS_MAX=no
10470 rm -fr conftest*
10475 echo "$ac_t""$samba_cv_SYSCONF_SC_NGROUPS_MAX" 1>&6
10476 if test x"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x"yes"; then
10477 cat >> confdefs.h <<\EOF
10478 #define SYSCONF_SC_NGROUPS_MAX 1
10483 echo $ac_n "checking for root""... $ac_c" 1>&6
10484 echo "configure:10485: checking for root" >&5
10485 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
10486 echo $ac_n "(cached) $ac_c" 1>&6
10487 else
10489 if test "$cross_compiling" = yes; then
10490 samba_cv_HAVE_ROOT=cross
10491 else
10492 cat > conftest.$ac_ext <<EOF
10493 #line 10494 "configure"
10494 #include "confdefs.h"
10495 main() { exit(getuid() != 0); }
10497 if { (eval echo configure:10498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10498 then
10499 samba_cv_HAVE_ROOT=yes
10500 else
10501 echo "configure: failed program was:" >&5
10502 cat conftest.$ac_ext >&5
10503 rm -fr conftest*
10504 samba_cv_HAVE_ROOT=no
10506 rm -fr conftest*
10511 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
10512 if test x"$samba_cv_HAVE_ROOT" = x"yes"; then
10513 cat >> confdefs.h <<\EOF
10514 #define HAVE_ROOT 1
10517 else
10518 echo "configure: warning: running as non-root will disable some tests" 1>&2
10521 ##################
10522 # look for a method of finding the list of network interfaces
10523 iface=no;
10524 echo $ac_n "checking for iface AIX""... $ac_c" 1>&6
10525 echo "configure:10526: checking for iface AIX" >&5
10526 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_AIX'+set}'`\" = set"; then
10527 echo $ac_n "(cached) $ac_c" 1>&6
10528 else
10530 if test "$cross_compiling" = yes; then
10531 samba_cv_HAVE_IFACE_AIX=cross
10532 else
10533 cat > conftest.$ac_ext <<EOF
10534 #line 10535 "configure"
10535 #include "confdefs.h"
10537 #define HAVE_IFACE_AIX 1
10538 #define AUTOCONF_TEST 1
10539 #include "confdefs.h"
10540 #include "${srcdir-.}/lib/interfaces.c"
10542 if { (eval echo configure:10543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10543 then
10544 samba_cv_HAVE_IFACE_AIX=yes
10545 else
10546 echo "configure: failed program was:" >&5
10547 cat conftest.$ac_ext >&5
10548 rm -fr conftest*
10549 samba_cv_HAVE_IFACE_AIX=no
10551 rm -fr conftest*
10556 echo "$ac_t""$samba_cv_HAVE_IFACE_AIX" 1>&6
10557 if test x"$samba_cv_HAVE_IFACE_AIX" = x"yes"; then
10558 iface=yes;cat >> confdefs.h <<\EOF
10559 #define HAVE_IFACE_AIX 1
10564 if test $iface = no; then
10565 echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6
10566 echo "configure:10567: checking for iface ifconf" >&5
10567 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFCONF'+set}'`\" = set"; then
10568 echo $ac_n "(cached) $ac_c" 1>&6
10569 else
10571 if test "$cross_compiling" = yes; then
10572 samba_cv_HAVE_IFACE_IFCONF=cross
10573 else
10574 cat > conftest.$ac_ext <<EOF
10575 #line 10576 "configure"
10576 #include "confdefs.h"
10578 #define HAVE_IFACE_IFCONF 1
10579 #define AUTOCONF_TEST 1
10580 #include "confdefs.h"
10581 #include "${srcdir-.}/lib/interfaces.c"
10583 if { (eval echo configure:10584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10584 then
10585 samba_cv_HAVE_IFACE_IFCONF=yes
10586 else
10587 echo "configure: failed program was:" >&5
10588 cat conftest.$ac_ext >&5
10589 rm -fr conftest*
10590 samba_cv_HAVE_IFACE_IFCONF=no
10592 rm -fr conftest*
10597 echo "$ac_t""$samba_cv_HAVE_IFACE_IFCONF" 1>&6
10598 if test x"$samba_cv_HAVE_IFACE_IFCONF" = x"yes"; then
10599 iface=yes;cat >> confdefs.h <<\EOF
10600 #define HAVE_IFACE_IFCONF 1
10606 if test $iface = no; then
10607 echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6
10608 echo "configure:10609: checking for iface ifreq" >&5
10609 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFREQ'+set}'`\" = set"; then
10610 echo $ac_n "(cached) $ac_c" 1>&6
10611 else
10613 if test "$cross_compiling" = yes; then
10614 samba_cv_HAVE_IFACE_IFREQ=cross
10615 else
10616 cat > conftest.$ac_ext <<EOF
10617 #line 10618 "configure"
10618 #include "confdefs.h"
10620 #define HAVE_IFACE_IFREQ 1
10621 #define AUTOCONF_TEST 1
10622 #include "confdefs.h"
10623 #include "${srcdir-.}/lib/interfaces.c"
10625 if { (eval echo configure:10626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10626 then
10627 samba_cv_HAVE_IFACE_IFREQ=yes
10628 else
10629 echo "configure: failed program was:" >&5
10630 cat conftest.$ac_ext >&5
10631 rm -fr conftest*
10632 samba_cv_HAVE_IFACE_IFREQ=no
10634 rm -fr conftest*
10639 echo "$ac_t""$samba_cv_HAVE_IFACE_IFREQ" 1>&6
10640 if test x"$samba_cv_HAVE_IFACE_IFREQ" = x"yes"; then
10641 iface=yes;cat >> confdefs.h <<\EOF
10642 #define HAVE_IFACE_IFREQ 1
10649 ################################################
10650 # look for a method of setting the effective uid
10651 seteuid=no;
10652 if test $seteuid = no; then
10653 echo $ac_n "checking for setresuid""... $ac_c" 1>&6
10654 echo "configure:10655: checking for setresuid" >&5
10655 if eval "test \"`echo '$''{'samba_cv_USE_SETRESUID'+set}'`\" = set"; then
10656 echo $ac_n "(cached) $ac_c" 1>&6
10657 else
10659 if test "$cross_compiling" = yes; then
10660 samba_cv_USE_SETRESUID=cross
10661 else
10662 cat > conftest.$ac_ext <<EOF
10663 #line 10664 "configure"
10664 #include "confdefs.h"
10666 #define AUTOCONF_TEST 1
10667 #define USE_SETRESUID 1
10668 #include "confdefs.h"
10669 #include "${srcdir-.}/lib/util_sec.c"
10671 if { (eval echo configure:10672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10672 then
10673 samba_cv_USE_SETRESUID=yes
10674 else
10675 echo "configure: failed program was:" >&5
10676 cat conftest.$ac_ext >&5
10677 rm -fr conftest*
10678 samba_cv_USE_SETRESUID=no
10680 rm -fr conftest*
10685 echo "$ac_t""$samba_cv_USE_SETRESUID" 1>&6
10686 if test x"$samba_cv_USE_SETRESUID" = x"yes"; then
10687 seteuid=yes;cat >> confdefs.h <<\EOF
10688 #define USE_SETRESUID 1
10695 if test $seteuid = no; then
10696 echo $ac_n "checking for setreuid""... $ac_c" 1>&6
10697 echo "configure:10698: checking for setreuid" >&5
10698 if eval "test \"`echo '$''{'samba_cv_USE_SETREUID'+set}'`\" = set"; then
10699 echo $ac_n "(cached) $ac_c" 1>&6
10700 else
10702 if test "$cross_compiling" = yes; then
10703 samba_cv_USE_SETREUID=cross
10704 else
10705 cat > conftest.$ac_ext <<EOF
10706 #line 10707 "configure"
10707 #include "confdefs.h"
10709 #define AUTOCONF_TEST 1
10710 #define USE_SETREUID 1
10711 #include "confdefs.h"
10712 #include "${srcdir-.}/lib/util_sec.c"
10714 if { (eval echo configure:10715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10715 then
10716 samba_cv_USE_SETREUID=yes
10717 else
10718 echo "configure: failed program was:" >&5
10719 cat conftest.$ac_ext >&5
10720 rm -fr conftest*
10721 samba_cv_USE_SETREUID=no
10723 rm -fr conftest*
10728 echo "$ac_t""$samba_cv_USE_SETREUID" 1>&6
10729 if test x"$samba_cv_USE_SETREUID" = x"yes"; then
10730 seteuid=yes;cat >> confdefs.h <<\EOF
10731 #define USE_SETREUID 1
10737 if test $seteuid = no; then
10738 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
10739 echo "configure:10740: checking for seteuid" >&5
10740 if eval "test \"`echo '$''{'samba_cv_USE_SETEUID'+set}'`\" = set"; then
10741 echo $ac_n "(cached) $ac_c" 1>&6
10742 else
10744 if test "$cross_compiling" = yes; then
10745 samba_cv_USE_SETEUID=cross
10746 else
10747 cat > conftest.$ac_ext <<EOF
10748 #line 10749 "configure"
10749 #include "confdefs.h"
10751 #define AUTOCONF_TEST 1
10752 #define USE_SETEUID 1
10753 #include "confdefs.h"
10754 #include "${srcdir-.}/lib/util_sec.c"
10756 if { (eval echo configure:10757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10757 then
10758 samba_cv_USE_SETEUID=yes
10759 else
10760 echo "configure: failed program was:" >&5
10761 cat conftest.$ac_ext >&5
10762 rm -fr conftest*
10763 samba_cv_USE_SETEUID=no
10765 rm -fr conftest*
10770 echo "$ac_t""$samba_cv_USE_SETEUID" 1>&6
10771 if test x"$samba_cv_USE_SETEUID" = x"yes"; then
10772 seteuid=yes;cat >> confdefs.h <<\EOF
10773 #define USE_SETEUID 1
10779 if test $seteuid = no; then
10780 echo $ac_n "checking for setuidx""... $ac_c" 1>&6
10781 echo "configure:10782: checking for setuidx" >&5
10782 if eval "test \"`echo '$''{'samba_cv_USE_SETUIDX'+set}'`\" = set"; then
10783 echo $ac_n "(cached) $ac_c" 1>&6
10784 else
10786 if test "$cross_compiling" = yes; then
10787 samba_cv_USE_SETUIDX=cross
10788 else
10789 cat > conftest.$ac_ext <<EOF
10790 #line 10791 "configure"
10791 #include "confdefs.h"
10793 #define AUTOCONF_TEST 1
10794 #define USE_SETUIDX 1
10795 #include "confdefs.h"
10796 #include "${srcdir-.}/lib/util_sec.c"
10798 if { (eval echo configure:10799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10799 then
10800 samba_cv_USE_SETUIDX=yes
10801 else
10802 echo "configure: failed program was:" >&5
10803 cat conftest.$ac_ext >&5
10804 rm -fr conftest*
10805 samba_cv_USE_SETUIDX=no
10807 rm -fr conftest*
10812 echo "$ac_t""$samba_cv_USE_SETUIDX" 1>&6
10813 if test x"$samba_cv_USE_SETUIDX" = x"yes"; then
10814 seteuid=yes;cat >> confdefs.h <<\EOF
10815 #define USE_SETUIDX 1
10822 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
10823 echo "configure:10824: checking for working mmap" >&5
10824 if eval "test \"`echo '$''{'samba_cv_HAVE_MMAP'+set}'`\" = set"; then
10825 echo $ac_n "(cached) $ac_c" 1>&6
10826 else
10828 if test "$cross_compiling" = yes; then
10829 samba_cv_HAVE_MMAP=cross
10830 else
10831 cat > conftest.$ac_ext <<EOF
10832 #line 10833 "configure"
10833 #include "confdefs.h"
10834 #include "${srcdir-.}/tests/shared_mmap.c"
10836 if { (eval echo configure:10837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10837 then
10838 samba_cv_HAVE_MMAP=yes
10839 else
10840 echo "configure: failed program was:" >&5
10841 cat conftest.$ac_ext >&5
10842 rm -fr conftest*
10843 samba_cv_HAVE_MMAP=no
10845 rm -fr conftest*
10850 echo "$ac_t""$samba_cv_HAVE_MMAP" 1>&6
10851 if test x"$samba_cv_HAVE_MMAP" = x"yes"; then
10852 cat >> confdefs.h <<\EOF
10853 #define HAVE_MMAP 1
10858 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
10859 echo "configure:10860: checking for ftruncate needs root" >&5
10860 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
10861 echo $ac_n "(cached) $ac_c" 1>&6
10862 else
10864 if test "$cross_compiling" = yes; then
10865 samba_cv_FTRUNCATE_NEEDS_ROOT=cross
10866 else
10867 cat > conftest.$ac_ext <<EOF
10868 #line 10869 "configure"
10869 #include "confdefs.h"
10870 #include "${srcdir-.}/tests/ftruncroot.c"
10872 if { (eval echo configure:10873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10873 then
10874 samba_cv_FTRUNCATE_NEEDS_ROOT=yes
10875 else
10876 echo "configure: failed program was:" >&5
10877 cat conftest.$ac_ext >&5
10878 rm -fr conftest*
10879 samba_cv_FTRUNCATE_NEEDS_ROOT=no
10881 rm -fr conftest*
10886 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
10887 if test x"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x"yes"; then
10888 cat >> confdefs.h <<\EOF
10889 #define FTRUNCATE_NEEDS_ROOT 1
10894 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
10895 echo "configure:10896: checking for fcntl locking" >&5
10896 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
10897 echo $ac_n "(cached) $ac_c" 1>&6
10898 else
10900 if test "$cross_compiling" = yes; then
10901 samba_cv_HAVE_FCNTL_LOCK=cross
10902 else
10903 cat > conftest.$ac_ext <<EOF
10904 #line 10905 "configure"
10905 #include "confdefs.h"
10906 #include "${srcdir-.}/tests/fcntl_lock.c"
10908 if { (eval echo configure:10909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10909 then
10910 samba_cv_HAVE_FCNTL_LOCK=yes
10911 else
10912 echo "configure: failed program was:" >&5
10913 cat conftest.$ac_ext >&5
10914 rm -fr conftest*
10915 samba_cv_HAVE_FCNTL_LOCK=no
10917 rm -fr conftest*
10922 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
10923 if test x"$samba_cv_HAVE_FCNTL_LOCK" = x"yes"; then
10924 cat >> confdefs.h <<\EOF
10925 #define HAVE_FCNTL_LOCK 1
10930 echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6
10931 echo "configure:10932: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
10932 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_FCNTL64_LOCKS'+set}'`\" = set"; then
10933 echo $ac_n "(cached) $ac_c" 1>&6
10934 else
10936 if test "$cross_compiling" = yes; then
10937 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=cross
10938 else
10939 cat > conftest.$ac_ext <<EOF
10940 #line 10941 "configure"
10941 #include "confdefs.h"
10942 #include "${srcdir-.}/tests/fcntl_lock64.c"
10944 if { (eval echo configure:10945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10945 then
10946 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=yes
10947 else
10948 echo "configure: failed program was:" >&5
10949 cat conftest.$ac_ext >&5
10950 rm -fr conftest*
10951 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=no
10953 rm -fr conftest*
10958 echo "$ac_t""$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" 1>&6
10959 if test x"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x"yes"; then
10960 cat >> confdefs.h <<\EOF
10961 #define HAVE_BROKEN_FCNTL64_LOCKS 1
10965 else
10968 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
10969 echo "configure:10970: checking for 64 bit fcntl locking" >&5
10970 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
10971 echo $ac_n "(cached) $ac_c" 1>&6
10972 else
10974 if test "$cross_compiling" = yes; then
10975 samba_cv_HAVE_STRUCT_FLOCK64=cross
10976 else
10977 cat > conftest.$ac_ext <<EOF
10978 #line 10979 "configure"
10979 #include "confdefs.h"
10981 #if defined(HAVE_UNISTD_H)
10982 #include <unistd.h>
10983 #endif
10984 #include <stdio.h>
10985 #include <stdlib.h>
10987 #ifdef HAVE_FCNTL_H
10988 #include <fcntl.h>
10989 #endif
10991 #ifdef HAVE_SYS_FCNTL_H
10992 #include <sys/fcntl.h>
10993 #endif
10994 main() { struct flock64 fl64;
10995 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
10996 exit(0);
10997 #else
10998 exit(1);
10999 #endif
11002 if { (eval echo configure:11003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11003 then
11004 samba_cv_HAVE_STRUCT_FLOCK64=yes
11005 else
11006 echo "configure: failed program was:" >&5
11007 cat conftest.$ac_ext >&5
11008 rm -fr conftest*
11009 samba_cv_HAVE_STRUCT_FLOCK64=no
11011 rm -fr conftest*
11016 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
11018 if test x"$samba_cv_HAVE_STRUCT_FLOCK64" = x"yes"; then
11019 cat >> confdefs.h <<\EOF
11020 #define HAVE_STRUCT_FLOCK64 1
11026 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
11027 echo "configure:11028: checking for broken nisplus include files" >&5
11028 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
11029 echo $ac_n "(cached) $ac_c" 1>&6
11030 else
11032 cat > conftest.$ac_ext <<EOF
11033 #line 11034 "configure"
11034 #include "confdefs.h"
11035 #include <sys/acl.h>
11036 #if defined(HAVE_RPCSVC_NIS_H)
11037 #include <rpcsvc/nis.h>
11038 #endif
11039 int main() {
11040 return 0;
11041 ; return 0; }
11043 if { (eval echo configure:11044: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11044 rm -rf conftest*
11045 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=no
11046 else
11047 echo "configure: failed program was:" >&5
11048 cat conftest.$ac_ext >&5
11049 rm -rf conftest*
11050 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=yes
11052 rm -f conftest*
11055 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
11056 if test x"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x"yes"; then
11057 cat >> confdefs.h <<\EOF
11058 #define BROKEN_NISPLUS_INCLUDE_FILES 1
11064 #################################################
11065 # check for smbwrapper support
11066 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
11067 echo "configure:11068: checking whether to use smbwrapper" >&5
11068 # Check whether --with-smbwrapper or --without-smbwrapper was given.
11069 if test "${with_smbwrapper+set}" = set; then
11070 withval="$with_smbwrapper"
11071 case "$withval" in
11072 yes)
11073 echo "$ac_t""yes" 1>&6
11074 cat >> confdefs.h <<\EOF
11075 #define WITH_SMBWRAPPER 1
11078 WRAP="bin/smbsh bin/smbwrapper.$SHLIBEXT"
11080 if test x$ATTEMPT_WRAP32_BUILD = x; then
11081 WRAP32=""
11082 else
11083 WRAP32=bin/smbwrapper.32.$SHLIBEXT
11086 # Conditions under which smbwrapper should not be built.
11088 if test x$PICFLAG = x; then
11089 echo No support for PIC code - disabling smbwrapper and smbsh
11090 WRAP=""
11091 WRAP32=""
11092 elif test x$ac_cv_func_syscall = xno; then
11093 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
11094 WRAP=""
11095 WRAP32=""
11099 echo "$ac_t""no" 1>&6
11101 esac
11102 else
11103 echo "$ac_t""no" 1>&6
11108 #################################################
11109 # check for the AFS filesystem
11110 echo $ac_n "checking whether to use AFS""... $ac_c" 1>&6
11111 echo "configure:11112: checking whether to use AFS" >&5
11112 # Check whether --with-afs or --without-afs was given.
11113 if test "${with_afs+set}" = set; then
11114 withval="$with_afs"
11115 case "$withval" in
11116 yes)
11117 echo "$ac_t""yes" 1>&6
11118 cat >> confdefs.h <<\EOF
11119 #define WITH_AFS 1
11124 echo "$ac_t""no" 1>&6
11126 esac
11127 else
11128 echo "$ac_t""no" 1>&6
11134 #################################################
11135 # check for the DFS auth system
11136 echo $ac_n "checking whether to use DFS auth""... $ac_c" 1>&6
11137 echo "configure:11138: checking whether to use DFS auth" >&5
11138 # Check whether --with-dfs or --without-dfs was given.
11139 if test "${with_dfs+set}" = set; then
11140 withval="$with_dfs"
11141 case "$withval" in
11142 yes)
11143 echo "$ac_t""yes" 1>&6
11144 cat >> confdefs.h <<\EOF
11145 #define WITH_DFS 1
11150 echo "$ac_t""no" 1>&6
11152 esac
11153 else
11154 echo "$ac_t""no" 1>&6
11159 #################################################
11160 # check for Kerberos IV auth system
11161 echo $ac_n "checking whether to use Kerberos IV""... $ac_c" 1>&6
11162 echo "configure:11163: checking whether to use Kerberos IV" >&5
11163 # Check whether --with-krb4 or --without-krb4 was given.
11164 if test "${with_krb4+set}" = set; then
11165 withval="$with_krb4"
11166 case "$withval" in
11167 yes)
11168 echo "$ac_t""yes" 1>&6
11169 cat >> confdefs.h <<\EOF
11170 #define KRB4_AUTH 1
11173 LIBS="$LIBS -lkrb -ldes"
11174 CFLAGS="$CFLAGS -I$withval/include"
11175 LDFLAGS="$LDFLAGS -L$withval/lib"
11176 cat >> confdefs.h <<EOF
11177 #define KRB4_DIR ${withval}
11182 echo "$ac_t""no" 1>&6
11184 esac
11185 else
11186 echo "$ac_t""no" 1>&6
11193 #################################################
11194 # check for location of Kerberos 5 install
11195 echo $ac_n "checking for kerberos 5 install path""... $ac_c" 1>&6
11196 echo "configure:11197: checking for kerberos 5 install path" >&5
11197 # Check whether --with-krb5 or --without-krb5 was given.
11198 if test "${with_krb5+set}" = set; then
11199 withval="$with_krb5"
11200 case "$withval" in
11202 echo "$ac_t""no" 1>&6
11205 echo "$ac_t""yes" 1>&6
11206 cat >> confdefs.h <<\EOF
11207 #define KRB5_AUTH 1
11210 LIBS="$LIBS -lkrb5"
11211 CFLAGS="$CFLAGS -I$withval/include"
11212 LDFLAGS="$LDFLAGS -L$withval/lib"
11213 cat >> confdefs.h <<\EOF
11214 #define HAVE_KRB5 1
11217 have_krb5=yes;
11219 esac
11220 else
11221 echo "$ac_t""no" 1>&6
11227 ########################################################
11228 # now see if we can find the krb5 libs in standard paths
11229 if test x$have_krb5 != xyes; then
11230 echo $ac_n "checking for krb5_mk_req_extended in -lkrb5""... $ac_c" 1>&6
11231 echo "configure:11232: checking for krb5_mk_req_extended in -lkrb5" >&5
11232 ac_lib_var=`echo krb5'_'krb5_mk_req_extended | sed 'y%./+-%__p_%'`
11233 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11234 echo $ac_n "(cached) $ac_c" 1>&6
11235 else
11236 ac_save_LIBS="$LIBS"
11237 LIBS="-lkrb5 $LIBS"
11238 cat > conftest.$ac_ext <<EOF
11239 #line 11240 "configure"
11240 #include "confdefs.h"
11241 /* Override any gcc2 internal prototype to avoid an error. */
11242 /* We use char because int might match the return type of a gcc2
11243 builtin and then its argument prototype would still apply. */
11244 char krb5_mk_req_extended();
11246 int main() {
11247 krb5_mk_req_extended()
11248 ; return 0; }
11250 if { (eval echo configure:11251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11251 rm -rf conftest*
11252 eval "ac_cv_lib_$ac_lib_var=yes"
11253 else
11254 echo "configure: failed program was:" >&5
11255 cat conftest.$ac_ext >&5
11256 rm -rf conftest*
11257 eval "ac_cv_lib_$ac_lib_var=no"
11259 rm -f conftest*
11260 LIBS="$ac_save_LIBS"
11263 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11264 echo "$ac_t""yes" 1>&6
11265 LIBS="$LIBS -lkrb5";
11266 cat >> confdefs.h <<\EOF
11267 #define HAVE_KRB5 1
11270 else
11271 echo "$ac_t""no" 1>&6
11276 ##################################################################
11277 # we might need the k5crypto and com_err libraries on some systems
11278 echo $ac_n "checking for _et_list in -lcom_err""... $ac_c" 1>&6
11279 echo "configure:11280: checking for _et_list in -lcom_err" >&5
11280 ac_lib_var=`echo com_err'_'_et_list | sed 'y%./+-%__p_%'`
11281 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11282 echo $ac_n "(cached) $ac_c" 1>&6
11283 else
11284 ac_save_LIBS="$LIBS"
11285 LIBS="-lcom_err $LIBS"
11286 cat > conftest.$ac_ext <<EOF
11287 #line 11288 "configure"
11288 #include "confdefs.h"
11289 /* Override any gcc2 internal prototype to avoid an error. */
11290 /* We use char because int might match the return type of a gcc2
11291 builtin and then its argument prototype would still apply. */
11292 char _et_list();
11294 int main() {
11295 _et_list()
11296 ; return 0; }
11298 if { (eval echo configure:11299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11299 rm -rf conftest*
11300 eval "ac_cv_lib_$ac_lib_var=yes"
11301 else
11302 echo "configure: failed program was:" >&5
11303 cat conftest.$ac_ext >&5
11304 rm -rf conftest*
11305 eval "ac_cv_lib_$ac_lib_var=no"
11307 rm -f conftest*
11308 LIBS="$ac_save_LIBS"
11311 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11312 echo "$ac_t""yes" 1>&6
11313 LIBS="$LIBS -lcom_err"
11314 else
11315 echo "$ac_t""no" 1>&6
11318 echo $ac_n "checking for krb5_encrypt_data in -lk5crypto""... $ac_c" 1>&6
11319 echo "configure:11320: checking for krb5_encrypt_data in -lk5crypto" >&5
11320 ac_lib_var=`echo k5crypto'_'krb5_encrypt_data | sed 'y%./+-%__p_%'`
11321 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11322 echo $ac_n "(cached) $ac_c" 1>&6
11323 else
11324 ac_save_LIBS="$LIBS"
11325 LIBS="-lk5crypto $LIBS"
11326 cat > conftest.$ac_ext <<EOF
11327 #line 11328 "configure"
11328 #include "confdefs.h"
11329 /* Override any gcc2 internal prototype to avoid an error. */
11330 /* We use char because int might match the return type of a gcc2
11331 builtin and then its argument prototype would still apply. */
11332 char krb5_encrypt_data();
11334 int main() {
11335 krb5_encrypt_data()
11336 ; return 0; }
11338 if { (eval echo configure:11339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11339 rm -rf conftest*
11340 eval "ac_cv_lib_$ac_lib_var=yes"
11341 else
11342 echo "configure: failed program was:" >&5
11343 cat conftest.$ac_ext >&5
11344 rm -rf conftest*
11345 eval "ac_cv_lib_$ac_lib_var=no"
11347 rm -f conftest*
11348 LIBS="$ac_save_LIBS"
11351 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11352 echo "$ac_t""yes" 1>&6
11353 LIBS="$LIBS -lk5crypto"
11354 else
11355 echo "$ac_t""no" 1>&6
11359 #################################################
11360 # check for automount support
11361 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
11362 echo "configure:11363: checking whether to use AUTOMOUNT" >&5
11363 # Check whether --with-automount or --without-automount was given.
11364 if test "${with_automount+set}" = set; then
11365 withval="$with_automount"
11366 case "$withval" in
11367 yes)
11368 echo "$ac_t""yes" 1>&6
11369 cat >> confdefs.h <<\EOF
11370 #define WITH_AUTOMOUNT 1
11375 echo "$ac_t""no" 1>&6
11377 esac
11378 else
11379 echo "$ac_t""no" 1>&6
11384 #################################################
11385 # check for smbmount support
11386 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
11387 echo "configure:11388: checking whether to use SMBMOUNT" >&5
11388 # Check whether --with-smbmount or --without-smbmount was given.
11389 if test "${with_smbmount+set}" = set; then
11390 withval="$with_smbmount"
11391 case "$withval" in
11392 yes)
11393 case "$host_os" in
11394 *linux*)
11395 echo "$ac_t""yes" 1>&6
11396 cat >> confdefs.h <<\EOF
11397 #define WITH_SMBMOUNT 1
11400 MPROGS="bin/smbmount bin/smbmnt bin/smbumount"
11403 { echo "configure: error: not on a linux system!" 1>&2; exit 1; }
11405 esac
11408 echo "$ac_t""no" 1>&6
11409 MPROGS=
11411 esac
11412 else
11413 echo "$ac_t""no" 1>&6
11414 MPROGS=
11420 #################################################
11421 # check for a PAM password database
11422 with_pam_for_crypt=no
11423 echo $ac_n "checking whether to use PAM password database""... $ac_c" 1>&6
11424 echo "configure:11425: checking whether to use PAM password database" >&5
11425 # Check whether --with-pam or --without-pam was given.
11426 if test "${with_pam+set}" = set; then
11427 withval="$with_pam"
11428 case "$withval" in
11429 yes)
11430 echo "$ac_t""yes" 1>&6
11431 cat >> confdefs.h <<\EOF
11432 #define WITH_PAM 1
11435 LIBS="$LIBS -lpam"
11436 with_pam_for_crypt=yes
11439 echo "$ac_t""no" 1>&6
11441 esac
11442 else
11443 echo "$ac_t""no" 1>&6
11448 # we can't build a pam module if we don't have pam.
11449 echo $ac_n "checking for pam_get_data in -lpam""... $ac_c" 1>&6
11450 echo "configure:11451: checking for pam_get_data in -lpam" >&5
11451 ac_lib_var=`echo pam'_'pam_get_data | sed 'y%./+-%__p_%'`
11452 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11453 echo $ac_n "(cached) $ac_c" 1>&6
11454 else
11455 ac_save_LIBS="$LIBS"
11456 LIBS="-lpam $LIBS"
11457 cat > conftest.$ac_ext <<EOF
11458 #line 11459 "configure"
11459 #include "confdefs.h"
11460 /* Override any gcc2 internal prototype to avoid an error. */
11461 /* We use char because int might match the return type of a gcc2
11462 builtin and then its argument prototype would still apply. */
11463 char pam_get_data();
11465 int main() {
11466 pam_get_data()
11467 ; return 0; }
11469 if { (eval echo configure:11470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11470 rm -rf conftest*
11471 eval "ac_cv_lib_$ac_lib_var=yes"
11472 else
11473 echo "configure: failed program was:" >&5
11474 cat conftest.$ac_ext >&5
11475 rm -rf conftest*
11476 eval "ac_cv_lib_$ac_lib_var=no"
11478 rm -f conftest*
11479 LIBS="$ac_save_LIBS"
11482 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11483 echo "$ac_t""yes" 1>&6
11484 cat >> confdefs.h <<\EOF
11485 #define HAVE_LIBPAM 1
11488 else
11489 echo "$ac_t""no" 1>&6
11493 #################################################
11494 # check for pam_smbpass support
11495 echo $ac_n "checking whether to use pam_smbpass""... $ac_c" 1>&6
11496 echo "configure:11497: checking whether to use pam_smbpass" >&5
11497 # Check whether --with-pam_smbpass or --without-pam_smbpass was given.
11498 if test "${with_pam_smbpass+set}" = set; then
11499 withval="$with_pam_smbpass"
11500 case "$withval" in
11501 yes)
11502 echo "$ac_t""yes" 1>&6
11504 # Conditions under which pam_smbpass should not be built.
11506 if test x$PICFLAG = x; then
11507 echo "$ac_t""No support for PIC code - disabling pam_smbpass" 1>&6
11508 PAM_MOD=""
11509 elif test x$ac_cv_lib_pam_pam_get_data = xno; then
11510 echo "$ac_t""No libpam found -- disabling pam_smbpass" 1>&6
11511 PAM_MOD=""
11512 else
11513 PAM_MOD="bin/pam_smbpass.so"
11517 echo "$ac_t""no" 1>&6
11519 esac
11520 else
11521 echo "$ac_t""no" 1>&6
11527 ###############################################
11528 # test for where we get crypt() from, but only
11529 # if not using PAM
11530 if test $with_pam_for_crypt = no; then
11531 for ac_func in crypt
11533 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11534 echo "configure:11535: checking for $ac_func" >&5
11535 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11536 echo $ac_n "(cached) $ac_c" 1>&6
11537 else
11538 cat > conftest.$ac_ext <<EOF
11539 #line 11540 "configure"
11540 #include "confdefs.h"
11541 /* System header to define __stub macros and hopefully few prototypes,
11542 which can conflict with char $ac_func(); below. */
11543 #include <assert.h>
11544 /* Override any gcc2 internal prototype to avoid an error. */
11545 /* We use char because int might match the return type of a gcc2
11546 builtin and then its argument prototype would still apply. */
11547 char $ac_func();
11549 int main() {
11551 /* The GNU C library defines this for functions which it implements
11552 to always fail with ENOSYS. Some functions are actually named
11553 something starting with __ and the normal name is an alias. */
11554 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11555 choke me
11556 #else
11557 $ac_func();
11558 #endif
11560 ; return 0; }
11562 if { (eval echo configure:11563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11563 rm -rf conftest*
11564 eval "ac_cv_func_$ac_func=yes"
11565 else
11566 echo "configure: failed program was:" >&5
11567 cat conftest.$ac_ext >&5
11568 rm -rf conftest*
11569 eval "ac_cv_func_$ac_func=no"
11571 rm -f conftest*
11574 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11575 echo "$ac_t""yes" 1>&6
11576 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11577 cat >> confdefs.h <<EOF
11578 #define $ac_tr_func 1
11581 else
11582 echo "$ac_t""no" 1>&6
11584 done
11586 if test x"$ac_cv_func_crypt" = x"no"; then
11587 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
11588 echo "configure:11589: checking for crypt in -lcrypt" >&5
11589 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
11590 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11591 echo $ac_n "(cached) $ac_c" 1>&6
11592 else
11593 ac_save_LIBS="$LIBS"
11594 LIBS="-lcrypt $LIBS"
11595 cat > conftest.$ac_ext <<EOF
11596 #line 11597 "configure"
11597 #include "confdefs.h"
11598 /* Override any gcc2 internal prototype to avoid an error. */
11599 /* We use char because int might match the return type of a gcc2
11600 builtin and then its argument prototype would still apply. */
11601 char crypt();
11603 int main() {
11604 crypt()
11605 ; return 0; }
11607 if { (eval echo configure:11608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11608 rm -rf conftest*
11609 eval "ac_cv_lib_$ac_lib_var=yes"
11610 else
11611 echo "configure: failed program was:" >&5
11612 cat conftest.$ac_ext >&5
11613 rm -rf conftest*
11614 eval "ac_cv_lib_$ac_lib_var=no"
11616 rm -f conftest*
11617 LIBS="$ac_save_LIBS"
11620 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11621 echo "$ac_t""yes" 1>&6
11622 LIBS="$LIBS -lcrypt";
11623 cat >> confdefs.h <<\EOF
11624 #define HAVE_CRYPT 1
11627 else
11628 echo "$ac_t""no" 1>&6
11635 ## moved after the check for -lcrypt in order to
11636 ## ensure that the necessary libraries are included
11637 ## check checking for truncated salt. Wrapped by the
11638 ## $with_pam_for_crypt variable as above --jerry
11640 if test $with_pam_for_crypt = no; then
11641 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
11642 echo "configure:11643: checking for a crypt that needs truncated salt" >&5
11643 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
11644 echo $ac_n "(cached) $ac_c" 1>&6
11645 else
11647 if test "$cross_compiling" = yes; then
11648 samba_cv_HAVE_TRUNCATED_SALT=cross
11649 else
11650 cat > conftest.$ac_ext <<EOF
11651 #line 11652 "configure"
11652 #include "confdefs.h"
11653 #include "${srcdir-.}/tests/crypttest.c"
11655 if { (eval echo configure:11656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11656 then
11657 samba_cv_HAVE_TRUNCATED_SALT=no
11658 else
11659 echo "configure: failed program was:" >&5
11660 cat conftest.$ac_ext >&5
11661 rm -fr conftest*
11662 samba_cv_HAVE_TRUNCATED_SALT=yes
11664 rm -fr conftest*
11669 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
11670 if test x"$samba_cv_HAVE_TRUNCATED_SALT" = x"yes"; then
11671 cat >> confdefs.h <<\EOF
11672 #define HAVE_TRUNCATED_SALT 1
11680 ########################################################################################
11682 ## TESTS FOR SAM BACKENDS. KEEP THESE GROUPED TOGETHER
11684 ########################################################################################
11686 ## set the with_smbpasswd_sam as the default
11687 with_smbpasswd_sam=yes
11690 #################################################
11691 # check for a TDB password database
11692 echo $ac_n "checking whether to use TDB SAM database""... $ac_c" 1>&6
11693 echo "configure:11694: checking whether to use TDB SAM database" >&5
11694 # Check whether --with-tdbsam or --without-tdbsam was given.
11695 if test "${with_tdbsam+set}" = set; then
11696 withval="$with_tdbsam"
11697 case "$withval" in
11698 yes)
11699 echo "$ac_t""yes" 1>&6
11700 cat >> confdefs.h <<\EOF
11701 #define WITH_TDB_SAM 1
11704 with_smbpasswd_sam=no
11707 echo "$ac_t""no" 1>&6
11709 esac
11710 else
11711 echo "$ac_t""no" 1>&6
11716 #################################################
11717 # check for a LDAP password database
11718 echo $ac_n "checking whether to use LDAP SAM database""... $ac_c" 1>&6
11719 echo "configure:11720: checking whether to use LDAP SAM database" >&5
11720 # Check whether --with-ldapsam or --without-ldapsam was given.
11721 if test "${with_ldapsam+set}" = set; then
11722 withval="$with_ldapsam"
11723 case "$withval" in
11724 yes)
11725 echo "$ac_t""yes" 1>&6
11726 cat >> confdefs.h <<\EOF
11727 #define WITH_LDAP_SAM 1
11730 LIBS="-lldap -llber $LIBS"
11731 with_smbpasswd_sam=no
11734 echo "$ac_t""no" 1>&6
11736 esac
11737 else
11738 echo "$ac_t""no" 1>&6
11743 #################################################
11744 # check for a NISPLUS password database
11745 echo $ac_n "checking whether to use NISPLUS SAM database""... $ac_c" 1>&6
11746 echo "configure:11747: checking whether to use NISPLUS SAM database" >&5
11747 # Check whether --with-nisplussam or --without-nisplussam was given.
11748 if test "${with_nisplussam+set}" = set; then
11749 withval="$with_nisplussam"
11750 case "$withval" in
11751 yes)
11752 echo "$ac_t""yes" 1>&6
11753 cat >> confdefs.h <<\EOF
11754 #define WITH_NISPLUS_SAM 1
11757 with_smbpasswd_sam=no
11760 echo "$ac_t""no" 1>&6
11762 esac
11763 else
11764 echo "$ac_t""no" 1>&6
11769 ################################################
11770 # This test should come last because the
11771 # smbpasswd SAM is only used if another format
11772 # has not been defined
11773 echo $ac_n "checking whether to use traditional smbpasswd file""... $ac_c" 1>&6
11774 echo "configure:11775: checking whether to use traditional smbpasswd file" >&5
11775 if test $with_smbpasswd_sam = yes; then
11776 echo "$ac_t""yes" 1>&6
11777 cat >> confdefs.h <<\EOF
11778 #define WITH_SMBPASSWD_SAM 1
11781 else
11782 echo "$ac_t""no" 1>&6
11785 ########################################################################################
11787 ## END OF TESTS FOR SAM BACKENDS.
11789 ########################################################################################
11791 #################################################
11792 # check for a NISPLUS_HOME support
11793 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
11794 echo "configure:11795: checking whether to use NISPLUS_HOME" >&5
11795 # Check whether --with-nisplus-home or --without-nisplus-home was given.
11796 if test "${with_nisplus_home+set}" = set; then
11797 withval="$with_nisplus_home"
11798 case "$withval" in
11799 yes)
11800 echo "$ac_t""yes" 1>&6
11801 cat >> confdefs.h <<\EOF
11802 #define WITH_NISPLUS_HOME 1
11807 echo "$ac_t""no" 1>&6
11809 esac
11810 else
11811 echo "$ac_t""no" 1>&6
11816 #################################################
11817 # check for the secure socket layer
11818 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
11819 echo "configure:11820: checking whether to use SSL" >&5
11820 # Check whether --with-ssl or --without-ssl was given.
11821 if test "${with_ssl+set}" = set; then
11822 withval="$with_ssl"
11823 case "$withval" in
11824 yes)
11825 echo "$ac_t""yes" 1>&6
11826 cat >> confdefs.h <<\EOF
11827 #define WITH_SSL 1
11830 withval="/usr/local/ssl" # default
11832 if test "${with_sslinc+set}" = set; then
11834 withval="$with_sslinc"
11835 case "$withval" in
11836 yes|no)
11837 echo "configure: warning: --with-sslinc called without argument - will use default" 1>&w
11838 CFLAGS="-I/usr/local/ssl/include $CFLAGS"
11841 CFLAGS="-I${withval} $CFLAGS"
11843 esac
11845 else
11847 CFLAGS="-I/usr/local/ssl/include $CFLAGS"
11851 if test "${with_ssllib+set}" = set; then
11853 withval="$with_ssllib"
11854 case "$withval" in
11855 yes|no)
11856 echo "configure: warning: --with-ssllib called without argument - will use default" 1>&w
11857 LDFLAGS="-L/usr/local/ssl/lib $LDFLAGS"
11860 LDFLAGS="-L${withval}/lib $LDFLAGS"
11862 esac
11864 else
11866 LDFLAGS="-L/usr/local/ssl/lib $LDFLAGS"
11870 LIBS="-lssl -lcrypto $LIBS"
11872 # if test ! -d ${withval}; then
11873 # echo "configure: error: called with --with-ssl, but ssl base directory ${withval} does not exist or is not a directory. Aborting config" 1>&2
11874 # exit 1
11875 # fi
11877 CFLAGS="-DHAVE_CRYPT_DECL $CFLAGS" # Damn, SSLeay defines its own
11881 echo "$ac_t""no" 1>&6
11883 esac
11884 else
11885 echo "$ac_t""no" 1>&6
11890 #################################################
11891 # check for syslog logging
11892 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
11893 echo "configure:11894: checking whether to use syslog logging" >&5
11894 # Check whether --with-syslog or --without-syslog was given.
11895 if test "${with_syslog+set}" = set; then
11896 withval="$with_syslog"
11897 case "$withval" in
11898 yes)
11899 echo "$ac_t""yes" 1>&6
11900 cat >> confdefs.h <<\EOF
11901 #define WITH_SYSLOG 1
11906 echo "$ac_t""no" 1>&6
11908 esac
11909 else
11910 echo "$ac_t""no" 1>&6
11915 #################################################
11916 # check for a shared memory profiling support
11917 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
11918 echo "configure:11919: checking whether to use profiling" >&5
11919 # Check whether --with-profiling-data or --without-profiling-data was given.
11920 if test "${with_profiling_data+set}" = set; then
11921 withval="$with_profiling_data"
11922 case "$withval" in
11923 yes)
11924 echo "$ac_t""yes" 1>&6
11925 cat >> confdefs.h <<\EOF
11926 #define WITH_PROFILE 1
11931 echo "$ac_t""no" 1>&6
11933 esac
11934 else
11935 echo "$ac_t""no" 1>&6
11941 #################################################
11942 # check for experimental disk-quotas support
11943 QUOTAOBJS=smbd/noquotas.o
11945 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
11946 echo "configure:11947: checking whether to support disk-quotas" >&5
11947 # Check whether --with-quotas or --without-quotas was given.
11948 if test "${with_quotas+set}" = set; then
11949 withval="$with_quotas"
11950 case "$withval" in
11951 yes)
11952 echo "$ac_t""yes" 1>&6
11953 case "$host_os" in
11954 *linux*)
11955 # Check for kernel 2.4.x quota braindamage...
11956 echo $ac_n "checking for linux 2.4.x quota braindamage..""... $ac_c" 1>&6
11957 echo "configure:11958: checking for linux 2.4.x quota braindamage.." >&5
11958 if eval "test \"`echo '$''{'samba_cv_linux_2_4_quota_braindamage'+set}'`\" = set"; then
11959 echo $ac_n "(cached) $ac_c" 1>&6
11960 else
11962 cat > conftest.$ac_ext <<EOF
11963 #line 11964 "configure"
11964 #include "confdefs.h"
11965 #include <stdio.h>
11966 #include <sys/types.h>
11967 #include <asm/types.h>
11968 #include <linux/quota.h>
11969 #include <mntent.h>
11970 #include <linux/unistd.h>
11971 int main() {
11972 struct mem_dqblk D;
11973 ; return 0; }
11975 if { (eval echo configure:11976: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11976 rm -rf conftest*
11977 samba_cv_linux_2_4_quota_braindamage=yes
11978 else
11979 echo "configure: failed program was:" >&5
11980 cat conftest.$ac_ext >&5
11981 rm -rf conftest*
11982 samba_cv_linux_2_4_quota_braindamage=no
11984 rm -f conftest*
11987 echo "$ac_t""$samba_cv_linux_2_4_quota_braindamage" 1>&6
11988 if test x"$samba_cv_linux_2_4_quota_braindamage" = x"yes"; then
11989 cat >> confdefs.h <<\EOF
11990 #define LINUX_QUOTAS_2 1
11993 else
11994 cat >> confdefs.h <<\EOF
11995 #define LINUX_QUOTAS_1 1
12002 esac
12003 QUOTAOBJS=smbd/quotas.o
12004 cat >> confdefs.h <<\EOF
12005 #define WITH_QUOTAS 1
12010 echo "$ac_t""no" 1>&6
12012 esac
12013 else
12014 echo "$ac_t""no" 1>&6
12020 #################################################
12021 # check for experimental utmp accounting
12023 echo $ac_n "checking whether to support utmp accounting""... $ac_c" 1>&6
12024 echo "configure:12025: checking whether to support utmp accounting" >&5
12025 # Check whether --with-utmp or --without-utmp was given.
12026 if test "${with_utmp+set}" = set; then
12027 withval="$with_utmp"
12028 case "$withval" in
12029 yes)
12030 echo "$ac_t""yes" 1>&6
12031 cat >> confdefs.h <<\EOF
12032 #define WITH_UTMP 1
12037 echo "$ac_t""no" 1>&6
12039 esac
12040 else
12041 echo "$ac_t""no" 1>&6
12046 #################################################
12047 # set private directory location
12048 # Check whether --with-privatedir or --without-privatedir was given.
12049 if test "${with_privatedir+set}" = set; then
12050 withval="$with_privatedir"
12051 case "$withval" in
12052 yes|no)
12054 # Just in case anybody calls it without argument
12056 echo "configure: warning: --with-privatedir called without argument - will use default" 1>&2
12057 privatedir='${prefix}/private'
12060 privatedir="$withval"
12062 esac
12064 else
12065 privatedir='${prefix}/private'
12071 #################################################
12072 # set lock directory location
12073 # Check whether --with-lockdir or --without-lockdir was given.
12074 if test "${with_lockdir+set}" = set; then
12075 withval="$with_lockdir"
12076 case "$withval" in
12077 yes|no)
12079 # Just in case anybody calls it without argument
12081 echo "configure: warning: --with-lockdir called without argument - will use default" 1>&2
12082 lockdir='$(VARDIR)/locks'
12085 lockdir="$withval"
12087 esac
12089 else
12090 lockdir='$(VARDIR)/locks'
12096 #################################################
12097 # set SWAT directory location
12098 # Check whether --with-swatdir or --without-swatdir was given.
12099 if test "${with_swatdir+set}" = set; then
12100 withval="$with_swatdir"
12101 case "$withval" in
12102 yes|no)
12104 # Just in case anybody does it
12106 echo "configure: warning: --with-swatdir called without argument - will use default" 1>&2
12107 swatdir='${prefix}/swat'
12110 swatdir="$withval"
12112 esac
12114 else
12115 swatdir='${prefix}/swat'
12121 #################################################
12122 # choose native language(s) of man pages
12123 echo $ac_n "checking chosen man pages' language(s)""... $ac_c" 1>&6
12124 echo "configure:12125: checking chosen man pages' language(s)" >&5
12125 # Check whether --with-manpages-langs or --without-manpages-langs was given.
12126 if test "${with_manpages_langs+set}" = set; then
12127 withval="$with_manpages_langs"
12128 case "$withval" in
12129 yes|no)
12130 echo "configure: warning: --with-manpages-langs called without argument - will use default" 1>&2
12131 manlangs="en"
12134 manlangs="$withval"
12136 esac
12138 echo "$ac_t""$manlangs" 1>&6
12139 manlangs=`echo $manlangs | sed "s/,/ /"` # replacing commas with spaces to produce a list
12141 else
12142 manlangs="en"
12143 echo "$ac_t""$manlangs" 1>&6
12149 #################################################
12150 # these tests are taken from the GNU fileutils package
12151 echo "checking how to get filesystem space usage" 1>&6
12152 echo "configure:12153: checking how to get filesystem space usage" >&5
12153 space=no
12155 # Test for statvfs64.
12156 if test $space = no; then
12157 # SVR4
12158 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
12159 echo "configure:12160: checking statvfs64 function (SVR4)" >&5
12160 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
12161 echo $ac_n "(cached) $ac_c" 1>&6
12162 else
12163 if test "$cross_compiling" = yes; then
12164 fu_cv_sys_stat_statvfs64=cross
12165 else
12166 cat > conftest.$ac_ext <<EOF
12167 #line 12168 "configure"
12168 #include "confdefs.h"
12170 #if defined(HAVE_UNISTD_H)
12171 #include <unistd.h>
12172 #endif
12173 #include <sys/types.h>
12174 #include <sys/statvfs.h>
12175 main ()
12177 struct statvfs64 fsd;
12178 exit (statvfs64 (".", &fsd));
12181 if { (eval echo configure:12182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12182 then
12183 fu_cv_sys_stat_statvfs64=yes
12184 else
12185 echo "configure: failed program was:" >&5
12186 cat conftest.$ac_ext >&5
12187 rm -fr conftest*
12188 fu_cv_sys_stat_statvfs64=no
12190 rm -fr conftest*
12195 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
12196 if test $fu_cv_sys_stat_statvfs64 = yes; then
12197 space=yes
12198 cat >> confdefs.h <<\EOF
12199 #define STAT_STATVFS64 1
12205 # Perform only the link test since it seems there are no variants of the
12206 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
12207 # because that got a false positive on SCO OSR5. Adding the declaration
12208 # of a `struct statvfs' causes this test to fail (as it should) on such
12209 # systems. That system is reported to work fine with STAT_STATFS4 which
12210 # is what it gets when this test fails.
12211 if test $space = no; then
12212 # SVR4
12213 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
12214 echo "configure:12215: checking statvfs function (SVR4)" >&5
12215 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
12216 echo $ac_n "(cached) $ac_c" 1>&6
12217 else
12218 cat > conftest.$ac_ext <<EOF
12219 #line 12220 "configure"
12220 #include "confdefs.h"
12221 #include <sys/types.h>
12222 #include <sys/statvfs.h>
12223 int main() {
12224 struct statvfs fsd; statvfs (0, &fsd);
12225 ; return 0; }
12227 if { (eval echo configure:12228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12228 rm -rf conftest*
12229 fu_cv_sys_stat_statvfs=yes
12230 else
12231 echo "configure: failed program was:" >&5
12232 cat conftest.$ac_ext >&5
12233 rm -rf conftest*
12234 fu_cv_sys_stat_statvfs=no
12236 rm -f conftest*
12239 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
12240 if test $fu_cv_sys_stat_statvfs = yes; then
12241 space=yes
12242 cat >> confdefs.h <<\EOF
12243 #define STAT_STATVFS 1
12249 if test $space = no; then
12250 # DEC Alpha running OSF/1
12251 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
12252 echo "configure:12253: checking for 3-argument statfs function (DEC OSF/1)" >&5
12253 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
12254 echo $ac_n "(cached) $ac_c" 1>&6
12255 else
12256 if test "$cross_compiling" = yes; then
12257 fu_cv_sys_stat_statfs3_osf1=no
12258 else
12259 cat > conftest.$ac_ext <<EOF
12260 #line 12261 "configure"
12261 #include "confdefs.h"
12263 #include <sys/param.h>
12264 #include <sys/types.h>
12265 #include <sys/mount.h>
12266 main ()
12268 struct statfs fsd;
12269 fsd.f_fsize = 0;
12270 exit (statfs (".", &fsd, sizeof (struct statfs)));
12273 if { (eval echo configure:12274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12274 then
12275 fu_cv_sys_stat_statfs3_osf1=yes
12276 else
12277 echo "configure: failed program was:" >&5
12278 cat conftest.$ac_ext >&5
12279 rm -fr conftest*
12280 fu_cv_sys_stat_statfs3_osf1=no
12282 rm -fr conftest*
12287 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
12288 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
12289 space=yes
12290 cat >> confdefs.h <<\EOF
12291 #define STAT_STATFS3_OSF1 1
12297 if test $space = no; then
12298 # AIX
12299 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
12300 echo "configure:12301: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
12301 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
12302 echo $ac_n "(cached) $ac_c" 1>&6
12303 else
12304 if test "$cross_compiling" = yes; then
12305 fu_cv_sys_stat_statfs2_bsize=no
12306 else
12307 cat > conftest.$ac_ext <<EOF
12308 #line 12309 "configure"
12309 #include "confdefs.h"
12311 #ifdef HAVE_SYS_PARAM_H
12312 #include <sys/param.h>
12313 #endif
12314 #ifdef HAVE_SYS_MOUNT_H
12315 #include <sys/mount.h>
12316 #endif
12317 #ifdef HAVE_SYS_VFS_H
12318 #include <sys/vfs.h>
12319 #endif
12320 main ()
12322 struct statfs fsd;
12323 fsd.f_bsize = 0;
12324 exit (statfs (".", &fsd));
12327 if { (eval echo configure:12328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12328 then
12329 fu_cv_sys_stat_statfs2_bsize=yes
12330 else
12331 echo "configure: failed program was:" >&5
12332 cat conftest.$ac_ext >&5
12333 rm -fr conftest*
12334 fu_cv_sys_stat_statfs2_bsize=no
12336 rm -fr conftest*
12341 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
12342 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
12343 space=yes
12344 cat >> confdefs.h <<\EOF
12345 #define STAT_STATFS2_BSIZE 1
12351 if test $space = no; then
12352 # SVR3
12353 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
12354 echo "configure:12355: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
12355 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
12356 echo $ac_n "(cached) $ac_c" 1>&6
12357 else
12358 if test "$cross_compiling" = yes; then
12359 fu_cv_sys_stat_statfs4=no
12360 else
12361 cat > conftest.$ac_ext <<EOF
12362 #line 12363 "configure"
12363 #include "confdefs.h"
12364 #include <sys/types.h>
12365 #include <sys/statfs.h>
12366 main ()
12368 struct statfs fsd;
12369 exit (statfs (".", &fsd, sizeof fsd, 0));
12372 if { (eval echo configure:12373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12373 then
12374 fu_cv_sys_stat_statfs4=yes
12375 else
12376 echo "configure: failed program was:" >&5
12377 cat conftest.$ac_ext >&5
12378 rm -fr conftest*
12379 fu_cv_sys_stat_statfs4=no
12381 rm -fr conftest*
12386 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
12387 if test $fu_cv_sys_stat_statfs4 = yes; then
12388 space=yes
12389 cat >> confdefs.h <<\EOF
12390 #define STAT_STATFS4 1
12396 if test $space = no; then
12397 # 4.4BSD and NetBSD
12398 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
12399 echo "configure:12400: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
12400 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
12401 echo $ac_n "(cached) $ac_c" 1>&6
12402 else
12403 if test "$cross_compiling" = yes; then
12404 fu_cv_sys_stat_statfs2_fsize=no
12405 else
12406 cat > conftest.$ac_ext <<EOF
12407 #line 12408 "configure"
12408 #include "confdefs.h"
12409 #include <sys/types.h>
12410 #ifdef HAVE_SYS_PARAM_H
12411 #include <sys/param.h>
12412 #endif
12413 #ifdef HAVE_SYS_MOUNT_H
12414 #include <sys/mount.h>
12415 #endif
12416 main ()
12418 struct statfs fsd;
12419 fsd.f_fsize = 0;
12420 exit (statfs (".", &fsd));
12423 if { (eval echo configure:12424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12424 then
12425 fu_cv_sys_stat_statfs2_fsize=yes
12426 else
12427 echo "configure: failed program was:" >&5
12428 cat conftest.$ac_ext >&5
12429 rm -fr conftest*
12430 fu_cv_sys_stat_statfs2_fsize=no
12432 rm -fr conftest*
12437 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
12438 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
12439 space=yes
12440 cat >> confdefs.h <<\EOF
12441 #define STAT_STATFS2_FSIZE 1
12447 if test $space = no; then
12448 # Ultrix
12449 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
12450 echo "configure:12451: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
12451 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
12452 echo $ac_n "(cached) $ac_c" 1>&6
12453 else
12454 if test "$cross_compiling" = yes; then
12455 fu_cv_sys_stat_fs_data=no
12456 else
12457 cat > conftest.$ac_ext <<EOF
12458 #line 12459 "configure"
12459 #include "confdefs.h"
12460 #include <sys/types.h>
12461 #ifdef HAVE_SYS_PARAM_H
12462 #include <sys/param.h>
12463 #endif
12464 #ifdef HAVE_SYS_MOUNT_H
12465 #include <sys/mount.h>
12466 #endif
12467 #ifdef HAVE_SYS_FS_TYPES_H
12468 #include <sys/fs_types.h>
12469 #endif
12470 main ()
12472 struct fs_data fsd;
12473 /* Ultrix's statfs returns 1 for success,
12474 0 for not mounted, -1 for failure. */
12475 exit (statfs (".", &fsd) != 1);
12478 if { (eval echo configure:12479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12479 then
12480 fu_cv_sys_stat_fs_data=yes
12481 else
12482 echo "configure: failed program was:" >&5
12483 cat conftest.$ac_ext >&5
12484 rm -fr conftest*
12485 fu_cv_sys_stat_fs_data=no
12487 rm -fr conftest*
12492 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
12493 if test $fu_cv_sys_stat_fs_data = yes; then
12494 space=yes
12495 cat >> confdefs.h <<\EOF
12496 #define STAT_STATFS2_FS_DATA 1
12503 # As a gating factor for large file support, in order to
12504 # use <4GB files we must have the following minimal support
12505 # available.
12506 # long long, and a 64 bit off_t or off64_t.
12507 # If we don't have all of these then disable large
12508 # file support.
12510 echo $ac_n "checking if large file support can be enabled""... $ac_c" 1>&6
12511 echo "configure:12512: checking if large file support can be enabled" >&5
12512 cat > conftest.$ac_ext <<EOF
12513 #line 12514 "configure"
12514 #include "confdefs.h"
12516 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
12517 #include <sys/types.h>
12518 #else
12519 __COMPILE_ERROR_
12520 #endif
12522 int main() {
12523 int i
12524 ; return 0; }
12526 if { (eval echo configure:12527: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12527 rm -rf conftest*
12528 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=yes
12529 else
12530 echo "configure: failed program was:" >&5
12531 cat conftest.$ac_ext >&5
12532 rm -rf conftest*
12533 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=no
12535 rm -f conftest*
12536 if test x"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x"yes"; then
12537 cat >> confdefs.h <<\EOF
12538 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
12542 echo "$ac_t""$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" 1>&6
12544 # Check whether --with-spinlocks or --without-spinlocks was given.
12545 if test "${with_spinlocks+set}" = set; then
12546 withval="$with_spinlocks"
12550 if test "x$with_spinlocks" = "xyes"; then
12551 cat >> confdefs.h <<\EOF
12552 #define USE_SPINLOCKS 1
12556 case "$host_cpu" in
12557 sparc)
12558 cat >> confdefs.h <<\EOF
12559 #define SPARC_SPINLOCKS 1
12564 i386|i486|i586|i686)
12565 cat >> confdefs.h <<\EOF
12566 #define INTEL_SPINLOCKS 1
12571 mips)
12572 cat >> confdefs.h <<\EOF
12573 #define MIPS_SPINLOCKS 1
12578 powerpc)
12579 cat >> confdefs.h <<\EOF
12580 #define POWERPC_SPINLOCKS 1
12584 esac
12587 #################################################
12588 # check for ACL support
12590 echo $ac_n "checking whether to support ACLs""... $ac_c" 1>&6
12591 echo "configure:12592: checking whether to support ACLs" >&5
12592 # Check whether --with-acl-support or --without-acl-support was given.
12593 if test "${with_acl_support+set}" = set; then
12594 withval="$with_acl_support"
12595 case "$withval" in
12596 yes)
12598 case "$host_os" in
12599 *sysv5*)
12600 echo "$ac_t""Using UnixWare ACLs" 1>&6
12601 cat >> confdefs.h <<\EOF
12602 #define HAVE_UNIXWARE_ACLS 1
12606 *solaris*)
12607 echo "$ac_t""Using solaris ACLs" 1>&6
12608 cat >> confdefs.h <<\EOF
12609 #define HAVE_SOLARIS_ACLS 1
12613 *irix*)
12614 echo "$ac_t""Using IRIX ACLs" 1>&6
12615 cat >> confdefs.h <<\EOF
12616 #define HAVE_IRIX_ACLS 1
12620 *aix*)
12621 echo "$ac_t""Using AIX ACLs" 1>&6
12622 cat >> confdefs.h <<\EOF
12623 #define HAVE_AIX_ACLS 1
12627 *osf*)
12628 echo "$ac_t""Using Tru64 ACLs" 1>&6
12629 cat >> confdefs.h <<\EOF
12630 #define HAVE_TRU64_ACLS 1
12633 LIBS="$LIBS -lpacl"
12636 echo $ac_n "checking for acl_get_file in -lacl""... $ac_c" 1>&6
12637 echo "configure:12638: checking for acl_get_file in -lacl" >&5
12638 ac_lib_var=`echo acl'_'acl_get_file | sed 'y%./+-%__p_%'`
12639 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12640 echo $ac_n "(cached) $ac_c" 1>&6
12641 else
12642 ac_save_LIBS="$LIBS"
12643 LIBS="-lacl $LIBS"
12644 cat > conftest.$ac_ext <<EOF
12645 #line 12646 "configure"
12646 #include "confdefs.h"
12647 /* Override any gcc2 internal prototype to avoid an error. */
12648 /* We use char because int might match the return type of a gcc2
12649 builtin and then its argument prototype would still apply. */
12650 char acl_get_file();
12652 int main() {
12653 acl_get_file()
12654 ; return 0; }
12656 if { (eval echo configure:12657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12657 rm -rf conftest*
12658 eval "ac_cv_lib_$ac_lib_var=yes"
12659 else
12660 echo "configure: failed program was:" >&5
12661 cat conftest.$ac_ext >&5
12662 rm -rf conftest*
12663 eval "ac_cv_lib_$ac_lib_var=no"
12665 rm -f conftest*
12666 LIBS="$ac_save_LIBS"
12669 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12670 echo "$ac_t""yes" 1>&6
12671 ac_tr_lib=HAVE_LIB`echo acl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
12672 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
12673 cat >> confdefs.h <<EOF
12674 #define $ac_tr_lib 1
12677 LIBS="-lacl $LIBS"
12679 else
12680 echo "$ac_t""no" 1>&6
12683 echo $ac_n "checking for ACL support""... $ac_c" 1>&6
12684 echo "configure:12685: checking for ACL support" >&5
12685 if eval "test \"`echo '$''{'samba_cv_HAVE_POSIX_ACLS'+set}'`\" = set"; then
12686 echo $ac_n "(cached) $ac_c" 1>&6
12687 else
12689 cat > conftest.$ac_ext <<EOF
12690 #line 12691 "configure"
12691 #include "confdefs.h"
12692 #include <sys/types.h>
12693 #include <sys/acl.h>
12694 int main() {
12695 acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
12696 ; return 0; }
12698 if { (eval echo configure:12699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12699 rm -rf conftest*
12700 samba_cv_HAVE_POSIX_ACLS=yes
12701 else
12702 echo "configure: failed program was:" >&5
12703 cat conftest.$ac_ext >&5
12704 rm -rf conftest*
12705 samba_cv_HAVE_POSIX_ACLS=no
12707 rm -f conftest*
12710 echo "$ac_t""$samba_cv_HAVE_POSIX_ACLS" 1>&6
12711 if test x"$samba_cv_HAVE_POSIX_ACLS" = x"yes"; then
12712 echo "$ac_t""Using posix ACLs" 1>&6
12713 cat >> confdefs.h <<\EOF
12714 #define HAVE_POSIX_ACLS 1
12717 echo $ac_n "checking for acl_get_perm_np""... $ac_c" 1>&6
12718 echo "configure:12719: checking for acl_get_perm_np" >&5
12719 if eval "test \"`echo '$''{'samba_cv_HAVE_ACL_GET_PERM_NP'+set}'`\" = set"; then
12720 echo $ac_n "(cached) $ac_c" 1>&6
12721 else
12723 cat > conftest.$ac_ext <<EOF
12724 #line 12725 "configure"
12725 #include "confdefs.h"
12726 #include <sys/types.h>
12727 #include <sys/acl.h>
12728 int main() {
12729 acl_permset_t permset_d; acl_perm_t perm; return acl_get_perm_np( permset_d, perm);
12730 ; return 0; }
12732 if { (eval echo configure:12733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12733 rm -rf conftest*
12734 samba_cv_HAVE_ACL_GET_PERM_NP=yes
12735 else
12736 echo "configure: failed program was:" >&5
12737 cat conftest.$ac_ext >&5
12738 rm -rf conftest*
12739 samba_cv_HAVE_ACL_GET_PERM_NP=no
12741 rm -f conftest*
12744 echo "$ac_t""$samba_cv_HAVE_ACL_GET_PERM_NP" 1>&6
12745 if test x"$samba_cv_HAVE_ACL_GET_PERM_NP" = x"yes"; then
12746 cat >> confdefs.h <<\EOF
12747 #define HAVE_ACL_GET_PERM_NP 1
12753 esac
12756 echo "$ac_t""no" 1>&6
12757 cat >> confdefs.h <<\EOF
12758 #define HAVE_NO_ACLS 1
12762 esac
12763 else
12764 cat >> confdefs.h <<\EOF
12765 #define HAVE_NO_ACLS 1
12768 echo "$ac_t""no" 1>&6
12773 #################################################
12774 # Check whether winbind is supported on this platform. If so we need to
12775 # build and install client programs (WINBIND_TARGETS), sbin programs
12776 # (WINBIND_STARGETS) and shared libraries (WINBIND_LTARGETS).
12778 echo $ac_n "checking whether to build winbind""... $ac_c" 1>&6
12779 echo "configure:12780: checking whether to build winbind" >&5
12781 # Initially, the value of $host_os decides whether winbind is supported
12783 case "$host_os" in
12784 *linux*|*solaris*)
12785 HAVE_WINBIND=yes
12788 HAVE_WINBIND=no
12789 winbind_no_reason=", unsupported on $host_os"
12791 esac
12793 # Check the setting of --with-winbindd
12795 # Check whether --with-winbind or --without-winbind was given.
12796 if test "${with_winbind+set}" = set; then
12797 withval="$with_winbind"
12799 case "$withval" in
12800 yes)
12801 HAVE_WINBIND=yes
12804 HAVE_WINBIND=no
12805 winbind_reason=""
12807 esac
12811 # We need unix domain sockets for winbind
12813 if test x"$HAVE_WINBIND" = x"yes"; then
12814 if test x"$samba_cv_unixsocket" = x"no"; then
12815 winbind_no_reason=", no unix domain socket support on $host_os"
12816 HAVE_WINBIND=no
12820 # Display test results
12822 if test x"$HAVE_WINBIND" = x"yes"; then
12824 echo "$ac_t""yes" 1>&6
12826 WINBIND_TARGETS="\$(WINBIND_PROGS)"
12827 WINBIND_STARGETS="\$(WINBIND_SPROGS)"
12828 WINBIND_LTARGETS="\$(WINBIND_LPROGS)"
12829 case "$with_pam" in
12830 yes)
12831 WINBIND_PAM_PROGS="\$(WINBIND_PAM_PROGS)"
12833 esac
12834 else
12835 echo "$ac_t""no$winbind_no_reason" 1>&6
12837 WINBIND_TARGETS=""
12838 WINBIND_STARGETS=""
12839 WINBIND_LTARGETS=""
12840 WINBIND_PAM_PROGS=""
12843 # Substitution time!
12850 #################################################
12851 # Check to see if we should use the included popt
12853 echo $ac_n "checking whether to use included popt""... $ac_c" 1>&6
12854 echo "configure:12855: checking whether to use included popt" >&5
12855 # Check whether --with-included-popt or --without-included-popt was given.
12856 if test "${with_included_popt+set}" = set; then
12857 withval="$with_included_popt"
12859 case "$withval" in
12860 yes)
12861 INCLUDED_POPT=yes
12864 INCLUDED_POPT=no
12866 esac
12869 if test x"$INCLUDED_POPT" != x"yes"; then
12870 echo $ac_n "checking for poptGetContext in -lpopt""... $ac_c" 1>&6
12871 echo "configure:12872: checking for poptGetContext in -lpopt" >&5
12872 ac_lib_var=`echo popt'_'poptGetContext | sed 'y%./+-%__p_%'`
12873 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12874 echo $ac_n "(cached) $ac_c" 1>&6
12875 else
12876 ac_save_LIBS="$LIBS"
12877 LIBS="-lpopt $LIBS"
12878 cat > conftest.$ac_ext <<EOF
12879 #line 12880 "configure"
12880 #include "confdefs.h"
12881 /* Override any gcc2 internal prototype to avoid an error. */
12882 /* We use char because int might match the return type of a gcc2
12883 builtin and then its argument prototype would still apply. */
12884 char poptGetContext();
12886 int main() {
12887 poptGetContext()
12888 ; return 0; }
12890 if { (eval echo configure:12891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12891 rm -rf conftest*
12892 eval "ac_cv_lib_$ac_lib_var=yes"
12893 else
12894 echo "configure: failed program was:" >&5
12895 cat conftest.$ac_ext >&5
12896 rm -rf conftest*
12897 eval "ac_cv_lib_$ac_lib_var=no"
12899 rm -f conftest*
12900 LIBS="$ac_save_LIBS"
12903 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12904 echo "$ac_t""yes" 1>&6
12905 INCLUDED_POPT=no
12906 else
12907 echo "$ac_t""no" 1>&6
12908 INCLUDED_POPT=yes
12913 if test x"$INCLUDED_POPT" = x"yes"; then
12914 echo "$ac_t""$srcdir/popt" 1>&6
12915 BUILD_POPT='$(POPT_OBJS)'
12916 CFLAGS="$CFLAGS -I$srcdir/popt"
12917 else
12918 echo "$ac_t""no" 1>&6
12919 LIBS="$LIBS -lpopt"
12923 #################################################
12924 # final configure stuff
12926 echo "checking configure summary"
12927 if test "$cross_compiling" = yes; then
12929 else
12930 cat > conftest.$ac_ext <<EOF
12931 #line 12932 "configure"
12932 #include "confdefs.h"
12933 #include "${srcdir-.}/tests/summary.c"
12935 if { (eval echo configure:12936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12936 then
12937 echo "configure OK";
12938 else
12939 echo "configure: failed program was:" >&5
12940 cat conftest.$ac_ext >&5
12941 rm -fr conftest*
12942 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }
12944 rm -fr conftest*
12948 builddir=`pwd`
12951 trap '' 1 2 15
12952 cat > confcache <<\EOF
12953 # This file is a shell script that caches the results of configure
12954 # tests run on this system so they can be shared between configure
12955 # scripts and configure runs. It is not useful on other systems.
12956 # If it contains results you don't want to keep, you may remove or edit it.
12958 # By default, configure uses ./config.cache as the cache file,
12959 # creating it if it does not exist already. You can give configure
12960 # the --cache-file=FILE option to use a different cache file; that is
12961 # what configure does when it calls configure scripts in
12962 # subdirectories, so they share the cache.
12963 # Giving --cache-file=/dev/null disables caching, for debugging configure.
12964 # config.status only pays attention to the cache file if you give it the
12965 # --recheck option to rerun configure.
12968 # The following way of writing the cache mishandles newlines in values,
12969 # but we know of no workaround that is simple, portable, and efficient.
12970 # So, don't put newlines in cache variables' values.
12971 # Ultrix sh set writes to stderr and can't be redirected directly,
12972 # and sets the high bit in the cache file unless we assign to the vars.
12973 (set) 2>&1 |
12974 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12975 *ac_space=\ *)
12976 # `set' does not quote correctly, so add quotes (double-quote substitution
12977 # turns \\\\ into \\, and sed turns \\ into \).
12978 sed -n \
12979 -e "s/'/'\\\\''/g" \
12980 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
12983 # `set' quotes correctly as required by POSIX, so do not add quotes.
12984 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
12986 esac >> confcache
12987 if cmp -s $cache_file confcache; then
12989 else
12990 if test -w $cache_file; then
12991 echo "updating cache $cache_file"
12992 cat confcache > $cache_file
12993 else
12994 echo "not updating unwritable cache $cache_file"
12997 rm -f confcache
12999 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
13001 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13002 # Let make expand exec_prefix.
13003 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13005 # Any assignment to VPATH causes Sun make to only execute
13006 # the first set of double-colon rules, so remove it if not needed.
13007 # If there is a colon in the path, we need to keep it.
13008 if test "x$srcdir" = x.; then
13009 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
13012 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
13014 DEFS=-DHAVE_CONFIG_H
13016 # Without the "./", some shells look in PATH for config.status.
13017 : ${CONFIG_STATUS=./config.status}
13019 echo creating $CONFIG_STATUS
13020 rm -f $CONFIG_STATUS
13021 cat > $CONFIG_STATUS <<EOF
13022 #! /bin/sh
13023 # Generated automatically by configure.
13024 # Run this file to recreate the current configuration.
13025 # This directory was configured as follows,
13026 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13028 # $0 $ac_configure_args
13030 # Compiler output produced by configure, useful for debugging
13031 # configure, is in ./config.log if it exists.
13033 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
13034 for ac_option
13036 case "\$ac_option" in
13037 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13038 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
13039 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
13040 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
13041 echo "$CONFIG_STATUS generated by autoconf version 2.13"
13042 exit 0 ;;
13043 -help | --help | --hel | --he | --h)
13044 echo "\$ac_cs_usage"; exit 0 ;;
13045 *) echo "\$ac_cs_usage"; exit 1 ;;
13046 esac
13047 done
13049 ac_given_srcdir=$srcdir
13050 ac_given_INSTALL="$INSTALL"
13052 trap 'rm -fr `echo "include/stamp-h Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
13054 cat >> $CONFIG_STATUS <<EOF
13056 # Protect against being on the right side of a sed subst in config.status.
13057 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
13058 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
13059 $ac_vpsub
13060 $extrasub
13061 s%@SHELL@%$SHELL%g
13062 s%@CFLAGS@%$CFLAGS%g
13063 s%@CPPFLAGS@%$CPPFLAGS%g
13064 s%@CXXFLAGS@%$CXXFLAGS%g
13065 s%@FFLAGS@%$FFLAGS%g
13066 s%@DEFS@%$DEFS%g
13067 s%@LDFLAGS@%$LDFLAGS%g
13068 s%@LIBS@%$LIBS%g
13069 s%@exec_prefix@%$exec_prefix%g
13070 s%@prefix@%$prefix%g
13071 s%@program_transform_name@%$program_transform_name%g
13072 s%@bindir@%$bindir%g
13073 s%@sbindir@%$sbindir%g
13074 s%@libexecdir@%$libexecdir%g
13075 s%@datadir@%$datadir%g
13076 s%@sysconfdir@%$sysconfdir%g
13077 s%@sharedstatedir@%$sharedstatedir%g
13078 s%@localstatedir@%$localstatedir%g
13079 s%@libdir@%$libdir%g
13080 s%@includedir@%$includedir%g
13081 s%@oldincludedir@%$oldincludedir%g
13082 s%@infodir@%$infodir%g
13083 s%@mandir@%$mandir%g
13084 s%@RUNPROG@%$RUNPROG%g
13085 s%@MPROGS@%$MPROGS%g
13086 s%@LDSHFLAGS@%$LDSHFLAGS%g
13087 s%@SHLD@%$SHLD%g
13088 s%@HOST_OS@%$HOST_OS%g
13089 s%@PAM_MOD@%$PAM_MOD%g
13090 s%@WRAP@%$WRAP%g
13091 s%@WRAP32@%$WRAP32%g
13092 s%@PICFLAG@%$PICFLAG%g
13093 s%@PICSUFFIX@%$PICSUFFIX%g
13094 s%@POBAD_CC@%$POBAD_CC%g
13095 s%@SHLIBEXT@%$SHLIBEXT%g
13096 s%@LIBSMBCLIENT_SHARED@%$LIBSMBCLIENT_SHARED%g
13097 s%@CC@%$CC%g
13098 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
13099 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
13100 s%@INSTALL_DATA@%$INSTALL_DATA%g
13101 s%@AWK@%$AWK%g
13102 s%@BROKEN_CC@%$BROKEN_CC%g
13103 s%@host@%$host%g
13104 s%@host_alias@%$host_alias%g
13105 s%@host_cpu@%$host_cpu%g
13106 s%@host_vendor@%$host_vendor%g
13107 s%@host_os@%$host_os%g
13108 s%@target@%$target%g
13109 s%@target_alias@%$target_alias%g
13110 s%@target_cpu@%$target_cpu%g
13111 s%@target_vendor@%$target_vendor%g
13112 s%@target_os@%$target_os%g
13113 s%@build@%$build%g
13114 s%@build_alias@%$build_alias%g
13115 s%@build_cpu@%$build_cpu%g
13116 s%@build_vendor@%$build_vendor%g
13117 s%@build_os@%$build_os%g
13118 s%@CPP@%$CPP%g
13119 s%@LIBOBJS@%$LIBOBJS%g
13120 s%@TERMLIBS@%$TERMLIBS%g
13121 s%@TERMLDFLAGS@%$TERMLDFLAGS%g
13122 s%@ROFF@%$ROFF%g
13123 s%@QUOTAOBJS@%$QUOTAOBJS%g
13124 s%@privatedir@%$privatedir%g
13125 s%@lockdir@%$lockdir%g
13126 s%@swatdir@%$swatdir%g
13127 s%@manlangs@%$manlangs%g
13128 s%@WINBIND_TARGETS@%$WINBIND_TARGETS%g
13129 s%@WINBIND_STARGETS@%$WINBIND_STARGETS%g
13130 s%@WINBIND_LTARGETS@%$WINBIND_LTARGETS%g
13131 s%@WINBIND_PAM_PROGS@%$WINBIND_PAM_PROGS%g
13132 s%@BUILD_POPT@%$BUILD_POPT%g
13133 s%@builddir@%$builddir%g
13135 CEOF
13138 cat >> $CONFIG_STATUS <<\EOF
13140 # Split the substitutions into bite-sized pieces for seds with
13141 # small command number limits, like on Digital OSF/1 and HP-UX.
13142 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
13143 ac_file=1 # Number of current file.
13144 ac_beg=1 # First line for current file.
13145 ac_end=$ac_max_sed_cmds # Line after last line for current file.
13146 ac_more_lines=:
13147 ac_sed_cmds=""
13148 while $ac_more_lines; do
13149 if test $ac_beg -gt 1; then
13150 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
13151 else
13152 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
13154 if test ! -s conftest.s$ac_file; then
13155 ac_more_lines=false
13156 rm -f conftest.s$ac_file
13157 else
13158 if test -z "$ac_sed_cmds"; then
13159 ac_sed_cmds="sed -f conftest.s$ac_file"
13160 else
13161 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
13163 ac_file=`expr $ac_file + 1`
13164 ac_beg=$ac_end
13165 ac_end=`expr $ac_end + $ac_max_sed_cmds`
13167 done
13168 if test -z "$ac_sed_cmds"; then
13169 ac_sed_cmds=cat
13173 cat >> $CONFIG_STATUS <<EOF
13175 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile"}
13177 cat >> $CONFIG_STATUS <<\EOF
13178 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
13179 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13180 case "$ac_file" in
13181 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13182 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13183 *) ac_file_in="${ac_file}.in" ;;
13184 esac
13186 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
13188 # Remove last slash and all that follows it. Not all systems have dirname.
13189 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13190 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13191 # The file is in a subdirectory.
13192 test ! -d "$ac_dir" && mkdir "$ac_dir"
13193 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
13194 # A "../" for each directory in $ac_dir_suffix.
13195 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
13196 else
13197 ac_dir_suffix= ac_dots=
13200 case "$ac_given_srcdir" in
13201 .) srcdir=.
13202 if test -z "$ac_dots"; then top_srcdir=.
13203 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
13204 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
13205 *) # Relative path.
13206 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
13207 top_srcdir="$ac_dots$ac_given_srcdir" ;;
13208 esac
13210 case "$ac_given_INSTALL" in
13211 [/$]*) INSTALL="$ac_given_INSTALL" ;;
13212 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
13213 esac
13215 echo creating "$ac_file"
13216 rm -f "$ac_file"
13217 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
13218 case "$ac_file" in
13219 *Makefile*) ac_comsub="1i\\
13220 # $configure_input" ;;
13221 *) ac_comsub= ;;
13222 esac
13224 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13225 sed -e "$ac_comsub
13226 s%@configure_input@%$configure_input%g
13227 s%@srcdir@%$srcdir%g
13228 s%@top_srcdir@%$top_srcdir%g
13229 s%@INSTALL@%$INSTALL%g
13230 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
13231 fi; done
13232 rm -f conftest.s*
13234 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13235 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13237 # ac_d sets the value in "#define NAME VALUE" lines.
13238 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13239 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
13240 ac_dC='\3'
13241 ac_dD='%g'
13242 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
13243 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13244 ac_uB='\([ ]\)%\1#\2define\3'
13245 ac_uC=' '
13246 ac_uD='\4%g'
13247 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13248 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13249 ac_eB='$%\1#\2define\3'
13250 ac_eC=' '
13251 ac_eD='%g'
13253 if test "${CONFIG_HEADERS+set}" != set; then
13255 cat >> $CONFIG_STATUS <<EOF
13256 CONFIG_HEADERS="include/config.h"
13258 cat >> $CONFIG_STATUS <<\EOF
13260 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
13261 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13262 case "$ac_file" in
13263 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13264 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13265 *) ac_file_in="${ac_file}.in" ;;
13266 esac
13268 echo creating $ac_file
13270 rm -f conftest.frag conftest.in conftest.out
13271 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13272 cat $ac_file_inputs > conftest.in
13276 # Transform confdefs.h into a sed script conftest.vals that substitutes
13277 # the proper values into config.h.in to produce config.h. And first:
13278 # Protect against being on the right side of a sed subst in config.status.
13279 # Protect against being in an unquoted here document in config.status.
13280 rm -f conftest.vals
13281 cat > conftest.hdr <<\EOF
13282 s/[\\&%]/\\&/g
13283 s%[\\$`]%\\&%g
13284 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
13285 s%ac_d%ac_u%gp
13286 s%ac_u%ac_e%gp
13288 sed -n -f conftest.hdr confdefs.h > conftest.vals
13289 rm -f conftest.hdr
13291 # This sed command replaces #undef with comments. This is necessary, for
13292 # example, in the case of _POSIX_SOURCE, which is predefined and required
13293 # on some systems where configure will not decide to define it.
13294 cat >> conftest.vals <<\EOF
13295 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
13298 # Break up conftest.vals because some shells have a limit on
13299 # the size of here documents, and old seds have small limits too.
13301 rm -f conftest.tail
13302 while :
13304 ac_lines=`grep -c . conftest.vals`
13305 # grep -c gives empty output for an empty file on some AIX systems.
13306 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
13307 # Write a limited-size here document to conftest.frag.
13308 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
13309 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
13310 echo 'CEOF
13311 sed -f conftest.frag conftest.in > conftest.out
13312 rm -f conftest.in
13313 mv conftest.out conftest.in
13314 ' >> $CONFIG_STATUS
13315 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
13316 rm -f conftest.vals
13317 mv conftest.tail conftest.vals
13318 done
13319 rm -f conftest.vals
13321 cat >> $CONFIG_STATUS <<\EOF
13322 rm -f conftest.frag conftest.h
13323 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
13324 cat conftest.in >> conftest.h
13325 rm -f conftest.in
13326 if cmp -s $ac_file conftest.h 2>/dev/null; then
13327 echo "$ac_file is unchanged"
13328 rm -f conftest.h
13329 else
13330 # Remove last slash and all that follows it. Not all systems have dirname.
13331 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13332 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13333 # The file is in a subdirectory.
13334 test ! -d "$ac_dir" && mkdir "$ac_dir"
13336 rm -f $ac_file
13337 mv conftest.h $ac_file
13339 fi; done
13342 cat >> $CONFIG_STATUS <<EOF
13345 cat >> $CONFIG_STATUS <<\EOF
13347 exit 0
13349 chmod +x $CONFIG_STATUS
13350 rm -fr confdefs* $ac_clean_files
13351 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1