preparing for release of 2.2.3a
[Samba.git] / source / configure
blobec2b28c18e9bd2ce547eccec330491a01c8693b1
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 --with-fhs Use FHS-compliant paths (default=no)"
17 ac_help="$ac_help
18 --with-privatedir=DIR Where to put smbpasswd ($ac_default_prefix/private)"
19 ac_help="$ac_help
20 --with-lockdir=DIR Where to put lock files ($ac_default_prefix/var/locks)"
21 ac_help="$ac_help
22 --with-swatdir=DIR Where to put SWAT files ($ac_default_prefix/swat)"
23 ac_help="$ac_help
24 --with-configdir=DIR Where to put configuration files (\$libdir)"
25 ac_help="$ac_help
26 --with-codepagedir=DIR Where to put codepage files (\$libdir/codepages)"
27 ac_help="$ac_help
28 --with-logfilebase=DIR Where to put log files (\$(VARDIR))"
29 ac_help="$ac_help
30 --enable-debug Turn on compiler debugging information (default=no)"
31 ac_help="$ac_help
32 --with-readline[=DIR] Look for readline include/libs in DIR (default=auto)"
33 ac_help="$ac_help
34 --with-smbwrapper Include SMB wrapper support (default=no)"
35 ac_help="$ac_help
36 --with-afs Include AFS support (default=no)"
37 ac_help="$ac_help
38 --with-dce-dfs Include DCE/DFS support (default=no)"
39 ac_help="$ac_help
40 --with-krb4=base-dir Include Kerberos IV support (default=no)"
41 ac_help="$ac_help
42 --with-krb5=base-dir Include Kerberos 5 support (default=no)"
43 ac_help="$ac_help
44 --with-automount Include AUTOMOUNT support (default=no)"
45 ac_help="$ac_help
46 --with-smbmount Include SMBMOUNT (Linux only) support (default=no)"
47 ac_help="$ac_help
48 --with-pam Include PAM password database support (default=no)"
49 ac_help="$ac_help
50 --with-pam_smbpass Include the smbpass PAM module (default=no)"
51 ac_help="$ac_help
52 --with-tdbsam Include experimental TDB SAM support (default=no)"
53 ac_help="$ac_help
54 --with-ldapsam Include experimental LDAP SAM support (default=no)"
55 ac_help="$ac_help
56 --with-nisplussam Include NISPLUS SAM support (default=no)"
57 ac_help="$ac_help
58 --with-nisplus-home Include NISPLUS_HOME support (default=no)"
59 ac_help="$ac_help
60 --with-ssl Include SSL support (default=no)
61 --with-sslinc=DIR Where the SSL includes are (defaults to /usr/local/ssl/include)
62 --with-ssllib=DIR Where the SSL libraries are (defaults to /usr/local/ssl/lib)"
63 ac_help="$ac_help
64 --with-syslog Include experimental SYSLOG support (default=no)"
65 ac_help="$ac_help
66 --with-profiling-data Include gathering source code profile information (default=no)"
67 ac_help="$ac_help
68 --with-quotas Include experimental disk-quota support (default=no)"
69 ac_help="$ac_help
70 --with-utmp Include experimental utmp accounting (default=no)"
71 ac_help="$ac_help
72 --with-msdfs Include MS Dfs support (default=no)"
73 ac_help="$ac_help
74 --with-vfs Include Samba vfs support (default=no)"
75 ac_help="$ac_help
76 --with-libsmbclient Build the libsmbclient shared library (default=no)"
77 ac_help="$ac_help
78 --with-spinlocks Use spin locks instead of fcntl locks (default=no)"
79 ac_help="$ac_help
80 --with-acl-support Include ACL support (default=no)"
81 ac_help="$ac_help
82 --with-winbind Build winbind (default, if supported by OS)"
84 # Initialize some variables set by options.
85 # The variables have the same names as the options, with
86 # dashes changed to underlines.
87 build=NONE
88 cache_file=./config.cache
89 exec_prefix=NONE
90 host=NONE
91 no_create=
92 nonopt=NONE
93 no_recursion=
94 prefix=NONE
95 program_prefix=NONE
96 program_suffix=NONE
97 program_transform_name=s,x,x,
98 silent=
99 site=
100 srcdir=
101 target=NONE
102 verbose=
103 x_includes=NONE
104 x_libraries=NONE
105 bindir='${exec_prefix}/bin'
106 sbindir='${exec_prefix}/sbin'
107 libexecdir='${exec_prefix}/libexec'
108 datadir='${prefix}/share'
109 sysconfdir='${prefix}/etc'
110 sharedstatedir='${prefix}/com'
111 localstatedir='${prefix}/var'
112 libdir='${exec_prefix}/lib'
113 includedir='${prefix}/include'
114 oldincludedir='/usr/include'
115 infodir='${prefix}/info'
116 mandir='${prefix}/man'
118 # Initialize some other variables.
119 subdirs=
120 MFLAGS= MAKEFLAGS=
121 SHELL=${CONFIG_SHELL-/bin/sh}
122 # Maximum number of lines to put in a shell here document.
123 ac_max_here_lines=12
125 ac_prev=
126 for ac_option
129 # If the previous option needs an argument, assign it.
130 if test -n "$ac_prev"; then
131 eval "$ac_prev=\$ac_option"
132 ac_prev=
133 continue
136 case "$ac_option" in
137 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
138 *) ac_optarg= ;;
139 esac
141 # Accept the important Cygnus configure options, so we can diagnose typos.
143 case "$ac_option" in
145 -bindir | --bindir | --bindi | --bind | --bin | --bi)
146 ac_prev=bindir ;;
147 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
148 bindir="$ac_optarg" ;;
150 -build | --build | --buil | --bui | --bu)
151 ac_prev=build ;;
152 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
153 build="$ac_optarg" ;;
155 -cache-file | --cache-file | --cache-fil | --cache-fi \
156 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
157 ac_prev=cache_file ;;
158 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
159 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
160 cache_file="$ac_optarg" ;;
162 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
163 ac_prev=datadir ;;
164 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
165 | --da=*)
166 datadir="$ac_optarg" ;;
168 -disable-* | --disable-*)
169 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
170 # Reject names that are not valid shell variable names.
171 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
172 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
174 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
175 eval "enable_${ac_feature}=no" ;;
177 -enable-* | --enable-*)
178 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
179 # Reject names that are not valid shell variable names.
180 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
181 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
183 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
184 case "$ac_option" in
185 *=*) ;;
186 *) ac_optarg=yes ;;
187 esac
188 eval "enable_${ac_feature}='$ac_optarg'" ;;
190 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
191 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
192 | --exec | --exe | --ex)
193 ac_prev=exec_prefix ;;
194 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
195 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
196 | --exec=* | --exe=* | --ex=*)
197 exec_prefix="$ac_optarg" ;;
199 -gas | --gas | --ga | --g)
200 # Obsolete; use --with-gas.
201 with_gas=yes ;;
203 -help | --help | --hel | --he)
204 # Omit some internal or obsolete options to make the list less imposing.
205 # This message is too long to be a string in the A/UX 3.1 sh.
206 cat << EOF
207 Usage: configure [options] [host]
208 Options: [defaults in brackets after descriptions]
209 Configuration:
210 --cache-file=FILE cache test results in FILE
211 --help print this message
212 --no-create do not create output files
213 --quiet, --silent do not print \`checking...' messages
214 --version print the version of autoconf that created configure
215 Directory and file names:
216 --prefix=PREFIX install architecture-independent files in PREFIX
217 [$ac_default_prefix]
218 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
219 [same as prefix]
220 --bindir=DIR user executables in DIR [EPREFIX/bin]
221 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
222 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
223 --datadir=DIR read-only architecture-independent data in DIR
224 [PREFIX/share]
225 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
226 --sharedstatedir=DIR modifiable architecture-independent data in DIR
227 [PREFIX/com]
228 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
229 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
230 --includedir=DIR C header files in DIR [PREFIX/include]
231 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
232 --infodir=DIR info documentation in DIR [PREFIX/info]
233 --mandir=DIR man documentation in DIR [PREFIX/man]
234 --srcdir=DIR find the sources in DIR [configure dir or ..]
235 --program-prefix=PREFIX prepend PREFIX to installed program names
236 --program-suffix=SUFFIX append SUFFIX to installed program names
237 --program-transform-name=PROGRAM
238 run sed PROGRAM on installed program names
240 cat << EOF
241 Host type:
242 --build=BUILD configure for building on BUILD [BUILD=HOST]
243 --host=HOST configure for HOST [guessed]
244 --target=TARGET configure for TARGET [TARGET=HOST]
245 Features and packages:
246 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
247 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
248 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
249 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
250 --x-includes=DIR X include files are in DIR
251 --x-libraries=DIR X library files are in DIR
253 if test -n "$ac_help"; then
254 echo "--enable and --with options recognized:$ac_help"
256 exit 0 ;;
258 -host | --host | --hos | --ho)
259 ac_prev=host ;;
260 -host=* | --host=* | --hos=* | --ho=*)
261 host="$ac_optarg" ;;
263 -includedir | --includedir | --includedi | --included | --include \
264 | --includ | --inclu | --incl | --inc)
265 ac_prev=includedir ;;
266 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
267 | --includ=* | --inclu=* | --incl=* | --inc=*)
268 includedir="$ac_optarg" ;;
270 -infodir | --infodir | --infodi | --infod | --info | --inf)
271 ac_prev=infodir ;;
272 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
273 infodir="$ac_optarg" ;;
275 -libdir | --libdir | --libdi | --libd)
276 ac_prev=libdir ;;
277 -libdir=* | --libdir=* | --libdi=* | --libd=*)
278 libdir="$ac_optarg" ;;
280 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
281 | --libexe | --libex | --libe)
282 ac_prev=libexecdir ;;
283 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
284 | --libexe=* | --libex=* | --libe=*)
285 libexecdir="$ac_optarg" ;;
287 -localstatedir | --localstatedir | --localstatedi | --localstated \
288 | --localstate | --localstat | --localsta | --localst \
289 | --locals | --local | --loca | --loc | --lo)
290 ac_prev=localstatedir ;;
291 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
292 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
293 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
294 localstatedir="$ac_optarg" ;;
296 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
297 ac_prev=mandir ;;
298 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
299 mandir="$ac_optarg" ;;
301 -nfp | --nfp | --nf)
302 # Obsolete; use --without-fp.
303 with_fp=no ;;
305 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
306 | --no-cr | --no-c)
307 no_create=yes ;;
309 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
310 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
311 no_recursion=yes ;;
313 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
314 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
315 | --oldin | --oldi | --old | --ol | --o)
316 ac_prev=oldincludedir ;;
317 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
318 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
319 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
320 oldincludedir="$ac_optarg" ;;
322 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
323 ac_prev=prefix ;;
324 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
325 prefix="$ac_optarg" ;;
327 -program-prefix | --program-prefix | --program-prefi | --program-pref \
328 | --program-pre | --program-pr | --program-p)
329 ac_prev=program_prefix ;;
330 -program-prefix=* | --program-prefix=* | --program-prefi=* \
331 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
332 program_prefix="$ac_optarg" ;;
334 -program-suffix | --program-suffix | --program-suffi | --program-suff \
335 | --program-suf | --program-su | --program-s)
336 ac_prev=program_suffix ;;
337 -program-suffix=* | --program-suffix=* | --program-suffi=* \
338 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
339 program_suffix="$ac_optarg" ;;
341 -program-transform-name | --program-transform-name \
342 | --program-transform-nam | --program-transform-na \
343 | --program-transform-n | --program-transform- \
344 | --program-transform | --program-transfor \
345 | --program-transfo | --program-transf \
346 | --program-trans | --program-tran \
347 | --progr-tra | --program-tr | --program-t)
348 ac_prev=program_transform_name ;;
349 -program-transform-name=* | --program-transform-name=* \
350 | --program-transform-nam=* | --program-transform-na=* \
351 | --program-transform-n=* | --program-transform-=* \
352 | --program-transform=* | --program-transfor=* \
353 | --program-transfo=* | --program-transf=* \
354 | --program-trans=* | --program-tran=* \
355 | --progr-tra=* | --program-tr=* | --program-t=*)
356 program_transform_name="$ac_optarg" ;;
358 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
359 | -silent | --silent | --silen | --sile | --sil)
360 silent=yes ;;
362 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
363 ac_prev=sbindir ;;
364 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
365 | --sbi=* | --sb=*)
366 sbindir="$ac_optarg" ;;
368 -sharedstatedir | --sharedstatedir | --sharedstatedi \
369 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
370 | --sharedst | --shareds | --shared | --share | --shar \
371 | --sha | --sh)
372 ac_prev=sharedstatedir ;;
373 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
374 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
375 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
376 | --sha=* | --sh=*)
377 sharedstatedir="$ac_optarg" ;;
379 -site | --site | --sit)
380 ac_prev=site ;;
381 -site=* | --site=* | --sit=*)
382 site="$ac_optarg" ;;
384 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
385 ac_prev=srcdir ;;
386 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
387 srcdir="$ac_optarg" ;;
389 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
390 | --syscon | --sysco | --sysc | --sys | --sy)
391 ac_prev=sysconfdir ;;
392 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
393 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
394 sysconfdir="$ac_optarg" ;;
396 -target | --target | --targe | --targ | --tar | --ta | --t)
397 ac_prev=target ;;
398 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
399 target="$ac_optarg" ;;
401 -v | -verbose | --verbose | --verbos | --verbo | --verb)
402 verbose=yes ;;
404 -version | --version | --versio | --versi | --vers)
405 echo "configure generated by autoconf version 2.13"
406 exit 0 ;;
408 -with-* | --with-*)
409 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
410 # Reject names that are not valid shell variable names.
411 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
412 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
414 ac_package=`echo $ac_package| sed 's/-/_/g'`
415 case "$ac_option" in
416 *=*) ;;
417 *) ac_optarg=yes ;;
418 esac
419 eval "with_${ac_package}='$ac_optarg'" ;;
421 -without-* | --without-*)
422 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
423 # Reject names that are not valid shell variable names.
424 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
425 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
427 ac_package=`echo $ac_package| sed 's/-/_/g'`
428 eval "with_${ac_package}=no" ;;
430 --x)
431 # Obsolete; use --with-x.
432 with_x=yes ;;
434 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
435 | --x-incl | --x-inc | --x-in | --x-i)
436 ac_prev=x_includes ;;
437 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
438 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
439 x_includes="$ac_optarg" ;;
441 -x-libraries | --x-libraries | --x-librarie | --x-librari \
442 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
443 ac_prev=x_libraries ;;
444 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
445 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
446 x_libraries="$ac_optarg" ;;
448 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
452 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
453 echo "configure: warning: $ac_option: invalid host type" 1>&2
455 if test "x$nonopt" != xNONE; then
456 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
458 nonopt="$ac_option"
461 esac
462 done
464 if test -n "$ac_prev"; then
465 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
468 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
470 # File descriptor usage:
471 # 0 standard input
472 # 1 file creation
473 # 2 errors and warnings
474 # 3 some systems may open it to /dev/tty
475 # 4 used on the Kubota Titan
476 # 6 checking for... messages and results
477 # 5 compiler messages saved in config.log
478 if test "$silent" = yes; then
479 exec 6>/dev/null
480 else
481 exec 6>&1
483 exec 5>./config.log
485 echo "\
486 This file contains any messages produced by compilers while
487 running configure, to aid debugging if configure makes a mistake.
488 " 1>&5
490 # Strip out --no-create and --no-recursion so they do not pile up.
491 # Also quote any args containing shell metacharacters.
492 ac_configure_args=
493 for ac_arg
495 case "$ac_arg" in
496 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
497 | --no-cr | --no-c) ;;
498 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
499 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
500 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
501 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
502 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
503 esac
504 done
506 # NLS nuisances.
507 # Only set these to C if already set. These must not be set unconditionally
508 # because not all systems understand e.g. LANG=C (notably SCO).
509 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
510 # Non-C LC_CTYPE values break the ctype check.
511 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
512 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
513 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
514 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
516 # confdefs.h avoids OS command line length limits that DEFS can exceed.
517 rm -rf conftest* confdefs.h
518 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
519 echo > confdefs.h
521 # A filename unique to this package, relative to the directory that
522 # configure is in, which we can look for to find out if srcdir is correct.
523 ac_unique_file=include/includes.h
525 # Find the source files, if location was not specified.
526 if test -z "$srcdir"; then
527 ac_srcdir_defaulted=yes
528 # Try the directory containing this script, then its parent.
529 ac_prog=$0
530 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
531 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
532 srcdir=$ac_confdir
533 if test ! -r $srcdir/$ac_unique_file; then
534 srcdir=..
536 else
537 ac_srcdir_defaulted=no
539 if test ! -r $srcdir/$ac_unique_file; then
540 if test "$ac_srcdir_defaulted" = yes; then
541 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
542 else
543 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
546 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
548 # Prefer explicitly selected file to automatically selected ones.
549 if test -z "$CONFIG_SITE"; then
550 if test "x$prefix" != xNONE; then
551 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
552 else
553 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
556 for ac_site_file in $CONFIG_SITE; do
557 if test -r "$ac_site_file"; then
558 echo "loading site script $ac_site_file"
559 . "$ac_site_file"
561 done
563 if test -r "$cache_file"; then
564 echo "loading cache $cache_file"
565 . $cache_file
566 else
567 echo "creating cache $cache_file"
568 > $cache_file
571 ac_ext=c
572 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
573 ac_cpp='$CPP $CPPFLAGS'
574 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
575 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
576 cross_compiling=$ac_cv_prog_cc_cross
578 ac_exeext=
579 ac_objext=o
580 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
581 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
582 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
583 ac_n= ac_c='
584 ' ac_t=' '
585 else
586 ac_n=-n ac_c= ac_t=
588 else
589 ac_n= ac_c='\c' ac_t=
595 #################################################
596 # Directory handling stuff to support both the
597 # legacy SAMBA directories and FHS compliant
598 # ones...
601 # Check whether --with-fhs or --without-fhs was given.
602 if test "${with_fhs+set}" = set; then
603 withval="$with_fhs"
604 codepagedir="\$(DATADIR)/samba/codepages"
605 configdir="${sysconfdir}/samba"
606 lockdir="\${VARDIR}/cache/samba"
607 logfilebase="\${VARDIR}/log/samba"
608 privatedir="\${CONFIGDIR}/private"
609 swatdir="\${DATADIR}/samba/swat"
610 else
611 codepagedir="\$(LIBDIR)/codepages"
612 configdir="\$(LIBDIR)"
613 lockdir="\$(VARDIR)/locks"
614 logfilebase="\$(VARDIR)"
615 privatedir="\${prefix}/private"
616 swatdir="\${prefix}/swat"
620 #################################################
621 # set private directory location
622 # Check whether --with-privatedir or --without-privatedir was given.
623 if test "${with_privatedir+set}" = set; then
624 withval="$with_privatedir"
625 case "$withval" in
626 yes|no)
628 # Just in case anybody calls it without argument
630 echo "configure: warning: --with-privatedir called without argument - will use default" 1>&2
633 privatedir="$withval"
635 esac
639 #################################################
640 # set lock directory location
641 # Check whether --with-lockdir or --without-lockdir was given.
642 if test "${with_lockdir+set}" = set; then
643 withval="$with_lockdir"
644 case "$withval" in
645 yes|no)
647 # Just in case anybody calls it without argument
649 echo "configure: warning: --with-lockdir called without argument - will use default" 1>&2
652 lockdir="$withval"
654 esac
658 #################################################
659 # set SWAT directory location
660 # Check whether --with-swatdir or --without-swatdir was given.
661 if test "${with_swatdir+set}" = set; then
662 withval="$with_swatdir"
663 case "$withval" in
664 yes|no)
666 # Just in case anybody does it
668 echo "configure: warning: --with-swatdir called without argument - will use default" 1>&2
671 swatdir="$withval"
673 esac
677 #################################################
678 # set configuration directory location
679 # Check whether --with-configdir or --without-configdir was given.
680 if test "${with_configdir+set}" = set; then
681 withval="$with_configdir"
682 case "$withval" in
683 yes|no)
685 # Just in case anybody does it
687 echo "configure: warning: --with-configdir called without argument - will use default" 1>&2
690 configdir="$withval"
692 esac
696 #################################################
697 # set codepage directory location
698 # Check whether --with-codepagedir or --without-codepagedir was given.
699 if test "${with_codepagedir+set}" = set; then
700 withval="$with_codepagedir"
701 case "$withval" in
702 yes|no)
704 # Just in case anybody does it
706 echo "configure: warning: --with-codepagedir called without argument - will use default" 1>&2
709 codepagedir="$withval"
711 esac
715 #################################################
716 # set log directory location
717 # Check whether --with-logfilebase or --without-logfilebase was given.
718 if test "${with_logfilebase+set}" = set; then
719 withval="$with_logfilebase"
720 case "$withval" in
721 yes|no)
723 # Just in case anybody does it
725 echo "configure: warning: --with-logfilebase called without argument - will use default" 1>&2
728 logfilebase="$withval"
730 esac
761 # compile with optimization and without debugging by default
762 CFLAGS="-O ${CFLAGS}"
764 # Check whether --enable-debug or --disable-debug was given.
765 if test "${enable_debug+set}" = set; then
766 enableval="$enable_debug"
767 if eval "test x$enable_debug = xyes"; then
768 CFLAGS="${CFLAGS} -g"
775 # Extract the first word of "gcc", so it can be a program name with args.
776 set dummy gcc; ac_word=$2
777 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
778 echo "configure:779: checking for $ac_word" >&5
779 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
780 echo $ac_n "(cached) $ac_c" 1>&6
781 else
782 if test -n "$CC"; then
783 ac_cv_prog_CC="$CC" # Let the user override the test.
784 else
785 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
786 ac_dummy="$PATH"
787 for ac_dir in $ac_dummy; do
788 test -z "$ac_dir" && ac_dir=.
789 if test -f $ac_dir/$ac_word; then
790 ac_cv_prog_CC="gcc"
791 break
793 done
794 IFS="$ac_save_ifs"
797 CC="$ac_cv_prog_CC"
798 if test -n "$CC"; then
799 echo "$ac_t""$CC" 1>&6
800 else
801 echo "$ac_t""no" 1>&6
804 if test -z "$CC"; then
805 # Extract the first word of "cc", so it can be a program name with args.
806 set dummy cc; ac_word=$2
807 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
808 echo "configure:809: checking for $ac_word" >&5
809 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
810 echo $ac_n "(cached) $ac_c" 1>&6
811 else
812 if test -n "$CC"; then
813 ac_cv_prog_CC="$CC" # Let the user override the test.
814 else
815 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
816 ac_prog_rejected=no
817 ac_dummy="$PATH"
818 for ac_dir in $ac_dummy; do
819 test -z "$ac_dir" && ac_dir=.
820 if test -f $ac_dir/$ac_word; then
821 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
822 ac_prog_rejected=yes
823 continue
825 ac_cv_prog_CC="cc"
826 break
828 done
829 IFS="$ac_save_ifs"
830 if test $ac_prog_rejected = yes; then
831 # We found a bogon in the path, so make sure we never use it.
832 set dummy $ac_cv_prog_CC
833 shift
834 if test $# -gt 0; then
835 # We chose a different compiler from the bogus one.
836 # However, it has the same basename, so the bogon will be chosen
837 # first if we set CC to just the basename; use the full file name.
838 shift
839 set dummy "$ac_dir/$ac_word" "$@"
840 shift
841 ac_cv_prog_CC="$@"
846 CC="$ac_cv_prog_CC"
847 if test -n "$CC"; then
848 echo "$ac_t""$CC" 1>&6
849 else
850 echo "$ac_t""no" 1>&6
853 if test -z "$CC"; then
854 case "`uname -s`" in
855 *win32* | *WIN32*)
856 # Extract the first word of "cl", so it can be a program name with args.
857 set dummy cl; ac_word=$2
858 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
859 echo "configure:860: checking for $ac_word" >&5
860 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
861 echo $ac_n "(cached) $ac_c" 1>&6
862 else
863 if test -n "$CC"; then
864 ac_cv_prog_CC="$CC" # Let the user override the test.
865 else
866 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
867 ac_dummy="$PATH"
868 for ac_dir in $ac_dummy; do
869 test -z "$ac_dir" && ac_dir=.
870 if test -f $ac_dir/$ac_word; then
871 ac_cv_prog_CC="cl"
872 break
874 done
875 IFS="$ac_save_ifs"
878 CC="$ac_cv_prog_CC"
879 if test -n "$CC"; then
880 echo "$ac_t""$CC" 1>&6
881 else
882 echo "$ac_t""no" 1>&6
885 esac
887 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
890 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
891 echo "configure:892: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
893 ac_ext=c
894 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
895 ac_cpp='$CPP $CPPFLAGS'
896 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
897 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
898 cross_compiling=$ac_cv_prog_cc_cross
900 cat > conftest.$ac_ext << EOF
902 #line 903 "configure"
903 #include "confdefs.h"
905 main(){return(0);}
907 if { (eval echo configure:908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
908 ac_cv_prog_cc_works=yes
909 # If we can't run a trivial program, we are probably using a cross compiler.
910 if (./conftest; exit) 2>/dev/null; then
911 ac_cv_prog_cc_cross=no
912 else
913 ac_cv_prog_cc_cross=yes
915 else
916 echo "configure: failed program was:" >&5
917 cat conftest.$ac_ext >&5
918 ac_cv_prog_cc_works=no
920 rm -fr conftest*
921 ac_ext=c
922 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
923 ac_cpp='$CPP $CPPFLAGS'
924 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
925 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
926 cross_compiling=$ac_cv_prog_cc_cross
928 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
929 if test $ac_cv_prog_cc_works = no; then
930 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
932 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
933 echo "configure:934: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
934 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
935 cross_compiling=$ac_cv_prog_cc_cross
937 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
938 echo "configure:939: checking whether we are using GNU C" >&5
939 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
940 echo $ac_n "(cached) $ac_c" 1>&6
941 else
942 cat > conftest.c <<EOF
943 #ifdef __GNUC__
944 yes;
945 #endif
947 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:948: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
948 ac_cv_prog_gcc=yes
949 else
950 ac_cv_prog_gcc=no
954 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
956 if test $ac_cv_prog_gcc = yes; then
957 GCC=yes
958 else
959 GCC=
962 ac_test_CFLAGS="${CFLAGS+set}"
963 ac_save_CFLAGS="$CFLAGS"
964 CFLAGS=
965 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
966 echo "configure:967: checking whether ${CC-cc} accepts -g" >&5
967 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
968 echo $ac_n "(cached) $ac_c" 1>&6
969 else
970 echo 'void f(){}' > conftest.c
971 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
972 ac_cv_prog_cc_g=yes
973 else
974 ac_cv_prog_cc_g=no
976 rm -f conftest*
980 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
981 if test "$ac_test_CFLAGS" = set; then
982 CFLAGS="$ac_save_CFLAGS"
983 elif test $ac_cv_prog_cc_g = yes; then
984 if test "$GCC" = yes; then
985 CFLAGS="-g -O2"
986 else
987 CFLAGS="-g"
989 else
990 if test "$GCC" = yes; then
991 CFLAGS="-O2"
992 else
993 CFLAGS=
997 ac_aux_dir=
998 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
999 if test -f $ac_dir/install-sh; then
1000 ac_aux_dir=$ac_dir
1001 ac_install_sh="$ac_aux_dir/install-sh -c"
1002 break
1003 elif test -f $ac_dir/install.sh; then
1004 ac_aux_dir=$ac_dir
1005 ac_install_sh="$ac_aux_dir/install.sh -c"
1006 break
1008 done
1009 if test -z "$ac_aux_dir"; then
1010 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1012 ac_config_guess=$ac_aux_dir/config.guess
1013 ac_config_sub=$ac_aux_dir/config.sub
1014 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1016 # Find a good install program. We prefer a C program (faster),
1017 # so one script is as good as another. But avoid the broken or
1018 # incompatible versions:
1019 # SysV /etc/install, /usr/sbin/install
1020 # SunOS /usr/etc/install
1021 # IRIX /sbin/install
1022 # AIX /bin/install
1023 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1024 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1025 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1026 # ./install, which can be erroneously created by make from ./install.sh.
1027 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1028 echo "configure:1029: checking for a BSD compatible install" >&5
1029 if test -z "$INSTALL"; then
1030 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1031 echo $ac_n "(cached) $ac_c" 1>&6
1032 else
1033 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1034 for ac_dir in $PATH; do
1035 # Account for people who put trailing slashes in PATH elements.
1036 case "$ac_dir/" in
1037 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1039 # OSF1 and SCO ODT 3.0 have their own names for install.
1040 # Don't use installbsd from OSF since it installs stuff as root
1041 # by default.
1042 for ac_prog in ginstall scoinst install; do
1043 if test -f $ac_dir/$ac_prog; then
1044 if test $ac_prog = install &&
1045 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1046 # AIX install. It has an incompatible calling convention.
1048 else
1049 ac_cv_path_install="$ac_dir/$ac_prog -c"
1050 break 2
1053 done
1055 esac
1056 done
1057 IFS="$ac_save_IFS"
1060 if test "${ac_cv_path_install+set}" = set; then
1061 INSTALL="$ac_cv_path_install"
1062 else
1063 # As a last resort, use the slow shell script. We don't cache a
1064 # path for INSTALL within a source directory, because that will
1065 # break other packages using the cache if that directory is
1066 # removed, or if the path is relative.
1067 INSTALL="$ac_install_sh"
1070 echo "$ac_t""$INSTALL" 1>&6
1072 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1073 # It thinks the first close brace ends the variable substitution.
1074 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1076 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1078 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1080 for ac_prog in mawk gawk nawk awk
1082 # Extract the first word of "$ac_prog", so it can be a program name with args.
1083 set dummy $ac_prog; ac_word=$2
1084 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1085 echo "configure:1086: checking for $ac_word" >&5
1086 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1087 echo $ac_n "(cached) $ac_c" 1>&6
1088 else
1089 if test -n "$AWK"; then
1090 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1091 else
1092 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1093 ac_dummy="$PATH"
1094 for ac_dir in $ac_dummy; do
1095 test -z "$ac_dir" && ac_dir=.
1096 if test -f $ac_dir/$ac_word; then
1097 ac_cv_prog_AWK="$ac_prog"
1098 break
1100 done
1101 IFS="$ac_save_ifs"
1104 AWK="$ac_cv_prog_AWK"
1105 if test -n "$AWK"; then
1106 echo "$ac_t""$AWK" 1>&6
1107 else
1108 echo "$ac_t""no" 1>&6
1111 test -n "$AWK" && break
1112 done
1115 if test "x$CC" != xcc; then
1116 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1117 echo "configure:1118: checking whether $CC and cc understand -c and -o together" >&5
1118 else
1119 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1120 echo "configure:1121: checking whether cc understands -c and -o together" >&5
1122 set dummy $CC; ac_cc="`echo $2 |
1123 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1124 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1125 echo $ac_n "(cached) $ac_c" 1>&6
1126 else
1127 echo 'foo(){}' > conftest.c
1128 # Make sure it works both with $CC and with simple cc.
1129 # We do the test twice because some compilers refuse to overwrite an
1130 # existing .o file with -o, though they will create one.
1131 ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1132 if { (eval echo configure:1133: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1133 test -f conftest.o && { (eval echo configure:1134: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1134 then
1135 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
1136 if test "x$CC" != xcc; then
1137 # Test first that cc exists at all.
1138 if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:1139: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1139 ac_try='cc -c conftest.c -o conftest.o 1>&5'
1140 if { (eval echo configure:1141: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1141 test -f conftest.o && { (eval echo configure:1142: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1142 then
1143 # cc works too.
1145 else
1146 # cc exists but doesn't like -o.
1147 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1151 else
1152 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1154 rm -f conftest*
1157 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1158 echo "$ac_t""yes" 1>&6
1159 else
1160 echo "$ac_t""no" 1>&6
1161 cat >> confdefs.h <<\EOF
1162 #define NO_MINUS_C_MINUS_O 1
1167 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1168 BROKEN_CC=
1169 else
1170 BROKEN_CC=#
1174 echo $ac_n "checking that the C compiler understands volatile""... $ac_c" 1>&6
1175 echo "configure:1176: checking that the C compiler understands volatile" >&5
1176 if eval "test \"`echo '$''{'samba_cv_volatile'+set}'`\" = set"; then
1177 echo $ac_n "(cached) $ac_c" 1>&6
1178 else
1180 cat > conftest.$ac_ext <<EOF
1181 #line 1182 "configure"
1182 #include "confdefs.h"
1183 #include <sys/types.h>
1184 int main() {
1185 volatile int i = 0
1186 ; return 0; }
1188 if { (eval echo configure:1189: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1189 rm -rf conftest*
1190 samba_cv_volatile=yes
1191 else
1192 echo "configure: failed program was:" >&5
1193 cat conftest.$ac_ext >&5
1194 rm -rf conftest*
1195 samba_cv_volatile=no
1197 rm -f conftest*
1200 echo "$ac_t""$samba_cv_volatile" 1>&6
1201 if test x"$samba_cv_volatile" = x"yes"; then
1202 cat >> confdefs.h <<\EOF
1203 #define HAVE_VOLATILE 1
1211 # Do some error checking and defaulting for the host and target type.
1212 # The inputs are:
1213 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1215 # The rules are:
1216 # 1. You are not allowed to specify --host, --target, and nonopt at the
1217 # same time.
1218 # 2. Host defaults to nonopt.
1219 # 3. If nonopt is not specified, then host defaults to the current host,
1220 # as determined by config.guess.
1221 # 4. Target and build default to nonopt.
1222 # 5. If nonopt is not specified, then target and build default to host.
1224 # The aliases save the names the user supplied, while $host etc.
1225 # will get canonicalized.
1226 case $host---$target---$nonopt in
1227 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1228 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1229 esac
1232 # Make sure we can run config.sub.
1233 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1234 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1237 echo $ac_n "checking host system type""... $ac_c" 1>&6
1238 echo "configure:1239: checking host system type" >&5
1240 host_alias=$host
1241 case "$host_alias" in
1242 NONE)
1243 case $nonopt in
1244 NONE)
1245 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1246 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1247 fi ;;
1248 *) host_alias=$nonopt ;;
1249 esac ;;
1250 esac
1252 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1253 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1254 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1255 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1256 echo "$ac_t""$host" 1>&6
1258 echo $ac_n "checking target system type""... $ac_c" 1>&6
1259 echo "configure:1260: checking target system type" >&5
1261 target_alias=$target
1262 case "$target_alias" in
1263 NONE)
1264 case $nonopt in
1265 NONE) target_alias=$host_alias ;;
1266 *) target_alias=$nonopt ;;
1267 esac ;;
1268 esac
1270 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1271 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1272 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1273 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1274 echo "$ac_t""$target" 1>&6
1276 echo $ac_n "checking build system type""... $ac_c" 1>&6
1277 echo "configure:1278: checking build system type" >&5
1279 build_alias=$build
1280 case "$build_alias" in
1281 NONE)
1282 case $nonopt in
1283 NONE) build_alias=$host_alias ;;
1284 *) build_alias=$nonopt ;;
1285 esac ;;
1286 esac
1288 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1289 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1290 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1291 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1292 echo "$ac_t""$build" 1>&6
1294 test "$host_alias" != "$target_alias" &&
1295 test "$program_prefix$program_suffix$program_transform_name" = \
1296 NONENONEs,x,x, &&
1297 program_prefix=${target_alias}-
1300 case "$host_os" in
1301 *irix6*) cat >> confdefs.h <<\EOF
1302 #include <standards.h>
1306 esac
1310 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
1311 echo "configure:1312: checking config.cache system type" >&5
1312 if { test x"${ac_cv_host_system_type+set}" = x"set" &&
1313 test x"$ac_cv_host_system_type" != x"$host"; } ||
1314 { test x"${ac_cv_build_system_type+set}" = x"set" &&
1315 test x"$ac_cv_build_system_type" != x"$build"; } ||
1316 { test x"${ac_cv_target_system_type+set}" = x"set" &&
1317 test x"$ac_cv_target_system_type" != x"$target"; }; then
1318 echo "$ac_t""different" 1>&6
1319 { echo "configure: error: "you must remove config.cache and restart configure"" 1>&2; exit 1; }
1320 else
1321 echo "$ac_t""same" 1>&6
1323 ac_cv_host_system_type="$host"
1324 ac_cv_build_system_type="$build"
1325 ac_cv_target_system_type="$target"
1329 # Config CPPFLAG settings for strange OS's that must be set
1330 # before other tests.
1332 case "$host_os" in
1333 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1334 *hpux*)
1335 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1336 echo "configure:1337: checking whether ${CC-cc} accepts -Ae" >&5
1337 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1338 echo $ac_n "(cached) $ac_c" 1>&6
1339 else
1340 echo 'void f(){}' > conftest.c
1341 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1342 ac_cv_prog_cc_Ae=yes
1343 else
1344 ac_cv_prog_cc_Ae=no
1346 rm -f conftest*
1350 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1351 # mmap on HPUX is completely broken...
1352 cat >> confdefs.h <<\EOF
1353 #define MMAP_BLACKLIST 1
1356 if test $ac_cv_prog_cc_Ae = yes; then
1357 CPPFLAGS="$CPPFLAGS -Ae"
1360 # Defines needed for HPUX support.
1361 # HPUX has bigcrypt but (sometimes?) doesn't use it for
1362 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
1364 case `uname -r` in
1365 *9*|*10*)
1366 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4"
1367 cat >> confdefs.h <<\EOF
1368 #define USE_BOTH_CRYPT_CALLS 1
1372 *11*)
1373 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4"
1374 cat >> confdefs.h <<\EOF
1375 #define USE_BOTH_CRYPT_CALLS 1
1379 esac
1384 # CRAY Unicos has broken const handling
1385 *unicos*)
1386 echo "$ac_t""disabling const" 1>&6
1387 CPPFLAGS="$CPPFLAGS -Dconst="
1391 # AIX4.x doesn't even admit to having large
1392 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1394 *aix4*)
1395 echo "$ac_t""enabling large file support" 1>&6
1396 CPPFLAGS="$CPPFLAGS -D_LARGE_FILES"
1399 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
1400 # to the existance of large files..
1401 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
1402 # recommendations on large file support, however it makes the
1403 # compile work using gcc 2.7 and 2.8, whereas using the Sun
1404 # recommendation makes the compile fail on gcc2.7. JRA.
1406 *solaris*)
1407 case `uname -r` in
1408 5.0*|5.1*|5.2*|5.3*|5.5*)
1409 echo "$ac_t""no large file support" 1>&6
1411 5.*)
1412 echo "$ac_t""enabling large file support" 1>&6
1413 if test "$ac_cv_prog_gcc" = yes; then
1414 ${CC-cc} -v >conftest.c 2>&1
1415 ac_cv_gcc_compiler_version_number=`grep 'gcc version' conftest.c`
1416 rm -fr conftest.c
1417 case "$ac_cv_gcc_compiler_version_number" in
1418 *"gcc version 2.6"*|*"gcc version 2.7"*)
1419 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
1422 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1424 esac
1425 else
1426 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1429 esac
1432 # Tests needed for SINIX large file support.
1434 *sysv4*)
1435 if test $host = mips-sni-sysv4 ; then
1436 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1437 echo "configure:1438: checking for LFS support" >&5
1438 old_CPPFLAGS="$CPPFLAGS"
1439 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1440 if test "$cross_compiling" = yes; then
1441 SINIX_LFS_SUPPORT=cross
1442 else
1443 cat > conftest.$ac_ext <<EOF
1444 #line 1445 "configure"
1445 #include "confdefs.h"
1447 #include <unistd.h>
1448 main () {
1449 #if _LFS64_LARGEFILE == 1
1450 exit(0);
1451 #else
1452 exit(1);
1453 #endif
1456 if { (eval echo configure:1457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1457 then
1458 SINIX_LFS_SUPPORT=yes
1459 else
1460 echo "configure: failed program was:" >&5
1461 cat conftest.$ac_ext >&5
1462 rm -fr conftest*
1463 SINIX_LFS_SUPPORT=no
1465 rm -fr conftest*
1468 CPPFLAGS="$old_CPPFLAGS"
1469 if test x$SINIX_LFS_SUPPORT = xyes ; then
1470 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1471 CFLAGS="`getconf LFS64_CFLAGS` $CFLAGS"
1472 LDFLAGS="`getconf LFS64_LDFLAGS` $LDFLAGS"
1473 LIBS="`getconf LFS64_LIBS` $LIBS"
1475 echo "$ac_t""$SINIX_LFS_SUPPORT" 1>&6
1479 # Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
1481 *linux*)
1482 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1483 echo "configure:1484: checking for LFS support" >&5
1484 old_CPPFLAGS="$CPPFLAGS"
1485 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1486 if test "$cross_compiling" = yes; then
1487 LINUX_LFS_SUPPORT=cross
1488 else
1489 cat > conftest.$ac_ext <<EOF
1490 #line 1491 "configure"
1491 #include "confdefs.h"
1493 #include <unistd.h>
1494 #include <sys/utsname.h>
1495 main() {
1496 #if _LFS64_LARGEFILE == 1
1497 struct utsname uts;
1498 char *release;
1499 int major, minor;
1501 /* Ensure this is glibc 2.2 or higher */
1502 #if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
1503 int libc_major = __GLIBC__;
1504 int libc_minor = __GLIBC_MINOR__;
1506 if (libc_major < 2)
1507 exit(1);
1508 if (libc_minor < 2)
1509 exit(1);
1510 #endif
1512 /* Ensure this is kernel 2.4 or higher */
1514 uname(&uts);
1515 release = uts.release;
1516 major = atoi(strsep(&release, "."));
1517 minor = atoi(strsep(&release, "."));
1519 if (major > 2 || (major == 2 && minor > 3))
1520 exit(0);
1521 exit(1);
1522 #else
1523 exit(1);
1524 #endif
1528 if { (eval echo configure:1529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1529 then
1530 LINUX_LFS_SUPPORT=yes
1531 else
1532 echo "configure: failed program was:" >&5
1533 cat conftest.$ac_ext >&5
1534 rm -fr conftest*
1535 LINUX_LFS_SUPPORT=no
1537 rm -fr conftest*
1540 CPPFLAGS="$old_CPPFLAGS"
1541 if test x$LINUX_LFS_SUPPORT = xyes ; then
1542 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1544 echo "$ac_t""$LINUX_LFS_SUPPORT" 1>&6
1547 *hurd*)
1548 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1549 echo "configure:1550: checking for LFS support" >&5
1550 old_CPPFLAGS="$CPPFLAGS"
1551 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1552 if test "$cross_compiling" = yes; then
1553 GLIBC_LFS_SUPPORT=cross
1554 else
1555 cat > conftest.$ac_ext <<EOF
1556 #line 1557 "configure"
1557 #include "confdefs.h"
1559 #include <unistd.h>
1560 main () {
1561 #if _LFS64_LARGEFILE == 1
1562 exit(0);
1563 #else
1564 exit(1);
1565 #endif
1568 if { (eval echo configure:1569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1569 then
1570 GLIBC_LFS_SUPPORT=yes
1571 else
1572 echo "configure: failed program was:" >&5
1573 cat conftest.$ac_ext >&5
1574 rm -fr conftest*
1575 GLIBC_LFS_SUPPORT=no
1577 rm -fr conftest*
1580 CPPFLAGS="$old_CPPFLAGS"
1581 if test x$GLIBC_LFS_SUPPORT = xyes ; then
1582 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1584 echo "$ac_t""$GLIBC_LFS_SUPPORT" 1>&6
1587 esac
1589 echo $ac_n "checking for inline""... $ac_c" 1>&6
1590 echo "configure:1591: checking for inline" >&5
1591 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1592 echo $ac_n "(cached) $ac_c" 1>&6
1593 else
1594 ac_cv_c_inline=no
1595 for ac_kw in inline __inline__ __inline; do
1596 cat > conftest.$ac_ext <<EOF
1597 #line 1598 "configure"
1598 #include "confdefs.h"
1600 int main() {
1601 } $ac_kw foo() {
1602 ; return 0; }
1604 if { (eval echo configure:1605: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1605 rm -rf conftest*
1606 ac_cv_c_inline=$ac_kw; break
1607 else
1608 echo "configure: failed program was:" >&5
1609 cat conftest.$ac_ext >&5
1611 rm -f conftest*
1612 done
1616 echo "$ac_t""$ac_cv_c_inline" 1>&6
1617 case "$ac_cv_c_inline" in
1618 inline | yes) ;;
1619 no) cat >> confdefs.h <<\EOF
1620 #define inline
1623 *) cat >> confdefs.h <<EOF
1624 #define inline $ac_cv_c_inline
1627 esac
1629 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1630 echo "configure:1631: checking how to run the C preprocessor" >&5
1631 # On Suns, sometimes $CPP names a directory.
1632 if test -n "$CPP" && test -d "$CPP"; then
1633 CPP=
1635 if test -z "$CPP"; then
1636 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1637 echo $ac_n "(cached) $ac_c" 1>&6
1638 else
1639 # This must be in double quotes, not single quotes, because CPP may get
1640 # substituted into the Makefile and "${CC-cc}" will confuse make.
1641 CPP="${CC-cc} -E"
1642 # On the NeXT, cc -E runs the code through the compiler's parser,
1643 # not just through cpp.
1644 cat > conftest.$ac_ext <<EOF
1645 #line 1646 "configure"
1646 #include "confdefs.h"
1647 #include <assert.h>
1648 Syntax Error
1650 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1651 { (eval echo configure:1652: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1652 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1653 if test -z "$ac_err"; then
1655 else
1656 echo "$ac_err" >&5
1657 echo "configure: failed program was:" >&5
1658 cat conftest.$ac_ext >&5
1659 rm -rf conftest*
1660 CPP="${CC-cc} -E -traditional-cpp"
1661 cat > conftest.$ac_ext <<EOF
1662 #line 1663 "configure"
1663 #include "confdefs.h"
1664 #include <assert.h>
1665 Syntax Error
1667 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1668 { (eval echo configure:1669: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1669 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1670 if test -z "$ac_err"; then
1672 else
1673 echo "$ac_err" >&5
1674 echo "configure: failed program was:" >&5
1675 cat conftest.$ac_ext >&5
1676 rm -rf conftest*
1677 CPP="${CC-cc} -nologo -E"
1678 cat > conftest.$ac_ext <<EOF
1679 #line 1680 "configure"
1680 #include "confdefs.h"
1681 #include <assert.h>
1682 Syntax Error
1684 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1685 { (eval echo configure:1686: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1686 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1687 if test -z "$ac_err"; then
1689 else
1690 echo "$ac_err" >&5
1691 echo "configure: failed program was:" >&5
1692 cat conftest.$ac_ext >&5
1693 rm -rf conftest*
1694 CPP=/lib/cpp
1696 rm -f conftest*
1698 rm -f conftest*
1700 rm -f conftest*
1701 ac_cv_prog_CPP="$CPP"
1703 CPP="$ac_cv_prog_CPP"
1704 else
1705 ac_cv_prog_CPP="$CPP"
1707 echo "$ac_t""$CPP" 1>&6
1709 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1710 echo "configure:1711: checking for ANSI C header files" >&5
1711 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1712 echo $ac_n "(cached) $ac_c" 1>&6
1713 else
1714 cat > conftest.$ac_ext <<EOF
1715 #line 1716 "configure"
1716 #include "confdefs.h"
1717 #include <stdlib.h>
1718 #include <stdarg.h>
1719 #include <string.h>
1720 #include <float.h>
1722 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1723 { (eval echo configure:1724: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1724 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1725 if test -z "$ac_err"; then
1726 rm -rf conftest*
1727 ac_cv_header_stdc=yes
1728 else
1729 echo "$ac_err" >&5
1730 echo "configure: failed program was:" >&5
1731 cat conftest.$ac_ext >&5
1732 rm -rf conftest*
1733 ac_cv_header_stdc=no
1735 rm -f conftest*
1737 if test $ac_cv_header_stdc = yes; then
1738 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1739 cat > conftest.$ac_ext <<EOF
1740 #line 1741 "configure"
1741 #include "confdefs.h"
1742 #include <string.h>
1744 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1745 egrep "memchr" >/dev/null 2>&1; then
1747 else
1748 rm -rf conftest*
1749 ac_cv_header_stdc=no
1751 rm -f conftest*
1755 if test $ac_cv_header_stdc = yes; then
1756 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1757 cat > conftest.$ac_ext <<EOF
1758 #line 1759 "configure"
1759 #include "confdefs.h"
1760 #include <stdlib.h>
1762 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1763 egrep "free" >/dev/null 2>&1; then
1765 else
1766 rm -rf conftest*
1767 ac_cv_header_stdc=no
1769 rm -f conftest*
1773 if test $ac_cv_header_stdc = yes; then
1774 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1775 if test "$cross_compiling" = yes; then
1777 else
1778 cat > conftest.$ac_ext <<EOF
1779 #line 1780 "configure"
1780 #include "confdefs.h"
1781 #include <ctype.h>
1782 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1783 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1784 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1785 int main () { int i; for (i = 0; i < 256; i++)
1786 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1787 exit (0); }
1790 if { (eval echo configure:1791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1791 then
1793 else
1794 echo "configure: failed program was:" >&5
1795 cat conftest.$ac_ext >&5
1796 rm -fr conftest*
1797 ac_cv_header_stdc=no
1799 rm -fr conftest*
1805 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1806 if test $ac_cv_header_stdc = yes; then
1807 cat >> confdefs.h <<\EOF
1808 #define STDC_HEADERS 1
1813 ac_header_dirent=no
1814 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1816 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1817 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1818 echo "configure:1819: checking for $ac_hdr that defines DIR" >&5
1819 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1820 echo $ac_n "(cached) $ac_c" 1>&6
1821 else
1822 cat > conftest.$ac_ext <<EOF
1823 #line 1824 "configure"
1824 #include "confdefs.h"
1825 #include <sys/types.h>
1826 #include <$ac_hdr>
1827 int main() {
1828 DIR *dirp = 0;
1829 ; return 0; }
1831 if { (eval echo configure:1832: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1832 rm -rf conftest*
1833 eval "ac_cv_header_dirent_$ac_safe=yes"
1834 else
1835 echo "configure: failed program was:" >&5
1836 cat conftest.$ac_ext >&5
1837 rm -rf conftest*
1838 eval "ac_cv_header_dirent_$ac_safe=no"
1840 rm -f conftest*
1842 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1843 echo "$ac_t""yes" 1>&6
1844 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1845 cat >> confdefs.h <<EOF
1846 #define $ac_tr_hdr 1
1848 ac_header_dirent=$ac_hdr; break
1849 else
1850 echo "$ac_t""no" 1>&6
1852 done
1853 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1854 if test $ac_header_dirent = dirent.h; then
1855 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1856 echo "configure:1857: checking for opendir in -ldir" >&5
1857 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1858 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1859 echo $ac_n "(cached) $ac_c" 1>&6
1860 else
1861 ac_save_LIBS="$LIBS"
1862 LIBS="-ldir $LIBS"
1863 cat > conftest.$ac_ext <<EOF
1864 #line 1865 "configure"
1865 #include "confdefs.h"
1866 /* Override any gcc2 internal prototype to avoid an error. */
1867 /* We use char because int might match the return type of a gcc2
1868 builtin and then its argument prototype would still apply. */
1869 char opendir();
1871 int main() {
1872 opendir()
1873 ; return 0; }
1875 if { (eval echo configure:1876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1876 rm -rf conftest*
1877 eval "ac_cv_lib_$ac_lib_var=yes"
1878 else
1879 echo "configure: failed program was:" >&5
1880 cat conftest.$ac_ext >&5
1881 rm -rf conftest*
1882 eval "ac_cv_lib_$ac_lib_var=no"
1884 rm -f conftest*
1885 LIBS="$ac_save_LIBS"
1888 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1889 echo "$ac_t""yes" 1>&6
1890 LIBS="$LIBS -ldir"
1891 else
1892 echo "$ac_t""no" 1>&6
1895 else
1896 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1897 echo "configure:1898: checking for opendir in -lx" >&5
1898 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1899 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1900 echo $ac_n "(cached) $ac_c" 1>&6
1901 else
1902 ac_save_LIBS="$LIBS"
1903 LIBS="-lx $LIBS"
1904 cat > conftest.$ac_ext <<EOF
1905 #line 1906 "configure"
1906 #include "confdefs.h"
1907 /* Override any gcc2 internal prototype to avoid an error. */
1908 /* We use char because int might match the return type of a gcc2
1909 builtin and then its argument prototype would still apply. */
1910 char opendir();
1912 int main() {
1913 opendir()
1914 ; return 0; }
1916 if { (eval echo configure:1917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1917 rm -rf conftest*
1918 eval "ac_cv_lib_$ac_lib_var=yes"
1919 else
1920 echo "configure: failed program was:" >&5
1921 cat conftest.$ac_ext >&5
1922 rm -rf conftest*
1923 eval "ac_cv_lib_$ac_lib_var=no"
1925 rm -f conftest*
1926 LIBS="$ac_save_LIBS"
1929 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1930 echo "$ac_t""yes" 1>&6
1931 LIBS="$LIBS -lx"
1932 else
1933 echo "$ac_t""no" 1>&6
1938 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1939 echo "configure:1940: checking whether time.h and sys/time.h may both be included" >&5
1940 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1941 echo $ac_n "(cached) $ac_c" 1>&6
1942 else
1943 cat > conftest.$ac_ext <<EOF
1944 #line 1945 "configure"
1945 #include "confdefs.h"
1946 #include <sys/types.h>
1947 #include <sys/time.h>
1948 #include <time.h>
1949 int main() {
1950 struct tm *tp;
1951 ; return 0; }
1953 if { (eval echo configure:1954: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1954 rm -rf conftest*
1955 ac_cv_header_time=yes
1956 else
1957 echo "configure: failed program was:" >&5
1958 cat conftest.$ac_ext >&5
1959 rm -rf conftest*
1960 ac_cv_header_time=no
1962 rm -f conftest*
1965 echo "$ac_t""$ac_cv_header_time" 1>&6
1966 if test $ac_cv_header_time = yes; then
1967 cat >> confdefs.h <<\EOF
1968 #define TIME_WITH_SYS_TIME 1
1973 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1974 echo "configure:1975: checking for sys/wait.h that is POSIX.1 compatible" >&5
1975 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1976 echo $ac_n "(cached) $ac_c" 1>&6
1977 else
1978 cat > conftest.$ac_ext <<EOF
1979 #line 1980 "configure"
1980 #include "confdefs.h"
1981 #include <sys/types.h>
1982 #include <sys/wait.h>
1983 #ifndef WEXITSTATUS
1984 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1985 #endif
1986 #ifndef WIFEXITED
1987 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1988 #endif
1989 int main() {
1990 int s;
1991 wait (&s);
1992 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1993 ; return 0; }
1995 if { (eval echo configure:1996: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1996 rm -rf conftest*
1997 ac_cv_header_sys_wait_h=yes
1998 else
1999 echo "configure: failed program was:" >&5
2000 cat conftest.$ac_ext >&5
2001 rm -rf conftest*
2002 ac_cv_header_sys_wait_h=no
2004 rm -f conftest*
2007 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2008 if test $ac_cv_header_sys_wait_h = yes; then
2009 cat >> confdefs.h <<\EOF
2010 #define HAVE_SYS_WAIT_H 1
2015 for ac_hdr in arpa/inet.h sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h
2017 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2018 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2019 echo "configure:2020: checking for $ac_hdr" >&5
2020 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2021 echo $ac_n "(cached) $ac_c" 1>&6
2022 else
2023 cat > conftest.$ac_ext <<EOF
2024 #line 2025 "configure"
2025 #include "confdefs.h"
2026 #include <$ac_hdr>
2028 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2029 { (eval echo configure:2030: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2030 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2031 if test -z "$ac_err"; then
2032 rm -rf conftest*
2033 eval "ac_cv_header_$ac_safe=yes"
2034 else
2035 echo "$ac_err" >&5
2036 echo "configure: failed program was:" >&5
2037 cat conftest.$ac_ext >&5
2038 rm -rf conftest*
2039 eval "ac_cv_header_$ac_safe=no"
2041 rm -f conftest*
2043 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2044 echo "$ac_t""yes" 1>&6
2045 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2046 cat >> confdefs.h <<EOF
2047 #define $ac_tr_hdr 1
2050 else
2051 echo "$ac_t""no" 1>&6
2053 done
2055 for ac_hdr in unistd.h utime.h grp.h sys/id.h limits.h memory.h net/if.h
2057 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2058 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2059 echo "configure:2060: checking for $ac_hdr" >&5
2060 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2061 echo $ac_n "(cached) $ac_c" 1>&6
2062 else
2063 cat > conftest.$ac_ext <<EOF
2064 #line 2065 "configure"
2065 #include "confdefs.h"
2066 #include <$ac_hdr>
2068 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2069 { (eval echo configure:2070: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2070 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2071 if test -z "$ac_err"; then
2072 rm -rf conftest*
2073 eval "ac_cv_header_$ac_safe=yes"
2074 else
2075 echo "$ac_err" >&5
2076 echo "configure: failed program was:" >&5
2077 cat conftest.$ac_ext >&5
2078 rm -rf conftest*
2079 eval "ac_cv_header_$ac_safe=no"
2081 rm -f conftest*
2083 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2084 echo "$ac_t""yes" 1>&6
2085 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2086 cat >> confdefs.h <<EOF
2087 #define $ac_tr_hdr 1
2090 else
2091 echo "$ac_t""no" 1>&6
2093 done
2095 for ac_hdr in compat.h rpc/rpc.h rpcsvc/nis.h rpcsvc/yp_prot.h rpcsvc/ypclnt.h
2097 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2098 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2099 echo "configure:2100: checking for $ac_hdr" >&5
2100 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2101 echo $ac_n "(cached) $ac_c" 1>&6
2102 else
2103 cat > conftest.$ac_ext <<EOF
2104 #line 2105 "configure"
2105 #include "confdefs.h"
2106 #include <$ac_hdr>
2108 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2109 { (eval echo configure:2110: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2110 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2111 if test -z "$ac_err"; then
2112 rm -rf conftest*
2113 eval "ac_cv_header_$ac_safe=yes"
2114 else
2115 echo "$ac_err" >&5
2116 echo "configure: failed program was:" >&5
2117 cat conftest.$ac_ext >&5
2118 rm -rf conftest*
2119 eval "ac_cv_header_$ac_safe=no"
2121 rm -f conftest*
2123 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2124 echo "$ac_t""yes" 1>&6
2125 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2126 cat >> confdefs.h <<EOF
2127 #define $ac_tr_hdr 1
2130 else
2131 echo "$ac_t""no" 1>&6
2133 done
2135 for ac_hdr in sys/param.h ctype.h sys/wait.h sys/resource.h sys/ioctl.h sys/ipc.h sys/mode.h
2137 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2138 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2139 echo "configure:2140: checking for $ac_hdr" >&5
2140 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2141 echo $ac_n "(cached) $ac_c" 1>&6
2142 else
2143 cat > conftest.$ac_ext <<EOF
2144 #line 2145 "configure"
2145 #include "confdefs.h"
2146 #include <$ac_hdr>
2148 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2149 { (eval echo configure:2150: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2150 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2151 if test -z "$ac_err"; then
2152 rm -rf conftest*
2153 eval "ac_cv_header_$ac_safe=yes"
2154 else
2155 echo "$ac_err" >&5
2156 echo "configure: failed program was:" >&5
2157 cat conftest.$ac_ext >&5
2158 rm -rf conftest*
2159 eval "ac_cv_header_$ac_safe=no"
2161 rm -f conftest*
2163 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2164 echo "$ac_t""yes" 1>&6
2165 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2166 cat >> confdefs.h <<EOF
2167 #define $ac_tr_hdr 1
2170 else
2171 echo "$ac_t""no" 1>&6
2173 done
2175 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
2177 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2178 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2179 echo "configure:2180: checking for $ac_hdr" >&5
2180 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2181 echo $ac_n "(cached) $ac_c" 1>&6
2182 else
2183 cat > conftest.$ac_ext <<EOF
2184 #line 2185 "configure"
2185 #include "confdefs.h"
2186 #include <$ac_hdr>
2188 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2189 { (eval echo configure:2190: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2190 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2191 if test -z "$ac_err"; then
2192 rm -rf conftest*
2193 eval "ac_cv_header_$ac_safe=yes"
2194 else
2195 echo "$ac_err" >&5
2196 echo "configure: failed program was:" >&5
2197 cat conftest.$ac_ext >&5
2198 rm -rf conftest*
2199 eval "ac_cv_header_$ac_safe=no"
2201 rm -f conftest*
2203 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2204 echo "$ac_t""yes" 1>&6
2205 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2206 cat >> confdefs.h <<EOF
2207 #define $ac_tr_hdr 1
2210 else
2211 echo "$ac_t""no" 1>&6
2213 done
2215 for ac_hdr in sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h termio.h
2217 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2218 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2219 echo "configure:2220: checking for $ac_hdr" >&5
2220 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2221 echo $ac_n "(cached) $ac_c" 1>&6
2222 else
2223 cat > conftest.$ac_ext <<EOF
2224 #line 2225 "configure"
2225 #include "confdefs.h"
2226 #include <$ac_hdr>
2228 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2229 { (eval echo configure:2230: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2230 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2231 if test -z "$ac_err"; then
2232 rm -rf conftest*
2233 eval "ac_cv_header_$ac_safe=yes"
2234 else
2235 echo "$ac_err" >&5
2236 echo "configure: failed program was:" >&5
2237 cat conftest.$ac_ext >&5
2238 rm -rf conftest*
2239 eval "ac_cv_header_$ac_safe=no"
2241 rm -f conftest*
2243 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2244 echo "$ac_t""yes" 1>&6
2245 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2246 cat >> confdefs.h <<EOF
2247 #define $ac_tr_hdr 1
2250 else
2251 echo "$ac_t""no" 1>&6
2253 done
2255 for ac_hdr in sys/termio.h sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h
2257 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2258 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2259 echo "configure:2260: checking for $ac_hdr" >&5
2260 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2261 echo $ac_n "(cached) $ac_c" 1>&6
2262 else
2263 cat > conftest.$ac_ext <<EOF
2264 #line 2265 "configure"
2265 #include "confdefs.h"
2266 #include <$ac_hdr>
2268 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2269 { (eval echo configure:2270: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2270 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2271 if test -z "$ac_err"; then
2272 rm -rf conftest*
2273 eval "ac_cv_header_$ac_safe=yes"
2274 else
2275 echo "$ac_err" >&5
2276 echo "configure: failed program was:" >&5
2277 cat conftest.$ac_ext >&5
2278 rm -rf conftest*
2279 eval "ac_cv_header_$ac_safe=no"
2281 rm -f conftest*
2283 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2284 echo "$ac_t""yes" 1>&6
2285 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2286 cat >> confdefs.h <<EOF
2287 #define $ac_tr_hdr 1
2290 else
2291 echo "$ac_t""no" 1>&6
2293 done
2295 for ac_hdr in security/pam_modules.h security/_pam_macros.h synch.h pthread.h nsswitch.h
2297 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2298 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2299 echo "configure:2300: checking for $ac_hdr" >&5
2300 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2301 echo $ac_n "(cached) $ac_c" 1>&6
2302 else
2303 cat > conftest.$ac_ext <<EOF
2304 #line 2305 "configure"
2305 #include "confdefs.h"
2306 #include <$ac_hdr>
2308 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2309 { (eval echo configure:2310: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2310 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2311 if test -z "$ac_err"; then
2312 rm -rf conftest*
2313 eval "ac_cv_header_$ac_safe=yes"
2314 else
2315 echo "$ac_err" >&5
2316 echo "configure: failed program was:" >&5
2317 cat conftest.$ac_ext >&5
2318 rm -rf conftest*
2319 eval "ac_cv_header_$ac_safe=no"
2321 rm -f conftest*
2323 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2324 echo "$ac_t""yes" 1>&6
2325 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2326 cat >> confdefs.h <<EOF
2327 #define $ac_tr_hdr 1
2330 else
2331 echo "$ac_t""no" 1>&6
2333 done
2337 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
2338 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
2340 case "$host_os" in
2341 *hpux*)
2342 cat > conftest.$ac_ext <<EOF
2343 #line 2344 "configure"
2344 #include "confdefs.h"
2345 #include <shadow.h>
2346 int main() {
2347 struct spwd testme
2348 ; return 0; }
2350 if { (eval echo configure:2351: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2351 rm -rf conftest*
2352 ac_cv_header_shadow_h=yes
2353 else
2354 echo "configure: failed program was:" >&5
2355 cat conftest.$ac_ext >&5
2356 rm -rf conftest*
2357 ac_cv_header_shadow_h=no
2359 rm -f conftest*
2360 if test x"$ac_cv_header_shadow_h" = x"yes"; then
2361 cat >> confdefs.h <<\EOF
2362 #define HAVE_SHADOW_H 1
2367 esac
2368 for ac_hdr in shadow.h netinet/ip.h netinet/tcp.h netinet/in_systm.h netinet/in_ip.h
2370 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2371 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2372 echo "configure:2373: checking for $ac_hdr" >&5
2373 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2374 echo $ac_n "(cached) $ac_c" 1>&6
2375 else
2376 cat > conftest.$ac_ext <<EOF
2377 #line 2378 "configure"
2378 #include "confdefs.h"
2379 #include <$ac_hdr>
2381 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2382 { (eval echo configure:2383: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2383 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2384 if test -z "$ac_err"; then
2385 rm -rf conftest*
2386 eval "ac_cv_header_$ac_safe=yes"
2387 else
2388 echo "$ac_err" >&5
2389 echo "configure: failed program was:" >&5
2390 cat conftest.$ac_ext >&5
2391 rm -rf conftest*
2392 eval "ac_cv_header_$ac_safe=no"
2394 rm -f conftest*
2396 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2397 echo "$ac_t""yes" 1>&6
2398 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2399 cat >> confdefs.h <<EOF
2400 #define $ac_tr_hdr 1
2403 else
2404 echo "$ac_t""no" 1>&6
2406 done
2408 for ac_hdr in nss.h nss_common.h ns_api.h sys/security.h security/pam_appl.h security/pam_modules.h
2410 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2411 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2412 echo "configure:2413: checking for $ac_hdr" >&5
2413 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2414 echo $ac_n "(cached) $ac_c" 1>&6
2415 else
2416 cat > conftest.$ac_ext <<EOF
2417 #line 2418 "configure"
2418 #include "confdefs.h"
2419 #include <$ac_hdr>
2421 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2422 { (eval echo configure:2423: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2423 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2424 if test -z "$ac_err"; then
2425 rm -rf conftest*
2426 eval "ac_cv_header_$ac_safe=yes"
2427 else
2428 echo "$ac_err" >&5
2429 echo "configure: failed program was:" >&5
2430 cat conftest.$ac_ext >&5
2431 rm -rf conftest*
2432 eval "ac_cv_header_$ac_safe=no"
2434 rm -f conftest*
2436 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2437 echo "$ac_t""yes" 1>&6
2438 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2439 cat >> confdefs.h <<EOF
2440 #define $ac_tr_hdr 1
2443 else
2444 echo "$ac_t""no" 1>&6
2446 done
2448 for ac_hdr in stropts.h poll.h
2450 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2451 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2452 echo "configure:2453: checking for $ac_hdr" >&5
2453 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2454 echo $ac_n "(cached) $ac_c" 1>&6
2455 else
2456 cat > conftest.$ac_ext <<EOF
2457 #line 2458 "configure"
2458 #include "confdefs.h"
2459 #include <$ac_hdr>
2461 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2462 { (eval echo configure:2463: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2463 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2464 if test -z "$ac_err"; then
2465 rm -rf conftest*
2466 eval "ac_cv_header_$ac_safe=yes"
2467 else
2468 echo "$ac_err" >&5
2469 echo "configure: failed program was:" >&5
2470 cat conftest.$ac_ext >&5
2471 rm -rf conftest*
2472 eval "ac_cv_header_$ac_safe=no"
2474 rm -f conftest*
2476 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2477 echo "$ac_t""yes" 1>&6
2478 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2479 cat >> confdefs.h <<EOF
2480 #define $ac_tr_hdr 1
2483 else
2484 echo "$ac_t""no" 1>&6
2486 done
2488 for ac_hdr in sys/capability.h syscall.h sys/syscall.h
2490 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2491 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2492 echo "configure:2493: checking for $ac_hdr" >&5
2493 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2494 echo $ac_n "(cached) $ac_c" 1>&6
2495 else
2496 cat > conftest.$ac_ext <<EOF
2497 #line 2498 "configure"
2498 #include "confdefs.h"
2499 #include <$ac_hdr>
2501 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2502 { (eval echo configure:2503: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2503 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2504 if test -z "$ac_err"; then
2505 rm -rf conftest*
2506 eval "ac_cv_header_$ac_safe=yes"
2507 else
2508 echo "$ac_err" >&5
2509 echo "configure: failed program was:" >&5
2510 cat conftest.$ac_ext >&5
2511 rm -rf conftest*
2512 eval "ac_cv_header_$ac_safe=no"
2514 rm -f conftest*
2516 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2517 echo "$ac_t""yes" 1>&6
2518 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2519 cat >> confdefs.h <<EOF
2520 #define $ac_tr_hdr 1
2523 else
2524 echo "$ac_t""no" 1>&6
2526 done
2528 for ac_hdr in sys/acl.h sys/cdefs.h glob.h
2530 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2531 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2532 echo "configure:2533: checking for $ac_hdr" >&5
2533 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2534 echo $ac_n "(cached) $ac_c" 1>&6
2535 else
2536 cat > conftest.$ac_ext <<EOF
2537 #line 2538 "configure"
2538 #include "confdefs.h"
2539 #include <$ac_hdr>
2541 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2542 { (eval echo configure:2543: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2543 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2544 if test -z "$ac_err"; then
2545 rm -rf conftest*
2546 eval "ac_cv_header_$ac_safe=yes"
2547 else
2548 echo "$ac_err" >&5
2549 echo "configure: failed program was:" >&5
2550 cat conftest.$ac_ext >&5
2551 rm -rf conftest*
2552 eval "ac_cv_header_$ac_safe=no"
2554 rm -f conftest*
2556 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2557 echo "$ac_t""yes" 1>&6
2558 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2559 cat >> confdefs.h <<EOF
2560 #define $ac_tr_hdr 1
2563 else
2564 echo "$ac_t""no" 1>&6
2566 done
2569 # For experimental utmp support (lastlog on some BSD-like systems)
2570 for ac_hdr in utmp.h utmpx.h lastlog.h
2572 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2573 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2574 echo "configure:2575: checking for $ac_hdr" >&5
2575 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2576 echo $ac_n "(cached) $ac_c" 1>&6
2577 else
2578 cat > conftest.$ac_ext <<EOF
2579 #line 2580 "configure"
2580 #include "confdefs.h"
2581 #include <$ac_hdr>
2583 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2584 { (eval echo configure:2585: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2585 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2586 if test -z "$ac_err"; then
2587 rm -rf conftest*
2588 eval "ac_cv_header_$ac_safe=yes"
2589 else
2590 echo "$ac_err" >&5
2591 echo "configure: failed program was:" >&5
2592 cat conftest.$ac_ext >&5
2593 rm -rf conftest*
2594 eval "ac_cv_header_$ac_safe=no"
2596 rm -f conftest*
2598 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2599 echo "$ac_t""yes" 1>&6
2600 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2601 cat >> confdefs.h <<EOF
2602 #define $ac_tr_hdr 1
2605 else
2606 echo "$ac_t""no" 1>&6
2608 done
2611 # For quotas on Veritas VxFS filesystems
2612 for ac_hdr in sys/fs/vx_quota.h
2614 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2615 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2616 echo "configure:2617: checking for $ac_hdr" >&5
2617 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2618 echo $ac_n "(cached) $ac_c" 1>&6
2619 else
2620 cat > conftest.$ac_ext <<EOF
2621 #line 2622 "configure"
2622 #include "confdefs.h"
2623 #include <$ac_hdr>
2625 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2626 { (eval echo configure:2627: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2627 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2628 if test -z "$ac_err"; then
2629 rm -rf conftest*
2630 eval "ac_cv_header_$ac_safe=yes"
2631 else
2632 echo "$ac_err" >&5
2633 echo "configure: failed program was:" >&5
2634 cat conftest.$ac_ext >&5
2635 rm -rf conftest*
2636 eval "ac_cv_header_$ac_safe=no"
2638 rm -f conftest*
2640 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2641 echo "$ac_t""yes" 1>&6
2642 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2643 cat >> confdefs.h <<EOF
2644 #define $ac_tr_hdr 1
2647 else
2648 echo "$ac_t""no" 1>&6
2650 done
2653 # For quotas on Linux XFS filesystems
2654 for ac_hdr in linux/xqm.h
2656 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2657 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2658 echo "configure:2659: checking for $ac_hdr" >&5
2659 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2660 echo $ac_n "(cached) $ac_c" 1>&6
2661 else
2662 cat > conftest.$ac_ext <<EOF
2663 #line 2664 "configure"
2664 #include "confdefs.h"
2665 #include <$ac_hdr>
2667 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2668 { (eval echo configure:2669: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2669 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2670 if test -z "$ac_err"; then
2671 rm -rf conftest*
2672 eval "ac_cv_header_$ac_safe=yes"
2673 else
2674 echo "$ac_err" >&5
2675 echo "configure: failed program was:" >&5
2676 cat conftest.$ac_ext >&5
2677 rm -rf conftest*
2678 eval "ac_cv_header_$ac_safe=no"
2680 rm -f conftest*
2682 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2683 echo "$ac_t""yes" 1>&6
2684 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2685 cat >> confdefs.h <<EOF
2686 #define $ac_tr_hdr 1
2689 else
2690 echo "$ac_t""no" 1>&6
2692 done
2695 echo $ac_n "checking size of int""... $ac_c" 1>&6
2696 echo "configure:2697: checking size of int" >&5
2697 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2698 echo $ac_n "(cached) $ac_c" 1>&6
2699 else
2700 if test "$cross_compiling" = yes; then
2701 ac_cv_sizeof_int=cross
2702 else
2703 cat > conftest.$ac_ext <<EOF
2704 #line 2705 "configure"
2705 #include "confdefs.h"
2706 #include <stdio.h>
2707 main()
2709 FILE *f=fopen("conftestval", "w");
2710 if (!f) exit(1);
2711 fprintf(f, "%d\n", sizeof(int));
2712 exit(0);
2715 if { (eval echo configure:2716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2716 then
2717 ac_cv_sizeof_int=`cat conftestval`
2718 else
2719 echo "configure: failed program was:" >&5
2720 cat conftest.$ac_ext >&5
2721 rm -fr conftest*
2722 ac_cv_sizeof_int=0
2724 rm -fr conftest*
2728 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2729 cat >> confdefs.h <<EOF
2730 #define SIZEOF_INT $ac_cv_sizeof_int
2734 echo $ac_n "checking size of long""... $ac_c" 1>&6
2735 echo "configure:2736: checking size of long" >&5
2736 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2737 echo $ac_n "(cached) $ac_c" 1>&6
2738 else
2739 if test "$cross_compiling" = yes; then
2740 ac_cv_sizeof_long=cross
2741 else
2742 cat > conftest.$ac_ext <<EOF
2743 #line 2744 "configure"
2744 #include "confdefs.h"
2745 #include <stdio.h>
2746 main()
2748 FILE *f=fopen("conftestval", "w");
2749 if (!f) exit(1);
2750 fprintf(f, "%d\n", sizeof(long));
2751 exit(0);
2754 if { (eval echo configure:2755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2755 then
2756 ac_cv_sizeof_long=`cat conftestval`
2757 else
2758 echo "configure: failed program was:" >&5
2759 cat conftest.$ac_ext >&5
2760 rm -fr conftest*
2761 ac_cv_sizeof_long=0
2763 rm -fr conftest*
2767 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2768 cat >> confdefs.h <<EOF
2769 #define SIZEOF_LONG $ac_cv_sizeof_long
2773 echo $ac_n "checking size of short""... $ac_c" 1>&6
2774 echo "configure:2775: checking size of short" >&5
2775 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2776 echo $ac_n "(cached) $ac_c" 1>&6
2777 else
2778 if test "$cross_compiling" = yes; then
2779 ac_cv_sizeof_short=cross
2780 else
2781 cat > conftest.$ac_ext <<EOF
2782 #line 2783 "configure"
2783 #include "confdefs.h"
2784 #include <stdio.h>
2785 main()
2787 FILE *f=fopen("conftestval", "w");
2788 if (!f) exit(1);
2789 fprintf(f, "%d\n", sizeof(short));
2790 exit(0);
2793 if { (eval echo configure:2794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2794 then
2795 ac_cv_sizeof_short=`cat conftestval`
2796 else
2797 echo "configure: failed program was:" >&5
2798 cat conftest.$ac_ext >&5
2799 rm -fr conftest*
2800 ac_cv_sizeof_short=0
2802 rm -fr conftest*
2806 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2807 cat >> confdefs.h <<EOF
2808 #define SIZEOF_SHORT $ac_cv_sizeof_short
2813 echo $ac_n "checking for working const""... $ac_c" 1>&6
2814 echo "configure:2815: checking for working const" >&5
2815 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2816 echo $ac_n "(cached) $ac_c" 1>&6
2817 else
2818 cat > conftest.$ac_ext <<EOF
2819 #line 2820 "configure"
2820 #include "confdefs.h"
2822 int main() {
2824 /* Ultrix mips cc rejects this. */
2825 typedef int charset[2]; const charset x;
2826 /* SunOS 4.1.1 cc rejects this. */
2827 char const *const *ccp;
2828 char **p;
2829 /* NEC SVR4.0.2 mips cc rejects this. */
2830 struct point {int x, y;};
2831 static struct point const zero = {0,0};
2832 /* AIX XL C 1.02.0.0 rejects this.
2833 It does not let you subtract one const X* pointer from another in an arm
2834 of an if-expression whose if-part is not a constant expression */
2835 const char *g = "string";
2836 ccp = &g + (g ? g-g : 0);
2837 /* HPUX 7.0 cc rejects these. */
2838 ++ccp;
2839 p = (char**) ccp;
2840 ccp = (char const *const *) p;
2841 { /* SCO 3.2v4 cc rejects this. */
2842 char *t;
2843 char const *s = 0 ? (char *) 0 : (char const *) 0;
2845 *t++ = 0;
2847 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2848 int x[] = {25, 17};
2849 const int *foo = &x[0];
2850 ++foo;
2852 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2853 typedef const int *iptr;
2854 iptr p = 0;
2855 ++p;
2857 { /* AIX XL C 1.02.0.0 rejects this saying
2858 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2859 struct s { int j; const int *ap[3]; };
2860 struct s *b; b->j = 5;
2862 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2863 const int foo = 10;
2866 ; return 0; }
2868 if { (eval echo configure:2869: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2869 rm -rf conftest*
2870 ac_cv_c_const=yes
2871 else
2872 echo "configure: failed program was:" >&5
2873 cat conftest.$ac_ext >&5
2874 rm -rf conftest*
2875 ac_cv_c_const=no
2877 rm -f conftest*
2880 echo "$ac_t""$ac_cv_c_const" 1>&6
2881 if test $ac_cv_c_const = no; then
2882 cat >> confdefs.h <<\EOF
2883 #define const
2888 echo $ac_n "checking for inline""... $ac_c" 1>&6
2889 echo "configure:2890: checking for inline" >&5
2890 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2891 echo $ac_n "(cached) $ac_c" 1>&6
2892 else
2893 ac_cv_c_inline=no
2894 for ac_kw in inline __inline__ __inline; do
2895 cat > conftest.$ac_ext <<EOF
2896 #line 2897 "configure"
2897 #include "confdefs.h"
2899 int main() {
2900 } $ac_kw foo() {
2901 ; return 0; }
2903 if { (eval echo configure:2904: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2904 rm -rf conftest*
2905 ac_cv_c_inline=$ac_kw; break
2906 else
2907 echo "configure: failed program was:" >&5
2908 cat conftest.$ac_ext >&5
2910 rm -f conftest*
2911 done
2915 echo "$ac_t""$ac_cv_c_inline" 1>&6
2916 case "$ac_cv_c_inline" in
2917 inline | yes) ;;
2918 no) cat >> confdefs.h <<\EOF
2919 #define inline
2922 *) cat >> confdefs.h <<EOF
2923 #define inline $ac_cv_c_inline
2926 esac
2928 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
2929 echo "configure:2930: checking whether byte ordering is bigendian" >&5
2930 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
2931 echo $ac_n "(cached) $ac_c" 1>&6
2932 else
2933 ac_cv_c_bigendian=unknown
2934 # See if sys/param.h defines the BYTE_ORDER macro.
2935 cat > conftest.$ac_ext <<EOF
2936 #line 2937 "configure"
2937 #include "confdefs.h"
2938 #include <sys/types.h>
2939 #include <sys/param.h>
2940 int main() {
2942 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2943 bogus endian macros
2944 #endif
2945 ; return 0; }
2947 if { (eval echo configure:2948: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2948 rm -rf conftest*
2949 # It does; now see whether it defined to BIG_ENDIAN or not.
2950 cat > conftest.$ac_ext <<EOF
2951 #line 2952 "configure"
2952 #include "confdefs.h"
2953 #include <sys/types.h>
2954 #include <sys/param.h>
2955 int main() {
2957 #if BYTE_ORDER != BIG_ENDIAN
2958 not big endian
2959 #endif
2960 ; return 0; }
2962 if { (eval echo configure:2963: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2963 rm -rf conftest*
2964 ac_cv_c_bigendian=yes
2965 else
2966 echo "configure: failed program was:" >&5
2967 cat conftest.$ac_ext >&5
2968 rm -rf conftest*
2969 ac_cv_c_bigendian=no
2971 rm -f conftest*
2972 else
2973 echo "configure: failed program was:" >&5
2974 cat conftest.$ac_ext >&5
2976 rm -f conftest*
2977 if test $ac_cv_c_bigendian = unknown; then
2978 if test "$cross_compiling" = yes; then
2979 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2980 else
2981 cat > conftest.$ac_ext <<EOF
2982 #line 2983 "configure"
2983 #include "confdefs.h"
2984 main () {
2985 /* Are we little or big endian? From Harbison&Steele. */
2986 union
2988 long l;
2989 char c[sizeof (long)];
2990 } u;
2991 u.l = 1;
2992 exit (u.c[sizeof (long) - 1] == 1);
2995 if { (eval echo configure:2996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2996 then
2997 ac_cv_c_bigendian=no
2998 else
2999 echo "configure: failed program was:" >&5
3000 cat conftest.$ac_ext >&5
3001 rm -fr conftest*
3002 ac_cv_c_bigendian=yes
3004 rm -fr conftest*
3010 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3011 if test $ac_cv_c_bigendian = yes; then
3012 cat >> confdefs.h <<\EOF
3013 #define WORDS_BIGENDIAN 1
3018 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
3019 echo "configure:3020: checking whether char is unsigned" >&5
3020 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
3021 echo $ac_n "(cached) $ac_c" 1>&6
3022 else
3023 if test "$GCC" = yes; then
3024 # GCC predefines this symbol on systems where it applies.
3025 cat > conftest.$ac_ext <<EOF
3026 #line 3027 "configure"
3027 #include "confdefs.h"
3028 #ifdef __CHAR_UNSIGNED__
3030 #endif
3033 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3034 egrep "yes" >/dev/null 2>&1; then
3035 rm -rf conftest*
3036 ac_cv_c_char_unsigned=yes
3037 else
3038 rm -rf conftest*
3039 ac_cv_c_char_unsigned=no
3041 rm -f conftest*
3043 else
3044 if test "$cross_compiling" = yes; then
3045 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3046 else
3047 cat > conftest.$ac_ext <<EOF
3048 #line 3049 "configure"
3049 #include "confdefs.h"
3050 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
3051 #if !defined(__STDC__) || __STDC__ != 1
3052 #define volatile
3053 #endif
3054 main() {
3055 volatile char c = 255; exit(c < 0);
3058 if { (eval echo configure:3059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3059 then
3060 ac_cv_c_char_unsigned=yes
3061 else
3062 echo "configure: failed program was:" >&5
3063 cat conftest.$ac_ext >&5
3064 rm -fr conftest*
3065 ac_cv_c_char_unsigned=no
3067 rm -fr conftest*
3073 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
3074 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
3075 cat >> confdefs.h <<\EOF
3076 #define __CHAR_UNSIGNED__ 1
3082 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3083 echo "configure:3084: checking return type of signal handlers" >&5
3084 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3085 echo $ac_n "(cached) $ac_c" 1>&6
3086 else
3087 cat > conftest.$ac_ext <<EOF
3088 #line 3089 "configure"
3089 #include "confdefs.h"
3090 #include <sys/types.h>
3091 #include <signal.h>
3092 #ifdef signal
3093 #undef signal
3094 #endif
3095 #ifdef __cplusplus
3096 extern "C" void (*signal (int, void (*)(int)))(int);
3097 #else
3098 void (*signal ()) ();
3099 #endif
3101 int main() {
3102 int i;
3103 ; return 0; }
3105 if { (eval echo configure:3106: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3106 rm -rf conftest*
3107 ac_cv_type_signal=void
3108 else
3109 echo "configure: failed program was:" >&5
3110 cat conftest.$ac_ext >&5
3111 rm -rf conftest*
3112 ac_cv_type_signal=int
3114 rm -f conftest*
3117 echo "$ac_t""$ac_cv_type_signal" 1>&6
3118 cat >> confdefs.h <<EOF
3119 #define RETSIGTYPE $ac_cv_type_signal
3123 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3124 echo "configure:3125: checking for uid_t in sys/types.h" >&5
3125 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3126 echo $ac_n "(cached) $ac_c" 1>&6
3127 else
3128 cat > conftest.$ac_ext <<EOF
3129 #line 3130 "configure"
3130 #include "confdefs.h"
3131 #include <sys/types.h>
3133 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3134 egrep "uid_t" >/dev/null 2>&1; then
3135 rm -rf conftest*
3136 ac_cv_type_uid_t=yes
3137 else
3138 rm -rf conftest*
3139 ac_cv_type_uid_t=no
3141 rm -f conftest*
3145 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3146 if test $ac_cv_type_uid_t = no; then
3147 cat >> confdefs.h <<\EOF
3148 #define uid_t int
3151 cat >> confdefs.h <<\EOF
3152 #define gid_t int
3157 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3158 echo "configure:3159: checking for mode_t" >&5
3159 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3160 echo $ac_n "(cached) $ac_c" 1>&6
3161 else
3162 cat > conftest.$ac_ext <<EOF
3163 #line 3164 "configure"
3164 #include "confdefs.h"
3165 #include <sys/types.h>
3166 #if STDC_HEADERS
3167 #include <stdlib.h>
3168 #include <stddef.h>
3169 #endif
3171 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3172 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3173 rm -rf conftest*
3174 ac_cv_type_mode_t=yes
3175 else
3176 rm -rf conftest*
3177 ac_cv_type_mode_t=no
3179 rm -f conftest*
3182 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3183 if test $ac_cv_type_mode_t = no; then
3184 cat >> confdefs.h <<\EOF
3185 #define mode_t int
3190 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3191 echo "configure:3192: checking for off_t" >&5
3192 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3193 echo $ac_n "(cached) $ac_c" 1>&6
3194 else
3195 cat > conftest.$ac_ext <<EOF
3196 #line 3197 "configure"
3197 #include "confdefs.h"
3198 #include <sys/types.h>
3199 #if STDC_HEADERS
3200 #include <stdlib.h>
3201 #include <stddef.h>
3202 #endif
3204 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3205 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3206 rm -rf conftest*
3207 ac_cv_type_off_t=yes
3208 else
3209 rm -rf conftest*
3210 ac_cv_type_off_t=no
3212 rm -f conftest*
3215 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3216 if test $ac_cv_type_off_t = no; then
3217 cat >> confdefs.h <<\EOF
3218 #define off_t long
3223 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3224 echo "configure:3225: checking for size_t" >&5
3225 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3226 echo $ac_n "(cached) $ac_c" 1>&6
3227 else
3228 cat > conftest.$ac_ext <<EOF
3229 #line 3230 "configure"
3230 #include "confdefs.h"
3231 #include <sys/types.h>
3232 #if STDC_HEADERS
3233 #include <stdlib.h>
3234 #include <stddef.h>
3235 #endif
3237 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3238 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3239 rm -rf conftest*
3240 ac_cv_type_size_t=yes
3241 else
3242 rm -rf conftest*
3243 ac_cv_type_size_t=no
3245 rm -f conftest*
3248 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3249 if test $ac_cv_type_size_t = no; then
3250 cat >> confdefs.h <<\EOF
3251 #define size_t unsigned
3256 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3257 echo "configure:3258: checking for pid_t" >&5
3258 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3259 echo $ac_n "(cached) $ac_c" 1>&6
3260 else
3261 cat > conftest.$ac_ext <<EOF
3262 #line 3263 "configure"
3263 #include "confdefs.h"
3264 #include <sys/types.h>
3265 #if STDC_HEADERS
3266 #include <stdlib.h>
3267 #include <stddef.h>
3268 #endif
3270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3271 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3272 rm -rf conftest*
3273 ac_cv_type_pid_t=yes
3274 else
3275 rm -rf conftest*
3276 ac_cv_type_pid_t=no
3278 rm -f conftest*
3281 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3282 if test $ac_cv_type_pid_t = no; then
3283 cat >> confdefs.h <<\EOF
3284 #define pid_t int
3289 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3290 echo "configure:3291: checking for st_rdev in struct stat" >&5
3291 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3292 echo $ac_n "(cached) $ac_c" 1>&6
3293 else
3294 cat > conftest.$ac_ext <<EOF
3295 #line 3296 "configure"
3296 #include "confdefs.h"
3297 #include <sys/types.h>
3298 #include <sys/stat.h>
3299 int main() {
3300 struct stat s; s.st_rdev;
3301 ; return 0; }
3303 if { (eval echo configure:3304: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3304 rm -rf conftest*
3305 ac_cv_struct_st_rdev=yes
3306 else
3307 echo "configure: failed program was:" >&5
3308 cat conftest.$ac_ext >&5
3309 rm -rf conftest*
3310 ac_cv_struct_st_rdev=no
3312 rm -f conftest*
3315 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3316 if test $ac_cv_struct_st_rdev = yes; then
3317 cat >> confdefs.h <<\EOF
3318 #define HAVE_ST_RDEV 1
3323 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
3324 echo "configure:3325: checking for d_off in dirent" >&5
3325 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
3326 echo $ac_n "(cached) $ac_c" 1>&6
3327 else
3328 cat > conftest.$ac_ext <<EOF
3329 #line 3330 "configure"
3330 #include "confdefs.h"
3332 #include <unistd.h>
3333 #include <sys/types.h>
3334 #include <dirent.h>
3335 int main() {
3336 struct dirent d; d.d_off;
3337 ; return 0; }
3339 if { (eval echo configure:3340: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3340 rm -rf conftest*
3341 ac_cv_dirent_d_off=yes
3342 else
3343 echo "configure: failed program was:" >&5
3344 cat conftest.$ac_ext >&5
3345 rm -rf conftest*
3346 ac_cv_dirent_d_off=no
3348 rm -f conftest*
3351 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
3352 if test $ac_cv_dirent_d_off = yes; then
3353 cat >> confdefs.h <<\EOF
3354 #define HAVE_DIRENT_D_OFF 1
3359 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
3360 echo "configure:3361: checking for ino_t" >&5
3361 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
3362 echo $ac_n "(cached) $ac_c" 1>&6
3363 else
3364 cat > conftest.$ac_ext <<EOF
3365 #line 3366 "configure"
3366 #include "confdefs.h"
3367 #include <sys/types.h>
3368 #if STDC_HEADERS
3369 #include <stdlib.h>
3370 #include <stddef.h>
3371 #endif
3373 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3374 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3375 rm -rf conftest*
3376 ac_cv_type_ino_t=yes
3377 else
3378 rm -rf conftest*
3379 ac_cv_type_ino_t=no
3381 rm -f conftest*
3384 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
3385 if test $ac_cv_type_ino_t = no; then
3386 cat >> confdefs.h <<\EOF
3387 #define ino_t unsigned
3392 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3393 echo "configure:3394: checking for loff_t" >&5
3394 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
3395 echo $ac_n "(cached) $ac_c" 1>&6
3396 else
3397 cat > conftest.$ac_ext <<EOF
3398 #line 3399 "configure"
3399 #include "confdefs.h"
3400 #include <sys/types.h>
3401 #if STDC_HEADERS
3402 #include <stdlib.h>
3403 #include <stddef.h>
3404 #endif
3406 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3407 egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3408 rm -rf conftest*
3409 ac_cv_type_loff_t=yes
3410 else
3411 rm -rf conftest*
3412 ac_cv_type_loff_t=no
3414 rm -f conftest*
3417 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
3418 if test $ac_cv_type_loff_t = no; then
3419 cat >> confdefs.h <<\EOF
3420 #define loff_t off_t
3425 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
3426 echo "configure:3427: checking for offset_t" >&5
3427 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
3428 echo $ac_n "(cached) $ac_c" 1>&6
3429 else
3430 cat > conftest.$ac_ext <<EOF
3431 #line 3432 "configure"
3432 #include "confdefs.h"
3433 #include <sys/types.h>
3434 #if STDC_HEADERS
3435 #include <stdlib.h>
3436 #include <stddef.h>
3437 #endif
3439 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3440 egrep "(^|[^a-zA-Z_0-9])offset_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3441 rm -rf conftest*
3442 ac_cv_type_offset_t=yes
3443 else
3444 rm -rf conftest*
3445 ac_cv_type_offset_t=no
3447 rm -f conftest*
3450 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
3451 if test $ac_cv_type_offset_t = no; then
3452 cat >> confdefs.h <<\EOF
3453 #define offset_t loff_t
3458 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3459 echo "configure:3460: checking for ssize_t" >&5
3460 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3461 echo $ac_n "(cached) $ac_c" 1>&6
3462 else
3463 cat > conftest.$ac_ext <<EOF
3464 #line 3465 "configure"
3465 #include "confdefs.h"
3466 #include <sys/types.h>
3467 #if STDC_HEADERS
3468 #include <stdlib.h>
3469 #include <stddef.h>
3470 #endif
3472 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3473 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3474 rm -rf conftest*
3475 ac_cv_type_ssize_t=yes
3476 else
3477 rm -rf conftest*
3478 ac_cv_type_ssize_t=no
3480 rm -f conftest*
3483 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3484 if test $ac_cv_type_ssize_t = no; then
3485 cat >> confdefs.h <<\EOF
3486 #define ssize_t int
3491 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
3492 echo "configure:3493: checking for wchar_t" >&5
3493 if eval "test \"`echo '$''{'ac_cv_type_wchar_t'+set}'`\" = set"; then
3494 echo $ac_n "(cached) $ac_c" 1>&6
3495 else
3496 cat > conftest.$ac_ext <<EOF
3497 #line 3498 "configure"
3498 #include "confdefs.h"
3499 #include <sys/types.h>
3500 #if STDC_HEADERS
3501 #include <stdlib.h>
3502 #include <stddef.h>
3503 #endif
3505 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3506 egrep "(^|[^a-zA-Z_0-9])wchar_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3507 rm -rf conftest*
3508 ac_cv_type_wchar_t=yes
3509 else
3510 rm -rf conftest*
3511 ac_cv_type_wchar_t=no
3513 rm -f conftest*
3516 echo "$ac_t""$ac_cv_type_wchar_t" 1>&6
3517 if test $ac_cv_type_wchar_t = no; then
3518 cat >> confdefs.h <<\EOF
3519 #define wchar_t unsigned short
3525 ############################################
3526 # for cups support we need libcups, and a handful of header files
3528 echo $ac_n "checking for httpConnect in -lcups""... $ac_c" 1>&6
3529 echo "configure:3530: checking for httpConnect in -lcups" >&5
3530 ac_lib_var=`echo cups'_'httpConnect | sed 'y%./+-%__p_%'`
3531 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3532 echo $ac_n "(cached) $ac_c" 1>&6
3533 else
3534 ac_save_LIBS="$LIBS"
3535 LIBS="-lcups $LIBS"
3536 cat > conftest.$ac_ext <<EOF
3537 #line 3538 "configure"
3538 #include "confdefs.h"
3539 /* Override any gcc2 internal prototype to avoid an error. */
3540 /* We use char because int might match the return type of a gcc2
3541 builtin and then its argument prototype would still apply. */
3542 char httpConnect();
3544 int main() {
3545 httpConnect()
3546 ; return 0; }
3548 if { (eval echo configure:3549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3549 rm -rf conftest*
3550 eval "ac_cv_lib_$ac_lib_var=yes"
3551 else
3552 echo "configure: failed program was:" >&5
3553 cat conftest.$ac_ext >&5
3554 rm -rf conftest*
3555 eval "ac_cv_lib_$ac_lib_var=no"
3557 rm -f conftest*
3558 LIBS="$ac_save_LIBS"
3561 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3562 echo "$ac_t""yes" 1>&6
3563 ac_tr_lib=HAVE_LIB`echo cups | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3564 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3565 cat >> confdefs.h <<EOF
3566 #define $ac_tr_lib 1
3569 LIBS="-lcups $LIBS"
3571 else
3572 echo "$ac_t""no" 1>&6
3576 # I wonder if there is a nicer way of doing this?
3578 if test x"$ac_cv_lib_cups_httpConnect" = x"yes"; then
3579 for ac_hdr in cups/cups.h cups/language.h
3581 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3582 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3583 echo "configure:3584: checking for $ac_hdr" >&5
3584 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3585 echo $ac_n "(cached) $ac_c" 1>&6
3586 else
3587 cat > conftest.$ac_ext <<EOF
3588 #line 3589 "configure"
3589 #include "confdefs.h"
3590 #include <$ac_hdr>
3592 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3593 { (eval echo configure:3594: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3594 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3595 if test -z "$ac_err"; then
3596 rm -rf conftest*
3597 eval "ac_cv_header_$ac_safe=yes"
3598 else
3599 echo "$ac_err" >&5
3600 echo "configure: failed program was:" >&5
3601 cat conftest.$ac_ext >&5
3602 rm -rf conftest*
3603 eval "ac_cv_header_$ac_safe=no"
3605 rm -f conftest*
3607 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3608 echo "$ac_t""yes" 1>&6
3609 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3610 cat >> confdefs.h <<EOF
3611 #define $ac_tr_hdr 1
3614 else
3615 echo "$ac_t""no" 1>&6
3617 done
3619 if test x"$ac_cv_header_cups_cups_h" = x"yes"; then
3620 if test x"$ac_cv_header_cups_language_h" = x"yes"; then
3621 cat >> confdefs.h <<\EOF
3622 #define HAVE_CUPS 1
3629 ############################################
3630 # we need libdl for PAM and the new VFS code
3631 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3632 echo "configure:3633: checking for dlopen in -ldl" >&5
3633 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3634 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3635 echo $ac_n "(cached) $ac_c" 1>&6
3636 else
3637 ac_save_LIBS="$LIBS"
3638 LIBS="-ldl $LIBS"
3639 cat > conftest.$ac_ext <<EOF
3640 #line 3641 "configure"
3641 #include "confdefs.h"
3642 /* Override any gcc2 internal prototype to avoid an error. */
3643 /* We use char because int might match the return type of a gcc2
3644 builtin and then its argument prototype would still apply. */
3645 char dlopen();
3647 int main() {
3648 dlopen()
3649 ; return 0; }
3651 if { (eval echo configure:3652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3652 rm -rf conftest*
3653 eval "ac_cv_lib_$ac_lib_var=yes"
3654 else
3655 echo "configure: failed program was:" >&5
3656 cat conftest.$ac_ext >&5
3657 rm -rf conftest*
3658 eval "ac_cv_lib_$ac_lib_var=no"
3660 rm -f conftest*
3661 LIBS="$ac_save_LIBS"
3664 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3665 echo "$ac_t""yes" 1>&6
3666 LIBS="$LIBS -ldl";
3667 cat >> confdefs.h <<\EOF
3668 #define HAVE_LIBDL 1
3671 else
3672 echo "$ac_t""no" 1>&6
3676 ############################################
3677 # check if the compiler can do immediate structures
3678 echo $ac_n "checking for immediate structures""... $ac_c" 1>&6
3679 echo "configure:3680: checking for immediate structures" >&5
3680 if eval "test \"`echo '$''{'samba_cv_immediate_structures'+set}'`\" = set"; then
3681 echo $ac_n "(cached) $ac_c" 1>&6
3682 else
3684 cat > conftest.$ac_ext <<EOF
3685 #line 3686 "configure"
3686 #include "confdefs.h"
3688 #include <stdio.h>
3689 int main() {
3691 #define X_FOOBAR(x) ((FOOBAR) { x })
3692 typedef struct {unsigned x;} FOOBAR;
3693 FOOBAR f = X_FOOBAR(1);
3695 ; return 0; }
3697 if { (eval echo configure:3698: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3698 rm -rf conftest*
3699 samba_cv_immediate_structures=yes
3700 else
3701 echo "configure: failed program was:" >&5
3702 cat conftest.$ac_ext >&5
3703 rm -rf conftest*
3704 samba_cv_immediate_structures=no
3706 rm -f conftest*
3709 echo "$ac_t""$samba_cv_immediate_structures" 1>&6
3710 if test x"$samba_cv_immediate_structures" = x"yes"; then
3711 cat >> confdefs.h <<\EOF
3712 #define HAVE_IMMEDIATE_STRUCTURES 1
3717 ############################################
3718 # check for unix domain sockets
3719 echo $ac_n "checking for unix domain sockets""... $ac_c" 1>&6
3720 echo "configure:3721: checking for unix domain sockets" >&5
3721 if eval "test \"`echo '$''{'samba_cv_unixsocket'+set}'`\" = set"; then
3722 echo $ac_n "(cached) $ac_c" 1>&6
3723 else
3725 cat > conftest.$ac_ext <<EOF
3726 #line 3727 "configure"
3727 #include "confdefs.h"
3729 #include <sys/types.h>
3730 #include <stdlib.h>
3731 #include <stddef.h>
3732 #include <sys/socket.h>
3733 #include <sys/un.h>
3734 int main() {
3736 struct sockaddr_un sunaddr;
3737 sunaddr.sun_family = AF_UNIX;
3739 ; return 0; }
3741 if { (eval echo configure:3742: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3742 rm -rf conftest*
3743 samba_cv_unixsocket=yes
3744 else
3745 echo "configure: failed program was:" >&5
3746 cat conftest.$ac_ext >&5
3747 rm -rf conftest*
3748 samba_cv_unixsocket=no
3750 rm -f conftest*
3753 echo "$ac_t""$samba_cv_unixsocket" 1>&6
3754 if test x"$samba_cv_unixsocket" = x"yes"; then
3755 cat >> confdefs.h <<\EOF
3756 #define HAVE_UNIXSOCKET 1
3761 echo $ac_n "checking for socklen_t type""... $ac_c" 1>&6
3762 echo "configure:3763: checking for socklen_t type" >&5
3763 if eval "test \"`echo '$''{'samba_cv_socklen_t'+set}'`\" = set"; then
3764 echo $ac_n "(cached) $ac_c" 1>&6
3765 else
3767 cat > conftest.$ac_ext <<EOF
3768 #line 3769 "configure"
3769 #include "confdefs.h"
3771 #include <sys/types.h>
3772 #if STDC_HEADERS
3773 #include <stdlib.h>
3774 #include <stddef.h>
3775 #endif
3776 #include <sys/socket.h>
3777 int main() {
3778 socklen_t i = 0
3779 ; return 0; }
3781 if { (eval echo configure:3782: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3782 rm -rf conftest*
3783 samba_cv_socklen_t=yes
3784 else
3785 echo "configure: failed program was:" >&5
3786 cat conftest.$ac_ext >&5
3787 rm -rf conftest*
3788 samba_cv_socklen_t=no
3790 rm -f conftest*
3793 echo "$ac_t""$samba_cv_socklen_t" 1>&6
3794 if test x"$samba_cv_socklen_t" = x"yes"; then
3795 cat >> confdefs.h <<\EOF
3796 #define HAVE_SOCKLEN_T_TYPE 1
3801 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
3802 echo "configure:3803: checking for sig_atomic_t type" >&5
3803 if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+set}'`\" = set"; then
3804 echo $ac_n "(cached) $ac_c" 1>&6
3805 else
3807 cat > conftest.$ac_ext <<EOF
3808 #line 3809 "configure"
3809 #include "confdefs.h"
3811 #include <sys/types.h>
3812 #if STDC_HEADERS
3813 #include <stdlib.h>
3814 #include <stddef.h>
3815 #endif
3816 #include <signal.h>
3817 int main() {
3818 sig_atomic_t i = 0
3819 ; return 0; }
3821 if { (eval echo configure:3822: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3822 rm -rf conftest*
3823 samba_cv_sig_atomic_t=yes
3824 else
3825 echo "configure: failed program was:" >&5
3826 cat conftest.$ac_ext >&5
3827 rm -rf conftest*
3828 samba_cv_sig_atomic_t=no
3830 rm -f conftest*
3833 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
3834 if test x"$samba_cv_sig_atomic_t" = x"yes"; then
3835 cat >> confdefs.h <<\EOF
3836 #define HAVE_SIG_ATOMIC_T_TYPE 1
3841 # stupid headers have the functions but no declaration. grrrr.
3843 echo $ac_n "checking for errno declaration""... $ac_c" 1>&6
3844 echo "configure:3845: checking for errno declaration" >&5
3845 if eval "test \"`echo '$''{'ac_cv_have_errno_decl'+set}'`\" = set"; then
3846 echo $ac_n "(cached) $ac_c" 1>&6
3847 else
3849 cat > conftest.$ac_ext <<EOF
3850 #line 3851 "configure"
3851 #include "confdefs.h"
3852 #include <errno.h>
3853 int main() {
3854 int i = (int)errno
3855 ; return 0; }
3857 if { (eval echo configure:3858: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3858 rm -rf conftest*
3859 ac_cv_have_errno_decl=yes
3860 else
3861 echo "configure: failed program was:" >&5
3862 cat conftest.$ac_ext >&5
3863 rm -rf conftest*
3864 ac_cv_have_errno_decl=no
3866 rm -f conftest*
3869 echo "$ac_t""$ac_cv_have_errno_decl" 1>&6
3870 if test x"$ac_cv_have_errno_decl" = x"yes"; then
3871 cat >> confdefs.h <<\EOF
3872 #define HAVE_ERRNO_DECL 1
3878 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
3879 echo "configure:3880: checking for setresuid declaration" >&5
3880 if eval "test \"`echo '$''{'ac_cv_have_setresuid_decl'+set}'`\" = set"; then
3881 echo $ac_n "(cached) $ac_c" 1>&6
3882 else
3884 cat > conftest.$ac_ext <<EOF
3885 #line 3886 "configure"
3886 #include "confdefs.h"
3887 #include <unistd.h>
3888 int main() {
3889 int i = (int)setresuid
3890 ; return 0; }
3892 if { (eval echo configure:3893: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3893 rm -rf conftest*
3894 ac_cv_have_setresuid_decl=yes
3895 else
3896 echo "configure: failed program was:" >&5
3897 cat conftest.$ac_ext >&5
3898 rm -rf conftest*
3899 ac_cv_have_setresuid_decl=no
3901 rm -f conftest*
3904 echo "$ac_t""$ac_cv_have_setresuid_decl" 1>&6
3905 if test x"$ac_cv_have_setresuid_decl" = x"yes"; then
3906 cat >> confdefs.h <<\EOF
3907 #define HAVE_SETRESUID_DECL 1
3913 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
3914 echo "configure:3915: checking for setresgid declaration" >&5
3915 if eval "test \"`echo '$''{'ac_cv_have_setresgid_decl'+set}'`\" = set"; then
3916 echo $ac_n "(cached) $ac_c" 1>&6
3917 else
3919 cat > conftest.$ac_ext <<EOF
3920 #line 3921 "configure"
3921 #include "confdefs.h"
3922 #include <unistd.h>
3923 int main() {
3924 int i = (int)setresgid
3925 ; return 0; }
3927 if { (eval echo configure:3928: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3928 rm -rf conftest*
3929 ac_cv_have_setresgid_decl=yes
3930 else
3931 echo "configure: failed program was:" >&5
3932 cat conftest.$ac_ext >&5
3933 rm -rf conftest*
3934 ac_cv_have_setresgid_decl=no
3936 rm -f conftest*
3939 echo "$ac_t""$ac_cv_have_setresgid_decl" 1>&6
3940 if test x"$ac_cv_have_setresgid_decl" = x"yes"; then
3941 cat >> confdefs.h <<\EOF
3942 #define HAVE_SETRESGID_DECL 1
3948 echo $ac_n "checking for asprintf declaration""... $ac_c" 1>&6
3949 echo "configure:3950: checking for asprintf declaration" >&5
3950 if eval "test \"`echo '$''{'ac_cv_have_asprintf_decl'+set}'`\" = set"; then
3951 echo $ac_n "(cached) $ac_c" 1>&6
3952 else
3954 cat > conftest.$ac_ext <<EOF
3955 #line 3956 "configure"
3956 #include "confdefs.h"
3957 #include <stdio.h>
3958 int main() {
3959 int i = (int)asprintf
3960 ; return 0; }
3962 if { (eval echo configure:3963: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3963 rm -rf conftest*
3964 ac_cv_have_asprintf_decl=yes
3965 else
3966 echo "configure: failed program was:" >&5
3967 cat conftest.$ac_ext >&5
3968 rm -rf conftest*
3969 ac_cv_have_asprintf_decl=no
3971 rm -f conftest*
3974 echo "$ac_t""$ac_cv_have_asprintf_decl" 1>&6
3975 if test x"$ac_cv_have_asprintf_decl" = x"yes"; then
3976 cat >> confdefs.h <<\EOF
3977 #define HAVE_ASPRINTF_DECL 1
3983 echo $ac_n "checking for vasprintf declaration""... $ac_c" 1>&6
3984 echo "configure:3985: checking for vasprintf declaration" >&5
3985 if eval "test \"`echo '$''{'ac_cv_have_vasprintf_decl'+set}'`\" = set"; then
3986 echo $ac_n "(cached) $ac_c" 1>&6
3987 else
3989 cat > conftest.$ac_ext <<EOF
3990 #line 3991 "configure"
3991 #include "confdefs.h"
3992 #include <stdio.h>
3993 int main() {
3994 int i = (int)vasprintf
3995 ; return 0; }
3997 if { (eval echo configure:3998: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3998 rm -rf conftest*
3999 ac_cv_have_vasprintf_decl=yes
4000 else
4001 echo "configure: failed program was:" >&5
4002 cat conftest.$ac_ext >&5
4003 rm -rf conftest*
4004 ac_cv_have_vasprintf_decl=no
4006 rm -f conftest*
4009 echo "$ac_t""$ac_cv_have_vasprintf_decl" 1>&6
4010 if test x"$ac_cv_have_vasprintf_decl" = x"yes"; then
4011 cat >> confdefs.h <<\EOF
4012 #define HAVE_VASPRINTF_DECL 1
4018 echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6
4019 echo "configure:4020: checking for vsnprintf declaration" >&5
4020 if eval "test \"`echo '$''{'ac_cv_have_vsnprintf_decl'+set}'`\" = set"; then
4021 echo $ac_n "(cached) $ac_c" 1>&6
4022 else
4024 cat > conftest.$ac_ext <<EOF
4025 #line 4026 "configure"
4026 #include "confdefs.h"
4027 #include <stdio.h>
4028 int main() {
4029 int i = (int)vsnprintf
4030 ; return 0; }
4032 if { (eval echo configure:4033: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4033 rm -rf conftest*
4034 ac_cv_have_vsnprintf_decl=yes
4035 else
4036 echo "configure: failed program was:" >&5
4037 cat conftest.$ac_ext >&5
4038 rm -rf conftest*
4039 ac_cv_have_vsnprintf_decl=no
4041 rm -f conftest*
4044 echo "$ac_t""$ac_cv_have_vsnprintf_decl" 1>&6
4045 if test x"$ac_cv_have_vsnprintf_decl" = x"yes"; then
4046 cat >> confdefs.h <<\EOF
4047 #define HAVE_VSNPRINTF_DECL 1
4053 echo $ac_n "checking for snprintf declaration""... $ac_c" 1>&6
4054 echo "configure:4055: checking for snprintf declaration" >&5
4055 if eval "test \"`echo '$''{'ac_cv_have_snprintf_decl'+set}'`\" = set"; then
4056 echo $ac_n "(cached) $ac_c" 1>&6
4057 else
4059 cat > conftest.$ac_ext <<EOF
4060 #line 4061 "configure"
4061 #include "confdefs.h"
4062 #include <stdio.h>
4063 int main() {
4064 int i = (int)snprintf
4065 ; return 0; }
4067 if { (eval echo configure:4068: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4068 rm -rf conftest*
4069 ac_cv_have_snprintf_decl=yes
4070 else
4071 echo "configure: failed program was:" >&5
4072 cat conftest.$ac_ext >&5
4073 rm -rf conftest*
4074 ac_cv_have_snprintf_decl=no
4076 rm -f conftest*
4079 echo "$ac_t""$ac_cv_have_snprintf_decl" 1>&6
4080 if test x"$ac_cv_have_snprintf_decl" = x"yes"; then
4081 cat >> confdefs.h <<\EOF
4082 #define HAVE_SNPRINTF_DECL 1
4088 # and glibc has setresuid under linux but the function does
4089 # nothing until kernel 2.1.44! very dumb.
4090 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
4091 echo "configure:4092: checking for real setresuid" >&5
4092 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
4093 echo $ac_n "(cached) $ac_c" 1>&6
4094 else
4096 if test "$cross_compiling" = yes; then
4097 samba_cv_have_setresuid=cross
4098 else
4099 cat > conftest.$ac_ext <<EOF
4100 #line 4101 "configure"
4101 #include "confdefs.h"
4102 #include <errno.h>
4103 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
4105 if { (eval echo configure:4106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4106 then
4107 samba_cv_have_setresuid=yes
4108 else
4109 echo "configure: failed program was:" >&5
4110 cat conftest.$ac_ext >&5
4111 rm -fr conftest*
4112 samba_cv_have_setresuid=no
4114 rm -fr conftest*
4119 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
4120 if test x"$samba_cv_have_setresuid" = x"yes"; then
4121 cat >> confdefs.h <<\EOF
4122 #define HAVE_SETRESUID 1
4127 # Do the same check for setresguid...
4129 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
4130 echo "configure:4131: checking for real setresgid" >&5
4131 if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then
4132 echo $ac_n "(cached) $ac_c" 1>&6
4133 else
4135 if test "$cross_compiling" = yes; then
4136 samba_cv_have_setresgid=cross
4137 else
4138 cat > conftest.$ac_ext <<EOF
4139 #line 4140 "configure"
4140 #include "confdefs.h"
4141 #include <unistd.h>
4142 #include <errno.h>
4143 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
4145 if { (eval echo configure:4146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4146 then
4147 samba_cv_have_setresgid=yes
4148 else
4149 echo "configure: failed program was:" >&5
4150 cat conftest.$ac_ext >&5
4151 rm -fr conftest*
4152 samba_cv_have_setresgid=no
4154 rm -fr conftest*
4159 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
4160 if test x"$samba_cv_have_setresgid" = x"yes"; then
4161 cat >> confdefs.h <<\EOF
4162 #define HAVE_SETRESGID 1
4167 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
4168 echo "configure:4169: checking for 8-bit clean memcmp" >&5
4169 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
4170 echo $ac_n "(cached) $ac_c" 1>&6
4171 else
4172 if test "$cross_compiling" = yes; then
4173 ac_cv_func_memcmp_clean=no
4174 else
4175 cat > conftest.$ac_ext <<EOF
4176 #line 4177 "configure"
4177 #include "confdefs.h"
4179 main()
4181 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4182 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
4186 if { (eval echo configure:4187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4187 then
4188 ac_cv_func_memcmp_clean=yes
4189 else
4190 echo "configure: failed program was:" >&5
4191 cat conftest.$ac_ext >&5
4192 rm -fr conftest*
4193 ac_cv_func_memcmp_clean=no
4195 rm -fr conftest*
4200 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
4201 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
4204 ###############################################
4205 # Readline included by default unless explicitly asked not to
4206 test "${with_readline+set}" != "set" && with_readline=yes
4208 # test for where we get readline() from
4209 echo $ac_n "checking whether to use readline""... $ac_c" 1>&6
4210 echo "configure:4211: checking whether to use readline" >&5
4211 # Check whether --with-readline or --without-readline was given.
4212 if test "${with_readline+set}" = set; then
4213 withval="$with_readline"
4214 case "$with_readline" in
4215 yes)
4216 echo "$ac_t""yes" 1>&6
4218 for ac_hdr in readline.h history.h readline/readline.h
4220 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4221 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4222 echo "configure:4223: checking for $ac_hdr" >&5
4223 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4224 echo $ac_n "(cached) $ac_c" 1>&6
4225 else
4226 cat > conftest.$ac_ext <<EOF
4227 #line 4228 "configure"
4228 #include "confdefs.h"
4229 #include <$ac_hdr>
4231 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4232 { (eval echo configure:4233: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4233 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4234 if test -z "$ac_err"; then
4235 rm -rf conftest*
4236 eval "ac_cv_header_$ac_safe=yes"
4237 else
4238 echo "$ac_err" >&5
4239 echo "configure: failed program was:" >&5
4240 cat conftest.$ac_ext >&5
4241 rm -rf conftest*
4242 eval "ac_cv_header_$ac_safe=no"
4244 rm -f conftest*
4246 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4247 echo "$ac_t""yes" 1>&6
4248 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4249 cat >> confdefs.h <<EOF
4250 #define $ac_tr_hdr 1
4253 else
4254 echo "$ac_t""no" 1>&6
4256 done
4258 for ac_hdr in readline/history.h
4260 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4261 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4262 echo "configure:4263: checking for $ac_hdr" >&5
4263 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4264 echo $ac_n "(cached) $ac_c" 1>&6
4265 else
4266 cat > conftest.$ac_ext <<EOF
4267 #line 4268 "configure"
4268 #include "confdefs.h"
4269 #include <$ac_hdr>
4271 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4272 { (eval echo configure:4273: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4273 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4274 if test -z "$ac_err"; then
4275 rm -rf conftest*
4276 eval "ac_cv_header_$ac_safe=yes"
4277 else
4278 echo "$ac_err" >&5
4279 echo "configure: failed program was:" >&5
4280 cat conftest.$ac_ext >&5
4281 rm -rf conftest*
4282 eval "ac_cv_header_$ac_safe=no"
4284 rm -f conftest*
4286 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4287 echo "$ac_t""yes" 1>&6
4288 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4289 cat >> confdefs.h <<EOF
4290 #define $ac_tr_hdr 1
4293 else
4294 echo "$ac_t""no" 1>&6
4296 done
4299 for ac_hdr in readline.h readline/readline.h
4301 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4302 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4303 echo "configure:4304: checking for $ac_hdr" >&5
4304 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4305 echo $ac_n "(cached) $ac_c" 1>&6
4306 else
4307 cat > conftest.$ac_ext <<EOF
4308 #line 4309 "configure"
4309 #include "confdefs.h"
4310 #include <$ac_hdr>
4312 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4313 { (eval echo configure:4314: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4314 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4315 if test -z "$ac_err"; then
4316 rm -rf conftest*
4317 eval "ac_cv_header_$ac_safe=yes"
4318 else
4319 echo "$ac_err" >&5
4320 echo "configure: failed program was:" >&5
4321 cat conftest.$ac_ext >&5
4322 rm -rf conftest*
4323 eval "ac_cv_header_$ac_safe=no"
4325 rm -f conftest*
4327 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4328 echo "$ac_t""yes" 1>&6
4329 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4330 cat >> confdefs.h <<EOF
4331 #define $ac_tr_hdr 1
4334 for termlib in ncurses curses termcap terminfo termlib; do
4335 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4336 echo "configure:4337: checking for tgetent in -l${termlib}" >&5
4337 ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4338 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4339 echo $ac_n "(cached) $ac_c" 1>&6
4340 else
4341 ac_save_LIBS="$LIBS"
4342 LIBS="-l${termlib} $LIBS"
4343 cat > conftest.$ac_ext <<EOF
4344 #line 4345 "configure"
4345 #include "confdefs.h"
4346 /* Override any gcc2 internal prototype to avoid an error. */
4347 /* We use char because int might match the return type of a gcc2
4348 builtin and then its argument prototype would still apply. */
4349 char tgetent();
4351 int main() {
4352 tgetent()
4353 ; return 0; }
4355 if { (eval echo configure:4356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4356 rm -rf conftest*
4357 eval "ac_cv_lib_$ac_lib_var=yes"
4358 else
4359 echo "configure: failed program was:" >&5
4360 cat conftest.$ac_ext >&5
4361 rm -rf conftest*
4362 eval "ac_cv_lib_$ac_lib_var=no"
4364 rm -f conftest*
4365 LIBS="$ac_save_LIBS"
4368 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4369 echo "$ac_t""yes" 1>&6
4370 TERMLIBS="-l${termlib}"; break
4371 else
4372 echo "$ac_t""no" 1>&6
4375 done
4376 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4377 echo "configure:4378: checking for rl_callback_handler_install in -lreadline" >&5
4378 ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4379 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4380 echo $ac_n "(cached) $ac_c" 1>&6
4381 else
4382 ac_save_LIBS="$LIBS"
4383 LIBS="-lreadline $TERMLIBS $LIBS"
4384 cat > conftest.$ac_ext <<EOF
4385 #line 4386 "configure"
4386 #include "confdefs.h"
4387 /* Override any gcc2 internal prototype to avoid an error. */
4388 /* We use char because int might match the return type of a gcc2
4389 builtin and then its argument prototype would still apply. */
4390 char rl_callback_handler_install();
4392 int main() {
4393 rl_callback_handler_install()
4394 ; return 0; }
4396 if { (eval echo configure:4397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4397 rm -rf conftest*
4398 eval "ac_cv_lib_$ac_lib_var=yes"
4399 else
4400 echo "configure: failed program was:" >&5
4401 cat conftest.$ac_ext >&5
4402 rm -rf conftest*
4403 eval "ac_cv_lib_$ac_lib_var=no"
4405 rm -f conftest*
4406 LIBS="$ac_save_LIBS"
4409 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4410 echo "$ac_t""yes" 1>&6
4411 TERMLIBS="-lreadline $TERMLIBS"
4412 cat >> confdefs.h <<\EOF
4413 #define HAVE_LIBREADLINE 1
4416 break
4417 else
4418 echo "$ac_t""no" 1>&6
4419 TERMLIBS=
4422 else
4423 echo "$ac_t""no" 1>&6
4425 done
4429 echo "$ac_t""no" 1>&6
4432 echo "$ac_t""yes" 1>&6
4434 # Needed for AC_CHECK_HEADERS and AC_CHECK_LIB to look at
4435 # alternate readline path
4436 _ldflags=${LDFLAGS}
4437 _cppflags=${CPPFLAGS}
4439 # Add additional search path
4440 LDFLAGS="-L$with_readline/lib $LDFLAGS"
4441 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
4443 for ac_hdr in readline.h history.h readline/readline.h
4445 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4446 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4447 echo "configure:4448: checking for $ac_hdr" >&5
4448 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4449 echo $ac_n "(cached) $ac_c" 1>&6
4450 else
4451 cat > conftest.$ac_ext <<EOF
4452 #line 4453 "configure"
4453 #include "confdefs.h"
4454 #include <$ac_hdr>
4456 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4457 { (eval echo configure:4458: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4458 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4459 if test -z "$ac_err"; then
4460 rm -rf conftest*
4461 eval "ac_cv_header_$ac_safe=yes"
4462 else
4463 echo "$ac_err" >&5
4464 echo "configure: failed program was:" >&5
4465 cat conftest.$ac_ext >&5
4466 rm -rf conftest*
4467 eval "ac_cv_header_$ac_safe=no"
4469 rm -f conftest*
4471 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4472 echo "$ac_t""yes" 1>&6
4473 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4474 cat >> confdefs.h <<EOF
4475 #define $ac_tr_hdr 1
4478 else
4479 echo "$ac_t""no" 1>&6
4481 done
4483 for ac_hdr in readline/history.h
4485 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4486 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4487 echo "configure:4488: checking for $ac_hdr" >&5
4488 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4489 echo $ac_n "(cached) $ac_c" 1>&6
4490 else
4491 cat > conftest.$ac_ext <<EOF
4492 #line 4493 "configure"
4493 #include "confdefs.h"
4494 #include <$ac_hdr>
4496 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4497 { (eval echo configure:4498: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4498 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4499 if test -z "$ac_err"; then
4500 rm -rf conftest*
4501 eval "ac_cv_header_$ac_safe=yes"
4502 else
4503 echo "$ac_err" >&5
4504 echo "configure: failed program was:" >&5
4505 cat conftest.$ac_ext >&5
4506 rm -rf conftest*
4507 eval "ac_cv_header_$ac_safe=no"
4509 rm -f conftest*
4511 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4512 echo "$ac_t""yes" 1>&6
4513 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4514 cat >> confdefs.h <<EOF
4515 #define $ac_tr_hdr 1
4518 else
4519 echo "$ac_t""no" 1>&6
4521 done
4524 for ac_hdr in readline.h readline/readline.h
4526 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4527 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4528 echo "configure:4529: checking for $ac_hdr" >&5
4529 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4530 echo $ac_n "(cached) $ac_c" 1>&6
4531 else
4532 cat > conftest.$ac_ext <<EOF
4533 #line 4534 "configure"
4534 #include "confdefs.h"
4535 #include <$ac_hdr>
4537 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4538 { (eval echo configure:4539: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4539 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4540 if test -z "$ac_err"; then
4541 rm -rf conftest*
4542 eval "ac_cv_header_$ac_safe=yes"
4543 else
4544 echo "$ac_err" >&5
4545 echo "configure: failed program was:" >&5
4546 cat conftest.$ac_ext >&5
4547 rm -rf conftest*
4548 eval "ac_cv_header_$ac_safe=no"
4550 rm -f conftest*
4552 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4553 echo "$ac_t""yes" 1>&6
4554 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4555 cat >> confdefs.h <<EOF
4556 #define $ac_tr_hdr 1
4559 for termlib in ncurses curses termcap terminfo termlib; do
4560 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4561 echo "configure:4562: checking for tgetent in -l${termlib}" >&5
4562 ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4563 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4564 echo $ac_n "(cached) $ac_c" 1>&6
4565 else
4566 ac_save_LIBS="$LIBS"
4567 LIBS="-l${termlib} $LIBS"
4568 cat > conftest.$ac_ext <<EOF
4569 #line 4570 "configure"
4570 #include "confdefs.h"
4571 /* Override any gcc2 internal prototype to avoid an error. */
4572 /* We use char because int might match the return type of a gcc2
4573 builtin and then its argument prototype would still apply. */
4574 char tgetent();
4576 int main() {
4577 tgetent()
4578 ; return 0; }
4580 if { (eval echo configure:4581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4581 rm -rf conftest*
4582 eval "ac_cv_lib_$ac_lib_var=yes"
4583 else
4584 echo "configure: failed program was:" >&5
4585 cat conftest.$ac_ext >&5
4586 rm -rf conftest*
4587 eval "ac_cv_lib_$ac_lib_var=no"
4589 rm -f conftest*
4590 LIBS="$ac_save_LIBS"
4593 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4594 echo "$ac_t""yes" 1>&6
4595 TERMLIBS="-l${termlib}"; break
4596 else
4597 echo "$ac_t""no" 1>&6
4600 done
4601 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4602 echo "configure:4603: checking for rl_callback_handler_install in -lreadline" >&5
4603 ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4604 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4605 echo $ac_n "(cached) $ac_c" 1>&6
4606 else
4607 ac_save_LIBS="$LIBS"
4608 LIBS="-lreadline $TERMLIBS $LIBS"
4609 cat > conftest.$ac_ext <<EOF
4610 #line 4611 "configure"
4611 #include "confdefs.h"
4612 /* Override any gcc2 internal prototype to avoid an error. */
4613 /* We use char because int might match the return type of a gcc2
4614 builtin and then its argument prototype would still apply. */
4615 char rl_callback_handler_install();
4617 int main() {
4618 rl_callback_handler_install()
4619 ; return 0; }
4621 if { (eval echo configure:4622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4622 rm -rf conftest*
4623 eval "ac_cv_lib_$ac_lib_var=yes"
4624 else
4625 echo "configure: failed program was:" >&5
4626 cat conftest.$ac_ext >&5
4627 rm -rf conftest*
4628 eval "ac_cv_lib_$ac_lib_var=no"
4630 rm -f conftest*
4631 LIBS="$ac_save_LIBS"
4634 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4635 echo "$ac_t""yes" 1>&6
4636 TERMLDFLAGS="-L$with_readline/lib"
4637 TERMCPPFLAGS="-I$with_readline/include"
4638 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
4639 TERMLIBS="-lreadline $TERMLIBS"
4640 cat >> confdefs.h <<\EOF
4641 #define HAVE_LIBREADLINE 1
4644 break
4645 else
4646 echo "$ac_t""no" 1>&6
4647 TERMLIBS= CPPFLAGS=$_cppflags
4650 else
4651 echo "$ac_t""no" 1>&6
4653 done
4656 LDFLAGS=$_ldflags
4658 esac
4659 else
4660 echo "$ac_t""no" 1>&6
4667 # The following test taken from the cvs sources
4668 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
4669 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
4670 # libsocket.so which has a bad implementation of gethostbyname (it
4671 # only looks in /etc/hosts), so we only look for -lsocket if we need
4672 # it.
4673 for ac_func in connect
4675 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4676 echo "configure:4677: checking for $ac_func" >&5
4677 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4678 echo $ac_n "(cached) $ac_c" 1>&6
4679 else
4680 cat > conftest.$ac_ext <<EOF
4681 #line 4682 "configure"
4682 #include "confdefs.h"
4683 /* System header to define __stub macros and hopefully few prototypes,
4684 which can conflict with char $ac_func(); below. */
4685 #include <assert.h>
4686 /* Override any gcc2 internal prototype to avoid an error. */
4687 /* We use char because int might match the return type of a gcc2
4688 builtin and then its argument prototype would still apply. */
4689 char $ac_func();
4691 int main() {
4693 /* The GNU C library defines this for functions which it implements
4694 to always fail with ENOSYS. Some functions are actually named
4695 something starting with __ and the normal name is an alias. */
4696 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4697 choke me
4698 #else
4699 $ac_func();
4700 #endif
4702 ; return 0; }
4704 if { (eval echo configure:4705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4705 rm -rf conftest*
4706 eval "ac_cv_func_$ac_func=yes"
4707 else
4708 echo "configure: failed program was:" >&5
4709 cat conftest.$ac_ext >&5
4710 rm -rf conftest*
4711 eval "ac_cv_func_$ac_func=no"
4713 rm -f conftest*
4716 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4717 echo "$ac_t""yes" 1>&6
4718 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4719 cat >> confdefs.h <<EOF
4720 #define $ac_tr_func 1
4723 else
4724 echo "$ac_t""no" 1>&6
4726 done
4728 if test x"$ac_cv_func_connect" = x"no"; then
4729 case "$LIBS" in
4730 *-lnsl*) ;;
4731 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
4732 echo "configure:4733: checking for printf in -lnsl_s" >&5
4733 ac_lib_var=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
4734 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4735 echo $ac_n "(cached) $ac_c" 1>&6
4736 else
4737 ac_save_LIBS="$LIBS"
4738 LIBS="-lnsl_s $LIBS"
4739 cat > conftest.$ac_ext <<EOF
4740 #line 4741 "configure"
4741 #include "confdefs.h"
4742 /* Override any gcc2 internal prototype to avoid an error. */
4743 /* We use char because int might match the return type of a gcc2
4744 builtin and then its argument prototype would still apply. */
4745 char printf();
4747 int main() {
4748 printf()
4749 ; return 0; }
4751 if { (eval echo configure:4752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4752 rm -rf conftest*
4753 eval "ac_cv_lib_$ac_lib_var=yes"
4754 else
4755 echo "configure: failed program was:" >&5
4756 cat conftest.$ac_ext >&5
4757 rm -rf conftest*
4758 eval "ac_cv_lib_$ac_lib_var=no"
4760 rm -f conftest*
4761 LIBS="$ac_save_LIBS"
4764 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4765 echo "$ac_t""yes" 1>&6
4766 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4767 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4768 cat >> confdefs.h <<EOF
4769 #define $ac_tr_lib 1
4772 LIBS="-lnsl_s $LIBS"
4774 else
4775 echo "$ac_t""no" 1>&6
4778 esac
4779 case "$LIBS" in
4780 *-lnsl*) ;;
4781 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
4782 echo "configure:4783: checking for printf in -lnsl" >&5
4783 ac_lib_var=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
4784 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4785 echo $ac_n "(cached) $ac_c" 1>&6
4786 else
4787 ac_save_LIBS="$LIBS"
4788 LIBS="-lnsl $LIBS"
4789 cat > conftest.$ac_ext <<EOF
4790 #line 4791 "configure"
4791 #include "confdefs.h"
4792 /* Override any gcc2 internal prototype to avoid an error. */
4793 /* We use char because int might match the return type of a gcc2
4794 builtin and then its argument prototype would still apply. */
4795 char printf();
4797 int main() {
4798 printf()
4799 ; return 0; }
4801 if { (eval echo configure:4802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4802 rm -rf conftest*
4803 eval "ac_cv_lib_$ac_lib_var=yes"
4804 else
4805 echo "configure: failed program was:" >&5
4806 cat conftest.$ac_ext >&5
4807 rm -rf conftest*
4808 eval "ac_cv_lib_$ac_lib_var=no"
4810 rm -f conftest*
4811 LIBS="$ac_save_LIBS"
4814 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4815 echo "$ac_t""yes" 1>&6
4816 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4817 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4818 cat >> confdefs.h <<EOF
4819 #define $ac_tr_lib 1
4822 LIBS="-lnsl $LIBS"
4824 else
4825 echo "$ac_t""no" 1>&6
4828 esac
4829 case "$LIBS" in
4830 *-lsocket*) ;;
4831 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
4832 echo "configure:4833: checking for connect in -lsocket" >&5
4833 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
4834 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4835 echo $ac_n "(cached) $ac_c" 1>&6
4836 else
4837 ac_save_LIBS="$LIBS"
4838 LIBS="-lsocket $LIBS"
4839 cat > conftest.$ac_ext <<EOF
4840 #line 4841 "configure"
4841 #include "confdefs.h"
4842 /* Override any gcc2 internal prototype to avoid an error. */
4843 /* We use char because int might match the return type of a gcc2
4844 builtin and then its argument prototype would still apply. */
4845 char connect();
4847 int main() {
4848 connect()
4849 ; return 0; }
4851 if { (eval echo configure:4852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4852 rm -rf conftest*
4853 eval "ac_cv_lib_$ac_lib_var=yes"
4854 else
4855 echo "configure: failed program was:" >&5
4856 cat conftest.$ac_ext >&5
4857 rm -rf conftest*
4858 eval "ac_cv_lib_$ac_lib_var=no"
4860 rm -f conftest*
4861 LIBS="$ac_save_LIBS"
4864 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4865 echo "$ac_t""yes" 1>&6
4866 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4867 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4868 cat >> confdefs.h <<EOF
4869 #define $ac_tr_lib 1
4872 LIBS="-lsocket $LIBS"
4874 else
4875 echo "$ac_t""no" 1>&6
4878 esac
4879 case "$LIBS" in
4880 *-linet*) ;;
4881 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
4882 echo "configure:4883: checking for connect in -linet" >&5
4883 ac_lib_var=`echo inet'_'connect | sed 'y%./+-%__p_%'`
4884 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4885 echo $ac_n "(cached) $ac_c" 1>&6
4886 else
4887 ac_save_LIBS="$LIBS"
4888 LIBS="-linet $LIBS"
4889 cat > conftest.$ac_ext <<EOF
4890 #line 4891 "configure"
4891 #include "confdefs.h"
4892 /* Override any gcc2 internal prototype to avoid an error. */
4893 /* We use char because int might match the return type of a gcc2
4894 builtin and then its argument prototype would still apply. */
4895 char connect();
4897 int main() {
4898 connect()
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_lib_$ac_lib_var=yes"
4904 else
4905 echo "configure: failed program was:" >&5
4906 cat conftest.$ac_ext >&5
4907 rm -rf conftest*
4908 eval "ac_cv_lib_$ac_lib_var=no"
4910 rm -f conftest*
4911 LIBS="$ac_save_LIBS"
4914 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4915 echo "$ac_t""yes" 1>&6
4916 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4917 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4918 cat >> confdefs.h <<EOF
4919 #define $ac_tr_lib 1
4922 LIBS="-linet $LIBS"
4924 else
4925 echo "$ac_t""no" 1>&6
4928 esac
4929 if test x"$ac_cv_lib_socket_connect" = x"yes" ||
4930 test x"$ac_cv_lib_inet_connect" = x"yes"; then
4931 # ac_cv_func_connect=yes
4932 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
4933 cat >> confdefs.h <<\EOF
4934 #define HAVE_CONNECT 1
4940 ###############################################
4941 # test for where we get get_yp_default_domain() from
4942 for ac_func in yp_get_default_domain
4944 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4945 echo "configure:4946: checking for $ac_func" >&5
4946 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4947 echo $ac_n "(cached) $ac_c" 1>&6
4948 else
4949 cat > conftest.$ac_ext <<EOF
4950 #line 4951 "configure"
4951 #include "confdefs.h"
4952 /* System header to define __stub macros and hopefully few prototypes,
4953 which can conflict with char $ac_func(); below. */
4954 #include <assert.h>
4955 /* Override any gcc2 internal prototype to avoid an error. */
4956 /* We use char because int might match the return type of a gcc2
4957 builtin and then its argument prototype would still apply. */
4958 char $ac_func();
4960 int main() {
4962 /* The GNU C library defines this for functions which it implements
4963 to always fail with ENOSYS. Some functions are actually named
4964 something starting with __ and the normal name is an alias. */
4965 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4966 choke me
4967 #else
4968 $ac_func();
4969 #endif
4971 ; return 0; }
4973 if { (eval echo configure:4974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4974 rm -rf conftest*
4975 eval "ac_cv_func_$ac_func=yes"
4976 else
4977 echo "configure: failed program was:" >&5
4978 cat conftest.$ac_ext >&5
4979 rm -rf conftest*
4980 eval "ac_cv_func_$ac_func=no"
4982 rm -f conftest*
4985 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4986 echo "$ac_t""yes" 1>&6
4987 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4988 cat >> confdefs.h <<EOF
4989 #define $ac_tr_func 1
4992 else
4993 echo "$ac_t""no" 1>&6
4995 done
4997 if test x"$ac_cv_func_yp_get_default_domain" = x"no"; then
4998 echo $ac_n "checking for yp_get_default_domain in -lnsl""... $ac_c" 1>&6
4999 echo "configure:5000: checking for yp_get_default_domain in -lnsl" >&5
5000 ac_lib_var=`echo nsl'_'yp_get_default_domain | sed 'y%./+-%__p_%'`
5001 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5002 echo $ac_n "(cached) $ac_c" 1>&6
5003 else
5004 ac_save_LIBS="$LIBS"
5005 LIBS="-lnsl $LIBS"
5006 cat > conftest.$ac_ext <<EOF
5007 #line 5008 "configure"
5008 #include "confdefs.h"
5009 /* Override any gcc2 internal prototype to avoid an error. */
5010 /* We use char because int might match the return type of a gcc2
5011 builtin and then its argument prototype would still apply. */
5012 char yp_get_default_domain();
5014 int main() {
5015 yp_get_default_domain()
5016 ; return 0; }
5018 if { (eval echo configure:5019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5019 rm -rf conftest*
5020 eval "ac_cv_lib_$ac_lib_var=yes"
5021 else
5022 echo "configure: failed program was:" >&5
5023 cat conftest.$ac_ext >&5
5024 rm -rf conftest*
5025 eval "ac_cv_lib_$ac_lib_var=no"
5027 rm -f conftest*
5028 LIBS="$ac_save_LIBS"
5031 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5032 echo "$ac_t""yes" 1>&6
5033 LIBS="$LIBS -lnsl";
5034 cat >> confdefs.h <<\EOF
5035 #define HAVE_YP_GET_DEFAULT_DOMAIN 1
5038 else
5039 echo "$ac_t""no" 1>&6
5044 # Check if we have execl, if not we need to compile smbrun.
5045 for ac_func in execl
5047 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5048 echo "configure:5049: checking for $ac_func" >&5
5049 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5050 echo $ac_n "(cached) $ac_c" 1>&6
5051 else
5052 cat > conftest.$ac_ext <<EOF
5053 #line 5054 "configure"
5054 #include "confdefs.h"
5055 /* System header to define __stub macros and hopefully few prototypes,
5056 which can conflict with char $ac_func(); below. */
5057 #include <assert.h>
5058 /* Override any gcc2 internal prototype to avoid an error. */
5059 /* We use char because int might match the return type of a gcc2
5060 builtin and then its argument prototype would still apply. */
5061 char $ac_func();
5063 int main() {
5065 /* The GNU C library defines this for functions which it implements
5066 to always fail with ENOSYS. Some functions are actually named
5067 something starting with __ and the normal name is an alias. */
5068 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5069 choke me
5070 #else
5071 $ac_func();
5072 #endif
5074 ; return 0; }
5076 if { (eval echo configure:5077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5077 rm -rf conftest*
5078 eval "ac_cv_func_$ac_func=yes"
5079 else
5080 echo "configure: failed program was:" >&5
5081 cat conftest.$ac_ext >&5
5082 rm -rf conftest*
5083 eval "ac_cv_func_$ac_func=no"
5085 rm -f conftest*
5088 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5089 echo "$ac_t""yes" 1>&6
5090 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5091 cat >> confdefs.h <<EOF
5092 #define $ac_tr_func 1
5095 else
5096 echo "$ac_t""no" 1>&6
5098 done
5100 if test x"$ac_cv_func_execl" = x"no"; then
5101 RUNPROG="bin/smbrun"
5102 else
5103 RUNPROG=""
5106 for ac_func in waitpid getcwd strdup strtoul strerror chown fchown chmod fchmod chroot link
5108 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5109 echo "configure:5110: checking for $ac_func" >&5
5110 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5111 echo $ac_n "(cached) $ac_c" 1>&6
5112 else
5113 cat > conftest.$ac_ext <<EOF
5114 #line 5115 "configure"
5115 #include "confdefs.h"
5116 /* System header to define __stub macros and hopefully few prototypes,
5117 which can conflict with char $ac_func(); below. */
5118 #include <assert.h>
5119 /* Override any gcc2 internal prototype to avoid an error. */
5120 /* We use char because int might match the return type of a gcc2
5121 builtin and then its argument prototype would still apply. */
5122 char $ac_func();
5124 int main() {
5126 /* The GNU C library defines this for functions which it implements
5127 to always fail with ENOSYS. Some functions are actually named
5128 something starting with __ and the normal name is an alias. */
5129 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5130 choke me
5131 #else
5132 $ac_func();
5133 #endif
5135 ; return 0; }
5137 if { (eval echo configure:5138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5138 rm -rf conftest*
5139 eval "ac_cv_func_$ac_func=yes"
5140 else
5141 echo "configure: failed program was:" >&5
5142 cat conftest.$ac_ext >&5
5143 rm -rf conftest*
5144 eval "ac_cv_func_$ac_func=no"
5146 rm -f conftest*
5149 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5150 echo "$ac_t""yes" 1>&6
5151 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5152 cat >> confdefs.h <<EOF
5153 #define $ac_tr_func 1
5156 else
5157 echo "$ac_t""no" 1>&6
5159 done
5161 for ac_func in fstat strchr utime utimes getrlimit fsync bzero memset setpgid mknod mknod64
5163 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5164 echo "configure:5165: checking for $ac_func" >&5
5165 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5166 echo $ac_n "(cached) $ac_c" 1>&6
5167 else
5168 cat > conftest.$ac_ext <<EOF
5169 #line 5170 "configure"
5170 #include "confdefs.h"
5171 /* System header to define __stub macros and hopefully few prototypes,
5172 which can conflict with char $ac_func(); below. */
5173 #include <assert.h>
5174 /* Override any gcc2 internal prototype to avoid an error. */
5175 /* We use char because int might match the return type of a gcc2
5176 builtin and then its argument prototype would still apply. */
5177 char $ac_func();
5179 int main() {
5181 /* The GNU C library defines this for functions which it implements
5182 to always fail with ENOSYS. Some functions are actually named
5183 something starting with __ and the normal name is an alias. */
5184 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5185 choke me
5186 #else
5187 $ac_func();
5188 #endif
5190 ; return 0; }
5192 if { (eval echo configure:5193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5193 rm -rf conftest*
5194 eval "ac_cv_func_$ac_func=yes"
5195 else
5196 echo "configure: failed program was:" >&5
5197 cat conftest.$ac_ext >&5
5198 rm -rf conftest*
5199 eval "ac_cv_func_$ac_func=no"
5201 rm -f conftest*
5204 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5205 echo "$ac_t""yes" 1>&6
5206 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5207 cat >> confdefs.h <<EOF
5208 #define $ac_tr_func 1
5211 else
5212 echo "$ac_t""no" 1>&6
5214 done
5216 for ac_func in memmove vsnprintf snprintf asprintf vasprintf setsid glob strpbrk pipe crypt16 getauthuid
5218 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5219 echo "configure:5220: checking for $ac_func" >&5
5220 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5221 echo $ac_n "(cached) $ac_c" 1>&6
5222 else
5223 cat > conftest.$ac_ext <<EOF
5224 #line 5225 "configure"
5225 #include "confdefs.h"
5226 /* System header to define __stub macros and hopefully few prototypes,
5227 which can conflict with char $ac_func(); below. */
5228 #include <assert.h>
5229 /* Override any gcc2 internal prototype to avoid an error. */
5230 /* We use char because int might match the return type of a gcc2
5231 builtin and then its argument prototype would still apply. */
5232 char $ac_func();
5234 int main() {
5236 /* The GNU C library defines this for functions which it implements
5237 to always fail with ENOSYS. Some functions are actually named
5238 something starting with __ and the normal name is an alias. */
5239 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5240 choke me
5241 #else
5242 $ac_func();
5243 #endif
5245 ; return 0; }
5247 if { (eval echo configure:5248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5248 rm -rf conftest*
5249 eval "ac_cv_func_$ac_func=yes"
5250 else
5251 echo "configure: failed program was:" >&5
5252 cat conftest.$ac_ext >&5
5253 rm -rf conftest*
5254 eval "ac_cv_func_$ac_func=no"
5256 rm -f conftest*
5259 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5260 echo "$ac_t""yes" 1>&6
5261 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5262 cat >> confdefs.h <<EOF
5263 #define $ac_tr_func 1
5266 else
5267 echo "$ac_t""no" 1>&6
5269 done
5271 for ac_func in strftime sigprocmask sigblock sigaction sigset innetgr setnetgrent getnetgrent endnetgrent
5273 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5274 echo "configure:5275: checking for $ac_func" >&5
5275 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5276 echo $ac_n "(cached) $ac_c" 1>&6
5277 else
5278 cat > conftest.$ac_ext <<EOF
5279 #line 5280 "configure"
5280 #include "confdefs.h"
5281 /* System header to define __stub macros and hopefully few prototypes,
5282 which can conflict with char $ac_func(); below. */
5283 #include <assert.h>
5284 /* Override any gcc2 internal prototype to avoid an error. */
5285 /* We use char because int might match the return type of a gcc2
5286 builtin and then its argument prototype would still apply. */
5287 char $ac_func();
5289 int main() {
5291 /* The GNU C library defines this for functions which it implements
5292 to always fail with ENOSYS. Some functions are actually named
5293 something starting with __ and the normal name is an alias. */
5294 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5295 choke me
5296 #else
5297 $ac_func();
5298 #endif
5300 ; return 0; }
5302 if { (eval echo configure:5303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5303 rm -rf conftest*
5304 eval "ac_cv_func_$ac_func=yes"
5305 else
5306 echo "configure: failed program was:" >&5
5307 cat conftest.$ac_ext >&5
5308 rm -rf conftest*
5309 eval "ac_cv_func_$ac_func=no"
5311 rm -f conftest*
5314 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5315 echo "$ac_t""yes" 1>&6
5316 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5317 cat >> confdefs.h <<EOF
5318 #define $ac_tr_func 1
5321 else
5322 echo "$ac_t""no" 1>&6
5324 done
5326 for ac_func in initgroups select poll rdchk getgrnam getgrent pathconf realpath
5328 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5329 echo "configure:5330: checking for $ac_func" >&5
5330 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5331 echo $ac_n "(cached) $ac_c" 1>&6
5332 else
5333 cat > conftest.$ac_ext <<EOF
5334 #line 5335 "configure"
5335 #include "confdefs.h"
5336 /* System header to define __stub macros and hopefully few prototypes,
5337 which can conflict with char $ac_func(); below. */
5338 #include <assert.h>
5339 /* Override any gcc2 internal prototype to avoid an error. */
5340 /* We use char because int might match the return type of a gcc2
5341 builtin and then its argument prototype would still apply. */
5342 char $ac_func();
5344 int main() {
5346 /* The GNU C library defines this for functions which it implements
5347 to always fail with ENOSYS. Some functions are actually named
5348 something starting with __ and the normal name is an alias. */
5349 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5350 choke me
5351 #else
5352 $ac_func();
5353 #endif
5355 ; return 0; }
5357 if { (eval echo configure:5358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5358 rm -rf conftest*
5359 eval "ac_cv_func_$ac_func=yes"
5360 else
5361 echo "configure: failed program was:" >&5
5362 cat conftest.$ac_ext >&5
5363 rm -rf conftest*
5364 eval "ac_cv_func_$ac_func=no"
5366 rm -f conftest*
5369 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5370 echo "$ac_t""yes" 1>&6
5371 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5372 cat >> confdefs.h <<EOF
5373 #define $ac_tr_func 1
5376 else
5377 echo "$ac_t""no" 1>&6
5379 done
5381 for ac_func in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
5383 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5384 echo "configure:5385: checking for $ac_func" >&5
5385 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5386 echo $ac_n "(cached) $ac_c" 1>&6
5387 else
5388 cat > conftest.$ac_ext <<EOF
5389 #line 5390 "configure"
5390 #include "confdefs.h"
5391 /* System header to define __stub macros and hopefully few prototypes,
5392 which can conflict with char $ac_func(); below. */
5393 #include <assert.h>
5394 /* Override any gcc2 internal prototype to avoid an error. */
5395 /* We use char because int might match the return type of a gcc2
5396 builtin and then its argument prototype would still apply. */
5397 char $ac_func();
5399 int main() {
5401 /* The GNU C library defines this for functions which it implements
5402 to always fail with ENOSYS. Some functions are actually named
5403 something starting with __ and the normal name is an alias. */
5404 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5405 choke me
5406 #else
5407 $ac_func();
5408 #endif
5410 ; return 0; }
5412 if { (eval echo configure:5413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5413 rm -rf conftest*
5414 eval "ac_cv_func_$ac_func=yes"
5415 else
5416 echo "configure: failed program was:" >&5
5417 cat conftest.$ac_ext >&5
5418 rm -rf conftest*
5419 eval "ac_cv_func_$ac_func=no"
5421 rm -f conftest*
5424 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5425 echo "$ac_t""yes" 1>&6
5426 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5427 cat >> confdefs.h <<EOF
5428 #define $ac_tr_func 1
5431 else
5432 echo "$ac_t""no" 1>&6
5434 done
5436 for ac_func in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
5438 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5439 echo "configure:5440: checking for $ac_func" >&5
5440 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5441 echo $ac_n "(cached) $ac_c" 1>&6
5442 else
5443 cat > conftest.$ac_ext <<EOF
5444 #line 5445 "configure"
5445 #include "confdefs.h"
5446 /* System header to define __stub macros and hopefully few prototypes,
5447 which can conflict with char $ac_func(); below. */
5448 #include <assert.h>
5449 /* Override any gcc2 internal prototype to avoid an error. */
5450 /* We use char because int might match the return type of a gcc2
5451 builtin and then its argument prototype would still apply. */
5452 char $ac_func();
5454 int main() {
5456 /* The GNU C library defines this for functions which it implements
5457 to always fail with ENOSYS. Some functions are actually named
5458 something starting with __ and the normal name is an alias. */
5459 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5460 choke me
5461 #else
5462 $ac_func();
5463 #endif
5465 ; return 0; }
5467 if { (eval echo configure:5468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5468 rm -rf conftest*
5469 eval "ac_cv_func_$ac_func=yes"
5470 else
5471 echo "configure: failed program was:" >&5
5472 cat conftest.$ac_ext >&5
5473 rm -rf conftest*
5474 eval "ac_cv_func_$ac_func=no"
5476 rm -f conftest*
5479 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5480 echo "$ac_t""yes" 1>&6
5481 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5482 cat >> confdefs.h <<EOF
5483 #define $ac_tr_func 1
5486 else
5487 echo "$ac_t""no" 1>&6
5489 done
5491 for ac_func in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam setlinebuf
5493 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5494 echo "configure:5495: checking for $ac_func" >&5
5495 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5496 echo $ac_n "(cached) $ac_c" 1>&6
5497 else
5498 cat > conftest.$ac_ext <<EOF
5499 #line 5500 "configure"
5500 #include "confdefs.h"
5501 /* System header to define __stub macros and hopefully few prototypes,
5502 which can conflict with char $ac_func(); below. */
5503 #include <assert.h>
5504 /* Override any gcc2 internal prototype to avoid an error. */
5505 /* We use char because int might match the return type of a gcc2
5506 builtin and then its argument prototype would still apply. */
5507 char $ac_func();
5509 int main() {
5511 /* The GNU C library defines this for functions which it implements
5512 to always fail with ENOSYS. Some functions are actually named
5513 something starting with __ and the normal name is an alias. */
5514 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5515 choke me
5516 #else
5517 $ac_func();
5518 #endif
5520 ; return 0; }
5522 if { (eval echo configure:5523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5523 rm -rf conftest*
5524 eval "ac_cv_func_$ac_func=yes"
5525 else
5526 echo "configure: failed program was:" >&5
5527 cat conftest.$ac_ext >&5
5528 rm -rf conftest*
5529 eval "ac_cv_func_$ac_func=no"
5531 rm -f conftest*
5534 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5535 echo "$ac_t""yes" 1>&6
5536 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5537 cat >> confdefs.h <<EOF
5538 #define $ac_tr_func 1
5541 else
5542 echo "$ac_t""no" 1>&6
5544 done
5546 for ac_func in srandom random srand rand setenv usleep strcasecmp fcvt fcvtl symlink readlink
5548 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5549 echo "configure:5550: checking for $ac_func" >&5
5550 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5551 echo $ac_n "(cached) $ac_c" 1>&6
5552 else
5553 cat > conftest.$ac_ext <<EOF
5554 #line 5555 "configure"
5555 #include "confdefs.h"
5556 /* System header to define __stub macros and hopefully few prototypes,
5557 which can conflict with char $ac_func(); below. */
5558 #include <assert.h>
5559 /* Override any gcc2 internal prototype to avoid an error. */
5560 /* We use char because int might match the return type of a gcc2
5561 builtin and then its argument prototype would still apply. */
5562 char $ac_func();
5564 int main() {
5566 /* The GNU C library defines this for functions which it implements
5567 to always fail with ENOSYS. Some functions are actually named
5568 something starting with __ and the normal name is an alias. */
5569 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5570 choke me
5571 #else
5572 $ac_func();
5573 #endif
5575 ; return 0; }
5577 if { (eval echo configure:5578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5578 rm -rf conftest*
5579 eval "ac_cv_func_$ac_func=yes"
5580 else
5581 echo "configure: failed program was:" >&5
5582 cat conftest.$ac_ext >&5
5583 rm -rf conftest*
5584 eval "ac_cv_func_$ac_func=no"
5586 rm -f conftest*
5589 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5590 echo "$ac_t""yes" 1>&6
5591 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5592 cat >> confdefs.h <<EOF
5593 #define $ac_tr_func 1
5596 else
5597 echo "$ac_t""no" 1>&6
5599 done
5601 for ac_func in syslog vsyslog
5603 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5604 echo "configure:5605: checking for $ac_func" >&5
5605 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5606 echo $ac_n "(cached) $ac_c" 1>&6
5607 else
5608 cat > conftest.$ac_ext <<EOF
5609 #line 5610 "configure"
5610 #include "confdefs.h"
5611 /* System header to define __stub macros and hopefully few prototypes,
5612 which can conflict with char $ac_func(); below. */
5613 #include <assert.h>
5614 /* Override any gcc2 internal prototype to avoid an error. */
5615 /* We use char because int might match the return type of a gcc2
5616 builtin and then its argument prototype would still apply. */
5617 char $ac_func();
5619 int main() {
5621 /* The GNU C library defines this for functions which it implements
5622 to always fail with ENOSYS. Some functions are actually named
5623 something starting with __ and the normal name is an alias. */
5624 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5625 choke me
5626 #else
5627 $ac_func();
5628 #endif
5630 ; return 0; }
5632 if { (eval echo configure:5633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5633 rm -rf conftest*
5634 eval "ac_cv_func_$ac_func=yes"
5635 else
5636 echo "configure: failed program was:" >&5
5637 cat conftest.$ac_ext >&5
5638 rm -rf conftest*
5639 eval "ac_cv_func_$ac_func=no"
5641 rm -f conftest*
5644 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5645 echo "$ac_t""yes" 1>&6
5646 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5647 cat >> confdefs.h <<EOF
5648 #define $ac_tr_func 1
5651 else
5652 echo "$ac_t""no" 1>&6
5654 done
5657 # syscall() is needed for smbwrapper.
5658 for ac_func in syscall
5660 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5661 echo "configure:5662: checking for $ac_func" >&5
5662 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5663 echo $ac_n "(cached) $ac_c" 1>&6
5664 else
5665 cat > conftest.$ac_ext <<EOF
5666 #line 5667 "configure"
5667 #include "confdefs.h"
5668 /* System header to define __stub macros and hopefully few prototypes,
5669 which can conflict with char $ac_func(); below. */
5670 #include <assert.h>
5671 /* Override any gcc2 internal prototype to avoid an error. */
5672 /* We use char because int might match the return type of a gcc2
5673 builtin and then its argument prototype would still apply. */
5674 char $ac_func();
5676 int main() {
5678 /* The GNU C library defines this for functions which it implements
5679 to always fail with ENOSYS. Some functions are actually named
5680 something starting with __ and the normal name is an alias. */
5681 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5682 choke me
5683 #else
5684 $ac_func();
5685 #endif
5687 ; return 0; }
5689 if { (eval echo configure:5690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5690 rm -rf conftest*
5691 eval "ac_cv_func_$ac_func=yes"
5692 else
5693 echo "configure: failed program was:" >&5
5694 cat conftest.$ac_ext >&5
5695 rm -rf conftest*
5696 eval "ac_cv_func_$ac_func=no"
5698 rm -f conftest*
5701 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5702 echo "$ac_t""yes" 1>&6
5703 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5704 cat >> confdefs.h <<EOF
5705 #define $ac_tr_func 1
5708 else
5709 echo "$ac_t""no" 1>&6
5711 done
5714 for ac_func in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
5716 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5717 echo "configure:5718: checking for $ac_func" >&5
5718 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5719 echo $ac_n "(cached) $ac_c" 1>&6
5720 else
5721 cat > conftest.$ac_ext <<EOF
5722 #line 5723 "configure"
5723 #include "confdefs.h"
5724 /* System header to define __stub macros and hopefully few prototypes,
5725 which can conflict with char $ac_func(); below. */
5726 #include <assert.h>
5727 /* Override any gcc2 internal prototype to avoid an error. */
5728 /* We use char because int might match the return type of a gcc2
5729 builtin and then its argument prototype would still apply. */
5730 char $ac_func();
5732 int main() {
5734 /* The GNU C library defines this for functions which it implements
5735 to always fail with ENOSYS. Some functions are actually named
5736 something starting with __ and the normal name is an alias. */
5737 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5738 choke me
5739 #else
5740 $ac_func();
5741 #endif
5743 ; return 0; }
5745 if { (eval echo configure:5746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5746 rm -rf conftest*
5747 eval "ac_cv_func_$ac_func=yes"
5748 else
5749 echo "configure: failed program was:" >&5
5750 cat conftest.$ac_ext >&5
5751 rm -rf conftest*
5752 eval "ac_cv_func_$ac_func=no"
5754 rm -f conftest*
5757 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5758 echo "$ac_t""yes" 1>&6
5759 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5760 cat >> confdefs.h <<EOF
5761 #define $ac_tr_func 1
5764 else
5765 echo "$ac_t""no" 1>&6
5767 done
5769 for ac_func in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
5771 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5772 echo "configure:5773: checking for $ac_func" >&5
5773 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5774 echo $ac_n "(cached) $ac_c" 1>&6
5775 else
5776 cat > conftest.$ac_ext <<EOF
5777 #line 5778 "configure"
5778 #include "confdefs.h"
5779 /* System header to define __stub macros and hopefully few prototypes,
5780 which can conflict with char $ac_func(); below. */
5781 #include <assert.h>
5782 /* Override any gcc2 internal prototype to avoid an error. */
5783 /* We use char because int might match the return type of a gcc2
5784 builtin and then its argument prototype would still apply. */
5785 char $ac_func();
5787 int main() {
5789 /* The GNU C library defines this for functions which it implements
5790 to always fail with ENOSYS. Some functions are actually named
5791 something starting with __ and the normal name is an alias. */
5792 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5793 choke me
5794 #else
5795 $ac_func();
5796 #endif
5798 ; return 0; }
5800 if { (eval echo configure:5801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5801 rm -rf conftest*
5802 eval "ac_cv_func_$ac_func=yes"
5803 else
5804 echo "configure: failed program was:" >&5
5805 cat conftest.$ac_ext >&5
5806 rm -rf conftest*
5807 eval "ac_cv_func_$ac_func=no"
5809 rm -f conftest*
5812 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5813 echo "$ac_t""yes" 1>&6
5814 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5815 cat >> confdefs.h <<EOF
5816 #define $ac_tr_func 1
5819 else
5820 echo "$ac_t""no" 1>&6
5822 done
5824 for ac_func in __getcwd _getcwd
5826 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5827 echo "configure:5828: checking for $ac_func" >&5
5828 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5829 echo $ac_n "(cached) $ac_c" 1>&6
5830 else
5831 cat > conftest.$ac_ext <<EOF
5832 #line 5833 "configure"
5833 #include "confdefs.h"
5834 /* System header to define __stub macros and hopefully few prototypes,
5835 which can conflict with char $ac_func(); below. */
5836 #include <assert.h>
5837 /* Override any gcc2 internal prototype to avoid an error. */
5838 /* We use char because int might match the return type of a gcc2
5839 builtin and then its argument prototype would still apply. */
5840 char $ac_func();
5842 int main() {
5844 /* The GNU C library defines this for functions which it implements
5845 to always fail with ENOSYS. Some functions are actually named
5846 something starting with __ and the normal name is an alias. */
5847 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5848 choke me
5849 #else
5850 $ac_func();
5851 #endif
5853 ; return 0; }
5855 if { (eval echo configure:5856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5856 rm -rf conftest*
5857 eval "ac_cv_func_$ac_func=yes"
5858 else
5859 echo "configure: failed program was:" >&5
5860 cat conftest.$ac_ext >&5
5861 rm -rf conftest*
5862 eval "ac_cv_func_$ac_func=no"
5864 rm -f conftest*
5867 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5868 echo "$ac_t""yes" 1>&6
5869 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5870 cat >> confdefs.h <<EOF
5871 #define $ac_tr_func 1
5874 else
5875 echo "$ac_t""no" 1>&6
5877 done
5879 for ac_func in __xstat __fxstat __lxstat
5881 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5882 echo "configure:5883: checking for $ac_func" >&5
5883 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5884 echo $ac_n "(cached) $ac_c" 1>&6
5885 else
5886 cat > conftest.$ac_ext <<EOF
5887 #line 5888 "configure"
5888 #include "confdefs.h"
5889 /* System header to define __stub macros and hopefully few prototypes,
5890 which can conflict with char $ac_func(); below. */
5891 #include <assert.h>
5892 /* Override any gcc2 internal prototype to avoid an error. */
5893 /* We use char because int might match the return type of a gcc2
5894 builtin and then its argument prototype would still apply. */
5895 char $ac_func();
5897 int main() {
5899 /* The GNU C library defines this for functions which it implements
5900 to always fail with ENOSYS. Some functions are actually named
5901 something starting with __ and the normal name is an alias. */
5902 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5903 choke me
5904 #else
5905 $ac_func();
5906 #endif
5908 ; return 0; }
5910 if { (eval echo configure:5911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5911 rm -rf conftest*
5912 eval "ac_cv_func_$ac_func=yes"
5913 else
5914 echo "configure: failed program was:" >&5
5915 cat conftest.$ac_ext >&5
5916 rm -rf conftest*
5917 eval "ac_cv_func_$ac_func=no"
5919 rm -f conftest*
5922 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5923 echo "$ac_t""yes" 1>&6
5924 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5925 cat >> confdefs.h <<EOF
5926 #define $ac_tr_func 1
5929 else
5930 echo "$ac_t""no" 1>&6
5932 done
5934 for ac_func in _stat _lstat _fstat __stat __lstat __fstat
5936 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5937 echo "configure:5938: checking for $ac_func" >&5
5938 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5939 echo $ac_n "(cached) $ac_c" 1>&6
5940 else
5941 cat > conftest.$ac_ext <<EOF
5942 #line 5943 "configure"
5943 #include "confdefs.h"
5944 /* System header to define __stub macros and hopefully few prototypes,
5945 which can conflict with char $ac_func(); below. */
5946 #include <assert.h>
5947 /* Override any gcc2 internal prototype to avoid an error. */
5948 /* We use char because int might match the return type of a gcc2
5949 builtin and then its argument prototype would still apply. */
5950 char $ac_func();
5952 int main() {
5954 /* The GNU C library defines this for functions which it implements
5955 to always fail with ENOSYS. Some functions are actually named
5956 something starting with __ and the normal name is an alias. */
5957 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5958 choke me
5959 #else
5960 $ac_func();
5961 #endif
5963 ; return 0; }
5965 if { (eval echo configure:5966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5966 rm -rf conftest*
5967 eval "ac_cv_func_$ac_func=yes"
5968 else
5969 echo "configure: failed program was:" >&5
5970 cat conftest.$ac_ext >&5
5971 rm -rf conftest*
5972 eval "ac_cv_func_$ac_func=no"
5974 rm -f conftest*
5977 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5978 echo "$ac_t""yes" 1>&6
5979 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5980 cat >> confdefs.h <<EOF
5981 #define $ac_tr_func 1
5984 else
5985 echo "$ac_t""no" 1>&6
5987 done
5989 for ac_func in _acl __acl _facl __facl _open __open _chdir __chdir
5991 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5992 echo "configure:5993: checking for $ac_func" >&5
5993 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5994 echo $ac_n "(cached) $ac_c" 1>&6
5995 else
5996 cat > conftest.$ac_ext <<EOF
5997 #line 5998 "configure"
5998 #include "confdefs.h"
5999 /* System header to define __stub macros and hopefully few prototypes,
6000 which can conflict with char $ac_func(); below. */
6001 #include <assert.h>
6002 /* Override any gcc2 internal prototype to avoid an error. */
6003 /* We use char because int might match the return type of a gcc2
6004 builtin and then its argument prototype would still apply. */
6005 char $ac_func();
6007 int main() {
6009 /* The GNU C library defines this for functions which it implements
6010 to always fail with ENOSYS. Some functions are actually named
6011 something starting with __ and the normal name is an alias. */
6012 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6013 choke me
6014 #else
6015 $ac_func();
6016 #endif
6018 ; return 0; }
6020 if { (eval echo configure:6021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6021 rm -rf conftest*
6022 eval "ac_cv_func_$ac_func=yes"
6023 else
6024 echo "configure: failed program was:" >&5
6025 cat conftest.$ac_ext >&5
6026 rm -rf conftest*
6027 eval "ac_cv_func_$ac_func=no"
6029 rm -f conftest*
6032 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6033 echo "$ac_t""yes" 1>&6
6034 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6035 cat >> confdefs.h <<EOF
6036 #define $ac_tr_func 1
6039 else
6040 echo "$ac_t""no" 1>&6
6042 done
6044 for ac_func in _close __close _fchdir __fchdir _fcntl __fcntl
6046 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6047 echo "configure:6048: checking for $ac_func" >&5
6048 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6049 echo $ac_n "(cached) $ac_c" 1>&6
6050 else
6051 cat > conftest.$ac_ext <<EOF
6052 #line 6053 "configure"
6053 #include "confdefs.h"
6054 /* System header to define __stub macros and hopefully few prototypes,
6055 which can conflict with char $ac_func(); below. */
6056 #include <assert.h>
6057 /* Override any gcc2 internal prototype to avoid an error. */
6058 /* We use char because int might match the return type of a gcc2
6059 builtin and then its argument prototype would still apply. */
6060 char $ac_func();
6062 int main() {
6064 /* The GNU C library defines this for functions which it implements
6065 to always fail with ENOSYS. Some functions are actually named
6066 something starting with __ and the normal name is an alias. */
6067 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6068 choke me
6069 #else
6070 $ac_func();
6071 #endif
6073 ; return 0; }
6075 if { (eval echo configure:6076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6076 rm -rf conftest*
6077 eval "ac_cv_func_$ac_func=yes"
6078 else
6079 echo "configure: failed program was:" >&5
6080 cat conftest.$ac_ext >&5
6081 rm -rf conftest*
6082 eval "ac_cv_func_$ac_func=no"
6084 rm -f conftest*
6087 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6088 echo "$ac_t""yes" 1>&6
6089 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6090 cat >> confdefs.h <<EOF
6091 #define $ac_tr_func 1
6094 else
6095 echo "$ac_t""no" 1>&6
6097 done
6099 for ac_func in getdents _getdents __getdents _lseek __lseek _read __read
6101 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6102 echo "configure:6103: checking for $ac_func" >&5
6103 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6104 echo $ac_n "(cached) $ac_c" 1>&6
6105 else
6106 cat > conftest.$ac_ext <<EOF
6107 #line 6108 "configure"
6108 #include "confdefs.h"
6109 /* System header to define __stub macros and hopefully few prototypes,
6110 which can conflict with char $ac_func(); below. */
6111 #include <assert.h>
6112 /* Override any gcc2 internal prototype to avoid an error. */
6113 /* We use char because int might match the return type of a gcc2
6114 builtin and then its argument prototype would still apply. */
6115 char $ac_func();
6117 int main() {
6119 /* The GNU C library defines this for functions which it implements
6120 to always fail with ENOSYS. Some functions are actually named
6121 something starting with __ and the normal name is an alias. */
6122 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6123 choke me
6124 #else
6125 $ac_func();
6126 #endif
6128 ; return 0; }
6130 if { (eval echo configure:6131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6131 rm -rf conftest*
6132 eval "ac_cv_func_$ac_func=yes"
6133 else
6134 echo "configure: failed program was:" >&5
6135 cat conftest.$ac_ext >&5
6136 rm -rf conftest*
6137 eval "ac_cv_func_$ac_func=no"
6139 rm -f conftest*
6142 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6143 echo "$ac_t""yes" 1>&6
6144 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6145 cat >> confdefs.h <<EOF
6146 #define $ac_tr_func 1
6149 else
6150 echo "$ac_t""no" 1>&6
6152 done
6154 for ac_func in _write __write _fork __fork
6156 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6157 echo "configure:6158: checking for $ac_func" >&5
6158 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6159 echo $ac_n "(cached) $ac_c" 1>&6
6160 else
6161 cat > conftest.$ac_ext <<EOF
6162 #line 6163 "configure"
6163 #include "confdefs.h"
6164 /* System header to define __stub macros and hopefully few prototypes,
6165 which can conflict with char $ac_func(); below. */
6166 #include <assert.h>
6167 /* Override any gcc2 internal prototype to avoid an error. */
6168 /* We use char because int might match the return type of a gcc2
6169 builtin and then its argument prototype would still apply. */
6170 char $ac_func();
6172 int main() {
6174 /* The GNU C library defines this for functions which it implements
6175 to always fail with ENOSYS. Some functions are actually named
6176 something starting with __ and the normal name is an alias. */
6177 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6178 choke me
6179 #else
6180 $ac_func();
6181 #endif
6183 ; return 0; }
6185 if { (eval echo configure:6186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6186 rm -rf conftest*
6187 eval "ac_cv_func_$ac_func=yes"
6188 else
6189 echo "configure: failed program was:" >&5
6190 cat conftest.$ac_ext >&5
6191 rm -rf conftest*
6192 eval "ac_cv_func_$ac_func=no"
6194 rm -f conftest*
6197 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6198 echo "$ac_t""yes" 1>&6
6199 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6200 cat >> confdefs.h <<EOF
6201 #define $ac_tr_func 1
6204 else
6205 echo "$ac_t""no" 1>&6
6207 done
6209 for ac_func in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
6211 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6212 echo "configure:6213: checking for $ac_func" >&5
6213 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6214 echo $ac_n "(cached) $ac_c" 1>&6
6215 else
6216 cat > conftest.$ac_ext <<EOF
6217 #line 6218 "configure"
6218 #include "confdefs.h"
6219 /* System header to define __stub macros and hopefully few prototypes,
6220 which can conflict with char $ac_func(); below. */
6221 #include <assert.h>
6222 /* Override any gcc2 internal prototype to avoid an error. */
6223 /* We use char because int might match the return type of a gcc2
6224 builtin and then its argument prototype would still apply. */
6225 char $ac_func();
6227 int main() {
6229 /* The GNU C library defines this for functions which it implements
6230 to always fail with ENOSYS. Some functions are actually named
6231 something starting with __ and the normal name is an alias. */
6232 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6233 choke me
6234 #else
6235 $ac_func();
6236 #endif
6238 ; return 0; }
6240 if { (eval echo configure:6241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6241 rm -rf conftest*
6242 eval "ac_cv_func_$ac_func=yes"
6243 else
6244 echo "configure: failed program was:" >&5
6245 cat conftest.$ac_ext >&5
6246 rm -rf conftest*
6247 eval "ac_cv_func_$ac_func=no"
6249 rm -f conftest*
6252 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6253 echo "$ac_t""yes" 1>&6
6254 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6255 cat >> confdefs.h <<EOF
6256 #define $ac_tr_func 1
6259 else
6260 echo "$ac_t""no" 1>&6
6262 done
6264 for ac_func in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
6266 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6267 echo "configure:6268: checking for $ac_func" >&5
6268 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6269 echo $ac_n "(cached) $ac_c" 1>&6
6270 else
6271 cat > conftest.$ac_ext <<EOF
6272 #line 6273 "configure"
6273 #include "confdefs.h"
6274 /* System header to define __stub macros and hopefully few prototypes,
6275 which can conflict with char $ac_func(); below. */
6276 #include <assert.h>
6277 /* Override any gcc2 internal prototype to avoid an error. */
6278 /* We use char because int might match the return type of a gcc2
6279 builtin and then its argument prototype would still apply. */
6280 char $ac_func();
6282 int main() {
6284 /* The GNU C library defines this for functions which it implements
6285 to always fail with ENOSYS. Some functions are actually named
6286 something starting with __ and the normal name is an alias. */
6287 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6288 choke me
6289 #else
6290 $ac_func();
6291 #endif
6293 ; return 0; }
6295 if { (eval echo configure:6296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6296 rm -rf conftest*
6297 eval "ac_cv_func_$ac_func=yes"
6298 else
6299 echo "configure: failed program was:" >&5
6300 cat conftest.$ac_ext >&5
6301 rm -rf conftest*
6302 eval "ac_cv_func_$ac_func=no"
6304 rm -f conftest*
6307 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6308 echo "$ac_t""yes" 1>&6
6309 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6310 cat >> confdefs.h <<EOF
6311 #define $ac_tr_func 1
6314 else
6315 echo "$ac_t""no" 1>&6
6317 done
6319 for ac_func in pread _pread __pread pread64 _pread64 __pread64
6321 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6322 echo "configure:6323: checking for $ac_func" >&5
6323 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6324 echo $ac_n "(cached) $ac_c" 1>&6
6325 else
6326 cat > conftest.$ac_ext <<EOF
6327 #line 6328 "configure"
6328 #include "confdefs.h"
6329 /* System header to define __stub macros and hopefully few prototypes,
6330 which can conflict with char $ac_func(); below. */
6331 #include <assert.h>
6332 /* Override any gcc2 internal prototype to avoid an error. */
6333 /* We use char because int might match the return type of a gcc2
6334 builtin and then its argument prototype would still apply. */
6335 char $ac_func();
6337 int main() {
6339 /* The GNU C library defines this for functions which it implements
6340 to always fail with ENOSYS. Some functions are actually named
6341 something starting with __ and the normal name is an alias. */
6342 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6343 choke me
6344 #else
6345 $ac_func();
6346 #endif
6348 ; return 0; }
6350 if { (eval echo configure:6351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6351 rm -rf conftest*
6352 eval "ac_cv_func_$ac_func=yes"
6353 else
6354 echo "configure: failed program was:" >&5
6355 cat conftest.$ac_ext >&5
6356 rm -rf conftest*
6357 eval "ac_cv_func_$ac_func=no"
6359 rm -f conftest*
6362 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6363 echo "$ac_t""yes" 1>&6
6364 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6365 cat >> confdefs.h <<EOF
6366 #define $ac_tr_func 1
6369 else
6370 echo "$ac_t""no" 1>&6
6372 done
6374 for ac_func in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
6376 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6377 echo "configure:6378: checking for $ac_func" >&5
6378 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6379 echo $ac_n "(cached) $ac_c" 1>&6
6380 else
6381 cat > conftest.$ac_ext <<EOF
6382 #line 6383 "configure"
6383 #include "confdefs.h"
6384 /* System header to define __stub macros and hopefully few prototypes,
6385 which can conflict with char $ac_func(); below. */
6386 #include <assert.h>
6387 /* Override any gcc2 internal prototype to avoid an error. */
6388 /* We use char because int might match the return type of a gcc2
6389 builtin and then its argument prototype would still apply. */
6390 char $ac_func();
6392 int main() {
6394 /* The GNU C library defines this for functions which it implements
6395 to always fail with ENOSYS. Some functions are actually named
6396 something starting with __ and the normal name is an alias. */
6397 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6398 choke me
6399 #else
6400 $ac_func();
6401 #endif
6403 ; return 0; }
6405 if { (eval echo configure:6406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6406 rm -rf conftest*
6407 eval "ac_cv_func_$ac_func=yes"
6408 else
6409 echo "configure: failed program was:" >&5
6410 cat conftest.$ac_ext >&5
6411 rm -rf conftest*
6412 eval "ac_cv_func_$ac_func=no"
6414 rm -f conftest*
6417 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6418 echo "$ac_t""yes" 1>&6
6419 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6420 cat >> confdefs.h <<EOF
6421 #define $ac_tr_func 1
6424 else
6425 echo "$ac_t""no" 1>&6
6427 done
6429 for ac_func in open64 _open64 __open64 creat64
6431 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6432 echo "configure:6433: checking for $ac_func" >&5
6433 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6434 echo $ac_n "(cached) $ac_c" 1>&6
6435 else
6436 cat > conftest.$ac_ext <<EOF
6437 #line 6438 "configure"
6438 #include "confdefs.h"
6439 /* System header to define __stub macros and hopefully few prototypes,
6440 which can conflict with char $ac_func(); below. */
6441 #include <assert.h>
6442 /* Override any gcc2 internal prototype to avoid an error. */
6443 /* We use char because int might match the return type of a gcc2
6444 builtin and then its argument prototype would still apply. */
6445 char $ac_func();
6447 int main() {
6449 /* The GNU C library defines this for functions which it implements
6450 to always fail with ENOSYS. Some functions are actually named
6451 something starting with __ and the normal name is an alias. */
6452 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6453 choke me
6454 #else
6455 $ac_func();
6456 #endif
6458 ; return 0; }
6460 if { (eval echo configure:6461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6461 rm -rf conftest*
6462 eval "ac_cv_func_$ac_func=yes"
6463 else
6464 echo "configure: failed program was:" >&5
6465 cat conftest.$ac_ext >&5
6466 rm -rf conftest*
6467 eval "ac_cv_func_$ac_func=no"
6469 rm -f conftest*
6472 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6473 echo "$ac_t""yes" 1>&6
6474 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6475 cat >> confdefs.h <<EOF
6476 #define $ac_tr_func 1
6479 else
6480 echo "$ac_t""no" 1>&6
6482 done
6486 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
6489 if test x$ac_cv_func_stat64 = xno ; then
6490 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
6491 echo "configure:6492: checking for stat64 in <sys/stat.h>" >&5
6492 cat > conftest.$ac_ext <<EOF
6493 #line 6494 "configure"
6494 #include "confdefs.h"
6496 #if defined(HAVE_UNISTD_H)
6497 #include <unistd.h>
6498 #endif
6499 #include <sys/stat.h>
6501 int main() {
6502 struct stat64 st64; exit(stat64(".",&st64));
6503 ; return 0; }
6505 if { (eval echo configure:6506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6506 rm -rf conftest*
6507 ac_cv_func_stat64=yes
6508 else
6509 echo "configure: failed program was:" >&5
6510 cat conftest.$ac_ext >&5
6512 rm -f conftest*
6513 echo "$ac_t""$ac_cv_func_stat64" 1>&6
6514 if test x$ac_cv_func_stat64 = xyes ; then
6515 cat >> confdefs.h <<\EOF
6516 #define HAVE_STAT64 1
6522 if test x$ac_cv_func_lstat64 = xno ; then
6523 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
6524 echo "configure:6525: checking for lstat64 in <sys/stat.h>" >&5
6525 cat > conftest.$ac_ext <<EOF
6526 #line 6527 "configure"
6527 #include "confdefs.h"
6529 #if defined(HAVE_UNISTD_H)
6530 #include <unistd.h>
6531 #endif
6532 #include <sys/stat.h>
6534 int main() {
6535 struct stat64 st64; exit(lstat64(".",&st64));
6536 ; return 0; }
6538 if { (eval echo configure:6539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6539 rm -rf conftest*
6540 ac_cv_func_lstat64=yes
6541 else
6542 echo "configure: failed program was:" >&5
6543 cat conftest.$ac_ext >&5
6545 rm -f conftest*
6546 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
6547 if test x$ac_cv_func_lstat64 = xyes ; then
6548 cat >> confdefs.h <<\EOF
6549 #define HAVE_LSTAT64 1
6555 if test x$ac_cv_func_fstat64 = xno ; then
6556 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
6557 echo "configure:6558: checking for fstat64 in <sys/stat.h>" >&5
6558 cat > conftest.$ac_ext <<EOF
6559 #line 6560 "configure"
6560 #include "confdefs.h"
6562 #if defined(HAVE_UNISTD_H)
6563 #include <unistd.h>
6564 #endif
6565 #include <sys/stat.h>
6567 int main() {
6568 struct stat64 st64; exit(fstat64(0,&st64));
6569 ; return 0; }
6571 if { (eval echo configure:6572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6572 rm -rf conftest*
6573 ac_cv_func_fstat64=yes
6574 else
6575 echo "configure: failed program was:" >&5
6576 cat conftest.$ac_ext >&5
6578 rm -f conftest*
6579 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
6580 if test x$ac_cv_func_fstat64 = xyes ; then
6581 cat >> confdefs.h <<\EOF
6582 #define HAVE_FSTAT64 1
6589 # If no strcasecmp, check for it in some known places
6590 # It is in -lresolv on ReliantUNIX and UnixWare
6591 # -lresolve *must* follow -lnsl for name resolution to work properly
6594 if test x$ac_cv_func_strcasecmp = xno ; then
6595 echo $ac_n "checking for strcasecmp in -lresolv""... $ac_c" 1>&6
6596 echo "configure:6597: checking for strcasecmp in -lresolv" >&5
6597 ac_lib_var=`echo resolv'_'strcasecmp | sed 'y%./+-%__p_%'`
6598 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6599 echo $ac_n "(cached) $ac_c" 1>&6
6600 else
6601 ac_save_LIBS="$LIBS"
6602 LIBS="-lresolv $LIBS"
6603 cat > conftest.$ac_ext <<EOF
6604 #line 6605 "configure"
6605 #include "confdefs.h"
6606 /* Override any gcc2 internal prototype to avoid an error. */
6607 /* We use char because int might match the return type of a gcc2
6608 builtin and then its argument prototype would still apply. */
6609 char strcasecmp();
6611 int main() {
6612 strcasecmp()
6613 ; return 0; }
6615 if { (eval echo configure:6616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6616 rm -rf conftest*
6617 eval "ac_cv_lib_$ac_lib_var=yes"
6618 else
6619 echo "configure: failed program was:" >&5
6620 cat conftest.$ac_ext >&5
6621 rm -rf conftest*
6622 eval "ac_cv_lib_$ac_lib_var=no"
6624 rm -f conftest*
6625 LIBS="$ac_save_LIBS"
6628 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6629 echo "$ac_t""yes" 1>&6
6630 LIBS="$LIBS -lresolv"
6631 cat >> confdefs.h <<\EOF
6632 #define HAVE_STRCASECMP 1
6635 else
6636 echo "$ac_t""no" 1>&6
6642 # Check for the functions putprpwnam, set_auth_parameters,
6643 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
6644 # Needed for OSF1 and HPUX.
6647 case "$LIBS" in
6648 *-lsecurity*) for ac_func in putprpwnam
6650 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6651 echo "configure:6652: checking for $ac_func" >&5
6652 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6653 echo $ac_n "(cached) $ac_c" 1>&6
6654 else
6655 cat > conftest.$ac_ext <<EOF
6656 #line 6657 "configure"
6657 #include "confdefs.h"
6658 /* System header to define __stub macros and hopefully few prototypes,
6659 which can conflict with char $ac_func(); below. */
6660 #include <assert.h>
6661 /* Override any gcc2 internal prototype to avoid an error. */
6662 /* We use char because int might match the return type of a gcc2
6663 builtin and then its argument prototype would still apply. */
6664 char $ac_func();
6666 int main() {
6668 /* The GNU C library defines this for functions which it implements
6669 to always fail with ENOSYS. Some functions are actually named
6670 something starting with __ and the normal name is an alias. */
6671 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6672 choke me
6673 #else
6674 $ac_func();
6675 #endif
6677 ; return 0; }
6679 if { (eval echo configure:6680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6680 rm -rf conftest*
6681 eval "ac_cv_func_$ac_func=yes"
6682 else
6683 echo "configure: failed program was:" >&5
6684 cat conftest.$ac_ext >&5
6685 rm -rf conftest*
6686 eval "ac_cv_func_$ac_func=no"
6688 rm -f conftest*
6691 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6692 echo "$ac_t""yes" 1>&6
6693 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6694 cat >> confdefs.h <<EOF
6695 #define $ac_tr_func 1
6698 else
6699 echo "$ac_t""no" 1>&6
6701 done
6703 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
6704 echo "configure:6705: checking for putprpwnam in -lsecurity" >&5
6705 ac_lib_var=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
6706 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6707 echo $ac_n "(cached) $ac_c" 1>&6
6708 else
6709 ac_save_LIBS="$LIBS"
6710 LIBS="-lsecurity $LIBS"
6711 cat > conftest.$ac_ext <<EOF
6712 #line 6713 "configure"
6713 #include "confdefs.h"
6714 /* Override any gcc2 internal prototype to avoid an error. */
6715 /* We use char because int might match the return type of a gcc2
6716 builtin and then its argument prototype would still apply. */
6717 char putprpwnam();
6719 int main() {
6720 putprpwnam()
6721 ; return 0; }
6723 if { (eval echo configure:6724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6724 rm -rf conftest*
6725 eval "ac_cv_lib_$ac_lib_var=yes"
6726 else
6727 echo "configure: failed program was:" >&5
6728 cat conftest.$ac_ext >&5
6729 rm -rf conftest*
6730 eval "ac_cv_lib_$ac_lib_var=no"
6732 rm -f conftest*
6733 LIBS="$ac_save_LIBS"
6736 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6737 echo "$ac_t""yes" 1>&6
6738 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6739 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6740 cat >> confdefs.h <<EOF
6741 #define $ac_tr_lib 1
6744 LIBS="-lsecurity $LIBS"
6746 else
6747 echo "$ac_t""no" 1>&6
6750 for ac_func in putprpwnam
6752 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6753 echo "configure:6754: checking for $ac_func" >&5
6754 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6755 echo $ac_n "(cached) $ac_c" 1>&6
6756 else
6757 cat > conftest.$ac_ext <<EOF
6758 #line 6759 "configure"
6759 #include "confdefs.h"
6760 /* System header to define __stub macros and hopefully few prototypes,
6761 which can conflict with char $ac_func(); below. */
6762 #include <assert.h>
6763 /* Override any gcc2 internal prototype to avoid an error. */
6764 /* We use char because int might match the return type of a gcc2
6765 builtin and then its argument prototype would still apply. */
6766 char $ac_func();
6768 int main() {
6770 /* The GNU C library defines this for functions which it implements
6771 to always fail with ENOSYS. Some functions are actually named
6772 something starting with __ and the normal name is an alias. */
6773 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6774 choke me
6775 #else
6776 $ac_func();
6777 #endif
6779 ; return 0; }
6781 if { (eval echo configure:6782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6782 rm -rf conftest*
6783 eval "ac_cv_func_$ac_func=yes"
6784 else
6785 echo "configure: failed program was:" >&5
6786 cat conftest.$ac_ext >&5
6787 rm -rf conftest*
6788 eval "ac_cv_func_$ac_func=no"
6790 rm -f conftest*
6793 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6794 echo "$ac_t""yes" 1>&6
6795 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6796 cat >> confdefs.h <<EOF
6797 #define $ac_tr_func 1
6800 else
6801 echo "$ac_t""no" 1>&6
6803 done
6806 esac
6808 case "$LIBS" in
6809 *-lsec*) for ac_func in putprpwnam
6811 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6812 echo "configure:6813: checking for $ac_func" >&5
6813 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6814 echo $ac_n "(cached) $ac_c" 1>&6
6815 else
6816 cat > conftest.$ac_ext <<EOF
6817 #line 6818 "configure"
6818 #include "confdefs.h"
6819 /* System header to define __stub macros and hopefully few prototypes,
6820 which can conflict with char $ac_func(); below. */
6821 #include <assert.h>
6822 /* Override any gcc2 internal prototype to avoid an error. */
6823 /* We use char because int might match the return type of a gcc2
6824 builtin and then its argument prototype would still apply. */
6825 char $ac_func();
6827 int main() {
6829 /* The GNU C library defines this for functions which it implements
6830 to always fail with ENOSYS. Some functions are actually named
6831 something starting with __ and the normal name is an alias. */
6832 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6833 choke me
6834 #else
6835 $ac_func();
6836 #endif
6838 ; return 0; }
6840 if { (eval echo configure:6841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6841 rm -rf conftest*
6842 eval "ac_cv_func_$ac_func=yes"
6843 else
6844 echo "configure: failed program was:" >&5
6845 cat conftest.$ac_ext >&5
6846 rm -rf conftest*
6847 eval "ac_cv_func_$ac_func=no"
6849 rm -f conftest*
6852 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6853 echo "$ac_t""yes" 1>&6
6854 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6855 cat >> confdefs.h <<EOF
6856 #define $ac_tr_func 1
6859 else
6860 echo "$ac_t""no" 1>&6
6862 done
6864 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
6865 echo "configure:6866: checking for putprpwnam in -lsec" >&5
6866 ac_lib_var=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
6867 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6868 echo $ac_n "(cached) $ac_c" 1>&6
6869 else
6870 ac_save_LIBS="$LIBS"
6871 LIBS="-lsec $LIBS"
6872 cat > conftest.$ac_ext <<EOF
6873 #line 6874 "configure"
6874 #include "confdefs.h"
6875 /* Override any gcc2 internal prototype to avoid an error. */
6876 /* We use char because int might match the return type of a gcc2
6877 builtin and then its argument prototype would still apply. */
6878 char putprpwnam();
6880 int main() {
6881 putprpwnam()
6882 ; return 0; }
6884 if { (eval echo configure:6885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6885 rm -rf conftest*
6886 eval "ac_cv_lib_$ac_lib_var=yes"
6887 else
6888 echo "configure: failed program was:" >&5
6889 cat conftest.$ac_ext >&5
6890 rm -rf conftest*
6891 eval "ac_cv_lib_$ac_lib_var=no"
6893 rm -f conftest*
6894 LIBS="$ac_save_LIBS"
6897 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6898 echo "$ac_t""yes" 1>&6
6899 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6900 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6901 cat >> confdefs.h <<EOF
6902 #define $ac_tr_lib 1
6905 LIBS="-lsec $LIBS"
6907 else
6908 echo "$ac_t""no" 1>&6
6911 for ac_func in putprpwnam
6913 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6914 echo "configure:6915: checking for $ac_func" >&5
6915 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6916 echo $ac_n "(cached) $ac_c" 1>&6
6917 else
6918 cat > conftest.$ac_ext <<EOF
6919 #line 6920 "configure"
6920 #include "confdefs.h"
6921 /* System header to define __stub macros and hopefully few prototypes,
6922 which can conflict with char $ac_func(); below. */
6923 #include <assert.h>
6924 /* Override any gcc2 internal prototype to avoid an error. */
6925 /* We use char because int might match the return type of a gcc2
6926 builtin and then its argument prototype would still apply. */
6927 char $ac_func();
6929 int main() {
6931 /* The GNU C library defines this for functions which it implements
6932 to always fail with ENOSYS. Some functions are actually named
6933 something starting with __ and the normal name is an alias. */
6934 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6935 choke me
6936 #else
6937 $ac_func();
6938 #endif
6940 ; return 0; }
6942 if { (eval echo configure:6943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6943 rm -rf conftest*
6944 eval "ac_cv_func_$ac_func=yes"
6945 else
6946 echo "configure: failed program was:" >&5
6947 cat conftest.$ac_ext >&5
6948 rm -rf conftest*
6949 eval "ac_cv_func_$ac_func=no"
6951 rm -f conftest*
6954 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6955 echo "$ac_t""yes" 1>&6
6956 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6957 cat >> confdefs.h <<EOF
6958 #define $ac_tr_func 1
6961 else
6962 echo "$ac_t""no" 1>&6
6964 done
6967 esac
6970 case "$LIBS" in
6971 *-lsecurity*) for ac_func in set_auth_parameters
6973 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6974 echo "configure:6975: checking for $ac_func" >&5
6975 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6976 echo $ac_n "(cached) $ac_c" 1>&6
6977 else
6978 cat > conftest.$ac_ext <<EOF
6979 #line 6980 "configure"
6980 #include "confdefs.h"
6981 /* System header to define __stub macros and hopefully few prototypes,
6982 which can conflict with char $ac_func(); below. */
6983 #include <assert.h>
6984 /* Override any gcc2 internal prototype to avoid an error. */
6985 /* We use char because int might match the return type of a gcc2
6986 builtin and then its argument prototype would still apply. */
6987 char $ac_func();
6989 int main() {
6991 /* The GNU C library defines this for functions which it implements
6992 to always fail with ENOSYS. Some functions are actually named
6993 something starting with __ and the normal name is an alias. */
6994 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6995 choke me
6996 #else
6997 $ac_func();
6998 #endif
7000 ; return 0; }
7002 if { (eval echo configure:7003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7003 rm -rf conftest*
7004 eval "ac_cv_func_$ac_func=yes"
7005 else
7006 echo "configure: failed program was:" >&5
7007 cat conftest.$ac_ext >&5
7008 rm -rf conftest*
7009 eval "ac_cv_func_$ac_func=no"
7011 rm -f conftest*
7014 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7015 echo "$ac_t""yes" 1>&6
7016 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7017 cat >> confdefs.h <<EOF
7018 #define $ac_tr_func 1
7021 else
7022 echo "$ac_t""no" 1>&6
7024 done
7026 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
7027 echo "configure:7028: checking for set_auth_parameters in -lsecurity" >&5
7028 ac_lib_var=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7029 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7030 echo $ac_n "(cached) $ac_c" 1>&6
7031 else
7032 ac_save_LIBS="$LIBS"
7033 LIBS="-lsecurity $LIBS"
7034 cat > conftest.$ac_ext <<EOF
7035 #line 7036 "configure"
7036 #include "confdefs.h"
7037 /* Override any gcc2 internal prototype to avoid an error. */
7038 /* We use char because int might match the return type of a gcc2
7039 builtin and then its argument prototype would still apply. */
7040 char set_auth_parameters();
7042 int main() {
7043 set_auth_parameters()
7044 ; return 0; }
7046 if { (eval echo configure:7047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7047 rm -rf conftest*
7048 eval "ac_cv_lib_$ac_lib_var=yes"
7049 else
7050 echo "configure: failed program was:" >&5
7051 cat conftest.$ac_ext >&5
7052 rm -rf conftest*
7053 eval "ac_cv_lib_$ac_lib_var=no"
7055 rm -f conftest*
7056 LIBS="$ac_save_LIBS"
7059 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7060 echo "$ac_t""yes" 1>&6
7061 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7062 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7063 cat >> confdefs.h <<EOF
7064 #define $ac_tr_lib 1
7067 LIBS="-lsecurity $LIBS"
7069 else
7070 echo "$ac_t""no" 1>&6
7073 for ac_func in set_auth_parameters
7075 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7076 echo "configure:7077: checking for $ac_func" >&5
7077 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7078 echo $ac_n "(cached) $ac_c" 1>&6
7079 else
7080 cat > conftest.$ac_ext <<EOF
7081 #line 7082 "configure"
7082 #include "confdefs.h"
7083 /* System header to define __stub macros and hopefully few prototypes,
7084 which can conflict with char $ac_func(); below. */
7085 #include <assert.h>
7086 /* Override any gcc2 internal prototype to avoid an error. */
7087 /* We use char because int might match the return type of a gcc2
7088 builtin and then its argument prototype would still apply. */
7089 char $ac_func();
7091 int main() {
7093 /* The GNU C library defines this for functions which it implements
7094 to always fail with ENOSYS. Some functions are actually named
7095 something starting with __ and the normal name is an alias. */
7096 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7097 choke me
7098 #else
7099 $ac_func();
7100 #endif
7102 ; return 0; }
7104 if { (eval echo configure:7105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7105 rm -rf conftest*
7106 eval "ac_cv_func_$ac_func=yes"
7107 else
7108 echo "configure: failed program was:" >&5
7109 cat conftest.$ac_ext >&5
7110 rm -rf conftest*
7111 eval "ac_cv_func_$ac_func=no"
7113 rm -f conftest*
7116 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7117 echo "$ac_t""yes" 1>&6
7118 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7119 cat >> confdefs.h <<EOF
7120 #define $ac_tr_func 1
7123 else
7124 echo "$ac_t""no" 1>&6
7126 done
7129 esac
7131 case "$LIBS" in
7132 *-lsec*) for ac_func in set_auth_parameters
7134 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7135 echo "configure:7136: checking for $ac_func" >&5
7136 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7137 echo $ac_n "(cached) $ac_c" 1>&6
7138 else
7139 cat > conftest.$ac_ext <<EOF
7140 #line 7141 "configure"
7141 #include "confdefs.h"
7142 /* System header to define __stub macros and hopefully few prototypes,
7143 which can conflict with char $ac_func(); below. */
7144 #include <assert.h>
7145 /* Override any gcc2 internal prototype to avoid an error. */
7146 /* We use char because int might match the return type of a gcc2
7147 builtin and then its argument prototype would still apply. */
7148 char $ac_func();
7150 int main() {
7152 /* The GNU C library defines this for functions which it implements
7153 to always fail with ENOSYS. Some functions are actually named
7154 something starting with __ and the normal name is an alias. */
7155 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7156 choke me
7157 #else
7158 $ac_func();
7159 #endif
7161 ; return 0; }
7163 if { (eval echo configure:7164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7164 rm -rf conftest*
7165 eval "ac_cv_func_$ac_func=yes"
7166 else
7167 echo "configure: failed program was:" >&5
7168 cat conftest.$ac_ext >&5
7169 rm -rf conftest*
7170 eval "ac_cv_func_$ac_func=no"
7172 rm -f conftest*
7175 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7176 echo "$ac_t""yes" 1>&6
7177 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7178 cat >> confdefs.h <<EOF
7179 #define $ac_tr_func 1
7182 else
7183 echo "$ac_t""no" 1>&6
7185 done
7187 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
7188 echo "configure:7189: checking for set_auth_parameters in -lsec" >&5
7189 ac_lib_var=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7190 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7191 echo $ac_n "(cached) $ac_c" 1>&6
7192 else
7193 ac_save_LIBS="$LIBS"
7194 LIBS="-lsec $LIBS"
7195 cat > conftest.$ac_ext <<EOF
7196 #line 7197 "configure"
7197 #include "confdefs.h"
7198 /* Override any gcc2 internal prototype to avoid an error. */
7199 /* We use char because int might match the return type of a gcc2
7200 builtin and then its argument prototype would still apply. */
7201 char set_auth_parameters();
7203 int main() {
7204 set_auth_parameters()
7205 ; return 0; }
7207 if { (eval echo configure:7208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7208 rm -rf conftest*
7209 eval "ac_cv_lib_$ac_lib_var=yes"
7210 else
7211 echo "configure: failed program was:" >&5
7212 cat conftest.$ac_ext >&5
7213 rm -rf conftest*
7214 eval "ac_cv_lib_$ac_lib_var=no"
7216 rm -f conftest*
7217 LIBS="$ac_save_LIBS"
7220 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7221 echo "$ac_t""yes" 1>&6
7222 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7223 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7224 cat >> confdefs.h <<EOF
7225 #define $ac_tr_lib 1
7228 LIBS="-lsec $LIBS"
7230 else
7231 echo "$ac_t""no" 1>&6
7234 for ac_func in set_auth_parameters
7236 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7237 echo "configure:7238: checking for $ac_func" >&5
7238 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7239 echo $ac_n "(cached) $ac_c" 1>&6
7240 else
7241 cat > conftest.$ac_ext <<EOF
7242 #line 7243 "configure"
7243 #include "confdefs.h"
7244 /* System header to define __stub macros and hopefully few prototypes,
7245 which can conflict with char $ac_func(); below. */
7246 #include <assert.h>
7247 /* Override any gcc2 internal prototype to avoid an error. */
7248 /* We use char because int might match the return type of a gcc2
7249 builtin and then its argument prototype would still apply. */
7250 char $ac_func();
7252 int main() {
7254 /* The GNU C library defines this for functions which it implements
7255 to always fail with ENOSYS. Some functions are actually named
7256 something starting with __ and the normal name is an alias. */
7257 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7258 choke me
7259 #else
7260 $ac_func();
7261 #endif
7263 ; return 0; }
7265 if { (eval echo configure:7266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7266 rm -rf conftest*
7267 eval "ac_cv_func_$ac_func=yes"
7268 else
7269 echo "configure: failed program was:" >&5
7270 cat conftest.$ac_ext >&5
7271 rm -rf conftest*
7272 eval "ac_cv_func_$ac_func=no"
7274 rm -f conftest*
7277 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7278 echo "$ac_t""yes" 1>&6
7279 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7280 cat >> confdefs.h <<EOF
7281 #define $ac_tr_func 1
7284 else
7285 echo "$ac_t""no" 1>&6
7287 done
7290 esac
7293 # UnixWare 7.x has its getspnam in -lgen
7294 case "$LIBS" in
7295 *-lgen*) for ac_func in getspnam
7297 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7298 echo "configure:7299: checking for $ac_func" >&5
7299 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7300 echo $ac_n "(cached) $ac_c" 1>&6
7301 else
7302 cat > conftest.$ac_ext <<EOF
7303 #line 7304 "configure"
7304 #include "confdefs.h"
7305 /* System header to define __stub macros and hopefully few prototypes,
7306 which can conflict with char $ac_func(); below. */
7307 #include <assert.h>
7308 /* Override any gcc2 internal prototype to avoid an error. */
7309 /* We use char because int might match the return type of a gcc2
7310 builtin and then its argument prototype would still apply. */
7311 char $ac_func();
7313 int main() {
7315 /* The GNU C library defines this for functions which it implements
7316 to always fail with ENOSYS. Some functions are actually named
7317 something starting with __ and the normal name is an alias. */
7318 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7319 choke me
7320 #else
7321 $ac_func();
7322 #endif
7324 ; return 0; }
7326 if { (eval echo configure:7327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7327 rm -rf conftest*
7328 eval "ac_cv_func_$ac_func=yes"
7329 else
7330 echo "configure: failed program was:" >&5
7331 cat conftest.$ac_ext >&5
7332 rm -rf conftest*
7333 eval "ac_cv_func_$ac_func=no"
7335 rm -f conftest*
7338 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7339 echo "$ac_t""yes" 1>&6
7340 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7341 cat >> confdefs.h <<EOF
7342 #define $ac_tr_func 1
7345 else
7346 echo "$ac_t""no" 1>&6
7348 done
7350 *) echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
7351 echo "configure:7352: checking for getspnam in -lgen" >&5
7352 ac_lib_var=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
7353 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7354 echo $ac_n "(cached) $ac_c" 1>&6
7355 else
7356 ac_save_LIBS="$LIBS"
7357 LIBS="-lgen $LIBS"
7358 cat > conftest.$ac_ext <<EOF
7359 #line 7360 "configure"
7360 #include "confdefs.h"
7361 /* Override any gcc2 internal prototype to avoid an error. */
7362 /* We use char because int might match the return type of a gcc2
7363 builtin and then its argument prototype would still apply. */
7364 char getspnam();
7366 int main() {
7367 getspnam()
7368 ; return 0; }
7370 if { (eval echo configure:7371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7371 rm -rf conftest*
7372 eval "ac_cv_lib_$ac_lib_var=yes"
7373 else
7374 echo "configure: failed program was:" >&5
7375 cat conftest.$ac_ext >&5
7376 rm -rf conftest*
7377 eval "ac_cv_lib_$ac_lib_var=no"
7379 rm -f conftest*
7380 LIBS="$ac_save_LIBS"
7383 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7384 echo "$ac_t""yes" 1>&6
7385 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7386 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7387 cat >> confdefs.h <<EOF
7388 #define $ac_tr_lib 1
7391 LIBS="-lgen $LIBS"
7393 else
7394 echo "$ac_t""no" 1>&6
7397 for ac_func in getspnam
7399 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7400 echo "configure:7401: checking for $ac_func" >&5
7401 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7402 echo $ac_n "(cached) $ac_c" 1>&6
7403 else
7404 cat > conftest.$ac_ext <<EOF
7405 #line 7406 "configure"
7406 #include "confdefs.h"
7407 /* System header to define __stub macros and hopefully few prototypes,
7408 which can conflict with char $ac_func(); below. */
7409 #include <assert.h>
7410 /* Override any gcc2 internal prototype to avoid an error. */
7411 /* We use char because int might match the return type of a gcc2
7412 builtin and then its argument prototype would still apply. */
7413 char $ac_func();
7415 int main() {
7417 /* The GNU C library defines this for functions which it implements
7418 to always fail with ENOSYS. Some functions are actually named
7419 something starting with __ and the normal name is an alias. */
7420 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7421 choke me
7422 #else
7423 $ac_func();
7424 #endif
7426 ; return 0; }
7428 if { (eval echo configure:7429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7429 rm -rf conftest*
7430 eval "ac_cv_func_$ac_func=yes"
7431 else
7432 echo "configure: failed program was:" >&5
7433 cat conftest.$ac_ext >&5
7434 rm -rf conftest*
7435 eval "ac_cv_func_$ac_func=no"
7437 rm -f conftest*
7440 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7441 echo "$ac_t""yes" 1>&6
7442 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7443 cat >> confdefs.h <<EOF
7444 #define $ac_tr_func 1
7447 else
7448 echo "$ac_t""no" 1>&6
7450 done
7453 esac
7456 case "$LIBS" in
7457 *-lsecurity*) for ac_func in getspnam
7459 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7460 echo "configure:7461: checking for $ac_func" >&5
7461 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7462 echo $ac_n "(cached) $ac_c" 1>&6
7463 else
7464 cat > conftest.$ac_ext <<EOF
7465 #line 7466 "configure"
7466 #include "confdefs.h"
7467 /* System header to define __stub macros and hopefully few prototypes,
7468 which can conflict with char $ac_func(); below. */
7469 #include <assert.h>
7470 /* Override any gcc2 internal prototype to avoid an error. */
7471 /* We use char because int might match the return type of a gcc2
7472 builtin and then its argument prototype would still apply. */
7473 char $ac_func();
7475 int main() {
7477 /* The GNU C library defines this for functions which it implements
7478 to always fail with ENOSYS. Some functions are actually named
7479 something starting with __ and the normal name is an alias. */
7480 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7481 choke me
7482 #else
7483 $ac_func();
7484 #endif
7486 ; return 0; }
7488 if { (eval echo configure:7489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7489 rm -rf conftest*
7490 eval "ac_cv_func_$ac_func=yes"
7491 else
7492 echo "configure: failed program was:" >&5
7493 cat conftest.$ac_ext >&5
7494 rm -rf conftest*
7495 eval "ac_cv_func_$ac_func=no"
7497 rm -f conftest*
7500 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7501 echo "$ac_t""yes" 1>&6
7502 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7503 cat >> confdefs.h <<EOF
7504 #define $ac_tr_func 1
7507 else
7508 echo "$ac_t""no" 1>&6
7510 done
7512 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
7513 echo "configure:7514: checking for getspnam in -lsecurity" >&5
7514 ac_lib_var=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
7515 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7516 echo $ac_n "(cached) $ac_c" 1>&6
7517 else
7518 ac_save_LIBS="$LIBS"
7519 LIBS="-lsecurity $LIBS"
7520 cat > conftest.$ac_ext <<EOF
7521 #line 7522 "configure"
7522 #include "confdefs.h"
7523 /* Override any gcc2 internal prototype to avoid an error. */
7524 /* We use char because int might match the return type of a gcc2
7525 builtin and then its argument prototype would still apply. */
7526 char getspnam();
7528 int main() {
7529 getspnam()
7530 ; return 0; }
7532 if { (eval echo configure:7533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7533 rm -rf conftest*
7534 eval "ac_cv_lib_$ac_lib_var=yes"
7535 else
7536 echo "configure: failed program was:" >&5
7537 cat conftest.$ac_ext >&5
7538 rm -rf conftest*
7539 eval "ac_cv_lib_$ac_lib_var=no"
7541 rm -f conftest*
7542 LIBS="$ac_save_LIBS"
7545 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7546 echo "$ac_t""yes" 1>&6
7547 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7548 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7549 cat >> confdefs.h <<EOF
7550 #define $ac_tr_lib 1
7553 LIBS="-lsecurity $LIBS"
7555 else
7556 echo "$ac_t""no" 1>&6
7559 for ac_func in getspnam
7561 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7562 echo "configure:7563: checking for $ac_func" >&5
7563 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7564 echo $ac_n "(cached) $ac_c" 1>&6
7565 else
7566 cat > conftest.$ac_ext <<EOF
7567 #line 7568 "configure"
7568 #include "confdefs.h"
7569 /* System header to define __stub macros and hopefully few prototypes,
7570 which can conflict with char $ac_func(); below. */
7571 #include <assert.h>
7572 /* Override any gcc2 internal prototype to avoid an error. */
7573 /* We use char because int might match the return type of a gcc2
7574 builtin and then its argument prototype would still apply. */
7575 char $ac_func();
7577 int main() {
7579 /* The GNU C library defines this for functions which it implements
7580 to always fail with ENOSYS. Some functions are actually named
7581 something starting with __ and the normal name is an alias. */
7582 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7583 choke me
7584 #else
7585 $ac_func();
7586 #endif
7588 ; return 0; }
7590 if { (eval echo configure:7591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7591 rm -rf conftest*
7592 eval "ac_cv_func_$ac_func=yes"
7593 else
7594 echo "configure: failed program was:" >&5
7595 cat conftest.$ac_ext >&5
7596 rm -rf conftest*
7597 eval "ac_cv_func_$ac_func=no"
7599 rm -f conftest*
7602 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7603 echo "$ac_t""yes" 1>&6
7604 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7605 cat >> confdefs.h <<EOF
7606 #define $ac_tr_func 1
7609 else
7610 echo "$ac_t""no" 1>&6
7612 done
7615 esac
7617 case "$LIBS" in
7618 *-lsec*) for ac_func in getspnam
7620 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7621 echo "configure:7622: checking for $ac_func" >&5
7622 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7623 echo $ac_n "(cached) $ac_c" 1>&6
7624 else
7625 cat > conftest.$ac_ext <<EOF
7626 #line 7627 "configure"
7627 #include "confdefs.h"
7628 /* System header to define __stub macros and hopefully few prototypes,
7629 which can conflict with char $ac_func(); below. */
7630 #include <assert.h>
7631 /* Override any gcc2 internal prototype to avoid an error. */
7632 /* We use char because int might match the return type of a gcc2
7633 builtin and then its argument prototype would still apply. */
7634 char $ac_func();
7636 int main() {
7638 /* The GNU C library defines this for functions which it implements
7639 to always fail with ENOSYS. Some functions are actually named
7640 something starting with __ and the normal name is an alias. */
7641 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7642 choke me
7643 #else
7644 $ac_func();
7645 #endif
7647 ; return 0; }
7649 if { (eval echo configure:7650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7650 rm -rf conftest*
7651 eval "ac_cv_func_$ac_func=yes"
7652 else
7653 echo "configure: failed program was:" >&5
7654 cat conftest.$ac_ext >&5
7655 rm -rf conftest*
7656 eval "ac_cv_func_$ac_func=no"
7658 rm -f conftest*
7661 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7662 echo "$ac_t""yes" 1>&6
7663 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7664 cat >> confdefs.h <<EOF
7665 #define $ac_tr_func 1
7668 else
7669 echo "$ac_t""no" 1>&6
7671 done
7673 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
7674 echo "configure:7675: checking for getspnam in -lsec" >&5
7675 ac_lib_var=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
7676 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7677 echo $ac_n "(cached) $ac_c" 1>&6
7678 else
7679 ac_save_LIBS="$LIBS"
7680 LIBS="-lsec $LIBS"
7681 cat > conftest.$ac_ext <<EOF
7682 #line 7683 "configure"
7683 #include "confdefs.h"
7684 /* Override any gcc2 internal prototype to avoid an error. */
7685 /* We use char because int might match the return type of a gcc2
7686 builtin and then its argument prototype would still apply. */
7687 char getspnam();
7689 int main() {
7690 getspnam()
7691 ; return 0; }
7693 if { (eval echo configure:7694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7694 rm -rf conftest*
7695 eval "ac_cv_lib_$ac_lib_var=yes"
7696 else
7697 echo "configure: failed program was:" >&5
7698 cat conftest.$ac_ext >&5
7699 rm -rf conftest*
7700 eval "ac_cv_lib_$ac_lib_var=no"
7702 rm -f conftest*
7703 LIBS="$ac_save_LIBS"
7706 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7707 echo "$ac_t""yes" 1>&6
7708 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7709 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7710 cat >> confdefs.h <<EOF
7711 #define $ac_tr_lib 1
7714 LIBS="-lsec $LIBS"
7716 else
7717 echo "$ac_t""no" 1>&6
7720 for ac_func in getspnam
7722 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7723 echo "configure:7724: checking for $ac_func" >&5
7724 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7725 echo $ac_n "(cached) $ac_c" 1>&6
7726 else
7727 cat > conftest.$ac_ext <<EOF
7728 #line 7729 "configure"
7729 #include "confdefs.h"
7730 /* System header to define __stub macros and hopefully few prototypes,
7731 which can conflict with char $ac_func(); below. */
7732 #include <assert.h>
7733 /* Override any gcc2 internal prototype to avoid an error. */
7734 /* We use char because int might match the return type of a gcc2
7735 builtin and then its argument prototype would still apply. */
7736 char $ac_func();
7738 int main() {
7740 /* The GNU C library defines this for functions which it implements
7741 to always fail with ENOSYS. Some functions are actually named
7742 something starting with __ and the normal name is an alias. */
7743 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7744 choke me
7745 #else
7746 $ac_func();
7747 #endif
7749 ; return 0; }
7751 if { (eval echo configure:7752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7752 rm -rf conftest*
7753 eval "ac_cv_func_$ac_func=yes"
7754 else
7755 echo "configure: failed program was:" >&5
7756 cat conftest.$ac_ext >&5
7757 rm -rf conftest*
7758 eval "ac_cv_func_$ac_func=no"
7760 rm -f conftest*
7763 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7764 echo "$ac_t""yes" 1>&6
7765 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7766 cat >> confdefs.h <<EOF
7767 #define $ac_tr_func 1
7770 else
7771 echo "$ac_t""no" 1>&6
7773 done
7776 esac
7779 case "$LIBS" in
7780 *-lsecurity*) for ac_func in bigcrypt
7782 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7783 echo "configure:7784: checking for $ac_func" >&5
7784 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7785 echo $ac_n "(cached) $ac_c" 1>&6
7786 else
7787 cat > conftest.$ac_ext <<EOF
7788 #line 7789 "configure"
7789 #include "confdefs.h"
7790 /* System header to define __stub macros and hopefully few prototypes,
7791 which can conflict with char $ac_func(); below. */
7792 #include <assert.h>
7793 /* Override any gcc2 internal prototype to avoid an error. */
7794 /* We use char because int might match the return type of a gcc2
7795 builtin and then its argument prototype would still apply. */
7796 char $ac_func();
7798 int main() {
7800 /* The GNU C library defines this for functions which it implements
7801 to always fail with ENOSYS. Some functions are actually named
7802 something starting with __ and the normal name is an alias. */
7803 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7804 choke me
7805 #else
7806 $ac_func();
7807 #endif
7809 ; return 0; }
7811 if { (eval echo configure:7812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7812 rm -rf conftest*
7813 eval "ac_cv_func_$ac_func=yes"
7814 else
7815 echo "configure: failed program was:" >&5
7816 cat conftest.$ac_ext >&5
7817 rm -rf conftest*
7818 eval "ac_cv_func_$ac_func=no"
7820 rm -f conftest*
7823 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7824 echo "$ac_t""yes" 1>&6
7825 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7826 cat >> confdefs.h <<EOF
7827 #define $ac_tr_func 1
7830 else
7831 echo "$ac_t""no" 1>&6
7833 done
7835 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
7836 echo "configure:7837: checking for bigcrypt in -lsecurity" >&5
7837 ac_lib_var=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
7838 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7839 echo $ac_n "(cached) $ac_c" 1>&6
7840 else
7841 ac_save_LIBS="$LIBS"
7842 LIBS="-lsecurity $LIBS"
7843 cat > conftest.$ac_ext <<EOF
7844 #line 7845 "configure"
7845 #include "confdefs.h"
7846 /* Override any gcc2 internal prototype to avoid an error. */
7847 /* We use char because int might match the return type of a gcc2
7848 builtin and then its argument prototype would still apply. */
7849 char bigcrypt();
7851 int main() {
7852 bigcrypt()
7853 ; return 0; }
7855 if { (eval echo configure:7856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7856 rm -rf conftest*
7857 eval "ac_cv_lib_$ac_lib_var=yes"
7858 else
7859 echo "configure: failed program was:" >&5
7860 cat conftest.$ac_ext >&5
7861 rm -rf conftest*
7862 eval "ac_cv_lib_$ac_lib_var=no"
7864 rm -f conftest*
7865 LIBS="$ac_save_LIBS"
7868 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7869 echo "$ac_t""yes" 1>&6
7870 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7871 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7872 cat >> confdefs.h <<EOF
7873 #define $ac_tr_lib 1
7876 LIBS="-lsecurity $LIBS"
7878 else
7879 echo "$ac_t""no" 1>&6
7882 for ac_func in bigcrypt
7884 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7885 echo "configure:7886: checking for $ac_func" >&5
7886 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7887 echo $ac_n "(cached) $ac_c" 1>&6
7888 else
7889 cat > conftest.$ac_ext <<EOF
7890 #line 7891 "configure"
7891 #include "confdefs.h"
7892 /* System header to define __stub macros and hopefully few prototypes,
7893 which can conflict with char $ac_func(); below. */
7894 #include <assert.h>
7895 /* Override any gcc2 internal prototype to avoid an error. */
7896 /* We use char because int might match the return type of a gcc2
7897 builtin and then its argument prototype would still apply. */
7898 char $ac_func();
7900 int main() {
7902 /* The GNU C library defines this for functions which it implements
7903 to always fail with ENOSYS. Some functions are actually named
7904 something starting with __ and the normal name is an alias. */
7905 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7906 choke me
7907 #else
7908 $ac_func();
7909 #endif
7911 ; return 0; }
7913 if { (eval echo configure:7914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7914 rm -rf conftest*
7915 eval "ac_cv_func_$ac_func=yes"
7916 else
7917 echo "configure: failed program was:" >&5
7918 cat conftest.$ac_ext >&5
7919 rm -rf conftest*
7920 eval "ac_cv_func_$ac_func=no"
7922 rm -f conftest*
7925 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7926 echo "$ac_t""yes" 1>&6
7927 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7928 cat >> confdefs.h <<EOF
7929 #define $ac_tr_func 1
7932 else
7933 echo "$ac_t""no" 1>&6
7935 done
7938 esac
7940 case "$LIBS" in
7941 *-lsec*) for ac_func in bigcrypt
7943 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7944 echo "configure:7945: checking for $ac_func" >&5
7945 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7946 echo $ac_n "(cached) $ac_c" 1>&6
7947 else
7948 cat > conftest.$ac_ext <<EOF
7949 #line 7950 "configure"
7950 #include "confdefs.h"
7951 /* System header to define __stub macros and hopefully few prototypes,
7952 which can conflict with char $ac_func(); below. */
7953 #include <assert.h>
7954 /* Override any gcc2 internal prototype to avoid an error. */
7955 /* We use char because int might match the return type of a gcc2
7956 builtin and then its argument prototype would still apply. */
7957 char $ac_func();
7959 int main() {
7961 /* The GNU C library defines this for functions which it implements
7962 to always fail with ENOSYS. Some functions are actually named
7963 something starting with __ and the normal name is an alias. */
7964 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7965 choke me
7966 #else
7967 $ac_func();
7968 #endif
7970 ; return 0; }
7972 if { (eval echo configure:7973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7973 rm -rf conftest*
7974 eval "ac_cv_func_$ac_func=yes"
7975 else
7976 echo "configure: failed program was:" >&5
7977 cat conftest.$ac_ext >&5
7978 rm -rf conftest*
7979 eval "ac_cv_func_$ac_func=no"
7981 rm -f conftest*
7984 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7985 echo "$ac_t""yes" 1>&6
7986 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7987 cat >> confdefs.h <<EOF
7988 #define $ac_tr_func 1
7991 else
7992 echo "$ac_t""no" 1>&6
7994 done
7996 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
7997 echo "configure:7998: checking for bigcrypt in -lsec" >&5
7998 ac_lib_var=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
7999 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8000 echo $ac_n "(cached) $ac_c" 1>&6
8001 else
8002 ac_save_LIBS="$LIBS"
8003 LIBS="-lsec $LIBS"
8004 cat > conftest.$ac_ext <<EOF
8005 #line 8006 "configure"
8006 #include "confdefs.h"
8007 /* Override any gcc2 internal prototype to avoid an error. */
8008 /* We use char because int might match the return type of a gcc2
8009 builtin and then its argument prototype would still apply. */
8010 char bigcrypt();
8012 int main() {
8013 bigcrypt()
8014 ; return 0; }
8016 if { (eval echo configure:8017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8017 rm -rf conftest*
8018 eval "ac_cv_lib_$ac_lib_var=yes"
8019 else
8020 echo "configure: failed program was:" >&5
8021 cat conftest.$ac_ext >&5
8022 rm -rf conftest*
8023 eval "ac_cv_lib_$ac_lib_var=no"
8025 rm -f conftest*
8026 LIBS="$ac_save_LIBS"
8029 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8030 echo "$ac_t""yes" 1>&6
8031 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8032 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8033 cat >> confdefs.h <<EOF
8034 #define $ac_tr_lib 1
8037 LIBS="-lsec $LIBS"
8039 else
8040 echo "$ac_t""no" 1>&6
8043 for ac_func in bigcrypt
8045 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8046 echo "configure:8047: checking for $ac_func" >&5
8047 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8048 echo $ac_n "(cached) $ac_c" 1>&6
8049 else
8050 cat > conftest.$ac_ext <<EOF
8051 #line 8052 "configure"
8052 #include "confdefs.h"
8053 /* System header to define __stub macros and hopefully few prototypes,
8054 which can conflict with char $ac_func(); below. */
8055 #include <assert.h>
8056 /* Override any gcc2 internal prototype to avoid an error. */
8057 /* We use char because int might match the return type of a gcc2
8058 builtin and then its argument prototype would still apply. */
8059 char $ac_func();
8061 int main() {
8063 /* The GNU C library defines this for functions which it implements
8064 to always fail with ENOSYS. Some functions are actually named
8065 something starting with __ and the normal name is an alias. */
8066 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8067 choke me
8068 #else
8069 $ac_func();
8070 #endif
8072 ; return 0; }
8074 if { (eval echo configure:8075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8075 rm -rf conftest*
8076 eval "ac_cv_func_$ac_func=yes"
8077 else
8078 echo "configure: failed program was:" >&5
8079 cat conftest.$ac_ext >&5
8080 rm -rf conftest*
8081 eval "ac_cv_func_$ac_func=no"
8083 rm -f conftest*
8086 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8087 echo "$ac_t""yes" 1>&6
8088 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8089 cat >> confdefs.h <<EOF
8090 #define $ac_tr_func 1
8093 else
8094 echo "$ac_t""no" 1>&6
8096 done
8099 esac
8102 case "$LIBS" in
8103 *-lsecurity*) for ac_func in getprpwnam
8105 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8106 echo "configure:8107: checking for $ac_func" >&5
8107 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8108 echo $ac_n "(cached) $ac_c" 1>&6
8109 else
8110 cat > conftest.$ac_ext <<EOF
8111 #line 8112 "configure"
8112 #include "confdefs.h"
8113 /* System header to define __stub macros and hopefully few prototypes,
8114 which can conflict with char $ac_func(); below. */
8115 #include <assert.h>
8116 /* Override any gcc2 internal prototype to avoid an error. */
8117 /* We use char because int might match the return type of a gcc2
8118 builtin and then its argument prototype would still apply. */
8119 char $ac_func();
8121 int main() {
8123 /* The GNU C library defines this for functions which it implements
8124 to always fail with ENOSYS. Some functions are actually named
8125 something starting with __ and the normal name is an alias. */
8126 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8127 choke me
8128 #else
8129 $ac_func();
8130 #endif
8132 ; return 0; }
8134 if { (eval echo configure:8135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8135 rm -rf conftest*
8136 eval "ac_cv_func_$ac_func=yes"
8137 else
8138 echo "configure: failed program was:" >&5
8139 cat conftest.$ac_ext >&5
8140 rm -rf conftest*
8141 eval "ac_cv_func_$ac_func=no"
8143 rm -f conftest*
8146 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8147 echo "$ac_t""yes" 1>&6
8148 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8149 cat >> confdefs.h <<EOF
8150 #define $ac_tr_func 1
8153 else
8154 echo "$ac_t""no" 1>&6
8156 done
8158 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
8159 echo "configure:8160: checking for getprpwnam in -lsecurity" >&5
8160 ac_lib_var=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
8161 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8162 echo $ac_n "(cached) $ac_c" 1>&6
8163 else
8164 ac_save_LIBS="$LIBS"
8165 LIBS="-lsecurity $LIBS"
8166 cat > conftest.$ac_ext <<EOF
8167 #line 8168 "configure"
8168 #include "confdefs.h"
8169 /* Override any gcc2 internal prototype to avoid an error. */
8170 /* We use char because int might match the return type of a gcc2
8171 builtin and then its argument prototype would still apply. */
8172 char getprpwnam();
8174 int main() {
8175 getprpwnam()
8176 ; return 0; }
8178 if { (eval echo configure:8179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8179 rm -rf conftest*
8180 eval "ac_cv_lib_$ac_lib_var=yes"
8181 else
8182 echo "configure: failed program was:" >&5
8183 cat conftest.$ac_ext >&5
8184 rm -rf conftest*
8185 eval "ac_cv_lib_$ac_lib_var=no"
8187 rm -f conftest*
8188 LIBS="$ac_save_LIBS"
8191 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8192 echo "$ac_t""yes" 1>&6
8193 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8194 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8195 cat >> confdefs.h <<EOF
8196 #define $ac_tr_lib 1
8199 LIBS="-lsecurity $LIBS"
8201 else
8202 echo "$ac_t""no" 1>&6
8205 for ac_func in getprpwnam
8207 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8208 echo "configure:8209: checking for $ac_func" >&5
8209 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8210 echo $ac_n "(cached) $ac_c" 1>&6
8211 else
8212 cat > conftest.$ac_ext <<EOF
8213 #line 8214 "configure"
8214 #include "confdefs.h"
8215 /* System header to define __stub macros and hopefully few prototypes,
8216 which can conflict with char $ac_func(); below. */
8217 #include <assert.h>
8218 /* Override any gcc2 internal prototype to avoid an error. */
8219 /* We use char because int might match the return type of a gcc2
8220 builtin and then its argument prototype would still apply. */
8221 char $ac_func();
8223 int main() {
8225 /* The GNU C library defines this for functions which it implements
8226 to always fail with ENOSYS. Some functions are actually named
8227 something starting with __ and the normal name is an alias. */
8228 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8229 choke me
8230 #else
8231 $ac_func();
8232 #endif
8234 ; return 0; }
8236 if { (eval echo configure:8237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8237 rm -rf conftest*
8238 eval "ac_cv_func_$ac_func=yes"
8239 else
8240 echo "configure: failed program was:" >&5
8241 cat conftest.$ac_ext >&5
8242 rm -rf conftest*
8243 eval "ac_cv_func_$ac_func=no"
8245 rm -f conftest*
8248 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8249 echo "$ac_t""yes" 1>&6
8250 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8251 cat >> confdefs.h <<EOF
8252 #define $ac_tr_func 1
8255 else
8256 echo "$ac_t""no" 1>&6
8258 done
8261 esac
8263 case "$LIBS" in
8264 *-lsec*) for ac_func in getprpwnam
8266 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8267 echo "configure:8268: checking for $ac_func" >&5
8268 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8269 echo $ac_n "(cached) $ac_c" 1>&6
8270 else
8271 cat > conftest.$ac_ext <<EOF
8272 #line 8273 "configure"
8273 #include "confdefs.h"
8274 /* System header to define __stub macros and hopefully few prototypes,
8275 which can conflict with char $ac_func(); below. */
8276 #include <assert.h>
8277 /* Override any gcc2 internal prototype to avoid an error. */
8278 /* We use char because int might match the return type of a gcc2
8279 builtin and then its argument prototype would still apply. */
8280 char $ac_func();
8282 int main() {
8284 /* The GNU C library defines this for functions which it implements
8285 to always fail with ENOSYS. Some functions are actually named
8286 something starting with __ and the normal name is an alias. */
8287 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8288 choke me
8289 #else
8290 $ac_func();
8291 #endif
8293 ; return 0; }
8295 if { (eval echo configure:8296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8296 rm -rf conftest*
8297 eval "ac_cv_func_$ac_func=yes"
8298 else
8299 echo "configure: failed program was:" >&5
8300 cat conftest.$ac_ext >&5
8301 rm -rf conftest*
8302 eval "ac_cv_func_$ac_func=no"
8304 rm -f conftest*
8307 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8308 echo "$ac_t""yes" 1>&6
8309 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8310 cat >> confdefs.h <<EOF
8311 #define $ac_tr_func 1
8314 else
8315 echo "$ac_t""no" 1>&6
8317 done
8319 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
8320 echo "configure:8321: checking for getprpwnam in -lsec" >&5
8321 ac_lib_var=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
8322 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8323 echo $ac_n "(cached) $ac_c" 1>&6
8324 else
8325 ac_save_LIBS="$LIBS"
8326 LIBS="-lsec $LIBS"
8327 cat > conftest.$ac_ext <<EOF
8328 #line 8329 "configure"
8329 #include "confdefs.h"
8330 /* Override any gcc2 internal prototype to avoid an error. */
8331 /* We use char because int might match the return type of a gcc2
8332 builtin and then its argument prototype would still apply. */
8333 char getprpwnam();
8335 int main() {
8336 getprpwnam()
8337 ; return 0; }
8339 if { (eval echo configure:8340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8340 rm -rf conftest*
8341 eval "ac_cv_lib_$ac_lib_var=yes"
8342 else
8343 echo "configure: failed program was:" >&5
8344 cat conftest.$ac_ext >&5
8345 rm -rf conftest*
8346 eval "ac_cv_lib_$ac_lib_var=no"
8348 rm -f conftest*
8349 LIBS="$ac_save_LIBS"
8352 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8353 echo "$ac_t""yes" 1>&6
8354 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8355 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8356 cat >> confdefs.h <<EOF
8357 #define $ac_tr_lib 1
8360 LIBS="-lsec $LIBS"
8362 else
8363 echo "$ac_t""no" 1>&6
8366 for ac_func in getprpwnam
8368 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8369 echo "configure:8370: checking for $ac_func" >&5
8370 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8371 echo $ac_n "(cached) $ac_c" 1>&6
8372 else
8373 cat > conftest.$ac_ext <<EOF
8374 #line 8375 "configure"
8375 #include "confdefs.h"
8376 /* System header to define __stub macros and hopefully few prototypes,
8377 which can conflict with char $ac_func(); below. */
8378 #include <assert.h>
8379 /* Override any gcc2 internal prototype to avoid an error. */
8380 /* We use char because int might match the return type of a gcc2
8381 builtin and then its argument prototype would still apply. */
8382 char $ac_func();
8384 int main() {
8386 /* The GNU C library defines this for functions which it implements
8387 to always fail with ENOSYS. Some functions are actually named
8388 something starting with __ and the normal name is an alias. */
8389 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8390 choke me
8391 #else
8392 $ac_func();
8393 #endif
8395 ; return 0; }
8397 if { (eval echo configure:8398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8398 rm -rf conftest*
8399 eval "ac_cv_func_$ac_func=yes"
8400 else
8401 echo "configure: failed program was:" >&5
8402 cat conftest.$ac_ext >&5
8403 rm -rf conftest*
8404 eval "ac_cv_func_$ac_func=no"
8406 rm -f conftest*
8409 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8410 echo "$ac_t""yes" 1>&6
8411 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8412 cat >> confdefs.h <<EOF
8413 #define $ac_tr_func 1
8416 else
8417 echo "$ac_t""no" 1>&6
8419 done
8422 esac
8425 # this bit needs to be modified for each OS that is suported by
8426 # smbwrapper. You need to specify how to created a shared library and
8427 # how to compile C code to produce PIC object files
8429 # these are the defaults, good for lots of systems
8430 HOST_OS="$host_os"
8431 LDSHFLAGS="-shared"
8432 SONAMEFLAG="#"
8433 SHLD="\${CC}"
8434 PICFLAG=""
8435 PICSUFFIX="po.o"
8436 SHLIBEXT="so"
8437 # Assume non-shared by default and override below
8438 BLDSHARED="false"
8439 echo $ac_n "checking ability to build shared libraries""... $ac_c" 1>&6
8440 echo "configure:8441: checking ability to build shared libraries" >&5
8442 # and these are for particular systems
8443 case "$host_os" in
8444 *linux*) cat >> confdefs.h <<\EOF
8445 #define LINUX 1
8448 BLDSHARED="true"
8449 LDSHFLAGS="-shared"
8450 PICFLAG="-fPIC"
8451 SONAMEFLAG="-Wl,-soname="
8452 cat >> confdefs.h <<\EOF
8453 #define STAT_ST_BLOCKSIZE 512
8457 *solaris*) cat >> confdefs.h <<\EOF
8458 #define SUNOS5 1
8461 BLDSHARED="true"
8462 LDSHFLAGS="-h \$@ -G"
8463 if test "${ac_cv_prog_CC}" = "gcc"; then
8464 PICFLAG="-fPIC"
8465 else
8466 PICFLAG="-KPIC"
8467 POBAD_CC=""
8468 PICSUFFIX="po.o"
8470 cat >> confdefs.h <<\EOF
8471 #define STAT_ST_BLOCKSIZE 512
8475 *sunos*) cat >> confdefs.h <<\EOF
8476 #define SUNOS4 1
8479 BLDSHARED="true"
8480 LDSHFLAGS="-Wl,-h,\$@ -G"
8481 PICFLAG="-KPIC" # Is this correct for SunOS
8483 *bsd*) BLDSHARED="true"
8484 LDSHFLAGS="-Wl,-soname,\$@ -shared"
8485 PICFLAG="-fPIC"
8486 cat >> confdefs.h <<\EOF
8487 #define STAT_ST_BLOCKSIZE 512
8491 *irix*) cat >> confdefs.h <<\EOF
8492 #define IRIX 1
8495 case "$host_os" in
8496 *irix6*) cat >> confdefs.h <<\EOF
8497 #define IRIX6 1
8501 esac
8502 ATTEMPT_WRAP32_BUILD=yes
8503 BLDSHARED="true"
8504 LDSHFLAGS="-soname \$@ -shared"
8505 SHLD="\${LD}"
8506 if test "${ac_cv_prog_CC}" = "gcc"; then
8507 PICFLAG="-fPIC"
8508 else
8509 PICFLAG="-KPIC"
8511 cat >> confdefs.h <<\EOF
8512 #define STAT_ST_BLOCKSIZE 512
8516 *aix*) cat >> confdefs.h <<\EOF
8517 #define AIX 1
8520 BLDSHARED="true"
8521 LDSHFLAGS="-Wl,-bexpall,-bM:SRE,-bnoentry"
8522 PICFLAG="-O2 -qmaxmem=6000"
8523 cat >> confdefs.h <<\EOF
8524 #define STAT_ST_BLOCKSIZE DEV_BSIZE
8528 *hpux*) cat >> confdefs.h <<\EOF
8529 #define HPUX 1
8532 SHLIBEXT="sl"
8533 # Use special PIC flags for the native HP-UX compiler.
8534 if test $ac_cv_prog_cc_Ae = yes; then
8535 BLDSHARED="true"
8536 SHLD="/usr/bin/ld"
8537 LDSHFLAGS="-B symbolic -b -z +h \$@"
8538 PICFLAG="+z"
8540 cat >> confdefs.h <<\EOF
8541 #define STAT_ST_BLOCKSIZE 8192
8545 *qnx*) cat >> confdefs.h <<\EOF
8546 #define QNX 1
8549 *osf*) cat >> confdefs.h <<\EOF
8550 #define OSF1 1
8553 BLDSHARED="true"
8554 LDSHFLAGS="-Wl,-soname,\$@ -shared"
8555 PICFLAG="-fPIC"
8557 *sco*) cat >> confdefs.h <<\EOF
8558 #define SCO 1
8561 *unixware*) cat >> confdefs.h <<\EOF
8562 #define UNIXWARE 1
8565 BLDSHARED="true"
8566 LDSHFLAGS="-Wl,-soname,\$@ -shared"
8567 PICFLAG="-KPIC"
8569 *next2*) cat >> confdefs.h <<\EOF
8570 #define NEXT2 1
8573 *dgux*) # Extract the first word of "groff", so it can be a program name with args.
8574 set dummy groff; ac_word=$2
8575 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8576 echo "configure:8577: checking for $ac_word" >&5
8577 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
8578 echo $ac_n "(cached) $ac_c" 1>&6
8579 else
8580 if test -n "$ROFF"; then
8581 ac_cv_prog_ROFF="$ROFF" # Let the user override the test.
8582 else
8583 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8584 ac_dummy="$PATH"
8585 for ac_dir in $ac_dummy; do
8586 test -z "$ac_dir" && ac_dir=.
8587 if test -f $ac_dir/$ac_word; then
8588 ac_cv_prog_ROFF="groff -etpsR -Tascii -man"
8589 break
8591 done
8592 IFS="$ac_save_ifs"
8595 ROFF="$ac_cv_prog_ROFF"
8596 if test -n "$ROFF"; then
8597 echo "$ac_t""$ROFF" 1>&6
8598 else
8599 echo "$ac_t""no" 1>&6
8602 *sysv4*)
8603 case "$host" in
8604 *-univel-*) if test "$GCC" != yes ; then
8605 cat >> confdefs.h <<\EOF
8606 #define HAVE_MEMSET 1
8610 LDSHFLAGS="-G"
8612 *mips-sni-sysv4*) cat >> confdefs.h <<\EOF
8613 #define RELIANTUNIX 1
8616 esac
8618 *sysv5*)
8619 if test "$GCC" != yes ; then
8620 cat >> confdefs.h <<\EOF
8621 #define HAVE_MEMSET 1
8625 LDSHFLAGS="-G"
8627 esac
8628 echo "$ac_t""$BLDSHARED" 1>&6
8629 echo $ac_n "checking linker flags for shared libraries""... $ac_c" 1>&6
8630 echo "configure:8631: checking linker flags for shared libraries" >&5
8631 echo "$ac_t""$LDSHFLAGS" 1>&6
8632 echo $ac_n "checking compiler flags for position-independent code""... $ac_c" 1>&6
8633 echo "configure:8634: checking compiler flags for position-independent code" >&5
8634 echo "$ac_t""$PICFLAGS" 1>&6
8636 # try to work out how to produce pic code with this compiler
8637 echo $ac_n "checking whether ${CC-cc} accepts -fpic""... $ac_c" 1>&6
8638 echo "configure:8639: checking whether ${CC-cc} accepts -fpic" >&5
8639 if eval "test \"`echo '$''{'ac_cv_prog_cc_fpic'+set}'`\" = set"; then
8640 echo $ac_n "(cached) $ac_c" 1>&6
8641 else
8642 echo 'void f(){}' > conftest.c
8643 if test -z "`${CC-cc} -fpic -c conftest.c 2>&1`"; then
8644 ac_cv_prog_cc_fpic=yes
8645 else
8646 ac_cv_prog_cc_fpic=no
8648 rm -f conftest*
8652 echo "$ac_t""$ac_cv_prog_cc_fpic" 1>&6
8653 if test $ac_cv_prog_cc_fpic = yes; then
8654 PICFLAG="-fpic";
8656 if test x$PICFLAG = x; then
8657 echo $ac_n "checking whether ${CC-cc} accepts -KPIC""... $ac_c" 1>&6
8658 echo "configure:8659: checking whether ${CC-cc} accepts -KPIC" >&5
8659 if eval "test \"`echo '$''{'ac_cv_prog_cc_KPIC'+set}'`\" = set"; then
8660 echo $ac_n "(cached) $ac_c" 1>&6
8661 else
8662 echo 'void f(){}' > conftest.c
8663 if test -z "`${CC-cc} -KPIC -c conftest.c 2>&1`"; then
8664 ac_cv_prog_cc_KPIC=yes
8665 else
8666 ac_cv_prog_cc_KPIC=no
8668 rm -f conftest*
8672 echo "$ac_t""$ac_cv_prog_cc_KPIC" 1>&6
8673 if test $ac_cv_prog_cc_KPIC = yes; then
8674 PICFLAG="-KPIC";
8677 if test x$PICFLAG = x; then
8678 echo $ac_n "checking whether ${CC-cc} accepts -Kpic""... $ac_c" 1>&6
8679 echo "configure:8680: checking whether ${CC-cc} accepts -Kpic" >&5
8680 if eval "test \"`echo '$''{'ac_cv_prog_cc_Kpic'+set}'`\" = set"; then
8681 echo $ac_n "(cached) $ac_c" 1>&6
8682 else
8683 echo 'void f(){}' > conftest.c
8684 if test -z "`${CC-cc} -Kpic -c conftest.c 2>&1`"; then
8685 ac_cv_prog_cc_Kpic=yes
8686 else
8687 ac_cv_prog_cc_Kpic=no
8689 rm -f conftest*
8693 echo "$ac_t""$ac_cv_prog_cc_Kpic" 1>&6
8694 if test $ac_cv_prog_cc_Kpic = yes; then
8695 PICFLAG="-Kpic";
8699 ################
8701 echo $ac_n "checking for long long""... $ac_c" 1>&6
8702 echo "configure:8703: checking for long long" >&5
8703 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
8704 echo $ac_n "(cached) $ac_c" 1>&6
8705 else
8707 if test "$cross_compiling" = yes; then
8708 samba_cv_have_longlong=cross
8709 else
8710 cat > conftest.$ac_ext <<EOF
8711 #line 8712 "configure"
8712 #include "confdefs.h"
8713 #include <stdio.h>
8714 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
8716 if { (eval echo configure:8717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8717 then
8718 samba_cv_have_longlong=yes
8719 else
8720 echo "configure: failed program was:" >&5
8721 cat conftest.$ac_ext >&5
8722 rm -fr conftest*
8723 samba_cv_have_longlong=no
8725 rm -fr conftest*
8730 echo "$ac_t""$samba_cv_have_longlong" 1>&6
8731 if test x"$samba_cv_have_longlong" = x"yes"; then
8732 cat >> confdefs.h <<\EOF
8733 #define HAVE_LONGLONG 1
8739 # Check if the compiler supports the LL prefix on long long integers.
8740 # AIX needs this.
8742 echo $ac_n "checking for LL suffix on long long integers""... $ac_c" 1>&6
8743 echo "configure:8744: checking for LL suffix on long long integers" >&5
8744 if eval "test \"`echo '$''{'samba_cv_compiler_supports_ll'+set}'`\" = set"; then
8745 echo $ac_n "(cached) $ac_c" 1>&6
8746 else
8748 cat > conftest.$ac_ext <<EOF
8749 #line 8750 "configure"
8750 #include "confdefs.h"
8751 #include <stdio.h>
8752 int main() {
8753 long long i = 0x8000000000LL
8754 ; return 0; }
8756 if { (eval echo configure:8757: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8757 rm -rf conftest*
8758 samba_cv_compiler_supports_ll=yes
8759 else
8760 echo "configure: failed program was:" >&5
8761 cat conftest.$ac_ext >&5
8762 rm -rf conftest*
8763 samba_cv_compiler_supports_ll=no
8765 rm -f conftest*
8768 echo "$ac_t""$samba_cv_compiler_supports_ll" 1>&6
8769 if test x"$samba_cv_compiler_supports_ll" = x"yes"; then
8770 cat >> confdefs.h <<\EOF
8771 #define COMPILER_SUPPORTS_LL 1
8777 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
8778 echo "configure:8779: checking for 64 bit off_t" >&5
8779 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
8780 echo $ac_n "(cached) $ac_c" 1>&6
8781 else
8783 if test "$cross_compiling" = yes; then
8784 samba_cv_SIZEOF_OFF_T=cross
8785 else
8786 cat > conftest.$ac_ext <<EOF
8787 #line 8788 "configure"
8788 #include "confdefs.h"
8789 #include <stdio.h>
8790 #include <sys/stat.h>
8791 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
8793 if { (eval echo configure:8794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8794 then
8795 samba_cv_SIZEOF_OFF_T=yes
8796 else
8797 echo "configure: failed program was:" >&5
8798 cat conftest.$ac_ext >&5
8799 rm -fr conftest*
8800 samba_cv_SIZEOF_OFF_T=no
8802 rm -fr conftest*
8807 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
8808 if test x"$samba_cv_SIZEOF_OFF_T" = x"yes"; then
8809 cat >> confdefs.h <<\EOF
8810 #define SIZEOF_OFF_T 8
8815 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
8816 echo "configure:8817: checking for off64_t" >&5
8817 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
8818 echo $ac_n "(cached) $ac_c" 1>&6
8819 else
8821 if test "$cross_compiling" = yes; then
8822 samba_cv_HAVE_OFF64_T=cross
8823 else
8824 cat > conftest.$ac_ext <<EOF
8825 #line 8826 "configure"
8826 #include "confdefs.h"
8828 #if defined(HAVE_UNISTD_H)
8829 #include <unistd.h>
8830 #endif
8831 #include <stdio.h>
8832 #include <sys/stat.h>
8833 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8835 if { (eval echo configure:8836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8836 then
8837 samba_cv_HAVE_OFF64_T=yes
8838 else
8839 echo "configure: failed program was:" >&5
8840 cat conftest.$ac_ext >&5
8841 rm -fr conftest*
8842 samba_cv_HAVE_OFF64_T=no
8844 rm -fr conftest*
8849 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
8850 if test x"$samba_cv_HAVE_OFF64_T" = x"yes"; then
8851 cat >> confdefs.h <<\EOF
8852 #define HAVE_OFF64_T 1
8857 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
8858 echo "configure:8859: checking for 64 bit ino_t" >&5
8859 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
8860 echo $ac_n "(cached) $ac_c" 1>&6
8861 else
8863 if test "$cross_compiling" = yes; then
8864 samba_cv_SIZEOF_INO_T=cross
8865 else
8866 cat > conftest.$ac_ext <<EOF
8867 #line 8868 "configure"
8868 #include "confdefs.h"
8869 #include <stdio.h>
8870 #include <sys/stat.h>
8871 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
8873 if { (eval echo configure:8874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8874 then
8875 samba_cv_SIZEOF_INO_T=yes
8876 else
8877 echo "configure: failed program was:" >&5
8878 cat conftest.$ac_ext >&5
8879 rm -fr conftest*
8880 samba_cv_SIZEOF_INO_T=no
8882 rm -fr conftest*
8887 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
8888 if test x"$samba_cv_SIZEOF_INO_T" = x"yes"; then
8889 cat >> confdefs.h <<\EOF
8890 #define SIZEOF_INO_T 8
8895 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
8896 echo "configure:8897: checking for ino64_t" >&5
8897 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
8898 echo $ac_n "(cached) $ac_c" 1>&6
8899 else
8901 if test "$cross_compiling" = yes; then
8902 samba_cv_HAVE_INO64_T=cross
8903 else
8904 cat > conftest.$ac_ext <<EOF
8905 #line 8906 "configure"
8906 #include "confdefs.h"
8908 #if defined(HAVE_UNISTD_H)
8909 #include <unistd.h>
8910 #endif
8911 #include <stdio.h>
8912 #include <sys/stat.h>
8913 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8915 if { (eval echo configure:8916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8916 then
8917 samba_cv_HAVE_INO64_T=yes
8918 else
8919 echo "configure: failed program was:" >&5
8920 cat conftest.$ac_ext >&5
8921 rm -fr conftest*
8922 samba_cv_HAVE_INO64_T=no
8924 rm -fr conftest*
8929 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
8930 if test x"$samba_cv_HAVE_INO64_T" = x"yes"; then
8931 cat >> confdefs.h <<\EOF
8932 #define HAVE_INO64_T 1
8937 echo $ac_n "checking for dev64_t""... $ac_c" 1>&6
8938 echo "configure:8939: checking for dev64_t" >&5
8939 if eval "test \"`echo '$''{'samba_cv_HAVE_DEV64_T'+set}'`\" = set"; then
8940 echo $ac_n "(cached) $ac_c" 1>&6
8941 else
8943 if test "$cross_compiling" = yes; then
8944 samba_cv_HAVE_DEV64_T=cross
8945 else
8946 cat > conftest.$ac_ext <<EOF
8947 #line 8948 "configure"
8948 #include "confdefs.h"
8950 #if defined(HAVE_UNISTD_H)
8951 #include <unistd.h>
8952 #endif
8953 #include <stdio.h>
8954 #include <sys/stat.h>
8955 main() { struct stat64 st; dev64_t s; if (sizeof(dev_t) == sizeof(dev64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8957 if { (eval echo configure:8958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8958 then
8959 samba_cv_HAVE_DEV64_T=yes
8960 else
8961 echo "configure: failed program was:" >&5
8962 cat conftest.$ac_ext >&5
8963 rm -fr conftest*
8964 samba_cv_HAVE_DEV64_T=no
8966 rm -fr conftest*
8971 echo "$ac_t""$samba_cv_HAVE_DEV64_T" 1>&6
8972 if test x"$samba_cv_HAVE_DEV64_T" = x"yes"; then
8973 cat >> confdefs.h <<\EOF
8974 #define HAVE_DEV64_T 1
8979 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
8980 echo "configure:8981: checking for struct dirent64" >&5
8981 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
8982 echo $ac_n "(cached) $ac_c" 1>&6
8983 else
8985 cat > conftest.$ac_ext <<EOF
8986 #line 8987 "configure"
8987 #include "confdefs.h"
8989 #if defined(HAVE_UNISTD_H)
8990 #include <unistd.h>
8991 #endif
8992 #include <sys/types.h>
8993 #include <dirent.h>
8994 int main() {
8995 struct dirent64 de;
8996 ; return 0; }
8998 if { (eval echo configure:8999: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8999 rm -rf conftest*
9000 samba_cv_HAVE_STRUCT_DIRENT64=yes
9001 else
9002 echo "configure: failed program was:" >&5
9003 cat conftest.$ac_ext >&5
9004 rm -rf conftest*
9005 samba_cv_HAVE_STRUCT_DIRENT64=no
9007 rm -f conftest*
9010 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
9011 if test x"$samba_cv_HAVE_STRUCT_DIRENT64" = x"yes"; then
9012 cat >> confdefs.h <<\EOF
9013 #define HAVE_STRUCT_DIRENT64 1
9018 echo $ac_n "checking for major macro""... $ac_c" 1>&6
9019 echo "configure:9020: checking for major macro" >&5
9020 if eval "test \"`echo '$''{'samba_cv_HAVE_DEVICE_MAJOR_FN'+set}'`\" = set"; then
9021 echo $ac_n "(cached) $ac_c" 1>&6
9022 else
9024 if test "$cross_compiling" = yes; then
9025 samba_cv_HAVE_DEVICE_MAJOR_FN=cross
9026 else
9027 cat > conftest.$ac_ext <<EOF
9028 #line 9029 "configure"
9029 #include "confdefs.h"
9031 #if defined(HAVE_UNISTD_H)
9032 #include <unistd.h>
9033 #endif
9034 #include <sys/types.h>
9035 main() { dev_t dev; int i = major(dev); return 0; }
9037 if { (eval echo configure:9038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9038 then
9039 samba_cv_HAVE_DEVICE_MAJOR_FN=yes
9040 else
9041 echo "configure: failed program was:" >&5
9042 cat conftest.$ac_ext >&5
9043 rm -fr conftest*
9044 samba_cv_HAVE_DEVICE_MAJOR_FN=no
9046 rm -fr conftest*
9051 echo "$ac_t""$samba_cv_HAVE_DEVICE_MAJOR_FN" 1>&6
9052 if test x"$samba_cv_HAVE_DEVICE_MAJOR_FN" = x"yes"; then
9053 cat >> confdefs.h <<\EOF
9054 #define HAVE_DEVICE_MAJOR_FN 1
9059 echo $ac_n "checking for minor macro""... $ac_c" 1>&6
9060 echo "configure:9061: checking for minor macro" >&5
9061 if eval "test \"`echo '$''{'samba_cv_HAVE_DEVICE_MINOR_FN'+set}'`\" = set"; then
9062 echo $ac_n "(cached) $ac_c" 1>&6
9063 else
9065 if test "$cross_compiling" = yes; then
9066 samba_cv_HAVE_DEVICE_MINOR_FN=cross
9067 else
9068 cat > conftest.$ac_ext <<EOF
9069 #line 9070 "configure"
9070 #include "confdefs.h"
9072 #if defined(HAVE_UNISTD_H)
9073 #include <unistd.h>
9074 #endif
9075 #include <sys/types.h>
9076 main() { dev_t dev; int i = minor(dev); return 0; }
9078 if { (eval echo configure:9079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9079 then
9080 samba_cv_HAVE_DEVICE_MINOR_FN=yes
9081 else
9082 echo "configure: failed program was:" >&5
9083 cat conftest.$ac_ext >&5
9084 rm -fr conftest*
9085 samba_cv_HAVE_DEVICE_MINOR_FN=no
9087 rm -fr conftest*
9092 echo "$ac_t""$samba_cv_HAVE_DEVICE_MINOR_FN" 1>&6
9093 if test x"$samba_cv_HAVE_DEVICE_MINOR_FN" = x"yes"; then
9094 cat >> confdefs.h <<\EOF
9095 #define HAVE_DEVICE_MINOR_FN 1
9100 echo $ac_n "checking for makedev macro""... $ac_c" 1>&6
9101 echo "configure:9102: checking for makedev macro" >&5
9102 if eval "test \"`echo '$''{'samba_cv_HAVE_MAKEDEV_FN'+set}'`\" = set"; then
9103 echo $ac_n "(cached) $ac_c" 1>&6
9104 else
9106 if test "$cross_compiling" = yes; then
9107 samba_cv_HAVE_MAKEDEV_FN=cross
9108 else
9109 cat > conftest.$ac_ext <<EOF
9110 #line 9111 "configure"
9111 #include "confdefs.h"
9113 #if defined(HAVE_UNISTD_H)
9114 #include <unistd.h>
9115 #endif
9116 #include <sys/types.h>
9117 main() { dev_t dev = makedev(1,2); return 0; }
9119 if { (eval echo configure:9120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9120 then
9121 samba_cv_HAVE_MAKEDEV_FN=yes
9122 else
9123 echo "configure: failed program was:" >&5
9124 cat conftest.$ac_ext >&5
9125 rm -fr conftest*
9126 samba_cv_HAVE_MAKEDEV_FN=no
9128 rm -fr conftest*
9133 echo "$ac_t""$samba_cv_HAVE_MAKEDEV_FN" 1>&6
9134 if test x"$samba_cv_HAVE_MAKEDEV_FN" = x"yes"; then
9135 cat >> confdefs.h <<\EOF
9136 #define MAKEDEV_FN 1
9141 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
9142 echo "configure:9143: checking for unsigned char" >&5
9143 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
9144 echo $ac_n "(cached) $ac_c" 1>&6
9145 else
9147 if test "$cross_compiling" = yes; then
9148 samba_cv_HAVE_UNSIGNED_CHAR=cross
9149 else
9150 cat > conftest.$ac_ext <<EOF
9151 #line 9152 "configure"
9152 #include "confdefs.h"
9153 #include <stdio.h>
9154 main() { char c; c=250; exit((c > 0)?0:1); }
9156 if { (eval echo configure:9157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9157 then
9158 samba_cv_HAVE_UNSIGNED_CHAR=yes
9159 else
9160 echo "configure: failed program was:" >&5
9161 cat conftest.$ac_ext >&5
9162 rm -fr conftest*
9163 samba_cv_HAVE_UNSIGNED_CHAR=no
9165 rm -fr conftest*
9170 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
9171 if test x"$samba_cv_HAVE_UNSIGNED_CHAR" = x"yes"; then
9172 cat >> confdefs.h <<\EOF
9173 #define HAVE_UNSIGNED_CHAR 1
9178 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
9179 echo "configure:9180: checking for sin_len in sock" >&5
9180 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
9181 echo $ac_n "(cached) $ac_c" 1>&6
9182 else
9184 cat > conftest.$ac_ext <<EOF
9185 #line 9186 "configure"
9186 #include "confdefs.h"
9187 #include <sys/types.h>
9188 #include <sys/socket.h>
9189 #include <netinet/in.h>
9190 int main() {
9191 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
9192 ; return 0; }
9194 if { (eval echo configure:9195: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9195 rm -rf conftest*
9196 samba_cv_HAVE_SOCK_SIN_LEN=yes
9197 else
9198 echo "configure: failed program was:" >&5
9199 cat conftest.$ac_ext >&5
9200 rm -rf conftest*
9201 samba_cv_HAVE_SOCK_SIN_LEN=no
9203 rm -f conftest*
9206 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
9207 if test x"$samba_cv_HAVE_SOCK_SIN_LEN" = x"yes"; then
9208 cat >> confdefs.h <<\EOF
9209 #define HAVE_SOCK_SIN_LEN 1
9214 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
9215 echo "configure:9216: checking whether seekdir returns void" >&5
9216 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
9217 echo $ac_n "(cached) $ac_c" 1>&6
9218 else
9220 cat > conftest.$ac_ext <<EOF
9221 #line 9222 "configure"
9222 #include "confdefs.h"
9223 #include <sys/types.h>
9224 #include <dirent.h>
9225 void seekdir(DIR *d, long loc) { return; }
9226 int main() {
9227 return 0;
9228 ; return 0; }
9230 if { (eval echo configure:9231: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9231 rm -rf conftest*
9232 samba_cv_SEEKDIR_RETURNS_VOID=yes
9233 else
9234 echo "configure: failed program was:" >&5
9235 cat conftest.$ac_ext >&5
9236 rm -rf conftest*
9237 samba_cv_SEEKDIR_RETURNS_VOID=no
9239 rm -f conftest*
9242 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
9243 if test x"$samba_cv_SEEKDIR_RETURNS_VOID" = x"yes"; then
9244 cat >> confdefs.h <<\EOF
9245 #define SEEKDIR_RETURNS_VOID 1
9250 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
9251 echo "configure:9252: checking for __FILE__ macro" >&5
9252 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
9253 echo $ac_n "(cached) $ac_c" 1>&6
9254 else
9256 cat > conftest.$ac_ext <<EOF
9257 #line 9258 "configure"
9258 #include "confdefs.h"
9259 #include <stdio.h>
9260 int main() {
9261 printf("%s\n", __FILE__);
9262 ; return 0; }
9264 if { (eval echo configure:9265: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9265 rm -rf conftest*
9266 samba_cv_HAVE_FILE_MACRO=yes
9267 else
9268 echo "configure: failed program was:" >&5
9269 cat conftest.$ac_ext >&5
9270 rm -rf conftest*
9271 samba_cv_HAVE_FILE_MACRO=no
9273 rm -f conftest*
9276 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
9277 if test x"$samba_cv_HAVE_FILE_MACRO" = x"yes"; then
9278 cat >> confdefs.h <<\EOF
9279 #define HAVE_FILE_MACRO 1
9284 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
9285 echo "configure:9286: checking for __FUNCTION__ macro" >&5
9286 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
9287 echo $ac_n "(cached) $ac_c" 1>&6
9288 else
9290 cat > conftest.$ac_ext <<EOF
9291 #line 9292 "configure"
9292 #include "confdefs.h"
9293 #include <stdio.h>
9294 int main() {
9295 printf("%s\n", __FUNCTION__);
9296 ; return 0; }
9298 if { (eval echo configure:9299: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9299 rm -rf conftest*
9300 samba_cv_HAVE_FUNCTION_MACRO=yes
9301 else
9302 echo "configure: failed program was:" >&5
9303 cat conftest.$ac_ext >&5
9304 rm -rf conftest*
9305 samba_cv_HAVE_FUNCTION_MACRO=no
9307 rm -f conftest*
9310 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
9311 if test x"$samba_cv_HAVE_FUNCTION_MACRO" = x"yes"; then
9312 cat >> confdefs.h <<\EOF
9313 #define HAVE_FUNCTION_MACRO 1
9318 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
9319 echo "configure:9320: checking if gettimeofday takes tz argument" >&5
9320 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
9321 echo $ac_n "(cached) $ac_c" 1>&6
9322 else
9324 if test "$cross_compiling" = yes; then
9325 samba_cv_HAVE_GETTIMEOFDAY_TZ=cross
9326 else
9327 cat > conftest.$ac_ext <<EOF
9328 #line 9329 "configure"
9329 #include "confdefs.h"
9331 #include <sys/time.h>
9332 #include <unistd.h>
9333 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
9335 if { (eval echo configure:9336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9336 then
9337 samba_cv_HAVE_GETTIMEOFDAY_TZ=yes
9338 else
9339 echo "configure: failed program was:" >&5
9340 cat conftest.$ac_ext >&5
9341 rm -fr conftest*
9342 samba_cv_HAVE_GETTIMEOFDAY_TZ=no
9344 rm -fr conftest*
9349 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
9350 if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
9351 cat >> confdefs.h <<\EOF
9352 #define HAVE_GETTIMEOFDAY_TZ 1
9357 echo $ac_n "checking for C99 vsnprintf""... $ac_c" 1>&6
9358 echo "configure:9359: checking for C99 vsnprintf" >&5
9359 if eval "test \"`echo '$''{'samba_cv_HAVE_C99_VSNPRINTF'+set}'`\" = set"; then
9360 echo $ac_n "(cached) $ac_c" 1>&6
9361 else
9363 if test "$cross_compiling" = yes; then
9364 samba_cv_HAVE_C99_VSNPRINTF=cross
9365 else
9366 cat > conftest.$ac_ext <<EOF
9367 #line 9368 "configure"
9368 #include "confdefs.h"
9370 #include <sys/types.h>
9371 #include <stdarg.h>
9372 void foo(const char *format, ...) {
9373 va_list ap;
9374 int len;
9375 char buf[5];
9377 va_start(ap, format);
9378 len = vsnprintf(0, 0, format, ap);
9379 va_end(ap);
9380 if (len != 5) exit(1);
9382 if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
9384 exit(0);
9386 main() { foo("hello"); }
9389 if { (eval echo configure:9390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9390 then
9391 samba_cv_HAVE_C99_VSNPRINTF=yes
9392 else
9393 echo "configure: failed program was:" >&5
9394 cat conftest.$ac_ext >&5
9395 rm -fr conftest*
9396 samba_cv_HAVE_C99_VSNPRINTF=no
9398 rm -fr conftest*
9403 echo "$ac_t""$samba_cv_HAVE_C99_VSNPRINTF" 1>&6
9404 if test x"$samba_cv_HAVE_C99_VSNPRINTF" = x"yes"; then
9405 cat >> confdefs.h <<\EOF
9406 #define HAVE_C99_VSNPRINTF 1
9411 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
9412 echo "configure:9413: checking for broken readdir" >&5
9413 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
9414 echo $ac_n "(cached) $ac_c" 1>&6
9415 else
9417 if test "$cross_compiling" = yes; then
9418 samba_cv_HAVE_BROKEN_READDIR=cross
9419 else
9420 cat > conftest.$ac_ext <<EOF
9421 #line 9422 "configure"
9422 #include "confdefs.h"
9423 #include <sys/types.h>
9424 #include <dirent.h>
9425 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
9426 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
9427 di->d_name[0] == 0) exit(0); exit(1);}
9429 if { (eval echo configure:9430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9430 then
9431 samba_cv_HAVE_BROKEN_READDIR=yes
9432 else
9433 echo "configure: failed program was:" >&5
9434 cat conftest.$ac_ext >&5
9435 rm -fr conftest*
9436 samba_cv_HAVE_BROKEN_READDIR=no
9438 rm -fr conftest*
9443 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
9444 if test x"$samba_cv_HAVE_BROKEN_READDIR" = x"yes"; then
9445 cat >> confdefs.h <<\EOF
9446 #define HAVE_BROKEN_READDIR 1
9451 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
9452 echo "configure:9453: checking for utimbuf" >&5
9453 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
9454 echo $ac_n "(cached) $ac_c" 1>&6
9455 else
9457 cat > conftest.$ac_ext <<EOF
9458 #line 9459 "configure"
9459 #include "confdefs.h"
9460 #include <sys/types.h>
9461 #include <utime.h>
9462 int main() {
9463 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
9464 ; return 0; }
9466 if { (eval echo configure:9467: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9467 rm -rf conftest*
9468 samba_cv_HAVE_UTIMBUF=yes
9469 else
9470 echo "configure: failed program was:" >&5
9471 cat conftest.$ac_ext >&5
9472 rm -rf conftest*
9473 samba_cv_HAVE_UTIMBUF=no
9475 rm -f conftest*
9478 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
9479 if test x"$samba_cv_HAVE_UTIMBUF" = x"yes"; then
9480 cat >> confdefs.h <<\EOF
9481 #define HAVE_UTIMBUF 1
9487 for ac_func in pututline pututxline updwtmp updwtmpx getutmpx
9489 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9490 echo "configure:9491: checking for $ac_func" >&5
9491 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9492 echo $ac_n "(cached) $ac_c" 1>&6
9493 else
9494 cat > conftest.$ac_ext <<EOF
9495 #line 9496 "configure"
9496 #include "confdefs.h"
9497 /* System header to define __stub macros and hopefully few prototypes,
9498 which can conflict with char $ac_func(); below. */
9499 #include <assert.h>
9500 /* Override any gcc2 internal prototype to avoid an error. */
9501 /* We use char because int might match the return type of a gcc2
9502 builtin and then its argument prototype would still apply. */
9503 char $ac_func();
9505 int main() {
9507 /* The GNU C library defines this for functions which it implements
9508 to always fail with ENOSYS. Some functions are actually named
9509 something starting with __ and the normal name is an alias. */
9510 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9511 choke me
9512 #else
9513 $ac_func();
9514 #endif
9516 ; return 0; }
9518 if { (eval echo configure:9519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9519 rm -rf conftest*
9520 eval "ac_cv_func_$ac_func=yes"
9521 else
9522 echo "configure: failed program was:" >&5
9523 cat conftest.$ac_ext >&5
9524 rm -rf conftest*
9525 eval "ac_cv_func_$ac_func=no"
9527 rm -f conftest*
9530 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9531 echo "$ac_t""yes" 1>&6
9532 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9533 cat >> confdefs.h <<EOF
9534 #define $ac_tr_func 1
9537 else
9538 echo "$ac_t""no" 1>&6
9540 done
9543 echo $ac_n "checking for ut_name in utmp""... $ac_c" 1>&6
9544 echo "configure:9545: checking for ut_name in utmp" >&5
9545 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_NAME'+set}'`\" = set"; then
9546 echo $ac_n "(cached) $ac_c" 1>&6
9547 else
9549 cat > conftest.$ac_ext <<EOF
9550 #line 9551 "configure"
9551 #include "confdefs.h"
9552 #include <sys/types.h>
9553 #include <utmp.h>
9554 int main() {
9555 struct utmp ut; ut.ut_name[0] = 'a';
9556 ; return 0; }
9558 if { (eval echo configure:9559: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9559 rm -rf conftest*
9560 samba_cv_HAVE_UT_UT_NAME=yes
9561 else
9562 echo "configure: failed program was:" >&5
9563 cat conftest.$ac_ext >&5
9564 rm -rf conftest*
9565 samba_cv_HAVE_UT_UT_NAME=no
9567 rm -f conftest*
9570 echo "$ac_t""$samba_cv_HAVE_UT_UT_NAME" 1>&6
9571 if test x"$samba_cv_HAVE_UT_UT_NAME" = x"yes"; then
9572 cat >> confdefs.h <<\EOF
9573 #define HAVE_UT_UT_NAME 1
9578 echo $ac_n "checking for ut_user in utmp""... $ac_c" 1>&6
9579 echo "configure:9580: checking for ut_user in utmp" >&5
9580 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_USER'+set}'`\" = set"; then
9581 echo $ac_n "(cached) $ac_c" 1>&6
9582 else
9584 cat > conftest.$ac_ext <<EOF
9585 #line 9586 "configure"
9586 #include "confdefs.h"
9587 #include <sys/types.h>
9588 #include <utmp.h>
9589 int main() {
9590 struct utmp ut; ut.ut_user[0] = 'a';
9591 ; return 0; }
9593 if { (eval echo configure:9594: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9594 rm -rf conftest*
9595 samba_cv_HAVE_UT_UT_USER=yes
9596 else
9597 echo "configure: failed program was:" >&5
9598 cat conftest.$ac_ext >&5
9599 rm -rf conftest*
9600 samba_cv_HAVE_UT_UT_USER=no
9602 rm -f conftest*
9605 echo "$ac_t""$samba_cv_HAVE_UT_UT_USER" 1>&6
9606 if test x"$samba_cv_HAVE_UT_UT_USER" = x"yes"; then
9607 cat >> confdefs.h <<\EOF
9608 #define HAVE_UT_UT_USER 1
9613 echo $ac_n "checking for ut_id in utmp""... $ac_c" 1>&6
9614 echo "configure:9615: checking for ut_id in utmp" >&5
9615 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ID'+set}'`\" = set"; then
9616 echo $ac_n "(cached) $ac_c" 1>&6
9617 else
9619 cat > conftest.$ac_ext <<EOF
9620 #line 9621 "configure"
9621 #include "confdefs.h"
9622 #include <sys/types.h>
9623 #include <utmp.h>
9624 int main() {
9625 struct utmp ut; ut.ut_id[0] = 'a';
9626 ; return 0; }
9628 if { (eval echo configure:9629: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9629 rm -rf conftest*
9630 samba_cv_HAVE_UT_UT_ID=yes
9631 else
9632 echo "configure: failed program was:" >&5
9633 cat conftest.$ac_ext >&5
9634 rm -rf conftest*
9635 samba_cv_HAVE_UT_UT_ID=no
9637 rm -f conftest*
9640 echo "$ac_t""$samba_cv_HAVE_UT_UT_ID" 1>&6
9641 if test x"$samba_cv_HAVE_UT_UT_ID" = x"yes"; then
9642 cat >> confdefs.h <<\EOF
9643 #define HAVE_UT_UT_ID 1
9648 echo $ac_n "checking for ut_host in utmp""... $ac_c" 1>&6
9649 echo "configure:9650: checking for ut_host in utmp" >&5
9650 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_HOST'+set}'`\" = set"; then
9651 echo $ac_n "(cached) $ac_c" 1>&6
9652 else
9654 cat > conftest.$ac_ext <<EOF
9655 #line 9656 "configure"
9656 #include "confdefs.h"
9657 #include <sys/types.h>
9658 #include <utmp.h>
9659 int main() {
9660 struct utmp ut; ut.ut_host[0] = 'a';
9661 ; return 0; }
9663 if { (eval echo configure:9664: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9664 rm -rf conftest*
9665 samba_cv_HAVE_UT_UT_HOST=yes
9666 else
9667 echo "configure: failed program was:" >&5
9668 cat conftest.$ac_ext >&5
9669 rm -rf conftest*
9670 samba_cv_HAVE_UT_UT_HOST=no
9672 rm -f conftest*
9675 echo "$ac_t""$samba_cv_HAVE_UT_UT_HOST" 1>&6
9676 if test x"$samba_cv_HAVE_UT_UT_HOST" = x"yes"; then
9677 cat >> confdefs.h <<\EOF
9678 #define HAVE_UT_UT_HOST 1
9683 echo $ac_n "checking for ut_time in utmp""... $ac_c" 1>&6
9684 echo "configure:9685: checking for ut_time in utmp" >&5
9685 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TIME'+set}'`\" = set"; then
9686 echo $ac_n "(cached) $ac_c" 1>&6
9687 else
9689 cat > conftest.$ac_ext <<EOF
9690 #line 9691 "configure"
9691 #include "confdefs.h"
9692 #include <sys/types.h>
9693 #include <utmp.h>
9694 int main() {
9695 struct utmp ut; time_t t; ut.ut_time = t;
9696 ; return 0; }
9698 if { (eval echo configure:9699: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9699 rm -rf conftest*
9700 samba_cv_HAVE_UT_UT_TIME=yes
9701 else
9702 echo "configure: failed program was:" >&5
9703 cat conftest.$ac_ext >&5
9704 rm -rf conftest*
9705 samba_cv_HAVE_UT_UT_TIME=no
9707 rm -f conftest*
9710 echo "$ac_t""$samba_cv_HAVE_UT_UT_TIME" 1>&6
9711 if test x"$samba_cv_HAVE_UT_UT_TIME" = x"yes"; then
9712 cat >> confdefs.h <<\EOF
9713 #define HAVE_UT_UT_TIME 1
9718 echo $ac_n "checking for ut_tv in utmp""... $ac_c" 1>&6
9719 echo "configure:9720: checking for ut_tv in utmp" >&5
9720 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TV'+set}'`\" = set"; then
9721 echo $ac_n "(cached) $ac_c" 1>&6
9722 else
9724 cat > conftest.$ac_ext <<EOF
9725 #line 9726 "configure"
9726 #include "confdefs.h"
9727 #include <sys/types.h>
9728 #include <utmp.h>
9729 int main() {
9730 struct utmp ut; struct timeval tv; ut.ut_tv = tv;
9731 ; return 0; }
9733 if { (eval echo configure:9734: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9734 rm -rf conftest*
9735 samba_cv_HAVE_UT_UT_TV=yes
9736 else
9737 echo "configure: failed program was:" >&5
9738 cat conftest.$ac_ext >&5
9739 rm -rf conftest*
9740 samba_cv_HAVE_UT_UT_TV=no
9742 rm -f conftest*
9745 echo "$ac_t""$samba_cv_HAVE_UT_UT_TV" 1>&6
9746 if test x"$samba_cv_HAVE_UT_UT_TV" = x"yes"; then
9747 cat >> confdefs.h <<\EOF
9748 #define HAVE_UT_UT_TV 1
9753 echo $ac_n "checking for ut_type in utmp""... $ac_c" 1>&6
9754 echo "configure:9755: checking for ut_type in utmp" >&5
9755 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TYPE'+set}'`\" = set"; then
9756 echo $ac_n "(cached) $ac_c" 1>&6
9757 else
9759 cat > conftest.$ac_ext <<EOF
9760 #line 9761 "configure"
9761 #include "confdefs.h"
9762 #include <sys/types.h>
9763 #include <utmp.h>
9764 int main() {
9765 struct utmp ut; ut.ut_type = 0;
9766 ; return 0; }
9768 if { (eval echo configure:9769: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9769 rm -rf conftest*
9770 samba_cv_HAVE_UT_UT_TYPE=yes
9771 else
9772 echo "configure: failed program was:" >&5
9773 cat conftest.$ac_ext >&5
9774 rm -rf conftest*
9775 samba_cv_HAVE_UT_UT_TYPE=no
9777 rm -f conftest*
9780 echo "$ac_t""$samba_cv_HAVE_UT_UT_TYPE" 1>&6
9781 if test x"$samba_cv_HAVE_UT_UT_TYPE" = x"yes"; then
9782 cat >> confdefs.h <<\EOF
9783 #define HAVE_UT_UT_TYPE 1
9788 echo $ac_n "checking for ut_pid in utmp""... $ac_c" 1>&6
9789 echo "configure:9790: checking for ut_pid in utmp" >&5
9790 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_PID'+set}'`\" = set"; then
9791 echo $ac_n "(cached) $ac_c" 1>&6
9792 else
9794 cat > conftest.$ac_ext <<EOF
9795 #line 9796 "configure"
9796 #include "confdefs.h"
9797 #include <sys/types.h>
9798 #include <utmp.h>
9799 int main() {
9800 struct utmp ut; ut.ut_pid = 0;
9801 ; return 0; }
9803 if { (eval echo configure:9804: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9804 rm -rf conftest*
9805 samba_cv_HAVE_UT_UT_PID=yes
9806 else
9807 echo "configure: failed program was:" >&5
9808 cat conftest.$ac_ext >&5
9809 rm -rf conftest*
9810 samba_cv_HAVE_UT_UT_PID=no
9812 rm -f conftest*
9815 echo "$ac_t""$samba_cv_HAVE_UT_UT_PID" 1>&6
9816 if test x"$samba_cv_HAVE_UT_UT_PID" = x"yes"; then
9817 cat >> confdefs.h <<\EOF
9818 #define HAVE_UT_UT_PID 1
9823 echo $ac_n "checking for ut_exit in utmp""... $ac_c" 1>&6
9824 echo "configure:9825: checking for ut_exit in utmp" >&5
9825 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_EXIT'+set}'`\" = set"; then
9826 echo $ac_n "(cached) $ac_c" 1>&6
9827 else
9829 cat > conftest.$ac_ext <<EOF
9830 #line 9831 "configure"
9831 #include "confdefs.h"
9832 #include <sys/types.h>
9833 #include <utmp.h>
9834 int main() {
9835 struct utmp ut; ut.ut_exit.e_exit = 0;
9836 ; return 0; }
9838 if { (eval echo configure:9839: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9839 rm -rf conftest*
9840 samba_cv_HAVE_UT_UT_EXIT=yes
9841 else
9842 echo "configure: failed program was:" >&5
9843 cat conftest.$ac_ext >&5
9844 rm -rf conftest*
9845 samba_cv_HAVE_UT_UT_EXIT=no
9847 rm -f conftest*
9850 echo "$ac_t""$samba_cv_HAVE_UT_UT_EXIT" 1>&6
9851 if test x"$samba_cv_HAVE_UT_UT_EXIT" = x"yes"; then
9852 cat >> confdefs.h <<\EOF
9853 #define HAVE_UT_UT_EXIT 1
9858 echo $ac_n "checking for ut_addr in utmp""... $ac_c" 1>&6
9859 echo "configure:9860: checking for ut_addr in utmp" >&5
9860 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ADDR'+set}'`\" = set"; then
9861 echo $ac_n "(cached) $ac_c" 1>&6
9862 else
9864 cat > conftest.$ac_ext <<EOF
9865 #line 9866 "configure"
9866 #include "confdefs.h"
9867 #include <sys/types.h>
9868 #include <utmp.h>
9869 int main() {
9870 struct utmp ut; ut.ut_addr = 0;
9871 ; return 0; }
9873 if { (eval echo configure:9874: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9874 rm -rf conftest*
9875 samba_cv_HAVE_UT_UT_ADDR=yes
9876 else
9877 echo "configure: failed program was:" >&5
9878 cat conftest.$ac_ext >&5
9879 rm -rf conftest*
9880 samba_cv_HAVE_UT_UT_ADDR=no
9882 rm -f conftest*
9885 echo "$ac_t""$samba_cv_HAVE_UT_UT_ADDR" 1>&6
9886 if test x"$samba_cv_HAVE_UT_UT_ADDR" = x"yes"; then
9887 cat >> confdefs.h <<\EOF
9888 #define HAVE_UT_UT_ADDR 1
9893 if test x$ac_cv_func_pututline = xyes ; then
9894 echo $ac_n "checking whether pututline returns pointer""... $ac_c" 1>&6
9895 echo "configure:9896: checking whether pututline returns pointer" >&5
9896 if eval "test \"`echo '$''{'samba_cv_PUTUTLINE_RETURNS_UTMP'+set}'`\" = set"; then
9897 echo $ac_n "(cached) $ac_c" 1>&6
9898 else
9900 cat > conftest.$ac_ext <<EOF
9901 #line 9902 "configure"
9902 #include "confdefs.h"
9903 #include <sys/types.h>
9904 #include <utmp.h>
9905 int main() {
9906 struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
9907 ; return 0; }
9909 if { (eval echo configure:9910: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9910 rm -rf conftest*
9911 samba_cv_PUTUTLINE_RETURNS_UTMP=yes
9912 else
9913 echo "configure: failed program was:" >&5
9914 cat conftest.$ac_ext >&5
9915 rm -rf conftest*
9916 samba_cv_PUTUTLINE_RETURNS_UTMP=no
9918 rm -f conftest*
9921 echo "$ac_t""$samba_cv_PUTUTLINE_RETURNS_UTMP" 1>&6
9922 if test x"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x"yes"; then
9923 cat >> confdefs.h <<\EOF
9924 #define PUTUTLINE_RETURNS_UTMP 1
9930 echo $ac_n "checking for ut_syslen in utmpx""... $ac_c" 1>&6
9931 echo "configure:9932: checking for ut_syslen in utmpx" >&5
9932 if eval "test \"`echo '$''{'samba_cv_HAVE_UX_UT_SYSLEN'+set}'`\" = set"; then
9933 echo $ac_n "(cached) $ac_c" 1>&6
9934 else
9936 cat > conftest.$ac_ext <<EOF
9937 #line 9938 "configure"
9938 #include "confdefs.h"
9939 #include <sys/types.h>
9940 #include <utmpx.h>
9941 int main() {
9942 struct utmpx ux; ux.ut_syslen = 0;
9943 ; return 0; }
9945 if { (eval echo configure:9946: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9946 rm -rf conftest*
9947 samba_cv_HAVE_UX_UT_SYSLEN=yes
9948 else
9949 echo "configure: failed program was:" >&5
9950 cat conftest.$ac_ext >&5
9951 rm -rf conftest*
9952 samba_cv_HAVE_UX_UT_SYSLEN=no
9954 rm -f conftest*
9957 echo "$ac_t""$samba_cv_HAVE_UX_UT_SYSLEN" 1>&6
9958 if test x"$samba_cv_HAVE_UX_UT_SYSLEN" = x"yes"; then
9959 cat >> confdefs.h <<\EOF
9960 #define HAVE_UX_UT_SYSLEN 1
9965 echo $ac_n "checking for Linux kernel oplocks""... $ac_c" 1>&6
9966 echo "configure:9967: checking for Linux kernel oplocks" >&5
9967 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_LINUX'+set}'`\" = set"; then
9968 echo $ac_n "(cached) $ac_c" 1>&6
9969 else
9971 if test "$cross_compiling" = yes; then
9972 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=cross
9973 else
9974 cat > conftest.$ac_ext <<EOF
9975 #line 9976 "configure"
9976 #include "confdefs.h"
9978 #include <sys/types.h>
9979 #include <fcntl.h>
9980 #ifndef F_GETLEASE
9981 #define F_GETLEASE 1025
9982 #endif
9983 main() {
9984 int fd = open("/dev/null", O_RDONLY);
9985 return fcntl(fd, F_GETLEASE, 0) == -1;
9989 if { (eval echo configure:9990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9990 then
9991 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=yes
9992 else
9993 echo "configure: failed program was:" >&5
9994 cat conftest.$ac_ext >&5
9995 rm -fr conftest*
9996 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=no
9998 rm -fr conftest*
10003 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" 1>&6
10004 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x"yes"; then
10005 cat >> confdefs.h <<\EOF
10006 #define HAVE_KERNEL_OPLOCKS_LINUX 1
10011 echo $ac_n "checking for kernel change notify support""... $ac_c" 1>&6
10012 echo "configure:10013: checking for kernel change notify support" >&5
10013 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_CHANGE_NOTIFY'+set}'`\" = set"; then
10014 echo $ac_n "(cached) $ac_c" 1>&6
10015 else
10017 if test "$cross_compiling" = yes; then
10018 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=cross
10019 else
10020 cat > conftest.$ac_ext <<EOF
10021 #line 10022 "configure"
10022 #include "confdefs.h"
10024 #include <sys/types.h>
10025 #include <fcntl.h>
10026 #include <signal.h>
10027 #ifndef F_NOTIFY
10028 #define F_NOTIFY 1026
10029 #endif
10030 main() {
10031 exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0);
10035 if { (eval echo configure:10036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10036 then
10037 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=yes
10038 else
10039 echo "configure: failed program was:" >&5
10040 cat conftest.$ac_ext >&5
10041 rm -fr conftest*
10042 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=no
10044 rm -fr conftest*
10049 echo "$ac_t""$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" 1>&6
10050 if test x"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x"yes"; then
10051 cat >> confdefs.h <<\EOF
10052 #define HAVE_KERNEL_CHANGE_NOTIFY 1
10057 echo $ac_n "checking for kernel share modes""... $ac_c" 1>&6
10058 echo "configure:10059: checking for kernel share modes" >&5
10059 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_SHARE_MODES'+set}'`\" = set"; then
10060 echo $ac_n "(cached) $ac_c" 1>&6
10061 else
10063 if test "$cross_compiling" = yes; then
10064 samba_cv_HAVE_KERNEL_SHARE_MODES=cross
10065 else
10066 cat > conftest.$ac_ext <<EOF
10067 #line 10068 "configure"
10068 #include "confdefs.h"
10070 #include <sys/types.h>
10071 #include <fcntl.h>
10072 #include <signal.h>
10073 #include <sys/file.h>
10074 #ifndef LOCK_MAND
10075 #define LOCK_MAND 32
10076 #define LOCK_READ 64
10077 #endif
10078 main() {
10079 exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
10083 if { (eval echo configure:10084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10084 then
10085 samba_cv_HAVE_KERNEL_SHARE_MODES=yes
10086 else
10087 echo "configure: failed program was:" >&5
10088 cat conftest.$ac_ext >&5
10089 rm -fr conftest*
10090 samba_cv_HAVE_KERNEL_SHARE_MODES=no
10092 rm -fr conftest*
10097 echo "$ac_t""$samba_cv_HAVE_KERNEL_SHARE_MODES" 1>&6
10098 if test x"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x"yes"; then
10099 cat >> confdefs.h <<\EOF
10100 #define HAVE_KERNEL_SHARE_MODES 1
10108 echo $ac_n "checking for IRIX kernel oplock type definitions""... $ac_c" 1>&6
10109 echo "configure:10110: checking for IRIX kernel oplock type definitions" >&5
10110 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_IRIX'+set}'`\" = set"; then
10111 echo $ac_n "(cached) $ac_c" 1>&6
10112 else
10114 cat > conftest.$ac_ext <<EOF
10115 #line 10116 "configure"
10116 #include "confdefs.h"
10117 #include <sys/types.h>
10118 #include <fcntl.h>
10119 int main() {
10120 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
10121 ; return 0; }
10123 if { (eval echo configure:10124: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10124 rm -rf conftest*
10125 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=yes
10126 else
10127 echo "configure: failed program was:" >&5
10128 cat conftest.$ac_ext >&5
10129 rm -rf conftest*
10130 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=no
10132 rm -f conftest*
10135 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" 1>&6
10136 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x"yes"; then
10137 cat >> confdefs.h <<\EOF
10138 #define HAVE_KERNEL_OPLOCKS_IRIX 1
10143 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
10144 echo "configure:10145: checking for irix specific capabilities" >&5
10145 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
10146 echo $ac_n "(cached) $ac_c" 1>&6
10147 else
10149 if test "$cross_compiling" = yes; then
10150 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=cross
10151 else
10152 cat > conftest.$ac_ext <<EOF
10153 #line 10154 "configure"
10154 #include "confdefs.h"
10155 #include <sys/types.h>
10156 #include <sys/capability.h>
10157 main() {
10158 cap_t cap;
10159 if ((cap = cap_get_proc()) == NULL)
10160 exit(1);
10161 cap->cap_effective |= CAP_NETWORK_MGT;
10162 cap->cap_inheritable |= CAP_NETWORK_MGT;
10163 cap_set_proc(cap);
10164 exit(0);
10168 if { (eval echo configure:10169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10169 then
10170 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=yes
10171 else
10172 echo "configure: failed program was:" >&5
10173 cat conftest.$ac_ext >&5
10174 rm -fr conftest*
10175 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=no
10177 rm -fr conftest*
10182 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
10183 if test x"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x"yes"; then
10184 cat >> confdefs.h <<\EOF
10185 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
10191 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
10192 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
10195 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10196 echo "configure:10197: checking for int16 typedef included by rpc/rpc.h" >&5
10197 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10198 echo $ac_n "(cached) $ac_c" 1>&6
10199 else
10201 cat > conftest.$ac_ext <<EOF
10202 #line 10203 "configure"
10203 #include "confdefs.h"
10204 #include <sys/types.h>
10205 #if defined(HAVE_RPC_RPC_H)
10206 #include <rpc/rpc.h>
10207 #endif
10208 int main() {
10209 int16 testvar;
10210 ; return 0; }
10212 if { (eval echo configure:10213: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10213 rm -rf conftest*
10214 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=yes
10215 else
10216 echo "configure: failed program was:" >&5
10217 cat conftest.$ac_ext >&5
10218 rm -rf conftest*
10219 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=no
10221 rm -f conftest*
10224 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
10225 if test x"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x"yes"; then
10226 cat >> confdefs.h <<\EOF
10227 #define HAVE_INT16_FROM_RPC_RPC_H 1
10232 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10233 echo "configure:10234: checking for uint16 typedef included by rpc/rpc.h" >&5
10234 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10235 echo $ac_n "(cached) $ac_c" 1>&6
10236 else
10238 cat > conftest.$ac_ext <<EOF
10239 #line 10240 "configure"
10240 #include "confdefs.h"
10241 #include <sys/types.h>
10242 #if defined(HAVE_RPC_RPC_H)
10243 #include <rpc/rpc.h>
10244 #endif
10245 int main() {
10246 uint16 testvar;
10247 ; return 0; }
10249 if { (eval echo configure:10250: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10250 rm -rf conftest*
10251 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=yes
10252 else
10253 echo "configure: failed program was:" >&5
10254 cat conftest.$ac_ext >&5
10255 rm -rf conftest*
10256 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=no
10258 rm -f conftest*
10261 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
10262 if test x"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x"yes"; then
10263 cat >> confdefs.h <<\EOF
10264 #define HAVE_UINT16_FROM_RPC_RPC_H 1
10269 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10270 echo "configure:10271: checking for int32 typedef included by rpc/rpc.h" >&5
10271 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10272 echo $ac_n "(cached) $ac_c" 1>&6
10273 else
10275 cat > conftest.$ac_ext <<EOF
10276 #line 10277 "configure"
10277 #include "confdefs.h"
10278 #include <sys/types.h>
10279 #if defined(HAVE_RPC_RPC_H)
10280 #include <rpc/rpc.h>
10281 #endif
10282 int main() {
10283 int32 testvar;
10284 ; return 0; }
10286 if { (eval echo configure:10287: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10287 rm -rf conftest*
10288 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=yes
10289 else
10290 echo "configure: failed program was:" >&5
10291 cat conftest.$ac_ext >&5
10292 rm -rf conftest*
10293 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=no
10295 rm -f conftest*
10298 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
10299 if test x"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x"yes"; then
10300 cat >> confdefs.h <<\EOF
10301 #define HAVE_INT32_FROM_RPC_RPC_H 1
10306 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10307 echo "configure:10308: checking for uint32 typedef included by rpc/rpc.h" >&5
10308 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10309 echo $ac_n "(cached) $ac_c" 1>&6
10310 else
10312 cat > conftest.$ac_ext <<EOF
10313 #line 10314 "configure"
10314 #include "confdefs.h"
10315 #include <sys/types.h>
10316 #if defined(HAVE_RPC_RPC_H)
10317 #include <rpc/rpc.h>
10318 #endif
10319 int main() {
10320 uint32 testvar;
10321 ; return 0; }
10323 if { (eval echo configure:10324: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10324 rm -rf conftest*
10325 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=yes
10326 else
10327 echo "configure: failed program was:" >&5
10328 cat conftest.$ac_ext >&5
10329 rm -rf conftest*
10330 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=no
10332 rm -f conftest*
10335 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
10336 if test x"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x"yes"; then
10337 cat >> confdefs.h <<\EOF
10338 #define HAVE_UINT32_FROM_RPC_RPC_H 1
10344 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
10345 echo "configure:10346: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
10346 if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
10347 echo $ac_n "(cached) $ac_c" 1>&6
10348 else
10350 cat > conftest.$ac_ext <<EOF
10351 #line 10352 "configure"
10352 #include "confdefs.h"
10353 #include <sys/types.h>
10354 #ifdef HAVE_SYS_SECURITY_H
10355 #include <sys/security.h>
10356 #include <prot.h>
10357 #endif /* HAVE_SYS_SECURITY_H */
10358 #if defined(HAVE_RPC_RPC_H)
10359 #include <rpc/rpc.h>
10360 #endif
10361 int main() {
10362 int testvar;
10363 ; return 0; }
10365 if { (eval echo configure:10366: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10366 rm -rf conftest*
10367 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=no
10368 else
10369 echo "configure: failed program was:" >&5
10370 cat conftest.$ac_ext >&5
10371 rm -rf conftest*
10372 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=yes
10374 rm -f conftest*
10377 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
10378 if test x"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x"yes"; then
10379 cat >> confdefs.h <<\EOF
10380 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
10385 echo $ac_n "checking for test routines""... $ac_c" 1>&6
10386 echo "configure:10387: checking for test routines" >&5
10387 if test "$cross_compiling" = yes; then
10388 echo "configure: warning: cannot run when cross-compiling" 1>&2
10389 else
10390 cat > conftest.$ac_ext <<EOF
10391 #line 10392 "configure"
10392 #include "confdefs.h"
10393 #include "${srcdir-.}/tests/trivial.c"
10395 if { (eval echo configure:10396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10396 then
10397 echo "$ac_t""yes" 1>&6
10398 else
10399 echo "configure: failed program was:" >&5
10400 cat conftest.$ac_ext >&5
10401 rm -fr conftest*
10402 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
10404 rm -fr conftest*
10408 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
10409 echo "configure:10410: checking for ftruncate extend" >&5
10410 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
10411 echo $ac_n "(cached) $ac_c" 1>&6
10412 else
10414 if test "$cross_compiling" = yes; then
10415 samba_cv_HAVE_FTRUNCATE_EXTEND=cross
10416 else
10417 cat > conftest.$ac_ext <<EOF
10418 #line 10419 "configure"
10419 #include "confdefs.h"
10420 #include "${srcdir-.}/tests/ftruncate.c"
10422 if { (eval echo configure:10423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10423 then
10424 samba_cv_HAVE_FTRUNCATE_EXTEND=yes
10425 else
10426 echo "configure: failed program was:" >&5
10427 cat conftest.$ac_ext >&5
10428 rm -fr conftest*
10429 samba_cv_HAVE_FTRUNCATE_EXTEND=no
10431 rm -fr conftest*
10436 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
10437 if test x"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x"yes"; then
10438 cat >> confdefs.h <<\EOF
10439 #define HAVE_FTRUNCATE_EXTEND 1
10444 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
10445 echo "configure:10446: checking for broken getgroups" >&5
10446 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
10447 echo $ac_n "(cached) $ac_c" 1>&6
10448 else
10450 if test "$cross_compiling" = yes; then
10451 samba_cv_HAVE_BROKEN_GETGROUPS=cross
10452 else
10453 cat > conftest.$ac_ext <<EOF
10454 #line 10455 "configure"
10455 #include "confdefs.h"
10456 #include "${srcdir-.}/tests/getgroups.c"
10458 if { (eval echo configure:10459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10459 then
10460 samba_cv_HAVE_BROKEN_GETGROUPS=yes
10461 else
10462 echo "configure: failed program was:" >&5
10463 cat conftest.$ac_ext >&5
10464 rm -fr conftest*
10465 samba_cv_HAVE_BROKEN_GETGROUPS=no
10467 rm -fr conftest*
10472 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
10473 if test x"$samba_cv_HAVE_BROKEN_GETGROUPS" = x"yes"; then
10474 cat >> confdefs.h <<\EOF
10475 #define HAVE_BROKEN_GETGROUPS 1
10480 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
10481 echo "configure:10482: checking whether getpass should be replaced" >&5
10482 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
10483 echo $ac_n "(cached) $ac_c" 1>&6
10484 else
10486 SAVE_CPPFLAGS="$CPPFLAGS"
10487 CPPFLAGS="$CPPFLAGS -I${srcdir-.}/ -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/smbwrapper"
10488 cat > conftest.$ac_ext <<EOF
10489 #line 10490 "configure"
10490 #include "confdefs.h"
10492 #define REPLACE_GETPASS 1
10493 #define NO_CONFIG_H 1
10494 #define main dont_declare_main
10495 #include "${srcdir-.}/lib/getsmbpass.c"
10496 #undef main
10498 int main() {
10500 ; return 0; }
10502 if { (eval echo configure:10503: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10503 rm -rf conftest*
10504 samba_cv_REPLACE_GETPASS=yes
10505 else
10506 echo "configure: failed program was:" >&5
10507 cat conftest.$ac_ext >&5
10508 rm -rf conftest*
10509 samba_cv_REPLACE_GETPASS=no
10511 rm -f conftest*
10512 CPPFLAGS="$SAVE_CPPFLAGS"
10516 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
10517 if test x"$samba_cv_REPLACE_GETPASS" = x"yes"; then
10518 cat >> confdefs.h <<\EOF
10519 #define REPLACE_GETPASS 1
10524 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
10525 echo "configure:10526: checking for broken inet_ntoa" >&5
10526 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
10527 echo $ac_n "(cached) $ac_c" 1>&6
10528 else
10530 if test "$cross_compiling" = yes; then
10531 samba_cv_REPLACE_INET_NTOA=cross
10532 else
10533 cat > conftest.$ac_ext <<EOF
10534 #line 10535 "configure"
10535 #include "confdefs.h"
10537 #include <stdio.h>
10538 #include <sys/types.h>
10539 #include <netinet/in.h>
10540 #ifdef HAVE_ARPA_INET_H
10541 #include <arpa/inet.h>
10542 #endif
10543 main() { struct in_addr ip; ip.s_addr = 0x12345678;
10544 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
10545 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
10546 exit(1);}
10548 if { (eval echo configure:10549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10549 then
10550 samba_cv_REPLACE_INET_NTOA=yes
10551 else
10552 echo "configure: failed program was:" >&5
10553 cat conftest.$ac_ext >&5
10554 rm -fr conftest*
10555 samba_cv_REPLACE_INET_NTOA=no
10557 rm -fr conftest*
10562 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
10563 if test x"$samba_cv_REPLACE_INET_NTOA" = x"yes"; then
10564 cat >> confdefs.h <<\EOF
10565 #define REPLACE_INET_NTOA 1
10570 echo $ac_n "checking for secure mkstemp""... $ac_c" 1>&6
10571 echo "configure:10572: checking for secure mkstemp" >&5
10572 if eval "test \"`echo '$''{'samba_cv_HAVE_SECURE_MKSTEMP'+set}'`\" = set"; then
10573 echo $ac_n "(cached) $ac_c" 1>&6
10574 else
10576 if test "$cross_compiling" = yes; then
10577 samba_cv_HAVE_SECURE_MKSTEMP=cross
10578 else
10579 cat > conftest.$ac_ext <<EOF
10580 #line 10581 "configure"
10581 #include "confdefs.h"
10582 #include <stdlib.h>
10583 #include <sys/types.h>
10584 #include <sys/stat.h>
10585 #include <unistd.h>
10586 main() {
10587 struct stat st;
10588 char tpl[20]="/tmp/test.XXXXXX";
10589 int fd = mkstemp(tpl);
10590 if (fd == -1) exit(1);
10591 unlink(tpl);
10592 if (fstat(fd, &st) != 0) exit(1);
10593 if ((st.st_mode & 0777) != 0600) exit(1);
10594 exit(0);
10597 if { (eval echo configure:10598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10598 then
10599 samba_cv_HAVE_SECURE_MKSTEMP=yes
10600 else
10601 echo "configure: failed program was:" >&5
10602 cat conftest.$ac_ext >&5
10603 rm -fr conftest*
10604 samba_cv_HAVE_SECURE_MKSTEMP=no
10606 rm -fr conftest*
10611 echo "$ac_t""$samba_cv_HAVE_SECURE_MKSTEMP" 1>&6
10612 if test x"$samba_cv_HAVE_SECURE_MKSTEMP" = x"yes"; then
10613 cat >> confdefs.h <<\EOF
10614 #define HAVE_SECURE_MKSTEMP 1
10619 echo $ac_n "checking for sysconf(_SC_NGROUPS_MAX)""... $ac_c" 1>&6
10620 echo "configure:10621: checking for sysconf(_SC_NGROUPS_MAX)" >&5
10621 if eval "test \"`echo '$''{'samba_cv_SYSCONF_SC_NGROUPS_MAX'+set}'`\" = set"; then
10622 echo $ac_n "(cached) $ac_c" 1>&6
10623 else
10625 if test "$cross_compiling" = yes; then
10626 samba_cv_SYSCONF_SC_NGROUPS_MAX=cross
10627 else
10628 cat > conftest.$ac_ext <<EOF
10629 #line 10630 "configure"
10630 #include "confdefs.h"
10631 #include <unistd.h>
10632 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
10634 if { (eval echo configure:10635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10635 then
10636 samba_cv_SYSCONF_SC_NGROUPS_MAX=yes
10637 else
10638 echo "configure: failed program was:" >&5
10639 cat conftest.$ac_ext >&5
10640 rm -fr conftest*
10641 samba_cv_SYSCONF_SC_NGROUPS_MAX=no
10643 rm -fr conftest*
10648 echo "$ac_t""$samba_cv_SYSCONF_SC_NGROUPS_MAX" 1>&6
10649 if test x"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x"yes"; then
10650 cat >> confdefs.h <<\EOF
10651 #define SYSCONF_SC_NGROUPS_MAX 1
10656 echo $ac_n "checking for root""... $ac_c" 1>&6
10657 echo "configure:10658: checking for root" >&5
10658 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
10659 echo $ac_n "(cached) $ac_c" 1>&6
10660 else
10662 if test "$cross_compiling" = yes; then
10663 samba_cv_HAVE_ROOT=cross
10664 else
10665 cat > conftest.$ac_ext <<EOF
10666 #line 10667 "configure"
10667 #include "confdefs.h"
10668 main() { exit(getuid() != 0); }
10670 if { (eval echo configure:10671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10671 then
10672 samba_cv_HAVE_ROOT=yes
10673 else
10674 echo "configure: failed program was:" >&5
10675 cat conftest.$ac_ext >&5
10676 rm -fr conftest*
10677 samba_cv_HAVE_ROOT=no
10679 rm -fr conftest*
10684 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
10685 if test x"$samba_cv_HAVE_ROOT" = x"yes"; then
10686 cat >> confdefs.h <<\EOF
10687 #define HAVE_ROOT 1
10690 else
10691 echo "configure: warning: running as non-root will disable some tests" 1>&2
10694 ##################
10695 # look for a method of finding the list of network interfaces
10696 iface=no;
10697 echo $ac_n "checking for iface AIX""... $ac_c" 1>&6
10698 echo "configure:10699: checking for iface AIX" >&5
10699 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_AIX'+set}'`\" = set"; then
10700 echo $ac_n "(cached) $ac_c" 1>&6
10701 else
10703 if test "$cross_compiling" = yes; then
10704 samba_cv_HAVE_IFACE_AIX=cross
10705 else
10706 cat > conftest.$ac_ext <<EOF
10707 #line 10708 "configure"
10708 #include "confdefs.h"
10710 #define HAVE_IFACE_AIX 1
10711 #define AUTOCONF_TEST 1
10712 #include "confdefs.h"
10713 #include "${srcdir-.}/lib/interfaces.c"
10715 if { (eval echo configure:10716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10716 then
10717 samba_cv_HAVE_IFACE_AIX=yes
10718 else
10719 echo "configure: failed program was:" >&5
10720 cat conftest.$ac_ext >&5
10721 rm -fr conftest*
10722 samba_cv_HAVE_IFACE_AIX=no
10724 rm -fr conftest*
10729 echo "$ac_t""$samba_cv_HAVE_IFACE_AIX" 1>&6
10730 if test x"$samba_cv_HAVE_IFACE_AIX" = x"yes"; then
10731 iface=yes;cat >> confdefs.h <<\EOF
10732 #define HAVE_IFACE_AIX 1
10737 if test $iface = no; then
10738 echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6
10739 echo "configure:10740: checking for iface ifconf" >&5
10740 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFCONF'+set}'`\" = set"; then
10741 echo $ac_n "(cached) $ac_c" 1>&6
10742 else
10744 if test "$cross_compiling" = yes; then
10745 samba_cv_HAVE_IFACE_IFCONF=cross
10746 else
10747 cat > conftest.$ac_ext <<EOF
10748 #line 10749 "configure"
10749 #include "confdefs.h"
10751 #define HAVE_IFACE_IFCONF 1
10752 #define AUTOCONF_TEST 1
10753 #include "confdefs.h"
10754 #include "${srcdir-.}/lib/interfaces.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_HAVE_IFACE_IFCONF=yes
10759 else
10760 echo "configure: failed program was:" >&5
10761 cat conftest.$ac_ext >&5
10762 rm -fr conftest*
10763 samba_cv_HAVE_IFACE_IFCONF=no
10765 rm -fr conftest*
10770 echo "$ac_t""$samba_cv_HAVE_IFACE_IFCONF" 1>&6
10771 if test x"$samba_cv_HAVE_IFACE_IFCONF" = x"yes"; then
10772 iface=yes;cat >> confdefs.h <<\EOF
10773 #define HAVE_IFACE_IFCONF 1
10779 if test $iface = no; then
10780 echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6
10781 echo "configure:10782: checking for iface ifreq" >&5
10782 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFREQ'+set}'`\" = set"; then
10783 echo $ac_n "(cached) $ac_c" 1>&6
10784 else
10786 if test "$cross_compiling" = yes; then
10787 samba_cv_HAVE_IFACE_IFREQ=cross
10788 else
10789 cat > conftest.$ac_ext <<EOF
10790 #line 10791 "configure"
10791 #include "confdefs.h"
10793 #define HAVE_IFACE_IFREQ 1
10794 #define AUTOCONF_TEST 1
10795 #include "confdefs.h"
10796 #include "${srcdir-.}/lib/interfaces.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_HAVE_IFACE_IFREQ=yes
10801 else
10802 echo "configure: failed program was:" >&5
10803 cat conftest.$ac_ext >&5
10804 rm -fr conftest*
10805 samba_cv_HAVE_IFACE_IFREQ=no
10807 rm -fr conftest*
10812 echo "$ac_t""$samba_cv_HAVE_IFACE_IFREQ" 1>&6
10813 if test x"$samba_cv_HAVE_IFACE_IFREQ" = x"yes"; then
10814 iface=yes;cat >> confdefs.h <<\EOF
10815 #define HAVE_IFACE_IFREQ 1
10822 ################################################
10823 # look for a method of setting the effective uid
10824 seteuid=no;
10825 if test $seteuid = no; then
10826 echo $ac_n "checking for setresuid""... $ac_c" 1>&6
10827 echo "configure:10828: checking for setresuid" >&5
10828 if eval "test \"`echo '$''{'samba_cv_USE_SETRESUID'+set}'`\" = set"; then
10829 echo $ac_n "(cached) $ac_c" 1>&6
10830 else
10832 if test "$cross_compiling" = yes; then
10833 samba_cv_USE_SETRESUID=cross
10834 else
10835 cat > conftest.$ac_ext <<EOF
10836 #line 10837 "configure"
10837 #include "confdefs.h"
10839 #define AUTOCONF_TEST 1
10840 #define USE_SETRESUID 1
10841 #include "confdefs.h"
10842 #include "${srcdir-.}/lib/util_sec.c"
10844 if { (eval echo configure:10845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10845 then
10846 samba_cv_USE_SETRESUID=yes
10847 else
10848 echo "configure: failed program was:" >&5
10849 cat conftest.$ac_ext >&5
10850 rm -fr conftest*
10851 samba_cv_USE_SETRESUID=no
10853 rm -fr conftest*
10858 echo "$ac_t""$samba_cv_USE_SETRESUID" 1>&6
10859 if test x"$samba_cv_USE_SETRESUID" = x"yes"; then
10860 seteuid=yes;cat >> confdefs.h <<\EOF
10861 #define USE_SETRESUID 1
10868 if test $seteuid = no; then
10869 echo $ac_n "checking for setreuid""... $ac_c" 1>&6
10870 echo "configure:10871: checking for setreuid" >&5
10871 if eval "test \"`echo '$''{'samba_cv_USE_SETREUID'+set}'`\" = set"; then
10872 echo $ac_n "(cached) $ac_c" 1>&6
10873 else
10875 if test "$cross_compiling" = yes; then
10876 samba_cv_USE_SETREUID=cross
10877 else
10878 cat > conftest.$ac_ext <<EOF
10879 #line 10880 "configure"
10880 #include "confdefs.h"
10882 #define AUTOCONF_TEST 1
10883 #define USE_SETREUID 1
10884 #include "confdefs.h"
10885 #include "${srcdir-.}/lib/util_sec.c"
10887 if { (eval echo configure:10888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10888 then
10889 samba_cv_USE_SETREUID=yes
10890 else
10891 echo "configure: failed program was:" >&5
10892 cat conftest.$ac_ext >&5
10893 rm -fr conftest*
10894 samba_cv_USE_SETREUID=no
10896 rm -fr conftest*
10901 echo "$ac_t""$samba_cv_USE_SETREUID" 1>&6
10902 if test x"$samba_cv_USE_SETREUID" = x"yes"; then
10903 seteuid=yes;cat >> confdefs.h <<\EOF
10904 #define USE_SETREUID 1
10910 if test $seteuid = no; then
10911 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
10912 echo "configure:10913: checking for seteuid" >&5
10913 if eval "test \"`echo '$''{'samba_cv_USE_SETEUID'+set}'`\" = set"; then
10914 echo $ac_n "(cached) $ac_c" 1>&6
10915 else
10917 if test "$cross_compiling" = yes; then
10918 samba_cv_USE_SETEUID=cross
10919 else
10920 cat > conftest.$ac_ext <<EOF
10921 #line 10922 "configure"
10922 #include "confdefs.h"
10924 #define AUTOCONF_TEST 1
10925 #define USE_SETEUID 1
10926 #include "confdefs.h"
10927 #include "${srcdir-.}/lib/util_sec.c"
10929 if { (eval echo configure:10930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10930 then
10931 samba_cv_USE_SETEUID=yes
10932 else
10933 echo "configure: failed program was:" >&5
10934 cat conftest.$ac_ext >&5
10935 rm -fr conftest*
10936 samba_cv_USE_SETEUID=no
10938 rm -fr conftest*
10943 echo "$ac_t""$samba_cv_USE_SETEUID" 1>&6
10944 if test x"$samba_cv_USE_SETEUID" = x"yes"; then
10945 seteuid=yes;cat >> confdefs.h <<\EOF
10946 #define USE_SETEUID 1
10952 if test $seteuid = no; then
10953 echo $ac_n "checking for setuidx""... $ac_c" 1>&6
10954 echo "configure:10955: checking for setuidx" >&5
10955 if eval "test \"`echo '$''{'samba_cv_USE_SETUIDX'+set}'`\" = set"; then
10956 echo $ac_n "(cached) $ac_c" 1>&6
10957 else
10959 if test "$cross_compiling" = yes; then
10960 samba_cv_USE_SETUIDX=cross
10961 else
10962 cat > conftest.$ac_ext <<EOF
10963 #line 10964 "configure"
10964 #include "confdefs.h"
10966 #define AUTOCONF_TEST 1
10967 #define USE_SETUIDX 1
10968 #include "confdefs.h"
10969 #include "${srcdir-.}/lib/util_sec.c"
10971 if { (eval echo configure:10972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10972 then
10973 samba_cv_USE_SETUIDX=yes
10974 else
10975 echo "configure: failed program was:" >&5
10976 cat conftest.$ac_ext >&5
10977 rm -fr conftest*
10978 samba_cv_USE_SETUIDX=no
10980 rm -fr conftest*
10985 echo "$ac_t""$samba_cv_USE_SETUIDX" 1>&6
10986 if test x"$samba_cv_USE_SETUIDX" = x"yes"; then
10987 seteuid=yes;cat >> confdefs.h <<\EOF
10988 #define USE_SETUIDX 1
10995 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
10996 echo "configure:10997: checking for working mmap" >&5
10997 if eval "test \"`echo '$''{'samba_cv_HAVE_MMAP'+set}'`\" = set"; then
10998 echo $ac_n "(cached) $ac_c" 1>&6
10999 else
11001 if test "$cross_compiling" = yes; then
11002 samba_cv_HAVE_MMAP=cross
11003 else
11004 cat > conftest.$ac_ext <<EOF
11005 #line 11006 "configure"
11006 #include "confdefs.h"
11007 #include "${srcdir-.}/tests/shared_mmap.c"
11009 if { (eval echo configure:11010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11010 then
11011 samba_cv_HAVE_MMAP=yes
11012 else
11013 echo "configure: failed program was:" >&5
11014 cat conftest.$ac_ext >&5
11015 rm -fr conftest*
11016 samba_cv_HAVE_MMAP=no
11018 rm -fr conftest*
11023 echo "$ac_t""$samba_cv_HAVE_MMAP" 1>&6
11024 if test x"$samba_cv_HAVE_MMAP" = x"yes"; then
11025 cat >> confdefs.h <<\EOF
11026 #define HAVE_MMAP 1
11031 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
11032 echo "configure:11033: checking for ftruncate needs root" >&5
11033 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
11034 echo $ac_n "(cached) $ac_c" 1>&6
11035 else
11037 if test "$cross_compiling" = yes; then
11038 samba_cv_FTRUNCATE_NEEDS_ROOT=cross
11039 else
11040 cat > conftest.$ac_ext <<EOF
11041 #line 11042 "configure"
11042 #include "confdefs.h"
11043 #include "${srcdir-.}/tests/ftruncroot.c"
11045 if { (eval echo configure:11046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11046 then
11047 samba_cv_FTRUNCATE_NEEDS_ROOT=yes
11048 else
11049 echo "configure: failed program was:" >&5
11050 cat conftest.$ac_ext >&5
11051 rm -fr conftest*
11052 samba_cv_FTRUNCATE_NEEDS_ROOT=no
11054 rm -fr conftest*
11059 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
11060 if test x"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x"yes"; then
11061 cat >> confdefs.h <<\EOF
11062 #define FTRUNCATE_NEEDS_ROOT 1
11067 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
11068 echo "configure:11069: checking for fcntl locking" >&5
11069 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
11070 echo $ac_n "(cached) $ac_c" 1>&6
11071 else
11073 if test "$cross_compiling" = yes; then
11074 samba_cv_HAVE_FCNTL_LOCK=cross
11075 else
11076 cat > conftest.$ac_ext <<EOF
11077 #line 11078 "configure"
11078 #include "confdefs.h"
11079 #include "${srcdir-.}/tests/fcntl_lock.c"
11081 if { (eval echo configure:11082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11082 then
11083 samba_cv_HAVE_FCNTL_LOCK=yes
11084 else
11085 echo "configure: failed program was:" >&5
11086 cat conftest.$ac_ext >&5
11087 rm -fr conftest*
11088 samba_cv_HAVE_FCNTL_LOCK=no
11090 rm -fr conftest*
11095 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
11096 if test x"$samba_cv_HAVE_FCNTL_LOCK" = x"yes"; then
11097 cat >> confdefs.h <<\EOF
11098 #define HAVE_FCNTL_LOCK 1
11103 echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6
11104 echo "configure:11105: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
11105 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_FCNTL64_LOCKS'+set}'`\" = set"; then
11106 echo $ac_n "(cached) $ac_c" 1>&6
11107 else
11109 if test "$cross_compiling" = yes; then
11110 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=cross
11111 else
11112 cat > conftest.$ac_ext <<EOF
11113 #line 11114 "configure"
11114 #include "confdefs.h"
11115 #include "${srcdir-.}/tests/fcntl_lock64.c"
11117 if { (eval echo configure:11118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11118 then
11119 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=yes
11120 else
11121 echo "configure: failed program was:" >&5
11122 cat conftest.$ac_ext >&5
11123 rm -fr conftest*
11124 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=no
11126 rm -fr conftest*
11131 echo "$ac_t""$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" 1>&6
11132 if test x"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x"yes"; then
11133 cat >> confdefs.h <<\EOF
11134 #define HAVE_BROKEN_FCNTL64_LOCKS 1
11138 else
11141 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
11142 echo "configure:11143: checking for 64 bit fcntl locking" >&5
11143 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
11144 echo $ac_n "(cached) $ac_c" 1>&6
11145 else
11147 if test "$cross_compiling" = yes; then
11148 samba_cv_HAVE_STRUCT_FLOCK64=cross
11149 else
11150 cat > conftest.$ac_ext <<EOF
11151 #line 11152 "configure"
11152 #include "confdefs.h"
11154 #if defined(HAVE_UNISTD_H)
11155 #include <unistd.h>
11156 #endif
11157 #include <stdio.h>
11158 #include <stdlib.h>
11160 #ifdef HAVE_FCNTL_H
11161 #include <fcntl.h>
11162 #endif
11164 #ifdef HAVE_SYS_FCNTL_H
11165 #include <sys/fcntl.h>
11166 #endif
11167 main() { struct flock64 fl64;
11168 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
11169 exit(0);
11170 #else
11171 exit(1);
11172 #endif
11175 if { (eval echo configure:11176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11176 then
11177 samba_cv_HAVE_STRUCT_FLOCK64=yes
11178 else
11179 echo "configure: failed program was:" >&5
11180 cat conftest.$ac_ext >&5
11181 rm -fr conftest*
11182 samba_cv_HAVE_STRUCT_FLOCK64=no
11184 rm -fr conftest*
11189 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
11191 if test x"$samba_cv_HAVE_STRUCT_FLOCK64" = x"yes"; then
11192 cat >> confdefs.h <<\EOF
11193 #define HAVE_STRUCT_FLOCK64 1
11199 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
11200 echo "configure:11201: checking for st_blocks in struct stat" >&5
11201 if eval "test \"`echo '$''{'samba_cv_HAVE_STAT_ST_BLOCKS'+set}'`\" = set"; then
11202 echo $ac_n "(cached) $ac_c" 1>&6
11203 else
11205 cat > conftest.$ac_ext <<EOF
11206 #line 11207 "configure"
11207 #include "confdefs.h"
11208 #include <sys/types.h>
11209 #include <sys/stat.h>
11210 #include <unistd.h>
11211 int main() {
11212 struct stat st; st.st_blocks = 0;
11213 ; return 0; }
11215 if { (eval echo configure:11216: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11216 rm -rf conftest*
11217 samba_cv_HAVE_STAT_ST_BLOCKS=yes
11218 else
11219 echo "configure: failed program was:" >&5
11220 cat conftest.$ac_ext >&5
11221 rm -rf conftest*
11222 samba_cv_HAVE_STAT_ST_BLOCKS=no
11224 rm -f conftest*
11227 echo "$ac_t""$samba_cv_HAVE_STAT_ST_BLOCKS" 1>&6
11228 if test x"$samba_cv_HAVE_STAT_ST_BLOCKS" = x"yes"; then
11229 cat >> confdefs.h <<\EOF
11230 #define HAVE_STAT_ST_BLOCKS 1
11235 case "$host_os" in
11236 *linux*)
11237 echo $ac_n "checking for broken RedHat 7.2 system header files""... $ac_c" 1>&6
11238 echo "configure:11239: checking for broken RedHat 7.2 system header files" >&5
11239 if eval "test \"`echo '$''{'samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS'+set}'`\" = set"; then
11240 echo $ac_n "(cached) $ac_c" 1>&6
11241 else
11243 cat > conftest.$ac_ext <<EOF
11244 #line 11245 "configure"
11245 #include "confdefs.h"
11247 #ifdef HAVE_SYS_VFS_H
11248 #include <sys/vfs.h>
11249 #endif
11250 #ifdef HAVE_SYS_CAPABILITY_H
11251 #include <sys/capability.h>
11252 #endif
11254 int main() {
11255 int i;
11256 ; return 0; }
11258 if { (eval echo configure:11259: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11259 rm -rf conftest*
11260 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=no
11261 else
11262 echo "configure: failed program was:" >&5
11263 cat conftest.$ac_ext >&5
11264 rm -rf conftest*
11265 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=yes
11267 rm -f conftest*
11270 echo "$ac_t""$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" 1>&6
11271 if test x"$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" = x"yes"; then
11272 cat >> confdefs.h <<\EOF
11273 #define BROKEN_REDHAT_7_SYSTEM_HEADERS 1
11278 esac
11280 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
11281 echo "configure:11282: checking for broken nisplus include files" >&5
11282 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
11283 echo $ac_n "(cached) $ac_c" 1>&6
11284 else
11286 cat > conftest.$ac_ext <<EOF
11287 #line 11288 "configure"
11288 #include "confdefs.h"
11289 #include <sys/acl.h>
11290 #if defined(HAVE_RPCSVC_NIS_H)
11291 #include <rpcsvc/nis.h>
11292 #endif
11293 int main() {
11294 int i;
11295 ; return 0; }
11297 if { (eval echo configure:11298: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11298 rm -rf conftest*
11299 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=no
11300 else
11301 echo "configure: failed program was:" >&5
11302 cat conftest.$ac_ext >&5
11303 rm -rf conftest*
11304 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=yes
11306 rm -f conftest*
11309 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
11310 if test x"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x"yes"; then
11311 cat >> confdefs.h <<\EOF
11312 #define BROKEN_NISPLUS_INCLUDE_FILES 1
11318 #################################################
11319 # check for smbwrapper support
11320 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
11321 echo "configure:11322: checking whether to use smbwrapper" >&5
11322 # Check whether --with-smbwrapper or --without-smbwrapper was given.
11323 if test "${with_smbwrapper+set}" = set; then
11324 withval="$with_smbwrapper"
11325 case "$withval" in
11326 yes)
11327 echo "$ac_t""yes" 1>&6
11328 cat >> confdefs.h <<\EOF
11329 #define WITH_SMBWRAPPER 1
11332 WRAP="bin/smbsh bin/smbwrapper.$SHLIBEXT"
11334 if test x$ATTEMPT_WRAP32_BUILD = x; then
11335 WRAP32=""
11336 else
11337 WRAP32=bin/smbwrapper.32.$SHLIBEXT
11340 # Conditions under which smbwrapper should not be built.
11342 if test x$PICFLAG = x; then
11343 echo No support for PIC code - disabling smbwrapper and smbsh
11344 WRAP=""
11345 WRAP32=""
11346 elif test x$ac_cv_func_syscall = xno; then
11347 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
11348 WRAP=""
11349 WRAP32=""
11353 echo "$ac_t""no" 1>&6
11355 esac
11356 else
11357 echo "$ac_t""no" 1>&6
11362 #################################################
11363 # check for the AFS filesystem
11364 echo $ac_n "checking whether to use AFS""... $ac_c" 1>&6
11365 echo "configure:11366: checking whether to use AFS" >&5
11366 # Check whether --with-afs or --without-afs was given.
11367 if test "${with_afs+set}" = set; then
11368 withval="$with_afs"
11369 case "$withval" in
11370 yes)
11371 echo "$ac_t""yes" 1>&6
11372 cat >> confdefs.h <<\EOF
11373 #define WITH_AFS 1
11378 echo "$ac_t""no" 1>&6
11380 esac
11381 else
11382 echo "$ac_t""no" 1>&6
11388 #################################################
11389 # check for the DFS auth system
11390 echo $ac_n "checking whether to use DCE/DFS auth""... $ac_c" 1>&6
11391 echo "configure:11392: checking whether to use DCE/DFS auth" >&5
11392 # Check whether --with-dfs or --without-dfs was given.
11393 if test "${with_dfs+set}" = set; then
11394 withval="$with_dfs"
11395 case "$withval" in
11396 yes)
11397 echo "$ac_t""yes" 1>&6
11398 cat >> confdefs.h <<\EOF
11399 #define WITH_DFS 1
11404 echo "$ac_t""no" 1>&6
11406 esac
11407 else
11408 echo "$ac_t""no" 1>&6
11413 #################################################
11414 # check for Kerberos IV auth system
11415 echo $ac_n "checking whether to use Kerberos IV""... $ac_c" 1>&6
11416 echo "configure:11417: checking whether to use Kerberos IV" >&5
11417 # Check whether --with-krb4 or --without-krb4 was given.
11418 if test "${with_krb4+set}" = set; then
11419 withval="$with_krb4"
11420 case "$withval" in
11421 yes)
11422 echo "$ac_t""yes" 1>&6
11423 cat >> confdefs.h <<\EOF
11424 #define KRB4_AUTH 1
11427 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
11428 echo "configure:11429: checking for dn_expand in -lresolv" >&5
11429 ac_lib_var=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
11430 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11431 echo $ac_n "(cached) $ac_c" 1>&6
11432 else
11433 ac_save_LIBS="$LIBS"
11434 LIBS="-lresolv $LIBS"
11435 cat > conftest.$ac_ext <<EOF
11436 #line 11437 "configure"
11437 #include "confdefs.h"
11438 /* Override any gcc2 internal prototype to avoid an error. */
11439 /* We use char because int might match the return type of a gcc2
11440 builtin and then its argument prototype would still apply. */
11441 char dn_expand();
11443 int main() {
11444 dn_expand()
11445 ; return 0; }
11447 if { (eval echo configure:11448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11448 rm -rf conftest*
11449 eval "ac_cv_lib_$ac_lib_var=yes"
11450 else
11451 echo "configure: failed program was:" >&5
11452 cat conftest.$ac_ext >&5
11453 rm -rf conftest*
11454 eval "ac_cv_lib_$ac_lib_var=no"
11456 rm -f conftest*
11457 LIBS="$ac_save_LIBS"
11460 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11461 echo "$ac_t""yes" 1>&6
11462 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11463 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11464 cat >> confdefs.h <<EOF
11465 #define $ac_tr_lib 1
11468 LIBS="-lresolv $LIBS"
11470 else
11471 echo "$ac_t""no" 1>&6
11474 LIBS="$LIBS -lkrb -ldes"
11475 CFLAGS="$CFLAGS -I$withval/include"
11476 LDFLAGS="$LDFLAGS -L$withval/lib"
11479 echo "$ac_t""no" 1>&6
11481 esac
11482 else
11483 echo "$ac_t""no" 1>&6
11488 #################################################
11489 # check for Kerberos 5 auth system
11490 echo $ac_n "checking whether to use Kerberos 5""... $ac_c" 1>&6
11491 echo "configure:11492: checking whether to use Kerberos 5" >&5
11492 # Check whether --with-krb5 or --without-krb5 was given.
11493 if test "${with_krb5+set}" = set; then
11494 withval="$with_krb5"
11495 case "$withval" in
11496 yes)
11497 echo "$ac_t""yes" 1>&6
11498 cat >> confdefs.h <<\EOF
11499 #define KRB5_AUTH 1
11502 LIBS="$LIBS -ldes425 -lkrb5 -lcrypto -lcom_err"
11503 CFLAGS="$CFLAGS -I$withval/include"
11504 LDFLAGS="$LDFLAGS -L$withval/lib"
11507 echo "$ac_t""no" 1>&6
11509 esac
11510 else
11511 echo "$ac_t""no" 1>&6
11516 #################################################
11517 # check for automount support
11518 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
11519 echo "configure:11520: checking whether to use AUTOMOUNT" >&5
11520 # Check whether --with-automount or --without-automount was given.
11521 if test "${with_automount+set}" = set; then
11522 withval="$with_automount"
11523 case "$withval" in
11524 yes)
11525 echo "$ac_t""yes" 1>&6
11526 cat >> confdefs.h <<\EOF
11527 #define WITH_AUTOMOUNT 1
11532 echo "$ac_t""no" 1>&6
11534 esac
11535 else
11536 echo "$ac_t""no" 1>&6
11541 #################################################
11542 # check for smbmount support
11543 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
11544 echo "configure:11545: checking whether to use SMBMOUNT" >&5
11545 # Check whether --with-smbmount or --without-smbmount was given.
11546 if test "${with_smbmount+set}" = set; then
11547 withval="$with_smbmount"
11548 case "$withval" in
11549 yes)
11550 case "$host_os" in
11551 *linux*)
11552 echo "$ac_t""yes" 1>&6
11553 cat >> confdefs.h <<\EOF
11554 #define WITH_SMBMOUNT 1
11557 MPROGS="bin/smbmount bin/smbmnt bin/smbumount"
11560 { echo "configure: error: not on a linux system!" 1>&2; exit 1; }
11562 esac
11565 echo "$ac_t""no" 1>&6
11566 MPROGS=
11568 esac
11569 else
11570 echo "$ac_t""no" 1>&6
11571 MPROGS=
11577 #################################################
11578 # check for a PAM password database
11579 with_pam_for_crypt=no
11580 echo $ac_n "checking whether to use PAM password database""... $ac_c" 1>&6
11581 echo "configure:11582: checking whether to use PAM password database" >&5
11582 # Check whether --with-pam or --without-pam was given.
11583 if test "${with_pam+set}" = set; then
11584 withval="$with_pam"
11585 case "$withval" in
11586 yes)
11587 echo "$ac_t""yes" 1>&6
11588 cat >> confdefs.h <<\EOF
11589 #define WITH_PAM 1
11592 LIBS="$LIBS -lpam"
11593 with_pam_for_crypt=yes
11596 echo "$ac_t""no" 1>&6
11598 esac
11599 else
11600 echo "$ac_t""no" 1>&6
11605 # we can't build a pam module if we don't have pam.
11606 echo $ac_n "checking for pam_get_data in -lpam""... $ac_c" 1>&6
11607 echo "configure:11608: checking for pam_get_data in -lpam" >&5
11608 ac_lib_var=`echo pam'_'pam_get_data | sed 'y%./+-%__p_%'`
11609 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11610 echo $ac_n "(cached) $ac_c" 1>&6
11611 else
11612 ac_save_LIBS="$LIBS"
11613 LIBS="-lpam $LIBS"
11614 cat > conftest.$ac_ext <<EOF
11615 #line 11616 "configure"
11616 #include "confdefs.h"
11617 /* Override any gcc2 internal prototype to avoid an error. */
11618 /* We use char because int might match the return type of a gcc2
11619 builtin and then its argument prototype would still apply. */
11620 char pam_get_data();
11622 int main() {
11623 pam_get_data()
11624 ; return 0; }
11626 if { (eval echo configure:11627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11627 rm -rf conftest*
11628 eval "ac_cv_lib_$ac_lib_var=yes"
11629 else
11630 echo "configure: failed program was:" >&5
11631 cat conftest.$ac_ext >&5
11632 rm -rf conftest*
11633 eval "ac_cv_lib_$ac_lib_var=no"
11635 rm -f conftest*
11636 LIBS="$ac_save_LIBS"
11639 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11640 echo "$ac_t""yes" 1>&6
11641 cat >> confdefs.h <<\EOF
11642 #define HAVE_LIBPAM 1
11645 else
11646 echo "$ac_t""no" 1>&6
11650 #################################################
11651 # check for pam_smbpass support
11652 echo $ac_n "checking whether to use pam_smbpass""... $ac_c" 1>&6
11653 echo "configure:11654: checking whether to use pam_smbpass" >&5
11654 # Check whether --with-pam_smbpass or --without-pam_smbpass was given.
11655 if test "${with_pam_smbpass+set}" = set; then
11656 withval="$with_pam_smbpass"
11657 case "$withval" in
11658 yes)
11659 echo "$ac_t""yes" 1>&6
11661 # Conditions under which pam_smbpass should not be built.
11663 if test x$PICFLAG = x; then
11664 echo "$ac_t""No support for PIC code - disabling pam_smbpass" 1>&6
11665 PAM_MOD=""
11666 elif test x$ac_cv_lib_pam_pam_get_data = xno; then
11667 echo "$ac_t""No libpam found -- disabling pam_smbpass" 1>&6
11668 PAM_MOD=""
11669 else
11670 cat >> confdefs.h <<\EOF
11671 #define WITH_PAM_SMBPASS 1
11674 PAM_MOD="bin/pam_smbpass.so"
11678 echo "$ac_t""no" 1>&6
11680 esac
11681 else
11682 echo "$ac_t""no" 1>&6
11688 ###############################################
11689 # test for where we get crypt() from, but only
11690 # if not using PAM
11691 if test $with_pam_for_crypt = no; then
11692 for ac_func in crypt
11694 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11695 echo "configure:11696: checking for $ac_func" >&5
11696 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11697 echo $ac_n "(cached) $ac_c" 1>&6
11698 else
11699 cat > conftest.$ac_ext <<EOF
11700 #line 11701 "configure"
11701 #include "confdefs.h"
11702 /* System header to define __stub macros and hopefully few prototypes,
11703 which can conflict with char $ac_func(); below. */
11704 #include <assert.h>
11705 /* Override any gcc2 internal prototype to avoid an error. */
11706 /* We use char because int might match the return type of a gcc2
11707 builtin and then its argument prototype would still apply. */
11708 char $ac_func();
11710 int main() {
11712 /* The GNU C library defines this for functions which it implements
11713 to always fail with ENOSYS. Some functions are actually named
11714 something starting with __ and the normal name is an alias. */
11715 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11716 choke me
11717 #else
11718 $ac_func();
11719 #endif
11721 ; return 0; }
11723 if { (eval echo configure:11724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11724 rm -rf conftest*
11725 eval "ac_cv_func_$ac_func=yes"
11726 else
11727 echo "configure: failed program was:" >&5
11728 cat conftest.$ac_ext >&5
11729 rm -rf conftest*
11730 eval "ac_cv_func_$ac_func=no"
11732 rm -f conftest*
11735 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11736 echo "$ac_t""yes" 1>&6
11737 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11738 cat >> confdefs.h <<EOF
11739 #define $ac_tr_func 1
11742 else
11743 echo "$ac_t""no" 1>&6
11745 done
11747 if test x"$ac_cv_func_crypt" = x"no"; then
11748 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
11749 echo "configure:11750: checking for crypt in -lcrypt" >&5
11750 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
11751 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11752 echo $ac_n "(cached) $ac_c" 1>&6
11753 else
11754 ac_save_LIBS="$LIBS"
11755 LIBS="-lcrypt $LIBS"
11756 cat > conftest.$ac_ext <<EOF
11757 #line 11758 "configure"
11758 #include "confdefs.h"
11759 /* Override any gcc2 internal prototype to avoid an error. */
11760 /* We use char because int might match the return type of a gcc2
11761 builtin and then its argument prototype would still apply. */
11762 char crypt();
11764 int main() {
11765 crypt()
11766 ; return 0; }
11768 if { (eval echo configure:11769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11769 rm -rf conftest*
11770 eval "ac_cv_lib_$ac_lib_var=yes"
11771 else
11772 echo "configure: failed program was:" >&5
11773 cat conftest.$ac_ext >&5
11774 rm -rf conftest*
11775 eval "ac_cv_lib_$ac_lib_var=no"
11777 rm -f conftest*
11778 LIBS="$ac_save_LIBS"
11781 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11782 echo "$ac_t""yes" 1>&6
11783 LIBS="$LIBS -lcrypt";
11784 cat >> confdefs.h <<\EOF
11785 #define HAVE_CRYPT 1
11788 else
11789 echo "$ac_t""no" 1>&6
11796 ## moved after the check for -lcrypt in order to
11797 ## ensure that the necessary libraries are included
11798 ## check checking for truncated salt. Wrapped by the
11799 ## $with_pam_for_crypt variable as above --jerry
11801 if test $with_pam_for_crypt = no; then
11802 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
11803 echo "configure:11804: checking for a crypt that needs truncated salt" >&5
11804 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
11805 echo $ac_n "(cached) $ac_c" 1>&6
11806 else
11808 if test "$cross_compiling" = yes; then
11809 samba_cv_HAVE_TRUNCATED_SALT=cross
11810 else
11811 cat > conftest.$ac_ext <<EOF
11812 #line 11813 "configure"
11813 #include "confdefs.h"
11814 #include "${srcdir-.}/tests/crypttest.c"
11816 if { (eval echo configure:11817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11817 then
11818 samba_cv_HAVE_TRUNCATED_SALT=no
11819 else
11820 echo "configure: failed program was:" >&5
11821 cat conftest.$ac_ext >&5
11822 rm -fr conftest*
11823 samba_cv_HAVE_TRUNCATED_SALT=yes
11825 rm -fr conftest*
11830 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
11831 if test x"$samba_cv_HAVE_TRUNCATED_SALT" = x"yes"; then
11832 cat >> confdefs.h <<\EOF
11833 #define HAVE_TRUNCATED_SALT 1
11840 ########################################################################################
11842 ## TESTS FOR SAM BACKENDS. KEEP THESE GROUPED TOGETHER
11844 ########################################################################################
11846 ## set the with_smbpasswd_sam as the default
11847 with_smbpasswd_sam=yes
11851 #################################################
11852 # check for a TDB password database
11853 echo $ac_n "checking whether to use TDB SAM database""... $ac_c" 1>&6
11854 echo "configure:11855: checking whether to use TDB SAM database" >&5
11855 # Check whether --with-tdbsam or --without-tdbsam was given.
11856 if test "${with_tdbsam+set}" = set; then
11857 withval="$with_tdbsam"
11858 case "$withval" in
11859 yes)
11860 echo "$ac_t""yes" 1>&6
11861 cat >> confdefs.h <<\EOF
11862 #define WITH_TDB_SAM 1
11865 with_smbpasswd_sam=no
11868 echo "$ac_t""no" 1>&6
11870 esac
11871 else
11872 echo "$ac_t""no" 1>&6
11877 #################################################
11878 # check for a LDAP password database
11879 echo $ac_n "checking whether to use LDAP SAM database""... $ac_c" 1>&6
11880 echo "configure:11881: checking whether to use LDAP SAM database" >&5
11881 # Check whether --with-ldapsam or --without-ldapsam was given.
11882 if test "${with_ldapsam+set}" = set; then
11883 withval="$with_ldapsam"
11884 case "$withval" in
11885 yes)
11886 echo "$ac_t""yes" 1>&6
11887 cat >> confdefs.h <<\EOF
11888 #define WITH_LDAP_SAM 1
11891 LIBS="-lldap -llber -lresolv $LIBS"
11892 with_smbpasswd_sam=no
11895 echo "$ac_t""no" 1>&6
11897 esac
11898 else
11899 echo "$ac_t""no" 1>&6
11904 #################################################
11905 # check for a NISPLUS password database
11906 echo $ac_n "checking whether to use NISPLUS SAM database""... $ac_c" 1>&6
11907 echo "configure:11908: checking whether to use NISPLUS SAM database" >&5
11908 # Check whether --with-nisplussam or --without-nisplussam was given.
11909 if test "${with_nisplussam+set}" = set; then
11910 withval="$with_nisplussam"
11911 case "$withval" in
11912 yes)
11913 echo "$ac_t""yes" 1>&6
11914 cat >> confdefs.h <<\EOF
11915 #define WITH_NISPLUS_SAM 1
11918 with_smbpasswd_sam=no
11921 echo "$ac_t""no" 1>&6
11923 esac
11924 else
11925 echo "$ac_t""no" 1>&6
11930 ################################################
11931 # This test should come last because the
11932 # smbpasswd SAM is only used if another format
11933 # has not been defined
11934 echo $ac_n "checking whether to use traditional smbpasswd file""... $ac_c" 1>&6
11935 echo "configure:11936: checking whether to use traditional smbpasswd file" >&5
11936 if test $with_smbpasswd_sam = yes; then
11937 echo "$ac_t""yes" 1>&6
11938 cat >> confdefs.h <<\EOF
11939 #define WITH_SMBPASSWD_SAM 1
11942 PDBEDIT=""
11943 else
11944 echo "$ac_t""no" 1>&6
11945 PDBEDIT=bin/pdbedit
11948 ########################################################################################
11950 ## END OF TESTS FOR SAM BACKENDS.
11952 ########################################################################################
11954 #################################################
11955 # check for a NISPLUS_HOME support
11956 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
11957 echo "configure:11958: checking whether to use NISPLUS_HOME" >&5
11958 # Check whether --with-nisplus-home or --without-nisplus-home was given.
11959 if test "${with_nisplus_home+set}" = set; then
11960 withval="$with_nisplus_home"
11961 case "$withval" in
11962 yes)
11963 echo "$ac_t""yes" 1>&6
11964 cat >> confdefs.h <<\EOF
11965 #define WITH_NISPLUS_HOME 1
11970 echo "$ac_t""no" 1>&6
11972 esac
11973 else
11974 echo "$ac_t""no" 1>&6
11979 #################################################
11980 # check for the secure socket layer
11981 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
11982 echo "configure:11983: checking whether to use SSL" >&5
11983 # Check whether --with-ssl or --without-ssl was given.
11984 if test "${with_ssl+set}" = set; then
11985 withval="$with_ssl"
11986 case "$withval" in
11987 yes)
11988 echo "$ac_t""yes" 1>&6
11989 cat >> confdefs.h <<\EOF
11990 #define WITH_SSL 1
11993 withval="/usr/local/ssl" # default
11995 if test "${with_sslinc+set}" = set; then
11997 withval="$with_sslinc"
11998 case "$withval" in
11999 yes|no)
12000 echo "configure: warning: --with-sslinc called without argument - will use default" 1>&w
12001 CFLAGS="-I/usr/local/ssl/include $CFLAGS"
12004 CFLAGS="-I${withval} $CFLAGS"
12006 esac
12008 else
12010 CFLAGS="-I/usr/local/ssl/include $CFLAGS"
12014 if test "${with_ssllib+set}" = set; then
12016 withval="$with_ssllib"
12017 case "$withval" in
12018 yes|no)
12019 echo "configure: warning: --with-ssllib called without argument - will use default" 1>&w
12020 LDFLAGS="-L/usr/local/ssl/lib $LDFLAGS"
12023 LDFLAGS="-L${withval}/lib $LDFLAGS"
12025 esac
12027 else
12029 LDFLAGS="-L/usr/local/ssl/lib $LDFLAGS"
12033 LIBS="-lssl -lcrypto $LIBS"
12035 # if test ! -d ${withval}; then
12036 # echo "configure: error: called with --with-ssl, but ssl base directory ${withval} does not exist or is not a directory. Aborting config" 1>&2
12037 # exit 1
12038 # fi
12040 CFLAGS="-DHAVE_CRYPT_DECL $CFLAGS" # Damn, SSLeay defines its own
12044 echo "$ac_t""no" 1>&6
12046 esac
12047 else
12048 echo "$ac_t""no" 1>&6
12053 #################################################
12054 # check for syslog logging
12055 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
12056 echo "configure:12057: checking whether to use syslog logging" >&5
12057 # Check whether --with-syslog or --without-syslog was given.
12058 if test "${with_syslog+set}" = set; then
12059 withval="$with_syslog"
12060 case "$withval" in
12061 yes)
12062 echo "$ac_t""yes" 1>&6
12063 cat >> confdefs.h <<\EOF
12064 #define WITH_SYSLOG 1
12069 echo "$ac_t""no" 1>&6
12071 esac
12072 else
12073 echo "$ac_t""no" 1>&6
12078 #################################################
12079 # check for a shared memory profiling support
12080 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
12081 echo "configure:12082: checking whether to use profiling" >&5
12082 # Check whether --with-profiling-data or --without-profiling-data was given.
12083 if test "${with_profiling_data+set}" = set; then
12084 withval="$with_profiling_data"
12085 case "$withval" in
12086 yes)
12087 echo "$ac_t""yes" 1>&6
12088 cat >> confdefs.h <<\EOF
12089 #define WITH_PROFILE 1
12094 echo "$ac_t""no" 1>&6
12096 esac
12097 else
12098 echo "$ac_t""no" 1>&6
12104 #################################################
12105 # check for experimental disk-quotas support
12106 QUOTAOBJS=smbd/noquotas.o
12108 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
12109 echo "configure:12110: checking whether to support disk-quotas" >&5
12110 # Check whether --with-quotas or --without-quotas was given.
12111 if test "${with_quotas+set}" = set; then
12112 withval="$with_quotas"
12113 case "$withval" in
12114 yes)
12115 echo "$ac_t""yes" 1>&6
12116 QUOTAOBJS=smbd/quotas.o
12117 case "$host_os" in
12118 *linux*)
12119 # Check for kernel 2.4.x quota braindamage...
12120 echo $ac_n "checking for linux 2.4.x quota braindamage..""... $ac_c" 1>&6
12121 echo "configure:12122: checking for linux 2.4.x quota braindamage.." >&5
12122 if eval "test \"`echo '$''{'samba_cv_linux_2_4_quota_braindamage'+set}'`\" = set"; then
12123 echo $ac_n "(cached) $ac_c" 1>&6
12124 else
12126 cat > conftest.$ac_ext <<EOF
12127 #line 12128 "configure"
12128 #include "confdefs.h"
12129 #include <stdio.h>
12130 #include <sys/types.h>
12131 #include <asm/types.h>
12132 #include <linux/quota.h>
12133 #include <mntent.h>
12134 #include <linux/unistd.h>
12135 int main() {
12136 struct mem_dqblk D;
12137 ; return 0; }
12139 if { (eval echo configure:12140: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12140 rm -rf conftest*
12141 samba_cv_linux_2_4_quota_braindamage=yes
12142 else
12143 echo "configure: failed program was:" >&5
12144 cat conftest.$ac_ext >&5
12145 rm -rf conftest*
12146 samba_cv_linux_2_4_quota_braindamage=no
12148 rm -f conftest*
12151 echo "$ac_t""$samba_cv_linux_2_4_quota_braindamage" 1>&6
12152 if test x"$samba_cv_linux_2_4_quota_braindamage" = x"yes"; then
12153 cat >> confdefs.h <<\EOF
12154 #define LINUX_QUOTAS_2 1
12157 else
12158 cat >> confdefs.h <<\EOF
12159 #define LINUX_QUOTAS_1 1
12166 esac
12169 echo "$ac_t""no" 1>&6
12171 esac
12172 else
12173 echo "$ac_t""no" 1>&6
12179 #################################################
12180 # check for experimental utmp accounting
12182 echo $ac_n "checking whether to support utmp accounting""... $ac_c" 1>&6
12183 echo "configure:12184: checking whether to support utmp accounting" >&5
12184 # Check whether --with-utmp or --without-utmp was given.
12185 if test "${with_utmp+set}" = set; then
12186 withval="$with_utmp"
12187 case "$withval" in
12188 yes)
12189 echo "$ac_t""yes" 1>&6
12190 cat >> confdefs.h <<\EOF
12191 #define WITH_UTMP 1
12196 echo "$ac_t""no" 1>&6
12198 esac
12199 else
12200 echo "$ac_t""no" 1>&6
12205 #################################################
12206 # check for MS Dfs support
12208 echo $ac_n "checking whether to support Microsoft Dfs""... $ac_c" 1>&6
12209 echo "configure:12210: checking whether to support Microsoft Dfs" >&5
12210 # Check whether --with-msdfs or --without-msdfs was given.
12211 if test "${with_msdfs+set}" = set; then
12212 withval="$with_msdfs"
12213 case "$withval" in
12214 yes)
12215 echo "$ac_t""yes" 1>&6
12216 cat >> confdefs.h <<\EOF
12217 #define WITH_MSDFS 1
12222 echo "$ac_t""no" 1>&6
12224 esac
12225 else
12226 echo "$ac_t""no" 1>&6
12231 #################################################
12232 # check for Samba VFS support
12234 echo $ac_n "checking whether to support the experimental Samba vfs""... $ac_c" 1>&6
12235 echo "configure:12236: checking whether to support the experimental Samba vfs" >&5
12236 # Check whether --with-vfs or --without-vfs was given.
12237 if test "${with_vfs+set}" = set; then
12238 withval="$with_vfs"
12239 case "$withval" in
12240 yes)
12241 echo "$ac_t""yes" 1>&6
12242 cat >> confdefs.h <<\EOF
12243 #define WITH_VFS 1
12248 echo "$ac_t""no" 1>&6
12250 esac
12251 else
12252 echo "$ac_t""no" 1>&6
12258 #################################################
12259 # should we build libsmbclient?
12261 LIBSMBCLIENT_SHARED=
12262 LIBSMBCLIENT=
12263 echo $ac_n "checking whether to build the libsmbclient shared library""... $ac_c" 1>&6
12264 echo "configure:12265: checking whether to build the libsmbclient shared library" >&5
12265 # Check whether --with-libsmbclient or --without-libsmbclient was given.
12266 if test "${with_libsmbclient+set}" = set; then
12267 withval="$with_libsmbclient"
12268 case "$withval" in
12269 yes)
12270 if test $BLDSHARED = true; then
12271 LIBSMBCLIENT_SHARED=bin/libsmbclient.$SHLIBEXT
12272 LIBSMBCLIENT=libsmbclient
12273 echo "$ac_t""yes" 1>&6
12274 else
12275 echo "$ac_t""no shared library support" 1>&6
12279 echo "$ac_t""no" 1>&6
12281 esac
12282 else
12283 echo "$ac_t""no" 1>&6
12288 #################################################
12289 # these tests are taken from the GNU fileutils package
12290 echo "checking how to get filesystem space usage" 1>&6
12291 echo "configure:12292: checking how to get filesystem space usage" >&5
12292 space=no
12294 # Test for statvfs64.
12295 if test $space = no; then
12296 # SVR4
12297 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
12298 echo "configure:12299: checking statvfs64 function (SVR4)" >&5
12299 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
12300 echo $ac_n "(cached) $ac_c" 1>&6
12301 else
12302 if test "$cross_compiling" = yes; then
12303 fu_cv_sys_stat_statvfs64=cross
12304 else
12305 cat > conftest.$ac_ext <<EOF
12306 #line 12307 "configure"
12307 #include "confdefs.h"
12309 #if defined(HAVE_UNISTD_H)
12310 #include <unistd.h>
12311 #endif
12312 #include <sys/types.h>
12313 #include <sys/statvfs.h>
12314 main ()
12316 struct statvfs64 fsd;
12317 exit (statvfs64 (".", &fsd));
12320 if { (eval echo configure:12321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12321 then
12322 fu_cv_sys_stat_statvfs64=yes
12323 else
12324 echo "configure: failed program was:" >&5
12325 cat conftest.$ac_ext >&5
12326 rm -fr conftest*
12327 fu_cv_sys_stat_statvfs64=no
12329 rm -fr conftest*
12334 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
12335 if test $fu_cv_sys_stat_statvfs64 = yes; then
12336 space=yes
12337 cat >> confdefs.h <<\EOF
12338 #define STAT_STATVFS64 1
12344 # Perform only the link test since it seems there are no variants of the
12345 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
12346 # because that got a false positive on SCO OSR5. Adding the declaration
12347 # of a `struct statvfs' causes this test to fail (as it should) on such
12348 # systems. That system is reported to work fine with STAT_STATFS4 which
12349 # is what it gets when this test fails.
12350 if test $space = no; then
12351 # SVR4
12352 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
12353 echo "configure:12354: checking statvfs function (SVR4)" >&5
12354 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
12355 echo $ac_n "(cached) $ac_c" 1>&6
12356 else
12357 cat > conftest.$ac_ext <<EOF
12358 #line 12359 "configure"
12359 #include "confdefs.h"
12360 #include <sys/types.h>
12361 #include <sys/statvfs.h>
12362 int main() {
12363 struct statvfs fsd; statvfs (0, &fsd);
12364 ; return 0; }
12366 if { (eval echo configure:12367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12367 rm -rf conftest*
12368 fu_cv_sys_stat_statvfs=yes
12369 else
12370 echo "configure: failed program was:" >&5
12371 cat conftest.$ac_ext >&5
12372 rm -rf conftest*
12373 fu_cv_sys_stat_statvfs=no
12375 rm -f conftest*
12378 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
12379 if test $fu_cv_sys_stat_statvfs = yes; then
12380 space=yes
12381 cat >> confdefs.h <<\EOF
12382 #define STAT_STATVFS 1
12388 if test $space = no; then
12389 # DEC Alpha running OSF/1
12390 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
12391 echo "configure:12392: checking for 3-argument statfs function (DEC OSF/1)" >&5
12392 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
12393 echo $ac_n "(cached) $ac_c" 1>&6
12394 else
12395 if test "$cross_compiling" = yes; then
12396 fu_cv_sys_stat_statfs3_osf1=no
12397 else
12398 cat > conftest.$ac_ext <<EOF
12399 #line 12400 "configure"
12400 #include "confdefs.h"
12402 #include <sys/param.h>
12403 #include <sys/types.h>
12404 #include <sys/mount.h>
12405 main ()
12407 struct statfs fsd;
12408 fsd.f_fsize = 0;
12409 exit (statfs (".", &fsd, sizeof (struct statfs)));
12412 if { (eval echo configure:12413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12413 then
12414 fu_cv_sys_stat_statfs3_osf1=yes
12415 else
12416 echo "configure: failed program was:" >&5
12417 cat conftest.$ac_ext >&5
12418 rm -fr conftest*
12419 fu_cv_sys_stat_statfs3_osf1=no
12421 rm -fr conftest*
12426 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
12427 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
12428 space=yes
12429 cat >> confdefs.h <<\EOF
12430 #define STAT_STATFS3_OSF1 1
12436 if test $space = no; then
12437 # AIX
12438 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
12439 echo "configure:12440: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
12440 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
12441 echo $ac_n "(cached) $ac_c" 1>&6
12442 else
12443 if test "$cross_compiling" = yes; then
12444 fu_cv_sys_stat_statfs2_bsize=no
12445 else
12446 cat > conftest.$ac_ext <<EOF
12447 #line 12448 "configure"
12448 #include "confdefs.h"
12450 #ifdef HAVE_SYS_PARAM_H
12451 #include <sys/param.h>
12452 #endif
12453 #ifdef HAVE_SYS_MOUNT_H
12454 #include <sys/mount.h>
12455 #endif
12456 #ifdef HAVE_SYS_VFS_H
12457 #include <sys/vfs.h>
12458 #endif
12459 main ()
12461 struct statfs fsd;
12462 fsd.f_bsize = 0;
12463 exit (statfs (".", &fsd));
12466 if { (eval echo configure:12467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12467 then
12468 fu_cv_sys_stat_statfs2_bsize=yes
12469 else
12470 echo "configure: failed program was:" >&5
12471 cat conftest.$ac_ext >&5
12472 rm -fr conftest*
12473 fu_cv_sys_stat_statfs2_bsize=no
12475 rm -fr conftest*
12480 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
12481 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
12482 space=yes
12483 cat >> confdefs.h <<\EOF
12484 #define STAT_STATFS2_BSIZE 1
12490 if test $space = no; then
12491 # SVR3
12492 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
12493 echo "configure:12494: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
12494 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
12495 echo $ac_n "(cached) $ac_c" 1>&6
12496 else
12497 if test "$cross_compiling" = yes; then
12498 fu_cv_sys_stat_statfs4=no
12499 else
12500 cat > conftest.$ac_ext <<EOF
12501 #line 12502 "configure"
12502 #include "confdefs.h"
12503 #include <sys/types.h>
12504 #include <sys/statfs.h>
12505 main ()
12507 struct statfs fsd;
12508 exit (statfs (".", &fsd, sizeof fsd, 0));
12511 if { (eval echo configure:12512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12512 then
12513 fu_cv_sys_stat_statfs4=yes
12514 else
12515 echo "configure: failed program was:" >&5
12516 cat conftest.$ac_ext >&5
12517 rm -fr conftest*
12518 fu_cv_sys_stat_statfs4=no
12520 rm -fr conftest*
12525 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
12526 if test $fu_cv_sys_stat_statfs4 = yes; then
12527 space=yes
12528 cat >> confdefs.h <<\EOF
12529 #define STAT_STATFS4 1
12535 if test $space = no; then
12536 # 4.4BSD and NetBSD
12537 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
12538 echo "configure:12539: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
12539 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
12540 echo $ac_n "(cached) $ac_c" 1>&6
12541 else
12542 if test "$cross_compiling" = yes; then
12543 fu_cv_sys_stat_statfs2_fsize=no
12544 else
12545 cat > conftest.$ac_ext <<EOF
12546 #line 12547 "configure"
12547 #include "confdefs.h"
12548 #include <sys/types.h>
12549 #ifdef HAVE_SYS_PARAM_H
12550 #include <sys/param.h>
12551 #endif
12552 #ifdef HAVE_SYS_MOUNT_H
12553 #include <sys/mount.h>
12554 #endif
12555 main ()
12557 struct statfs fsd;
12558 fsd.f_fsize = 0;
12559 exit (statfs (".", &fsd));
12562 if { (eval echo configure:12563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12563 then
12564 fu_cv_sys_stat_statfs2_fsize=yes
12565 else
12566 echo "configure: failed program was:" >&5
12567 cat conftest.$ac_ext >&5
12568 rm -fr conftest*
12569 fu_cv_sys_stat_statfs2_fsize=no
12571 rm -fr conftest*
12576 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
12577 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
12578 space=yes
12579 cat >> confdefs.h <<\EOF
12580 #define STAT_STATFS2_FSIZE 1
12586 if test $space = no; then
12587 # Ultrix
12588 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
12589 echo "configure:12590: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
12590 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
12591 echo $ac_n "(cached) $ac_c" 1>&6
12592 else
12593 if test "$cross_compiling" = yes; then
12594 fu_cv_sys_stat_fs_data=no
12595 else
12596 cat > conftest.$ac_ext <<EOF
12597 #line 12598 "configure"
12598 #include "confdefs.h"
12599 #include <sys/types.h>
12600 #ifdef HAVE_SYS_PARAM_H
12601 #include <sys/param.h>
12602 #endif
12603 #ifdef HAVE_SYS_MOUNT_H
12604 #include <sys/mount.h>
12605 #endif
12606 #ifdef HAVE_SYS_FS_TYPES_H
12607 #include <sys/fs_types.h>
12608 #endif
12609 main ()
12611 struct fs_data fsd;
12612 /* Ultrix's statfs returns 1 for success,
12613 0 for not mounted, -1 for failure. */
12614 exit (statfs (".", &fsd) != 1);
12617 if { (eval echo configure:12618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12618 then
12619 fu_cv_sys_stat_fs_data=yes
12620 else
12621 echo "configure: failed program was:" >&5
12622 cat conftest.$ac_ext >&5
12623 rm -fr conftest*
12624 fu_cv_sys_stat_fs_data=no
12626 rm -fr conftest*
12631 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
12632 if test $fu_cv_sys_stat_fs_data = yes; then
12633 space=yes
12634 cat >> confdefs.h <<\EOF
12635 #define STAT_STATFS2_FS_DATA 1
12642 # As a gating factor for large file support, in order to
12643 # use <4GB files we must have the following minimal support
12644 # available.
12645 # long long, and a 64 bit off_t or off64_t.
12646 # If we don't have all of these then disable large
12647 # file support.
12649 echo $ac_n "checking if large file support can be enabled""... $ac_c" 1>&6
12650 echo "configure:12651: checking if large file support can be enabled" >&5
12651 cat > conftest.$ac_ext <<EOF
12652 #line 12653 "configure"
12653 #include "confdefs.h"
12655 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
12656 #include <sys/types.h>
12657 #else
12658 __COMPILE_ERROR_
12659 #endif
12661 int main() {
12662 int i
12663 ; return 0; }
12665 if { (eval echo configure:12666: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12666 rm -rf conftest*
12667 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=yes
12668 else
12669 echo "configure: failed program was:" >&5
12670 cat conftest.$ac_ext >&5
12671 rm -rf conftest*
12672 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=no
12674 rm -f conftest*
12675 if test x"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x"yes"; then
12676 echo "$ac_t""yes" 1>&6
12677 cat >> confdefs.h <<\EOF
12678 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
12681 else
12682 echo "$ac_t""no" 1>&6
12685 # Check whether --with-spinlocks or --without-spinlocks was given.
12686 if test "${with_spinlocks+set}" = set; then
12687 withval="$with_spinlocks"
12691 if test "x$with_spinlocks" = "xyes"; then
12692 cat >> confdefs.h <<\EOF
12693 #define USE_SPINLOCKS 1
12697 case "$host_cpu" in
12698 sparc)
12699 cat >> confdefs.h <<\EOF
12700 #define SPARC_SPINLOCKS 1
12705 i386|i486|i586|i686)
12706 cat >> confdefs.h <<\EOF
12707 #define INTEL_SPINLOCKS 1
12712 mips)
12713 cat >> confdefs.h <<\EOF
12714 #define MIPS_SPINLOCKS 1
12719 powerpc)
12720 cat >> confdefs.h <<\EOF
12721 #define POWERPC_SPINLOCKS 1
12725 esac
12728 #################################################
12729 # check for ACL support
12731 echo $ac_n "checking whether to support ACLs""... $ac_c" 1>&6
12732 echo "configure:12733: checking whether to support ACLs" >&5
12733 # Check whether --with-acl-support or --without-acl-support was given.
12734 if test "${with_acl_support+set}" = set; then
12735 withval="$with_acl_support"
12736 case "$withval" in
12737 yes)
12739 case "$host_os" in
12740 *sysv5*)
12741 echo "$ac_t""Using UnixWare ACLs" 1>&6
12742 cat >> confdefs.h <<\EOF
12743 #define HAVE_UNIXWARE_ACLS 1
12747 *solaris*)
12748 echo "$ac_t""Using solaris ACLs" 1>&6
12749 cat >> confdefs.h <<\EOF
12750 #define HAVE_SOLARIS_ACLS 1
12754 *hpux*)
12755 echo "$ac_t""Using HPUX ACLs" 1>&6
12756 cat >> confdefs.h <<\EOF
12757 #define HAVE_HPUX_ACLS 1
12761 *irix*)
12762 echo "$ac_t""Using IRIX ACLs" 1>&6
12763 cat >> confdefs.h <<\EOF
12764 #define HAVE_IRIX_ACLS 1
12768 *aix*)
12769 echo "$ac_t""Using AIX ACLs" 1>&6
12770 cat >> confdefs.h <<\EOF
12771 #define HAVE_AIX_ACLS 1
12775 *osf*)
12776 echo "$ac_t""Using Tru64 ACLs" 1>&6
12777 cat >> confdefs.h <<\EOF
12778 #define HAVE_TRU64_ACLS 1
12781 LIBS="$LIBS -lpacl"
12784 echo $ac_n "checking for acl_get_file in -lacl""... $ac_c" 1>&6
12785 echo "configure:12786: checking for acl_get_file in -lacl" >&5
12786 ac_lib_var=`echo acl'_'acl_get_file | sed 'y%./+-%__p_%'`
12787 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12788 echo $ac_n "(cached) $ac_c" 1>&6
12789 else
12790 ac_save_LIBS="$LIBS"
12791 LIBS="-lacl $LIBS"
12792 cat > conftest.$ac_ext <<EOF
12793 #line 12794 "configure"
12794 #include "confdefs.h"
12795 /* Override any gcc2 internal prototype to avoid an error. */
12796 /* We use char because int might match the return type of a gcc2
12797 builtin and then its argument prototype would still apply. */
12798 char acl_get_file();
12800 int main() {
12801 acl_get_file()
12802 ; return 0; }
12804 if { (eval echo configure:12805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12805 rm -rf conftest*
12806 eval "ac_cv_lib_$ac_lib_var=yes"
12807 else
12808 echo "configure: failed program was:" >&5
12809 cat conftest.$ac_ext >&5
12810 rm -rf conftest*
12811 eval "ac_cv_lib_$ac_lib_var=no"
12813 rm -f conftest*
12814 LIBS="$ac_save_LIBS"
12817 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12818 echo "$ac_t""yes" 1>&6
12819 ac_tr_lib=HAVE_LIB`echo acl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
12820 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
12821 cat >> confdefs.h <<EOF
12822 #define $ac_tr_lib 1
12825 LIBS="-lacl $LIBS"
12827 else
12828 echo "$ac_t""no" 1>&6
12831 echo $ac_n "checking for ACL support""... $ac_c" 1>&6
12832 echo "configure:12833: checking for ACL support" >&5
12833 if eval "test \"`echo '$''{'samba_cv_HAVE_POSIX_ACLS'+set}'`\" = set"; then
12834 echo $ac_n "(cached) $ac_c" 1>&6
12835 else
12837 cat > conftest.$ac_ext <<EOF
12838 #line 12839 "configure"
12839 #include "confdefs.h"
12840 #include <sys/types.h>
12841 #include <sys/acl.h>
12842 int main() {
12843 acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
12844 ; return 0; }
12846 if { (eval echo configure:12847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12847 rm -rf conftest*
12848 samba_cv_HAVE_POSIX_ACLS=yes
12849 else
12850 echo "configure: failed program was:" >&5
12851 cat conftest.$ac_ext >&5
12852 rm -rf conftest*
12853 samba_cv_HAVE_POSIX_ACLS=no
12855 rm -f conftest*
12858 echo "$ac_t""$samba_cv_HAVE_POSIX_ACLS" 1>&6
12859 if test x"$samba_cv_HAVE_POSIX_ACLS" = x"yes"; then
12860 echo "$ac_t""Using posix ACLs" 1>&6
12861 cat >> confdefs.h <<\EOF
12862 #define HAVE_POSIX_ACLS 1
12865 echo $ac_n "checking for acl_get_perm_np""... $ac_c" 1>&6
12866 echo "configure:12867: checking for acl_get_perm_np" >&5
12867 if eval "test \"`echo '$''{'samba_cv_HAVE_ACL_GET_PERM_NP'+set}'`\" = set"; then
12868 echo $ac_n "(cached) $ac_c" 1>&6
12869 else
12871 cat > conftest.$ac_ext <<EOF
12872 #line 12873 "configure"
12873 #include "confdefs.h"
12874 #include <sys/types.h>
12875 #include <sys/acl.h>
12876 int main() {
12877 acl_permset_t permset_d; acl_perm_t perm; return acl_get_perm_np( permset_d, perm);
12878 ; return 0; }
12880 if { (eval echo configure:12881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12881 rm -rf conftest*
12882 samba_cv_HAVE_ACL_GET_PERM_NP=yes
12883 else
12884 echo "configure: failed program was:" >&5
12885 cat conftest.$ac_ext >&5
12886 rm -rf conftest*
12887 samba_cv_HAVE_ACL_GET_PERM_NP=no
12889 rm -f conftest*
12892 echo "$ac_t""$samba_cv_HAVE_ACL_GET_PERM_NP" 1>&6
12893 if test x"$samba_cv_HAVE_ACL_GET_PERM_NP" = x"yes"; then
12894 cat >> confdefs.h <<\EOF
12895 #define HAVE_ACL_GET_PERM_NP 1
12901 esac
12904 echo "$ac_t""no" 1>&6
12905 cat >> confdefs.h <<\EOF
12906 #define HAVE_NO_ACLS 1
12910 esac
12911 else
12912 cat >> confdefs.h <<\EOF
12913 #define HAVE_NO_ACLS 1
12916 echo "$ac_t""no" 1>&6
12921 #################################################
12922 # check for the historical SAMBA installation
12924 if test "x$prefix" = xNONE -a "$sbindir" = "\${exec_prefix}/sbin"; then
12925 # Put all binaries under the /usr/local/samba/bin directory.
12926 sbindir="$bindir"
12929 #################################################
12930 # Check whether winbind is supported on this platform. If so we need to
12931 # build and install client programs (WINBIND_TARGETS), sbin programs
12932 # (WINBIND_STARGETS) and shared libraries (WINBIND_LTARGETS).
12934 echo $ac_n "checking whether to build winbind""... $ac_c" 1>&6
12935 echo "configure:12936: checking whether to build winbind" >&5
12937 # Initially, the value of $host_os decides whether winbind is supported
12939 case "$host_os" in
12940 *linux*|*solaris*|*irix*|*hpux11*)
12941 HAVE_WINBIND=yes
12944 HAVE_WINBIND=no
12945 winbind_no_reason=", unsupported on $host_os"
12947 esac
12949 # Check the setting of --with-winbindd
12951 # Check whether --with-winbind or --without-winbind was given.
12952 if test "${with_winbind+set}" = set; then
12953 withval="$with_winbind"
12955 case "$withval" in
12956 yes)
12957 HAVE_WINBIND=yes
12960 HAVE_WINBIND=no
12961 winbind_reason=""
12963 esac
12967 # We need unix domain sockets for winbind
12969 if test x"$HAVE_WINBIND" = x"yes"; then
12970 if test x"$samba_cv_unixsocket" = x"no"; then
12971 winbind_no_reason=", no unix domain socket support on $host_os"
12972 HAVE_WINBIND=no
12976 # Display test results
12978 if test x"$HAVE_WINBIND" = x"yes"; then
12980 echo "$ac_t""yes" 1>&6
12982 WINBIND_TARGETS="bin/wbinfo"
12983 WINBIND_STARGETS="bin/winbindd"
12984 WINBIND_LTARGETS="nsswitch/libnss_winbind.so"
12986 case "$with_pam" in
12987 yes)
12988 WINBIND_PAM_TARGETS="nsswitch/pam_winbind.so"
12990 esac
12991 else
12992 echo "$ac_t""no$winbind_no_reason" 1>&6
12994 WINBIND_TARGETS=""
12995 WINBIND_STARGETS=""
12996 WINBIND_LTARGETS=""
12997 WINBIND_PAM_TARGETS=""
13000 # Substitution time!
13007 #################################################
13008 # final configure stuff
13009 echo "checking configure summary"
13010 if test "$cross_compiling" = yes; then
13012 else
13013 cat > conftest.$ac_ext <<EOF
13014 #line 13015 "configure"
13015 #include "confdefs.h"
13016 #include "${srcdir-.}/tests/summary.c"
13018 if { (eval echo configure:13019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13019 then
13020 echo "configure OK";
13021 else
13022 echo "configure: failed program was:" >&5
13023 cat conftest.$ac_ext >&5
13024 rm -fr conftest*
13025 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }
13027 rm -fr conftest*
13031 builddir=`pwd`
13034 trap '' 1 2 15
13035 cat > confcache <<\EOF
13036 # This file is a shell script that caches the results of configure
13037 # tests run on this system so they can be shared between configure
13038 # scripts and configure runs. It is not useful on other systems.
13039 # If it contains results you don't want to keep, you may remove or edit it.
13041 # By default, configure uses ./config.cache as the cache file,
13042 # creating it if it does not exist already. You can give configure
13043 # the --cache-file=FILE option to use a different cache file; that is
13044 # what configure does when it calls configure scripts in
13045 # subdirectories, so they share the cache.
13046 # Giving --cache-file=/dev/null disables caching, for debugging configure.
13047 # config.status only pays attention to the cache file if you give it the
13048 # --recheck option to rerun configure.
13051 # The following way of writing the cache mishandles newlines in values,
13052 # but we know of no workaround that is simple, portable, and efficient.
13053 # So, don't put newlines in cache variables' values.
13054 # Ultrix sh set writes to stderr and can't be redirected directly,
13055 # and sets the high bit in the cache file unless we assign to the vars.
13056 (set) 2>&1 |
13057 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13058 *ac_space=\ *)
13059 # `set' does not quote correctly, so add quotes (double-quote substitution
13060 # turns \\\\ into \\, and sed turns \\ into \).
13061 sed -n \
13062 -e "s/'/'\\\\''/g" \
13063 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
13066 # `set' quotes correctly as required by POSIX, so do not add quotes.
13067 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
13069 esac >> confcache
13070 if cmp -s $cache_file confcache; then
13072 else
13073 if test -w $cache_file; then
13074 echo "updating cache $cache_file"
13075 cat confcache > $cache_file
13076 else
13077 echo "not updating unwritable cache $cache_file"
13080 rm -f confcache
13082 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
13084 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13085 # Let make expand exec_prefix.
13086 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13088 # Any assignment to VPATH causes Sun make to only execute
13089 # the first set of double-colon rules, so remove it if not needed.
13090 # If there is a colon in the path, we need to keep it.
13091 if test "x$srcdir" = x.; then
13092 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
13095 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
13097 DEFS=-DHAVE_CONFIG_H
13099 # Without the "./", some shells look in PATH for config.status.
13100 : ${CONFIG_STATUS=./config.status}
13102 echo creating $CONFIG_STATUS
13103 rm -f $CONFIG_STATUS
13104 cat > $CONFIG_STATUS <<EOF
13105 #! /bin/sh
13106 # Generated automatically by configure.
13107 # Run this file to recreate the current configuration.
13108 # This directory was configured as follows,
13109 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13111 # $0 $ac_configure_args
13113 # Compiler output produced by configure, useful for debugging
13114 # configure, is in ./config.log if it exists.
13116 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
13117 for ac_option
13119 case "\$ac_option" in
13120 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13121 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
13122 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
13123 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
13124 echo "$CONFIG_STATUS generated by autoconf version 2.13"
13125 exit 0 ;;
13126 -help | --help | --hel | --he | --h)
13127 echo "\$ac_cs_usage"; exit 0 ;;
13128 *) echo "\$ac_cs_usage"; exit 1 ;;
13129 esac
13130 done
13132 ac_given_srcdir=$srcdir
13133 ac_given_INSTALL="$INSTALL"
13135 trap 'rm -fr `echo "include/stamp-h Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
13137 cat >> $CONFIG_STATUS <<EOF
13139 # Protect against being on the right side of a sed subst in config.status.
13140 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
13141 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
13142 $ac_vpsub
13143 $extrasub
13144 s%@SHELL@%$SHELL%g
13145 s%@CFLAGS@%$CFLAGS%g
13146 s%@CPPFLAGS@%$CPPFLAGS%g
13147 s%@CXXFLAGS@%$CXXFLAGS%g
13148 s%@FFLAGS@%$FFLAGS%g
13149 s%@DEFS@%$DEFS%g
13150 s%@LDFLAGS@%$LDFLAGS%g
13151 s%@LIBS@%$LIBS%g
13152 s%@exec_prefix@%$exec_prefix%g
13153 s%@prefix@%$prefix%g
13154 s%@program_transform_name@%$program_transform_name%g
13155 s%@bindir@%$bindir%g
13156 s%@sbindir@%$sbindir%g
13157 s%@libexecdir@%$libexecdir%g
13158 s%@datadir@%$datadir%g
13159 s%@sysconfdir@%$sysconfdir%g
13160 s%@sharedstatedir@%$sharedstatedir%g
13161 s%@localstatedir@%$localstatedir%g
13162 s%@libdir@%$libdir%g
13163 s%@includedir@%$includedir%g
13164 s%@oldincludedir@%$oldincludedir%g
13165 s%@infodir@%$infodir%g
13166 s%@mandir@%$mandir%g
13167 s%@codepagedir@%$codepagedir%g
13168 s%@configdir@%$configdir%g
13169 s%@lockdir@%$lockdir%g
13170 s%@logfilebase@%$logfilebase%g
13171 s%@privatedir@%$privatedir%g
13172 s%@swatdir@%$swatdir%g
13173 s%@RUNPROG@%$RUNPROG%g
13174 s%@MPROGS@%$MPROGS%g
13175 s%@LDSHFLAGS@%$LDSHFLAGS%g
13176 s%@SONAMEFLAG@%$SONAMEFLAG%g
13177 s%@SHLD@%$SHLD%g
13178 s%@HOST_OS@%$HOST_OS%g
13179 s%@PAM_MOD@%$PAM_MOD%g
13180 s%@PDBEDIT@%$PDBEDIT%g
13181 s%@WRAP@%$WRAP%g
13182 s%@WRAP32@%$WRAP32%g
13183 s%@PICFLAG@%$PICFLAG%g
13184 s%@PICSUFFIX@%$PICSUFFIX%g
13185 s%@SHLIBEXT@%$SHLIBEXT%g
13186 s%@BLDSHARED@%$BLDSHARED%g
13187 s%@LIBSMBCLIENT_SHARED@%$LIBSMBCLIENT_SHARED%g
13188 s%@LIBSMBCLIENT@%$LIBSMBCLIENT%g
13189 s%@CC@%$CC%g
13190 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
13191 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
13192 s%@INSTALL_DATA@%$INSTALL_DATA%g
13193 s%@AWK@%$AWK%g
13194 s%@BROKEN_CC@%$BROKEN_CC%g
13195 s%@host@%$host%g
13196 s%@host_alias@%$host_alias%g
13197 s%@host_cpu@%$host_cpu%g
13198 s%@host_vendor@%$host_vendor%g
13199 s%@host_os@%$host_os%g
13200 s%@target@%$target%g
13201 s%@target_alias@%$target_alias%g
13202 s%@target_cpu@%$target_cpu%g
13203 s%@target_vendor@%$target_vendor%g
13204 s%@target_os@%$target_os%g
13205 s%@build@%$build%g
13206 s%@build_alias@%$build_alias%g
13207 s%@build_cpu@%$build_cpu%g
13208 s%@build_vendor@%$build_vendor%g
13209 s%@build_os@%$build_os%g
13210 s%@CPP@%$CPP%g
13211 s%@LIBOBJS@%$LIBOBJS%g
13212 s%@TERMLIBS@%$TERMLIBS%g
13213 s%@TERMLDFLAGS@%$TERMLDFLAGS%g
13214 s%@ROFF@%$ROFF%g
13215 s%@QUOTAOBJS@%$QUOTAOBJS%g
13216 s%@WINBIND_TARGETS@%$WINBIND_TARGETS%g
13217 s%@WINBIND_STARGETS@%$WINBIND_STARGETS%g
13218 s%@WINBIND_LTARGETS@%$WINBIND_LTARGETS%g
13219 s%@WINBIND_PAM_TARGETS@%$WINBIND_PAM_TARGETS%g
13220 s%@builddir@%$builddir%g
13222 CEOF
13225 cat >> $CONFIG_STATUS <<\EOF
13227 # Split the substitutions into bite-sized pieces for seds with
13228 # small command number limits, like on Digital OSF/1 and HP-UX.
13229 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
13230 ac_file=1 # Number of current file.
13231 ac_beg=1 # First line for current file.
13232 ac_end=$ac_max_sed_cmds # Line after last line for current file.
13233 ac_more_lines=:
13234 ac_sed_cmds=""
13235 while $ac_more_lines; do
13236 if test $ac_beg -gt 1; then
13237 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
13238 else
13239 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
13241 if test ! -s conftest.s$ac_file; then
13242 ac_more_lines=false
13243 rm -f conftest.s$ac_file
13244 else
13245 if test -z "$ac_sed_cmds"; then
13246 ac_sed_cmds="sed -f conftest.s$ac_file"
13247 else
13248 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
13250 ac_file=`expr $ac_file + 1`
13251 ac_beg=$ac_end
13252 ac_end=`expr $ac_end + $ac_max_sed_cmds`
13254 done
13255 if test -z "$ac_sed_cmds"; then
13256 ac_sed_cmds=cat
13260 cat >> $CONFIG_STATUS <<EOF
13262 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile"}
13264 cat >> $CONFIG_STATUS <<\EOF
13265 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
13266 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13267 case "$ac_file" in
13268 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13269 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13270 *) ac_file_in="${ac_file}.in" ;;
13271 esac
13273 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
13275 # Remove last slash and all that follows it. Not all systems have dirname.
13276 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13277 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13278 # The file is in a subdirectory.
13279 test ! -d "$ac_dir" && mkdir "$ac_dir"
13280 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
13281 # A "../" for each directory in $ac_dir_suffix.
13282 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
13283 else
13284 ac_dir_suffix= ac_dots=
13287 case "$ac_given_srcdir" in
13288 .) srcdir=.
13289 if test -z "$ac_dots"; then top_srcdir=.
13290 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
13291 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
13292 *) # Relative path.
13293 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
13294 top_srcdir="$ac_dots$ac_given_srcdir" ;;
13295 esac
13297 case "$ac_given_INSTALL" in
13298 [/$]*) INSTALL="$ac_given_INSTALL" ;;
13299 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
13300 esac
13302 echo creating "$ac_file"
13303 rm -f "$ac_file"
13304 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
13305 case "$ac_file" in
13306 *Makefile*) ac_comsub="1i\\
13307 # $configure_input" ;;
13308 *) ac_comsub= ;;
13309 esac
13311 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13312 sed -e "$ac_comsub
13313 s%@configure_input@%$configure_input%g
13314 s%@srcdir@%$srcdir%g
13315 s%@top_srcdir@%$top_srcdir%g
13316 s%@INSTALL@%$INSTALL%g
13317 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
13318 fi; done
13319 rm -f conftest.s*
13321 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13322 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13324 # ac_d sets the value in "#define NAME VALUE" lines.
13325 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13326 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
13327 ac_dC='\3'
13328 ac_dD='%g'
13329 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
13330 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13331 ac_uB='\([ ]\)%\1#\2define\3'
13332 ac_uC=' '
13333 ac_uD='\4%g'
13334 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13335 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13336 ac_eB='$%\1#\2define\3'
13337 ac_eC=' '
13338 ac_eD='%g'
13340 if test "${CONFIG_HEADERS+set}" != set; then
13342 cat >> $CONFIG_STATUS <<EOF
13343 CONFIG_HEADERS="include/config.h"
13345 cat >> $CONFIG_STATUS <<\EOF
13347 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
13348 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13349 case "$ac_file" in
13350 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13351 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13352 *) ac_file_in="${ac_file}.in" ;;
13353 esac
13355 echo creating $ac_file
13357 rm -f conftest.frag conftest.in conftest.out
13358 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13359 cat $ac_file_inputs > conftest.in
13363 # Transform confdefs.h into a sed script conftest.vals that substitutes
13364 # the proper values into config.h.in to produce config.h. And first:
13365 # Protect against being on the right side of a sed subst in config.status.
13366 # Protect against being in an unquoted here document in config.status.
13367 rm -f conftest.vals
13368 cat > conftest.hdr <<\EOF
13369 s/[\\&%]/\\&/g
13370 s%[\\$`]%\\&%g
13371 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
13372 s%ac_d%ac_u%gp
13373 s%ac_u%ac_e%gp
13375 sed -n -f conftest.hdr confdefs.h > conftest.vals
13376 rm -f conftest.hdr
13378 # This sed command replaces #undef with comments. This is necessary, for
13379 # example, in the case of _POSIX_SOURCE, which is predefined and required
13380 # on some systems where configure will not decide to define it.
13381 cat >> conftest.vals <<\EOF
13382 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
13385 # Break up conftest.vals because some shells have a limit on
13386 # the size of here documents, and old seds have small limits too.
13388 rm -f conftest.tail
13389 while :
13391 ac_lines=`grep -c . conftest.vals`
13392 # grep -c gives empty output for an empty file on some AIX systems.
13393 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
13394 # Write a limited-size here document to conftest.frag.
13395 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
13396 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
13397 echo 'CEOF
13398 sed -f conftest.frag conftest.in > conftest.out
13399 rm -f conftest.in
13400 mv conftest.out conftest.in
13401 ' >> $CONFIG_STATUS
13402 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
13403 rm -f conftest.vals
13404 mv conftest.tail conftest.vals
13405 done
13406 rm -f conftest.vals
13408 cat >> $CONFIG_STATUS <<\EOF
13409 rm -f conftest.frag conftest.h
13410 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
13411 cat conftest.in >> conftest.h
13412 rm -f conftest.in
13413 if cmp -s $ac_file conftest.h 2>/dev/null; then
13414 echo "$ac_file is unchanged"
13415 rm -f conftest.h
13416 else
13417 # Remove last slash and all that follows it. Not all systems have dirname.
13418 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13419 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13420 # The file is in a subdirectory.
13421 test ! -d "$ac_dir" && mkdir "$ac_dir"
13423 rm -f $ac_file
13424 mv conftest.h $ac_file
13426 fi; done
13429 cat >> $CONFIG_STATUS <<EOF
13432 cat >> $CONFIG_STATUS <<\EOF
13434 exit 0
13436 chmod +x $CONFIG_STATUS
13437 rm -fr confdefs* $ac_clean_files
13438 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1