typo on solaris when using GCC
[Samba.git] / source / configure
blobc3de45dd386a848b34509bd7f99acbfbc1561d02
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-piddir=DIR Where to put pid files ($ac_default_prefix/var/locks)"
23 ac_help="$ac_help
24 --with-swatdir=DIR Where to put SWAT files ($ac_default_prefix/swat)"
25 ac_help="$ac_help
26 --with-configdir=DIR Where to put configuration files (\$libdir)"
27 ac_help="$ac_help
28 --with-codepagedir=DIR Where to put codepage files (\$libdir/codepages)"
29 ac_help="$ac_help
30 --with-logfilebase=DIR Where to put log files (\$(VARDIR))"
31 ac_help="$ac_help
32 --enable-debug Turn on compiler debugging information (default=no)"
33 ac_help="$ac_help
34 --enable-cups Turn on CUPS support (default=auto)"
35 ac_help="$ac_help
36 --with-readline[=DIR] Look for readline include/libs in DIR (default=auto)"
37 ac_help="$ac_help
38 --with-smbwrapper Include SMB wrapper support (default=no)"
39 ac_help="$ac_help
40 --with-afs Include AFS support (default=no)"
41 ac_help="$ac_help
42 --with-dce-dfs Include DCE/DFS support (default=no)"
43 ac_help="$ac_help
44 --with-krb4=base-dir Include Kerberos IV support (default=no)"
45 ac_help="$ac_help
46 --with-krb5=base-dir Include Kerberos 5 support (default=no)"
47 ac_help="$ac_help
48 --with-automount Include AUTOMOUNT support (default=no)"
49 ac_help="$ac_help
50 --with-smbmount Include SMBMOUNT (Linux only) support (default=no)"
51 ac_help="$ac_help
52 --with-pam Include PAM password database support (default=no)"
53 ac_help="$ac_help
54 --with-pam_smbpass Include the smbpass PAM module (default=no)"
55 ac_help="$ac_help
56 --with-tdbsam Include experimental TDB SAM support (default=no)"
57 ac_help="$ac_help
58 --with-ldapsam Include experimental LDAP SAM support (default=no)"
59 ac_help="$ac_help
60 --with-nisplussam Include NISPLUS SAM support (default=no)"
61 ac_help="$ac_help
62 --with-nisplus-home Include NISPLUS_HOME support (default=no)"
63 ac_help="$ac_help
64 --with-ssl Include SSL support (default=no)
65 --with-sslinc=DIR Where the SSL includes are (defaults to /usr/local/ssl/include)
66 --with-ssllib=DIR Where the SSL libraries are (defaults to /usr/local/ssl/lib)"
67 ac_help="$ac_help
68 --with-syslog Include experimental SYSLOG support (default=no)"
69 ac_help="$ac_help
70 --with-profiling-data Include gathering source code profile information (default=no)"
71 ac_help="$ac_help
72 --with-quotas Include experimental disk-quota support (default=no)"
73 ac_help="$ac_help
74 --with-utmp Include experimental utmp accounting (default=no)"
75 ac_help="$ac_help
76 --with-msdfs Include MS Dfs support (default=no)"
77 ac_help="$ac_help
78 --with-libsmbclient Build the libsmbclient shared library (default=no)"
79 ac_help="$ac_help
80 --with-spinlocks Use spin locks instead of fcntl locks (default=no)"
81 ac_help="$ac_help
82 --with-acl-support Include ACL support (default=no)"
83 ac_help="$ac_help
84 --with-winbind Build winbind (default, if supported by OS)"
85 ac_help="$ac_help
86 --with-included-popt use bundled popt library, not from system"
88 # Initialize some variables set by options.
89 # The variables have the same names as the options, with
90 # dashes changed to underlines.
91 build=NONE
92 cache_file=./config.cache
93 exec_prefix=NONE
94 host=NONE
95 no_create=
96 nonopt=NONE
97 no_recursion=
98 prefix=NONE
99 program_prefix=NONE
100 program_suffix=NONE
101 program_transform_name=s,x,x,
102 silent=
103 site=
104 srcdir=
105 target=NONE
106 verbose=
107 x_includes=NONE
108 x_libraries=NONE
109 bindir='${exec_prefix}/bin'
110 sbindir='${exec_prefix}/sbin'
111 libexecdir='${exec_prefix}/libexec'
112 datadir='${prefix}/share'
113 sysconfdir='${prefix}/etc'
114 sharedstatedir='${prefix}/com'
115 localstatedir='${prefix}/var'
116 libdir='${exec_prefix}/lib'
117 includedir='${prefix}/include'
118 oldincludedir='/usr/include'
119 infodir='${prefix}/info'
120 mandir='${prefix}/man'
122 # Initialize some other variables.
123 subdirs=
124 MFLAGS= MAKEFLAGS=
125 SHELL=${CONFIG_SHELL-/bin/sh}
126 # Maximum number of lines to put in a shell here document.
127 ac_max_here_lines=12
129 ac_prev=
130 for ac_option
133 # If the previous option needs an argument, assign it.
134 if test -n "$ac_prev"; then
135 eval "$ac_prev=\$ac_option"
136 ac_prev=
137 continue
140 case "$ac_option" in
141 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
142 *) ac_optarg= ;;
143 esac
145 # Accept the important Cygnus configure options, so we can diagnose typos.
147 case "$ac_option" in
149 -bindir | --bindir | --bindi | --bind | --bin | --bi)
150 ac_prev=bindir ;;
151 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
152 bindir="$ac_optarg" ;;
154 -build | --build | --buil | --bui | --bu)
155 ac_prev=build ;;
156 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
157 build="$ac_optarg" ;;
159 -cache-file | --cache-file | --cache-fil | --cache-fi \
160 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
161 ac_prev=cache_file ;;
162 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
163 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
164 cache_file="$ac_optarg" ;;
166 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
167 ac_prev=datadir ;;
168 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
169 | --da=*)
170 datadir="$ac_optarg" ;;
172 -disable-* | --disable-*)
173 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
174 # Reject names that are not valid shell variable names.
175 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
176 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
178 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
179 eval "enable_${ac_feature}=no" ;;
181 -enable-* | --enable-*)
182 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
183 # Reject names that are not valid shell variable names.
184 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
185 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
187 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
188 case "$ac_option" in
189 *=*) ;;
190 *) ac_optarg=yes ;;
191 esac
192 eval "enable_${ac_feature}='$ac_optarg'" ;;
194 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
195 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
196 | --exec | --exe | --ex)
197 ac_prev=exec_prefix ;;
198 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
199 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
200 | --exec=* | --exe=* | --ex=*)
201 exec_prefix="$ac_optarg" ;;
203 -gas | --gas | --ga | --g)
204 # Obsolete; use --with-gas.
205 with_gas=yes ;;
207 -help | --help | --hel | --he)
208 # Omit some internal or obsolete options to make the list less imposing.
209 # This message is too long to be a string in the A/UX 3.1 sh.
210 cat << EOF
211 Usage: configure [options] [host]
212 Options: [defaults in brackets after descriptions]
213 Configuration:
214 --cache-file=FILE cache test results in FILE
215 --help print this message
216 --no-create do not create output files
217 --quiet, --silent do not print \`checking...' messages
218 --version print the version of autoconf that created configure
219 Directory and file names:
220 --prefix=PREFIX install architecture-independent files in PREFIX
221 [$ac_default_prefix]
222 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
223 [same as prefix]
224 --bindir=DIR user executables in DIR [EPREFIX/bin]
225 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
226 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
227 --datadir=DIR read-only architecture-independent data in DIR
228 [PREFIX/share]
229 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
230 --sharedstatedir=DIR modifiable architecture-independent data in DIR
231 [PREFIX/com]
232 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
233 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
234 --includedir=DIR C header files in DIR [PREFIX/include]
235 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
236 --infodir=DIR info documentation in DIR [PREFIX/info]
237 --mandir=DIR man documentation in DIR [PREFIX/man]
238 --srcdir=DIR find the sources in DIR [configure dir or ..]
239 --program-prefix=PREFIX prepend PREFIX to installed program names
240 --program-suffix=SUFFIX append SUFFIX to installed program names
241 --program-transform-name=PROGRAM
242 run sed PROGRAM on installed program names
244 cat << EOF
245 Host type:
246 --build=BUILD configure for building on BUILD [BUILD=HOST]
247 --host=HOST configure for HOST [guessed]
248 --target=TARGET configure for TARGET [TARGET=HOST]
249 Features and packages:
250 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
251 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
252 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
253 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
254 --x-includes=DIR X include files are in DIR
255 --x-libraries=DIR X library files are in DIR
257 if test -n "$ac_help"; then
258 echo "--enable and --with options recognized:$ac_help"
260 exit 0 ;;
262 -host | --host | --hos | --ho)
263 ac_prev=host ;;
264 -host=* | --host=* | --hos=* | --ho=*)
265 host="$ac_optarg" ;;
267 -includedir | --includedir | --includedi | --included | --include \
268 | --includ | --inclu | --incl | --inc)
269 ac_prev=includedir ;;
270 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
271 | --includ=* | --inclu=* | --incl=* | --inc=*)
272 includedir="$ac_optarg" ;;
274 -infodir | --infodir | --infodi | --infod | --info | --inf)
275 ac_prev=infodir ;;
276 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
277 infodir="$ac_optarg" ;;
279 -libdir | --libdir | --libdi | --libd)
280 ac_prev=libdir ;;
281 -libdir=* | --libdir=* | --libdi=* | --libd=*)
282 libdir="$ac_optarg" ;;
284 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
285 | --libexe | --libex | --libe)
286 ac_prev=libexecdir ;;
287 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
288 | --libexe=* | --libex=* | --libe=*)
289 libexecdir="$ac_optarg" ;;
291 -localstatedir | --localstatedir | --localstatedi | --localstated \
292 | --localstate | --localstat | --localsta | --localst \
293 | --locals | --local | --loca | --loc | --lo)
294 ac_prev=localstatedir ;;
295 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
296 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
297 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
298 localstatedir="$ac_optarg" ;;
300 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
301 ac_prev=mandir ;;
302 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
303 mandir="$ac_optarg" ;;
305 -nfp | --nfp | --nf)
306 # Obsolete; use --without-fp.
307 with_fp=no ;;
309 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
310 | --no-cr | --no-c)
311 no_create=yes ;;
313 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
314 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
315 no_recursion=yes ;;
317 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
318 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
319 | --oldin | --oldi | --old | --ol | --o)
320 ac_prev=oldincludedir ;;
321 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
322 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
323 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
324 oldincludedir="$ac_optarg" ;;
326 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
327 ac_prev=prefix ;;
328 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
329 prefix="$ac_optarg" ;;
331 -program-prefix | --program-prefix | --program-prefi | --program-pref \
332 | --program-pre | --program-pr | --program-p)
333 ac_prev=program_prefix ;;
334 -program-prefix=* | --program-prefix=* | --program-prefi=* \
335 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
336 program_prefix="$ac_optarg" ;;
338 -program-suffix | --program-suffix | --program-suffi | --program-suff \
339 | --program-suf | --program-su | --program-s)
340 ac_prev=program_suffix ;;
341 -program-suffix=* | --program-suffix=* | --program-suffi=* \
342 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
343 program_suffix="$ac_optarg" ;;
345 -program-transform-name | --program-transform-name \
346 | --program-transform-nam | --program-transform-na \
347 | --program-transform-n | --program-transform- \
348 | --program-transform | --program-transfor \
349 | --program-transfo | --program-transf \
350 | --program-trans | --program-tran \
351 | --progr-tra | --program-tr | --program-t)
352 ac_prev=program_transform_name ;;
353 -program-transform-name=* | --program-transform-name=* \
354 | --program-transform-nam=* | --program-transform-na=* \
355 | --program-transform-n=* | --program-transform-=* \
356 | --program-transform=* | --program-transfor=* \
357 | --program-transfo=* | --program-transf=* \
358 | --program-trans=* | --program-tran=* \
359 | --progr-tra=* | --program-tr=* | --program-t=*)
360 program_transform_name="$ac_optarg" ;;
362 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
363 | -silent | --silent | --silen | --sile | --sil)
364 silent=yes ;;
366 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
367 ac_prev=sbindir ;;
368 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
369 | --sbi=* | --sb=*)
370 sbindir="$ac_optarg" ;;
372 -sharedstatedir | --sharedstatedir | --sharedstatedi \
373 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
374 | --sharedst | --shareds | --shared | --share | --shar \
375 | --sha | --sh)
376 ac_prev=sharedstatedir ;;
377 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
378 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
379 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
380 | --sha=* | --sh=*)
381 sharedstatedir="$ac_optarg" ;;
383 -site | --site | --sit)
384 ac_prev=site ;;
385 -site=* | --site=* | --sit=*)
386 site="$ac_optarg" ;;
388 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
389 ac_prev=srcdir ;;
390 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
391 srcdir="$ac_optarg" ;;
393 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
394 | --syscon | --sysco | --sysc | --sys | --sy)
395 ac_prev=sysconfdir ;;
396 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
397 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
398 sysconfdir="$ac_optarg" ;;
400 -target | --target | --targe | --targ | --tar | --ta | --t)
401 ac_prev=target ;;
402 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
403 target="$ac_optarg" ;;
405 -v | -verbose | --verbose | --verbos | --verbo | --verb)
406 verbose=yes ;;
408 -version | --version | --versio | --versi | --vers)
409 echo "configure generated by autoconf version 2.13"
410 exit 0 ;;
412 -with-* | --with-*)
413 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
414 # Reject names that are not valid shell variable names.
415 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
416 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
418 ac_package=`echo $ac_package| sed 's/-/_/g'`
419 case "$ac_option" in
420 *=*) ;;
421 *) ac_optarg=yes ;;
422 esac
423 eval "with_${ac_package}='$ac_optarg'" ;;
425 -without-* | --without-*)
426 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
427 # Reject names that are not valid shell variable names.
428 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
429 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
431 ac_package=`echo $ac_package| sed 's/-/_/g'`
432 eval "with_${ac_package}=no" ;;
434 --x)
435 # Obsolete; use --with-x.
436 with_x=yes ;;
438 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
439 | --x-incl | --x-inc | --x-in | --x-i)
440 ac_prev=x_includes ;;
441 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
442 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
443 x_includes="$ac_optarg" ;;
445 -x-libraries | --x-libraries | --x-librarie | --x-librari \
446 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
447 ac_prev=x_libraries ;;
448 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
449 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
450 x_libraries="$ac_optarg" ;;
452 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
456 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
457 echo "configure: warning: $ac_option: invalid host type" 1>&2
459 if test "x$nonopt" != xNONE; then
460 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
462 nonopt="$ac_option"
465 esac
466 done
468 if test -n "$ac_prev"; then
469 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
472 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
474 # File descriptor usage:
475 # 0 standard input
476 # 1 file creation
477 # 2 errors and warnings
478 # 3 some systems may open it to /dev/tty
479 # 4 used on the Kubota Titan
480 # 6 checking for... messages and results
481 # 5 compiler messages saved in config.log
482 if test "$silent" = yes; then
483 exec 6>/dev/null
484 else
485 exec 6>&1
487 exec 5>./config.log
489 echo "\
490 This file contains any messages produced by compilers while
491 running configure, to aid debugging if configure makes a mistake.
492 " 1>&5
494 # Strip out --no-create and --no-recursion so they do not pile up.
495 # Also quote any args containing shell metacharacters.
496 ac_configure_args=
497 for ac_arg
499 case "$ac_arg" in
500 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
501 | --no-cr | --no-c) ;;
502 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
503 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
504 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
505 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
506 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
507 esac
508 done
510 # NLS nuisances.
511 # Only set these to C if already set. These must not be set unconditionally
512 # because not all systems understand e.g. LANG=C (notably SCO).
513 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
514 # Non-C LC_CTYPE values break the ctype check.
515 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
516 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
517 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
518 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
520 # confdefs.h avoids OS command line length limits that DEFS can exceed.
521 rm -rf conftest* confdefs.h
522 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
523 echo > confdefs.h
525 # A filename unique to this package, relative to the directory that
526 # configure is in, which we can look for to find out if srcdir is correct.
527 ac_unique_file=include/includes.h
529 # Find the source files, if location was not specified.
530 if test -z "$srcdir"; then
531 ac_srcdir_defaulted=yes
532 # Try the directory containing this script, then its parent.
533 ac_prog=$0
534 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
535 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
536 srcdir=$ac_confdir
537 if test ! -r $srcdir/$ac_unique_file; then
538 srcdir=..
540 else
541 ac_srcdir_defaulted=no
543 if test ! -r $srcdir/$ac_unique_file; then
544 if test "$ac_srcdir_defaulted" = yes; then
545 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
546 else
547 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
550 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
552 # Prefer explicitly selected file to automatically selected ones.
553 if test -z "$CONFIG_SITE"; then
554 if test "x$prefix" != xNONE; then
555 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
556 else
557 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
560 for ac_site_file in $CONFIG_SITE; do
561 if test -r "$ac_site_file"; then
562 echo "loading site script $ac_site_file"
563 . "$ac_site_file"
565 done
567 if test -r "$cache_file"; then
568 echo "loading cache $cache_file"
569 . $cache_file
570 else
571 echo "creating cache $cache_file"
572 > $cache_file
575 ac_ext=c
576 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
577 ac_cpp='$CPP $CPPFLAGS'
578 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
579 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
580 cross_compiling=$ac_cv_prog_cc_cross
582 ac_exeext=
583 ac_objext=o
584 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
585 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
586 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
587 ac_n= ac_c='
588 ' ac_t=' '
589 else
590 ac_n=-n ac_c= ac_t=
592 else
593 ac_n= ac_c='\c' ac_t=
599 #################################################
600 # Directory handling stuff to support both the
601 # legacy SAMBA directories and FHS compliant
602 # ones...
605 # Check whether --with-fhs or --without-fhs was given.
606 if test "${with_fhs+set}" = set; then
607 withval="$with_fhs"
608 codepagedir="\$(DATADIR)/samba/codepages"
609 configdir="${sysconfdir}/samba"
610 lockdir="\${VARDIR}/cache/samba"
611 piddir="\$(VARDIR)/run/samba"
612 logfilebase="\${VARDIR}/log/samba"
613 privatedir="\${CONFIGDIR}/private"
614 swatdir="\${DATADIR}/samba/swat"
615 else
616 codepagedir="\$(LIBDIR)/codepages"
617 configdir="\$(LIBDIR)"
618 logfilebase="\$(VARDIR)"
619 lockdir="\${VARDIR}/locks"
620 piddir="\$(VARDIR)/locks"
621 privatedir="\${prefix}/private"
622 swatdir="\${prefix}/swat"
626 #################################################
627 # set private directory location
628 # Check whether --with-privatedir or --without-privatedir was given.
629 if test "${with_privatedir+set}" = set; then
630 withval="$with_privatedir"
631 case "$withval" in
632 yes|no)
634 # Just in case anybody calls it without argument
636 echo "configure: warning: --with-privatedir called without argument - will use default" 1>&2
639 privatedir="$withval"
641 esac
645 #################################################
646 # set lock directory location
647 # Check whether --with-lockdir or --without-lockdir was given.
648 if test "${with_lockdir+set}" = set; then
649 withval="$with_lockdir"
650 case "$withval" in
651 yes|no)
653 # Just in case anybody calls it without argument
655 echo "configure: warning: --with-lockdir called without argument - will use default" 1>&2
658 lockdir="$withval"
660 esac
664 #################################################
665 # set pid directory location
666 # Check whether --with-piddir or --without-piddir was given.
667 if test "${with_piddir+set}" = set; then
668 withval="$with_piddir"
669 case "$withval" in
670 yes|no)
672 # Just in case anybody calls it without argument
674 echo "configure: warning: --with-piddir called without argument - will use default" 1>&2
677 piddir="$withval"
679 esac
683 #################################################
684 # set SWAT directory location
685 # Check whether --with-swatdir or --without-swatdir was given.
686 if test "${with_swatdir+set}" = set; then
687 withval="$with_swatdir"
688 case "$withval" in
689 yes|no)
691 # Just in case anybody does it
693 echo "configure: warning: --with-swatdir called without argument - will use default" 1>&2
696 swatdir="$withval"
698 esac
702 #################################################
703 # set configuration directory location
704 # Check whether --with-configdir or --without-configdir was given.
705 if test "${with_configdir+set}" = set; then
706 withval="$with_configdir"
707 case "$withval" in
708 yes|no)
710 # Just in case anybody does it
712 echo "configure: warning: --with-configdir called without argument - will use default" 1>&2
715 configdir="$withval"
717 esac
721 #################################################
722 # set codepage directory location
723 # Check whether --with-codepagedir or --without-codepagedir was given.
724 if test "${with_codepagedir+set}" = set; then
725 withval="$with_codepagedir"
726 case "$withval" in
727 yes|no)
729 # Just in case anybody does it
731 echo "configure: warning: --with-codepagedir called without argument - will use default" 1>&2
734 codepagedir="$withval"
736 esac
740 #################################################
741 # set log directory location
742 # Check whether --with-logfilebase or --without-logfilebase was given.
743 if test "${with_logfilebase+set}" = set; then
744 withval="$with_logfilebase"
745 case "$withval" in
746 yes|no)
748 # Just in case anybody does it
750 echo "configure: warning: --with-logfilebase called without argument - will use default" 1>&2
753 logfilebase="$withval"
755 esac
788 # compile with optimization and without debugging by default
789 CFLAGS="-O ${CFLAGS}"
791 # Check whether --enable-debug or --disable-debug was given.
792 if test "${enable_debug+set}" = set; then
793 enableval="$enable_debug"
794 if eval "test x$enable_debug = xyes"; then
795 CFLAGS="${CFLAGS} -g"
802 # Extract the first word of "gcc", so it can be a program name with args.
803 set dummy gcc; ac_word=$2
804 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
805 echo "configure:806: checking for $ac_word" >&5
806 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
807 echo $ac_n "(cached) $ac_c" 1>&6
808 else
809 if test -n "$CC"; then
810 ac_cv_prog_CC="$CC" # Let the user override the test.
811 else
812 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
813 ac_dummy="$PATH"
814 for ac_dir in $ac_dummy; do
815 test -z "$ac_dir" && ac_dir=.
816 if test -f $ac_dir/$ac_word; then
817 ac_cv_prog_CC="gcc"
818 break
820 done
821 IFS="$ac_save_ifs"
824 CC="$ac_cv_prog_CC"
825 if test -n "$CC"; then
826 echo "$ac_t""$CC" 1>&6
827 else
828 echo "$ac_t""no" 1>&6
831 if test -z "$CC"; then
832 # Extract the first word of "cc", so it can be a program name with args.
833 set dummy cc; ac_word=$2
834 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
835 echo "configure:836: checking for $ac_word" >&5
836 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
837 echo $ac_n "(cached) $ac_c" 1>&6
838 else
839 if test -n "$CC"; then
840 ac_cv_prog_CC="$CC" # Let the user override the test.
841 else
842 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
843 ac_prog_rejected=no
844 ac_dummy="$PATH"
845 for ac_dir in $ac_dummy; do
846 test -z "$ac_dir" && ac_dir=.
847 if test -f $ac_dir/$ac_word; then
848 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
849 ac_prog_rejected=yes
850 continue
852 ac_cv_prog_CC="cc"
853 break
855 done
856 IFS="$ac_save_ifs"
857 if test $ac_prog_rejected = yes; then
858 # We found a bogon in the path, so make sure we never use it.
859 set dummy $ac_cv_prog_CC
860 shift
861 if test $# -gt 0; then
862 # We chose a different compiler from the bogus one.
863 # However, it has the same basename, so the bogon will be chosen
864 # first if we set CC to just the basename; use the full file name.
865 shift
866 set dummy "$ac_dir/$ac_word" "$@"
867 shift
868 ac_cv_prog_CC="$@"
873 CC="$ac_cv_prog_CC"
874 if test -n "$CC"; then
875 echo "$ac_t""$CC" 1>&6
876 else
877 echo "$ac_t""no" 1>&6
880 if test -z "$CC"; then
881 case "`uname -s`" in
882 *win32* | *WIN32*)
883 # Extract the first word of "cl", so it can be a program name with args.
884 set dummy cl; ac_word=$2
885 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
886 echo "configure:887: checking for $ac_word" >&5
887 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
888 echo $ac_n "(cached) $ac_c" 1>&6
889 else
890 if test -n "$CC"; then
891 ac_cv_prog_CC="$CC" # Let the user override the test.
892 else
893 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
894 ac_dummy="$PATH"
895 for ac_dir in $ac_dummy; do
896 test -z "$ac_dir" && ac_dir=.
897 if test -f $ac_dir/$ac_word; then
898 ac_cv_prog_CC="cl"
899 break
901 done
902 IFS="$ac_save_ifs"
905 CC="$ac_cv_prog_CC"
906 if test -n "$CC"; then
907 echo "$ac_t""$CC" 1>&6
908 else
909 echo "$ac_t""no" 1>&6
912 esac
914 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
917 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
918 echo "configure:919: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
920 ac_ext=c
921 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
922 ac_cpp='$CPP $CPPFLAGS'
923 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
924 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
925 cross_compiling=$ac_cv_prog_cc_cross
927 cat > conftest.$ac_ext << EOF
929 #line 930 "configure"
930 #include "confdefs.h"
932 main(){return(0);}
934 if { (eval echo configure:935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
935 ac_cv_prog_cc_works=yes
936 # If we can't run a trivial program, we are probably using a cross compiler.
937 if (./conftest; exit) 2>/dev/null; then
938 ac_cv_prog_cc_cross=no
939 else
940 ac_cv_prog_cc_cross=yes
942 else
943 echo "configure: failed program was:" >&5
944 cat conftest.$ac_ext >&5
945 ac_cv_prog_cc_works=no
947 rm -fr conftest*
948 ac_ext=c
949 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
950 ac_cpp='$CPP $CPPFLAGS'
951 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
952 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
953 cross_compiling=$ac_cv_prog_cc_cross
955 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
956 if test $ac_cv_prog_cc_works = no; then
957 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
959 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
960 echo "configure:961: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
961 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
962 cross_compiling=$ac_cv_prog_cc_cross
964 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
965 echo "configure:966: checking whether we are using GNU C" >&5
966 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
967 echo $ac_n "(cached) $ac_c" 1>&6
968 else
969 cat > conftest.c <<EOF
970 #ifdef __GNUC__
971 yes;
972 #endif
974 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:975: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
975 ac_cv_prog_gcc=yes
976 else
977 ac_cv_prog_gcc=no
981 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
983 if test $ac_cv_prog_gcc = yes; then
984 GCC=yes
985 else
986 GCC=
989 ac_test_CFLAGS="${CFLAGS+set}"
990 ac_save_CFLAGS="$CFLAGS"
991 CFLAGS=
992 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
993 echo "configure:994: checking whether ${CC-cc} accepts -g" >&5
994 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
995 echo $ac_n "(cached) $ac_c" 1>&6
996 else
997 echo 'void f(){}' > conftest.c
998 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
999 ac_cv_prog_cc_g=yes
1000 else
1001 ac_cv_prog_cc_g=no
1003 rm -f conftest*
1007 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1008 if test "$ac_test_CFLAGS" = set; then
1009 CFLAGS="$ac_save_CFLAGS"
1010 elif test $ac_cv_prog_cc_g = yes; then
1011 if test "$GCC" = yes; then
1012 CFLAGS="-g -O2"
1013 else
1014 CFLAGS="-g"
1016 else
1017 if test "$GCC" = yes; then
1018 CFLAGS="-O2"
1019 else
1020 CFLAGS=
1024 ac_aux_dir=
1025 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1026 if test -f $ac_dir/install-sh; then
1027 ac_aux_dir=$ac_dir
1028 ac_install_sh="$ac_aux_dir/install-sh -c"
1029 break
1030 elif test -f $ac_dir/install.sh; then
1031 ac_aux_dir=$ac_dir
1032 ac_install_sh="$ac_aux_dir/install.sh -c"
1033 break
1035 done
1036 if test -z "$ac_aux_dir"; then
1037 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1039 ac_config_guess=$ac_aux_dir/config.guess
1040 ac_config_sub=$ac_aux_dir/config.sub
1041 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1043 # Find a good install program. We prefer a C program (faster),
1044 # so one script is as good as another. But avoid the broken or
1045 # incompatible versions:
1046 # SysV /etc/install, /usr/sbin/install
1047 # SunOS /usr/etc/install
1048 # IRIX /sbin/install
1049 # AIX /bin/install
1050 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1051 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1052 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1053 # ./install, which can be erroneously created by make from ./install.sh.
1054 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1055 echo "configure:1056: checking for a BSD compatible install" >&5
1056 if test -z "$INSTALL"; then
1057 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1058 echo $ac_n "(cached) $ac_c" 1>&6
1059 else
1060 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1061 for ac_dir in $PATH; do
1062 # Account for people who put trailing slashes in PATH elements.
1063 case "$ac_dir/" in
1064 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1066 # OSF1 and SCO ODT 3.0 have their own names for install.
1067 # Don't use installbsd from OSF since it installs stuff as root
1068 # by default.
1069 for ac_prog in ginstall scoinst install; do
1070 if test -f $ac_dir/$ac_prog; then
1071 if test $ac_prog = install &&
1072 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1073 # AIX install. It has an incompatible calling convention.
1075 else
1076 ac_cv_path_install="$ac_dir/$ac_prog -c"
1077 break 2
1080 done
1082 esac
1083 done
1084 IFS="$ac_save_IFS"
1087 if test "${ac_cv_path_install+set}" = set; then
1088 INSTALL="$ac_cv_path_install"
1089 else
1090 # As a last resort, use the slow shell script. We don't cache a
1091 # path for INSTALL within a source directory, because that will
1092 # break other packages using the cache if that directory is
1093 # removed, or if the path is relative.
1094 INSTALL="$ac_install_sh"
1097 echo "$ac_t""$INSTALL" 1>&6
1099 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1100 # It thinks the first close brace ends the variable substitution.
1101 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1103 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1105 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1107 for ac_prog in gawk mawk nawk awk
1109 # Extract the first word of "$ac_prog", so it can be a program name with args.
1110 set dummy $ac_prog; ac_word=$2
1111 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1112 echo "configure:1113: checking for $ac_word" >&5
1113 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1114 echo $ac_n "(cached) $ac_c" 1>&6
1115 else
1116 if test -n "$AWK"; then
1117 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1118 else
1119 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1120 ac_dummy="$PATH"
1121 for ac_dir in $ac_dummy; do
1122 test -z "$ac_dir" && ac_dir=.
1123 if test -f $ac_dir/$ac_word; then
1124 ac_cv_prog_AWK="$ac_prog"
1125 break
1127 done
1128 IFS="$ac_save_ifs"
1131 AWK="$ac_cv_prog_AWK"
1132 if test -n "$AWK"; then
1133 echo "$ac_t""$AWK" 1>&6
1134 else
1135 echo "$ac_t""no" 1>&6
1138 test -n "$AWK" && break
1139 done
1141 # Extract the first word of "passwd", so it can be a program name with args.
1142 set dummy passwd; ac_word=$2
1143 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1144 echo "configure:1145: checking for $ac_word" >&5
1145 if eval "test \"`echo '$''{'ac_cv_path_passwd_program'+set}'`\" = set"; then
1146 echo $ac_n "(cached) $ac_c" 1>&6
1147 else
1148 case "$passwd_program" in
1150 ac_cv_path_passwd_program="$passwd_program" # Let the user override the test with a path.
1152 ?:/*)
1153 ac_cv_path_passwd_program="$passwd_program" # Let the user override the test with a dos path.
1156 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1157 ac_dummy="$PATH"
1158 for ac_dir in $ac_dummy; do
1159 test -z "$ac_dir" && ac_dir=.
1160 if test -f $ac_dir/$ac_word; then
1161 ac_cv_path_passwd_program="$ac_dir/$ac_word"
1162 break
1164 done
1165 IFS="$ac_save_ifs"
1166 test -z "$ac_cv_path_passwd_program" && ac_cv_path_passwd_program="/bin/passwd"
1168 esac
1170 passwd_program="$ac_cv_path_passwd_program"
1171 if test -n "$passwd_program"; then
1172 echo "$ac_t""$passwd_program" 1>&6
1173 else
1174 echo "$ac_t""no" 1>&6
1179 if test "x$CC" != xcc; then
1180 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1181 echo "configure:1182: checking whether $CC and cc understand -c and -o together" >&5
1182 else
1183 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1184 echo "configure:1185: checking whether cc understands -c and -o together" >&5
1186 set dummy $CC; ac_cc="`echo $2 |
1187 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1188 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1189 echo $ac_n "(cached) $ac_c" 1>&6
1190 else
1191 echo 'foo(){}' > conftest.c
1192 # Make sure it works both with $CC and with simple cc.
1193 # We do the test twice because some compilers refuse to overwrite an
1194 # existing .o file with -o, though they will create one.
1195 ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1196 if { (eval echo configure:1197: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1197 test -f conftest.o && { (eval echo configure:1198: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1198 then
1199 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
1200 if test "x$CC" != xcc; then
1201 # Test first that cc exists at all.
1202 if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:1203: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1203 ac_try='cc -c conftest.c -o conftest.o 1>&5'
1204 if { (eval echo configure:1205: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1205 test -f conftest.o && { (eval echo configure:1206: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1206 then
1207 # cc works too.
1209 else
1210 # cc exists but doesn't like -o.
1211 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1215 else
1216 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1218 rm -f conftest*
1221 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1222 echo "$ac_t""yes" 1>&6
1223 else
1224 echo "$ac_t""no" 1>&6
1225 cat >> confdefs.h <<\EOF
1226 #define NO_MINUS_C_MINUS_O 1
1231 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1232 BROKEN_CC=
1233 else
1234 BROKEN_CC=#
1238 echo $ac_n "checking that the C compiler understands volatile""... $ac_c" 1>&6
1239 echo "configure:1240: checking that the C compiler understands volatile" >&5
1240 if eval "test \"`echo '$''{'samba_cv_volatile'+set}'`\" = set"; then
1241 echo $ac_n "(cached) $ac_c" 1>&6
1242 else
1244 cat > conftest.$ac_ext <<EOF
1245 #line 1246 "configure"
1246 #include "confdefs.h"
1247 #include <sys/types.h>
1248 int main() {
1249 volatile int i = 0
1250 ; return 0; }
1252 if { (eval echo configure:1253: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1253 rm -rf conftest*
1254 samba_cv_volatile=yes
1255 else
1256 echo "configure: failed program was:" >&5
1257 cat conftest.$ac_ext >&5
1258 rm -rf conftest*
1259 samba_cv_volatile=no
1261 rm -f conftest*
1264 echo "$ac_t""$samba_cv_volatile" 1>&6
1265 if test x"$samba_cv_volatile" = x"yes"; then
1266 cat >> confdefs.h <<\EOF
1267 #define HAVE_VOLATILE 1
1275 # Do some error checking and defaulting for the host and target type.
1276 # The inputs are:
1277 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1279 # The rules are:
1280 # 1. You are not allowed to specify --host, --target, and nonopt at the
1281 # same time.
1282 # 2. Host defaults to nonopt.
1283 # 3. If nonopt is not specified, then host defaults to the current host,
1284 # as determined by config.guess.
1285 # 4. Target and build default to nonopt.
1286 # 5. If nonopt is not specified, then target and build default to host.
1288 # The aliases save the names the user supplied, while $host etc.
1289 # will get canonicalized.
1290 case $host---$target---$nonopt in
1291 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1292 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1293 esac
1296 # Make sure we can run config.sub.
1297 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1298 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1301 echo $ac_n "checking host system type""... $ac_c" 1>&6
1302 echo "configure:1303: checking host system type" >&5
1304 host_alias=$host
1305 case "$host_alias" in
1306 NONE)
1307 case $nonopt in
1308 NONE)
1309 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1310 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1311 fi ;;
1312 *) host_alias=$nonopt ;;
1313 esac ;;
1314 esac
1316 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1317 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1318 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1319 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1320 echo "$ac_t""$host" 1>&6
1322 echo $ac_n "checking target system type""... $ac_c" 1>&6
1323 echo "configure:1324: checking target system type" >&5
1325 target_alias=$target
1326 case "$target_alias" in
1327 NONE)
1328 case $nonopt in
1329 NONE) target_alias=$host_alias ;;
1330 *) target_alias=$nonopt ;;
1331 esac ;;
1332 esac
1334 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1335 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1336 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1337 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1338 echo "$ac_t""$target" 1>&6
1340 echo $ac_n "checking build system type""... $ac_c" 1>&6
1341 echo "configure:1342: checking build system type" >&5
1343 build_alias=$build
1344 case "$build_alias" in
1345 NONE)
1346 case $nonopt in
1347 NONE) build_alias=$host_alias ;;
1348 *) build_alias=$nonopt ;;
1349 esac ;;
1350 esac
1352 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1353 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1354 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1355 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1356 echo "$ac_t""$build" 1>&6
1358 test "$host_alias" != "$target_alias" &&
1359 test "$program_prefix$program_suffix$program_transform_name" = \
1360 NONENONEs,x,x, &&
1361 program_prefix=${target_alias}-
1364 case "$host_os" in
1365 *irix6*) cat >> confdefs.h <<\EOF
1366 #include <standards.h>
1370 esac
1374 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
1375 echo "configure:1376: checking config.cache system type" >&5
1376 if { test x"${ac_cv_host_system_type+set}" = x"set" &&
1377 test x"$ac_cv_host_system_type" != x"$host"; } ||
1378 { test x"${ac_cv_build_system_type+set}" = x"set" &&
1379 test x"$ac_cv_build_system_type" != x"$build"; } ||
1380 { test x"${ac_cv_target_system_type+set}" = x"set" &&
1381 test x"$ac_cv_target_system_type" != x"$target"; }; then
1382 echo "$ac_t""different" 1>&6
1383 { echo "configure: error: "you must remove config.cache and restart configure"" 1>&2; exit 1; }
1384 else
1385 echo "$ac_t""same" 1>&6
1387 ac_cv_host_system_type="$host"
1388 ac_cv_build_system_type="$build"
1389 ac_cv_target_system_type="$target"
1392 DYNEXP=
1395 # Config CPPFLAG settings for strange OS's that must be set
1396 # before other tests.
1398 case "$host_os" in
1399 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1400 *hpux*)
1401 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1402 echo "configure:1403: checking whether ${CC-cc} accepts -Ae" >&5
1403 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1404 echo $ac_n "(cached) $ac_c" 1>&6
1405 else
1406 echo 'void f(){}' > conftest.c
1407 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1408 ac_cv_prog_cc_Ae=yes
1409 else
1410 ac_cv_prog_cc_Ae=no
1412 rm -f conftest*
1416 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1417 # mmap on HPUX is completely broken...
1418 cat >> confdefs.h <<\EOF
1419 #define MMAP_BLACKLIST 1
1422 if test $ac_cv_prog_cc_Ae = yes; then
1423 CPPFLAGS="$CPPFLAGS -Ae"
1426 # Defines needed for HPUX support.
1427 # HPUX has bigcrypt but (sometimes?) doesn't use it for
1428 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
1430 case `uname -r` in
1431 *9*|*10*)
1432 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4"
1433 cat >> confdefs.h <<\EOF
1434 #define USE_BOTH_CRYPT_CALLS 1
1437 cat >> confdefs.h <<\EOF
1438 #define _HPUX_SOURCE 1
1441 cat >> confdefs.h <<\EOF
1442 #define _POSIX_SOURCE 1
1445 cat >> confdefs.h <<\EOF
1446 #define _ALIGNMENT_REQUIRED 1
1449 cat >> confdefs.h <<\EOF
1450 #define _MAX_ALIGNMENT 4
1454 *11*)
1455 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4"
1456 cat >> confdefs.h <<\EOF
1457 #define _HPUX_SOURCE 1
1460 cat >> confdefs.h <<\EOF
1461 #define _POSIX_SOURCE 1
1464 cat >> confdefs.h <<\EOF
1465 #define _LARGEFILE64_SOURCE 1
1468 cat >> confdefs.h <<\EOF
1469 #define _ALIGNMENT_REQUIRED 1
1472 cat >> confdefs.h <<\EOF
1473 #define _MAX_ALIGNMENT 4
1476 cat >> confdefs.h <<\EOF
1477 #define USE_BOTH_CRYPT_CALLS 1
1481 esac
1482 DYNEXP="-Wl,-E"
1487 # CRAY Unicos has broken const handling
1488 *unicos*)
1489 echo "$ac_t""disabling const" 1>&6
1490 CPPFLAGS="$CPPFLAGS -Dconst="
1494 # AIX4.x doesn't even admit to having large
1495 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1497 *aix4*)
1498 echo "$ac_t""enabling large file support" 1>&6
1499 CPPFLAGS="$CPPFLAGS -D_LARGE_FILES"
1500 cat >> confdefs.h <<\EOF
1501 #define _LARGE_FILES 1
1506 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
1507 # to the existance of large files..
1508 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
1509 # recommendations on large file support, however it makes the
1510 # compile work using gcc 2.7 and 2.8, whereas using the Sun
1511 # recommendation makes the compile fail on gcc2.7. JRA.
1513 *solaris*)
1514 case `uname -r` in
1515 5.0*|5.1*|5.2*|5.3*|5.5*)
1516 echo "$ac_t""no large file support" 1>&6
1518 5.*)
1519 echo "$ac_t""enabling large file support" 1>&6
1520 if test "$ac_cv_prog_gcc" = yes; then
1521 ${CC-cc} -v >conftest.c 2>&1
1522 ac_cv_gcc_compiler_version_number=`grep 'gcc version' conftest.c`
1523 rm -fr conftest.c
1524 case "$ac_cv_gcc_compiler_version_number" in
1525 *"gcc version 2.6"*|*"gcc version 2.7"*)
1526 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
1527 cat >> confdefs.h <<\EOF
1528 #define _LARGEFILE64_SOURCE 1
1533 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1534 cat >> confdefs.h <<\EOF
1535 #define _LARGEFILE64_SOURCE 1
1538 cat >> confdefs.h <<\EOF
1539 #define _FILE_OFFSET_BITS 64
1543 esac
1544 else
1545 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1546 cat >> confdefs.h <<\EOF
1547 #define _LARGEFILE64_SOURCE 1
1550 cat >> confdefs.h <<\EOF
1551 #define _FILE_OFFSET_BITS 64
1556 esac
1559 # Tests needed for SINIX large file support.
1561 *sysv4*)
1562 if test $host = mips-sni-sysv4 ; then
1563 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1564 echo "configure:1565: checking for LFS support" >&5
1565 old_CPPFLAGS="$CPPFLAGS"
1566 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1567 if test "$cross_compiling" = yes; then
1568 SINIX_LFS_SUPPORT=cross
1569 else
1570 cat > conftest.$ac_ext <<EOF
1571 #line 1572 "configure"
1572 #include "confdefs.h"
1574 #include <unistd.h>
1575 main () {
1576 #if _LFS64_LARGEFILE == 1
1577 exit(0);
1578 #else
1579 exit(1);
1580 #endif
1583 if { (eval echo configure:1584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1584 then
1585 SINIX_LFS_SUPPORT=yes
1586 else
1587 echo "configure: failed program was:" >&5
1588 cat conftest.$ac_ext >&5
1589 rm -fr conftest*
1590 SINIX_LFS_SUPPORT=no
1592 rm -fr conftest*
1595 CPPFLAGS="$old_CPPFLAGS"
1596 if test x$SINIX_LFS_SUPPORT = xyes ; then
1597 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1598 cat >> confdefs.h <<\EOF
1599 #define _LARGEFILE64_SOURCE 1
1602 CFLAGS="`getconf LFS64_CFLAGS` $CFLAGS"
1603 LDFLAGS="`getconf LFS64_LDFLAGS` $LDFLAGS"
1604 LIBS="`getconf LFS64_LIBS` $LIBS"
1606 echo "$ac_t""$SINIX_LFS_SUPPORT" 1>&6
1610 # Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
1612 *linux*)
1613 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1614 echo "configure:1615: checking for LFS support" >&5
1615 old_CPPFLAGS="$CPPFLAGS"
1616 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1617 if test "$cross_compiling" = yes; then
1618 LINUX_LFS_SUPPORT=cross
1619 else
1620 cat > conftest.$ac_ext <<EOF
1621 #line 1622 "configure"
1622 #include "confdefs.h"
1624 #include <unistd.h>
1625 #include <sys/utsname.h>
1626 main() {
1627 #if _LFS64_LARGEFILE == 1
1628 struct utsname uts;
1629 char *release;
1630 int major, minor;
1632 /* Ensure this is glibc 2.2 or higher */
1633 #if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
1634 int libc_major = __GLIBC__;
1635 int libc_minor = __GLIBC_MINOR__;
1637 if (libc_major < 2)
1638 exit(1);
1639 if (libc_minor < 2)
1640 exit(1);
1641 #endif
1643 /* Ensure this is kernel 2.4 or higher */
1645 uname(&uts);
1646 release = uts.release;
1647 major = atoi(strsep(&release, "."));
1648 minor = atoi(strsep(&release, "."));
1650 if (major > 2 || (major == 2 && minor > 3))
1651 exit(0);
1652 exit(1);
1653 #else
1654 exit(1);
1655 #endif
1659 if { (eval echo configure:1660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1660 then
1661 LINUX_LFS_SUPPORT=yes
1662 else
1663 echo "configure: failed program was:" >&5
1664 cat conftest.$ac_ext >&5
1665 rm -fr conftest*
1666 LINUX_LFS_SUPPORT=no
1668 rm -fr conftest*
1671 CPPFLAGS="$old_CPPFLAGS"
1672 if test x$LINUX_LFS_SUPPORT = xyes ; then
1673 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1674 cat >> confdefs.h <<\EOF
1675 #define _LARGEFILE64_SOURCE 1
1678 cat >> confdefs.h <<\EOF
1679 #define _FILE_OFFSET_BITS 64
1682 cat >> confdefs.h <<\EOF
1683 #define _GNU_SOURCE 1
1687 echo "$ac_t""$LINUX_LFS_SUPPORT" 1>&6
1690 *hurd*)
1691 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1692 echo "configure:1693: checking for LFS support" >&5
1693 old_CPPFLAGS="$CPPFLAGS"
1694 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1695 if test "$cross_compiling" = yes; then
1696 GLIBC_LFS_SUPPORT=cross
1697 else
1698 cat > conftest.$ac_ext <<EOF
1699 #line 1700 "configure"
1700 #include "confdefs.h"
1702 #include <unistd.h>
1703 main () {
1704 #if _LFS64_LARGEFILE == 1
1705 exit(0);
1706 #else
1707 exit(1);
1708 #endif
1711 if { (eval echo configure:1712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1712 then
1713 GLIBC_LFS_SUPPORT=yes
1714 else
1715 echo "configure: failed program was:" >&5
1716 cat conftest.$ac_ext >&5
1717 rm -fr conftest*
1718 GLIBC_LFS_SUPPORT=no
1720 rm -fr conftest*
1723 CPPFLAGS="$old_CPPFLAGS"
1724 if test x$GLIBC_LFS_SUPPORT = xyes ; then
1725 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1726 cat >> confdefs.h <<\EOF
1727 #define _LARGEFILE64_SOURCE 1
1730 cat >> confdefs.h <<\EOF
1731 #define _GNU_SOURCE 1
1735 echo "$ac_t""$GLIBC_LFS_SUPPORT" 1>&6
1738 esac
1740 echo $ac_n "checking for inline""... $ac_c" 1>&6
1741 echo "configure:1742: checking for inline" >&5
1742 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1743 echo $ac_n "(cached) $ac_c" 1>&6
1744 else
1745 ac_cv_c_inline=no
1746 for ac_kw in inline __inline__ __inline; do
1747 cat > conftest.$ac_ext <<EOF
1748 #line 1749 "configure"
1749 #include "confdefs.h"
1751 int main() {
1752 } $ac_kw foo() {
1753 ; return 0; }
1755 if { (eval echo configure:1756: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1756 rm -rf conftest*
1757 ac_cv_c_inline=$ac_kw; break
1758 else
1759 echo "configure: failed program was:" >&5
1760 cat conftest.$ac_ext >&5
1762 rm -f conftest*
1763 done
1767 echo "$ac_t""$ac_cv_c_inline" 1>&6
1768 case "$ac_cv_c_inline" in
1769 inline | yes) ;;
1770 no) cat >> confdefs.h <<\EOF
1771 #define inline
1774 *) cat >> confdefs.h <<EOF
1775 #define inline $ac_cv_c_inline
1778 esac
1780 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1781 echo "configure:1782: checking how to run the C preprocessor" >&5
1782 # On Suns, sometimes $CPP names a directory.
1783 if test -n "$CPP" && test -d "$CPP"; then
1784 CPP=
1786 if test -z "$CPP"; then
1787 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1788 echo $ac_n "(cached) $ac_c" 1>&6
1789 else
1790 # This must be in double quotes, not single quotes, because CPP may get
1791 # substituted into the Makefile and "${CC-cc}" will confuse make.
1792 CPP="${CC-cc} -E"
1793 # On the NeXT, cc -E runs the code through the compiler's parser,
1794 # not just through cpp.
1795 cat > conftest.$ac_ext <<EOF
1796 #line 1797 "configure"
1797 #include "confdefs.h"
1798 #include <assert.h>
1799 Syntax Error
1801 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1802 { (eval echo configure:1803: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1803 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1804 if test -z "$ac_err"; then
1806 else
1807 echo "$ac_err" >&5
1808 echo "configure: failed program was:" >&5
1809 cat conftest.$ac_ext >&5
1810 rm -rf conftest*
1811 CPP="${CC-cc} -E -traditional-cpp"
1812 cat > conftest.$ac_ext <<EOF
1813 #line 1814 "configure"
1814 #include "confdefs.h"
1815 #include <assert.h>
1816 Syntax Error
1818 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1819 { (eval echo configure:1820: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1820 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1821 if test -z "$ac_err"; then
1823 else
1824 echo "$ac_err" >&5
1825 echo "configure: failed program was:" >&5
1826 cat conftest.$ac_ext >&5
1827 rm -rf conftest*
1828 CPP="${CC-cc} -nologo -E"
1829 cat > conftest.$ac_ext <<EOF
1830 #line 1831 "configure"
1831 #include "confdefs.h"
1832 #include <assert.h>
1833 Syntax Error
1835 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1836 { (eval echo configure:1837: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1837 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1838 if test -z "$ac_err"; then
1840 else
1841 echo "$ac_err" >&5
1842 echo "configure: failed program was:" >&5
1843 cat conftest.$ac_ext >&5
1844 rm -rf conftest*
1845 CPP=/lib/cpp
1847 rm -f conftest*
1849 rm -f conftest*
1851 rm -f conftest*
1852 ac_cv_prog_CPP="$CPP"
1854 CPP="$ac_cv_prog_CPP"
1855 else
1856 ac_cv_prog_CPP="$CPP"
1858 echo "$ac_t""$CPP" 1>&6
1860 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1861 echo "configure:1862: checking for ANSI C header files" >&5
1862 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1863 echo $ac_n "(cached) $ac_c" 1>&6
1864 else
1865 cat > conftest.$ac_ext <<EOF
1866 #line 1867 "configure"
1867 #include "confdefs.h"
1868 #include <stdlib.h>
1869 #include <stdarg.h>
1870 #include <string.h>
1871 #include <float.h>
1873 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1874 { (eval echo configure:1875: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1875 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1876 if test -z "$ac_err"; then
1877 rm -rf conftest*
1878 ac_cv_header_stdc=yes
1879 else
1880 echo "$ac_err" >&5
1881 echo "configure: failed program was:" >&5
1882 cat conftest.$ac_ext >&5
1883 rm -rf conftest*
1884 ac_cv_header_stdc=no
1886 rm -f conftest*
1888 if test $ac_cv_header_stdc = yes; then
1889 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1890 cat > conftest.$ac_ext <<EOF
1891 #line 1892 "configure"
1892 #include "confdefs.h"
1893 #include <string.h>
1895 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1896 egrep "memchr" >/dev/null 2>&1; then
1898 else
1899 rm -rf conftest*
1900 ac_cv_header_stdc=no
1902 rm -f conftest*
1906 if test $ac_cv_header_stdc = yes; then
1907 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1908 cat > conftest.$ac_ext <<EOF
1909 #line 1910 "configure"
1910 #include "confdefs.h"
1911 #include <stdlib.h>
1913 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1914 egrep "free" >/dev/null 2>&1; then
1916 else
1917 rm -rf conftest*
1918 ac_cv_header_stdc=no
1920 rm -f conftest*
1924 if test $ac_cv_header_stdc = yes; then
1925 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1926 if test "$cross_compiling" = yes; then
1928 else
1929 cat > conftest.$ac_ext <<EOF
1930 #line 1931 "configure"
1931 #include "confdefs.h"
1932 #include <ctype.h>
1933 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1934 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1935 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1936 int main () { int i; for (i = 0; i < 256; i++)
1937 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1938 exit (0); }
1941 if { (eval echo configure:1942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1942 then
1944 else
1945 echo "configure: failed program was:" >&5
1946 cat conftest.$ac_ext >&5
1947 rm -fr conftest*
1948 ac_cv_header_stdc=no
1950 rm -fr conftest*
1956 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1957 if test $ac_cv_header_stdc = yes; then
1958 cat >> confdefs.h <<\EOF
1959 #define STDC_HEADERS 1
1964 ac_header_dirent=no
1965 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1967 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1968 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1969 echo "configure:1970: checking for $ac_hdr that defines DIR" >&5
1970 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1971 echo $ac_n "(cached) $ac_c" 1>&6
1972 else
1973 cat > conftest.$ac_ext <<EOF
1974 #line 1975 "configure"
1975 #include "confdefs.h"
1976 #include <sys/types.h>
1977 #include <$ac_hdr>
1978 int main() {
1979 DIR *dirp = 0;
1980 ; return 0; }
1982 if { (eval echo configure:1983: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1983 rm -rf conftest*
1984 eval "ac_cv_header_dirent_$ac_safe=yes"
1985 else
1986 echo "configure: failed program was:" >&5
1987 cat conftest.$ac_ext >&5
1988 rm -rf conftest*
1989 eval "ac_cv_header_dirent_$ac_safe=no"
1991 rm -f conftest*
1993 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1994 echo "$ac_t""yes" 1>&6
1995 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1996 cat >> confdefs.h <<EOF
1997 #define $ac_tr_hdr 1
1999 ac_header_dirent=$ac_hdr; break
2000 else
2001 echo "$ac_t""no" 1>&6
2003 done
2004 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2005 if test $ac_header_dirent = dirent.h; then
2006 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2007 echo "configure:2008: checking for opendir in -ldir" >&5
2008 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2009 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2010 echo $ac_n "(cached) $ac_c" 1>&6
2011 else
2012 ac_save_LIBS="$LIBS"
2013 LIBS="-ldir $LIBS"
2014 cat > conftest.$ac_ext <<EOF
2015 #line 2016 "configure"
2016 #include "confdefs.h"
2017 /* Override any gcc2 internal prototype to avoid an error. */
2018 /* We use char because int might match the return type of a gcc2
2019 builtin and then its argument prototype would still apply. */
2020 char opendir();
2022 int main() {
2023 opendir()
2024 ; return 0; }
2026 if { (eval echo configure:2027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2027 rm -rf conftest*
2028 eval "ac_cv_lib_$ac_lib_var=yes"
2029 else
2030 echo "configure: failed program was:" >&5
2031 cat conftest.$ac_ext >&5
2032 rm -rf conftest*
2033 eval "ac_cv_lib_$ac_lib_var=no"
2035 rm -f conftest*
2036 LIBS="$ac_save_LIBS"
2039 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2040 echo "$ac_t""yes" 1>&6
2041 LIBS="$LIBS -ldir"
2042 else
2043 echo "$ac_t""no" 1>&6
2046 else
2047 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2048 echo "configure:2049: checking for opendir in -lx" >&5
2049 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2050 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2051 echo $ac_n "(cached) $ac_c" 1>&6
2052 else
2053 ac_save_LIBS="$LIBS"
2054 LIBS="-lx $LIBS"
2055 cat > conftest.$ac_ext <<EOF
2056 #line 2057 "configure"
2057 #include "confdefs.h"
2058 /* Override any gcc2 internal prototype to avoid an error. */
2059 /* We use char because int might match the return type of a gcc2
2060 builtin and then its argument prototype would still apply. */
2061 char opendir();
2063 int main() {
2064 opendir()
2065 ; return 0; }
2067 if { (eval echo configure:2068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2068 rm -rf conftest*
2069 eval "ac_cv_lib_$ac_lib_var=yes"
2070 else
2071 echo "configure: failed program was:" >&5
2072 cat conftest.$ac_ext >&5
2073 rm -rf conftest*
2074 eval "ac_cv_lib_$ac_lib_var=no"
2076 rm -f conftest*
2077 LIBS="$ac_save_LIBS"
2080 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2081 echo "$ac_t""yes" 1>&6
2082 LIBS="$LIBS -lx"
2083 else
2084 echo "$ac_t""no" 1>&6
2089 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2090 echo "configure:2091: checking whether time.h and sys/time.h may both be included" >&5
2091 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2092 echo $ac_n "(cached) $ac_c" 1>&6
2093 else
2094 cat > conftest.$ac_ext <<EOF
2095 #line 2096 "configure"
2096 #include "confdefs.h"
2097 #include <sys/types.h>
2098 #include <sys/time.h>
2099 #include <time.h>
2100 int main() {
2101 struct tm *tp;
2102 ; return 0; }
2104 if { (eval echo configure:2105: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2105 rm -rf conftest*
2106 ac_cv_header_time=yes
2107 else
2108 echo "configure: failed program was:" >&5
2109 cat conftest.$ac_ext >&5
2110 rm -rf conftest*
2111 ac_cv_header_time=no
2113 rm -f conftest*
2116 echo "$ac_t""$ac_cv_header_time" 1>&6
2117 if test $ac_cv_header_time = yes; then
2118 cat >> confdefs.h <<\EOF
2119 #define TIME_WITH_SYS_TIME 1
2124 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2125 echo "configure:2126: checking for sys/wait.h that is POSIX.1 compatible" >&5
2126 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2127 echo $ac_n "(cached) $ac_c" 1>&6
2128 else
2129 cat > conftest.$ac_ext <<EOF
2130 #line 2131 "configure"
2131 #include "confdefs.h"
2132 #include <sys/types.h>
2133 #include <sys/wait.h>
2134 #ifndef WEXITSTATUS
2135 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2136 #endif
2137 #ifndef WIFEXITED
2138 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2139 #endif
2140 int main() {
2141 int s;
2142 wait (&s);
2143 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2144 ; return 0; }
2146 if { (eval echo configure:2147: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2147 rm -rf conftest*
2148 ac_cv_header_sys_wait_h=yes
2149 else
2150 echo "configure: failed program was:" >&5
2151 cat conftest.$ac_ext >&5
2152 rm -rf conftest*
2153 ac_cv_header_sys_wait_h=no
2155 rm -f conftest*
2158 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2159 if test $ac_cv_header_sys_wait_h = yes; then
2160 cat >> confdefs.h <<\EOF
2161 #define HAVE_SYS_WAIT_H 1
2166 for ac_hdr in arpa/inet.h sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h
2168 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2169 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2170 echo "configure:2171: checking for $ac_hdr" >&5
2171 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2172 echo $ac_n "(cached) $ac_c" 1>&6
2173 else
2174 cat > conftest.$ac_ext <<EOF
2175 #line 2176 "configure"
2176 #include "confdefs.h"
2177 #include <$ac_hdr>
2179 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2180 { (eval echo configure:2181: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2181 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2182 if test -z "$ac_err"; then
2183 rm -rf conftest*
2184 eval "ac_cv_header_$ac_safe=yes"
2185 else
2186 echo "$ac_err" >&5
2187 echo "configure: failed program was:" >&5
2188 cat conftest.$ac_ext >&5
2189 rm -rf conftest*
2190 eval "ac_cv_header_$ac_safe=no"
2192 rm -f conftest*
2194 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2195 echo "$ac_t""yes" 1>&6
2196 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2197 cat >> confdefs.h <<EOF
2198 #define $ac_tr_hdr 1
2201 else
2202 echo "$ac_t""no" 1>&6
2204 done
2206 for ac_hdr in unistd.h utime.h grp.h sys/id.h limits.h memory.h net/if.h
2208 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2209 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2210 echo "configure:2211: checking for $ac_hdr" >&5
2211 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2212 echo $ac_n "(cached) $ac_c" 1>&6
2213 else
2214 cat > conftest.$ac_ext <<EOF
2215 #line 2216 "configure"
2216 #include "confdefs.h"
2217 #include <$ac_hdr>
2219 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2220 { (eval echo configure:2221: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2221 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2222 if test -z "$ac_err"; then
2223 rm -rf conftest*
2224 eval "ac_cv_header_$ac_safe=yes"
2225 else
2226 echo "$ac_err" >&5
2227 echo "configure: failed program was:" >&5
2228 cat conftest.$ac_ext >&5
2229 rm -rf conftest*
2230 eval "ac_cv_header_$ac_safe=no"
2232 rm -f conftest*
2234 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2235 echo "$ac_t""yes" 1>&6
2236 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2237 cat >> confdefs.h <<EOF
2238 #define $ac_tr_hdr 1
2241 else
2242 echo "$ac_t""no" 1>&6
2244 done
2246 for ac_hdr in compat.h rpc/rpc.h rpcsvc/nis.h rpcsvc/yp_prot.h rpcsvc/ypclnt.h
2248 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2249 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2250 echo "configure:2251: checking for $ac_hdr" >&5
2251 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2252 echo $ac_n "(cached) $ac_c" 1>&6
2253 else
2254 cat > conftest.$ac_ext <<EOF
2255 #line 2256 "configure"
2256 #include "confdefs.h"
2257 #include <$ac_hdr>
2259 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2260 { (eval echo configure:2261: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2261 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2262 if test -z "$ac_err"; then
2263 rm -rf conftest*
2264 eval "ac_cv_header_$ac_safe=yes"
2265 else
2266 echo "$ac_err" >&5
2267 echo "configure: failed program was:" >&5
2268 cat conftest.$ac_ext >&5
2269 rm -rf conftest*
2270 eval "ac_cv_header_$ac_safe=no"
2272 rm -f conftest*
2274 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2275 echo "$ac_t""yes" 1>&6
2276 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2277 cat >> confdefs.h <<EOF
2278 #define $ac_tr_hdr 1
2281 else
2282 echo "$ac_t""no" 1>&6
2284 done
2286 for ac_hdr in sys/param.h ctype.h sys/wait.h sys/resource.h sys/ioctl.h sys/ipc.h sys/mode.h
2288 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2289 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2290 echo "configure:2291: checking for $ac_hdr" >&5
2291 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2292 echo $ac_n "(cached) $ac_c" 1>&6
2293 else
2294 cat > conftest.$ac_ext <<EOF
2295 #line 2296 "configure"
2296 #include "confdefs.h"
2297 #include <$ac_hdr>
2299 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2300 { (eval echo configure:2301: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2301 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2302 if test -z "$ac_err"; then
2303 rm -rf conftest*
2304 eval "ac_cv_header_$ac_safe=yes"
2305 else
2306 echo "$ac_err" >&5
2307 echo "configure: failed program was:" >&5
2308 cat conftest.$ac_ext >&5
2309 rm -rf conftest*
2310 eval "ac_cv_header_$ac_safe=no"
2312 rm -f conftest*
2314 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2315 echo "$ac_t""yes" 1>&6
2316 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2317 cat >> confdefs.h <<EOF
2318 #define $ac_tr_hdr 1
2321 else
2322 echo "$ac_t""no" 1>&6
2324 done
2326 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
2328 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2329 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2330 echo "configure:2331: checking for $ac_hdr" >&5
2331 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2332 echo $ac_n "(cached) $ac_c" 1>&6
2333 else
2334 cat > conftest.$ac_ext <<EOF
2335 #line 2336 "configure"
2336 #include "confdefs.h"
2337 #include <$ac_hdr>
2339 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2340 { (eval echo configure:2341: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2341 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2342 if test -z "$ac_err"; then
2343 rm -rf conftest*
2344 eval "ac_cv_header_$ac_safe=yes"
2345 else
2346 echo "$ac_err" >&5
2347 echo "configure: failed program was:" >&5
2348 cat conftest.$ac_ext >&5
2349 rm -rf conftest*
2350 eval "ac_cv_header_$ac_safe=no"
2352 rm -f conftest*
2354 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2355 echo "$ac_t""yes" 1>&6
2356 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2357 cat >> confdefs.h <<EOF
2358 #define $ac_tr_hdr 1
2361 else
2362 echo "$ac_t""no" 1>&6
2364 done
2366 for ac_hdr in syslog.h sys/syslog.h sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h termio.h
2368 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2369 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2370 echo "configure:2371: checking for $ac_hdr" >&5
2371 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2372 echo $ac_n "(cached) $ac_c" 1>&6
2373 else
2374 cat > conftest.$ac_ext <<EOF
2375 #line 2376 "configure"
2376 #include "confdefs.h"
2377 #include <$ac_hdr>
2379 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2380 { (eval echo configure:2381: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2381 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2382 if test -z "$ac_err"; then
2383 rm -rf conftest*
2384 eval "ac_cv_header_$ac_safe=yes"
2385 else
2386 echo "$ac_err" >&5
2387 echo "configure: failed program was:" >&5
2388 cat conftest.$ac_ext >&5
2389 rm -rf conftest*
2390 eval "ac_cv_header_$ac_safe=no"
2392 rm -f conftest*
2394 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2395 echo "$ac_t""yes" 1>&6
2396 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2397 cat >> confdefs.h <<EOF
2398 #define $ac_tr_hdr 1
2401 else
2402 echo "$ac_t""no" 1>&6
2404 done
2406 for ac_hdr in sys/termio.h sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h
2408 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2409 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2410 echo "configure:2411: checking for $ac_hdr" >&5
2411 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2412 echo $ac_n "(cached) $ac_c" 1>&6
2413 else
2414 cat > conftest.$ac_ext <<EOF
2415 #line 2416 "configure"
2416 #include "confdefs.h"
2417 #include <$ac_hdr>
2419 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2420 { (eval echo configure:2421: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2421 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2422 if test -z "$ac_err"; then
2423 rm -rf conftest*
2424 eval "ac_cv_header_$ac_safe=yes"
2425 else
2426 echo "$ac_err" >&5
2427 echo "configure: failed program was:" >&5
2428 cat conftest.$ac_ext >&5
2429 rm -rf conftest*
2430 eval "ac_cv_header_$ac_safe=no"
2432 rm -f conftest*
2434 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2435 echo "$ac_t""yes" 1>&6
2436 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2437 cat >> confdefs.h <<EOF
2438 #define $ac_tr_hdr 1
2441 else
2442 echo "$ac_t""no" 1>&6
2444 done
2446 for ac_hdr in security/pam_modules.h security/_pam_macros.h dlfcn.h synch.h pthread.h nsswitch.h
2448 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2449 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2450 echo "configure:2451: checking for $ac_hdr" >&5
2451 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2452 echo $ac_n "(cached) $ac_c" 1>&6
2453 else
2454 cat > conftest.$ac_ext <<EOF
2455 #line 2456 "configure"
2456 #include "confdefs.h"
2457 #include <$ac_hdr>
2459 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2460 { (eval echo configure:2461: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2461 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2462 if test -z "$ac_err"; then
2463 rm -rf conftest*
2464 eval "ac_cv_header_$ac_safe=yes"
2465 else
2466 echo "$ac_err" >&5
2467 echo "configure: failed program was:" >&5
2468 cat conftest.$ac_ext >&5
2469 rm -rf conftest*
2470 eval "ac_cv_header_$ac_safe=no"
2472 rm -f conftest*
2474 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2475 echo "$ac_t""yes" 1>&6
2476 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2477 cat >> confdefs.h <<EOF
2478 #define $ac_tr_hdr 1
2481 else
2482 echo "$ac_t""no" 1>&6
2484 done
2488 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
2489 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
2491 case "$host_os" in
2492 *hpux*)
2493 cat > conftest.$ac_ext <<EOF
2494 #line 2495 "configure"
2495 #include "confdefs.h"
2496 #include <shadow.h>
2497 int main() {
2498 struct spwd testme
2499 ; return 0; }
2501 if { (eval echo configure:2502: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2502 rm -rf conftest*
2503 ac_cv_header_shadow_h=yes
2504 else
2505 echo "configure: failed program was:" >&5
2506 cat conftest.$ac_ext >&5
2507 rm -rf conftest*
2508 ac_cv_header_shadow_h=no
2510 rm -f conftest*
2511 if test x"$ac_cv_header_shadow_h" = x"yes"; then
2512 cat >> confdefs.h <<\EOF
2513 #define HAVE_SHADOW_H 1
2518 esac
2519 for ac_hdr in shadow.h netinet/ip.h netinet/tcp.h netinet/in_systm.h netinet/in_ip.h
2521 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2522 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2523 echo "configure:2524: checking for $ac_hdr" >&5
2524 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2525 echo $ac_n "(cached) $ac_c" 1>&6
2526 else
2527 cat > conftest.$ac_ext <<EOF
2528 #line 2529 "configure"
2529 #include "confdefs.h"
2530 #include <$ac_hdr>
2532 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2533 { (eval echo configure:2534: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2534 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2535 if test -z "$ac_err"; then
2536 rm -rf conftest*
2537 eval "ac_cv_header_$ac_safe=yes"
2538 else
2539 echo "$ac_err" >&5
2540 echo "configure: failed program was:" >&5
2541 cat conftest.$ac_ext >&5
2542 rm -rf conftest*
2543 eval "ac_cv_header_$ac_safe=no"
2545 rm -f conftest*
2547 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2548 echo "$ac_t""yes" 1>&6
2549 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2550 cat >> confdefs.h <<EOF
2551 #define $ac_tr_hdr 1
2554 else
2555 echo "$ac_t""no" 1>&6
2557 done
2559 for ac_hdr in nss.h nss_common.h ns_api.h sys/security.h security/pam_appl.h security/pam_modules.h
2561 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2562 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2563 echo "configure:2564: checking for $ac_hdr" >&5
2564 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2565 echo $ac_n "(cached) $ac_c" 1>&6
2566 else
2567 cat > conftest.$ac_ext <<EOF
2568 #line 2569 "configure"
2569 #include "confdefs.h"
2570 #include <$ac_hdr>
2572 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2573 { (eval echo configure:2574: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2574 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2575 if test -z "$ac_err"; then
2576 rm -rf conftest*
2577 eval "ac_cv_header_$ac_safe=yes"
2578 else
2579 echo "$ac_err" >&5
2580 echo "configure: failed program was:" >&5
2581 cat conftest.$ac_ext >&5
2582 rm -rf conftest*
2583 eval "ac_cv_header_$ac_safe=no"
2585 rm -f conftest*
2587 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2588 echo "$ac_t""yes" 1>&6
2589 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2590 cat >> confdefs.h <<EOF
2591 #define $ac_tr_hdr 1
2594 else
2595 echo "$ac_t""no" 1>&6
2597 done
2599 for ac_hdr in stropts.h poll.h
2601 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2602 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2603 echo "configure:2604: checking for $ac_hdr" >&5
2604 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2605 echo $ac_n "(cached) $ac_c" 1>&6
2606 else
2607 cat > conftest.$ac_ext <<EOF
2608 #line 2609 "configure"
2609 #include "confdefs.h"
2610 #include <$ac_hdr>
2612 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2613 { (eval echo configure:2614: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2614 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2615 if test -z "$ac_err"; then
2616 rm -rf conftest*
2617 eval "ac_cv_header_$ac_safe=yes"
2618 else
2619 echo "$ac_err" >&5
2620 echo "configure: failed program was:" >&5
2621 cat conftest.$ac_ext >&5
2622 rm -rf conftest*
2623 eval "ac_cv_header_$ac_safe=no"
2625 rm -f conftest*
2627 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2628 echo "$ac_t""yes" 1>&6
2629 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2630 cat >> confdefs.h <<EOF
2631 #define $ac_tr_hdr 1
2634 else
2635 echo "$ac_t""no" 1>&6
2637 done
2639 for ac_hdr in sys/capability.h syscall.h sys/syscall.h
2641 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2642 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2643 echo "configure:2644: checking for $ac_hdr" >&5
2644 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2645 echo $ac_n "(cached) $ac_c" 1>&6
2646 else
2647 cat > conftest.$ac_ext <<EOF
2648 #line 2649 "configure"
2649 #include "confdefs.h"
2650 #include <$ac_hdr>
2652 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2653 { (eval echo configure:2654: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2654 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2655 if test -z "$ac_err"; then
2656 rm -rf conftest*
2657 eval "ac_cv_header_$ac_safe=yes"
2658 else
2659 echo "$ac_err" >&5
2660 echo "configure: failed program was:" >&5
2661 cat conftest.$ac_ext >&5
2662 rm -rf conftest*
2663 eval "ac_cv_header_$ac_safe=no"
2665 rm -f conftest*
2667 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2668 echo "$ac_t""yes" 1>&6
2669 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2670 cat >> confdefs.h <<EOF
2671 #define $ac_tr_hdr 1
2674 else
2675 echo "$ac_t""no" 1>&6
2677 done
2679 for ac_hdr in sys/acl.h sys/cdefs.h glob.h
2681 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2682 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2683 echo "configure:2684: checking for $ac_hdr" >&5
2684 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2685 echo $ac_n "(cached) $ac_c" 1>&6
2686 else
2687 cat > conftest.$ac_ext <<EOF
2688 #line 2689 "configure"
2689 #include "confdefs.h"
2690 #include <$ac_hdr>
2692 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2693 { (eval echo configure:2694: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2694 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2695 if test -z "$ac_err"; then
2696 rm -rf conftest*
2697 eval "ac_cv_header_$ac_safe=yes"
2698 else
2699 echo "$ac_err" >&5
2700 echo "configure: failed program was:" >&5
2701 cat conftest.$ac_ext >&5
2702 rm -rf conftest*
2703 eval "ac_cv_header_$ac_safe=no"
2705 rm -f conftest*
2707 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2708 echo "$ac_t""yes" 1>&6
2709 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2710 cat >> confdefs.h <<EOF
2711 #define $ac_tr_hdr 1
2714 else
2715 echo "$ac_t""no" 1>&6
2717 done
2720 # For experimental utmp support (lastlog on some BSD-like systems)
2721 for ac_hdr in utmp.h utmpx.h lastlog.h
2723 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2724 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2725 echo "configure:2726: checking for $ac_hdr" >&5
2726 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2727 echo $ac_n "(cached) $ac_c" 1>&6
2728 else
2729 cat > conftest.$ac_ext <<EOF
2730 #line 2731 "configure"
2731 #include "confdefs.h"
2732 #include <$ac_hdr>
2734 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2735 { (eval echo configure:2736: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2736 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2737 if test -z "$ac_err"; then
2738 rm -rf conftest*
2739 eval "ac_cv_header_$ac_safe=yes"
2740 else
2741 echo "$ac_err" >&5
2742 echo "configure: failed program was:" >&5
2743 cat conftest.$ac_ext >&5
2744 rm -rf conftest*
2745 eval "ac_cv_header_$ac_safe=no"
2747 rm -f conftest*
2749 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2750 echo "$ac_t""yes" 1>&6
2751 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2752 cat >> confdefs.h <<EOF
2753 #define $ac_tr_hdr 1
2756 else
2757 echo "$ac_t""no" 1>&6
2759 done
2762 # For quotas on Veritas VxFS filesystems
2763 for ac_hdr in sys/fs/vx_quota.h
2765 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2766 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2767 echo "configure:2768: checking for $ac_hdr" >&5
2768 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2769 echo $ac_n "(cached) $ac_c" 1>&6
2770 else
2771 cat > conftest.$ac_ext <<EOF
2772 #line 2773 "configure"
2773 #include "confdefs.h"
2774 #include <$ac_hdr>
2776 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2777 { (eval echo configure:2778: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2778 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2779 if test -z "$ac_err"; then
2780 rm -rf conftest*
2781 eval "ac_cv_header_$ac_safe=yes"
2782 else
2783 echo "$ac_err" >&5
2784 echo "configure: failed program was:" >&5
2785 cat conftest.$ac_ext >&5
2786 rm -rf conftest*
2787 eval "ac_cv_header_$ac_safe=no"
2789 rm -f conftest*
2791 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2792 echo "$ac_t""yes" 1>&6
2793 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2794 cat >> confdefs.h <<EOF
2795 #define $ac_tr_hdr 1
2798 else
2799 echo "$ac_t""no" 1>&6
2801 done
2804 # For quotas on Linux XFS filesystems
2805 for ac_hdr in linux/xqm.h
2807 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2808 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2809 echo "configure:2810: checking for $ac_hdr" >&5
2810 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2811 echo $ac_n "(cached) $ac_c" 1>&6
2812 else
2813 cat > conftest.$ac_ext <<EOF
2814 #line 2815 "configure"
2815 #include "confdefs.h"
2816 #include <$ac_hdr>
2818 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2819 { (eval echo configure:2820: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2820 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2821 if test -z "$ac_err"; then
2822 rm -rf conftest*
2823 eval "ac_cv_header_$ac_safe=yes"
2824 else
2825 echo "$ac_err" >&5
2826 echo "configure: failed program was:" >&5
2827 cat conftest.$ac_ext >&5
2828 rm -rf conftest*
2829 eval "ac_cv_header_$ac_safe=no"
2831 rm -f conftest*
2833 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2834 echo "$ac_t""yes" 1>&6
2835 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2836 cat >> confdefs.h <<EOF
2837 #define $ac_tr_hdr 1
2840 else
2841 echo "$ac_t""no" 1>&6
2843 done
2846 echo $ac_n "checking size of int""... $ac_c" 1>&6
2847 echo "configure:2848: checking size of int" >&5
2848 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2849 echo $ac_n "(cached) $ac_c" 1>&6
2850 else
2851 if test "$cross_compiling" = yes; then
2852 ac_cv_sizeof_int=cross
2853 else
2854 cat > conftest.$ac_ext <<EOF
2855 #line 2856 "configure"
2856 #include "confdefs.h"
2857 #include <stdio.h>
2858 main()
2860 FILE *f=fopen("conftestval", "w");
2861 if (!f) exit(1);
2862 fprintf(f, "%d\n", sizeof(int));
2863 exit(0);
2866 if { (eval echo configure:2867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2867 then
2868 ac_cv_sizeof_int=`cat conftestval`
2869 else
2870 echo "configure: failed program was:" >&5
2871 cat conftest.$ac_ext >&5
2872 rm -fr conftest*
2873 ac_cv_sizeof_int=0
2875 rm -fr conftest*
2879 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2880 cat >> confdefs.h <<EOF
2881 #define SIZEOF_INT $ac_cv_sizeof_int
2885 echo $ac_n "checking size of long""... $ac_c" 1>&6
2886 echo "configure:2887: checking size of long" >&5
2887 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2888 echo $ac_n "(cached) $ac_c" 1>&6
2889 else
2890 if test "$cross_compiling" = yes; then
2891 ac_cv_sizeof_long=cross
2892 else
2893 cat > conftest.$ac_ext <<EOF
2894 #line 2895 "configure"
2895 #include "confdefs.h"
2896 #include <stdio.h>
2897 main()
2899 FILE *f=fopen("conftestval", "w");
2900 if (!f) exit(1);
2901 fprintf(f, "%d\n", sizeof(long));
2902 exit(0);
2905 if { (eval echo configure:2906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2906 then
2907 ac_cv_sizeof_long=`cat conftestval`
2908 else
2909 echo "configure: failed program was:" >&5
2910 cat conftest.$ac_ext >&5
2911 rm -fr conftest*
2912 ac_cv_sizeof_long=0
2914 rm -fr conftest*
2918 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2919 cat >> confdefs.h <<EOF
2920 #define SIZEOF_LONG $ac_cv_sizeof_long
2924 echo $ac_n "checking size of short""... $ac_c" 1>&6
2925 echo "configure:2926: checking size of short" >&5
2926 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2927 echo $ac_n "(cached) $ac_c" 1>&6
2928 else
2929 if test "$cross_compiling" = yes; then
2930 ac_cv_sizeof_short=cross
2931 else
2932 cat > conftest.$ac_ext <<EOF
2933 #line 2934 "configure"
2934 #include "confdefs.h"
2935 #include <stdio.h>
2936 main()
2938 FILE *f=fopen("conftestval", "w");
2939 if (!f) exit(1);
2940 fprintf(f, "%d\n", sizeof(short));
2941 exit(0);
2944 if { (eval echo configure:2945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2945 then
2946 ac_cv_sizeof_short=`cat conftestval`
2947 else
2948 echo "configure: failed program was:" >&5
2949 cat conftest.$ac_ext >&5
2950 rm -fr conftest*
2951 ac_cv_sizeof_short=0
2953 rm -fr conftest*
2957 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2958 cat >> confdefs.h <<EOF
2959 #define SIZEOF_SHORT $ac_cv_sizeof_short
2964 echo $ac_n "checking for working const""... $ac_c" 1>&6
2965 echo "configure:2966: checking for working const" >&5
2966 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2967 echo $ac_n "(cached) $ac_c" 1>&6
2968 else
2969 cat > conftest.$ac_ext <<EOF
2970 #line 2971 "configure"
2971 #include "confdefs.h"
2973 int main() {
2975 /* Ultrix mips cc rejects this. */
2976 typedef int charset[2]; const charset x;
2977 /* SunOS 4.1.1 cc rejects this. */
2978 char const *const *ccp;
2979 char **p;
2980 /* NEC SVR4.0.2 mips cc rejects this. */
2981 struct point {int x, y;};
2982 static struct point const zero = {0,0};
2983 /* AIX XL C 1.02.0.0 rejects this.
2984 It does not let you subtract one const X* pointer from another in an arm
2985 of an if-expression whose if-part is not a constant expression */
2986 const char *g = "string";
2987 ccp = &g + (g ? g-g : 0);
2988 /* HPUX 7.0 cc rejects these. */
2989 ++ccp;
2990 p = (char**) ccp;
2991 ccp = (char const *const *) p;
2992 { /* SCO 3.2v4 cc rejects this. */
2993 char *t;
2994 char const *s = 0 ? (char *) 0 : (char const *) 0;
2996 *t++ = 0;
2998 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2999 int x[] = {25, 17};
3000 const int *foo = &x[0];
3001 ++foo;
3003 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3004 typedef const int *iptr;
3005 iptr p = 0;
3006 ++p;
3008 { /* AIX XL C 1.02.0.0 rejects this saying
3009 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3010 struct s { int j; const int *ap[3]; };
3011 struct s *b; b->j = 5;
3013 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3014 const int foo = 10;
3017 ; return 0; }
3019 if { (eval echo configure:3020: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3020 rm -rf conftest*
3021 ac_cv_c_const=yes
3022 else
3023 echo "configure: failed program was:" >&5
3024 cat conftest.$ac_ext >&5
3025 rm -rf conftest*
3026 ac_cv_c_const=no
3028 rm -f conftest*
3031 echo "$ac_t""$ac_cv_c_const" 1>&6
3032 if test $ac_cv_c_const = no; then
3033 cat >> confdefs.h <<\EOF
3034 #define const
3039 echo $ac_n "checking for inline""... $ac_c" 1>&6
3040 echo "configure:3041: checking for inline" >&5
3041 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3042 echo $ac_n "(cached) $ac_c" 1>&6
3043 else
3044 ac_cv_c_inline=no
3045 for ac_kw in inline __inline__ __inline; do
3046 cat > conftest.$ac_ext <<EOF
3047 #line 3048 "configure"
3048 #include "confdefs.h"
3050 int main() {
3051 } $ac_kw foo() {
3052 ; return 0; }
3054 if { (eval echo configure:3055: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3055 rm -rf conftest*
3056 ac_cv_c_inline=$ac_kw; break
3057 else
3058 echo "configure: failed program was:" >&5
3059 cat conftest.$ac_ext >&5
3061 rm -f conftest*
3062 done
3066 echo "$ac_t""$ac_cv_c_inline" 1>&6
3067 case "$ac_cv_c_inline" in
3068 inline | yes) ;;
3069 no) cat >> confdefs.h <<\EOF
3070 #define inline
3073 *) cat >> confdefs.h <<EOF
3074 #define inline $ac_cv_c_inline
3077 esac
3079 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3080 echo "configure:3081: checking whether byte ordering is bigendian" >&5
3081 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3082 echo $ac_n "(cached) $ac_c" 1>&6
3083 else
3084 ac_cv_c_bigendian=unknown
3085 # See if sys/param.h defines the BYTE_ORDER macro.
3086 cat > conftest.$ac_ext <<EOF
3087 #line 3088 "configure"
3088 #include "confdefs.h"
3089 #include <sys/types.h>
3090 #include <sys/param.h>
3091 int main() {
3093 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3094 bogus endian macros
3095 #endif
3096 ; return 0; }
3098 if { (eval echo configure:3099: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3099 rm -rf conftest*
3100 # It does; now see whether it defined to BIG_ENDIAN or not.
3101 cat > conftest.$ac_ext <<EOF
3102 #line 3103 "configure"
3103 #include "confdefs.h"
3104 #include <sys/types.h>
3105 #include <sys/param.h>
3106 int main() {
3108 #if BYTE_ORDER != BIG_ENDIAN
3109 not big endian
3110 #endif
3111 ; return 0; }
3113 if { (eval echo configure:3114: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3114 rm -rf conftest*
3115 ac_cv_c_bigendian=yes
3116 else
3117 echo "configure: failed program was:" >&5
3118 cat conftest.$ac_ext >&5
3119 rm -rf conftest*
3120 ac_cv_c_bigendian=no
3122 rm -f conftest*
3123 else
3124 echo "configure: failed program was:" >&5
3125 cat conftest.$ac_ext >&5
3127 rm -f conftest*
3128 if test $ac_cv_c_bigendian = unknown; then
3129 if test "$cross_compiling" = yes; then
3130 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3131 else
3132 cat > conftest.$ac_ext <<EOF
3133 #line 3134 "configure"
3134 #include "confdefs.h"
3135 main () {
3136 /* Are we little or big endian? From Harbison&Steele. */
3137 union
3139 long l;
3140 char c[sizeof (long)];
3141 } u;
3142 u.l = 1;
3143 exit (u.c[sizeof (long) - 1] == 1);
3146 if { (eval echo configure:3147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3147 then
3148 ac_cv_c_bigendian=no
3149 else
3150 echo "configure: failed program was:" >&5
3151 cat conftest.$ac_ext >&5
3152 rm -fr conftest*
3153 ac_cv_c_bigendian=yes
3155 rm -fr conftest*
3161 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3162 if test $ac_cv_c_bigendian = yes; then
3163 cat >> confdefs.h <<\EOF
3164 #define WORDS_BIGENDIAN 1
3169 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
3170 echo "configure:3171: checking whether char is unsigned" >&5
3171 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
3172 echo $ac_n "(cached) $ac_c" 1>&6
3173 else
3174 if test "$GCC" = yes; then
3175 # GCC predefines this symbol on systems where it applies.
3176 cat > conftest.$ac_ext <<EOF
3177 #line 3178 "configure"
3178 #include "confdefs.h"
3179 #ifdef __CHAR_UNSIGNED__
3181 #endif
3184 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3185 egrep "yes" >/dev/null 2>&1; then
3186 rm -rf conftest*
3187 ac_cv_c_char_unsigned=yes
3188 else
3189 rm -rf conftest*
3190 ac_cv_c_char_unsigned=no
3192 rm -f conftest*
3194 else
3195 if test "$cross_compiling" = yes; then
3196 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3197 else
3198 cat > conftest.$ac_ext <<EOF
3199 #line 3200 "configure"
3200 #include "confdefs.h"
3201 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
3202 #if !defined(__STDC__) || __STDC__ != 1
3203 #define volatile
3204 #endif
3205 main() {
3206 volatile char c = 255; exit(c < 0);
3209 if { (eval echo configure:3210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3210 then
3211 ac_cv_c_char_unsigned=yes
3212 else
3213 echo "configure: failed program was:" >&5
3214 cat conftest.$ac_ext >&5
3215 rm -fr conftest*
3216 ac_cv_c_char_unsigned=no
3218 rm -fr conftest*
3224 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
3225 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
3226 cat >> confdefs.h <<\EOF
3227 #define __CHAR_UNSIGNED__ 1
3233 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3234 echo "configure:3235: checking return type of signal handlers" >&5
3235 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3236 echo $ac_n "(cached) $ac_c" 1>&6
3237 else
3238 cat > conftest.$ac_ext <<EOF
3239 #line 3240 "configure"
3240 #include "confdefs.h"
3241 #include <sys/types.h>
3242 #include <signal.h>
3243 #ifdef signal
3244 #undef signal
3245 #endif
3246 #ifdef __cplusplus
3247 extern "C" void (*signal (int, void (*)(int)))(int);
3248 #else
3249 void (*signal ()) ();
3250 #endif
3252 int main() {
3253 int i;
3254 ; return 0; }
3256 if { (eval echo configure:3257: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3257 rm -rf conftest*
3258 ac_cv_type_signal=void
3259 else
3260 echo "configure: failed program was:" >&5
3261 cat conftest.$ac_ext >&5
3262 rm -rf conftest*
3263 ac_cv_type_signal=int
3265 rm -f conftest*
3268 echo "$ac_t""$ac_cv_type_signal" 1>&6
3269 cat >> confdefs.h <<EOF
3270 #define RETSIGTYPE $ac_cv_type_signal
3274 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3275 echo "configure:3276: checking for uid_t in sys/types.h" >&5
3276 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3277 echo $ac_n "(cached) $ac_c" 1>&6
3278 else
3279 cat > conftest.$ac_ext <<EOF
3280 #line 3281 "configure"
3281 #include "confdefs.h"
3282 #include <sys/types.h>
3284 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3285 egrep "uid_t" >/dev/null 2>&1; then
3286 rm -rf conftest*
3287 ac_cv_type_uid_t=yes
3288 else
3289 rm -rf conftest*
3290 ac_cv_type_uid_t=no
3292 rm -f conftest*
3296 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3297 if test $ac_cv_type_uid_t = no; then
3298 cat >> confdefs.h <<\EOF
3299 #define uid_t int
3302 cat >> confdefs.h <<\EOF
3303 #define gid_t int
3308 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3309 echo "configure:3310: checking for mode_t" >&5
3310 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3311 echo $ac_n "(cached) $ac_c" 1>&6
3312 else
3313 cat > conftest.$ac_ext <<EOF
3314 #line 3315 "configure"
3315 #include "confdefs.h"
3316 #include <sys/types.h>
3317 #if STDC_HEADERS
3318 #include <stdlib.h>
3319 #include <stddef.h>
3320 #endif
3322 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3323 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3324 rm -rf conftest*
3325 ac_cv_type_mode_t=yes
3326 else
3327 rm -rf conftest*
3328 ac_cv_type_mode_t=no
3330 rm -f conftest*
3333 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3334 if test $ac_cv_type_mode_t = no; then
3335 cat >> confdefs.h <<\EOF
3336 #define mode_t int
3341 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3342 echo "configure:3343: checking for off_t" >&5
3343 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3344 echo $ac_n "(cached) $ac_c" 1>&6
3345 else
3346 cat > conftest.$ac_ext <<EOF
3347 #line 3348 "configure"
3348 #include "confdefs.h"
3349 #include <sys/types.h>
3350 #if STDC_HEADERS
3351 #include <stdlib.h>
3352 #include <stddef.h>
3353 #endif
3355 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3356 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3357 rm -rf conftest*
3358 ac_cv_type_off_t=yes
3359 else
3360 rm -rf conftest*
3361 ac_cv_type_off_t=no
3363 rm -f conftest*
3366 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3367 if test $ac_cv_type_off_t = no; then
3368 cat >> confdefs.h <<\EOF
3369 #define off_t long
3374 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3375 echo "configure:3376: checking for size_t" >&5
3376 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3377 echo $ac_n "(cached) $ac_c" 1>&6
3378 else
3379 cat > conftest.$ac_ext <<EOF
3380 #line 3381 "configure"
3381 #include "confdefs.h"
3382 #include <sys/types.h>
3383 #if STDC_HEADERS
3384 #include <stdlib.h>
3385 #include <stddef.h>
3386 #endif
3388 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3389 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3390 rm -rf conftest*
3391 ac_cv_type_size_t=yes
3392 else
3393 rm -rf conftest*
3394 ac_cv_type_size_t=no
3396 rm -f conftest*
3399 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3400 if test $ac_cv_type_size_t = no; then
3401 cat >> confdefs.h <<\EOF
3402 #define size_t unsigned
3407 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3408 echo "configure:3409: checking for pid_t" >&5
3409 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3410 echo $ac_n "(cached) $ac_c" 1>&6
3411 else
3412 cat > conftest.$ac_ext <<EOF
3413 #line 3414 "configure"
3414 #include "confdefs.h"
3415 #include <sys/types.h>
3416 #if STDC_HEADERS
3417 #include <stdlib.h>
3418 #include <stddef.h>
3419 #endif
3421 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3422 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3423 rm -rf conftest*
3424 ac_cv_type_pid_t=yes
3425 else
3426 rm -rf conftest*
3427 ac_cv_type_pid_t=no
3429 rm -f conftest*
3432 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3433 if test $ac_cv_type_pid_t = no; then
3434 cat >> confdefs.h <<\EOF
3435 #define pid_t int
3440 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3441 echo "configure:3442: checking for st_rdev in struct stat" >&5
3442 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3443 echo $ac_n "(cached) $ac_c" 1>&6
3444 else
3445 cat > conftest.$ac_ext <<EOF
3446 #line 3447 "configure"
3447 #include "confdefs.h"
3448 #include <sys/types.h>
3449 #include <sys/stat.h>
3450 int main() {
3451 struct stat s; s.st_rdev;
3452 ; return 0; }
3454 if { (eval echo configure:3455: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3455 rm -rf conftest*
3456 ac_cv_struct_st_rdev=yes
3457 else
3458 echo "configure: failed program was:" >&5
3459 cat conftest.$ac_ext >&5
3460 rm -rf conftest*
3461 ac_cv_struct_st_rdev=no
3463 rm -f conftest*
3466 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3467 if test $ac_cv_struct_st_rdev = yes; then
3468 cat >> confdefs.h <<\EOF
3469 #define HAVE_ST_RDEV 1
3474 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
3475 echo "configure:3476: checking for d_off in dirent" >&5
3476 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
3477 echo $ac_n "(cached) $ac_c" 1>&6
3478 else
3479 cat > conftest.$ac_ext <<EOF
3480 #line 3481 "configure"
3481 #include "confdefs.h"
3483 #include <unistd.h>
3484 #include <sys/types.h>
3485 #include <dirent.h>
3486 int main() {
3487 struct dirent d; d.d_off;
3488 ; return 0; }
3490 if { (eval echo configure:3491: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3491 rm -rf conftest*
3492 ac_cv_dirent_d_off=yes
3493 else
3494 echo "configure: failed program was:" >&5
3495 cat conftest.$ac_ext >&5
3496 rm -rf conftest*
3497 ac_cv_dirent_d_off=no
3499 rm -f conftest*
3502 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
3503 if test $ac_cv_dirent_d_off = yes; then
3504 cat >> confdefs.h <<\EOF
3505 #define HAVE_DIRENT_D_OFF 1
3510 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
3511 echo "configure:3512: checking for ino_t" >&5
3512 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
3513 echo $ac_n "(cached) $ac_c" 1>&6
3514 else
3515 cat > conftest.$ac_ext <<EOF
3516 #line 3517 "configure"
3517 #include "confdefs.h"
3518 #include <sys/types.h>
3519 #if STDC_HEADERS
3520 #include <stdlib.h>
3521 #include <stddef.h>
3522 #endif
3524 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3525 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3526 rm -rf conftest*
3527 ac_cv_type_ino_t=yes
3528 else
3529 rm -rf conftest*
3530 ac_cv_type_ino_t=no
3532 rm -f conftest*
3535 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
3536 if test $ac_cv_type_ino_t = no; then
3537 cat >> confdefs.h <<\EOF
3538 #define ino_t unsigned
3543 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3544 echo "configure:3545: checking for loff_t" >&5
3545 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
3546 echo $ac_n "(cached) $ac_c" 1>&6
3547 else
3548 cat > conftest.$ac_ext <<EOF
3549 #line 3550 "configure"
3550 #include "confdefs.h"
3551 #include <sys/types.h>
3552 #if STDC_HEADERS
3553 #include <stdlib.h>
3554 #include <stddef.h>
3555 #endif
3557 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3558 egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3559 rm -rf conftest*
3560 ac_cv_type_loff_t=yes
3561 else
3562 rm -rf conftest*
3563 ac_cv_type_loff_t=no
3565 rm -f conftest*
3568 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
3569 if test $ac_cv_type_loff_t = no; then
3570 cat >> confdefs.h <<\EOF
3571 #define loff_t off_t
3576 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
3577 echo "configure:3578: checking for offset_t" >&5
3578 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
3579 echo $ac_n "(cached) $ac_c" 1>&6
3580 else
3581 cat > conftest.$ac_ext <<EOF
3582 #line 3583 "configure"
3583 #include "confdefs.h"
3584 #include <sys/types.h>
3585 #if STDC_HEADERS
3586 #include <stdlib.h>
3587 #include <stddef.h>
3588 #endif
3590 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3591 egrep "(^|[^a-zA-Z_0-9])offset_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3592 rm -rf conftest*
3593 ac_cv_type_offset_t=yes
3594 else
3595 rm -rf conftest*
3596 ac_cv_type_offset_t=no
3598 rm -f conftest*
3601 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
3602 if test $ac_cv_type_offset_t = no; then
3603 cat >> confdefs.h <<\EOF
3604 #define offset_t loff_t
3609 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3610 echo "configure:3611: checking for ssize_t" >&5
3611 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3612 echo $ac_n "(cached) $ac_c" 1>&6
3613 else
3614 cat > conftest.$ac_ext <<EOF
3615 #line 3616 "configure"
3616 #include "confdefs.h"
3617 #include <sys/types.h>
3618 #if STDC_HEADERS
3619 #include <stdlib.h>
3620 #include <stddef.h>
3621 #endif
3623 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3624 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3625 rm -rf conftest*
3626 ac_cv_type_ssize_t=yes
3627 else
3628 rm -rf conftest*
3629 ac_cv_type_ssize_t=no
3631 rm -f conftest*
3634 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3635 if test $ac_cv_type_ssize_t = no; then
3636 cat >> confdefs.h <<\EOF
3637 #define ssize_t int
3642 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
3643 echo "configure:3644: checking for wchar_t" >&5
3644 if eval "test \"`echo '$''{'ac_cv_type_wchar_t'+set}'`\" = set"; then
3645 echo $ac_n "(cached) $ac_c" 1>&6
3646 else
3647 cat > conftest.$ac_ext <<EOF
3648 #line 3649 "configure"
3649 #include "confdefs.h"
3650 #include <sys/types.h>
3651 #if STDC_HEADERS
3652 #include <stdlib.h>
3653 #include <stddef.h>
3654 #endif
3656 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3657 egrep "(^|[^a-zA-Z_0-9])wchar_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3658 rm -rf conftest*
3659 ac_cv_type_wchar_t=yes
3660 else
3661 rm -rf conftest*
3662 ac_cv_type_wchar_t=no
3664 rm -f conftest*
3667 echo "$ac_t""$ac_cv_type_wchar_t" 1>&6
3668 if test $ac_cv_type_wchar_t = no; then
3669 cat >> confdefs.h <<\EOF
3670 #define wchar_t unsigned short
3676 ############################################
3677 # for cups support we need libcups, and a handful of header files
3679 # Check whether --enable-cups or --disable-cups was given.
3680 if test "${enable_cups+set}" = set; then
3681 enableval="$enable_cups"
3686 if test x$enable_cups != xno; then
3687 # Extract the first word of "cups-config", so it can be a program name with args.
3688 set dummy cups-config; ac_word=$2
3689 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3690 echo "configure:3691: checking for $ac_word" >&5
3691 if eval "test \"`echo '$''{'ac_cv_path_CUPS_CONFIG'+set}'`\" = set"; then
3692 echo $ac_n "(cached) $ac_c" 1>&6
3693 else
3694 case "$CUPS_CONFIG" in
3696 ac_cv_path_CUPS_CONFIG="$CUPS_CONFIG" # Let the user override the test with a path.
3698 ?:/*)
3699 ac_cv_path_CUPS_CONFIG="$CUPS_CONFIG" # Let the user override the test with a dos path.
3702 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3703 ac_dummy="$PATH"
3704 for ac_dir in $ac_dummy; do
3705 test -z "$ac_dir" && ac_dir=.
3706 if test -f $ac_dir/$ac_word; then
3707 ac_cv_path_CUPS_CONFIG="$ac_dir/$ac_word"
3708 break
3710 done
3711 IFS="$ac_save_ifs"
3713 esac
3715 CUPS_CONFIG="$ac_cv_path_CUPS_CONFIG"
3716 if test -n "$CUPS_CONFIG"; then
3717 echo "$ac_t""$CUPS_CONFIG" 1>&6
3718 else
3719 echo "$ac_t""no" 1>&6
3723 if test "x$CUPS_CONFIG" != x; then
3724 cat >> confdefs.h <<\EOF
3725 #define HAVE_CUPS 1
3728 CFLAGS="$CFLAGS `$CUPS_CONFIG --cflags`"
3729 LDFLAGS="$LDFLAGS `$CUPS_CONFIG --ldflags`"
3730 LIBS="$LIBS `$CUPS_CONFIG --libs`"
3734 ############################################
3735 # we need dlopen/dlclose/dlsym/dlerror for PAM, the password database plugins and the new VFS code
3736 for ac_func in dlopen
3738 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3739 echo "configure:3740: checking for $ac_func" >&5
3740 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3741 echo $ac_n "(cached) $ac_c" 1>&6
3742 else
3743 cat > conftest.$ac_ext <<EOF
3744 #line 3745 "configure"
3745 #include "confdefs.h"
3746 /* System header to define __stub macros and hopefully few prototypes,
3747 which can conflict with char $ac_func(); below. */
3748 #include <assert.h>
3749 /* Override any gcc2 internal prototype to avoid an error. */
3750 /* We use char because int might match the return type of a gcc2
3751 builtin and then its argument prototype would still apply. */
3752 char $ac_func();
3754 int main() {
3756 /* The GNU C library defines this for functions which it implements
3757 to always fail with ENOSYS. Some functions are actually named
3758 something starting with __ and the normal name is an alias. */
3759 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3760 choke me
3761 #else
3762 $ac_func();
3763 #endif
3765 ; return 0; }
3767 if { (eval echo configure:3768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3768 rm -rf conftest*
3769 eval "ac_cv_func_$ac_func=yes"
3770 else
3771 echo "configure: failed program was:" >&5
3772 cat conftest.$ac_ext >&5
3773 rm -rf conftest*
3774 eval "ac_cv_func_$ac_func=no"
3776 rm -f conftest*
3779 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3780 echo "$ac_t""yes" 1>&6
3781 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3782 cat >> confdefs.h <<EOF
3783 #define $ac_tr_func 1
3786 else
3787 echo "$ac_t""no" 1>&6
3789 done
3791 if test x"$ac_cv_func_dlopen" = x"no"; then
3792 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3793 echo "configure:3794: checking for dlopen in -ldl" >&5
3794 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3795 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3796 echo $ac_n "(cached) $ac_c" 1>&6
3797 else
3798 ac_save_LIBS="$LIBS"
3799 LIBS="-ldl $LIBS"
3800 cat > conftest.$ac_ext <<EOF
3801 #line 3802 "configure"
3802 #include "confdefs.h"
3803 /* Override any gcc2 internal prototype to avoid an error. */
3804 /* We use char because int might match the return type of a gcc2
3805 builtin and then its argument prototype would still apply. */
3806 char dlopen();
3808 int main() {
3809 dlopen()
3810 ; return 0; }
3812 if { (eval echo configure:3813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3813 rm -rf conftest*
3814 eval "ac_cv_lib_$ac_lib_var=yes"
3815 else
3816 echo "configure: failed program was:" >&5
3817 cat conftest.$ac_ext >&5
3818 rm -rf conftest*
3819 eval "ac_cv_lib_$ac_lib_var=no"
3821 rm -f conftest*
3822 LIBS="$ac_save_LIBS"
3825 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3826 echo "$ac_t""yes" 1>&6
3827 LIBS="$LIBS -ldl";
3828 cat >> confdefs.h <<\EOF
3829 #define HAVE_DLOPEN 1
3832 else
3833 echo "$ac_t""no" 1>&6
3837 # dlopen/dlclose/dlsym/dlerror will be checked again later and defines will be set then
3839 ############################################
3840 # check if the compiler can do immediate structures
3841 echo $ac_n "checking for immediate structures""... $ac_c" 1>&6
3842 echo "configure:3843: checking for immediate structures" >&5
3843 if eval "test \"`echo '$''{'samba_cv_immediate_structures'+set}'`\" = set"; then
3844 echo $ac_n "(cached) $ac_c" 1>&6
3845 else
3847 cat > conftest.$ac_ext <<EOF
3848 #line 3849 "configure"
3849 #include "confdefs.h"
3851 #include <stdio.h>
3852 int main() {
3854 typedef struct {unsigned x;} FOOBAR;
3855 #define X_FOOBAR(x) ((FOOBAR) { x })
3856 #define FOO_ONE X_FOOBAR(1)
3857 FOOBAR f = FOO_ONE;
3858 static struct {
3859 FOOBAR y;
3860 } f2[] = {
3861 {FOO_ONE}
3864 ; return 0; }
3866 if { (eval echo configure:3867: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3867 rm -rf conftest*
3868 samba_cv_immediate_structures=yes
3869 else
3870 echo "configure: failed program was:" >&5
3871 cat conftest.$ac_ext >&5
3872 rm -rf conftest*
3873 samba_cv_immediate_structures=no
3875 rm -f conftest*
3878 echo "$ac_t""$samba_cv_immediate_structures" 1>&6
3879 if test x"$samba_cv_immediate_structures" = x"yes"; then
3880 cat >> confdefs.h <<\EOF
3881 #define HAVE_IMMEDIATE_STRUCTURES 1
3886 ############################################
3887 # check for unix domain sockets
3888 echo $ac_n "checking for unix domain sockets""... $ac_c" 1>&6
3889 echo "configure:3890: checking for unix domain sockets" >&5
3890 if eval "test \"`echo '$''{'samba_cv_unixsocket'+set}'`\" = set"; then
3891 echo $ac_n "(cached) $ac_c" 1>&6
3892 else
3894 cat > conftest.$ac_ext <<EOF
3895 #line 3896 "configure"
3896 #include "confdefs.h"
3898 #include <sys/types.h>
3899 #include <stdlib.h>
3900 #include <stddef.h>
3901 #include <sys/socket.h>
3902 #include <sys/un.h>
3903 int main() {
3905 struct sockaddr_un sunaddr;
3906 sunaddr.sun_family = AF_UNIX;
3908 ; return 0; }
3910 if { (eval echo configure:3911: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3911 rm -rf conftest*
3912 samba_cv_unixsocket=yes
3913 else
3914 echo "configure: failed program was:" >&5
3915 cat conftest.$ac_ext >&5
3916 rm -rf conftest*
3917 samba_cv_unixsocket=no
3919 rm -f conftest*
3922 echo "$ac_t""$samba_cv_unixsocket" 1>&6
3923 if test x"$samba_cv_unixsocket" = x"yes"; then
3924 cat >> confdefs.h <<\EOF
3925 #define HAVE_UNIXSOCKET 1
3930 echo $ac_n "checking for socklen_t type""... $ac_c" 1>&6
3931 echo "configure:3932: checking for socklen_t type" >&5
3932 if eval "test \"`echo '$''{'samba_cv_socklen_t'+set}'`\" = set"; then
3933 echo $ac_n "(cached) $ac_c" 1>&6
3934 else
3936 cat > conftest.$ac_ext <<EOF
3937 #line 3938 "configure"
3938 #include "confdefs.h"
3940 #include <sys/types.h>
3941 #if STDC_HEADERS
3942 #include <stdlib.h>
3943 #include <stddef.h>
3944 #endif
3945 #include <sys/socket.h>
3946 int main() {
3947 socklen_t i = 0
3948 ; return 0; }
3950 if { (eval echo configure:3951: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3951 rm -rf conftest*
3952 samba_cv_socklen_t=yes
3953 else
3954 echo "configure: failed program was:" >&5
3955 cat conftest.$ac_ext >&5
3956 rm -rf conftest*
3957 samba_cv_socklen_t=no
3959 rm -f conftest*
3962 echo "$ac_t""$samba_cv_socklen_t" 1>&6
3963 if test x"$samba_cv_socklen_t" = x"yes"; then
3964 cat >> confdefs.h <<\EOF
3965 #define HAVE_SOCKLEN_T_TYPE 1
3970 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
3971 echo "configure:3972: checking for sig_atomic_t type" >&5
3972 if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+set}'`\" = set"; then
3973 echo $ac_n "(cached) $ac_c" 1>&6
3974 else
3976 cat > conftest.$ac_ext <<EOF
3977 #line 3978 "configure"
3978 #include "confdefs.h"
3980 #include <sys/types.h>
3981 #if STDC_HEADERS
3982 #include <stdlib.h>
3983 #include <stddef.h>
3984 #endif
3985 #include <signal.h>
3986 int main() {
3987 sig_atomic_t i = 0
3988 ; return 0; }
3990 if { (eval echo configure:3991: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3991 rm -rf conftest*
3992 samba_cv_sig_atomic_t=yes
3993 else
3994 echo "configure: failed program was:" >&5
3995 cat conftest.$ac_ext >&5
3996 rm -rf conftest*
3997 samba_cv_sig_atomic_t=no
3999 rm -f conftest*
4002 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
4003 if test x"$samba_cv_sig_atomic_t" = x"yes"; then
4004 cat >> confdefs.h <<\EOF
4005 #define HAVE_SIG_ATOMIC_T_TYPE 1
4010 # stupid headers have the functions but no declaration. grrrr.
4012 echo $ac_n "checking for errno declaration""... $ac_c" 1>&6
4013 echo "configure:4014: checking for errno declaration" >&5
4014 if eval "test \"`echo '$''{'ac_cv_have_errno_decl'+set}'`\" = set"; then
4015 echo $ac_n "(cached) $ac_c" 1>&6
4016 else
4018 cat > conftest.$ac_ext <<EOF
4019 #line 4020 "configure"
4020 #include "confdefs.h"
4021 #include <errno.h>
4022 int main() {
4023 int i = (int)errno
4024 ; return 0; }
4026 if { (eval echo configure:4027: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4027 rm -rf conftest*
4028 ac_cv_have_errno_decl=yes
4029 else
4030 echo "configure: failed program was:" >&5
4031 cat conftest.$ac_ext >&5
4032 rm -rf conftest*
4033 ac_cv_have_errno_decl=no
4035 rm -f conftest*
4038 echo "$ac_t""$ac_cv_have_errno_decl" 1>&6
4039 if test x"$ac_cv_have_errno_decl" = x"yes"; then
4040 cat >> confdefs.h <<\EOF
4041 #define HAVE_ERRNO_DECL 1
4047 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
4048 echo "configure:4049: checking for setresuid declaration" >&5
4049 if eval "test \"`echo '$''{'ac_cv_have_setresuid_decl'+set}'`\" = set"; then
4050 echo $ac_n "(cached) $ac_c" 1>&6
4051 else
4053 cat > conftest.$ac_ext <<EOF
4054 #line 4055 "configure"
4055 #include "confdefs.h"
4056 #include <unistd.h>
4057 int main() {
4058 int i = (int)setresuid
4059 ; return 0; }
4061 if { (eval echo configure:4062: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4062 rm -rf conftest*
4063 ac_cv_have_setresuid_decl=yes
4064 else
4065 echo "configure: failed program was:" >&5
4066 cat conftest.$ac_ext >&5
4067 rm -rf conftest*
4068 ac_cv_have_setresuid_decl=no
4070 rm -f conftest*
4073 echo "$ac_t""$ac_cv_have_setresuid_decl" 1>&6
4074 if test x"$ac_cv_have_setresuid_decl" = x"yes"; then
4075 cat >> confdefs.h <<\EOF
4076 #define HAVE_SETRESUID_DECL 1
4082 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
4083 echo "configure:4084: checking for setresgid declaration" >&5
4084 if eval "test \"`echo '$''{'ac_cv_have_setresgid_decl'+set}'`\" = set"; then
4085 echo $ac_n "(cached) $ac_c" 1>&6
4086 else
4088 cat > conftest.$ac_ext <<EOF
4089 #line 4090 "configure"
4090 #include "confdefs.h"
4091 #include <unistd.h>
4092 int main() {
4093 int i = (int)setresgid
4094 ; return 0; }
4096 if { (eval echo configure:4097: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4097 rm -rf conftest*
4098 ac_cv_have_setresgid_decl=yes
4099 else
4100 echo "configure: failed program was:" >&5
4101 cat conftest.$ac_ext >&5
4102 rm -rf conftest*
4103 ac_cv_have_setresgid_decl=no
4105 rm -f conftest*
4108 echo "$ac_t""$ac_cv_have_setresgid_decl" 1>&6
4109 if test x"$ac_cv_have_setresgid_decl" = x"yes"; then
4110 cat >> confdefs.h <<\EOF
4111 #define HAVE_SETRESGID_DECL 1
4117 echo $ac_n "checking for asprintf declaration""... $ac_c" 1>&6
4118 echo "configure:4119: checking for asprintf declaration" >&5
4119 if eval "test \"`echo '$''{'ac_cv_have_asprintf_decl'+set}'`\" = set"; then
4120 echo $ac_n "(cached) $ac_c" 1>&6
4121 else
4123 cat > conftest.$ac_ext <<EOF
4124 #line 4125 "configure"
4125 #include "confdefs.h"
4126 #include <stdio.h>
4127 int main() {
4128 int i = (int)asprintf
4129 ; return 0; }
4131 if { (eval echo configure:4132: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4132 rm -rf conftest*
4133 ac_cv_have_asprintf_decl=yes
4134 else
4135 echo "configure: failed program was:" >&5
4136 cat conftest.$ac_ext >&5
4137 rm -rf conftest*
4138 ac_cv_have_asprintf_decl=no
4140 rm -f conftest*
4143 echo "$ac_t""$ac_cv_have_asprintf_decl" 1>&6
4144 if test x"$ac_cv_have_asprintf_decl" = x"yes"; then
4145 cat >> confdefs.h <<\EOF
4146 #define HAVE_ASPRINTF_DECL 1
4152 echo $ac_n "checking for vasprintf declaration""... $ac_c" 1>&6
4153 echo "configure:4154: checking for vasprintf declaration" >&5
4154 if eval "test \"`echo '$''{'ac_cv_have_vasprintf_decl'+set}'`\" = set"; then
4155 echo $ac_n "(cached) $ac_c" 1>&6
4156 else
4158 cat > conftest.$ac_ext <<EOF
4159 #line 4160 "configure"
4160 #include "confdefs.h"
4161 #include <stdio.h>
4162 int main() {
4163 int i = (int)vasprintf
4164 ; return 0; }
4166 if { (eval echo configure:4167: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4167 rm -rf conftest*
4168 ac_cv_have_vasprintf_decl=yes
4169 else
4170 echo "configure: failed program was:" >&5
4171 cat conftest.$ac_ext >&5
4172 rm -rf conftest*
4173 ac_cv_have_vasprintf_decl=no
4175 rm -f conftest*
4178 echo "$ac_t""$ac_cv_have_vasprintf_decl" 1>&6
4179 if test x"$ac_cv_have_vasprintf_decl" = x"yes"; then
4180 cat >> confdefs.h <<\EOF
4181 #define HAVE_VASPRINTF_DECL 1
4187 echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6
4188 echo "configure:4189: checking for vsnprintf declaration" >&5
4189 if eval "test \"`echo '$''{'ac_cv_have_vsnprintf_decl'+set}'`\" = set"; then
4190 echo $ac_n "(cached) $ac_c" 1>&6
4191 else
4193 cat > conftest.$ac_ext <<EOF
4194 #line 4195 "configure"
4195 #include "confdefs.h"
4196 #include <stdio.h>
4197 int main() {
4198 int i = (int)vsnprintf
4199 ; return 0; }
4201 if { (eval echo configure:4202: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4202 rm -rf conftest*
4203 ac_cv_have_vsnprintf_decl=yes
4204 else
4205 echo "configure: failed program was:" >&5
4206 cat conftest.$ac_ext >&5
4207 rm -rf conftest*
4208 ac_cv_have_vsnprintf_decl=no
4210 rm -f conftest*
4213 echo "$ac_t""$ac_cv_have_vsnprintf_decl" 1>&6
4214 if test x"$ac_cv_have_vsnprintf_decl" = x"yes"; then
4215 cat >> confdefs.h <<\EOF
4216 #define HAVE_VSNPRINTF_DECL 1
4222 echo $ac_n "checking for snprintf declaration""... $ac_c" 1>&6
4223 echo "configure:4224: checking for snprintf declaration" >&5
4224 if eval "test \"`echo '$''{'ac_cv_have_snprintf_decl'+set}'`\" = set"; then
4225 echo $ac_n "(cached) $ac_c" 1>&6
4226 else
4228 cat > conftest.$ac_ext <<EOF
4229 #line 4230 "configure"
4230 #include "confdefs.h"
4231 #include <stdio.h>
4232 int main() {
4233 int i = (int)snprintf
4234 ; return 0; }
4236 if { (eval echo configure:4237: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4237 rm -rf conftest*
4238 ac_cv_have_snprintf_decl=yes
4239 else
4240 echo "configure: failed program was:" >&5
4241 cat conftest.$ac_ext >&5
4242 rm -rf conftest*
4243 ac_cv_have_snprintf_decl=no
4245 rm -f conftest*
4248 echo "$ac_t""$ac_cv_have_snprintf_decl" 1>&6
4249 if test x"$ac_cv_have_snprintf_decl" = x"yes"; then
4250 cat >> confdefs.h <<\EOF
4251 #define HAVE_SNPRINTF_DECL 1
4257 # and glibc has setresuid under linux but the function does
4258 # nothing until kernel 2.1.44! very dumb.
4259 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
4260 echo "configure:4261: checking for real setresuid" >&5
4261 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
4262 echo $ac_n "(cached) $ac_c" 1>&6
4263 else
4265 if test "$cross_compiling" = yes; then
4266 samba_cv_have_setresuid=cross
4267 else
4268 cat > conftest.$ac_ext <<EOF
4269 #line 4270 "configure"
4270 #include "confdefs.h"
4271 #include <errno.h>
4272 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
4274 if { (eval echo configure:4275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4275 then
4276 samba_cv_have_setresuid=yes
4277 else
4278 echo "configure: failed program was:" >&5
4279 cat conftest.$ac_ext >&5
4280 rm -fr conftest*
4281 samba_cv_have_setresuid=no
4283 rm -fr conftest*
4288 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
4289 if test x"$samba_cv_have_setresuid" = x"yes"; then
4290 cat >> confdefs.h <<\EOF
4291 #define HAVE_SETRESUID 1
4296 # Do the same check for setresguid...
4298 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
4299 echo "configure:4300: checking for real setresgid" >&5
4300 if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then
4301 echo $ac_n "(cached) $ac_c" 1>&6
4302 else
4304 if test "$cross_compiling" = yes; then
4305 samba_cv_have_setresgid=cross
4306 else
4307 cat > conftest.$ac_ext <<EOF
4308 #line 4309 "configure"
4309 #include "confdefs.h"
4310 #include <unistd.h>
4311 #include <errno.h>
4312 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
4314 if { (eval echo configure:4315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4315 then
4316 samba_cv_have_setresgid=yes
4317 else
4318 echo "configure: failed program was:" >&5
4319 cat conftest.$ac_ext >&5
4320 rm -fr conftest*
4321 samba_cv_have_setresgid=no
4323 rm -fr conftest*
4328 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
4329 if test x"$samba_cv_have_setresgid" = x"yes"; then
4330 cat >> confdefs.h <<\EOF
4331 #define HAVE_SETRESGID 1
4336 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
4337 echo "configure:4338: checking for 8-bit clean memcmp" >&5
4338 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
4339 echo $ac_n "(cached) $ac_c" 1>&6
4340 else
4341 if test "$cross_compiling" = yes; then
4342 ac_cv_func_memcmp_clean=no
4343 else
4344 cat > conftest.$ac_ext <<EOF
4345 #line 4346 "configure"
4346 #include "confdefs.h"
4348 main()
4350 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4351 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
4355 if { (eval echo configure:4356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4356 then
4357 ac_cv_func_memcmp_clean=yes
4358 else
4359 echo "configure: failed program was:" >&5
4360 cat conftest.$ac_ext >&5
4361 rm -fr conftest*
4362 ac_cv_func_memcmp_clean=no
4364 rm -fr conftest*
4369 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
4370 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
4373 ###############################################
4374 # Readline included by default unless explicitly asked not to
4375 test "${with_readline+set}" != "set" && with_readline=yes
4377 # test for where we get readline() from
4378 echo $ac_n "checking whether to use readline""... $ac_c" 1>&6
4379 echo "configure:4380: checking whether to use readline" >&5
4380 # Check whether --with-readline or --without-readline was given.
4381 if test "${with_readline+set}" = set; then
4382 withval="$with_readline"
4383 case "$with_readline" in
4384 yes)
4385 echo "$ac_t""yes" 1>&6
4387 for ac_hdr in readline.h history.h readline/readline.h
4389 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4390 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4391 echo "configure:4392: checking for $ac_hdr" >&5
4392 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4393 echo $ac_n "(cached) $ac_c" 1>&6
4394 else
4395 cat > conftest.$ac_ext <<EOF
4396 #line 4397 "configure"
4397 #include "confdefs.h"
4398 #include <$ac_hdr>
4400 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4401 { (eval echo configure:4402: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4402 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4403 if test -z "$ac_err"; then
4404 rm -rf conftest*
4405 eval "ac_cv_header_$ac_safe=yes"
4406 else
4407 echo "$ac_err" >&5
4408 echo "configure: failed program was:" >&5
4409 cat conftest.$ac_ext >&5
4410 rm -rf conftest*
4411 eval "ac_cv_header_$ac_safe=no"
4413 rm -f conftest*
4415 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4416 echo "$ac_t""yes" 1>&6
4417 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4418 cat >> confdefs.h <<EOF
4419 #define $ac_tr_hdr 1
4422 else
4423 echo "$ac_t""no" 1>&6
4425 done
4427 for ac_hdr in readline/history.h
4429 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4430 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4431 echo "configure:4432: checking for $ac_hdr" >&5
4432 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4433 echo $ac_n "(cached) $ac_c" 1>&6
4434 else
4435 cat > conftest.$ac_ext <<EOF
4436 #line 4437 "configure"
4437 #include "confdefs.h"
4438 #include <$ac_hdr>
4440 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4441 { (eval echo configure:4442: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4442 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4443 if test -z "$ac_err"; then
4444 rm -rf conftest*
4445 eval "ac_cv_header_$ac_safe=yes"
4446 else
4447 echo "$ac_err" >&5
4448 echo "configure: failed program was:" >&5
4449 cat conftest.$ac_ext >&5
4450 rm -rf conftest*
4451 eval "ac_cv_header_$ac_safe=no"
4453 rm -f conftest*
4455 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4456 echo "$ac_t""yes" 1>&6
4457 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4458 cat >> confdefs.h <<EOF
4459 #define $ac_tr_hdr 1
4462 else
4463 echo "$ac_t""no" 1>&6
4465 done
4468 for ac_hdr in readline.h readline/readline.h
4470 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4471 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4472 echo "configure:4473: checking for $ac_hdr" >&5
4473 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4474 echo $ac_n "(cached) $ac_c" 1>&6
4475 else
4476 cat > conftest.$ac_ext <<EOF
4477 #line 4478 "configure"
4478 #include "confdefs.h"
4479 #include <$ac_hdr>
4481 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4482 { (eval echo configure:4483: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4483 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4484 if test -z "$ac_err"; then
4485 rm -rf conftest*
4486 eval "ac_cv_header_$ac_safe=yes"
4487 else
4488 echo "$ac_err" >&5
4489 echo "configure: failed program was:" >&5
4490 cat conftest.$ac_ext >&5
4491 rm -rf conftest*
4492 eval "ac_cv_header_$ac_safe=no"
4494 rm -f conftest*
4496 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4497 echo "$ac_t""yes" 1>&6
4498 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4499 cat >> confdefs.h <<EOF
4500 #define $ac_tr_hdr 1
4503 for termlib in ncurses curses termcap terminfo termlib; do
4504 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4505 echo "configure:4506: checking for tgetent in -l${termlib}" >&5
4506 ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4507 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4508 echo $ac_n "(cached) $ac_c" 1>&6
4509 else
4510 ac_save_LIBS="$LIBS"
4511 LIBS="-l${termlib} $LIBS"
4512 cat > conftest.$ac_ext <<EOF
4513 #line 4514 "configure"
4514 #include "confdefs.h"
4515 /* Override any gcc2 internal prototype to avoid an error. */
4516 /* We use char because int might match the return type of a gcc2
4517 builtin and then its argument prototype would still apply. */
4518 char tgetent();
4520 int main() {
4521 tgetent()
4522 ; return 0; }
4524 if { (eval echo configure:4525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4525 rm -rf conftest*
4526 eval "ac_cv_lib_$ac_lib_var=yes"
4527 else
4528 echo "configure: failed program was:" >&5
4529 cat conftest.$ac_ext >&5
4530 rm -rf conftest*
4531 eval "ac_cv_lib_$ac_lib_var=no"
4533 rm -f conftest*
4534 LIBS="$ac_save_LIBS"
4537 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4538 echo "$ac_t""yes" 1>&6
4539 TERMLIBS="-l${termlib}"; break
4540 else
4541 echo "$ac_t""no" 1>&6
4544 done
4545 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4546 echo "configure:4547: checking for rl_callback_handler_install in -lreadline" >&5
4547 ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4548 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4549 echo $ac_n "(cached) $ac_c" 1>&6
4550 else
4551 ac_save_LIBS="$LIBS"
4552 LIBS="-lreadline $TERMLIBS $LIBS"
4553 cat > conftest.$ac_ext <<EOF
4554 #line 4555 "configure"
4555 #include "confdefs.h"
4556 /* Override any gcc2 internal prototype to avoid an error. */
4557 /* We use char because int might match the return type of a gcc2
4558 builtin and then its argument prototype would still apply. */
4559 char rl_callback_handler_install();
4561 int main() {
4562 rl_callback_handler_install()
4563 ; return 0; }
4565 if { (eval echo configure:4566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4566 rm -rf conftest*
4567 eval "ac_cv_lib_$ac_lib_var=yes"
4568 else
4569 echo "configure: failed program was:" >&5
4570 cat conftest.$ac_ext >&5
4571 rm -rf conftest*
4572 eval "ac_cv_lib_$ac_lib_var=no"
4574 rm -f conftest*
4575 LIBS="$ac_save_LIBS"
4578 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4579 echo "$ac_t""yes" 1>&6
4580 TERMLIBS="-lreadline $TERMLIBS"
4581 cat >> confdefs.h <<\EOF
4582 #define HAVE_LIBREADLINE 1
4585 break
4586 else
4587 echo "$ac_t""no" 1>&6
4588 TERMLIBS=
4591 else
4592 echo "$ac_t""no" 1>&6
4594 done
4598 echo "$ac_t""no" 1>&6
4601 echo "$ac_t""yes" 1>&6
4603 # Needed for AC_CHECK_HEADERS and AC_CHECK_LIB to look at
4604 # alternate readline path
4605 _ldflags=${LDFLAGS}
4606 _cppflags=${CPPFLAGS}
4608 # Add additional search path
4609 LDFLAGS="-L$with_readline/lib $LDFLAGS"
4610 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
4612 for ac_hdr in readline.h history.h readline/readline.h
4614 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4615 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4616 echo "configure:4617: checking for $ac_hdr" >&5
4617 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4618 echo $ac_n "(cached) $ac_c" 1>&6
4619 else
4620 cat > conftest.$ac_ext <<EOF
4621 #line 4622 "configure"
4622 #include "confdefs.h"
4623 #include <$ac_hdr>
4625 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4626 { (eval echo configure:4627: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4627 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4628 if test -z "$ac_err"; then
4629 rm -rf conftest*
4630 eval "ac_cv_header_$ac_safe=yes"
4631 else
4632 echo "$ac_err" >&5
4633 echo "configure: failed program was:" >&5
4634 cat conftest.$ac_ext >&5
4635 rm -rf conftest*
4636 eval "ac_cv_header_$ac_safe=no"
4638 rm -f conftest*
4640 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4641 echo "$ac_t""yes" 1>&6
4642 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4643 cat >> confdefs.h <<EOF
4644 #define $ac_tr_hdr 1
4647 else
4648 echo "$ac_t""no" 1>&6
4650 done
4652 for ac_hdr in readline/history.h
4654 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4655 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4656 echo "configure:4657: checking for $ac_hdr" >&5
4657 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4658 echo $ac_n "(cached) $ac_c" 1>&6
4659 else
4660 cat > conftest.$ac_ext <<EOF
4661 #line 4662 "configure"
4662 #include "confdefs.h"
4663 #include <$ac_hdr>
4665 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4666 { (eval echo configure:4667: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4667 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4668 if test -z "$ac_err"; then
4669 rm -rf conftest*
4670 eval "ac_cv_header_$ac_safe=yes"
4671 else
4672 echo "$ac_err" >&5
4673 echo "configure: failed program was:" >&5
4674 cat conftest.$ac_ext >&5
4675 rm -rf conftest*
4676 eval "ac_cv_header_$ac_safe=no"
4678 rm -f conftest*
4680 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4681 echo "$ac_t""yes" 1>&6
4682 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4683 cat >> confdefs.h <<EOF
4684 #define $ac_tr_hdr 1
4687 else
4688 echo "$ac_t""no" 1>&6
4690 done
4693 for ac_hdr in readline.h readline/readline.h
4695 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4696 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4697 echo "configure:4698: checking for $ac_hdr" >&5
4698 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4699 echo $ac_n "(cached) $ac_c" 1>&6
4700 else
4701 cat > conftest.$ac_ext <<EOF
4702 #line 4703 "configure"
4703 #include "confdefs.h"
4704 #include <$ac_hdr>
4706 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4707 { (eval echo configure:4708: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4708 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4709 if test -z "$ac_err"; then
4710 rm -rf conftest*
4711 eval "ac_cv_header_$ac_safe=yes"
4712 else
4713 echo "$ac_err" >&5
4714 echo "configure: failed program was:" >&5
4715 cat conftest.$ac_ext >&5
4716 rm -rf conftest*
4717 eval "ac_cv_header_$ac_safe=no"
4719 rm -f conftest*
4721 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4722 echo "$ac_t""yes" 1>&6
4723 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4724 cat >> confdefs.h <<EOF
4725 #define $ac_tr_hdr 1
4728 for termlib in ncurses curses termcap terminfo termlib; do
4729 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4730 echo "configure:4731: checking for tgetent in -l${termlib}" >&5
4731 ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4732 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4733 echo $ac_n "(cached) $ac_c" 1>&6
4734 else
4735 ac_save_LIBS="$LIBS"
4736 LIBS="-l${termlib} $LIBS"
4737 cat > conftest.$ac_ext <<EOF
4738 #line 4739 "configure"
4739 #include "confdefs.h"
4740 /* Override any gcc2 internal prototype to avoid an error. */
4741 /* We use char because int might match the return type of a gcc2
4742 builtin and then its argument prototype would still apply. */
4743 char tgetent();
4745 int main() {
4746 tgetent()
4747 ; return 0; }
4749 if { (eval echo configure:4750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4750 rm -rf conftest*
4751 eval "ac_cv_lib_$ac_lib_var=yes"
4752 else
4753 echo "configure: failed program was:" >&5
4754 cat conftest.$ac_ext >&5
4755 rm -rf conftest*
4756 eval "ac_cv_lib_$ac_lib_var=no"
4758 rm -f conftest*
4759 LIBS="$ac_save_LIBS"
4762 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4763 echo "$ac_t""yes" 1>&6
4764 TERMLIBS="-l${termlib}"; break
4765 else
4766 echo "$ac_t""no" 1>&6
4769 done
4770 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4771 echo "configure:4772: checking for rl_callback_handler_install in -lreadline" >&5
4772 ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4773 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4774 echo $ac_n "(cached) $ac_c" 1>&6
4775 else
4776 ac_save_LIBS="$LIBS"
4777 LIBS="-lreadline $TERMLIBS $LIBS"
4778 cat > conftest.$ac_ext <<EOF
4779 #line 4780 "configure"
4780 #include "confdefs.h"
4781 /* Override any gcc2 internal prototype to avoid an error. */
4782 /* We use char because int might match the return type of a gcc2
4783 builtin and then its argument prototype would still apply. */
4784 char rl_callback_handler_install();
4786 int main() {
4787 rl_callback_handler_install()
4788 ; return 0; }
4790 if { (eval echo configure:4791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4791 rm -rf conftest*
4792 eval "ac_cv_lib_$ac_lib_var=yes"
4793 else
4794 echo "configure: failed program was:" >&5
4795 cat conftest.$ac_ext >&5
4796 rm -rf conftest*
4797 eval "ac_cv_lib_$ac_lib_var=no"
4799 rm -f conftest*
4800 LIBS="$ac_save_LIBS"
4803 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4804 echo "$ac_t""yes" 1>&6
4805 TERMLDFLAGS="-L$with_readline/lib"
4806 TERMCPPFLAGS="-I$with_readline/include"
4807 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
4808 TERMLIBS="-lreadline $TERMLIBS"
4809 cat >> confdefs.h <<\EOF
4810 #define HAVE_LIBREADLINE 1
4813 break
4814 else
4815 echo "$ac_t""no" 1>&6
4816 TERMLIBS= CPPFLAGS=$_cppflags
4819 else
4820 echo "$ac_t""no" 1>&6
4822 done
4825 LDFLAGS=$_ldflags
4827 esac
4828 else
4829 echo "$ac_t""no" 1>&6
4836 # The following test taken from the cvs sources
4837 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
4838 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
4839 # libsocket.so which has a bad implementation of gethostbyname (it
4840 # only looks in /etc/hosts), so we only look for -lsocket if we need
4841 # it.
4842 for ac_func in connect
4844 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4845 echo "configure:4846: checking for $ac_func" >&5
4846 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4847 echo $ac_n "(cached) $ac_c" 1>&6
4848 else
4849 cat > conftest.$ac_ext <<EOF
4850 #line 4851 "configure"
4851 #include "confdefs.h"
4852 /* System header to define __stub macros and hopefully few prototypes,
4853 which can conflict with char $ac_func(); below. */
4854 #include <assert.h>
4855 /* Override any gcc2 internal prototype to avoid an error. */
4856 /* We use char because int might match the return type of a gcc2
4857 builtin and then its argument prototype would still apply. */
4858 char $ac_func();
4860 int main() {
4862 /* The GNU C library defines this for functions which it implements
4863 to always fail with ENOSYS. Some functions are actually named
4864 something starting with __ and the normal name is an alias. */
4865 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4866 choke me
4867 #else
4868 $ac_func();
4869 #endif
4871 ; return 0; }
4873 if { (eval echo configure:4874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4874 rm -rf conftest*
4875 eval "ac_cv_func_$ac_func=yes"
4876 else
4877 echo "configure: failed program was:" >&5
4878 cat conftest.$ac_ext >&5
4879 rm -rf conftest*
4880 eval "ac_cv_func_$ac_func=no"
4882 rm -f conftest*
4885 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4886 echo "$ac_t""yes" 1>&6
4887 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4888 cat >> confdefs.h <<EOF
4889 #define $ac_tr_func 1
4892 else
4893 echo "$ac_t""no" 1>&6
4895 done
4897 if test x"$ac_cv_func_connect" = x"no"; then
4898 case "$LIBS" in
4899 *-lnsl*) ;;
4900 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
4901 echo "configure:4902: checking for printf in -lnsl_s" >&5
4902 ac_lib_var=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
4903 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4904 echo $ac_n "(cached) $ac_c" 1>&6
4905 else
4906 ac_save_LIBS="$LIBS"
4907 LIBS="-lnsl_s $LIBS"
4908 cat > conftest.$ac_ext <<EOF
4909 #line 4910 "configure"
4910 #include "confdefs.h"
4911 /* Override any gcc2 internal prototype to avoid an error. */
4912 /* We use char because int might match the return type of a gcc2
4913 builtin and then its argument prototype would still apply. */
4914 char printf();
4916 int main() {
4917 printf()
4918 ; return 0; }
4920 if { (eval echo configure:4921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4921 rm -rf conftest*
4922 eval "ac_cv_lib_$ac_lib_var=yes"
4923 else
4924 echo "configure: failed program was:" >&5
4925 cat conftest.$ac_ext >&5
4926 rm -rf conftest*
4927 eval "ac_cv_lib_$ac_lib_var=no"
4929 rm -f conftest*
4930 LIBS="$ac_save_LIBS"
4933 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4934 echo "$ac_t""yes" 1>&6
4935 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4936 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4937 cat >> confdefs.h <<EOF
4938 #define $ac_tr_lib 1
4941 LIBS="-lnsl_s $LIBS"
4943 else
4944 echo "$ac_t""no" 1>&6
4947 esac
4948 case "$LIBS" in
4949 *-lnsl*) ;;
4950 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
4951 echo "configure:4952: checking for printf in -lnsl" >&5
4952 ac_lib_var=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
4953 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4954 echo $ac_n "(cached) $ac_c" 1>&6
4955 else
4956 ac_save_LIBS="$LIBS"
4957 LIBS="-lnsl $LIBS"
4958 cat > conftest.$ac_ext <<EOF
4959 #line 4960 "configure"
4960 #include "confdefs.h"
4961 /* Override any gcc2 internal prototype to avoid an error. */
4962 /* We use char because int might match the return type of a gcc2
4963 builtin and then its argument prototype would still apply. */
4964 char printf();
4966 int main() {
4967 printf()
4968 ; return 0; }
4970 if { (eval echo configure:4971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4971 rm -rf conftest*
4972 eval "ac_cv_lib_$ac_lib_var=yes"
4973 else
4974 echo "configure: failed program was:" >&5
4975 cat conftest.$ac_ext >&5
4976 rm -rf conftest*
4977 eval "ac_cv_lib_$ac_lib_var=no"
4979 rm -f conftest*
4980 LIBS="$ac_save_LIBS"
4983 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4984 echo "$ac_t""yes" 1>&6
4985 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4986 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4987 cat >> confdefs.h <<EOF
4988 #define $ac_tr_lib 1
4991 LIBS="-lnsl $LIBS"
4993 else
4994 echo "$ac_t""no" 1>&6
4997 esac
4998 case "$LIBS" in
4999 *-lsocket*) ;;
5000 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
5001 echo "configure:5002: checking for connect in -lsocket" >&5
5002 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
5003 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5004 echo $ac_n "(cached) $ac_c" 1>&6
5005 else
5006 ac_save_LIBS="$LIBS"
5007 LIBS="-lsocket $LIBS"
5008 cat > conftest.$ac_ext <<EOF
5009 #line 5010 "configure"
5010 #include "confdefs.h"
5011 /* Override any gcc2 internal prototype to avoid an error. */
5012 /* We use char because int might match the return type of a gcc2
5013 builtin and then its argument prototype would still apply. */
5014 char connect();
5016 int main() {
5017 connect()
5018 ; return 0; }
5020 if { (eval echo configure:5021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5021 rm -rf conftest*
5022 eval "ac_cv_lib_$ac_lib_var=yes"
5023 else
5024 echo "configure: failed program was:" >&5
5025 cat conftest.$ac_ext >&5
5026 rm -rf conftest*
5027 eval "ac_cv_lib_$ac_lib_var=no"
5029 rm -f conftest*
5030 LIBS="$ac_save_LIBS"
5033 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5034 echo "$ac_t""yes" 1>&6
5035 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5036 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5037 cat >> confdefs.h <<EOF
5038 #define $ac_tr_lib 1
5041 LIBS="-lsocket $LIBS"
5043 else
5044 echo "$ac_t""no" 1>&6
5047 esac
5048 case "$LIBS" in
5049 *-linet*) ;;
5050 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
5051 echo "configure:5052: checking for connect in -linet" >&5
5052 ac_lib_var=`echo inet'_'connect | sed 'y%./+-%__p_%'`
5053 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5054 echo $ac_n "(cached) $ac_c" 1>&6
5055 else
5056 ac_save_LIBS="$LIBS"
5057 LIBS="-linet $LIBS"
5058 cat > conftest.$ac_ext <<EOF
5059 #line 5060 "configure"
5060 #include "confdefs.h"
5061 /* Override any gcc2 internal prototype to avoid an error. */
5062 /* We use char because int might match the return type of a gcc2
5063 builtin and then its argument prototype would still apply. */
5064 char connect();
5066 int main() {
5067 connect()
5068 ; return 0; }
5070 if { (eval echo configure:5071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5071 rm -rf conftest*
5072 eval "ac_cv_lib_$ac_lib_var=yes"
5073 else
5074 echo "configure: failed program was:" >&5
5075 cat conftest.$ac_ext >&5
5076 rm -rf conftest*
5077 eval "ac_cv_lib_$ac_lib_var=no"
5079 rm -f conftest*
5080 LIBS="$ac_save_LIBS"
5083 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5084 echo "$ac_t""yes" 1>&6
5085 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5086 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5087 cat >> confdefs.h <<EOF
5088 #define $ac_tr_lib 1
5091 LIBS="-linet $LIBS"
5093 else
5094 echo "$ac_t""no" 1>&6
5097 esac
5098 if test x"$ac_cv_lib_socket_connect" = x"yes" ||
5099 test x"$ac_cv_lib_inet_connect" = x"yes"; then
5100 # ac_cv_func_connect=yes
5101 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
5102 cat >> confdefs.h <<\EOF
5103 #define HAVE_CONNECT 1
5109 ###############################################
5110 # test for where we get get_yp_default_domain() from
5111 for ac_func in yp_get_default_domain
5113 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5114 echo "configure:5115: checking for $ac_func" >&5
5115 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5116 echo $ac_n "(cached) $ac_c" 1>&6
5117 else
5118 cat > conftest.$ac_ext <<EOF
5119 #line 5120 "configure"
5120 #include "confdefs.h"
5121 /* System header to define __stub macros and hopefully few prototypes,
5122 which can conflict with char $ac_func(); below. */
5123 #include <assert.h>
5124 /* Override any gcc2 internal prototype to avoid an error. */
5125 /* We use char because int might match the return type of a gcc2
5126 builtin and then its argument prototype would still apply. */
5127 char $ac_func();
5129 int main() {
5131 /* The GNU C library defines this for functions which it implements
5132 to always fail with ENOSYS. Some functions are actually named
5133 something starting with __ and the normal name is an alias. */
5134 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5135 choke me
5136 #else
5137 $ac_func();
5138 #endif
5140 ; return 0; }
5142 if { (eval echo configure:5143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5143 rm -rf conftest*
5144 eval "ac_cv_func_$ac_func=yes"
5145 else
5146 echo "configure: failed program was:" >&5
5147 cat conftest.$ac_ext >&5
5148 rm -rf conftest*
5149 eval "ac_cv_func_$ac_func=no"
5151 rm -f conftest*
5154 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5155 echo "$ac_t""yes" 1>&6
5156 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5157 cat >> confdefs.h <<EOF
5158 #define $ac_tr_func 1
5161 else
5162 echo "$ac_t""no" 1>&6
5164 done
5166 if test x"$ac_cv_func_yp_get_default_domain" = x"no"; then
5167 echo $ac_n "checking for yp_get_default_domain in -lnsl""... $ac_c" 1>&6
5168 echo "configure:5169: checking for yp_get_default_domain in -lnsl" >&5
5169 ac_lib_var=`echo nsl'_'yp_get_default_domain | sed 'y%./+-%__p_%'`
5170 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5171 echo $ac_n "(cached) $ac_c" 1>&6
5172 else
5173 ac_save_LIBS="$LIBS"
5174 LIBS="-lnsl $LIBS"
5175 cat > conftest.$ac_ext <<EOF
5176 #line 5177 "configure"
5177 #include "confdefs.h"
5178 /* Override any gcc2 internal prototype to avoid an error. */
5179 /* We use char because int might match the return type of a gcc2
5180 builtin and then its argument prototype would still apply. */
5181 char yp_get_default_domain();
5183 int main() {
5184 yp_get_default_domain()
5185 ; return 0; }
5187 if { (eval echo configure:5188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5188 rm -rf conftest*
5189 eval "ac_cv_lib_$ac_lib_var=yes"
5190 else
5191 echo "configure: failed program was:" >&5
5192 cat conftest.$ac_ext >&5
5193 rm -rf conftest*
5194 eval "ac_cv_lib_$ac_lib_var=no"
5196 rm -f conftest*
5197 LIBS="$ac_save_LIBS"
5200 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5201 echo "$ac_t""yes" 1>&6
5202 LIBS="$LIBS -lnsl";
5203 cat >> confdefs.h <<\EOF
5204 #define HAVE_YP_GET_DEFAULT_DOMAIN 1
5207 else
5208 echo "$ac_t""no" 1>&6
5213 # Check if we have execl, if not we need to compile smbrun.
5214 for ac_func in execl
5216 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5217 echo "configure:5218: checking for $ac_func" >&5
5218 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5219 echo $ac_n "(cached) $ac_c" 1>&6
5220 else
5221 cat > conftest.$ac_ext <<EOF
5222 #line 5223 "configure"
5223 #include "confdefs.h"
5224 /* System header to define __stub macros and hopefully few prototypes,
5225 which can conflict with char $ac_func(); below. */
5226 #include <assert.h>
5227 /* Override any gcc2 internal prototype to avoid an error. */
5228 /* We use char because int might match the return type of a gcc2
5229 builtin and then its argument prototype would still apply. */
5230 char $ac_func();
5232 int main() {
5234 /* The GNU C library defines this for functions which it implements
5235 to always fail with ENOSYS. Some functions are actually named
5236 something starting with __ and the normal name is an alias. */
5237 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5238 choke me
5239 #else
5240 $ac_func();
5241 #endif
5243 ; return 0; }
5245 if { (eval echo configure:5246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5246 rm -rf conftest*
5247 eval "ac_cv_func_$ac_func=yes"
5248 else
5249 echo "configure: failed program was:" >&5
5250 cat conftest.$ac_ext >&5
5251 rm -rf conftest*
5252 eval "ac_cv_func_$ac_func=no"
5254 rm -f conftest*
5257 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5258 echo "$ac_t""yes" 1>&6
5259 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5260 cat >> confdefs.h <<EOF
5261 #define $ac_tr_func 1
5264 else
5265 echo "$ac_t""no" 1>&6
5267 done
5269 if test x"$ac_cv_func_execl" = x"no"; then
5270 RUNPROG="bin/smbrun"
5271 else
5272 RUNPROG=""
5275 for ac_func in dlopen dlclose dlsym dlerror waitpid getcwd strdup strndup strnlen strtoul strerror chown fchown chmod fchmod chroot link
5277 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5278 echo "configure:5279: checking for $ac_func" >&5
5279 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5280 echo $ac_n "(cached) $ac_c" 1>&6
5281 else
5282 cat > conftest.$ac_ext <<EOF
5283 #line 5284 "configure"
5284 #include "confdefs.h"
5285 /* System header to define __stub macros and hopefully few prototypes,
5286 which can conflict with char $ac_func(); below. */
5287 #include <assert.h>
5288 /* Override any gcc2 internal prototype to avoid an error. */
5289 /* We use char because int might match the return type of a gcc2
5290 builtin and then its argument prototype would still apply. */
5291 char $ac_func();
5293 int main() {
5295 /* The GNU C library defines this for functions which it implements
5296 to always fail with ENOSYS. Some functions are actually named
5297 something starting with __ and the normal name is an alias. */
5298 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5299 choke me
5300 #else
5301 $ac_func();
5302 #endif
5304 ; return 0; }
5306 if { (eval echo configure:5307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5307 rm -rf conftest*
5308 eval "ac_cv_func_$ac_func=yes"
5309 else
5310 echo "configure: failed program was:" >&5
5311 cat conftest.$ac_ext >&5
5312 rm -rf conftest*
5313 eval "ac_cv_func_$ac_func=no"
5315 rm -f conftest*
5318 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5319 echo "$ac_t""yes" 1>&6
5320 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5321 cat >> confdefs.h <<EOF
5322 #define $ac_tr_func 1
5325 else
5326 echo "$ac_t""no" 1>&6
5328 done
5330 for ac_func in fstat strchr utime utimes getrlimit fsync bzero memset strlcpy strlcat setpgid mknod mknod64
5332 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5333 echo "configure:5334: checking for $ac_func" >&5
5334 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5335 echo $ac_n "(cached) $ac_c" 1>&6
5336 else
5337 cat > conftest.$ac_ext <<EOF
5338 #line 5339 "configure"
5339 #include "confdefs.h"
5340 /* System header to define __stub macros and hopefully few prototypes,
5341 which can conflict with char $ac_func(); below. */
5342 #include <assert.h>
5343 /* Override any gcc2 internal prototype to avoid an error. */
5344 /* We use char because int might match the return type of a gcc2
5345 builtin and then its argument prototype would still apply. */
5346 char $ac_func();
5348 int main() {
5350 /* The GNU C library defines this for functions which it implements
5351 to always fail with ENOSYS. Some functions are actually named
5352 something starting with __ and the normal name is an alias. */
5353 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5354 choke me
5355 #else
5356 $ac_func();
5357 #endif
5359 ; return 0; }
5361 if { (eval echo configure:5362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5362 rm -rf conftest*
5363 eval "ac_cv_func_$ac_func=yes"
5364 else
5365 echo "configure: failed program was:" >&5
5366 cat conftest.$ac_ext >&5
5367 rm -rf conftest*
5368 eval "ac_cv_func_$ac_func=no"
5370 rm -f conftest*
5373 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5374 echo "$ac_t""yes" 1>&6
5375 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5376 cat >> confdefs.h <<EOF
5377 #define $ac_tr_func 1
5380 else
5381 echo "$ac_t""no" 1>&6
5383 done
5385 for ac_func in memmove vsnprintf snprintf asprintf vasprintf setsid glob strpbrk pipe crypt16 getauthuid
5387 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5388 echo "configure:5389: checking for $ac_func" >&5
5389 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5390 echo $ac_n "(cached) $ac_c" 1>&6
5391 else
5392 cat > conftest.$ac_ext <<EOF
5393 #line 5394 "configure"
5394 #include "confdefs.h"
5395 /* System header to define __stub macros and hopefully few prototypes,
5396 which can conflict with char $ac_func(); below. */
5397 #include <assert.h>
5398 /* Override any gcc2 internal prototype to avoid an error. */
5399 /* We use char because int might match the return type of a gcc2
5400 builtin and then its argument prototype would still apply. */
5401 char $ac_func();
5403 int main() {
5405 /* The GNU C library defines this for functions which it implements
5406 to always fail with ENOSYS. Some functions are actually named
5407 something starting with __ and the normal name is an alias. */
5408 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5409 choke me
5410 #else
5411 $ac_func();
5412 #endif
5414 ; return 0; }
5416 if { (eval echo configure:5417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5417 rm -rf conftest*
5418 eval "ac_cv_func_$ac_func=yes"
5419 else
5420 echo "configure: failed program was:" >&5
5421 cat conftest.$ac_ext >&5
5422 rm -rf conftest*
5423 eval "ac_cv_func_$ac_func=no"
5425 rm -f conftest*
5428 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5429 echo "$ac_t""yes" 1>&6
5430 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5431 cat >> confdefs.h <<EOF
5432 #define $ac_tr_func 1
5435 else
5436 echo "$ac_t""no" 1>&6
5438 done
5440 for ac_func in strftime sigprocmask sigblock sigaction sigset innetgr setnetgrent getnetgrent endnetgrent
5442 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5443 echo "configure:5444: checking for $ac_func" >&5
5444 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5445 echo $ac_n "(cached) $ac_c" 1>&6
5446 else
5447 cat > conftest.$ac_ext <<EOF
5448 #line 5449 "configure"
5449 #include "confdefs.h"
5450 /* System header to define __stub macros and hopefully few prototypes,
5451 which can conflict with char $ac_func(); below. */
5452 #include <assert.h>
5453 /* Override any gcc2 internal prototype to avoid an error. */
5454 /* We use char because int might match the return type of a gcc2
5455 builtin and then its argument prototype would still apply. */
5456 char $ac_func();
5458 int main() {
5460 /* The GNU C library defines this for functions which it implements
5461 to always fail with ENOSYS. Some functions are actually named
5462 something starting with __ and the normal name is an alias. */
5463 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5464 choke me
5465 #else
5466 $ac_func();
5467 #endif
5469 ; return 0; }
5471 if { (eval echo configure:5472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5472 rm -rf conftest*
5473 eval "ac_cv_func_$ac_func=yes"
5474 else
5475 echo "configure: failed program was:" >&5
5476 cat conftest.$ac_ext >&5
5477 rm -rf conftest*
5478 eval "ac_cv_func_$ac_func=no"
5480 rm -f conftest*
5483 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5484 echo "$ac_t""yes" 1>&6
5485 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5486 cat >> confdefs.h <<EOF
5487 #define $ac_tr_func 1
5490 else
5491 echo "$ac_t""no" 1>&6
5493 done
5495 for ac_func in initgroups select poll rdchk getgrnam getgrent pathconf realpath
5497 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5498 echo "configure:5499: checking for $ac_func" >&5
5499 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5500 echo $ac_n "(cached) $ac_c" 1>&6
5501 else
5502 cat > conftest.$ac_ext <<EOF
5503 #line 5504 "configure"
5504 #include "confdefs.h"
5505 /* System header to define __stub macros and hopefully few prototypes,
5506 which can conflict with char $ac_func(); below. */
5507 #include <assert.h>
5508 /* Override any gcc2 internal prototype to avoid an error. */
5509 /* We use char because int might match the return type of a gcc2
5510 builtin and then its argument prototype would still apply. */
5511 char $ac_func();
5513 int main() {
5515 /* The GNU C library defines this for functions which it implements
5516 to always fail with ENOSYS. Some functions are actually named
5517 something starting with __ and the normal name is an alias. */
5518 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5519 choke me
5520 #else
5521 $ac_func();
5522 #endif
5524 ; return 0; }
5526 if { (eval echo configure:5527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5527 rm -rf conftest*
5528 eval "ac_cv_func_$ac_func=yes"
5529 else
5530 echo "configure: failed program was:" >&5
5531 cat conftest.$ac_ext >&5
5532 rm -rf conftest*
5533 eval "ac_cv_func_$ac_func=no"
5535 rm -f conftest*
5538 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5539 echo "$ac_t""yes" 1>&6
5540 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5541 cat >> confdefs.h <<EOF
5542 #define $ac_tr_func 1
5545 else
5546 echo "$ac_t""no" 1>&6
5548 done
5550 for ac_func in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
5552 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5553 echo "configure:5554: checking for $ac_func" >&5
5554 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5555 echo $ac_n "(cached) $ac_c" 1>&6
5556 else
5557 cat > conftest.$ac_ext <<EOF
5558 #line 5559 "configure"
5559 #include "confdefs.h"
5560 /* System header to define __stub macros and hopefully few prototypes,
5561 which can conflict with char $ac_func(); below. */
5562 #include <assert.h>
5563 /* Override any gcc2 internal prototype to avoid an error. */
5564 /* We use char because int might match the return type of a gcc2
5565 builtin and then its argument prototype would still apply. */
5566 char $ac_func();
5568 int main() {
5570 /* The GNU C library defines this for functions which it implements
5571 to always fail with ENOSYS. Some functions are actually named
5572 something starting with __ and the normal name is an alias. */
5573 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5574 choke me
5575 #else
5576 $ac_func();
5577 #endif
5579 ; return 0; }
5581 if { (eval echo configure:5582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5582 rm -rf conftest*
5583 eval "ac_cv_func_$ac_func=yes"
5584 else
5585 echo "configure: failed program was:" >&5
5586 cat conftest.$ac_ext >&5
5587 rm -rf conftest*
5588 eval "ac_cv_func_$ac_func=no"
5590 rm -f conftest*
5593 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5594 echo "$ac_t""yes" 1>&6
5595 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5596 cat >> confdefs.h <<EOF
5597 #define $ac_tr_func 1
5600 else
5601 echo "$ac_t""no" 1>&6
5603 done
5605 for ac_func in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
5607 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5608 echo "configure:5609: checking for $ac_func" >&5
5609 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5610 echo $ac_n "(cached) $ac_c" 1>&6
5611 else
5612 cat > conftest.$ac_ext <<EOF
5613 #line 5614 "configure"
5614 #include "confdefs.h"
5615 /* System header to define __stub macros and hopefully few prototypes,
5616 which can conflict with char $ac_func(); below. */
5617 #include <assert.h>
5618 /* Override any gcc2 internal prototype to avoid an error. */
5619 /* We use char because int might match the return type of a gcc2
5620 builtin and then its argument prototype would still apply. */
5621 char $ac_func();
5623 int main() {
5625 /* The GNU C library defines this for functions which it implements
5626 to always fail with ENOSYS. Some functions are actually named
5627 something starting with __ and the normal name is an alias. */
5628 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5629 choke me
5630 #else
5631 $ac_func();
5632 #endif
5634 ; return 0; }
5636 if { (eval echo configure:5637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5637 rm -rf conftest*
5638 eval "ac_cv_func_$ac_func=yes"
5639 else
5640 echo "configure: failed program was:" >&5
5641 cat conftest.$ac_ext >&5
5642 rm -rf conftest*
5643 eval "ac_cv_func_$ac_func=no"
5645 rm -f conftest*
5648 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5649 echo "$ac_t""yes" 1>&6
5650 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5651 cat >> confdefs.h <<EOF
5652 #define $ac_tr_func 1
5655 else
5656 echo "$ac_t""no" 1>&6
5658 done
5660 for ac_func in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam setlinebuf
5662 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5663 echo "configure:5664: checking for $ac_func" >&5
5664 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5665 echo $ac_n "(cached) $ac_c" 1>&6
5666 else
5667 cat > conftest.$ac_ext <<EOF
5668 #line 5669 "configure"
5669 #include "confdefs.h"
5670 /* System header to define __stub macros and hopefully few prototypes,
5671 which can conflict with char $ac_func(); below. */
5672 #include <assert.h>
5673 /* Override any gcc2 internal prototype to avoid an error. */
5674 /* We use char because int might match the return type of a gcc2
5675 builtin and then its argument prototype would still apply. */
5676 char $ac_func();
5678 int main() {
5680 /* The GNU C library defines this for functions which it implements
5681 to always fail with ENOSYS. Some functions are actually named
5682 something starting with __ and the normal name is an alias. */
5683 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5684 choke me
5685 #else
5686 $ac_func();
5687 #endif
5689 ; return 0; }
5691 if { (eval echo configure:5692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5692 rm -rf conftest*
5693 eval "ac_cv_func_$ac_func=yes"
5694 else
5695 echo "configure: failed program was:" >&5
5696 cat conftest.$ac_ext >&5
5697 rm -rf conftest*
5698 eval "ac_cv_func_$ac_func=no"
5700 rm -f conftest*
5703 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5704 echo "$ac_t""yes" 1>&6
5705 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5706 cat >> confdefs.h <<EOF
5707 #define $ac_tr_func 1
5710 else
5711 echo "$ac_t""no" 1>&6
5713 done
5715 for ac_func in srandom random srand rand setenv usleep strcasecmp fcvt fcvtl symlink readlink
5717 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5718 echo "configure:5719: checking for $ac_func" >&5
5719 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5720 echo $ac_n "(cached) $ac_c" 1>&6
5721 else
5722 cat > conftest.$ac_ext <<EOF
5723 #line 5724 "configure"
5724 #include "confdefs.h"
5725 /* System header to define __stub macros and hopefully few prototypes,
5726 which can conflict with char $ac_func(); below. */
5727 #include <assert.h>
5728 /* Override any gcc2 internal prototype to avoid an error. */
5729 /* We use char because int might match the return type of a gcc2
5730 builtin and then its argument prototype would still apply. */
5731 char $ac_func();
5733 int main() {
5735 /* The GNU C library defines this for functions which it implements
5736 to always fail with ENOSYS. Some functions are actually named
5737 something starting with __ and the normal name is an alias. */
5738 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5739 choke me
5740 #else
5741 $ac_func();
5742 #endif
5744 ; return 0; }
5746 if { (eval echo configure:5747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5747 rm -rf conftest*
5748 eval "ac_cv_func_$ac_func=yes"
5749 else
5750 echo "configure: failed program was:" >&5
5751 cat conftest.$ac_ext >&5
5752 rm -rf conftest*
5753 eval "ac_cv_func_$ac_func=no"
5755 rm -f conftest*
5758 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5759 echo "$ac_t""yes" 1>&6
5760 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5761 cat >> confdefs.h <<EOF
5762 #define $ac_tr_func 1
5765 else
5766 echo "$ac_t""no" 1>&6
5768 done
5770 for ac_func in syslog vsyslog
5772 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5773 echo "configure:5774: checking for $ac_func" >&5
5774 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5775 echo $ac_n "(cached) $ac_c" 1>&6
5776 else
5777 cat > conftest.$ac_ext <<EOF
5778 #line 5779 "configure"
5779 #include "confdefs.h"
5780 /* System header to define __stub macros and hopefully few prototypes,
5781 which can conflict with char $ac_func(); below. */
5782 #include <assert.h>
5783 /* Override any gcc2 internal prototype to avoid an error. */
5784 /* We use char because int might match the return type of a gcc2
5785 builtin and then its argument prototype would still apply. */
5786 char $ac_func();
5788 int main() {
5790 /* The GNU C library defines this for functions which it implements
5791 to always fail with ENOSYS. Some functions are actually named
5792 something starting with __ and the normal name is an alias. */
5793 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5794 choke me
5795 #else
5796 $ac_func();
5797 #endif
5799 ; return 0; }
5801 if { (eval echo configure:5802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5802 rm -rf conftest*
5803 eval "ac_cv_func_$ac_func=yes"
5804 else
5805 echo "configure: failed program was:" >&5
5806 cat conftest.$ac_ext >&5
5807 rm -rf conftest*
5808 eval "ac_cv_func_$ac_func=no"
5810 rm -f conftest*
5813 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5814 echo "$ac_t""yes" 1>&6
5815 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5816 cat >> confdefs.h <<EOF
5817 #define $ac_tr_func 1
5820 else
5821 echo "$ac_t""no" 1>&6
5823 done
5826 # syscall() is needed for smbwrapper.
5827 for ac_func in syscall
5829 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5830 echo "configure:5831: checking for $ac_func" >&5
5831 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5832 echo $ac_n "(cached) $ac_c" 1>&6
5833 else
5834 cat > conftest.$ac_ext <<EOF
5835 #line 5836 "configure"
5836 #include "confdefs.h"
5837 /* System header to define __stub macros and hopefully few prototypes,
5838 which can conflict with char $ac_func(); below. */
5839 #include <assert.h>
5840 /* Override any gcc2 internal prototype to avoid an error. */
5841 /* We use char because int might match the return type of a gcc2
5842 builtin and then its argument prototype would still apply. */
5843 char $ac_func();
5845 int main() {
5847 /* The GNU C library defines this for functions which it implements
5848 to always fail with ENOSYS. Some functions are actually named
5849 something starting with __ and the normal name is an alias. */
5850 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5851 choke me
5852 #else
5853 $ac_func();
5854 #endif
5856 ; return 0; }
5858 if { (eval echo configure:5859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5859 rm -rf conftest*
5860 eval "ac_cv_func_$ac_func=yes"
5861 else
5862 echo "configure: failed program was:" >&5
5863 cat conftest.$ac_ext >&5
5864 rm -rf conftest*
5865 eval "ac_cv_func_$ac_func=no"
5867 rm -f conftest*
5870 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5871 echo "$ac_t""yes" 1>&6
5872 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5873 cat >> confdefs.h <<EOF
5874 #define $ac_tr_func 1
5877 else
5878 echo "$ac_t""no" 1>&6
5880 done
5883 for ac_func in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
5885 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5886 echo "configure:5887: checking for $ac_func" >&5
5887 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5888 echo $ac_n "(cached) $ac_c" 1>&6
5889 else
5890 cat > conftest.$ac_ext <<EOF
5891 #line 5892 "configure"
5892 #include "confdefs.h"
5893 /* System header to define __stub macros and hopefully few prototypes,
5894 which can conflict with char $ac_func(); below. */
5895 #include <assert.h>
5896 /* Override any gcc2 internal prototype to avoid an error. */
5897 /* We use char because int might match the return type of a gcc2
5898 builtin and then its argument prototype would still apply. */
5899 char $ac_func();
5901 int main() {
5903 /* The GNU C library defines this for functions which it implements
5904 to always fail with ENOSYS. Some functions are actually named
5905 something starting with __ and the normal name is an alias. */
5906 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5907 choke me
5908 #else
5909 $ac_func();
5910 #endif
5912 ; return 0; }
5914 if { (eval echo configure:5915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5915 rm -rf conftest*
5916 eval "ac_cv_func_$ac_func=yes"
5917 else
5918 echo "configure: failed program was:" >&5
5919 cat conftest.$ac_ext >&5
5920 rm -rf conftest*
5921 eval "ac_cv_func_$ac_func=no"
5923 rm -f conftest*
5926 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5927 echo "$ac_t""yes" 1>&6
5928 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5929 cat >> confdefs.h <<EOF
5930 #define $ac_tr_func 1
5933 else
5934 echo "$ac_t""no" 1>&6
5936 done
5938 for ac_func in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
5940 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5941 echo "configure:5942: checking for $ac_func" >&5
5942 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5943 echo $ac_n "(cached) $ac_c" 1>&6
5944 else
5945 cat > conftest.$ac_ext <<EOF
5946 #line 5947 "configure"
5947 #include "confdefs.h"
5948 /* System header to define __stub macros and hopefully few prototypes,
5949 which can conflict with char $ac_func(); below. */
5950 #include <assert.h>
5951 /* Override any gcc2 internal prototype to avoid an error. */
5952 /* We use char because int might match the return type of a gcc2
5953 builtin and then its argument prototype would still apply. */
5954 char $ac_func();
5956 int main() {
5958 /* The GNU C library defines this for functions which it implements
5959 to always fail with ENOSYS. Some functions are actually named
5960 something starting with __ and the normal name is an alias. */
5961 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5962 choke me
5963 #else
5964 $ac_func();
5965 #endif
5967 ; return 0; }
5969 if { (eval echo configure:5970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5970 rm -rf conftest*
5971 eval "ac_cv_func_$ac_func=yes"
5972 else
5973 echo "configure: failed program was:" >&5
5974 cat conftest.$ac_ext >&5
5975 rm -rf conftest*
5976 eval "ac_cv_func_$ac_func=no"
5978 rm -f conftest*
5981 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5982 echo "$ac_t""yes" 1>&6
5983 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5984 cat >> confdefs.h <<EOF
5985 #define $ac_tr_func 1
5988 else
5989 echo "$ac_t""no" 1>&6
5991 done
5993 for ac_func in __getcwd _getcwd
5995 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5996 echo "configure:5997: checking for $ac_func" >&5
5997 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5998 echo $ac_n "(cached) $ac_c" 1>&6
5999 else
6000 cat > conftest.$ac_ext <<EOF
6001 #line 6002 "configure"
6002 #include "confdefs.h"
6003 /* System header to define __stub macros and hopefully few prototypes,
6004 which can conflict with char $ac_func(); below. */
6005 #include <assert.h>
6006 /* Override any gcc2 internal prototype to avoid an error. */
6007 /* We use char because int might match the return type of a gcc2
6008 builtin and then its argument prototype would still apply. */
6009 char $ac_func();
6011 int main() {
6013 /* The GNU C library defines this for functions which it implements
6014 to always fail with ENOSYS. Some functions are actually named
6015 something starting with __ and the normal name is an alias. */
6016 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6017 choke me
6018 #else
6019 $ac_func();
6020 #endif
6022 ; return 0; }
6024 if { (eval echo configure:6025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6025 rm -rf conftest*
6026 eval "ac_cv_func_$ac_func=yes"
6027 else
6028 echo "configure: failed program was:" >&5
6029 cat conftest.$ac_ext >&5
6030 rm -rf conftest*
6031 eval "ac_cv_func_$ac_func=no"
6033 rm -f conftest*
6036 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6037 echo "$ac_t""yes" 1>&6
6038 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6039 cat >> confdefs.h <<EOF
6040 #define $ac_tr_func 1
6043 else
6044 echo "$ac_t""no" 1>&6
6046 done
6048 for ac_func in __xstat __fxstat __lxstat
6050 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6051 echo "configure:6052: checking for $ac_func" >&5
6052 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6053 echo $ac_n "(cached) $ac_c" 1>&6
6054 else
6055 cat > conftest.$ac_ext <<EOF
6056 #line 6057 "configure"
6057 #include "confdefs.h"
6058 /* System header to define __stub macros and hopefully few prototypes,
6059 which can conflict with char $ac_func(); below. */
6060 #include <assert.h>
6061 /* Override any gcc2 internal prototype to avoid an error. */
6062 /* We use char because int might match the return type of a gcc2
6063 builtin and then its argument prototype would still apply. */
6064 char $ac_func();
6066 int main() {
6068 /* The GNU C library defines this for functions which it implements
6069 to always fail with ENOSYS. Some functions are actually named
6070 something starting with __ and the normal name is an alias. */
6071 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6072 choke me
6073 #else
6074 $ac_func();
6075 #endif
6077 ; return 0; }
6079 if { (eval echo configure:6080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6080 rm -rf conftest*
6081 eval "ac_cv_func_$ac_func=yes"
6082 else
6083 echo "configure: failed program was:" >&5
6084 cat conftest.$ac_ext >&5
6085 rm -rf conftest*
6086 eval "ac_cv_func_$ac_func=no"
6088 rm -f conftest*
6091 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6092 echo "$ac_t""yes" 1>&6
6093 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6094 cat >> confdefs.h <<EOF
6095 #define $ac_tr_func 1
6098 else
6099 echo "$ac_t""no" 1>&6
6101 done
6103 for ac_func in _stat _lstat _fstat __stat __lstat __fstat
6105 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6106 echo "configure:6107: checking for $ac_func" >&5
6107 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6108 echo $ac_n "(cached) $ac_c" 1>&6
6109 else
6110 cat > conftest.$ac_ext <<EOF
6111 #line 6112 "configure"
6112 #include "confdefs.h"
6113 /* System header to define __stub macros and hopefully few prototypes,
6114 which can conflict with char $ac_func(); below. */
6115 #include <assert.h>
6116 /* Override any gcc2 internal prototype to avoid an error. */
6117 /* We use char because int might match the return type of a gcc2
6118 builtin and then its argument prototype would still apply. */
6119 char $ac_func();
6121 int main() {
6123 /* The GNU C library defines this for functions which it implements
6124 to always fail with ENOSYS. Some functions are actually named
6125 something starting with __ and the normal name is an alias. */
6126 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6127 choke me
6128 #else
6129 $ac_func();
6130 #endif
6132 ; return 0; }
6134 if { (eval echo configure:6135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6135 rm -rf conftest*
6136 eval "ac_cv_func_$ac_func=yes"
6137 else
6138 echo "configure: failed program was:" >&5
6139 cat conftest.$ac_ext >&5
6140 rm -rf conftest*
6141 eval "ac_cv_func_$ac_func=no"
6143 rm -f conftest*
6146 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6147 echo "$ac_t""yes" 1>&6
6148 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6149 cat >> confdefs.h <<EOF
6150 #define $ac_tr_func 1
6153 else
6154 echo "$ac_t""no" 1>&6
6156 done
6158 for ac_func in _acl __acl _facl __facl _open __open _chdir __chdir
6160 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6161 echo "configure:6162: checking for $ac_func" >&5
6162 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6163 echo $ac_n "(cached) $ac_c" 1>&6
6164 else
6165 cat > conftest.$ac_ext <<EOF
6166 #line 6167 "configure"
6167 #include "confdefs.h"
6168 /* System header to define __stub macros and hopefully few prototypes,
6169 which can conflict with char $ac_func(); below. */
6170 #include <assert.h>
6171 /* Override any gcc2 internal prototype to avoid an error. */
6172 /* We use char because int might match the return type of a gcc2
6173 builtin and then its argument prototype would still apply. */
6174 char $ac_func();
6176 int main() {
6178 /* The GNU C library defines this for functions which it implements
6179 to always fail with ENOSYS. Some functions are actually named
6180 something starting with __ and the normal name is an alias. */
6181 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6182 choke me
6183 #else
6184 $ac_func();
6185 #endif
6187 ; return 0; }
6189 if { (eval echo configure:6190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6190 rm -rf conftest*
6191 eval "ac_cv_func_$ac_func=yes"
6192 else
6193 echo "configure: failed program was:" >&5
6194 cat conftest.$ac_ext >&5
6195 rm -rf conftest*
6196 eval "ac_cv_func_$ac_func=no"
6198 rm -f conftest*
6201 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6202 echo "$ac_t""yes" 1>&6
6203 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6204 cat >> confdefs.h <<EOF
6205 #define $ac_tr_func 1
6208 else
6209 echo "$ac_t""no" 1>&6
6211 done
6213 for ac_func in _close __close _fchdir __fchdir _fcntl __fcntl
6215 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6216 echo "configure:6217: checking for $ac_func" >&5
6217 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6218 echo $ac_n "(cached) $ac_c" 1>&6
6219 else
6220 cat > conftest.$ac_ext <<EOF
6221 #line 6222 "configure"
6222 #include "confdefs.h"
6223 /* System header to define __stub macros and hopefully few prototypes,
6224 which can conflict with char $ac_func(); below. */
6225 #include <assert.h>
6226 /* Override any gcc2 internal prototype to avoid an error. */
6227 /* We use char because int might match the return type of a gcc2
6228 builtin and then its argument prototype would still apply. */
6229 char $ac_func();
6231 int main() {
6233 /* The GNU C library defines this for functions which it implements
6234 to always fail with ENOSYS. Some functions are actually named
6235 something starting with __ and the normal name is an alias. */
6236 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6237 choke me
6238 #else
6239 $ac_func();
6240 #endif
6242 ; return 0; }
6244 if { (eval echo configure:6245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6245 rm -rf conftest*
6246 eval "ac_cv_func_$ac_func=yes"
6247 else
6248 echo "configure: failed program was:" >&5
6249 cat conftest.$ac_ext >&5
6250 rm -rf conftest*
6251 eval "ac_cv_func_$ac_func=no"
6253 rm -f conftest*
6256 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6257 echo "$ac_t""yes" 1>&6
6258 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6259 cat >> confdefs.h <<EOF
6260 #define $ac_tr_func 1
6263 else
6264 echo "$ac_t""no" 1>&6
6266 done
6268 for ac_func in getdents _getdents __getdents _lseek __lseek _read __read
6270 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6271 echo "configure:6272: checking for $ac_func" >&5
6272 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6273 echo $ac_n "(cached) $ac_c" 1>&6
6274 else
6275 cat > conftest.$ac_ext <<EOF
6276 #line 6277 "configure"
6277 #include "confdefs.h"
6278 /* System header to define __stub macros and hopefully few prototypes,
6279 which can conflict with char $ac_func(); below. */
6280 #include <assert.h>
6281 /* Override any gcc2 internal prototype to avoid an error. */
6282 /* We use char because int might match the return type of a gcc2
6283 builtin and then its argument prototype would still apply. */
6284 char $ac_func();
6286 int main() {
6288 /* The GNU C library defines this for functions which it implements
6289 to always fail with ENOSYS. Some functions are actually named
6290 something starting with __ and the normal name is an alias. */
6291 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6292 choke me
6293 #else
6294 $ac_func();
6295 #endif
6297 ; return 0; }
6299 if { (eval echo configure:6300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6300 rm -rf conftest*
6301 eval "ac_cv_func_$ac_func=yes"
6302 else
6303 echo "configure: failed program was:" >&5
6304 cat conftest.$ac_ext >&5
6305 rm -rf conftest*
6306 eval "ac_cv_func_$ac_func=no"
6308 rm -f conftest*
6311 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6312 echo "$ac_t""yes" 1>&6
6313 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6314 cat >> confdefs.h <<EOF
6315 #define $ac_tr_func 1
6318 else
6319 echo "$ac_t""no" 1>&6
6321 done
6323 for ac_func in _write __write _fork __fork
6325 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6326 echo "configure:6327: checking for $ac_func" >&5
6327 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6328 echo $ac_n "(cached) $ac_c" 1>&6
6329 else
6330 cat > conftest.$ac_ext <<EOF
6331 #line 6332 "configure"
6332 #include "confdefs.h"
6333 /* System header to define __stub macros and hopefully few prototypes,
6334 which can conflict with char $ac_func(); below. */
6335 #include <assert.h>
6336 /* Override any gcc2 internal prototype to avoid an error. */
6337 /* We use char because int might match the return type of a gcc2
6338 builtin and then its argument prototype would still apply. */
6339 char $ac_func();
6341 int main() {
6343 /* The GNU C library defines this for functions which it implements
6344 to always fail with ENOSYS. Some functions are actually named
6345 something starting with __ and the normal name is an alias. */
6346 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6347 choke me
6348 #else
6349 $ac_func();
6350 #endif
6352 ; return 0; }
6354 if { (eval echo configure:6355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6355 rm -rf conftest*
6356 eval "ac_cv_func_$ac_func=yes"
6357 else
6358 echo "configure: failed program was:" >&5
6359 cat conftest.$ac_ext >&5
6360 rm -rf conftest*
6361 eval "ac_cv_func_$ac_func=no"
6363 rm -f conftest*
6366 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6367 echo "$ac_t""yes" 1>&6
6368 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6369 cat >> confdefs.h <<EOF
6370 #define $ac_tr_func 1
6373 else
6374 echo "$ac_t""no" 1>&6
6376 done
6378 for ac_func in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
6380 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6381 echo "configure:6382: checking for $ac_func" >&5
6382 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6383 echo $ac_n "(cached) $ac_c" 1>&6
6384 else
6385 cat > conftest.$ac_ext <<EOF
6386 #line 6387 "configure"
6387 #include "confdefs.h"
6388 /* System header to define __stub macros and hopefully few prototypes,
6389 which can conflict with char $ac_func(); below. */
6390 #include <assert.h>
6391 /* Override any gcc2 internal prototype to avoid an error. */
6392 /* We use char because int might match the return type of a gcc2
6393 builtin and then its argument prototype would still apply. */
6394 char $ac_func();
6396 int main() {
6398 /* The GNU C library defines this for functions which it implements
6399 to always fail with ENOSYS. Some functions are actually named
6400 something starting with __ and the normal name is an alias. */
6401 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6402 choke me
6403 #else
6404 $ac_func();
6405 #endif
6407 ; return 0; }
6409 if { (eval echo configure:6410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6410 rm -rf conftest*
6411 eval "ac_cv_func_$ac_func=yes"
6412 else
6413 echo "configure: failed program was:" >&5
6414 cat conftest.$ac_ext >&5
6415 rm -rf conftest*
6416 eval "ac_cv_func_$ac_func=no"
6418 rm -f conftest*
6421 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6422 echo "$ac_t""yes" 1>&6
6423 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6424 cat >> confdefs.h <<EOF
6425 #define $ac_tr_func 1
6428 else
6429 echo "$ac_t""no" 1>&6
6431 done
6433 for ac_func in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
6435 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6436 echo "configure:6437: checking for $ac_func" >&5
6437 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6438 echo $ac_n "(cached) $ac_c" 1>&6
6439 else
6440 cat > conftest.$ac_ext <<EOF
6441 #line 6442 "configure"
6442 #include "confdefs.h"
6443 /* System header to define __stub macros and hopefully few prototypes,
6444 which can conflict with char $ac_func(); below. */
6445 #include <assert.h>
6446 /* Override any gcc2 internal prototype to avoid an error. */
6447 /* We use char because int might match the return type of a gcc2
6448 builtin and then its argument prototype would still apply. */
6449 char $ac_func();
6451 int main() {
6453 /* The GNU C library defines this for functions which it implements
6454 to always fail with ENOSYS. Some functions are actually named
6455 something starting with __ and the normal name is an alias. */
6456 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6457 choke me
6458 #else
6459 $ac_func();
6460 #endif
6462 ; return 0; }
6464 if { (eval echo configure:6465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6465 rm -rf conftest*
6466 eval "ac_cv_func_$ac_func=yes"
6467 else
6468 echo "configure: failed program was:" >&5
6469 cat conftest.$ac_ext >&5
6470 rm -rf conftest*
6471 eval "ac_cv_func_$ac_func=no"
6473 rm -f conftest*
6476 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6477 echo "$ac_t""yes" 1>&6
6478 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6479 cat >> confdefs.h <<EOF
6480 #define $ac_tr_func 1
6483 else
6484 echo "$ac_t""no" 1>&6
6486 done
6488 for ac_func in pread _pread __pread pread64 _pread64 __pread64
6490 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6491 echo "configure:6492: checking for $ac_func" >&5
6492 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6493 echo $ac_n "(cached) $ac_c" 1>&6
6494 else
6495 cat > conftest.$ac_ext <<EOF
6496 #line 6497 "configure"
6497 #include "confdefs.h"
6498 /* System header to define __stub macros and hopefully few prototypes,
6499 which can conflict with char $ac_func(); below. */
6500 #include <assert.h>
6501 /* Override any gcc2 internal prototype to avoid an error. */
6502 /* We use char because int might match the return type of a gcc2
6503 builtin and then its argument prototype would still apply. */
6504 char $ac_func();
6506 int main() {
6508 /* The GNU C library defines this for functions which it implements
6509 to always fail with ENOSYS. Some functions are actually named
6510 something starting with __ and the normal name is an alias. */
6511 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6512 choke me
6513 #else
6514 $ac_func();
6515 #endif
6517 ; return 0; }
6519 if { (eval echo configure:6520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6520 rm -rf conftest*
6521 eval "ac_cv_func_$ac_func=yes"
6522 else
6523 echo "configure: failed program was:" >&5
6524 cat conftest.$ac_ext >&5
6525 rm -rf conftest*
6526 eval "ac_cv_func_$ac_func=no"
6528 rm -f conftest*
6531 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6532 echo "$ac_t""yes" 1>&6
6533 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6534 cat >> confdefs.h <<EOF
6535 #define $ac_tr_func 1
6538 else
6539 echo "$ac_t""no" 1>&6
6541 done
6543 for ac_func in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
6545 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6546 echo "configure:6547: checking for $ac_func" >&5
6547 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6548 echo $ac_n "(cached) $ac_c" 1>&6
6549 else
6550 cat > conftest.$ac_ext <<EOF
6551 #line 6552 "configure"
6552 #include "confdefs.h"
6553 /* System header to define __stub macros and hopefully few prototypes,
6554 which can conflict with char $ac_func(); below. */
6555 #include <assert.h>
6556 /* Override any gcc2 internal prototype to avoid an error. */
6557 /* We use char because int might match the return type of a gcc2
6558 builtin and then its argument prototype would still apply. */
6559 char $ac_func();
6561 int main() {
6563 /* The GNU C library defines this for functions which it implements
6564 to always fail with ENOSYS. Some functions are actually named
6565 something starting with __ and the normal name is an alias. */
6566 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6567 choke me
6568 #else
6569 $ac_func();
6570 #endif
6572 ; return 0; }
6574 if { (eval echo configure:6575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6575 rm -rf conftest*
6576 eval "ac_cv_func_$ac_func=yes"
6577 else
6578 echo "configure: failed program was:" >&5
6579 cat conftest.$ac_ext >&5
6580 rm -rf conftest*
6581 eval "ac_cv_func_$ac_func=no"
6583 rm -f conftest*
6586 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6587 echo "$ac_t""yes" 1>&6
6588 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6589 cat >> confdefs.h <<EOF
6590 #define $ac_tr_func 1
6593 else
6594 echo "$ac_t""no" 1>&6
6596 done
6598 for ac_func in open64 _open64 __open64 creat64
6600 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6601 echo "configure:6602: checking for $ac_func" >&5
6602 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6603 echo $ac_n "(cached) $ac_c" 1>&6
6604 else
6605 cat > conftest.$ac_ext <<EOF
6606 #line 6607 "configure"
6607 #include "confdefs.h"
6608 /* System header to define __stub macros and hopefully few prototypes,
6609 which can conflict with char $ac_func(); below. */
6610 #include <assert.h>
6611 /* Override any gcc2 internal prototype to avoid an error. */
6612 /* We use char because int might match the return type of a gcc2
6613 builtin and then its argument prototype would still apply. */
6614 char $ac_func();
6616 int main() {
6618 /* The GNU C library defines this for functions which it implements
6619 to always fail with ENOSYS. Some functions are actually named
6620 something starting with __ and the normal name is an alias. */
6621 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6622 choke me
6623 #else
6624 $ac_func();
6625 #endif
6627 ; return 0; }
6629 if { (eval echo configure:6630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6630 rm -rf conftest*
6631 eval "ac_cv_func_$ac_func=yes"
6632 else
6633 echo "configure: failed program was:" >&5
6634 cat conftest.$ac_ext >&5
6635 rm -rf conftest*
6636 eval "ac_cv_func_$ac_func=no"
6638 rm -f conftest*
6641 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6642 echo "$ac_t""yes" 1>&6
6643 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6644 cat >> confdefs.h <<EOF
6645 #define $ac_tr_func 1
6648 else
6649 echo "$ac_t""no" 1>&6
6651 done
6655 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
6658 if test x$ac_cv_func_stat64 = xno ; then
6659 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
6660 echo "configure:6661: checking for stat64 in <sys/stat.h>" >&5
6661 cat > conftest.$ac_ext <<EOF
6662 #line 6663 "configure"
6663 #include "confdefs.h"
6665 #if defined(HAVE_UNISTD_H)
6666 #include <unistd.h>
6667 #endif
6668 #include <sys/stat.h>
6670 int main() {
6671 struct stat64 st64; exit(stat64(".",&st64));
6672 ; return 0; }
6674 if { (eval echo configure:6675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6675 rm -rf conftest*
6676 ac_cv_func_stat64=yes
6677 else
6678 echo "configure: failed program was:" >&5
6679 cat conftest.$ac_ext >&5
6681 rm -f conftest*
6682 echo "$ac_t""$ac_cv_func_stat64" 1>&6
6683 if test x$ac_cv_func_stat64 = xyes ; then
6684 cat >> confdefs.h <<\EOF
6685 #define HAVE_STAT64 1
6691 if test x$ac_cv_func_lstat64 = xno ; then
6692 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
6693 echo "configure:6694: checking for lstat64 in <sys/stat.h>" >&5
6694 cat > conftest.$ac_ext <<EOF
6695 #line 6696 "configure"
6696 #include "confdefs.h"
6698 #if defined(HAVE_UNISTD_H)
6699 #include <unistd.h>
6700 #endif
6701 #include <sys/stat.h>
6703 int main() {
6704 struct stat64 st64; exit(lstat64(".",&st64));
6705 ; return 0; }
6707 if { (eval echo configure:6708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6708 rm -rf conftest*
6709 ac_cv_func_lstat64=yes
6710 else
6711 echo "configure: failed program was:" >&5
6712 cat conftest.$ac_ext >&5
6714 rm -f conftest*
6715 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
6716 if test x$ac_cv_func_lstat64 = xyes ; then
6717 cat >> confdefs.h <<\EOF
6718 #define HAVE_LSTAT64 1
6724 if test x$ac_cv_func_fstat64 = xno ; then
6725 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
6726 echo "configure:6727: checking for fstat64 in <sys/stat.h>" >&5
6727 cat > conftest.$ac_ext <<EOF
6728 #line 6729 "configure"
6729 #include "confdefs.h"
6731 #if defined(HAVE_UNISTD_H)
6732 #include <unistd.h>
6733 #endif
6734 #include <sys/stat.h>
6736 int main() {
6737 struct stat64 st64; exit(fstat64(0,&st64));
6738 ; return 0; }
6740 if { (eval echo configure:6741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6741 rm -rf conftest*
6742 ac_cv_func_fstat64=yes
6743 else
6744 echo "configure: failed program was:" >&5
6745 cat conftest.$ac_ext >&5
6747 rm -f conftest*
6748 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
6749 if test x$ac_cv_func_fstat64 = xyes ; then
6750 cat >> confdefs.h <<\EOF
6751 #define HAVE_FSTAT64 1
6758 # If no strcasecmp, check for it in some known places
6759 # It is in -lresolv on ReliantUNIX and UnixWare
6760 # -lresolve *must* follow -lnsl for name resolution to work properly
6763 if test x$ac_cv_func_strcasecmp = xno ; then
6764 echo $ac_n "checking for strcasecmp in -lresolv""... $ac_c" 1>&6
6765 echo "configure:6766: checking for strcasecmp in -lresolv" >&5
6766 ac_lib_var=`echo resolv'_'strcasecmp | sed 'y%./+-%__p_%'`
6767 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6768 echo $ac_n "(cached) $ac_c" 1>&6
6769 else
6770 ac_save_LIBS="$LIBS"
6771 LIBS="-lresolv $LIBS"
6772 cat > conftest.$ac_ext <<EOF
6773 #line 6774 "configure"
6774 #include "confdefs.h"
6775 /* Override any gcc2 internal prototype to avoid an error. */
6776 /* We use char because int might match the return type of a gcc2
6777 builtin and then its argument prototype would still apply. */
6778 char strcasecmp();
6780 int main() {
6781 strcasecmp()
6782 ; return 0; }
6784 if { (eval echo configure:6785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6785 rm -rf conftest*
6786 eval "ac_cv_lib_$ac_lib_var=yes"
6787 else
6788 echo "configure: failed program was:" >&5
6789 cat conftest.$ac_ext >&5
6790 rm -rf conftest*
6791 eval "ac_cv_lib_$ac_lib_var=no"
6793 rm -f conftest*
6794 LIBS="$ac_save_LIBS"
6797 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6798 echo "$ac_t""yes" 1>&6
6799 LIBS="$LIBS -lresolv"
6800 cat >> confdefs.h <<\EOF
6801 #define HAVE_STRCASECMP 1
6804 else
6805 echo "$ac_t""no" 1>&6
6811 # Check for the functions putprpwnam, set_auth_parameters,
6812 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
6813 # Needed for OSF1 and HPUX.
6816 case "$LIBS" in
6817 *-lsecurity*) for ac_func in putprpwnam
6819 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6820 echo "configure:6821: checking for $ac_func" >&5
6821 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6822 echo $ac_n "(cached) $ac_c" 1>&6
6823 else
6824 cat > conftest.$ac_ext <<EOF
6825 #line 6826 "configure"
6826 #include "confdefs.h"
6827 /* System header to define __stub macros and hopefully few prototypes,
6828 which can conflict with char $ac_func(); below. */
6829 #include <assert.h>
6830 /* Override any gcc2 internal prototype to avoid an error. */
6831 /* We use char because int might match the return type of a gcc2
6832 builtin and then its argument prototype would still apply. */
6833 char $ac_func();
6835 int main() {
6837 /* The GNU C library defines this for functions which it implements
6838 to always fail with ENOSYS. Some functions are actually named
6839 something starting with __ and the normal name is an alias. */
6840 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6841 choke me
6842 #else
6843 $ac_func();
6844 #endif
6846 ; return 0; }
6848 if { (eval echo configure:6849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6849 rm -rf conftest*
6850 eval "ac_cv_func_$ac_func=yes"
6851 else
6852 echo "configure: failed program was:" >&5
6853 cat conftest.$ac_ext >&5
6854 rm -rf conftest*
6855 eval "ac_cv_func_$ac_func=no"
6857 rm -f conftest*
6860 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6861 echo "$ac_t""yes" 1>&6
6862 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6863 cat >> confdefs.h <<EOF
6864 #define $ac_tr_func 1
6867 else
6868 echo "$ac_t""no" 1>&6
6870 done
6872 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
6873 echo "configure:6874: checking for putprpwnam in -lsecurity" >&5
6874 ac_lib_var=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
6875 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6876 echo $ac_n "(cached) $ac_c" 1>&6
6877 else
6878 ac_save_LIBS="$LIBS"
6879 LIBS="-lsecurity $LIBS"
6880 cat > conftest.$ac_ext <<EOF
6881 #line 6882 "configure"
6882 #include "confdefs.h"
6883 /* Override any gcc2 internal prototype to avoid an error. */
6884 /* We use char because int might match the return type of a gcc2
6885 builtin and then its argument prototype would still apply. */
6886 char putprpwnam();
6888 int main() {
6889 putprpwnam()
6890 ; return 0; }
6892 if { (eval echo configure:6893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6893 rm -rf conftest*
6894 eval "ac_cv_lib_$ac_lib_var=yes"
6895 else
6896 echo "configure: failed program was:" >&5
6897 cat conftest.$ac_ext >&5
6898 rm -rf conftest*
6899 eval "ac_cv_lib_$ac_lib_var=no"
6901 rm -f conftest*
6902 LIBS="$ac_save_LIBS"
6905 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6906 echo "$ac_t""yes" 1>&6
6907 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6908 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6909 cat >> confdefs.h <<EOF
6910 #define $ac_tr_lib 1
6913 LIBS="-lsecurity $LIBS"
6915 else
6916 echo "$ac_t""no" 1>&6
6919 for ac_func in putprpwnam
6921 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6922 echo "configure:6923: checking for $ac_func" >&5
6923 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6924 echo $ac_n "(cached) $ac_c" 1>&6
6925 else
6926 cat > conftest.$ac_ext <<EOF
6927 #line 6928 "configure"
6928 #include "confdefs.h"
6929 /* System header to define __stub macros and hopefully few prototypes,
6930 which can conflict with char $ac_func(); below. */
6931 #include <assert.h>
6932 /* Override any gcc2 internal prototype to avoid an error. */
6933 /* We use char because int might match the return type of a gcc2
6934 builtin and then its argument prototype would still apply. */
6935 char $ac_func();
6937 int main() {
6939 /* The GNU C library defines this for functions which it implements
6940 to always fail with ENOSYS. Some functions are actually named
6941 something starting with __ and the normal name is an alias. */
6942 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6943 choke me
6944 #else
6945 $ac_func();
6946 #endif
6948 ; return 0; }
6950 if { (eval echo configure:6951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6951 rm -rf conftest*
6952 eval "ac_cv_func_$ac_func=yes"
6953 else
6954 echo "configure: failed program was:" >&5
6955 cat conftest.$ac_ext >&5
6956 rm -rf conftest*
6957 eval "ac_cv_func_$ac_func=no"
6959 rm -f conftest*
6962 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6963 echo "$ac_t""yes" 1>&6
6964 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6965 cat >> confdefs.h <<EOF
6966 #define $ac_tr_func 1
6969 else
6970 echo "$ac_t""no" 1>&6
6972 done
6975 esac
6977 case "$LIBS" in
6978 *-lsec*) for ac_func in putprpwnam
6980 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6981 echo "configure:6982: checking for $ac_func" >&5
6982 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6983 echo $ac_n "(cached) $ac_c" 1>&6
6984 else
6985 cat > conftest.$ac_ext <<EOF
6986 #line 6987 "configure"
6987 #include "confdefs.h"
6988 /* System header to define __stub macros and hopefully few prototypes,
6989 which can conflict with char $ac_func(); below. */
6990 #include <assert.h>
6991 /* Override any gcc2 internal prototype to avoid an error. */
6992 /* We use char because int might match the return type of a gcc2
6993 builtin and then its argument prototype would still apply. */
6994 char $ac_func();
6996 int main() {
6998 /* The GNU C library defines this for functions which it implements
6999 to always fail with ENOSYS. Some functions are actually named
7000 something starting with __ and the normal name is an alias. */
7001 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7002 choke me
7003 #else
7004 $ac_func();
7005 #endif
7007 ; return 0; }
7009 if { (eval echo configure:7010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7010 rm -rf conftest*
7011 eval "ac_cv_func_$ac_func=yes"
7012 else
7013 echo "configure: failed program was:" >&5
7014 cat conftest.$ac_ext >&5
7015 rm -rf conftest*
7016 eval "ac_cv_func_$ac_func=no"
7018 rm -f conftest*
7021 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7022 echo "$ac_t""yes" 1>&6
7023 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7024 cat >> confdefs.h <<EOF
7025 #define $ac_tr_func 1
7028 else
7029 echo "$ac_t""no" 1>&6
7031 done
7033 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
7034 echo "configure:7035: checking for putprpwnam in -lsec" >&5
7035 ac_lib_var=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
7036 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7037 echo $ac_n "(cached) $ac_c" 1>&6
7038 else
7039 ac_save_LIBS="$LIBS"
7040 LIBS="-lsec $LIBS"
7041 cat > conftest.$ac_ext <<EOF
7042 #line 7043 "configure"
7043 #include "confdefs.h"
7044 /* Override any gcc2 internal prototype to avoid an error. */
7045 /* We use char because int might match the return type of a gcc2
7046 builtin and then its argument prototype would still apply. */
7047 char putprpwnam();
7049 int main() {
7050 putprpwnam()
7051 ; return 0; }
7053 if { (eval echo configure:7054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7054 rm -rf conftest*
7055 eval "ac_cv_lib_$ac_lib_var=yes"
7056 else
7057 echo "configure: failed program was:" >&5
7058 cat conftest.$ac_ext >&5
7059 rm -rf conftest*
7060 eval "ac_cv_lib_$ac_lib_var=no"
7062 rm -f conftest*
7063 LIBS="$ac_save_LIBS"
7066 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7067 echo "$ac_t""yes" 1>&6
7068 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7069 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7070 cat >> confdefs.h <<EOF
7071 #define $ac_tr_lib 1
7074 LIBS="-lsec $LIBS"
7076 else
7077 echo "$ac_t""no" 1>&6
7080 for ac_func in putprpwnam
7082 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7083 echo "configure:7084: checking for $ac_func" >&5
7084 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7085 echo $ac_n "(cached) $ac_c" 1>&6
7086 else
7087 cat > conftest.$ac_ext <<EOF
7088 #line 7089 "configure"
7089 #include "confdefs.h"
7090 /* System header to define __stub macros and hopefully few prototypes,
7091 which can conflict with char $ac_func(); below. */
7092 #include <assert.h>
7093 /* Override any gcc2 internal prototype to avoid an error. */
7094 /* We use char because int might match the return type of a gcc2
7095 builtin and then its argument prototype would still apply. */
7096 char $ac_func();
7098 int main() {
7100 /* The GNU C library defines this for functions which it implements
7101 to always fail with ENOSYS. Some functions are actually named
7102 something starting with __ and the normal name is an alias. */
7103 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7104 choke me
7105 #else
7106 $ac_func();
7107 #endif
7109 ; return 0; }
7111 if { (eval echo configure:7112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7112 rm -rf conftest*
7113 eval "ac_cv_func_$ac_func=yes"
7114 else
7115 echo "configure: failed program was:" >&5
7116 cat conftest.$ac_ext >&5
7117 rm -rf conftest*
7118 eval "ac_cv_func_$ac_func=no"
7120 rm -f conftest*
7123 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7124 echo "$ac_t""yes" 1>&6
7125 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7126 cat >> confdefs.h <<EOF
7127 #define $ac_tr_func 1
7130 else
7131 echo "$ac_t""no" 1>&6
7133 done
7136 esac
7139 case "$LIBS" in
7140 *-lsecurity*) for ac_func in set_auth_parameters
7142 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7143 echo "configure:7144: checking for $ac_func" >&5
7144 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7145 echo $ac_n "(cached) $ac_c" 1>&6
7146 else
7147 cat > conftest.$ac_ext <<EOF
7148 #line 7149 "configure"
7149 #include "confdefs.h"
7150 /* System header to define __stub macros and hopefully few prototypes,
7151 which can conflict with char $ac_func(); below. */
7152 #include <assert.h>
7153 /* Override any gcc2 internal prototype to avoid an error. */
7154 /* We use char because int might match the return type of a gcc2
7155 builtin and then its argument prototype would still apply. */
7156 char $ac_func();
7158 int main() {
7160 /* The GNU C library defines this for functions which it implements
7161 to always fail with ENOSYS. Some functions are actually named
7162 something starting with __ and the normal name is an alias. */
7163 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7164 choke me
7165 #else
7166 $ac_func();
7167 #endif
7169 ; return 0; }
7171 if { (eval echo configure:7172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7172 rm -rf conftest*
7173 eval "ac_cv_func_$ac_func=yes"
7174 else
7175 echo "configure: failed program was:" >&5
7176 cat conftest.$ac_ext >&5
7177 rm -rf conftest*
7178 eval "ac_cv_func_$ac_func=no"
7180 rm -f conftest*
7183 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7184 echo "$ac_t""yes" 1>&6
7185 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7186 cat >> confdefs.h <<EOF
7187 #define $ac_tr_func 1
7190 else
7191 echo "$ac_t""no" 1>&6
7193 done
7195 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
7196 echo "configure:7197: checking for set_auth_parameters in -lsecurity" >&5
7197 ac_lib_var=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7198 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7199 echo $ac_n "(cached) $ac_c" 1>&6
7200 else
7201 ac_save_LIBS="$LIBS"
7202 LIBS="-lsecurity $LIBS"
7203 cat > conftest.$ac_ext <<EOF
7204 #line 7205 "configure"
7205 #include "confdefs.h"
7206 /* Override any gcc2 internal prototype to avoid an error. */
7207 /* We use char because int might match the return type of a gcc2
7208 builtin and then its argument prototype would still apply. */
7209 char set_auth_parameters();
7211 int main() {
7212 set_auth_parameters()
7213 ; return 0; }
7215 if { (eval echo configure:7216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7216 rm -rf conftest*
7217 eval "ac_cv_lib_$ac_lib_var=yes"
7218 else
7219 echo "configure: failed program was:" >&5
7220 cat conftest.$ac_ext >&5
7221 rm -rf conftest*
7222 eval "ac_cv_lib_$ac_lib_var=no"
7224 rm -f conftest*
7225 LIBS="$ac_save_LIBS"
7228 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7229 echo "$ac_t""yes" 1>&6
7230 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7231 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7232 cat >> confdefs.h <<EOF
7233 #define $ac_tr_lib 1
7236 LIBS="-lsecurity $LIBS"
7238 else
7239 echo "$ac_t""no" 1>&6
7242 for ac_func in set_auth_parameters
7244 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7245 echo "configure:7246: checking for $ac_func" >&5
7246 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7247 echo $ac_n "(cached) $ac_c" 1>&6
7248 else
7249 cat > conftest.$ac_ext <<EOF
7250 #line 7251 "configure"
7251 #include "confdefs.h"
7252 /* System header to define __stub macros and hopefully few prototypes,
7253 which can conflict with char $ac_func(); below. */
7254 #include <assert.h>
7255 /* Override any gcc2 internal prototype to avoid an error. */
7256 /* We use char because int might match the return type of a gcc2
7257 builtin and then its argument prototype would still apply. */
7258 char $ac_func();
7260 int main() {
7262 /* The GNU C library defines this for functions which it implements
7263 to always fail with ENOSYS. Some functions are actually named
7264 something starting with __ and the normal name is an alias. */
7265 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7266 choke me
7267 #else
7268 $ac_func();
7269 #endif
7271 ; return 0; }
7273 if { (eval echo configure:7274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7274 rm -rf conftest*
7275 eval "ac_cv_func_$ac_func=yes"
7276 else
7277 echo "configure: failed program was:" >&5
7278 cat conftest.$ac_ext >&5
7279 rm -rf conftest*
7280 eval "ac_cv_func_$ac_func=no"
7282 rm -f conftest*
7285 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7286 echo "$ac_t""yes" 1>&6
7287 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7288 cat >> confdefs.h <<EOF
7289 #define $ac_tr_func 1
7292 else
7293 echo "$ac_t""no" 1>&6
7295 done
7298 esac
7300 case "$LIBS" in
7301 *-lsec*) for ac_func in set_auth_parameters
7303 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7304 echo "configure:7305: checking for $ac_func" >&5
7305 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7306 echo $ac_n "(cached) $ac_c" 1>&6
7307 else
7308 cat > conftest.$ac_ext <<EOF
7309 #line 7310 "configure"
7310 #include "confdefs.h"
7311 /* System header to define __stub macros and hopefully few prototypes,
7312 which can conflict with char $ac_func(); below. */
7313 #include <assert.h>
7314 /* Override any gcc2 internal prototype to avoid an error. */
7315 /* We use char because int might match the return type of a gcc2
7316 builtin and then its argument prototype would still apply. */
7317 char $ac_func();
7319 int main() {
7321 /* The GNU C library defines this for functions which it implements
7322 to always fail with ENOSYS. Some functions are actually named
7323 something starting with __ and the normal name is an alias. */
7324 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7325 choke me
7326 #else
7327 $ac_func();
7328 #endif
7330 ; return 0; }
7332 if { (eval echo configure:7333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7333 rm -rf conftest*
7334 eval "ac_cv_func_$ac_func=yes"
7335 else
7336 echo "configure: failed program was:" >&5
7337 cat conftest.$ac_ext >&5
7338 rm -rf conftest*
7339 eval "ac_cv_func_$ac_func=no"
7341 rm -f conftest*
7344 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7345 echo "$ac_t""yes" 1>&6
7346 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7347 cat >> confdefs.h <<EOF
7348 #define $ac_tr_func 1
7351 else
7352 echo "$ac_t""no" 1>&6
7354 done
7356 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
7357 echo "configure:7358: checking for set_auth_parameters in -lsec" >&5
7358 ac_lib_var=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7359 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7360 echo $ac_n "(cached) $ac_c" 1>&6
7361 else
7362 ac_save_LIBS="$LIBS"
7363 LIBS="-lsec $LIBS"
7364 cat > conftest.$ac_ext <<EOF
7365 #line 7366 "configure"
7366 #include "confdefs.h"
7367 /* Override any gcc2 internal prototype to avoid an error. */
7368 /* We use char because int might match the return type of a gcc2
7369 builtin and then its argument prototype would still apply. */
7370 char set_auth_parameters();
7372 int main() {
7373 set_auth_parameters()
7374 ; return 0; }
7376 if { (eval echo configure:7377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7377 rm -rf conftest*
7378 eval "ac_cv_lib_$ac_lib_var=yes"
7379 else
7380 echo "configure: failed program was:" >&5
7381 cat conftest.$ac_ext >&5
7382 rm -rf conftest*
7383 eval "ac_cv_lib_$ac_lib_var=no"
7385 rm -f conftest*
7386 LIBS="$ac_save_LIBS"
7389 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7390 echo "$ac_t""yes" 1>&6
7391 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7392 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7393 cat >> confdefs.h <<EOF
7394 #define $ac_tr_lib 1
7397 LIBS="-lsec $LIBS"
7399 else
7400 echo "$ac_t""no" 1>&6
7403 for ac_func in set_auth_parameters
7405 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7406 echo "configure:7407: checking for $ac_func" >&5
7407 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7408 echo $ac_n "(cached) $ac_c" 1>&6
7409 else
7410 cat > conftest.$ac_ext <<EOF
7411 #line 7412 "configure"
7412 #include "confdefs.h"
7413 /* System header to define __stub macros and hopefully few prototypes,
7414 which can conflict with char $ac_func(); below. */
7415 #include <assert.h>
7416 /* Override any gcc2 internal prototype to avoid an error. */
7417 /* We use char because int might match the return type of a gcc2
7418 builtin and then its argument prototype would still apply. */
7419 char $ac_func();
7421 int main() {
7423 /* The GNU C library defines this for functions which it implements
7424 to always fail with ENOSYS. Some functions are actually named
7425 something starting with __ and the normal name is an alias. */
7426 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7427 choke me
7428 #else
7429 $ac_func();
7430 #endif
7432 ; return 0; }
7434 if { (eval echo configure:7435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7435 rm -rf conftest*
7436 eval "ac_cv_func_$ac_func=yes"
7437 else
7438 echo "configure: failed program was:" >&5
7439 cat conftest.$ac_ext >&5
7440 rm -rf conftest*
7441 eval "ac_cv_func_$ac_func=no"
7443 rm -f conftest*
7446 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7447 echo "$ac_t""yes" 1>&6
7448 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7449 cat >> confdefs.h <<EOF
7450 #define $ac_tr_func 1
7453 else
7454 echo "$ac_t""no" 1>&6
7456 done
7459 esac
7462 # UnixWare 7.x has its getspnam in -lgen
7463 case "$LIBS" in
7464 *-lgen*) for ac_func in getspnam
7466 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7467 echo "configure:7468: checking for $ac_func" >&5
7468 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7469 echo $ac_n "(cached) $ac_c" 1>&6
7470 else
7471 cat > conftest.$ac_ext <<EOF
7472 #line 7473 "configure"
7473 #include "confdefs.h"
7474 /* System header to define __stub macros and hopefully few prototypes,
7475 which can conflict with char $ac_func(); below. */
7476 #include <assert.h>
7477 /* Override any gcc2 internal prototype to avoid an error. */
7478 /* We use char because int might match the return type of a gcc2
7479 builtin and then its argument prototype would still apply. */
7480 char $ac_func();
7482 int main() {
7484 /* The GNU C library defines this for functions which it implements
7485 to always fail with ENOSYS. Some functions are actually named
7486 something starting with __ and the normal name is an alias. */
7487 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7488 choke me
7489 #else
7490 $ac_func();
7491 #endif
7493 ; return 0; }
7495 if { (eval echo configure:7496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7496 rm -rf conftest*
7497 eval "ac_cv_func_$ac_func=yes"
7498 else
7499 echo "configure: failed program was:" >&5
7500 cat conftest.$ac_ext >&5
7501 rm -rf conftest*
7502 eval "ac_cv_func_$ac_func=no"
7504 rm -f conftest*
7507 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7508 echo "$ac_t""yes" 1>&6
7509 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7510 cat >> confdefs.h <<EOF
7511 #define $ac_tr_func 1
7514 else
7515 echo "$ac_t""no" 1>&6
7517 done
7519 *) echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
7520 echo "configure:7521: checking for getspnam in -lgen" >&5
7521 ac_lib_var=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
7522 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7523 echo $ac_n "(cached) $ac_c" 1>&6
7524 else
7525 ac_save_LIBS="$LIBS"
7526 LIBS="-lgen $LIBS"
7527 cat > conftest.$ac_ext <<EOF
7528 #line 7529 "configure"
7529 #include "confdefs.h"
7530 /* Override any gcc2 internal prototype to avoid an error. */
7531 /* We use char because int might match the return type of a gcc2
7532 builtin and then its argument prototype would still apply. */
7533 char getspnam();
7535 int main() {
7536 getspnam()
7537 ; return 0; }
7539 if { (eval echo configure:7540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7540 rm -rf conftest*
7541 eval "ac_cv_lib_$ac_lib_var=yes"
7542 else
7543 echo "configure: failed program was:" >&5
7544 cat conftest.$ac_ext >&5
7545 rm -rf conftest*
7546 eval "ac_cv_lib_$ac_lib_var=no"
7548 rm -f conftest*
7549 LIBS="$ac_save_LIBS"
7552 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7553 echo "$ac_t""yes" 1>&6
7554 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7555 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7556 cat >> confdefs.h <<EOF
7557 #define $ac_tr_lib 1
7560 LIBS="-lgen $LIBS"
7562 else
7563 echo "$ac_t""no" 1>&6
7566 for ac_func in getspnam
7568 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7569 echo "configure:7570: checking for $ac_func" >&5
7570 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7571 echo $ac_n "(cached) $ac_c" 1>&6
7572 else
7573 cat > conftest.$ac_ext <<EOF
7574 #line 7575 "configure"
7575 #include "confdefs.h"
7576 /* System header to define __stub macros and hopefully few prototypes,
7577 which can conflict with char $ac_func(); below. */
7578 #include <assert.h>
7579 /* Override any gcc2 internal prototype to avoid an error. */
7580 /* We use char because int might match the return type of a gcc2
7581 builtin and then its argument prototype would still apply. */
7582 char $ac_func();
7584 int main() {
7586 /* The GNU C library defines this for functions which it implements
7587 to always fail with ENOSYS. Some functions are actually named
7588 something starting with __ and the normal name is an alias. */
7589 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7590 choke me
7591 #else
7592 $ac_func();
7593 #endif
7595 ; return 0; }
7597 if { (eval echo configure:7598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7598 rm -rf conftest*
7599 eval "ac_cv_func_$ac_func=yes"
7600 else
7601 echo "configure: failed program was:" >&5
7602 cat conftest.$ac_ext >&5
7603 rm -rf conftest*
7604 eval "ac_cv_func_$ac_func=no"
7606 rm -f conftest*
7609 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7610 echo "$ac_t""yes" 1>&6
7611 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7612 cat >> confdefs.h <<EOF
7613 #define $ac_tr_func 1
7616 else
7617 echo "$ac_t""no" 1>&6
7619 done
7622 esac
7625 case "$LIBS" in
7626 *-lsecurity*) for ac_func in getspnam
7628 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7629 echo "configure:7630: checking for $ac_func" >&5
7630 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7631 echo $ac_n "(cached) $ac_c" 1>&6
7632 else
7633 cat > conftest.$ac_ext <<EOF
7634 #line 7635 "configure"
7635 #include "confdefs.h"
7636 /* System header to define __stub macros and hopefully few prototypes,
7637 which can conflict with char $ac_func(); below. */
7638 #include <assert.h>
7639 /* Override any gcc2 internal prototype to avoid an error. */
7640 /* We use char because int might match the return type of a gcc2
7641 builtin and then its argument prototype would still apply. */
7642 char $ac_func();
7644 int main() {
7646 /* The GNU C library defines this for functions which it implements
7647 to always fail with ENOSYS. Some functions are actually named
7648 something starting with __ and the normal name is an alias. */
7649 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7650 choke me
7651 #else
7652 $ac_func();
7653 #endif
7655 ; return 0; }
7657 if { (eval echo configure:7658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7658 rm -rf conftest*
7659 eval "ac_cv_func_$ac_func=yes"
7660 else
7661 echo "configure: failed program was:" >&5
7662 cat conftest.$ac_ext >&5
7663 rm -rf conftest*
7664 eval "ac_cv_func_$ac_func=no"
7666 rm -f conftest*
7669 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7670 echo "$ac_t""yes" 1>&6
7671 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7672 cat >> confdefs.h <<EOF
7673 #define $ac_tr_func 1
7676 else
7677 echo "$ac_t""no" 1>&6
7679 done
7681 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
7682 echo "configure:7683: checking for getspnam in -lsecurity" >&5
7683 ac_lib_var=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
7684 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7685 echo $ac_n "(cached) $ac_c" 1>&6
7686 else
7687 ac_save_LIBS="$LIBS"
7688 LIBS="-lsecurity $LIBS"
7689 cat > conftest.$ac_ext <<EOF
7690 #line 7691 "configure"
7691 #include "confdefs.h"
7692 /* Override any gcc2 internal prototype to avoid an error. */
7693 /* We use char because int might match the return type of a gcc2
7694 builtin and then its argument prototype would still apply. */
7695 char getspnam();
7697 int main() {
7698 getspnam()
7699 ; return 0; }
7701 if { (eval echo configure:7702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7702 rm -rf conftest*
7703 eval "ac_cv_lib_$ac_lib_var=yes"
7704 else
7705 echo "configure: failed program was:" >&5
7706 cat conftest.$ac_ext >&5
7707 rm -rf conftest*
7708 eval "ac_cv_lib_$ac_lib_var=no"
7710 rm -f conftest*
7711 LIBS="$ac_save_LIBS"
7714 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7715 echo "$ac_t""yes" 1>&6
7716 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7717 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7718 cat >> confdefs.h <<EOF
7719 #define $ac_tr_lib 1
7722 LIBS="-lsecurity $LIBS"
7724 else
7725 echo "$ac_t""no" 1>&6
7728 for ac_func in getspnam
7730 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7731 echo "configure:7732: checking for $ac_func" >&5
7732 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7733 echo $ac_n "(cached) $ac_c" 1>&6
7734 else
7735 cat > conftest.$ac_ext <<EOF
7736 #line 7737 "configure"
7737 #include "confdefs.h"
7738 /* System header to define __stub macros and hopefully few prototypes,
7739 which can conflict with char $ac_func(); below. */
7740 #include <assert.h>
7741 /* Override any gcc2 internal prototype to avoid an error. */
7742 /* We use char because int might match the return type of a gcc2
7743 builtin and then its argument prototype would still apply. */
7744 char $ac_func();
7746 int main() {
7748 /* The GNU C library defines this for functions which it implements
7749 to always fail with ENOSYS. Some functions are actually named
7750 something starting with __ and the normal name is an alias. */
7751 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7752 choke me
7753 #else
7754 $ac_func();
7755 #endif
7757 ; return 0; }
7759 if { (eval echo configure:7760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7760 rm -rf conftest*
7761 eval "ac_cv_func_$ac_func=yes"
7762 else
7763 echo "configure: failed program was:" >&5
7764 cat conftest.$ac_ext >&5
7765 rm -rf conftest*
7766 eval "ac_cv_func_$ac_func=no"
7768 rm -f conftest*
7771 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7772 echo "$ac_t""yes" 1>&6
7773 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7774 cat >> confdefs.h <<EOF
7775 #define $ac_tr_func 1
7778 else
7779 echo "$ac_t""no" 1>&6
7781 done
7784 esac
7786 case "$LIBS" in
7787 *-lsec*) for ac_func in getspnam
7789 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7790 echo "configure:7791: checking for $ac_func" >&5
7791 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7792 echo $ac_n "(cached) $ac_c" 1>&6
7793 else
7794 cat > conftest.$ac_ext <<EOF
7795 #line 7796 "configure"
7796 #include "confdefs.h"
7797 /* System header to define __stub macros and hopefully few prototypes,
7798 which can conflict with char $ac_func(); below. */
7799 #include <assert.h>
7800 /* Override any gcc2 internal prototype to avoid an error. */
7801 /* We use char because int might match the return type of a gcc2
7802 builtin and then its argument prototype would still apply. */
7803 char $ac_func();
7805 int main() {
7807 /* The GNU C library defines this for functions which it implements
7808 to always fail with ENOSYS. Some functions are actually named
7809 something starting with __ and the normal name is an alias. */
7810 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7811 choke me
7812 #else
7813 $ac_func();
7814 #endif
7816 ; return 0; }
7818 if { (eval echo configure:7819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7819 rm -rf conftest*
7820 eval "ac_cv_func_$ac_func=yes"
7821 else
7822 echo "configure: failed program was:" >&5
7823 cat conftest.$ac_ext >&5
7824 rm -rf conftest*
7825 eval "ac_cv_func_$ac_func=no"
7827 rm -f conftest*
7830 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7831 echo "$ac_t""yes" 1>&6
7832 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7833 cat >> confdefs.h <<EOF
7834 #define $ac_tr_func 1
7837 else
7838 echo "$ac_t""no" 1>&6
7840 done
7842 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
7843 echo "configure:7844: checking for getspnam in -lsec" >&5
7844 ac_lib_var=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
7845 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7846 echo $ac_n "(cached) $ac_c" 1>&6
7847 else
7848 ac_save_LIBS="$LIBS"
7849 LIBS="-lsec $LIBS"
7850 cat > conftest.$ac_ext <<EOF
7851 #line 7852 "configure"
7852 #include "confdefs.h"
7853 /* Override any gcc2 internal prototype to avoid an error. */
7854 /* We use char because int might match the return type of a gcc2
7855 builtin and then its argument prototype would still apply. */
7856 char getspnam();
7858 int main() {
7859 getspnam()
7860 ; return 0; }
7862 if { (eval echo configure:7863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7863 rm -rf conftest*
7864 eval "ac_cv_lib_$ac_lib_var=yes"
7865 else
7866 echo "configure: failed program was:" >&5
7867 cat conftest.$ac_ext >&5
7868 rm -rf conftest*
7869 eval "ac_cv_lib_$ac_lib_var=no"
7871 rm -f conftest*
7872 LIBS="$ac_save_LIBS"
7875 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7876 echo "$ac_t""yes" 1>&6
7877 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7878 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7879 cat >> confdefs.h <<EOF
7880 #define $ac_tr_lib 1
7883 LIBS="-lsec $LIBS"
7885 else
7886 echo "$ac_t""no" 1>&6
7889 for ac_func in getspnam
7891 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7892 echo "configure:7893: checking for $ac_func" >&5
7893 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7894 echo $ac_n "(cached) $ac_c" 1>&6
7895 else
7896 cat > conftest.$ac_ext <<EOF
7897 #line 7898 "configure"
7898 #include "confdefs.h"
7899 /* System header to define __stub macros and hopefully few prototypes,
7900 which can conflict with char $ac_func(); below. */
7901 #include <assert.h>
7902 /* Override any gcc2 internal prototype to avoid an error. */
7903 /* We use char because int might match the return type of a gcc2
7904 builtin and then its argument prototype would still apply. */
7905 char $ac_func();
7907 int main() {
7909 /* The GNU C library defines this for functions which it implements
7910 to always fail with ENOSYS. Some functions are actually named
7911 something starting with __ and the normal name is an alias. */
7912 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7913 choke me
7914 #else
7915 $ac_func();
7916 #endif
7918 ; return 0; }
7920 if { (eval echo configure:7921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7921 rm -rf conftest*
7922 eval "ac_cv_func_$ac_func=yes"
7923 else
7924 echo "configure: failed program was:" >&5
7925 cat conftest.$ac_ext >&5
7926 rm -rf conftest*
7927 eval "ac_cv_func_$ac_func=no"
7929 rm -f conftest*
7932 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7933 echo "$ac_t""yes" 1>&6
7934 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7935 cat >> confdefs.h <<EOF
7936 #define $ac_tr_func 1
7939 else
7940 echo "$ac_t""no" 1>&6
7942 done
7945 esac
7948 case "$LIBS" in
7949 *-lsecurity*) for ac_func in bigcrypt
7951 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7952 echo "configure:7953: checking for $ac_func" >&5
7953 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7954 echo $ac_n "(cached) $ac_c" 1>&6
7955 else
7956 cat > conftest.$ac_ext <<EOF
7957 #line 7958 "configure"
7958 #include "confdefs.h"
7959 /* System header to define __stub macros and hopefully few prototypes,
7960 which can conflict with char $ac_func(); below. */
7961 #include <assert.h>
7962 /* Override any gcc2 internal prototype to avoid an error. */
7963 /* We use char because int might match the return type of a gcc2
7964 builtin and then its argument prototype would still apply. */
7965 char $ac_func();
7967 int main() {
7969 /* The GNU C library defines this for functions which it implements
7970 to always fail with ENOSYS. Some functions are actually named
7971 something starting with __ and the normal name is an alias. */
7972 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7973 choke me
7974 #else
7975 $ac_func();
7976 #endif
7978 ; return 0; }
7980 if { (eval echo configure:7981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7981 rm -rf conftest*
7982 eval "ac_cv_func_$ac_func=yes"
7983 else
7984 echo "configure: failed program was:" >&5
7985 cat conftest.$ac_ext >&5
7986 rm -rf conftest*
7987 eval "ac_cv_func_$ac_func=no"
7989 rm -f conftest*
7992 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7993 echo "$ac_t""yes" 1>&6
7994 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7995 cat >> confdefs.h <<EOF
7996 #define $ac_tr_func 1
7999 else
8000 echo "$ac_t""no" 1>&6
8002 done
8004 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
8005 echo "configure:8006: checking for bigcrypt in -lsecurity" >&5
8006 ac_lib_var=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
8007 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8008 echo $ac_n "(cached) $ac_c" 1>&6
8009 else
8010 ac_save_LIBS="$LIBS"
8011 LIBS="-lsecurity $LIBS"
8012 cat > conftest.$ac_ext <<EOF
8013 #line 8014 "configure"
8014 #include "confdefs.h"
8015 /* Override any gcc2 internal prototype to avoid an error. */
8016 /* We use char because int might match the return type of a gcc2
8017 builtin and then its argument prototype would still apply. */
8018 char bigcrypt();
8020 int main() {
8021 bigcrypt()
8022 ; return 0; }
8024 if { (eval echo configure:8025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8025 rm -rf conftest*
8026 eval "ac_cv_lib_$ac_lib_var=yes"
8027 else
8028 echo "configure: failed program was:" >&5
8029 cat conftest.$ac_ext >&5
8030 rm -rf conftest*
8031 eval "ac_cv_lib_$ac_lib_var=no"
8033 rm -f conftest*
8034 LIBS="$ac_save_LIBS"
8037 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8038 echo "$ac_t""yes" 1>&6
8039 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8040 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8041 cat >> confdefs.h <<EOF
8042 #define $ac_tr_lib 1
8045 LIBS="-lsecurity $LIBS"
8047 else
8048 echo "$ac_t""no" 1>&6
8051 for ac_func in bigcrypt
8053 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8054 echo "configure:8055: checking for $ac_func" >&5
8055 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8056 echo $ac_n "(cached) $ac_c" 1>&6
8057 else
8058 cat > conftest.$ac_ext <<EOF
8059 #line 8060 "configure"
8060 #include "confdefs.h"
8061 /* System header to define __stub macros and hopefully few prototypes,
8062 which can conflict with char $ac_func(); below. */
8063 #include <assert.h>
8064 /* Override any gcc2 internal prototype to avoid an error. */
8065 /* We use char because int might match the return type of a gcc2
8066 builtin and then its argument prototype would still apply. */
8067 char $ac_func();
8069 int main() {
8071 /* The GNU C library defines this for functions which it implements
8072 to always fail with ENOSYS. Some functions are actually named
8073 something starting with __ and the normal name is an alias. */
8074 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8075 choke me
8076 #else
8077 $ac_func();
8078 #endif
8080 ; return 0; }
8082 if { (eval echo configure:8083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8083 rm -rf conftest*
8084 eval "ac_cv_func_$ac_func=yes"
8085 else
8086 echo "configure: failed program was:" >&5
8087 cat conftest.$ac_ext >&5
8088 rm -rf conftest*
8089 eval "ac_cv_func_$ac_func=no"
8091 rm -f conftest*
8094 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8095 echo "$ac_t""yes" 1>&6
8096 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8097 cat >> confdefs.h <<EOF
8098 #define $ac_tr_func 1
8101 else
8102 echo "$ac_t""no" 1>&6
8104 done
8107 esac
8109 case "$LIBS" in
8110 *-lsec*) for ac_func in bigcrypt
8112 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8113 echo "configure:8114: checking for $ac_func" >&5
8114 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8115 echo $ac_n "(cached) $ac_c" 1>&6
8116 else
8117 cat > conftest.$ac_ext <<EOF
8118 #line 8119 "configure"
8119 #include "confdefs.h"
8120 /* System header to define __stub macros and hopefully few prototypes,
8121 which can conflict with char $ac_func(); below. */
8122 #include <assert.h>
8123 /* Override any gcc2 internal prototype to avoid an error. */
8124 /* We use char because int might match the return type of a gcc2
8125 builtin and then its argument prototype would still apply. */
8126 char $ac_func();
8128 int main() {
8130 /* The GNU C library defines this for functions which it implements
8131 to always fail with ENOSYS. Some functions are actually named
8132 something starting with __ and the normal name is an alias. */
8133 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8134 choke me
8135 #else
8136 $ac_func();
8137 #endif
8139 ; return 0; }
8141 if { (eval echo configure:8142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8142 rm -rf conftest*
8143 eval "ac_cv_func_$ac_func=yes"
8144 else
8145 echo "configure: failed program was:" >&5
8146 cat conftest.$ac_ext >&5
8147 rm -rf conftest*
8148 eval "ac_cv_func_$ac_func=no"
8150 rm -f conftest*
8153 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8154 echo "$ac_t""yes" 1>&6
8155 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8156 cat >> confdefs.h <<EOF
8157 #define $ac_tr_func 1
8160 else
8161 echo "$ac_t""no" 1>&6
8163 done
8165 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
8166 echo "configure:8167: checking for bigcrypt in -lsec" >&5
8167 ac_lib_var=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
8168 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8169 echo $ac_n "(cached) $ac_c" 1>&6
8170 else
8171 ac_save_LIBS="$LIBS"
8172 LIBS="-lsec $LIBS"
8173 cat > conftest.$ac_ext <<EOF
8174 #line 8175 "configure"
8175 #include "confdefs.h"
8176 /* Override any gcc2 internal prototype to avoid an error. */
8177 /* We use char because int might match the return type of a gcc2
8178 builtin and then its argument prototype would still apply. */
8179 char bigcrypt();
8181 int main() {
8182 bigcrypt()
8183 ; return 0; }
8185 if { (eval echo configure:8186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8186 rm -rf conftest*
8187 eval "ac_cv_lib_$ac_lib_var=yes"
8188 else
8189 echo "configure: failed program was:" >&5
8190 cat conftest.$ac_ext >&5
8191 rm -rf conftest*
8192 eval "ac_cv_lib_$ac_lib_var=no"
8194 rm -f conftest*
8195 LIBS="$ac_save_LIBS"
8198 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8199 echo "$ac_t""yes" 1>&6
8200 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8201 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8202 cat >> confdefs.h <<EOF
8203 #define $ac_tr_lib 1
8206 LIBS="-lsec $LIBS"
8208 else
8209 echo "$ac_t""no" 1>&6
8212 for ac_func in bigcrypt
8214 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8215 echo "configure:8216: checking for $ac_func" >&5
8216 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8217 echo $ac_n "(cached) $ac_c" 1>&6
8218 else
8219 cat > conftest.$ac_ext <<EOF
8220 #line 8221 "configure"
8221 #include "confdefs.h"
8222 /* System header to define __stub macros and hopefully few prototypes,
8223 which can conflict with char $ac_func(); below. */
8224 #include <assert.h>
8225 /* Override any gcc2 internal prototype to avoid an error. */
8226 /* We use char because int might match the return type of a gcc2
8227 builtin and then its argument prototype would still apply. */
8228 char $ac_func();
8230 int main() {
8232 /* The GNU C library defines this for functions which it implements
8233 to always fail with ENOSYS. Some functions are actually named
8234 something starting with __ and the normal name is an alias. */
8235 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8236 choke me
8237 #else
8238 $ac_func();
8239 #endif
8241 ; return 0; }
8243 if { (eval echo configure:8244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8244 rm -rf conftest*
8245 eval "ac_cv_func_$ac_func=yes"
8246 else
8247 echo "configure: failed program was:" >&5
8248 cat conftest.$ac_ext >&5
8249 rm -rf conftest*
8250 eval "ac_cv_func_$ac_func=no"
8252 rm -f conftest*
8255 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8256 echo "$ac_t""yes" 1>&6
8257 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8258 cat >> confdefs.h <<EOF
8259 #define $ac_tr_func 1
8262 else
8263 echo "$ac_t""no" 1>&6
8265 done
8268 esac
8271 case "$LIBS" in
8272 *-lsecurity*) for ac_func in getprpwnam
8274 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8275 echo "configure:8276: checking for $ac_func" >&5
8276 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8277 echo $ac_n "(cached) $ac_c" 1>&6
8278 else
8279 cat > conftest.$ac_ext <<EOF
8280 #line 8281 "configure"
8281 #include "confdefs.h"
8282 /* System header to define __stub macros and hopefully few prototypes,
8283 which can conflict with char $ac_func(); below. */
8284 #include <assert.h>
8285 /* Override any gcc2 internal prototype to avoid an error. */
8286 /* We use char because int might match the return type of a gcc2
8287 builtin and then its argument prototype would still apply. */
8288 char $ac_func();
8290 int main() {
8292 /* The GNU C library defines this for functions which it implements
8293 to always fail with ENOSYS. Some functions are actually named
8294 something starting with __ and the normal name is an alias. */
8295 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8296 choke me
8297 #else
8298 $ac_func();
8299 #endif
8301 ; return 0; }
8303 if { (eval echo configure:8304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8304 rm -rf conftest*
8305 eval "ac_cv_func_$ac_func=yes"
8306 else
8307 echo "configure: failed program was:" >&5
8308 cat conftest.$ac_ext >&5
8309 rm -rf conftest*
8310 eval "ac_cv_func_$ac_func=no"
8312 rm -f conftest*
8315 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8316 echo "$ac_t""yes" 1>&6
8317 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8318 cat >> confdefs.h <<EOF
8319 #define $ac_tr_func 1
8322 else
8323 echo "$ac_t""no" 1>&6
8325 done
8327 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
8328 echo "configure:8329: checking for getprpwnam in -lsecurity" >&5
8329 ac_lib_var=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
8330 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8331 echo $ac_n "(cached) $ac_c" 1>&6
8332 else
8333 ac_save_LIBS="$LIBS"
8334 LIBS="-lsecurity $LIBS"
8335 cat > conftest.$ac_ext <<EOF
8336 #line 8337 "configure"
8337 #include "confdefs.h"
8338 /* Override any gcc2 internal prototype to avoid an error. */
8339 /* We use char because int might match the return type of a gcc2
8340 builtin and then its argument prototype would still apply. */
8341 char getprpwnam();
8343 int main() {
8344 getprpwnam()
8345 ; return 0; }
8347 if { (eval echo configure:8348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8348 rm -rf conftest*
8349 eval "ac_cv_lib_$ac_lib_var=yes"
8350 else
8351 echo "configure: failed program was:" >&5
8352 cat conftest.$ac_ext >&5
8353 rm -rf conftest*
8354 eval "ac_cv_lib_$ac_lib_var=no"
8356 rm -f conftest*
8357 LIBS="$ac_save_LIBS"
8360 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8361 echo "$ac_t""yes" 1>&6
8362 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8363 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8364 cat >> confdefs.h <<EOF
8365 #define $ac_tr_lib 1
8368 LIBS="-lsecurity $LIBS"
8370 else
8371 echo "$ac_t""no" 1>&6
8374 for ac_func in getprpwnam
8376 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8377 echo "configure:8378: checking for $ac_func" >&5
8378 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8379 echo $ac_n "(cached) $ac_c" 1>&6
8380 else
8381 cat > conftest.$ac_ext <<EOF
8382 #line 8383 "configure"
8383 #include "confdefs.h"
8384 /* System header to define __stub macros and hopefully few prototypes,
8385 which can conflict with char $ac_func(); below. */
8386 #include <assert.h>
8387 /* Override any gcc2 internal prototype to avoid an error. */
8388 /* We use char because int might match the return type of a gcc2
8389 builtin and then its argument prototype would still apply. */
8390 char $ac_func();
8392 int main() {
8394 /* The GNU C library defines this for functions which it implements
8395 to always fail with ENOSYS. Some functions are actually named
8396 something starting with __ and the normal name is an alias. */
8397 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8398 choke me
8399 #else
8400 $ac_func();
8401 #endif
8403 ; return 0; }
8405 if { (eval echo configure:8406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8406 rm -rf conftest*
8407 eval "ac_cv_func_$ac_func=yes"
8408 else
8409 echo "configure: failed program was:" >&5
8410 cat conftest.$ac_ext >&5
8411 rm -rf conftest*
8412 eval "ac_cv_func_$ac_func=no"
8414 rm -f conftest*
8417 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8418 echo "$ac_t""yes" 1>&6
8419 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8420 cat >> confdefs.h <<EOF
8421 #define $ac_tr_func 1
8424 else
8425 echo "$ac_t""no" 1>&6
8427 done
8430 esac
8432 case "$LIBS" in
8433 *-lsec*) for ac_func in getprpwnam
8435 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8436 echo "configure:8437: checking for $ac_func" >&5
8437 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8438 echo $ac_n "(cached) $ac_c" 1>&6
8439 else
8440 cat > conftest.$ac_ext <<EOF
8441 #line 8442 "configure"
8442 #include "confdefs.h"
8443 /* System header to define __stub macros and hopefully few prototypes,
8444 which can conflict with char $ac_func(); below. */
8445 #include <assert.h>
8446 /* Override any gcc2 internal prototype to avoid an error. */
8447 /* We use char because int might match the return type of a gcc2
8448 builtin and then its argument prototype would still apply. */
8449 char $ac_func();
8451 int main() {
8453 /* The GNU C library defines this for functions which it implements
8454 to always fail with ENOSYS. Some functions are actually named
8455 something starting with __ and the normal name is an alias. */
8456 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8457 choke me
8458 #else
8459 $ac_func();
8460 #endif
8462 ; return 0; }
8464 if { (eval echo configure:8465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8465 rm -rf conftest*
8466 eval "ac_cv_func_$ac_func=yes"
8467 else
8468 echo "configure: failed program was:" >&5
8469 cat conftest.$ac_ext >&5
8470 rm -rf conftest*
8471 eval "ac_cv_func_$ac_func=no"
8473 rm -f conftest*
8476 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8477 echo "$ac_t""yes" 1>&6
8478 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8479 cat >> confdefs.h <<EOF
8480 #define $ac_tr_func 1
8483 else
8484 echo "$ac_t""no" 1>&6
8486 done
8488 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
8489 echo "configure:8490: checking for getprpwnam in -lsec" >&5
8490 ac_lib_var=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
8491 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8492 echo $ac_n "(cached) $ac_c" 1>&6
8493 else
8494 ac_save_LIBS="$LIBS"
8495 LIBS="-lsec $LIBS"
8496 cat > conftest.$ac_ext <<EOF
8497 #line 8498 "configure"
8498 #include "confdefs.h"
8499 /* Override any gcc2 internal prototype to avoid an error. */
8500 /* We use char because int might match the return type of a gcc2
8501 builtin and then its argument prototype would still apply. */
8502 char getprpwnam();
8504 int main() {
8505 getprpwnam()
8506 ; return 0; }
8508 if { (eval echo configure:8509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8509 rm -rf conftest*
8510 eval "ac_cv_lib_$ac_lib_var=yes"
8511 else
8512 echo "configure: failed program was:" >&5
8513 cat conftest.$ac_ext >&5
8514 rm -rf conftest*
8515 eval "ac_cv_lib_$ac_lib_var=no"
8517 rm -f conftest*
8518 LIBS="$ac_save_LIBS"
8521 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8522 echo "$ac_t""yes" 1>&6
8523 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8524 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8525 cat >> confdefs.h <<EOF
8526 #define $ac_tr_lib 1
8529 LIBS="-lsec $LIBS"
8531 else
8532 echo "$ac_t""no" 1>&6
8535 for ac_func in getprpwnam
8537 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8538 echo "configure:8539: checking for $ac_func" >&5
8539 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8540 echo $ac_n "(cached) $ac_c" 1>&6
8541 else
8542 cat > conftest.$ac_ext <<EOF
8543 #line 8544 "configure"
8544 #include "confdefs.h"
8545 /* System header to define __stub macros and hopefully few prototypes,
8546 which can conflict with char $ac_func(); below. */
8547 #include <assert.h>
8548 /* Override any gcc2 internal prototype to avoid an error. */
8549 /* We use char because int might match the return type of a gcc2
8550 builtin and then its argument prototype would still apply. */
8551 char $ac_func();
8553 int main() {
8555 /* The GNU C library defines this for functions which it implements
8556 to always fail with ENOSYS. Some functions are actually named
8557 something starting with __ and the normal name is an alias. */
8558 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8559 choke me
8560 #else
8561 $ac_func();
8562 #endif
8564 ; return 0; }
8566 if { (eval echo configure:8567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8567 rm -rf conftest*
8568 eval "ac_cv_func_$ac_func=yes"
8569 else
8570 echo "configure: failed program was:" >&5
8571 cat conftest.$ac_ext >&5
8572 rm -rf conftest*
8573 eval "ac_cv_func_$ac_func=no"
8575 rm -f conftest*
8578 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8579 echo "$ac_t""yes" 1>&6
8580 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8581 cat >> confdefs.h <<EOF
8582 #define $ac_tr_func 1
8585 else
8586 echo "$ac_t""no" 1>&6
8588 done
8591 esac
8594 # this bit needs to be modified for each OS that is suported by
8595 # smbwrapper. You need to specify how to created a shared library and
8596 # how to compile C code to produce PIC object files
8598 # these are the defaults, good for lots of systems
8599 HOST_OS="$host_os"
8600 LDSHFLAGS="-shared"
8601 SONAMEFLAG="#"
8602 SHLD="\${CC}"
8603 PICFLAG=""
8604 PICSUFFIX="po.o"
8605 SHLIBEXT="so"
8606 # Assume non-shared by default and override below
8607 BLDSHARED="false"
8608 echo $ac_n "checking ability to build shared libraries""... $ac_c" 1>&6
8609 echo "configure:8610: checking ability to build shared libraries" >&5
8611 # and these are for particular systems
8612 case "$host_os" in
8613 *linux*) cat >> confdefs.h <<\EOF
8614 #define LINUX 1
8617 BLDSHARED="true"
8618 LDSHFLAGS="-shared"
8619 DYNEXP="-Wl,--export-dynamic"
8620 PICFLAG="-fPIC"
8621 SONAMEFLAG="-Wl,-soname="
8622 cat >> confdefs.h <<\EOF
8623 #define STAT_ST_BLOCKSIZE 512
8627 *solaris*) cat >> confdefs.h <<\EOF
8628 #define SUNOS5 1
8631 BLDSHARED="true"
8632 LDSHFLAGS="-G"
8633 SONAMEFLAG="-h "
8634 if test "${GCC}" = "yes"; then
8635 PICFLAG="-fPIC"
8636 DYNEXP="-Wl,-E"
8637 else
8638 PICFLAG="-KPIC"
8639 ## ${CFLAGS} added for building 64-bit shared
8640 ## libs using Sun's Compiler
8641 LDSHFLAGS="-G \${CFLAGS}"
8642 POBAD_CC=""
8643 PICSUFFIX="po.o"
8645 cat >> confdefs.h <<\EOF
8646 #define STAT_ST_BLOCKSIZE 512
8650 *sunos*) cat >> confdefs.h <<\EOF
8651 #define SUNOS4 1
8654 BLDSHARED="true"
8655 LDSHFLAGS="-G"
8656 SONAMEFLAG="-Wl,-h,"
8657 PICFLAG="-KPIC" # Is this correct for SunOS
8659 *bsd*) BLDSHARED="true"
8660 LDSHFLAGS="-shared"
8661 DYNEXP="-Wl,-Bdynamic"
8662 SONAMEFLAG="-Wl,-soname,"
8663 PICFLAG="-fPIC"
8664 cat >> confdefs.h <<\EOF
8665 #define STAT_ST_BLOCKSIZE 512
8669 *irix*) cat >> confdefs.h <<\EOF
8670 #define IRIX 1
8673 case "$host_os" in
8674 *irix6*) cat >> confdefs.h <<\EOF
8675 #define IRIX6 1
8679 esac
8680 ATTEMPT_WRAP32_BUILD=yes
8681 BLDSHARED="true"
8682 LDSHFLAGS="-set_version sgi1.0 -shared"
8683 SONAMEFLAG="-soname "
8684 SHLD="\${LD}"
8685 if test "${GCC}" = "yes"; then
8686 PICFLAG="-fPIC"
8687 else
8688 PICFLAG="-KPIC"
8690 cat >> confdefs.h <<\EOF
8691 #define STAT_ST_BLOCKSIZE 512
8695 *aix*) cat >> confdefs.h <<\EOF
8696 #define AIX 1
8699 BLDSHARED="true"
8700 LDSHFLAGS="-Wl,-bexpall,-bM:SRE,-bnoentry"
8701 DYNEXP="-Wl,-brtl,-bexpall"
8702 if test "${GCC}" = "yes"; then
8703 PICFLAG="-O2"
8704 else
8705 PICFLAG="-O2 -qmaxmem=6000"
8708 cat >> confdefs.h <<\EOF
8709 #define STAT_ST_BLOCKSIZE DEV_BSIZE
8713 *hpux*) cat >> confdefs.h <<\EOF
8714 #define HPUX 1
8717 SHLIBEXT="sl"
8718 # Use special PIC flags for the native HP-UX compiler.
8719 if test $ac_cv_prog_cc_Ae = yes; then
8720 BLDSHARED="true"
8721 SHLD="/usr/bin/ld"
8722 LDSHFLAGS="-B symbolic -b -z"
8723 SONAMEFLAG="+h "
8724 PICFLAG="+z"
8726 DYNEXP="-Wl,-E"
8727 cat >> confdefs.h <<\EOF
8728 #define STAT_ST_BLOCKSIZE 8192
8732 *qnx*) cat >> confdefs.h <<\EOF
8733 #define QNX 1
8736 *osf*) cat >> confdefs.h <<\EOF
8737 #define OSF1 1
8740 BLDSHARED="true"
8741 LDSHFLAGS="-shared"
8742 SONAMEFLAG="-Wl,-soname,"
8743 PICFLAG="-fPIC"
8745 *sco*) cat >> confdefs.h <<\EOF
8746 #define SCO 1
8749 *unixware*) cat >> confdefs.h <<\EOF
8750 #define UNIXWARE 1
8753 BLDSHARED="true"
8754 LDSHFLAGS="-shared"
8755 SONAMEFLAG="-Wl,-soname,"
8756 PICFLAG="-KPIC"
8758 *next2*) cat >> confdefs.h <<\EOF
8759 #define NEXT2 1
8762 *dgux*) # Extract the first word of "groff", so it can be a program name with args.
8763 set dummy groff; ac_word=$2
8764 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8765 echo "configure:8766: checking for $ac_word" >&5
8766 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
8767 echo $ac_n "(cached) $ac_c" 1>&6
8768 else
8769 if test -n "$ROFF"; then
8770 ac_cv_prog_ROFF="$ROFF" # Let the user override the test.
8771 else
8772 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8773 ac_dummy="$PATH"
8774 for ac_dir in $ac_dummy; do
8775 test -z "$ac_dir" && ac_dir=.
8776 if test -f $ac_dir/$ac_word; then
8777 ac_cv_prog_ROFF="groff -etpsR -Tascii -man"
8778 break
8780 done
8781 IFS="$ac_save_ifs"
8784 ROFF="$ac_cv_prog_ROFF"
8785 if test -n "$ROFF"; then
8786 echo "$ac_t""$ROFF" 1>&6
8787 else
8788 echo "$ac_t""no" 1>&6
8791 *sysv4*)
8792 case "$host" in
8793 *-univel-*) if test "$GCC" != yes ; then
8794 cat >> confdefs.h <<\EOF
8795 #define HAVE_MEMSET 1
8799 LDSHFLAGS="-G"
8800 DYNEXP="-Bexport"
8802 *mips-sni-sysv4*) cat >> confdefs.h <<\EOF
8803 #define RELIANTUNIX 1
8806 esac
8808 *sysv5*)
8809 if test "$GCC" != yes ; then
8810 cat >> confdefs.h <<\EOF
8811 #define HAVE_MEMSET 1
8815 LDSHFLAGS="-G"
8817 esac
8819 echo "$ac_t""$BLDSHARED" 1>&6
8820 echo $ac_n "checking linker flags for shared libraries""... $ac_c" 1>&6
8821 echo "configure:8822: checking linker flags for shared libraries" >&5
8822 echo "$ac_t""$LDSHFLAGS" 1>&6
8823 echo $ac_n "checking compiler flags for position-independent code""... $ac_c" 1>&6
8824 echo "configure:8825: checking compiler flags for position-independent code" >&5
8825 echo "$ac_t""$PICFLAGS" 1>&6
8827 # try to work out how to produce pic code with this compiler
8828 if test x$PICFLAG = x; then
8829 echo $ac_n "checking whether ${CC-cc} accepts -fpic""... $ac_c" 1>&6
8830 echo "configure:8831: checking whether ${CC-cc} accepts -fpic" >&5
8831 if eval "test \"`echo '$''{'ac_cv_prog_cc_fpic'+set}'`\" = set"; then
8832 echo $ac_n "(cached) $ac_c" 1>&6
8833 else
8834 echo 'void f(){}' > conftest.c
8835 if test -z "`${CC-cc} -fpic -c conftest.c 2>&1`"; then
8836 ac_cv_prog_cc_fpic=yes
8837 else
8838 ac_cv_prog_cc_fpic=no
8840 rm -f conftest*
8844 echo "$ac_t""$ac_cv_prog_cc_fpic" 1>&6
8845 if test $ac_cv_prog_cc_fpic = yes; then
8846 PICFLAG="-fpic";
8849 if test x$PICFLAG = x; then
8850 echo $ac_n "checking whether ${CC-cc} accepts -KPIC""... $ac_c" 1>&6
8851 echo "configure:8852: checking whether ${CC-cc} accepts -KPIC" >&5
8852 if eval "test \"`echo '$''{'ac_cv_prog_cc_KPIC'+set}'`\" = set"; then
8853 echo $ac_n "(cached) $ac_c" 1>&6
8854 else
8855 echo 'void f(){}' > conftest.c
8856 if test -z "`${CC-cc} -KPIC -c conftest.c 2>&1`"; then
8857 ac_cv_prog_cc_KPIC=yes
8858 else
8859 ac_cv_prog_cc_KPIC=no
8861 rm -f conftest*
8865 echo "$ac_t""$ac_cv_prog_cc_KPIC" 1>&6
8866 if test $ac_cv_prog_cc_KPIC = yes; then
8867 PICFLAG="-KPIC";
8870 if test x$PICFLAG = x; then
8871 echo $ac_n "checking whether ${CC-cc} accepts -Kpic""... $ac_c" 1>&6
8872 echo "configure:8873: checking whether ${CC-cc} accepts -Kpic" >&5
8873 if eval "test \"`echo '$''{'ac_cv_prog_cc_Kpic'+set}'`\" = set"; then
8874 echo $ac_n "(cached) $ac_c" 1>&6
8875 else
8876 echo 'void f(){}' > conftest.c
8877 if test -z "`${CC-cc} -Kpic -c conftest.c 2>&1`"; then
8878 ac_cv_prog_cc_Kpic=yes
8879 else
8880 ac_cv_prog_cc_Kpic=no
8882 rm -f conftest*
8886 echo "$ac_t""$ac_cv_prog_cc_Kpic" 1>&6
8887 if test $ac_cv_prog_cc_Kpic = yes; then
8888 PICFLAG="-Kpic";
8892 ################
8894 echo $ac_n "checking for long long""... $ac_c" 1>&6
8895 echo "configure:8896: checking for long long" >&5
8896 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
8897 echo $ac_n "(cached) $ac_c" 1>&6
8898 else
8900 if test "$cross_compiling" = yes; then
8901 samba_cv_have_longlong=cross
8902 else
8903 cat > conftest.$ac_ext <<EOF
8904 #line 8905 "configure"
8905 #include "confdefs.h"
8906 #include <stdio.h>
8907 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
8909 if { (eval echo configure:8910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8910 then
8911 samba_cv_have_longlong=yes
8912 else
8913 echo "configure: failed program was:" >&5
8914 cat conftest.$ac_ext >&5
8915 rm -fr conftest*
8916 samba_cv_have_longlong=no
8918 rm -fr conftest*
8923 echo "$ac_t""$samba_cv_have_longlong" 1>&6
8924 if test x"$samba_cv_have_longlong" = x"yes"; then
8925 cat >> confdefs.h <<\EOF
8926 #define HAVE_LONGLONG 1
8932 # Check if the compiler supports the LL prefix on long long integers.
8933 # AIX needs this.
8935 echo $ac_n "checking for LL suffix on long long integers""... $ac_c" 1>&6
8936 echo "configure:8937: checking for LL suffix on long long integers" >&5
8937 if eval "test \"`echo '$''{'samba_cv_compiler_supports_ll'+set}'`\" = set"; then
8938 echo $ac_n "(cached) $ac_c" 1>&6
8939 else
8941 cat > conftest.$ac_ext <<EOF
8942 #line 8943 "configure"
8943 #include "confdefs.h"
8944 #include <stdio.h>
8945 int main() {
8946 long long i = 0x8000000000LL
8947 ; return 0; }
8949 if { (eval echo configure:8950: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8950 rm -rf conftest*
8951 samba_cv_compiler_supports_ll=yes
8952 else
8953 echo "configure: failed program was:" >&5
8954 cat conftest.$ac_ext >&5
8955 rm -rf conftest*
8956 samba_cv_compiler_supports_ll=no
8958 rm -f conftest*
8961 echo "$ac_t""$samba_cv_compiler_supports_ll" 1>&6
8962 if test x"$samba_cv_compiler_supports_ll" = x"yes"; then
8963 cat >> confdefs.h <<\EOF
8964 #define COMPILER_SUPPORTS_LL 1
8970 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
8971 echo "configure:8972: checking for 64 bit off_t" >&5
8972 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
8973 echo $ac_n "(cached) $ac_c" 1>&6
8974 else
8976 if test "$cross_compiling" = yes; then
8977 samba_cv_SIZEOF_OFF_T=cross
8978 else
8979 cat > conftest.$ac_ext <<EOF
8980 #line 8981 "configure"
8981 #include "confdefs.h"
8982 #include <stdio.h>
8983 #include <sys/stat.h>
8984 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
8986 if { (eval echo configure:8987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8987 then
8988 samba_cv_SIZEOF_OFF_T=yes
8989 else
8990 echo "configure: failed program was:" >&5
8991 cat conftest.$ac_ext >&5
8992 rm -fr conftest*
8993 samba_cv_SIZEOF_OFF_T=no
8995 rm -fr conftest*
9000 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
9001 if test x"$samba_cv_SIZEOF_OFF_T" = x"yes"; then
9002 cat >> confdefs.h <<\EOF
9003 #define SIZEOF_OFF_T 8
9008 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
9009 echo "configure:9010: checking for off64_t" >&5
9010 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
9011 echo $ac_n "(cached) $ac_c" 1>&6
9012 else
9014 if test "$cross_compiling" = yes; then
9015 samba_cv_HAVE_OFF64_T=cross
9016 else
9017 cat > conftest.$ac_ext <<EOF
9018 #line 9019 "configure"
9019 #include "confdefs.h"
9021 #if defined(HAVE_UNISTD_H)
9022 #include <unistd.h>
9023 #endif
9024 #include <stdio.h>
9025 #include <sys/stat.h>
9026 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9028 if { (eval echo configure:9029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9029 then
9030 samba_cv_HAVE_OFF64_T=yes
9031 else
9032 echo "configure: failed program was:" >&5
9033 cat conftest.$ac_ext >&5
9034 rm -fr conftest*
9035 samba_cv_HAVE_OFF64_T=no
9037 rm -fr conftest*
9042 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
9043 if test x"$samba_cv_HAVE_OFF64_T" = x"yes"; then
9044 cat >> confdefs.h <<\EOF
9045 #define HAVE_OFF64_T 1
9050 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
9051 echo "configure:9052: checking for 64 bit ino_t" >&5
9052 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
9053 echo $ac_n "(cached) $ac_c" 1>&6
9054 else
9056 if test "$cross_compiling" = yes; then
9057 samba_cv_SIZEOF_INO_T=cross
9058 else
9059 cat > conftest.$ac_ext <<EOF
9060 #line 9061 "configure"
9061 #include "confdefs.h"
9062 #include <stdio.h>
9063 #include <sys/stat.h>
9064 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
9066 if { (eval echo configure:9067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9067 then
9068 samba_cv_SIZEOF_INO_T=yes
9069 else
9070 echo "configure: failed program was:" >&5
9071 cat conftest.$ac_ext >&5
9072 rm -fr conftest*
9073 samba_cv_SIZEOF_INO_T=no
9075 rm -fr conftest*
9080 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
9081 if test x"$samba_cv_SIZEOF_INO_T" = x"yes"; then
9082 cat >> confdefs.h <<\EOF
9083 #define SIZEOF_INO_T 8
9088 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
9089 echo "configure:9090: checking for ino64_t" >&5
9090 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
9091 echo $ac_n "(cached) $ac_c" 1>&6
9092 else
9094 if test "$cross_compiling" = yes; then
9095 samba_cv_HAVE_INO64_T=cross
9096 else
9097 cat > conftest.$ac_ext <<EOF
9098 #line 9099 "configure"
9099 #include "confdefs.h"
9101 #if defined(HAVE_UNISTD_H)
9102 #include <unistd.h>
9103 #endif
9104 #include <stdio.h>
9105 #include <sys/stat.h>
9106 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9108 if { (eval echo configure:9109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9109 then
9110 samba_cv_HAVE_INO64_T=yes
9111 else
9112 echo "configure: failed program was:" >&5
9113 cat conftest.$ac_ext >&5
9114 rm -fr conftest*
9115 samba_cv_HAVE_INO64_T=no
9117 rm -fr conftest*
9122 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
9123 if test x"$samba_cv_HAVE_INO64_T" = x"yes"; then
9124 cat >> confdefs.h <<\EOF
9125 #define HAVE_INO64_T 1
9130 echo $ac_n "checking for dev64_t""... $ac_c" 1>&6
9131 echo "configure:9132: checking for dev64_t" >&5
9132 if eval "test \"`echo '$''{'samba_cv_HAVE_DEV64_T'+set}'`\" = set"; then
9133 echo $ac_n "(cached) $ac_c" 1>&6
9134 else
9136 if test "$cross_compiling" = yes; then
9137 samba_cv_HAVE_DEV64_T=cross
9138 else
9139 cat > conftest.$ac_ext <<EOF
9140 #line 9141 "configure"
9141 #include "confdefs.h"
9143 #if defined(HAVE_UNISTD_H)
9144 #include <unistd.h>
9145 #endif
9146 #include <stdio.h>
9147 #include <sys/stat.h>
9148 main() { struct stat64 st; dev64_t s; if (sizeof(dev_t) == sizeof(dev64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9150 if { (eval echo configure:9151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9151 then
9152 samba_cv_HAVE_DEV64_T=yes
9153 else
9154 echo "configure: failed program was:" >&5
9155 cat conftest.$ac_ext >&5
9156 rm -fr conftest*
9157 samba_cv_HAVE_DEV64_T=no
9159 rm -fr conftest*
9164 echo "$ac_t""$samba_cv_HAVE_DEV64_T" 1>&6
9165 if test x"$samba_cv_HAVE_DEV64_T" = x"yes"; then
9166 cat >> confdefs.h <<\EOF
9167 #define HAVE_DEV64_T 1
9172 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
9173 echo "configure:9174: checking for struct dirent64" >&5
9174 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
9175 echo $ac_n "(cached) $ac_c" 1>&6
9176 else
9178 cat > conftest.$ac_ext <<EOF
9179 #line 9180 "configure"
9180 #include "confdefs.h"
9182 #if defined(HAVE_UNISTD_H)
9183 #include <unistd.h>
9184 #endif
9185 #include <sys/types.h>
9186 #include <dirent.h>
9187 int main() {
9188 struct dirent64 de;
9189 ; return 0; }
9191 if { (eval echo configure:9192: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9192 rm -rf conftest*
9193 samba_cv_HAVE_STRUCT_DIRENT64=yes
9194 else
9195 echo "configure: failed program was:" >&5
9196 cat conftest.$ac_ext >&5
9197 rm -rf conftest*
9198 samba_cv_HAVE_STRUCT_DIRENT64=no
9200 rm -f conftest*
9203 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
9204 if test x"$samba_cv_HAVE_STRUCT_DIRENT64" = x"yes"; then
9205 cat >> confdefs.h <<\EOF
9206 #define HAVE_STRUCT_DIRENT64 1
9211 echo $ac_n "checking for major macro""... $ac_c" 1>&6
9212 echo "configure:9213: checking for major macro" >&5
9213 if eval "test \"`echo '$''{'samba_cv_HAVE_DEVICE_MAJOR_FN'+set}'`\" = set"; then
9214 echo $ac_n "(cached) $ac_c" 1>&6
9215 else
9217 if test "$cross_compiling" = yes; then
9218 samba_cv_HAVE_DEVICE_MAJOR_FN=cross
9219 else
9220 cat > conftest.$ac_ext <<EOF
9221 #line 9222 "configure"
9222 #include "confdefs.h"
9224 #if defined(HAVE_UNISTD_H)
9225 #include <unistd.h>
9226 #endif
9227 #include <sys/types.h>
9228 main() { dev_t dev; int i = major(dev); return 0; }
9230 if { (eval echo configure:9231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9231 then
9232 samba_cv_HAVE_DEVICE_MAJOR_FN=yes
9233 else
9234 echo "configure: failed program was:" >&5
9235 cat conftest.$ac_ext >&5
9236 rm -fr conftest*
9237 samba_cv_HAVE_DEVICE_MAJOR_FN=no
9239 rm -fr conftest*
9244 echo "$ac_t""$samba_cv_HAVE_DEVICE_MAJOR_FN" 1>&6
9245 if test x"$samba_cv_HAVE_DEVICE_MAJOR_FN" = x"yes"; then
9246 cat >> confdefs.h <<\EOF
9247 #define HAVE_DEVICE_MAJOR_FN 1
9252 echo $ac_n "checking for minor macro""... $ac_c" 1>&6
9253 echo "configure:9254: checking for minor macro" >&5
9254 if eval "test \"`echo '$''{'samba_cv_HAVE_DEVICE_MINOR_FN'+set}'`\" = set"; then
9255 echo $ac_n "(cached) $ac_c" 1>&6
9256 else
9258 if test "$cross_compiling" = yes; then
9259 samba_cv_HAVE_DEVICE_MINOR_FN=cross
9260 else
9261 cat > conftest.$ac_ext <<EOF
9262 #line 9263 "configure"
9263 #include "confdefs.h"
9265 #if defined(HAVE_UNISTD_H)
9266 #include <unistd.h>
9267 #endif
9268 #include <sys/types.h>
9269 main() { dev_t dev; int i = minor(dev); return 0; }
9271 if { (eval echo configure:9272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9272 then
9273 samba_cv_HAVE_DEVICE_MINOR_FN=yes
9274 else
9275 echo "configure: failed program was:" >&5
9276 cat conftest.$ac_ext >&5
9277 rm -fr conftest*
9278 samba_cv_HAVE_DEVICE_MINOR_FN=no
9280 rm -fr conftest*
9285 echo "$ac_t""$samba_cv_HAVE_DEVICE_MINOR_FN" 1>&6
9286 if test x"$samba_cv_HAVE_DEVICE_MINOR_FN" = x"yes"; then
9287 cat >> confdefs.h <<\EOF
9288 #define HAVE_DEVICE_MINOR_FN 1
9293 echo $ac_n "checking for makedev macro""... $ac_c" 1>&6
9294 echo "configure:9295: checking for makedev macro" >&5
9295 if eval "test \"`echo '$''{'samba_cv_HAVE_MAKEDEV_FN'+set}'`\" = set"; then
9296 echo $ac_n "(cached) $ac_c" 1>&6
9297 else
9299 if test "$cross_compiling" = yes; then
9300 samba_cv_HAVE_MAKEDEV_FN=cross
9301 else
9302 cat > conftest.$ac_ext <<EOF
9303 #line 9304 "configure"
9304 #include "confdefs.h"
9306 #if defined(HAVE_UNISTD_H)
9307 #include <unistd.h>
9308 #endif
9309 #include <sys/types.h>
9310 main() { dev_t dev = makedev(1,2); return 0; }
9312 if { (eval echo configure:9313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9313 then
9314 samba_cv_HAVE_MAKEDEV_FN=yes
9315 else
9316 echo "configure: failed program was:" >&5
9317 cat conftest.$ac_ext >&5
9318 rm -fr conftest*
9319 samba_cv_HAVE_MAKEDEV_FN=no
9321 rm -fr conftest*
9326 echo "$ac_t""$samba_cv_HAVE_MAKEDEV_FN" 1>&6
9327 if test x"$samba_cv_HAVE_MAKEDEV_FN" = x"yes"; then
9328 cat >> confdefs.h <<\EOF
9329 #define MAKEDEV_FN 1
9334 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
9335 echo "configure:9336: checking for unsigned char" >&5
9336 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
9337 echo $ac_n "(cached) $ac_c" 1>&6
9338 else
9340 if test "$cross_compiling" = yes; then
9341 samba_cv_HAVE_UNSIGNED_CHAR=cross
9342 else
9343 cat > conftest.$ac_ext <<EOF
9344 #line 9345 "configure"
9345 #include "confdefs.h"
9346 #include <stdio.h>
9347 main() { char c; c=250; exit((c > 0)?0:1); }
9349 if { (eval echo configure:9350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9350 then
9351 samba_cv_HAVE_UNSIGNED_CHAR=yes
9352 else
9353 echo "configure: failed program was:" >&5
9354 cat conftest.$ac_ext >&5
9355 rm -fr conftest*
9356 samba_cv_HAVE_UNSIGNED_CHAR=no
9358 rm -fr conftest*
9363 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
9364 if test x"$samba_cv_HAVE_UNSIGNED_CHAR" = x"yes"; then
9365 cat >> confdefs.h <<\EOF
9366 #define HAVE_UNSIGNED_CHAR 1
9371 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
9372 echo "configure:9373: checking for sin_len in sock" >&5
9373 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
9374 echo $ac_n "(cached) $ac_c" 1>&6
9375 else
9377 cat > conftest.$ac_ext <<EOF
9378 #line 9379 "configure"
9379 #include "confdefs.h"
9380 #include <sys/types.h>
9381 #include <sys/socket.h>
9382 #include <netinet/in.h>
9383 int main() {
9384 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
9385 ; return 0; }
9387 if { (eval echo configure:9388: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9388 rm -rf conftest*
9389 samba_cv_HAVE_SOCK_SIN_LEN=yes
9390 else
9391 echo "configure: failed program was:" >&5
9392 cat conftest.$ac_ext >&5
9393 rm -rf conftest*
9394 samba_cv_HAVE_SOCK_SIN_LEN=no
9396 rm -f conftest*
9399 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
9400 if test x"$samba_cv_HAVE_SOCK_SIN_LEN" = x"yes"; then
9401 cat >> confdefs.h <<\EOF
9402 #define HAVE_SOCK_SIN_LEN 1
9407 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
9408 echo "configure:9409: checking whether seekdir returns void" >&5
9409 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
9410 echo $ac_n "(cached) $ac_c" 1>&6
9411 else
9413 cat > conftest.$ac_ext <<EOF
9414 #line 9415 "configure"
9415 #include "confdefs.h"
9416 #include <sys/types.h>
9417 #include <dirent.h>
9418 void seekdir(DIR *d, long loc) { return; }
9419 int main() {
9420 return 0;
9421 ; return 0; }
9423 if { (eval echo configure:9424: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9424 rm -rf conftest*
9425 samba_cv_SEEKDIR_RETURNS_VOID=yes
9426 else
9427 echo "configure: failed program was:" >&5
9428 cat conftest.$ac_ext >&5
9429 rm -rf conftest*
9430 samba_cv_SEEKDIR_RETURNS_VOID=no
9432 rm -f conftest*
9435 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
9436 if test x"$samba_cv_SEEKDIR_RETURNS_VOID" = x"yes"; then
9437 cat >> confdefs.h <<\EOF
9438 #define SEEKDIR_RETURNS_VOID 1
9443 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
9444 echo "configure:9445: checking for __FILE__ macro" >&5
9445 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
9446 echo $ac_n "(cached) $ac_c" 1>&6
9447 else
9449 cat > conftest.$ac_ext <<EOF
9450 #line 9451 "configure"
9451 #include "confdefs.h"
9452 #include <stdio.h>
9453 int main() {
9454 printf("%s\n", __FILE__);
9455 ; return 0; }
9457 if { (eval echo configure:9458: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9458 rm -rf conftest*
9459 samba_cv_HAVE_FILE_MACRO=yes
9460 else
9461 echo "configure: failed program was:" >&5
9462 cat conftest.$ac_ext >&5
9463 rm -rf conftest*
9464 samba_cv_HAVE_FILE_MACRO=no
9466 rm -f conftest*
9469 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
9470 if test x"$samba_cv_HAVE_FILE_MACRO" = x"yes"; then
9471 cat >> confdefs.h <<\EOF
9472 #define HAVE_FILE_MACRO 1
9477 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
9478 echo "configure:9479: checking for __FUNCTION__ macro" >&5
9479 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
9480 echo $ac_n "(cached) $ac_c" 1>&6
9481 else
9483 cat > conftest.$ac_ext <<EOF
9484 #line 9485 "configure"
9485 #include "confdefs.h"
9486 #include <stdio.h>
9487 int main() {
9488 printf("%s\n", __FUNCTION__);
9489 ; return 0; }
9491 if { (eval echo configure:9492: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9492 rm -rf conftest*
9493 samba_cv_HAVE_FUNCTION_MACRO=yes
9494 else
9495 echo "configure: failed program was:" >&5
9496 cat conftest.$ac_ext >&5
9497 rm -rf conftest*
9498 samba_cv_HAVE_FUNCTION_MACRO=no
9500 rm -f conftest*
9503 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
9504 if test x"$samba_cv_HAVE_FUNCTION_MACRO" = x"yes"; then
9505 cat >> confdefs.h <<\EOF
9506 #define HAVE_FUNCTION_MACRO 1
9511 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
9512 echo "configure:9513: checking if gettimeofday takes tz argument" >&5
9513 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
9514 echo $ac_n "(cached) $ac_c" 1>&6
9515 else
9517 if test "$cross_compiling" = yes; then
9518 samba_cv_HAVE_GETTIMEOFDAY_TZ=cross
9519 else
9520 cat > conftest.$ac_ext <<EOF
9521 #line 9522 "configure"
9522 #include "confdefs.h"
9524 #include <sys/time.h>
9525 #include <unistd.h>
9526 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
9528 if { (eval echo configure:9529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9529 then
9530 samba_cv_HAVE_GETTIMEOFDAY_TZ=yes
9531 else
9532 echo "configure: failed program was:" >&5
9533 cat conftest.$ac_ext >&5
9534 rm -fr conftest*
9535 samba_cv_HAVE_GETTIMEOFDAY_TZ=no
9537 rm -fr conftest*
9542 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
9543 if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
9544 cat >> confdefs.h <<\EOF
9545 #define HAVE_GETTIMEOFDAY_TZ 1
9550 echo $ac_n "checking for __va_copy""... $ac_c" 1>&6
9551 echo "configure:9552: checking for __va_copy" >&5
9552 if eval "test \"`echo '$''{'samba_cv_HAVE_VA_COPY'+set}'`\" = set"; then
9553 echo $ac_n "(cached) $ac_c" 1>&6
9554 else
9556 cat > conftest.$ac_ext <<EOF
9557 #line 9558 "configure"
9558 #include "confdefs.h"
9559 #include <stdarg.h>
9560 va_list ap1,ap2;
9561 int main() {
9562 __va_copy(ap1,ap2);
9563 ; return 0; }
9565 if { (eval echo configure:9566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9566 rm -rf conftest*
9567 samba_cv_HAVE_VA_COPY=yes
9568 else
9569 echo "configure: failed program was:" >&5
9570 cat conftest.$ac_ext >&5
9571 rm -rf conftest*
9572 samba_cv_HAVE_VA_COPY=no
9574 rm -f conftest*
9577 echo "$ac_t""$samba_cv_HAVE_VA_COPY" 1>&6
9578 if test x"$samba_cv_HAVE_VA_COPY" = x"yes"; then
9579 cat >> confdefs.h <<\EOF
9580 #define HAVE_VA_COPY 1
9585 echo $ac_n "checking for C99 vsnprintf""... $ac_c" 1>&6
9586 echo "configure:9587: checking for C99 vsnprintf" >&5
9587 if eval "test \"`echo '$''{'samba_cv_HAVE_C99_VSNPRINTF'+set}'`\" = set"; then
9588 echo $ac_n "(cached) $ac_c" 1>&6
9589 else
9591 if test "$cross_compiling" = yes; then
9592 samba_cv_HAVE_C99_VSNPRINTF=cross
9593 else
9594 cat > conftest.$ac_ext <<EOF
9595 #line 9596 "configure"
9596 #include "confdefs.h"
9598 #include <sys/types.h>
9599 #include <stdarg.h>
9600 void foo(const char *format, ...) {
9601 va_list ap;
9602 int len;
9603 char buf[5];
9605 va_start(ap, format);
9606 len = vsnprintf(buf, 0, format, ap);
9607 va_end(ap);
9608 if (len != 5) exit(1);
9610 va_start(ap, format);
9611 len = vsnprintf(0, 0, format, ap);
9612 va_end(ap);
9613 if (len != 5) exit(1);
9615 if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
9617 exit(0);
9619 main() { foo("hello"); }
9622 if { (eval echo configure:9623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9623 then
9624 samba_cv_HAVE_C99_VSNPRINTF=yes
9625 else
9626 echo "configure: failed program was:" >&5
9627 cat conftest.$ac_ext >&5
9628 rm -fr conftest*
9629 samba_cv_HAVE_C99_VSNPRINTF=no
9631 rm -fr conftest*
9636 echo "$ac_t""$samba_cv_HAVE_C99_VSNPRINTF" 1>&6
9637 if test x"$samba_cv_HAVE_C99_VSNPRINTF" = x"yes"; then
9638 cat >> confdefs.h <<\EOF
9639 #define HAVE_C99_VSNPRINTF 1
9644 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
9645 echo "configure:9646: checking for broken readdir" >&5
9646 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
9647 echo $ac_n "(cached) $ac_c" 1>&6
9648 else
9650 if test "$cross_compiling" = yes; then
9651 samba_cv_HAVE_BROKEN_READDIR=cross
9652 else
9653 cat > conftest.$ac_ext <<EOF
9654 #line 9655 "configure"
9655 #include "confdefs.h"
9656 #include <sys/types.h>
9657 #include <dirent.h>
9658 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
9659 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
9660 di->d_name[0] == 0) exit(0); exit(1);}
9662 if { (eval echo configure:9663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9663 then
9664 samba_cv_HAVE_BROKEN_READDIR=yes
9665 else
9666 echo "configure: failed program was:" >&5
9667 cat conftest.$ac_ext >&5
9668 rm -fr conftest*
9669 samba_cv_HAVE_BROKEN_READDIR=no
9671 rm -fr conftest*
9676 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
9677 if test x"$samba_cv_HAVE_BROKEN_READDIR" = x"yes"; then
9678 cat >> confdefs.h <<\EOF
9679 #define HAVE_BROKEN_READDIR 1
9684 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
9685 echo "configure:9686: checking for utimbuf" >&5
9686 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
9687 echo $ac_n "(cached) $ac_c" 1>&6
9688 else
9690 cat > conftest.$ac_ext <<EOF
9691 #line 9692 "configure"
9692 #include "confdefs.h"
9693 #include <sys/types.h>
9694 #include <utime.h>
9695 int main() {
9696 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
9697 ; return 0; }
9699 if { (eval echo configure:9700: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9700 rm -rf conftest*
9701 samba_cv_HAVE_UTIMBUF=yes
9702 else
9703 echo "configure: failed program was:" >&5
9704 cat conftest.$ac_ext >&5
9705 rm -rf conftest*
9706 samba_cv_HAVE_UTIMBUF=no
9708 rm -f conftest*
9711 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
9712 if test x"$samba_cv_HAVE_UTIMBUF" = x"yes"; then
9713 cat >> confdefs.h <<\EOF
9714 #define HAVE_UTIMBUF 1
9720 for ac_func in pututline pututxline updwtmp updwtmpx getutmpx
9722 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9723 echo "configure:9724: checking for $ac_func" >&5
9724 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9725 echo $ac_n "(cached) $ac_c" 1>&6
9726 else
9727 cat > conftest.$ac_ext <<EOF
9728 #line 9729 "configure"
9729 #include "confdefs.h"
9730 /* System header to define __stub macros and hopefully few prototypes,
9731 which can conflict with char $ac_func(); below. */
9732 #include <assert.h>
9733 /* Override any gcc2 internal prototype to avoid an error. */
9734 /* We use char because int might match the return type of a gcc2
9735 builtin and then its argument prototype would still apply. */
9736 char $ac_func();
9738 int main() {
9740 /* The GNU C library defines this for functions which it implements
9741 to always fail with ENOSYS. Some functions are actually named
9742 something starting with __ and the normal name is an alias. */
9743 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9744 choke me
9745 #else
9746 $ac_func();
9747 #endif
9749 ; return 0; }
9751 if { (eval echo configure:9752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9752 rm -rf conftest*
9753 eval "ac_cv_func_$ac_func=yes"
9754 else
9755 echo "configure: failed program was:" >&5
9756 cat conftest.$ac_ext >&5
9757 rm -rf conftest*
9758 eval "ac_cv_func_$ac_func=no"
9760 rm -f conftest*
9763 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9764 echo "$ac_t""yes" 1>&6
9765 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9766 cat >> confdefs.h <<EOF
9767 #define $ac_tr_func 1
9770 else
9771 echo "$ac_t""no" 1>&6
9773 done
9776 echo $ac_n "checking for ut_name in utmp""... $ac_c" 1>&6
9777 echo "configure:9778: checking for ut_name in utmp" >&5
9778 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_NAME'+set}'`\" = set"; then
9779 echo $ac_n "(cached) $ac_c" 1>&6
9780 else
9782 cat > conftest.$ac_ext <<EOF
9783 #line 9784 "configure"
9784 #include "confdefs.h"
9785 #include <sys/types.h>
9786 #include <utmp.h>
9787 int main() {
9788 struct utmp ut; ut.ut_name[0] = 'a';
9789 ; return 0; }
9791 if { (eval echo configure:9792: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9792 rm -rf conftest*
9793 samba_cv_HAVE_UT_UT_NAME=yes
9794 else
9795 echo "configure: failed program was:" >&5
9796 cat conftest.$ac_ext >&5
9797 rm -rf conftest*
9798 samba_cv_HAVE_UT_UT_NAME=no
9800 rm -f conftest*
9803 echo "$ac_t""$samba_cv_HAVE_UT_UT_NAME" 1>&6
9804 if test x"$samba_cv_HAVE_UT_UT_NAME" = x"yes"; then
9805 cat >> confdefs.h <<\EOF
9806 #define HAVE_UT_UT_NAME 1
9811 echo $ac_n "checking for ut_user in utmp""... $ac_c" 1>&6
9812 echo "configure:9813: checking for ut_user in utmp" >&5
9813 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_USER'+set}'`\" = set"; then
9814 echo $ac_n "(cached) $ac_c" 1>&6
9815 else
9817 cat > conftest.$ac_ext <<EOF
9818 #line 9819 "configure"
9819 #include "confdefs.h"
9820 #include <sys/types.h>
9821 #include <utmp.h>
9822 int main() {
9823 struct utmp ut; ut.ut_user[0] = 'a';
9824 ; return 0; }
9826 if { (eval echo configure:9827: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9827 rm -rf conftest*
9828 samba_cv_HAVE_UT_UT_USER=yes
9829 else
9830 echo "configure: failed program was:" >&5
9831 cat conftest.$ac_ext >&5
9832 rm -rf conftest*
9833 samba_cv_HAVE_UT_UT_USER=no
9835 rm -f conftest*
9838 echo "$ac_t""$samba_cv_HAVE_UT_UT_USER" 1>&6
9839 if test x"$samba_cv_HAVE_UT_UT_USER" = x"yes"; then
9840 cat >> confdefs.h <<\EOF
9841 #define HAVE_UT_UT_USER 1
9846 echo $ac_n "checking for ut_id in utmp""... $ac_c" 1>&6
9847 echo "configure:9848: checking for ut_id in utmp" >&5
9848 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ID'+set}'`\" = set"; then
9849 echo $ac_n "(cached) $ac_c" 1>&6
9850 else
9852 cat > conftest.$ac_ext <<EOF
9853 #line 9854 "configure"
9854 #include "confdefs.h"
9855 #include <sys/types.h>
9856 #include <utmp.h>
9857 int main() {
9858 struct utmp ut; ut.ut_id[0] = 'a';
9859 ; return 0; }
9861 if { (eval echo configure:9862: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9862 rm -rf conftest*
9863 samba_cv_HAVE_UT_UT_ID=yes
9864 else
9865 echo "configure: failed program was:" >&5
9866 cat conftest.$ac_ext >&5
9867 rm -rf conftest*
9868 samba_cv_HAVE_UT_UT_ID=no
9870 rm -f conftest*
9873 echo "$ac_t""$samba_cv_HAVE_UT_UT_ID" 1>&6
9874 if test x"$samba_cv_HAVE_UT_UT_ID" = x"yes"; then
9875 cat >> confdefs.h <<\EOF
9876 #define HAVE_UT_UT_ID 1
9881 echo $ac_n "checking for ut_host in utmp""... $ac_c" 1>&6
9882 echo "configure:9883: checking for ut_host in utmp" >&5
9883 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_HOST'+set}'`\" = set"; then
9884 echo $ac_n "(cached) $ac_c" 1>&6
9885 else
9887 cat > conftest.$ac_ext <<EOF
9888 #line 9889 "configure"
9889 #include "confdefs.h"
9890 #include <sys/types.h>
9891 #include <utmp.h>
9892 int main() {
9893 struct utmp ut; ut.ut_host[0] = 'a';
9894 ; return 0; }
9896 if { (eval echo configure:9897: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9897 rm -rf conftest*
9898 samba_cv_HAVE_UT_UT_HOST=yes
9899 else
9900 echo "configure: failed program was:" >&5
9901 cat conftest.$ac_ext >&5
9902 rm -rf conftest*
9903 samba_cv_HAVE_UT_UT_HOST=no
9905 rm -f conftest*
9908 echo "$ac_t""$samba_cv_HAVE_UT_UT_HOST" 1>&6
9909 if test x"$samba_cv_HAVE_UT_UT_HOST" = x"yes"; then
9910 cat >> confdefs.h <<\EOF
9911 #define HAVE_UT_UT_HOST 1
9916 echo $ac_n "checking for ut_time in utmp""... $ac_c" 1>&6
9917 echo "configure:9918: checking for ut_time in utmp" >&5
9918 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TIME'+set}'`\" = set"; then
9919 echo $ac_n "(cached) $ac_c" 1>&6
9920 else
9922 cat > conftest.$ac_ext <<EOF
9923 #line 9924 "configure"
9924 #include "confdefs.h"
9925 #include <sys/types.h>
9926 #include <utmp.h>
9927 int main() {
9928 struct utmp ut; time_t t; ut.ut_time = t;
9929 ; return 0; }
9931 if { (eval echo configure:9932: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9932 rm -rf conftest*
9933 samba_cv_HAVE_UT_UT_TIME=yes
9934 else
9935 echo "configure: failed program was:" >&5
9936 cat conftest.$ac_ext >&5
9937 rm -rf conftest*
9938 samba_cv_HAVE_UT_UT_TIME=no
9940 rm -f conftest*
9943 echo "$ac_t""$samba_cv_HAVE_UT_UT_TIME" 1>&6
9944 if test x"$samba_cv_HAVE_UT_UT_TIME" = x"yes"; then
9945 cat >> confdefs.h <<\EOF
9946 #define HAVE_UT_UT_TIME 1
9951 echo $ac_n "checking for ut_tv in utmp""... $ac_c" 1>&6
9952 echo "configure:9953: checking for ut_tv in utmp" >&5
9953 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TV'+set}'`\" = set"; then
9954 echo $ac_n "(cached) $ac_c" 1>&6
9955 else
9957 cat > conftest.$ac_ext <<EOF
9958 #line 9959 "configure"
9959 #include "confdefs.h"
9960 #include <sys/types.h>
9961 #include <utmp.h>
9962 int main() {
9963 struct utmp ut; struct timeval tv; ut.ut_tv = tv;
9964 ; return 0; }
9966 if { (eval echo configure:9967: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9967 rm -rf conftest*
9968 samba_cv_HAVE_UT_UT_TV=yes
9969 else
9970 echo "configure: failed program was:" >&5
9971 cat conftest.$ac_ext >&5
9972 rm -rf conftest*
9973 samba_cv_HAVE_UT_UT_TV=no
9975 rm -f conftest*
9978 echo "$ac_t""$samba_cv_HAVE_UT_UT_TV" 1>&6
9979 if test x"$samba_cv_HAVE_UT_UT_TV" = x"yes"; then
9980 cat >> confdefs.h <<\EOF
9981 #define HAVE_UT_UT_TV 1
9986 echo $ac_n "checking for ut_type in utmp""... $ac_c" 1>&6
9987 echo "configure:9988: checking for ut_type in utmp" >&5
9988 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TYPE'+set}'`\" = set"; then
9989 echo $ac_n "(cached) $ac_c" 1>&6
9990 else
9992 cat > conftest.$ac_ext <<EOF
9993 #line 9994 "configure"
9994 #include "confdefs.h"
9995 #include <sys/types.h>
9996 #include <utmp.h>
9997 int main() {
9998 struct utmp ut; ut.ut_type = 0;
9999 ; return 0; }
10001 if { (eval echo configure:10002: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10002 rm -rf conftest*
10003 samba_cv_HAVE_UT_UT_TYPE=yes
10004 else
10005 echo "configure: failed program was:" >&5
10006 cat conftest.$ac_ext >&5
10007 rm -rf conftest*
10008 samba_cv_HAVE_UT_UT_TYPE=no
10010 rm -f conftest*
10013 echo "$ac_t""$samba_cv_HAVE_UT_UT_TYPE" 1>&6
10014 if test x"$samba_cv_HAVE_UT_UT_TYPE" = x"yes"; then
10015 cat >> confdefs.h <<\EOF
10016 #define HAVE_UT_UT_TYPE 1
10021 echo $ac_n "checking for ut_pid in utmp""... $ac_c" 1>&6
10022 echo "configure:10023: checking for ut_pid in utmp" >&5
10023 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_PID'+set}'`\" = set"; then
10024 echo $ac_n "(cached) $ac_c" 1>&6
10025 else
10027 cat > conftest.$ac_ext <<EOF
10028 #line 10029 "configure"
10029 #include "confdefs.h"
10030 #include <sys/types.h>
10031 #include <utmp.h>
10032 int main() {
10033 struct utmp ut; ut.ut_pid = 0;
10034 ; return 0; }
10036 if { (eval echo configure:10037: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10037 rm -rf conftest*
10038 samba_cv_HAVE_UT_UT_PID=yes
10039 else
10040 echo "configure: failed program was:" >&5
10041 cat conftest.$ac_ext >&5
10042 rm -rf conftest*
10043 samba_cv_HAVE_UT_UT_PID=no
10045 rm -f conftest*
10048 echo "$ac_t""$samba_cv_HAVE_UT_UT_PID" 1>&6
10049 if test x"$samba_cv_HAVE_UT_UT_PID" = x"yes"; then
10050 cat >> confdefs.h <<\EOF
10051 #define HAVE_UT_UT_PID 1
10056 echo $ac_n "checking for ut_exit in utmp""... $ac_c" 1>&6
10057 echo "configure:10058: checking for ut_exit in utmp" >&5
10058 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_EXIT'+set}'`\" = set"; then
10059 echo $ac_n "(cached) $ac_c" 1>&6
10060 else
10062 cat > conftest.$ac_ext <<EOF
10063 #line 10064 "configure"
10064 #include "confdefs.h"
10065 #include <sys/types.h>
10066 #include <utmp.h>
10067 int main() {
10068 struct utmp ut; ut.ut_exit.e_exit = 0;
10069 ; return 0; }
10071 if { (eval echo configure:10072: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10072 rm -rf conftest*
10073 samba_cv_HAVE_UT_UT_EXIT=yes
10074 else
10075 echo "configure: failed program was:" >&5
10076 cat conftest.$ac_ext >&5
10077 rm -rf conftest*
10078 samba_cv_HAVE_UT_UT_EXIT=no
10080 rm -f conftest*
10083 echo "$ac_t""$samba_cv_HAVE_UT_UT_EXIT" 1>&6
10084 if test x"$samba_cv_HAVE_UT_UT_EXIT" = x"yes"; then
10085 cat >> confdefs.h <<\EOF
10086 #define HAVE_UT_UT_EXIT 1
10091 echo $ac_n "checking for ut_addr in utmp""... $ac_c" 1>&6
10092 echo "configure:10093: checking for ut_addr in utmp" >&5
10093 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ADDR'+set}'`\" = set"; then
10094 echo $ac_n "(cached) $ac_c" 1>&6
10095 else
10097 cat > conftest.$ac_ext <<EOF
10098 #line 10099 "configure"
10099 #include "confdefs.h"
10100 #include <sys/types.h>
10101 #include <utmp.h>
10102 int main() {
10103 struct utmp ut; ut.ut_addr = 0;
10104 ; return 0; }
10106 if { (eval echo configure:10107: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10107 rm -rf conftest*
10108 samba_cv_HAVE_UT_UT_ADDR=yes
10109 else
10110 echo "configure: failed program was:" >&5
10111 cat conftest.$ac_ext >&5
10112 rm -rf conftest*
10113 samba_cv_HAVE_UT_UT_ADDR=no
10115 rm -f conftest*
10118 echo "$ac_t""$samba_cv_HAVE_UT_UT_ADDR" 1>&6
10119 if test x"$samba_cv_HAVE_UT_UT_ADDR" = x"yes"; then
10120 cat >> confdefs.h <<\EOF
10121 #define HAVE_UT_UT_ADDR 1
10126 if test x$ac_cv_func_pututline = xyes ; then
10127 echo $ac_n "checking whether pututline returns pointer""... $ac_c" 1>&6
10128 echo "configure:10129: checking whether pututline returns pointer" >&5
10129 if eval "test \"`echo '$''{'samba_cv_PUTUTLINE_RETURNS_UTMP'+set}'`\" = set"; then
10130 echo $ac_n "(cached) $ac_c" 1>&6
10131 else
10133 cat > conftest.$ac_ext <<EOF
10134 #line 10135 "configure"
10135 #include "confdefs.h"
10136 #include <sys/types.h>
10137 #include <utmp.h>
10138 int main() {
10139 struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
10140 ; return 0; }
10142 if { (eval echo configure:10143: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10143 rm -rf conftest*
10144 samba_cv_PUTUTLINE_RETURNS_UTMP=yes
10145 else
10146 echo "configure: failed program was:" >&5
10147 cat conftest.$ac_ext >&5
10148 rm -rf conftest*
10149 samba_cv_PUTUTLINE_RETURNS_UTMP=no
10151 rm -f conftest*
10154 echo "$ac_t""$samba_cv_PUTUTLINE_RETURNS_UTMP" 1>&6
10155 if test x"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x"yes"; then
10156 cat >> confdefs.h <<\EOF
10157 #define PUTUTLINE_RETURNS_UTMP 1
10163 echo $ac_n "checking for ut_syslen in utmpx""... $ac_c" 1>&6
10164 echo "configure:10165: checking for ut_syslen in utmpx" >&5
10165 if eval "test \"`echo '$''{'samba_cv_HAVE_UX_UT_SYSLEN'+set}'`\" = set"; then
10166 echo $ac_n "(cached) $ac_c" 1>&6
10167 else
10169 cat > conftest.$ac_ext <<EOF
10170 #line 10171 "configure"
10171 #include "confdefs.h"
10172 #include <sys/types.h>
10173 #include <utmpx.h>
10174 int main() {
10175 struct utmpx ux; ux.ut_syslen = 0;
10176 ; return 0; }
10178 if { (eval echo configure:10179: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10179 rm -rf conftest*
10180 samba_cv_HAVE_UX_UT_SYSLEN=yes
10181 else
10182 echo "configure: failed program was:" >&5
10183 cat conftest.$ac_ext >&5
10184 rm -rf conftest*
10185 samba_cv_HAVE_UX_UT_SYSLEN=no
10187 rm -f conftest*
10190 echo "$ac_t""$samba_cv_HAVE_UX_UT_SYSLEN" 1>&6
10191 if test x"$samba_cv_HAVE_UX_UT_SYSLEN" = x"yes"; then
10192 cat >> confdefs.h <<\EOF
10193 #define HAVE_UX_UT_SYSLEN 1
10198 echo $ac_n "checking for Linux kernel oplocks""... $ac_c" 1>&6
10199 echo "configure:10200: checking for Linux kernel oplocks" >&5
10200 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_LINUX'+set}'`\" = set"; then
10201 echo $ac_n "(cached) $ac_c" 1>&6
10202 else
10204 if test "$cross_compiling" = yes; then
10205 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=cross
10206 else
10207 cat > conftest.$ac_ext <<EOF
10208 #line 10209 "configure"
10209 #include "confdefs.h"
10211 #include <sys/types.h>
10212 #include <fcntl.h>
10213 #ifndef F_GETLEASE
10214 #define F_GETLEASE 1025
10215 #endif
10216 main() {
10217 int fd = open("/dev/null", O_RDONLY);
10218 return fcntl(fd, F_GETLEASE, 0) == -1;
10222 if { (eval echo configure:10223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10223 then
10224 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=yes
10225 else
10226 echo "configure: failed program was:" >&5
10227 cat conftest.$ac_ext >&5
10228 rm -fr conftest*
10229 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=no
10231 rm -fr conftest*
10236 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" 1>&6
10237 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x"yes"; then
10238 cat >> confdefs.h <<\EOF
10239 #define HAVE_KERNEL_OPLOCKS_LINUX 1
10244 echo $ac_n "checking for kernel change notify support""... $ac_c" 1>&6
10245 echo "configure:10246: checking for kernel change notify support" >&5
10246 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_CHANGE_NOTIFY'+set}'`\" = set"; then
10247 echo $ac_n "(cached) $ac_c" 1>&6
10248 else
10250 if test "$cross_compiling" = yes; then
10251 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=cross
10252 else
10253 cat > conftest.$ac_ext <<EOF
10254 #line 10255 "configure"
10255 #include "confdefs.h"
10257 #include <sys/types.h>
10258 #include <fcntl.h>
10259 #include <signal.h>
10260 #ifndef F_NOTIFY
10261 #define F_NOTIFY 1026
10262 #endif
10263 main() {
10264 exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0);
10268 if { (eval echo configure:10269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10269 then
10270 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=yes
10271 else
10272 echo "configure: failed program was:" >&5
10273 cat conftest.$ac_ext >&5
10274 rm -fr conftest*
10275 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=no
10277 rm -fr conftest*
10282 echo "$ac_t""$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" 1>&6
10283 if test x"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x"yes"; then
10284 cat >> confdefs.h <<\EOF
10285 #define HAVE_KERNEL_CHANGE_NOTIFY 1
10290 echo $ac_n "checking for kernel share modes""... $ac_c" 1>&6
10291 echo "configure:10292: checking for kernel share modes" >&5
10292 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_SHARE_MODES'+set}'`\" = set"; then
10293 echo $ac_n "(cached) $ac_c" 1>&6
10294 else
10296 if test "$cross_compiling" = yes; then
10297 samba_cv_HAVE_KERNEL_SHARE_MODES=cross
10298 else
10299 cat > conftest.$ac_ext <<EOF
10300 #line 10301 "configure"
10301 #include "confdefs.h"
10303 #include <sys/types.h>
10304 #include <fcntl.h>
10305 #include <signal.h>
10306 #include <sys/file.h>
10307 #ifndef LOCK_MAND
10308 #define LOCK_MAND 32
10309 #define LOCK_READ 64
10310 #endif
10311 main() {
10312 exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
10316 if { (eval echo configure:10317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10317 then
10318 samba_cv_HAVE_KERNEL_SHARE_MODES=yes
10319 else
10320 echo "configure: failed program was:" >&5
10321 cat conftest.$ac_ext >&5
10322 rm -fr conftest*
10323 samba_cv_HAVE_KERNEL_SHARE_MODES=no
10325 rm -fr conftest*
10330 echo "$ac_t""$samba_cv_HAVE_KERNEL_SHARE_MODES" 1>&6
10331 if test x"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x"yes"; then
10332 cat >> confdefs.h <<\EOF
10333 #define HAVE_KERNEL_SHARE_MODES 1
10341 echo $ac_n "checking for IRIX kernel oplock type definitions""... $ac_c" 1>&6
10342 echo "configure:10343: checking for IRIX kernel oplock type definitions" >&5
10343 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_IRIX'+set}'`\" = set"; then
10344 echo $ac_n "(cached) $ac_c" 1>&6
10345 else
10347 cat > conftest.$ac_ext <<EOF
10348 #line 10349 "configure"
10349 #include "confdefs.h"
10350 #include <sys/types.h>
10351 #include <fcntl.h>
10352 int main() {
10353 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
10354 ; return 0; }
10356 if { (eval echo configure:10357: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10357 rm -rf conftest*
10358 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=yes
10359 else
10360 echo "configure: failed program was:" >&5
10361 cat conftest.$ac_ext >&5
10362 rm -rf conftest*
10363 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=no
10365 rm -f conftest*
10368 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" 1>&6
10369 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x"yes"; then
10370 cat >> confdefs.h <<\EOF
10371 #define HAVE_KERNEL_OPLOCKS_IRIX 1
10376 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
10377 echo "configure:10378: checking for irix specific capabilities" >&5
10378 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
10379 echo $ac_n "(cached) $ac_c" 1>&6
10380 else
10382 if test "$cross_compiling" = yes; then
10383 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=cross
10384 else
10385 cat > conftest.$ac_ext <<EOF
10386 #line 10387 "configure"
10387 #include "confdefs.h"
10388 #include <sys/types.h>
10389 #include <sys/capability.h>
10390 main() {
10391 cap_t cap;
10392 if ((cap = cap_get_proc()) == NULL)
10393 exit(1);
10394 cap->cap_effective |= CAP_NETWORK_MGT;
10395 cap->cap_inheritable |= CAP_NETWORK_MGT;
10396 cap_set_proc(cap);
10397 exit(0);
10401 if { (eval echo configure:10402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10402 then
10403 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=yes
10404 else
10405 echo "configure: failed program was:" >&5
10406 cat conftest.$ac_ext >&5
10407 rm -fr conftest*
10408 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=no
10410 rm -fr conftest*
10415 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
10416 if test x"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x"yes"; then
10417 cat >> confdefs.h <<\EOF
10418 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
10424 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
10425 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
10428 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10429 echo "configure:10430: checking for int16 typedef included by rpc/rpc.h" >&5
10430 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10431 echo $ac_n "(cached) $ac_c" 1>&6
10432 else
10434 cat > conftest.$ac_ext <<EOF
10435 #line 10436 "configure"
10436 #include "confdefs.h"
10437 #include <sys/types.h>
10438 #if defined(HAVE_RPC_RPC_H)
10439 #include <rpc/rpc.h>
10440 #endif
10441 int main() {
10442 int16 testvar;
10443 ; return 0; }
10445 if { (eval echo configure:10446: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10446 rm -rf conftest*
10447 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=yes
10448 else
10449 echo "configure: failed program was:" >&5
10450 cat conftest.$ac_ext >&5
10451 rm -rf conftest*
10452 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=no
10454 rm -f conftest*
10457 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
10458 if test x"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x"yes"; then
10459 cat >> confdefs.h <<\EOF
10460 #define HAVE_INT16_FROM_RPC_RPC_H 1
10465 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10466 echo "configure:10467: checking for uint16 typedef included by rpc/rpc.h" >&5
10467 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10468 echo $ac_n "(cached) $ac_c" 1>&6
10469 else
10471 cat > conftest.$ac_ext <<EOF
10472 #line 10473 "configure"
10473 #include "confdefs.h"
10474 #include <sys/types.h>
10475 #if defined(HAVE_RPC_RPC_H)
10476 #include <rpc/rpc.h>
10477 #endif
10478 int main() {
10479 uint16 testvar;
10480 ; return 0; }
10482 if { (eval echo configure:10483: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10483 rm -rf conftest*
10484 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=yes
10485 else
10486 echo "configure: failed program was:" >&5
10487 cat conftest.$ac_ext >&5
10488 rm -rf conftest*
10489 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=no
10491 rm -f conftest*
10494 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
10495 if test x"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x"yes"; then
10496 cat >> confdefs.h <<\EOF
10497 #define HAVE_UINT16_FROM_RPC_RPC_H 1
10502 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10503 echo "configure:10504: checking for int32 typedef included by rpc/rpc.h" >&5
10504 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10505 echo $ac_n "(cached) $ac_c" 1>&6
10506 else
10508 cat > conftest.$ac_ext <<EOF
10509 #line 10510 "configure"
10510 #include "confdefs.h"
10511 #include <sys/types.h>
10512 #if defined(HAVE_RPC_RPC_H)
10513 #include <rpc/rpc.h>
10514 #endif
10515 int main() {
10516 int32 testvar;
10517 ; return 0; }
10519 if { (eval echo configure:10520: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10520 rm -rf conftest*
10521 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=yes
10522 else
10523 echo "configure: failed program was:" >&5
10524 cat conftest.$ac_ext >&5
10525 rm -rf conftest*
10526 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=no
10528 rm -f conftest*
10531 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
10532 if test x"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x"yes"; then
10533 cat >> confdefs.h <<\EOF
10534 #define HAVE_INT32_FROM_RPC_RPC_H 1
10539 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10540 echo "configure:10541: checking for uint32 typedef included by rpc/rpc.h" >&5
10541 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10542 echo $ac_n "(cached) $ac_c" 1>&6
10543 else
10545 cat > conftest.$ac_ext <<EOF
10546 #line 10547 "configure"
10547 #include "confdefs.h"
10548 #include <sys/types.h>
10549 #if defined(HAVE_RPC_RPC_H)
10550 #include <rpc/rpc.h>
10551 #endif
10552 int main() {
10553 uint32 testvar;
10554 ; return 0; }
10556 if { (eval echo configure:10557: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10557 rm -rf conftest*
10558 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=yes
10559 else
10560 echo "configure: failed program was:" >&5
10561 cat conftest.$ac_ext >&5
10562 rm -rf conftest*
10563 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=no
10565 rm -f conftest*
10568 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
10569 if test x"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x"yes"; then
10570 cat >> confdefs.h <<\EOF
10571 #define HAVE_UINT32_FROM_RPC_RPC_H 1
10577 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
10578 echo "configure:10579: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
10579 if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
10580 echo $ac_n "(cached) $ac_c" 1>&6
10581 else
10583 cat > conftest.$ac_ext <<EOF
10584 #line 10585 "configure"
10585 #include "confdefs.h"
10586 #include <sys/types.h>
10587 #ifdef HAVE_SYS_SECURITY_H
10588 #include <sys/security.h>
10589 #include <prot.h>
10590 #endif /* HAVE_SYS_SECURITY_H */
10591 #if defined(HAVE_RPC_RPC_H)
10592 #include <rpc/rpc.h>
10593 #endif
10594 int main() {
10595 int testvar;
10596 ; return 0; }
10598 if { (eval echo configure:10599: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10599 rm -rf conftest*
10600 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=no
10601 else
10602 echo "configure: failed program was:" >&5
10603 cat conftest.$ac_ext >&5
10604 rm -rf conftest*
10605 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=yes
10607 rm -f conftest*
10610 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
10611 if test x"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x"yes"; then
10612 cat >> confdefs.h <<\EOF
10613 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
10618 echo $ac_n "checking for test routines""... $ac_c" 1>&6
10619 echo "configure:10620: checking for test routines" >&5
10620 if test "$cross_compiling" = yes; then
10621 echo "configure: warning: cannot run when cross-compiling" 1>&2
10622 else
10623 cat > conftest.$ac_ext <<EOF
10624 #line 10625 "configure"
10625 #include "confdefs.h"
10626 #include "${srcdir-.}/tests/trivial.c"
10628 if { (eval echo configure:10629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10629 then
10630 echo "$ac_t""yes" 1>&6
10631 else
10632 echo "configure: failed program was:" >&5
10633 cat conftest.$ac_ext >&5
10634 rm -fr conftest*
10635 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
10637 rm -fr conftest*
10641 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
10642 echo "configure:10643: checking for ftruncate extend" >&5
10643 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
10644 echo $ac_n "(cached) $ac_c" 1>&6
10645 else
10647 if test "$cross_compiling" = yes; then
10648 samba_cv_HAVE_FTRUNCATE_EXTEND=cross
10649 else
10650 cat > conftest.$ac_ext <<EOF
10651 #line 10652 "configure"
10652 #include "confdefs.h"
10653 #include "${srcdir-.}/tests/ftruncate.c"
10655 if { (eval echo configure:10656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10656 then
10657 samba_cv_HAVE_FTRUNCATE_EXTEND=yes
10658 else
10659 echo "configure: failed program was:" >&5
10660 cat conftest.$ac_ext >&5
10661 rm -fr conftest*
10662 samba_cv_HAVE_FTRUNCATE_EXTEND=no
10664 rm -fr conftest*
10669 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
10670 if test x"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x"yes"; then
10671 cat >> confdefs.h <<\EOF
10672 #define HAVE_FTRUNCATE_EXTEND 1
10677 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
10678 echo "configure:10679: checking for broken getgroups" >&5
10679 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
10680 echo $ac_n "(cached) $ac_c" 1>&6
10681 else
10683 if test "$cross_compiling" = yes; then
10684 samba_cv_HAVE_BROKEN_GETGROUPS=cross
10685 else
10686 cat > conftest.$ac_ext <<EOF
10687 #line 10688 "configure"
10688 #include "confdefs.h"
10689 #include "${srcdir-.}/tests/getgroups.c"
10691 if { (eval echo configure:10692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10692 then
10693 samba_cv_HAVE_BROKEN_GETGROUPS=yes
10694 else
10695 echo "configure: failed program was:" >&5
10696 cat conftest.$ac_ext >&5
10697 rm -fr conftest*
10698 samba_cv_HAVE_BROKEN_GETGROUPS=no
10700 rm -fr conftest*
10705 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
10706 if test x"$samba_cv_HAVE_BROKEN_GETGROUPS" = x"yes"; then
10707 cat >> confdefs.h <<\EOF
10708 #define HAVE_BROKEN_GETGROUPS 1
10713 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
10714 echo "configure:10715: checking whether getpass should be replaced" >&5
10715 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
10716 echo $ac_n "(cached) $ac_c" 1>&6
10717 else
10719 SAVE_CPPFLAGS="$CPPFLAGS"
10720 CPPFLAGS="$CPPFLAGS -I${srcdir-.}/ -I${srcdir-.}/include -I${srcdir-.}/popt -I${srcdir-.}/ubiqx -I${srcdir-.}/smbwrapper"
10721 cat > conftest.$ac_ext <<EOF
10722 #line 10723 "configure"
10723 #include "confdefs.h"
10725 #define REPLACE_GETPASS 1
10726 #define NO_CONFIG_H 1
10727 #define main dont_declare_main
10728 #include "${srcdir-.}/lib/getsmbpass.c"
10729 #undef main
10731 int main() {
10733 ; return 0; }
10735 if { (eval echo configure:10736: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10736 rm -rf conftest*
10737 samba_cv_REPLACE_GETPASS=yes
10738 else
10739 echo "configure: failed program was:" >&5
10740 cat conftest.$ac_ext >&5
10741 rm -rf conftest*
10742 samba_cv_REPLACE_GETPASS=no
10744 rm -f conftest*
10745 CPPFLAGS="$SAVE_CPPFLAGS"
10749 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
10750 if test x"$samba_cv_REPLACE_GETPASS" = x"yes"; then
10751 cat >> confdefs.h <<\EOF
10752 #define REPLACE_GETPASS 1
10757 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
10758 echo "configure:10759: checking for broken inet_ntoa" >&5
10759 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
10760 echo $ac_n "(cached) $ac_c" 1>&6
10761 else
10763 if test "$cross_compiling" = yes; then
10764 samba_cv_REPLACE_INET_NTOA=cross
10765 else
10766 cat > conftest.$ac_ext <<EOF
10767 #line 10768 "configure"
10768 #include "confdefs.h"
10770 #include <stdio.h>
10771 #include <sys/types.h>
10772 #include <netinet/in.h>
10773 #ifdef HAVE_ARPA_INET_H
10774 #include <arpa/inet.h>
10775 #endif
10776 main() { struct in_addr ip; ip.s_addr = 0x12345678;
10777 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
10778 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
10779 exit(1);}
10781 if { (eval echo configure:10782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10782 then
10783 samba_cv_REPLACE_INET_NTOA=yes
10784 else
10785 echo "configure: failed program was:" >&5
10786 cat conftest.$ac_ext >&5
10787 rm -fr conftest*
10788 samba_cv_REPLACE_INET_NTOA=no
10790 rm -fr conftest*
10795 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
10796 if test x"$samba_cv_REPLACE_INET_NTOA" = x"yes"; then
10797 cat >> confdefs.h <<\EOF
10798 #define REPLACE_INET_NTOA 1
10803 echo $ac_n "checking for secure mkstemp""... $ac_c" 1>&6
10804 echo "configure:10805: checking for secure mkstemp" >&5
10805 if eval "test \"`echo '$''{'samba_cv_HAVE_SECURE_MKSTEMP'+set}'`\" = set"; then
10806 echo $ac_n "(cached) $ac_c" 1>&6
10807 else
10809 if test "$cross_compiling" = yes; then
10810 samba_cv_HAVE_SECURE_MKSTEMP=cross
10811 else
10812 cat > conftest.$ac_ext <<EOF
10813 #line 10814 "configure"
10814 #include "confdefs.h"
10815 #include <stdlib.h>
10816 #include <sys/types.h>
10817 #include <sys/stat.h>
10818 #include <unistd.h>
10819 main() {
10820 struct stat st;
10821 char tpl[20]="/tmp/test.XXXXXX";
10822 int fd = mkstemp(tpl);
10823 if (fd == -1) exit(1);
10824 unlink(tpl);
10825 if (fstat(fd, &st) != 0) exit(1);
10826 if ((st.st_mode & 0777) != 0600) exit(1);
10827 exit(0);
10830 if { (eval echo configure:10831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10831 then
10832 samba_cv_HAVE_SECURE_MKSTEMP=yes
10833 else
10834 echo "configure: failed program was:" >&5
10835 cat conftest.$ac_ext >&5
10836 rm -fr conftest*
10837 samba_cv_HAVE_SECURE_MKSTEMP=no
10839 rm -fr conftest*
10844 echo "$ac_t""$samba_cv_HAVE_SECURE_MKSTEMP" 1>&6
10845 if test x"$samba_cv_HAVE_SECURE_MKSTEMP" = x"yes"; then
10846 cat >> confdefs.h <<\EOF
10847 #define HAVE_SECURE_MKSTEMP 1
10852 echo $ac_n "checking for sysconf(_SC_NGROUPS_MAX)""... $ac_c" 1>&6
10853 echo "configure:10854: checking for sysconf(_SC_NGROUPS_MAX)" >&5
10854 if eval "test \"`echo '$''{'samba_cv_SYSCONF_SC_NGROUPS_MAX'+set}'`\" = set"; then
10855 echo $ac_n "(cached) $ac_c" 1>&6
10856 else
10858 if test "$cross_compiling" = yes; then
10859 samba_cv_SYSCONF_SC_NGROUPS_MAX=cross
10860 else
10861 cat > conftest.$ac_ext <<EOF
10862 #line 10863 "configure"
10863 #include "confdefs.h"
10864 #include <unistd.h>
10865 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
10867 if { (eval echo configure:10868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10868 then
10869 samba_cv_SYSCONF_SC_NGROUPS_MAX=yes
10870 else
10871 echo "configure: failed program was:" >&5
10872 cat conftest.$ac_ext >&5
10873 rm -fr conftest*
10874 samba_cv_SYSCONF_SC_NGROUPS_MAX=no
10876 rm -fr conftest*
10881 echo "$ac_t""$samba_cv_SYSCONF_SC_NGROUPS_MAX" 1>&6
10882 if test x"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x"yes"; then
10883 cat >> confdefs.h <<\EOF
10884 #define SYSCONF_SC_NGROUPS_MAX 1
10889 echo $ac_n "checking for root""... $ac_c" 1>&6
10890 echo "configure:10891: checking for root" >&5
10891 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
10892 echo $ac_n "(cached) $ac_c" 1>&6
10893 else
10895 if test "$cross_compiling" = yes; then
10896 samba_cv_HAVE_ROOT=cross
10897 else
10898 cat > conftest.$ac_ext <<EOF
10899 #line 10900 "configure"
10900 #include "confdefs.h"
10901 main() { exit(getuid() != 0); }
10903 if { (eval echo configure:10904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10904 then
10905 samba_cv_HAVE_ROOT=yes
10906 else
10907 echo "configure: failed program was:" >&5
10908 cat conftest.$ac_ext >&5
10909 rm -fr conftest*
10910 samba_cv_HAVE_ROOT=no
10912 rm -fr conftest*
10917 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
10918 if test x"$samba_cv_HAVE_ROOT" = x"yes"; then
10919 cat >> confdefs.h <<\EOF
10920 #define HAVE_ROOT 1
10923 else
10924 echo "configure: warning: running as non-root will disable some tests" 1>&2
10927 ##################
10928 # look for a method of finding the list of network interfaces
10929 iface=no;
10930 echo $ac_n "checking for iface AIX""... $ac_c" 1>&6
10931 echo "configure:10932: checking for iface AIX" >&5
10932 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_AIX'+set}'`\" = set"; then
10933 echo $ac_n "(cached) $ac_c" 1>&6
10934 else
10936 if test "$cross_compiling" = yes; then
10937 samba_cv_HAVE_IFACE_AIX=cross
10938 else
10939 cat > conftest.$ac_ext <<EOF
10940 #line 10941 "configure"
10941 #include "confdefs.h"
10943 #define HAVE_IFACE_AIX 1
10944 #define AUTOCONF_TEST 1
10945 #include "confdefs.h"
10946 #include "${srcdir-.}/lib/interfaces.c"
10948 if { (eval echo configure:10949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10949 then
10950 samba_cv_HAVE_IFACE_AIX=yes
10951 else
10952 echo "configure: failed program was:" >&5
10953 cat conftest.$ac_ext >&5
10954 rm -fr conftest*
10955 samba_cv_HAVE_IFACE_AIX=no
10957 rm -fr conftest*
10962 echo "$ac_t""$samba_cv_HAVE_IFACE_AIX" 1>&6
10963 if test x"$samba_cv_HAVE_IFACE_AIX" = x"yes"; then
10964 iface=yes;cat >> confdefs.h <<\EOF
10965 #define HAVE_IFACE_AIX 1
10970 if test $iface = no; then
10971 echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6
10972 echo "configure:10973: checking for iface ifconf" >&5
10973 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFCONF'+set}'`\" = set"; then
10974 echo $ac_n "(cached) $ac_c" 1>&6
10975 else
10977 if test "$cross_compiling" = yes; then
10978 samba_cv_HAVE_IFACE_IFCONF=cross
10979 else
10980 cat > conftest.$ac_ext <<EOF
10981 #line 10982 "configure"
10982 #include "confdefs.h"
10984 #define HAVE_IFACE_IFCONF 1
10985 #define AUTOCONF_TEST 1
10986 #include "confdefs.h"
10987 #include "${srcdir-.}/lib/interfaces.c"
10989 if { (eval echo configure:10990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10990 then
10991 samba_cv_HAVE_IFACE_IFCONF=yes
10992 else
10993 echo "configure: failed program was:" >&5
10994 cat conftest.$ac_ext >&5
10995 rm -fr conftest*
10996 samba_cv_HAVE_IFACE_IFCONF=no
10998 rm -fr conftest*
11003 echo "$ac_t""$samba_cv_HAVE_IFACE_IFCONF" 1>&6
11004 if test x"$samba_cv_HAVE_IFACE_IFCONF" = x"yes"; then
11005 iface=yes;cat >> confdefs.h <<\EOF
11006 #define HAVE_IFACE_IFCONF 1
11012 if test $iface = no; then
11013 echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6
11014 echo "configure:11015: checking for iface ifreq" >&5
11015 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFREQ'+set}'`\" = set"; then
11016 echo $ac_n "(cached) $ac_c" 1>&6
11017 else
11019 if test "$cross_compiling" = yes; then
11020 samba_cv_HAVE_IFACE_IFREQ=cross
11021 else
11022 cat > conftest.$ac_ext <<EOF
11023 #line 11024 "configure"
11024 #include "confdefs.h"
11026 #define HAVE_IFACE_IFREQ 1
11027 #define AUTOCONF_TEST 1
11028 #include "confdefs.h"
11029 #include "${srcdir-.}/lib/interfaces.c"
11031 if { (eval echo configure:11032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11032 then
11033 samba_cv_HAVE_IFACE_IFREQ=yes
11034 else
11035 echo "configure: failed program was:" >&5
11036 cat conftest.$ac_ext >&5
11037 rm -fr conftest*
11038 samba_cv_HAVE_IFACE_IFREQ=no
11040 rm -fr conftest*
11045 echo "$ac_t""$samba_cv_HAVE_IFACE_IFREQ" 1>&6
11046 if test x"$samba_cv_HAVE_IFACE_IFREQ" = x"yes"; then
11047 iface=yes;cat >> confdefs.h <<\EOF
11048 #define HAVE_IFACE_IFREQ 1
11055 ################################################
11056 # look for a method of setting the effective uid
11057 seteuid=no;
11058 if test $seteuid = no; then
11059 echo $ac_n "checking for setresuid""... $ac_c" 1>&6
11060 echo "configure:11061: checking for setresuid" >&5
11061 if eval "test \"`echo '$''{'samba_cv_USE_SETRESUID'+set}'`\" = set"; then
11062 echo $ac_n "(cached) $ac_c" 1>&6
11063 else
11065 if test "$cross_compiling" = yes; then
11066 samba_cv_USE_SETRESUID=cross
11067 else
11068 cat > conftest.$ac_ext <<EOF
11069 #line 11070 "configure"
11070 #include "confdefs.h"
11072 #define AUTOCONF_TEST 1
11073 #define USE_SETRESUID 1
11074 #include "confdefs.h"
11075 #include "${srcdir-.}/lib/util_sec.c"
11077 if { (eval echo configure:11078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11078 then
11079 samba_cv_USE_SETRESUID=yes
11080 else
11081 echo "configure: failed program was:" >&5
11082 cat conftest.$ac_ext >&5
11083 rm -fr conftest*
11084 samba_cv_USE_SETRESUID=no
11086 rm -fr conftest*
11091 echo "$ac_t""$samba_cv_USE_SETRESUID" 1>&6
11092 if test x"$samba_cv_USE_SETRESUID" = x"yes"; then
11093 seteuid=yes;cat >> confdefs.h <<\EOF
11094 #define USE_SETRESUID 1
11101 if test $seteuid = no; then
11102 echo $ac_n "checking for setreuid""... $ac_c" 1>&6
11103 echo "configure:11104: checking for setreuid" >&5
11104 if eval "test \"`echo '$''{'samba_cv_USE_SETREUID'+set}'`\" = set"; then
11105 echo $ac_n "(cached) $ac_c" 1>&6
11106 else
11108 if test "$cross_compiling" = yes; then
11109 samba_cv_USE_SETREUID=cross
11110 else
11111 cat > conftest.$ac_ext <<EOF
11112 #line 11113 "configure"
11113 #include "confdefs.h"
11115 #define AUTOCONF_TEST 1
11116 #define USE_SETREUID 1
11117 #include "confdefs.h"
11118 #include "${srcdir-.}/lib/util_sec.c"
11120 if { (eval echo configure:11121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11121 then
11122 samba_cv_USE_SETREUID=yes
11123 else
11124 echo "configure: failed program was:" >&5
11125 cat conftest.$ac_ext >&5
11126 rm -fr conftest*
11127 samba_cv_USE_SETREUID=no
11129 rm -fr conftest*
11134 echo "$ac_t""$samba_cv_USE_SETREUID" 1>&6
11135 if test x"$samba_cv_USE_SETREUID" = x"yes"; then
11136 seteuid=yes;cat >> confdefs.h <<\EOF
11137 #define USE_SETREUID 1
11143 if test $seteuid = no; then
11144 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
11145 echo "configure:11146: checking for seteuid" >&5
11146 if eval "test \"`echo '$''{'samba_cv_USE_SETEUID'+set}'`\" = set"; then
11147 echo $ac_n "(cached) $ac_c" 1>&6
11148 else
11150 if test "$cross_compiling" = yes; then
11151 samba_cv_USE_SETEUID=cross
11152 else
11153 cat > conftest.$ac_ext <<EOF
11154 #line 11155 "configure"
11155 #include "confdefs.h"
11157 #define AUTOCONF_TEST 1
11158 #define USE_SETEUID 1
11159 #include "confdefs.h"
11160 #include "${srcdir-.}/lib/util_sec.c"
11162 if { (eval echo configure:11163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11163 then
11164 samba_cv_USE_SETEUID=yes
11165 else
11166 echo "configure: failed program was:" >&5
11167 cat conftest.$ac_ext >&5
11168 rm -fr conftest*
11169 samba_cv_USE_SETEUID=no
11171 rm -fr conftest*
11176 echo "$ac_t""$samba_cv_USE_SETEUID" 1>&6
11177 if test x"$samba_cv_USE_SETEUID" = x"yes"; then
11178 seteuid=yes;cat >> confdefs.h <<\EOF
11179 #define USE_SETEUID 1
11185 if test $seteuid = no; then
11186 echo $ac_n "checking for setuidx""... $ac_c" 1>&6
11187 echo "configure:11188: checking for setuidx" >&5
11188 if eval "test \"`echo '$''{'samba_cv_USE_SETUIDX'+set}'`\" = set"; then
11189 echo $ac_n "(cached) $ac_c" 1>&6
11190 else
11192 if test "$cross_compiling" = yes; then
11193 samba_cv_USE_SETUIDX=cross
11194 else
11195 cat > conftest.$ac_ext <<EOF
11196 #line 11197 "configure"
11197 #include "confdefs.h"
11199 #define AUTOCONF_TEST 1
11200 #define USE_SETUIDX 1
11201 #include "confdefs.h"
11202 #include "${srcdir-.}/lib/util_sec.c"
11204 if { (eval echo configure:11205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11205 then
11206 samba_cv_USE_SETUIDX=yes
11207 else
11208 echo "configure: failed program was:" >&5
11209 cat conftest.$ac_ext >&5
11210 rm -fr conftest*
11211 samba_cv_USE_SETUIDX=no
11213 rm -fr conftest*
11218 echo "$ac_t""$samba_cv_USE_SETUIDX" 1>&6
11219 if test x"$samba_cv_USE_SETUIDX" = x"yes"; then
11220 seteuid=yes;cat >> confdefs.h <<\EOF
11221 #define USE_SETUIDX 1
11228 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
11229 echo "configure:11230: checking for working mmap" >&5
11230 if eval "test \"`echo '$''{'samba_cv_HAVE_MMAP'+set}'`\" = set"; then
11231 echo $ac_n "(cached) $ac_c" 1>&6
11232 else
11234 if test "$cross_compiling" = yes; then
11235 samba_cv_HAVE_MMAP=cross
11236 else
11237 cat > conftest.$ac_ext <<EOF
11238 #line 11239 "configure"
11239 #include "confdefs.h"
11240 #include "${srcdir-.}/tests/shared_mmap.c"
11242 if { (eval echo configure:11243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11243 then
11244 samba_cv_HAVE_MMAP=yes
11245 else
11246 echo "configure: failed program was:" >&5
11247 cat conftest.$ac_ext >&5
11248 rm -fr conftest*
11249 samba_cv_HAVE_MMAP=no
11251 rm -fr conftest*
11256 echo "$ac_t""$samba_cv_HAVE_MMAP" 1>&6
11257 if test x"$samba_cv_HAVE_MMAP" = x"yes"; then
11258 cat >> confdefs.h <<\EOF
11259 #define HAVE_MMAP 1
11264 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
11265 echo "configure:11266: checking for ftruncate needs root" >&5
11266 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
11267 echo $ac_n "(cached) $ac_c" 1>&6
11268 else
11270 if test "$cross_compiling" = yes; then
11271 samba_cv_FTRUNCATE_NEEDS_ROOT=cross
11272 else
11273 cat > conftest.$ac_ext <<EOF
11274 #line 11275 "configure"
11275 #include "confdefs.h"
11276 #include "${srcdir-.}/tests/ftruncroot.c"
11278 if { (eval echo configure:11279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11279 then
11280 samba_cv_FTRUNCATE_NEEDS_ROOT=yes
11281 else
11282 echo "configure: failed program was:" >&5
11283 cat conftest.$ac_ext >&5
11284 rm -fr conftest*
11285 samba_cv_FTRUNCATE_NEEDS_ROOT=no
11287 rm -fr conftest*
11292 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
11293 if test x"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x"yes"; then
11294 cat >> confdefs.h <<\EOF
11295 #define FTRUNCATE_NEEDS_ROOT 1
11300 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
11301 echo "configure:11302: checking for fcntl locking" >&5
11302 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
11303 echo $ac_n "(cached) $ac_c" 1>&6
11304 else
11306 if test "$cross_compiling" = yes; then
11307 samba_cv_HAVE_FCNTL_LOCK=cross
11308 else
11309 cat > conftest.$ac_ext <<EOF
11310 #line 11311 "configure"
11311 #include "confdefs.h"
11312 #include "${srcdir-.}/tests/fcntl_lock.c"
11314 if { (eval echo configure:11315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11315 then
11316 samba_cv_HAVE_FCNTL_LOCK=yes
11317 else
11318 echo "configure: failed program was:" >&5
11319 cat conftest.$ac_ext >&5
11320 rm -fr conftest*
11321 samba_cv_HAVE_FCNTL_LOCK=no
11323 rm -fr conftest*
11328 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
11329 if test x"$samba_cv_HAVE_FCNTL_LOCK" = x"yes"; then
11330 cat >> confdefs.h <<\EOF
11331 #define HAVE_FCNTL_LOCK 1
11336 echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6
11337 echo "configure:11338: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
11338 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_FCNTL64_LOCKS'+set}'`\" = set"; then
11339 echo $ac_n "(cached) $ac_c" 1>&6
11340 else
11342 if test "$cross_compiling" = yes; then
11343 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=cross
11344 else
11345 cat > conftest.$ac_ext <<EOF
11346 #line 11347 "configure"
11347 #include "confdefs.h"
11348 #include "${srcdir-.}/tests/fcntl_lock64.c"
11350 if { (eval echo configure:11351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11351 then
11352 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=yes
11353 else
11354 echo "configure: failed program was:" >&5
11355 cat conftest.$ac_ext >&5
11356 rm -fr conftest*
11357 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=no
11359 rm -fr conftest*
11364 echo "$ac_t""$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" 1>&6
11365 if test x"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x"yes"; then
11366 cat >> confdefs.h <<\EOF
11367 #define HAVE_BROKEN_FCNTL64_LOCKS 1
11371 else
11374 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
11375 echo "configure:11376: checking for 64 bit fcntl locking" >&5
11376 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
11377 echo $ac_n "(cached) $ac_c" 1>&6
11378 else
11380 if test "$cross_compiling" = yes; then
11381 samba_cv_HAVE_STRUCT_FLOCK64=cross
11382 else
11383 cat > conftest.$ac_ext <<EOF
11384 #line 11385 "configure"
11385 #include "confdefs.h"
11387 #if defined(HAVE_UNISTD_H)
11388 #include <unistd.h>
11389 #endif
11390 #include <stdio.h>
11391 #include <stdlib.h>
11393 #ifdef HAVE_FCNTL_H
11394 #include <fcntl.h>
11395 #endif
11397 #ifdef HAVE_SYS_FCNTL_H
11398 #include <sys/fcntl.h>
11399 #endif
11400 main() { struct flock64 fl64;
11401 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
11402 exit(0);
11403 #else
11404 exit(1);
11405 #endif
11408 if { (eval echo configure:11409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11409 then
11410 samba_cv_HAVE_STRUCT_FLOCK64=yes
11411 else
11412 echo "configure: failed program was:" >&5
11413 cat conftest.$ac_ext >&5
11414 rm -fr conftest*
11415 samba_cv_HAVE_STRUCT_FLOCK64=no
11417 rm -fr conftest*
11422 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
11424 if test x"$samba_cv_HAVE_STRUCT_FLOCK64" = x"yes"; then
11425 cat >> confdefs.h <<\EOF
11426 #define HAVE_STRUCT_FLOCK64 1
11432 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
11433 echo "configure:11434: checking for st_blocks in struct stat" >&5
11434 if eval "test \"`echo '$''{'samba_cv_HAVE_STAT_ST_BLOCKS'+set}'`\" = set"; then
11435 echo $ac_n "(cached) $ac_c" 1>&6
11436 else
11438 cat > conftest.$ac_ext <<EOF
11439 #line 11440 "configure"
11440 #include "confdefs.h"
11441 #include <sys/types.h>
11442 #include <sys/stat.h>
11443 #include <unistd.h>
11444 int main() {
11445 struct stat st; st.st_blocks = 0;
11446 ; return 0; }
11448 if { (eval echo configure:11449: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11449 rm -rf conftest*
11450 samba_cv_HAVE_STAT_ST_BLOCKS=yes
11451 else
11452 echo "configure: failed program was:" >&5
11453 cat conftest.$ac_ext >&5
11454 rm -rf conftest*
11455 samba_cv_HAVE_STAT_ST_BLOCKS=no
11457 rm -f conftest*
11460 echo "$ac_t""$samba_cv_HAVE_STAT_ST_BLOCKS" 1>&6
11461 if test x"$samba_cv_HAVE_STAT_ST_BLOCKS" = x"yes"; then
11462 cat >> confdefs.h <<\EOF
11463 #define HAVE_STAT_ST_BLOCKS 1
11468 case "$host_os" in
11469 *linux*)
11470 echo $ac_n "checking for broken RedHat 7.2 system header files""... $ac_c" 1>&6
11471 echo "configure:11472: checking for broken RedHat 7.2 system header files" >&5
11472 if eval "test \"`echo '$''{'samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS'+set}'`\" = set"; then
11473 echo $ac_n "(cached) $ac_c" 1>&6
11474 else
11476 cat > conftest.$ac_ext <<EOF
11477 #line 11478 "configure"
11478 #include "confdefs.h"
11480 #ifdef HAVE_SYS_VFS_H
11481 #include <sys/vfs.h>
11482 #endif
11483 #ifdef HAVE_SYS_CAPABILITY_H
11484 #include <sys/capability.h>
11485 #endif
11487 int main() {
11488 int i;
11489 ; return 0; }
11491 if { (eval echo configure:11492: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11492 rm -rf conftest*
11493 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=no
11494 else
11495 echo "configure: failed program was:" >&5
11496 cat conftest.$ac_ext >&5
11497 rm -rf conftest*
11498 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=yes
11500 rm -f conftest*
11503 echo "$ac_t""$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" 1>&6
11504 if test x"$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" = x"yes"; then
11505 cat >> confdefs.h <<\EOF
11506 #define BROKEN_REDHAT_7_SYSTEM_HEADERS 1
11511 esac
11513 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
11514 echo "configure:11515: checking for broken nisplus include files" >&5
11515 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
11516 echo $ac_n "(cached) $ac_c" 1>&6
11517 else
11519 cat > conftest.$ac_ext <<EOF
11520 #line 11521 "configure"
11521 #include "confdefs.h"
11522 #include <sys/acl.h>
11523 #if defined(HAVE_RPCSVC_NIS_H)
11524 #include <rpcsvc/nis.h>
11525 #endif
11526 int main() {
11527 int i;
11528 ; return 0; }
11530 if { (eval echo configure:11531: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11531 rm -rf conftest*
11532 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=no
11533 else
11534 echo "configure: failed program was:" >&5
11535 cat conftest.$ac_ext >&5
11536 rm -rf conftest*
11537 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=yes
11539 rm -f conftest*
11542 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
11543 if test x"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x"yes"; then
11544 cat >> confdefs.h <<\EOF
11545 #define BROKEN_NISPLUS_INCLUDE_FILES 1
11551 #################################################
11552 # check for smbwrapper support
11553 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
11554 echo "configure:11555: checking whether to use smbwrapper" >&5
11555 # Check whether --with-smbwrapper or --without-smbwrapper was given.
11556 if test "${with_smbwrapper+set}" = set; then
11557 withval="$with_smbwrapper"
11558 case "$withval" in
11559 yes)
11560 echo "$ac_t""yes" 1>&6
11561 cat >> confdefs.h <<\EOF
11562 #define WITH_SMBWRAPPER 1
11565 WRAPPROG="bin/smbsh"
11566 WRAP="bin/smbwrapper.$SHLIBEXT"
11568 if test x$ATTEMPT_WRAP32_BUILD = x; then
11569 WRAP32=""
11570 else
11571 WRAP32=bin/smbwrapper.32.$SHLIBEXT
11574 # Conditions under which smbwrapper should not be built.
11576 if test x$PICFLAG = x; then
11577 echo No support for PIC code - disabling smbwrapper and smbsh
11578 WRAPPROG=""
11579 WRAP=""
11580 WRAP32=""
11581 elif test x$ac_cv_func_syscall = xno; then
11582 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
11583 WRAPPROG=""
11584 WRAP=""
11585 WRAP32=""
11589 echo "$ac_t""no" 1>&6
11591 esac
11592 else
11593 echo "$ac_t""no" 1>&6
11598 #################################################
11599 # check for the AFS filesystem
11600 echo $ac_n "checking whether to use AFS""... $ac_c" 1>&6
11601 echo "configure:11602: checking whether to use AFS" >&5
11602 # Check whether --with-afs or --without-afs was given.
11603 if test "${with_afs+set}" = set; then
11604 withval="$with_afs"
11605 case "$withval" in
11606 yes)
11607 echo "$ac_t""yes" 1>&6
11608 cat >> confdefs.h <<\EOF
11609 #define WITH_AFS 1
11614 echo "$ac_t""no" 1>&6
11616 esac
11617 else
11618 echo "$ac_t""no" 1>&6
11624 #################################################
11625 # check for the DFS auth system
11626 echo $ac_n "checking whether to use DCE/DFS auth""... $ac_c" 1>&6
11627 echo "configure:11628: checking whether to use DCE/DFS auth" >&5
11628 # Check whether --with-dfs or --without-dfs was given.
11629 if test "${with_dfs+set}" = set; then
11630 withval="$with_dfs"
11631 case "$withval" in
11632 yes)
11633 echo "$ac_t""yes" 1>&6
11634 cat >> confdefs.h <<\EOF
11635 #define WITH_DFS 1
11640 echo "$ac_t""no" 1>&6
11642 esac
11643 else
11644 echo "$ac_t""no" 1>&6
11649 #################################################
11650 # check for Kerberos IV auth system
11651 echo $ac_n "checking whether to use Kerberos IV""... $ac_c" 1>&6
11652 echo "configure:11653: checking whether to use Kerberos IV" >&5
11653 # Check whether --with-krb4 or --without-krb4 was given.
11654 if test "${with_krb4+set}" = set; then
11655 withval="$with_krb4"
11656 case "$withval" in
11657 yes)
11658 echo "$ac_t""yes" 1>&6
11659 cat >> confdefs.h <<\EOF
11660 #define KRB4_AUTH 1
11663 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
11664 echo "configure:11665: checking for dn_expand in -lresolv" >&5
11665 ac_lib_var=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
11666 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11667 echo $ac_n "(cached) $ac_c" 1>&6
11668 else
11669 ac_save_LIBS="$LIBS"
11670 LIBS="-lresolv $LIBS"
11671 cat > conftest.$ac_ext <<EOF
11672 #line 11673 "configure"
11673 #include "confdefs.h"
11674 /* Override any gcc2 internal prototype to avoid an error. */
11675 /* We use char because int might match the return type of a gcc2
11676 builtin and then its argument prototype would still apply. */
11677 char dn_expand();
11679 int main() {
11680 dn_expand()
11681 ; return 0; }
11683 if { (eval echo configure:11684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11684 rm -rf conftest*
11685 eval "ac_cv_lib_$ac_lib_var=yes"
11686 else
11687 echo "configure: failed program was:" >&5
11688 cat conftest.$ac_ext >&5
11689 rm -rf conftest*
11690 eval "ac_cv_lib_$ac_lib_var=no"
11692 rm -f conftest*
11693 LIBS="$ac_save_LIBS"
11696 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11697 echo "$ac_t""yes" 1>&6
11698 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11699 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11700 cat >> confdefs.h <<EOF
11701 #define $ac_tr_lib 1
11704 LIBS="-lresolv $LIBS"
11706 else
11707 echo "$ac_t""no" 1>&6
11710 LIBS="$LIBS -lkrb -ldes"
11711 CFLAGS="$CFLAGS -I$withval/include"
11712 LDFLAGS="$LDFLAGS -L$withval/lib"
11715 echo "$ac_t""no" 1>&6
11717 esac
11718 else
11719 echo "$ac_t""no" 1>&6
11724 #################################################
11725 # check for Kerberos 5 auth system
11726 echo $ac_n "checking whether to use Kerberos 5""... $ac_c" 1>&6
11727 echo "configure:11728: checking whether to use Kerberos 5" >&5
11728 # Check whether --with-krb5 or --without-krb5 was given.
11729 if test "${with_krb5+set}" = set; then
11730 withval="$with_krb5"
11731 case "$withval" in
11732 yes)
11733 echo "$ac_t""yes" 1>&6
11734 cat >> confdefs.h <<\EOF
11735 #define KRB5_AUTH 1
11738 LIBS="$LIBS -ldes425 -lkrb5 -lcrypto -lcom_err"
11739 CFLAGS="$CFLAGS -I$withval/include"
11740 LDFLAGS="$LDFLAGS -L$withval/lib"
11743 echo "$ac_t""no" 1>&6
11745 esac
11746 else
11747 echo "$ac_t""no" 1>&6
11752 #################################################
11753 # check for automount support
11754 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
11755 echo "configure:11756: checking whether to use AUTOMOUNT" >&5
11756 # Check whether --with-automount or --without-automount was given.
11757 if test "${with_automount+set}" = set; then
11758 withval="$with_automount"
11759 case "$withval" in
11760 yes)
11761 echo "$ac_t""yes" 1>&6
11762 cat >> confdefs.h <<\EOF
11763 #define WITH_AUTOMOUNT 1
11768 echo "$ac_t""no" 1>&6
11770 esac
11771 else
11772 echo "$ac_t""no" 1>&6
11777 #################################################
11778 # check for smbmount support
11779 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
11780 echo "configure:11781: checking whether to use SMBMOUNT" >&5
11781 # Check whether --with-smbmount or --without-smbmount was given.
11782 if test "${with_smbmount+set}" = set; then
11783 withval="$with_smbmount"
11784 case "$withval" in
11785 yes)
11786 case "$host_os" in
11787 *linux*)
11788 echo "$ac_t""yes" 1>&6
11789 cat >> confdefs.h <<\EOF
11790 #define WITH_SMBMOUNT 1
11793 MPROGS="bin/smbmount bin/smbmnt bin/smbumount"
11796 { echo "configure: error: not on a linux system!" 1>&2; exit 1; }
11798 esac
11801 echo "$ac_t""no" 1>&6
11802 MPROGS=
11804 esac
11805 else
11806 echo "$ac_t""no" 1>&6
11807 MPROGS=
11813 #################################################
11814 # check for a PAM password database
11815 with_pam_for_crypt=no
11816 echo $ac_n "checking whether to use PAM password database""... $ac_c" 1>&6
11817 echo "configure:11818: checking whether to use PAM password database" >&5
11818 # Check whether --with-pam or --without-pam was given.
11819 if test "${with_pam+set}" = set; then
11820 withval="$with_pam"
11821 case "$withval" in
11822 yes)
11823 echo "$ac_t""yes" 1>&6
11824 cat >> confdefs.h <<\EOF
11825 #define WITH_PAM 1
11828 LIBS="$LIBS -lpam"
11829 with_pam_for_crypt=yes
11832 echo "$ac_t""no" 1>&6
11834 esac
11835 else
11836 echo "$ac_t""no" 1>&6
11841 # we can't build a pam module if we don't have pam.
11842 echo $ac_n "checking for pam_get_data in -lpam""... $ac_c" 1>&6
11843 echo "configure:11844: checking for pam_get_data in -lpam" >&5
11844 ac_lib_var=`echo pam'_'pam_get_data | sed 'y%./+-%__p_%'`
11845 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11846 echo $ac_n "(cached) $ac_c" 1>&6
11847 else
11848 ac_save_LIBS="$LIBS"
11849 LIBS="-lpam $LIBS"
11850 cat > conftest.$ac_ext <<EOF
11851 #line 11852 "configure"
11852 #include "confdefs.h"
11853 /* Override any gcc2 internal prototype to avoid an error. */
11854 /* We use char because int might match the return type of a gcc2
11855 builtin and then its argument prototype would still apply. */
11856 char pam_get_data();
11858 int main() {
11859 pam_get_data()
11860 ; return 0; }
11862 if { (eval echo configure:11863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11863 rm -rf conftest*
11864 eval "ac_cv_lib_$ac_lib_var=yes"
11865 else
11866 echo "configure: failed program was:" >&5
11867 cat conftest.$ac_ext >&5
11868 rm -rf conftest*
11869 eval "ac_cv_lib_$ac_lib_var=no"
11871 rm -f conftest*
11872 LIBS="$ac_save_LIBS"
11875 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11876 echo "$ac_t""yes" 1>&6
11877 cat >> confdefs.h <<\EOF
11878 #define HAVE_LIBPAM 1
11881 else
11882 echo "$ac_t""no" 1>&6
11886 #################################################
11887 # check for pam_smbpass support
11888 echo $ac_n "checking whether to use pam_smbpass""... $ac_c" 1>&6
11889 echo "configure:11890: checking whether to use pam_smbpass" >&5
11890 # Check whether --with-pam_smbpass or --without-pam_smbpass was given.
11891 if test "${with_pam_smbpass+set}" = set; then
11892 withval="$with_pam_smbpass"
11893 case "$withval" in
11894 yes)
11895 echo "$ac_t""yes" 1>&6
11897 # Conditions under which pam_smbpass should not be built.
11899 if test x$PICFLAG = x; then
11900 echo "$ac_t""No support for PIC code - disabling pam_smbpass" 1>&6
11901 PAM_MOD=""
11902 elif test x$ac_cv_lib_pam_pam_get_data = xno; then
11903 echo "$ac_t""No libpam found -- disabling pam_smbpass" 1>&6
11904 PAM_MOD=""
11905 else
11906 cat >> confdefs.h <<\EOF
11907 #define WITH_PAM_SMBPASS 1
11910 PAM_MOD="bin/pam_smbpass.so"
11914 echo "$ac_t""no" 1>&6
11916 esac
11917 else
11918 echo "$ac_t""no" 1>&6
11924 ###############################################
11925 # test for where we get crypt() from, but only
11926 # if not using PAM
11927 if test $with_pam_for_crypt = no; then
11928 for ac_func in crypt
11930 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11931 echo "configure:11932: checking for $ac_func" >&5
11932 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11933 echo $ac_n "(cached) $ac_c" 1>&6
11934 else
11935 cat > conftest.$ac_ext <<EOF
11936 #line 11937 "configure"
11937 #include "confdefs.h"
11938 /* System header to define __stub macros and hopefully few prototypes,
11939 which can conflict with char $ac_func(); below. */
11940 #include <assert.h>
11941 /* Override any gcc2 internal prototype to avoid an error. */
11942 /* We use char because int might match the return type of a gcc2
11943 builtin and then its argument prototype would still apply. */
11944 char $ac_func();
11946 int main() {
11948 /* The GNU C library defines this for functions which it implements
11949 to always fail with ENOSYS. Some functions are actually named
11950 something starting with __ and the normal name is an alias. */
11951 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11952 choke me
11953 #else
11954 $ac_func();
11955 #endif
11957 ; return 0; }
11959 if { (eval echo configure:11960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11960 rm -rf conftest*
11961 eval "ac_cv_func_$ac_func=yes"
11962 else
11963 echo "configure: failed program was:" >&5
11964 cat conftest.$ac_ext >&5
11965 rm -rf conftest*
11966 eval "ac_cv_func_$ac_func=no"
11968 rm -f conftest*
11971 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11972 echo "$ac_t""yes" 1>&6
11973 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11974 cat >> confdefs.h <<EOF
11975 #define $ac_tr_func 1
11978 else
11979 echo "$ac_t""no" 1>&6
11981 done
11983 if test x"$ac_cv_func_crypt" = x"no"; then
11984 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
11985 echo "configure:11986: checking for crypt in -lcrypt" >&5
11986 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
11987 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11988 echo $ac_n "(cached) $ac_c" 1>&6
11989 else
11990 ac_save_LIBS="$LIBS"
11991 LIBS="-lcrypt $LIBS"
11992 cat > conftest.$ac_ext <<EOF
11993 #line 11994 "configure"
11994 #include "confdefs.h"
11995 /* Override any gcc2 internal prototype to avoid an error. */
11996 /* We use char because int might match the return type of a gcc2
11997 builtin and then its argument prototype would still apply. */
11998 char crypt();
12000 int main() {
12001 crypt()
12002 ; return 0; }
12004 if { (eval echo configure:12005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12005 rm -rf conftest*
12006 eval "ac_cv_lib_$ac_lib_var=yes"
12007 else
12008 echo "configure: failed program was:" >&5
12009 cat conftest.$ac_ext >&5
12010 rm -rf conftest*
12011 eval "ac_cv_lib_$ac_lib_var=no"
12013 rm -f conftest*
12014 LIBS="$ac_save_LIBS"
12017 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12018 echo "$ac_t""yes" 1>&6
12019 LIBS="$LIBS -lcrypt";
12020 cat >> confdefs.h <<\EOF
12021 #define HAVE_CRYPT 1
12024 else
12025 echo "$ac_t""no" 1>&6
12032 ## moved after the check for -lcrypt in order to
12033 ## ensure that the necessary libraries are included
12034 ## check checking for truncated salt. Wrapped by the
12035 ## $with_pam_for_crypt variable as above --jerry
12037 if test $with_pam_for_crypt = no; then
12038 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
12039 echo "configure:12040: checking for a crypt that needs truncated salt" >&5
12040 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
12041 echo $ac_n "(cached) $ac_c" 1>&6
12042 else
12044 if test "$cross_compiling" = yes; then
12045 samba_cv_HAVE_TRUNCATED_SALT=cross
12046 else
12047 cat > conftest.$ac_ext <<EOF
12048 #line 12049 "configure"
12049 #include "confdefs.h"
12050 #include "${srcdir-.}/tests/crypttest.c"
12052 if { (eval echo configure:12053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12053 then
12054 samba_cv_HAVE_TRUNCATED_SALT=no
12055 else
12056 echo "configure: failed program was:" >&5
12057 cat conftest.$ac_ext >&5
12058 rm -fr conftest*
12059 samba_cv_HAVE_TRUNCATED_SALT=yes
12061 rm -fr conftest*
12066 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
12067 if test x"$samba_cv_HAVE_TRUNCATED_SALT" = x"yes"; then
12068 cat >> confdefs.h <<\EOF
12069 #define HAVE_TRUNCATED_SALT 1
12076 ########################################################################################
12078 ## TESTS FOR SAM BACKENDS. KEEP THESE GROUPED TOGETHER
12080 ########################################################################################
12082 ## set the with_smbpasswd_sam as the default
12083 with_smbpasswd_sam=yes
12087 #################################################
12088 # check for a TDB password database
12089 echo $ac_n "checking whether to use TDB SAM database""... $ac_c" 1>&6
12090 echo "configure:12091: checking whether to use TDB SAM database" >&5
12091 # Check whether --with-tdbsam or --without-tdbsam was given.
12092 if test "${with_tdbsam+set}" = set; then
12093 withval="$with_tdbsam"
12094 case "$withval" in
12095 yes)
12096 echo "$ac_t""yes" 1>&6
12097 cat >> confdefs.h <<\EOF
12098 #define WITH_TDB_SAM 1
12101 with_smbpasswd_sam=no
12104 echo "$ac_t""no" 1>&6
12106 esac
12107 else
12108 echo "$ac_t""no" 1>&6
12113 #################################################
12114 # check for a LDAP password database
12115 echo $ac_n "checking whether to use LDAP SAM database""... $ac_c" 1>&6
12116 echo "configure:12117: checking whether to use LDAP SAM database" >&5
12117 # Check whether --with-ldapsam or --without-ldapsam was given.
12118 if test "${with_ldapsam+set}" = set; then
12119 withval="$with_ldapsam"
12120 case "$withval" in
12121 yes)
12122 echo "$ac_t""yes" 1>&6
12123 cat >> confdefs.h <<\EOF
12124 #define WITH_LDAP_SAM 1
12127 LIBS="-lldap -llber -lresolv $LIBS"
12128 with_smbpasswd_sam=no
12131 echo "$ac_t""no" 1>&6
12133 esac
12134 else
12135 echo "$ac_t""no" 1>&6
12140 #################################################
12141 # check for a NISPLUS password database
12142 echo $ac_n "checking whether to use NISPLUS SAM database""... $ac_c" 1>&6
12143 echo "configure:12144: checking whether to use NISPLUS SAM database" >&5
12144 # Check whether --with-nisplussam or --without-nisplussam was given.
12145 if test "${with_nisplussam+set}" = set; then
12146 withval="$with_nisplussam"
12147 case "$withval" in
12148 yes)
12149 echo "$ac_t""yes" 1>&6
12150 cat >> confdefs.h <<\EOF
12151 #define WITH_NISPLUS_SAM 1
12154 with_smbpasswd_sam=no
12157 echo "$ac_t""no" 1>&6
12159 esac
12160 else
12161 echo "$ac_t""no" 1>&6
12166 ################################################
12167 # This test should come last because the
12168 # smbpasswd SAM is only used if another format
12169 # has not been defined
12170 echo $ac_n "checking whether to use traditional smbpasswd file""... $ac_c" 1>&6
12171 echo "configure:12172: checking whether to use traditional smbpasswd file" >&5
12172 if test $with_smbpasswd_sam = yes; then
12173 echo "$ac_t""yes" 1>&6
12174 cat >> confdefs.h <<\EOF
12175 #define WITH_SMBPASSWD_SAM 1
12178 PDBEDIT=""
12179 else
12180 echo "$ac_t""no" 1>&6
12181 PDBEDIT=bin/pdbedit
12184 ########################################################################################
12186 ## END OF TESTS FOR SAM BACKENDS.
12188 ########################################################################################
12190 #################################################
12191 # check for a NISPLUS_HOME support
12192 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
12193 echo "configure:12194: checking whether to use NISPLUS_HOME" >&5
12194 # Check whether --with-nisplus-home or --without-nisplus-home was given.
12195 if test "${with_nisplus_home+set}" = set; then
12196 withval="$with_nisplus_home"
12197 case "$withval" in
12198 yes)
12199 echo "$ac_t""yes" 1>&6
12200 cat >> confdefs.h <<\EOF
12201 #define WITH_NISPLUS_HOME 1
12206 echo "$ac_t""no" 1>&6
12208 esac
12209 else
12210 echo "$ac_t""no" 1>&6
12215 #################################################
12216 # check for the secure socket layer
12217 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
12218 echo "configure:12219: checking whether to use SSL" >&5
12219 # Check whether --with-ssl or --without-ssl was given.
12220 if test "${with_ssl+set}" = set; then
12221 withval="$with_ssl"
12222 case "$withval" in
12223 yes)
12224 echo "$ac_t""yes" 1>&6
12225 cat >> confdefs.h <<\EOF
12226 #define WITH_SSL 1
12229 withval="/usr/local/ssl" # default
12231 if test "${with_sslinc+set}" = set; then
12233 withval="$with_sslinc"
12234 case "$withval" in
12235 yes|no)
12236 echo "configure: warning: --with-sslinc called without argument - will use default" 1>&w
12237 CFLAGS="-I/usr/local/ssl/include $CFLAGS"
12240 CFLAGS="-I${withval} $CFLAGS"
12242 esac
12244 else
12246 CFLAGS="-I/usr/local/ssl/include $CFLAGS"
12250 if test "${with_ssllib+set}" = set; then
12252 withval="$with_ssllib"
12253 case "$withval" in
12254 yes|no)
12255 echo "configure: warning: --with-ssllib called without argument - will use default" 1>&w
12256 LDFLAGS="-L/usr/local/ssl/lib $LDFLAGS"
12259 LDFLAGS="-L${withval}/lib $LDFLAGS"
12261 esac
12263 else
12265 LDFLAGS="-L/usr/local/ssl/lib $LDFLAGS"
12269 LIBS="-lssl -lcrypto $LIBS"
12271 # if test ! -d ${withval}; then
12272 # echo "configure: error: called with --with-ssl, but ssl base directory ${withval} does not exist or is not a directory. Aborting config" 1>&2
12273 # exit 1
12274 # fi
12276 CFLAGS="-DHAVE_CRYPT_DECL $CFLAGS" # Damn, SSLeay defines its own
12280 echo "$ac_t""no" 1>&6
12282 esac
12283 else
12284 echo "$ac_t""no" 1>&6
12289 #################################################
12290 # check for syslog logging
12291 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
12292 echo "configure:12293: checking whether to use syslog logging" >&5
12293 # Check whether --with-syslog or --without-syslog was given.
12294 if test "${with_syslog+set}" = set; then
12295 withval="$with_syslog"
12296 case "$withval" in
12297 yes)
12298 echo "$ac_t""yes" 1>&6
12299 cat >> confdefs.h <<\EOF
12300 #define WITH_SYSLOG 1
12305 echo "$ac_t""no" 1>&6
12307 esac
12308 else
12309 echo "$ac_t""no" 1>&6
12314 #################################################
12315 # check for a shared memory profiling support
12316 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
12317 echo "configure:12318: checking whether to use profiling" >&5
12318 # Check whether --with-profiling-data or --without-profiling-data was given.
12319 if test "${with_profiling_data+set}" = set; then
12320 withval="$with_profiling_data"
12321 case "$withval" in
12322 yes)
12323 echo "$ac_t""yes" 1>&6
12324 cat >> confdefs.h <<\EOF
12325 #define WITH_PROFILE 1
12330 echo "$ac_t""no" 1>&6
12332 esac
12333 else
12334 echo "$ac_t""no" 1>&6
12340 #################################################
12341 # check for experimental disk-quotas support
12342 QUOTAOBJS=smbd/noquotas.o
12344 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
12345 echo "configure:12346: checking whether to support disk-quotas" >&5
12346 # Check whether --with-quotas or --without-quotas was given.
12347 if test "${with_quotas+set}" = set; then
12348 withval="$with_quotas"
12349 case "$withval" in
12350 yes)
12351 echo "$ac_t""yes" 1>&6
12352 QUOTAOBJS=smbd/quotas.o
12353 case "$host_os" in
12354 *linux*)
12355 # Check for kernel 2.4.x quota braindamage...
12356 echo $ac_n "checking for linux 2.4.x quota braindamage..""... $ac_c" 1>&6
12357 echo "configure:12358: checking for linux 2.4.x quota braindamage.." >&5
12358 if eval "test \"`echo '$''{'samba_cv_linux_2_4_quota_braindamage'+set}'`\" = set"; then
12359 echo $ac_n "(cached) $ac_c" 1>&6
12360 else
12362 cat > conftest.$ac_ext <<EOF
12363 #line 12364 "configure"
12364 #include "confdefs.h"
12365 #include <stdio.h>
12366 #include <sys/types.h>
12367 #include <asm/types.h>
12368 #include <linux/quota.h>
12369 #include <mntent.h>
12370 #include <linux/unistd.h>
12371 int main() {
12372 struct mem_dqblk D;
12373 ; return 0; }
12375 if { (eval echo configure:12376: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12376 rm -rf conftest*
12377 samba_cv_linux_2_4_quota_braindamage=yes
12378 else
12379 echo "configure: failed program was:" >&5
12380 cat conftest.$ac_ext >&5
12381 rm -rf conftest*
12382 samba_cv_linux_2_4_quota_braindamage=no
12384 rm -f conftest*
12387 echo "$ac_t""$samba_cv_linux_2_4_quota_braindamage" 1>&6
12388 if test x"$samba_cv_linux_2_4_quota_braindamage" = x"yes"; then
12389 cat >> confdefs.h <<\EOF
12390 #define LINUX_QUOTAS_2 1
12393 else
12394 cat >> confdefs.h <<\EOF
12395 #define LINUX_QUOTAS_1 1
12402 esac
12405 echo "$ac_t""no" 1>&6
12407 esac
12408 else
12409 echo "$ac_t""no" 1>&6
12415 #################################################
12416 # check for experimental utmp accounting
12418 echo $ac_n "checking whether to support utmp accounting""... $ac_c" 1>&6
12419 echo "configure:12420: checking whether to support utmp accounting" >&5
12420 # Check whether --with-utmp or --without-utmp was given.
12421 if test "${with_utmp+set}" = set; then
12422 withval="$with_utmp"
12423 case "$withval" in
12424 yes)
12425 echo "$ac_t""yes" 1>&6
12426 cat >> confdefs.h <<\EOF
12427 #define WITH_UTMP 1
12432 echo "$ac_t""no" 1>&6
12434 esac
12435 else
12436 echo "$ac_t""no" 1>&6
12441 #################################################
12442 # check for MS Dfs support
12444 echo $ac_n "checking whether to support Microsoft Dfs""... $ac_c" 1>&6
12445 echo "configure:12446: checking whether to support Microsoft Dfs" >&5
12446 # Check whether --with-msdfs or --without-msdfs was given.
12447 if test "${with_msdfs+set}" = set; then
12448 withval="$with_msdfs"
12449 case "$withval" in
12450 yes)
12451 echo "$ac_t""yes" 1>&6
12452 cat >> confdefs.h <<\EOF
12453 #define WITH_MSDFS 1
12458 echo "$ac_t""no" 1>&6
12460 esac
12461 else
12462 echo "$ac_t""no" 1>&6
12467 #################################################
12468 # should we build libsmbclient?
12470 LIBSMBCLIENT_SHARED=
12471 LIBSMBCLIENT=
12472 echo $ac_n "checking whether to build the libsmbclient shared library""... $ac_c" 1>&6
12473 echo "configure:12474: checking whether to build the libsmbclient shared library" >&5
12474 # Check whether --with-libsmbclient or --without-libsmbclient was given.
12475 if test "${with_libsmbclient+set}" = set; then
12476 withval="$with_libsmbclient"
12477 case "$withval" in
12478 yes)
12479 if test $BLDSHARED = true; then
12480 LIBSMBCLIENT_SHARED=bin/libsmbclient.$SHLIBEXT
12481 LIBSMBCLIENT=libsmbclient
12482 echo "$ac_t""yes" 1>&6
12483 else
12484 echo "$ac_t""no shared library support" 1>&6
12488 echo "$ac_t""no" 1>&6
12490 esac
12491 else
12492 echo "$ac_t""no" 1>&6
12497 #################################################
12498 # these tests are taken from the GNU fileutils package
12499 echo "checking how to get filesystem space usage" 1>&6
12500 echo "configure:12501: checking how to get filesystem space usage" >&5
12501 space=no
12503 # Test for statvfs64.
12504 if test $space = no; then
12505 # SVR4
12506 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
12507 echo "configure:12508: checking statvfs64 function (SVR4)" >&5
12508 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
12509 echo $ac_n "(cached) $ac_c" 1>&6
12510 else
12511 if test "$cross_compiling" = yes; then
12512 fu_cv_sys_stat_statvfs64=cross
12513 else
12514 cat > conftest.$ac_ext <<EOF
12515 #line 12516 "configure"
12516 #include "confdefs.h"
12518 #if defined(HAVE_UNISTD_H)
12519 #include <unistd.h>
12520 #endif
12521 #include <sys/types.h>
12522 #include <sys/statvfs.h>
12523 main ()
12525 struct statvfs64 fsd;
12526 exit (statvfs64 (".", &fsd));
12529 if { (eval echo configure:12530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12530 then
12531 fu_cv_sys_stat_statvfs64=yes
12532 else
12533 echo "configure: failed program was:" >&5
12534 cat conftest.$ac_ext >&5
12535 rm -fr conftest*
12536 fu_cv_sys_stat_statvfs64=no
12538 rm -fr conftest*
12543 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
12544 if test $fu_cv_sys_stat_statvfs64 = yes; then
12545 space=yes
12546 cat >> confdefs.h <<\EOF
12547 #define STAT_STATVFS64 1
12553 # Perform only the link test since it seems there are no variants of the
12554 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
12555 # because that got a false positive on SCO OSR5. Adding the declaration
12556 # of a `struct statvfs' causes this test to fail (as it should) on such
12557 # systems. That system is reported to work fine with STAT_STATFS4 which
12558 # is what it gets when this test fails.
12559 if test $space = no; then
12560 # SVR4
12561 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
12562 echo "configure:12563: checking statvfs function (SVR4)" >&5
12563 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
12564 echo $ac_n "(cached) $ac_c" 1>&6
12565 else
12566 cat > conftest.$ac_ext <<EOF
12567 #line 12568 "configure"
12568 #include "confdefs.h"
12569 #include <sys/types.h>
12570 #include <sys/statvfs.h>
12571 int main() {
12572 struct statvfs fsd; statvfs (0, &fsd);
12573 ; return 0; }
12575 if { (eval echo configure:12576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12576 rm -rf conftest*
12577 fu_cv_sys_stat_statvfs=yes
12578 else
12579 echo "configure: failed program was:" >&5
12580 cat conftest.$ac_ext >&5
12581 rm -rf conftest*
12582 fu_cv_sys_stat_statvfs=no
12584 rm -f conftest*
12587 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
12588 if test $fu_cv_sys_stat_statvfs = yes; then
12589 space=yes
12590 cat >> confdefs.h <<\EOF
12591 #define STAT_STATVFS 1
12597 if test $space = no; then
12598 # DEC Alpha running OSF/1
12599 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
12600 echo "configure:12601: checking for 3-argument statfs function (DEC OSF/1)" >&5
12601 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
12602 echo $ac_n "(cached) $ac_c" 1>&6
12603 else
12604 if test "$cross_compiling" = yes; then
12605 fu_cv_sys_stat_statfs3_osf1=no
12606 else
12607 cat > conftest.$ac_ext <<EOF
12608 #line 12609 "configure"
12609 #include "confdefs.h"
12611 #include <sys/param.h>
12612 #include <sys/types.h>
12613 #include <sys/mount.h>
12614 main ()
12616 struct statfs fsd;
12617 fsd.f_fsize = 0;
12618 exit (statfs (".", &fsd, sizeof (struct statfs)));
12621 if { (eval echo configure:12622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12622 then
12623 fu_cv_sys_stat_statfs3_osf1=yes
12624 else
12625 echo "configure: failed program was:" >&5
12626 cat conftest.$ac_ext >&5
12627 rm -fr conftest*
12628 fu_cv_sys_stat_statfs3_osf1=no
12630 rm -fr conftest*
12635 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
12636 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
12637 space=yes
12638 cat >> confdefs.h <<\EOF
12639 #define STAT_STATFS3_OSF1 1
12645 if test $space = no; then
12646 # AIX
12647 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
12648 echo "configure:12649: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
12649 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
12650 echo $ac_n "(cached) $ac_c" 1>&6
12651 else
12652 if test "$cross_compiling" = yes; then
12653 fu_cv_sys_stat_statfs2_bsize=no
12654 else
12655 cat > conftest.$ac_ext <<EOF
12656 #line 12657 "configure"
12657 #include "confdefs.h"
12659 #ifdef HAVE_SYS_PARAM_H
12660 #include <sys/param.h>
12661 #endif
12662 #ifdef HAVE_SYS_MOUNT_H
12663 #include <sys/mount.h>
12664 #endif
12665 #ifdef HAVE_SYS_VFS_H
12666 #include <sys/vfs.h>
12667 #endif
12668 main ()
12670 struct statfs fsd;
12671 fsd.f_bsize = 0;
12672 exit (statfs (".", &fsd));
12675 if { (eval echo configure:12676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12676 then
12677 fu_cv_sys_stat_statfs2_bsize=yes
12678 else
12679 echo "configure: failed program was:" >&5
12680 cat conftest.$ac_ext >&5
12681 rm -fr conftest*
12682 fu_cv_sys_stat_statfs2_bsize=no
12684 rm -fr conftest*
12689 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
12690 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
12691 space=yes
12692 cat >> confdefs.h <<\EOF
12693 #define STAT_STATFS2_BSIZE 1
12699 if test $space = no; then
12700 # SVR3
12701 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
12702 echo "configure:12703: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
12703 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
12704 echo $ac_n "(cached) $ac_c" 1>&6
12705 else
12706 if test "$cross_compiling" = yes; then
12707 fu_cv_sys_stat_statfs4=no
12708 else
12709 cat > conftest.$ac_ext <<EOF
12710 #line 12711 "configure"
12711 #include "confdefs.h"
12712 #include <sys/types.h>
12713 #include <sys/statfs.h>
12714 main ()
12716 struct statfs fsd;
12717 exit (statfs (".", &fsd, sizeof fsd, 0));
12720 if { (eval echo configure:12721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12721 then
12722 fu_cv_sys_stat_statfs4=yes
12723 else
12724 echo "configure: failed program was:" >&5
12725 cat conftest.$ac_ext >&5
12726 rm -fr conftest*
12727 fu_cv_sys_stat_statfs4=no
12729 rm -fr conftest*
12734 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
12735 if test $fu_cv_sys_stat_statfs4 = yes; then
12736 space=yes
12737 cat >> confdefs.h <<\EOF
12738 #define STAT_STATFS4 1
12744 if test $space = no; then
12745 # 4.4BSD and NetBSD
12746 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
12747 echo "configure:12748: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
12748 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
12749 echo $ac_n "(cached) $ac_c" 1>&6
12750 else
12751 if test "$cross_compiling" = yes; then
12752 fu_cv_sys_stat_statfs2_fsize=no
12753 else
12754 cat > conftest.$ac_ext <<EOF
12755 #line 12756 "configure"
12756 #include "confdefs.h"
12757 #include <sys/types.h>
12758 #ifdef HAVE_SYS_PARAM_H
12759 #include <sys/param.h>
12760 #endif
12761 #ifdef HAVE_SYS_MOUNT_H
12762 #include <sys/mount.h>
12763 #endif
12764 main ()
12766 struct statfs fsd;
12767 fsd.f_fsize = 0;
12768 exit (statfs (".", &fsd));
12771 if { (eval echo configure:12772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12772 then
12773 fu_cv_sys_stat_statfs2_fsize=yes
12774 else
12775 echo "configure: failed program was:" >&5
12776 cat conftest.$ac_ext >&5
12777 rm -fr conftest*
12778 fu_cv_sys_stat_statfs2_fsize=no
12780 rm -fr conftest*
12785 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
12786 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
12787 space=yes
12788 cat >> confdefs.h <<\EOF
12789 #define STAT_STATFS2_FSIZE 1
12795 if test $space = no; then
12796 # Ultrix
12797 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
12798 echo "configure:12799: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
12799 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
12800 echo $ac_n "(cached) $ac_c" 1>&6
12801 else
12802 if test "$cross_compiling" = yes; then
12803 fu_cv_sys_stat_fs_data=no
12804 else
12805 cat > conftest.$ac_ext <<EOF
12806 #line 12807 "configure"
12807 #include "confdefs.h"
12808 #include <sys/types.h>
12809 #ifdef HAVE_SYS_PARAM_H
12810 #include <sys/param.h>
12811 #endif
12812 #ifdef HAVE_SYS_MOUNT_H
12813 #include <sys/mount.h>
12814 #endif
12815 #ifdef HAVE_SYS_FS_TYPES_H
12816 #include <sys/fs_types.h>
12817 #endif
12818 main ()
12820 struct fs_data fsd;
12821 /* Ultrix's statfs returns 1 for success,
12822 0 for not mounted, -1 for failure. */
12823 exit (statfs (".", &fsd) != 1);
12826 if { (eval echo configure:12827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12827 then
12828 fu_cv_sys_stat_fs_data=yes
12829 else
12830 echo "configure: failed program was:" >&5
12831 cat conftest.$ac_ext >&5
12832 rm -fr conftest*
12833 fu_cv_sys_stat_fs_data=no
12835 rm -fr conftest*
12840 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
12841 if test $fu_cv_sys_stat_fs_data = yes; then
12842 space=yes
12843 cat >> confdefs.h <<\EOF
12844 #define STAT_STATFS2_FS_DATA 1
12851 # As a gating factor for large file support, in order to
12852 # use <4GB files we must have the following minimal support
12853 # available.
12854 # long long, and a 64 bit off_t or off64_t.
12855 # If we don't have all of these then disable large
12856 # file support.
12858 echo $ac_n "checking if large file support can be enabled""... $ac_c" 1>&6
12859 echo "configure:12860: checking if large file support can be enabled" >&5
12860 cat > conftest.$ac_ext <<EOF
12861 #line 12862 "configure"
12862 #include "confdefs.h"
12864 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
12865 #include <sys/types.h>
12866 #else
12867 __COMPILE_ERROR_
12868 #endif
12870 int main() {
12871 int i
12872 ; return 0; }
12874 if { (eval echo configure:12875: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12875 rm -rf conftest*
12876 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=yes
12877 else
12878 echo "configure: failed program was:" >&5
12879 cat conftest.$ac_ext >&5
12880 rm -rf conftest*
12881 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=no
12883 rm -f conftest*
12884 if test x"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x"yes"; then
12885 echo "$ac_t""yes" 1>&6
12886 cat >> confdefs.h <<\EOF
12887 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
12890 else
12891 echo "$ac_t""no" 1>&6
12894 # Check whether --with-spinlocks or --without-spinlocks was given.
12895 if test "${with_spinlocks+set}" = set; then
12896 withval="$with_spinlocks"
12900 if test "x$with_spinlocks" = "xyes"; then
12901 cat >> confdefs.h <<\EOF
12902 #define USE_SPINLOCKS 1
12906 case "$host_cpu" in
12907 sparc)
12908 cat >> confdefs.h <<\EOF
12909 #define SPARC_SPINLOCKS 1
12914 i386|i486|i586|i686)
12915 cat >> confdefs.h <<\EOF
12916 #define INTEL_SPINLOCKS 1
12921 mips)
12922 cat >> confdefs.h <<\EOF
12923 #define MIPS_SPINLOCKS 1
12928 powerpc)
12929 cat >> confdefs.h <<\EOF
12930 #define POWERPC_SPINLOCKS 1
12934 esac
12937 #################################################
12938 # check for ACL support
12940 echo $ac_n "checking whether to support ACLs""... $ac_c" 1>&6
12941 echo "configure:12942: checking whether to support ACLs" >&5
12942 # Check whether --with-acl-support or --without-acl-support was given.
12943 if test "${with_acl_support+set}" = set; then
12944 withval="$with_acl_support"
12945 case "$withval" in
12946 yes)
12948 case "$host_os" in
12949 *sysv5*)
12950 echo "$ac_t""Using UnixWare ACLs" 1>&6
12951 cat >> confdefs.h <<\EOF
12952 #define HAVE_UNIXWARE_ACLS 1
12956 *solaris*)
12957 echo "$ac_t""Using solaris ACLs" 1>&6
12958 cat >> confdefs.h <<\EOF
12959 #define HAVE_SOLARIS_ACLS 1
12963 *hpux*)
12964 echo "$ac_t""Using HPUX ACLs" 1>&6
12965 cat >> confdefs.h <<\EOF
12966 #define HAVE_HPUX_ACLS 1
12970 *irix*)
12971 echo "$ac_t""Using IRIX ACLs" 1>&6
12972 cat >> confdefs.h <<\EOF
12973 #define HAVE_IRIX_ACLS 1
12977 *aix*)
12978 echo "$ac_t""Using AIX ACLs" 1>&6
12979 cat >> confdefs.h <<\EOF
12980 #define HAVE_AIX_ACLS 1
12984 *osf*)
12985 echo "$ac_t""Using Tru64 ACLs" 1>&6
12986 cat >> confdefs.h <<\EOF
12987 #define HAVE_TRU64_ACLS 1
12990 LIBS="$LIBS -lpacl"
12993 echo $ac_n "checking for acl_get_file in -lacl""... $ac_c" 1>&6
12994 echo "configure:12995: checking for acl_get_file in -lacl" >&5
12995 ac_lib_var=`echo acl'_'acl_get_file | sed 'y%./+-%__p_%'`
12996 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12997 echo $ac_n "(cached) $ac_c" 1>&6
12998 else
12999 ac_save_LIBS="$LIBS"
13000 LIBS="-lacl $LIBS"
13001 cat > conftest.$ac_ext <<EOF
13002 #line 13003 "configure"
13003 #include "confdefs.h"
13004 /* Override any gcc2 internal prototype to avoid an error. */
13005 /* We use char because int might match the return type of a gcc2
13006 builtin and then its argument prototype would still apply. */
13007 char acl_get_file();
13009 int main() {
13010 acl_get_file()
13011 ; return 0; }
13013 if { (eval echo configure:13014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13014 rm -rf conftest*
13015 eval "ac_cv_lib_$ac_lib_var=yes"
13016 else
13017 echo "configure: failed program was:" >&5
13018 cat conftest.$ac_ext >&5
13019 rm -rf conftest*
13020 eval "ac_cv_lib_$ac_lib_var=no"
13022 rm -f conftest*
13023 LIBS="$ac_save_LIBS"
13026 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13027 echo "$ac_t""yes" 1>&6
13028 ac_tr_lib=HAVE_LIB`echo acl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
13029 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
13030 cat >> confdefs.h <<EOF
13031 #define $ac_tr_lib 1
13034 LIBS="-lacl $LIBS"
13036 else
13037 echo "$ac_t""no" 1>&6
13040 echo $ac_n "checking for ACL support""... $ac_c" 1>&6
13041 echo "configure:13042: checking for ACL support" >&5
13042 if eval "test \"`echo '$''{'samba_cv_HAVE_POSIX_ACLS'+set}'`\" = set"; then
13043 echo $ac_n "(cached) $ac_c" 1>&6
13044 else
13046 cat > conftest.$ac_ext <<EOF
13047 #line 13048 "configure"
13048 #include "confdefs.h"
13049 #include <sys/types.h>
13050 #include <sys/acl.h>
13051 int main() {
13052 acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
13053 ; return 0; }
13055 if { (eval echo configure:13056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13056 rm -rf conftest*
13057 samba_cv_HAVE_POSIX_ACLS=yes
13058 else
13059 echo "configure: failed program was:" >&5
13060 cat conftest.$ac_ext >&5
13061 rm -rf conftest*
13062 samba_cv_HAVE_POSIX_ACLS=no
13064 rm -f conftest*
13067 echo "$ac_t""$samba_cv_HAVE_POSIX_ACLS" 1>&6
13068 if test x"$samba_cv_HAVE_POSIX_ACLS" = x"yes"; then
13069 echo "$ac_t""Using posix ACLs" 1>&6
13070 cat >> confdefs.h <<\EOF
13071 #define HAVE_POSIX_ACLS 1
13074 echo $ac_n "checking for acl_get_perm_np""... $ac_c" 1>&6
13075 echo "configure:13076: checking for acl_get_perm_np" >&5
13076 if eval "test \"`echo '$''{'samba_cv_HAVE_ACL_GET_PERM_NP'+set}'`\" = set"; then
13077 echo $ac_n "(cached) $ac_c" 1>&6
13078 else
13080 cat > conftest.$ac_ext <<EOF
13081 #line 13082 "configure"
13082 #include "confdefs.h"
13083 #include <sys/types.h>
13084 #include <sys/acl.h>
13085 int main() {
13086 acl_permset_t permset_d; acl_perm_t perm; return acl_get_perm_np( permset_d, perm);
13087 ; return 0; }
13089 if { (eval echo configure:13090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13090 rm -rf conftest*
13091 samba_cv_HAVE_ACL_GET_PERM_NP=yes
13092 else
13093 echo "configure: failed program was:" >&5
13094 cat conftest.$ac_ext >&5
13095 rm -rf conftest*
13096 samba_cv_HAVE_ACL_GET_PERM_NP=no
13098 rm -f conftest*
13101 echo "$ac_t""$samba_cv_HAVE_ACL_GET_PERM_NP" 1>&6
13102 if test x"$samba_cv_HAVE_ACL_GET_PERM_NP" = x"yes"; then
13103 cat >> confdefs.h <<\EOF
13104 #define HAVE_ACL_GET_PERM_NP 1
13110 esac
13113 echo "$ac_t""no" 1>&6
13114 cat >> confdefs.h <<\EOF
13115 #define HAVE_NO_ACLS 1
13119 esac
13120 else
13121 cat >> confdefs.h <<\EOF
13122 #define HAVE_NO_ACLS 1
13125 echo "$ac_t""no" 1>&6
13130 #################################################
13131 # check for the historical SAMBA installation
13133 if test "x$prefix" = xNONE -a "$sbindir" = "\${exec_prefix}/sbin"; then
13134 # Put all binaries under the /usr/local/samba/bin directory.
13135 sbindir="$bindir"
13138 #################################################
13139 # Check whether winbind is supported on this platform. If so we need to
13140 # build and install client programs (WINBIND_TARGETS), sbin programs
13141 # (WINBIND_STARGETS) and shared libraries (WINBIND_LTARGETS).
13143 echo $ac_n "checking whether to build winbind""... $ac_c" 1>&6
13144 echo "configure:13145: checking whether to build winbind" >&5
13146 # Initially, the value of $host_os decides whether winbind is supported
13148 case "$host_os" in
13149 *linux*|*irix*)
13150 HAVE_WINBIND=yes
13152 *solaris*)
13153 HAVE_WINBIND=yes
13154 WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_solaris.o"
13155 WINBIND_NSS_EXTRA_LIBS="-lsocket"
13157 *hpux11*)
13158 HAVE_WINBIND=yes
13159 WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_solaris.o"
13161 *aix4*)
13162 HAVE_WINBIND=yes
13165 HAVE_WINBIND=no
13166 winbind_no_reason=", unsupported on $host_os"
13168 esac
13170 # Check the setting of --with-winbindd
13172 # Check whether --with-winbind or --without-winbind was given.
13173 if test "${with_winbind+set}" = set; then
13174 withval="$with_winbind"
13176 case "$withval" in
13177 yes)
13178 HAVE_WINBIND=yes
13181 HAVE_WINBIND=no
13182 winbind_reason=""
13184 esac
13188 # We need unix domain sockets for winbind
13190 if test x"$HAVE_WINBIND" = x"yes"; then
13191 if test x"$samba_cv_unixsocket" = x"no"; then
13192 winbind_no_reason=", no unix domain socket support on $host_os"
13193 HAVE_WINBIND=no
13197 # Display test results
13199 if test x"$HAVE_WINBIND" = x"yes"; then
13201 echo "$ac_t""yes" 1>&6
13203 WINBIND_TARGETS="bin/wbinfo"
13204 WINBIND_STARGETS="bin/winbindd"
13205 case "$host_os" in
13206 *irix*)
13207 WINBIND_LTARGETS="nsswitch/libns_winbind.so"
13210 WINBIND_LTARGETS="nsswitch/libnss_winbind.so"
13212 esac
13215 case "$with_pam" in
13216 yes)
13217 WINBIND_PAM_TARGETS="nsswitch/pam_winbind.so"
13219 esac
13220 else
13221 echo "$ac_t""no$winbind_no_reason" 1>&6
13223 WINBIND_TARGETS=""
13224 WINBIND_STARGETS=""
13225 WINBIND_LTARGETS=""
13226 WINBIND_PAM_TARGETS=""
13229 # Check for FreeBSD problem with getgroups
13230 # It returns EGID too many times in the list of groups
13231 # and causes a security problem
13232 echo $ac_n "checking whether or not getgroups returns EGID too many times""... $ac_c" 1>&6
13233 echo "configure:13234: checking whether or not getgroups returns EGID too many times" >&5
13234 if eval "test \"`echo '$''{'samba_cv_have_getgroups_too_many_egids'+set}'`\" = set"; then
13235 echo $ac_n "(cached) $ac_c" 1>&6
13236 else
13237 if test "$cross_compiling" = yes; then
13238 samba_cv_have_getgroups_too_many_egids=cross
13239 else
13240 cat > conftest.$ac_ext <<EOF
13241 #line 13242 "configure"
13242 #include "confdefs.h"
13244 #include <sys/types.h>
13245 #include <stdio.h>
13247 int main(int argc, char *argv[])
13249 gid_t groups[10];
13250 int n = 10;
13252 n = getgroups(n, &groups);
13253 /* Could actually pass back the number of EGIDs there ... */
13254 exit((n > 1 && groups[0] == getegid() && groups[1] == getegid()) ? 1 : 0);
13257 if { (eval echo configure:13258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13258 then
13259 samba_cv_have_getgroups_too_many_egids=no
13260 else
13261 echo "configure: failed program was:" >&5
13262 cat conftest.$ac_ext >&5
13263 rm -fr conftest*
13264 samba_cv_have_getgroups_too_many_egids=yes
13266 rm -fr conftest*
13271 echo "$ac_t""$samba_cv_have_getgroups_too_many_egids" 1>&6
13272 if test x"$samba_cv_have_getgroups_too_many_egids" = x"yes"; then
13273 cat >> confdefs.h <<\EOF
13274 #define HAVE_GETGROUPS_TOO_MANY_EGIDS 1
13279 # Substitution time!
13288 # Solaris has some extra fields in struct passwd that need to be
13289 # initialised otherwise nscd crashes. Unfortunately autoconf < 2.50
13290 # doesn't have the AC_CHECK_MEMBER macro which would be handy for checking
13291 # this.
13293 #AC_CHECK_MEMBER(struct passwd.pw_comment,
13294 # AC_DEFINE(HAVE_PASSWD_PW_COMMENT, 1, [Defined if struct passwd has pw_comment field]),
13295 # [#include <pwd.h>])
13297 echo $ac_n "checking whether struct passwd has pw_comment""... $ac_c" 1>&6
13298 echo "configure:13299: checking whether struct passwd has pw_comment" >&5
13299 if eval "test \"`echo '$''{'samba_cv_passwd_pw_comment'+set}'`\" = set"; then
13300 echo $ac_n "(cached) $ac_c" 1>&6
13301 else
13303 cat > conftest.$ac_ext <<EOF
13304 #line 13305 "configure"
13305 #include "confdefs.h"
13306 #include <pwd.h>
13307 int main() {
13308 struct passwd p; p.pw_comment;
13309 ; return 0; }
13311 if { (eval echo configure:13312: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13312 rm -rf conftest*
13313 samba_cv_passwd_pw_comment=yes
13314 else
13315 echo "configure: failed program was:" >&5
13316 cat conftest.$ac_ext >&5
13317 rm -rf conftest*
13318 samba_cv_passwd_pw_comment=no
13320 rm -f conftest*
13323 echo "$ac_t""$samba_cv_passwd_pw_comment" 1>&6
13324 if test x"$samba_cv_passwd_pw_comment" = x"yes"; then
13325 cat >> confdefs.h <<\EOF
13326 #define HAVE_PASSWD_PW_COMMENT 1
13331 #AC_CHECK_MEMBER(struct passwd.pw_age,
13332 # AC_DEFINE(HAVE_PASSWD_PW_AGE, 1, [Defined if struct passwd has pw_age field]),
13333 # [#include <pwd.h>])
13335 echo $ac_n "checking whether struct passwd has pw_age""... $ac_c" 1>&6
13336 echo "configure:13337: checking whether struct passwd has pw_age" >&5
13337 if eval "test \"`echo '$''{'samba_cv_passwd_pw_age'+set}'`\" = set"; then
13338 echo $ac_n "(cached) $ac_c" 1>&6
13339 else
13341 cat > conftest.$ac_ext <<EOF
13342 #line 13343 "configure"
13343 #include "confdefs.h"
13344 #include <pwd.h>
13345 int main() {
13346 struct passwd p; p.pw_age;
13347 ; return 0; }
13349 if { (eval echo configure:13350: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13350 rm -rf conftest*
13351 samba_cv_passwd_pw_age=yes
13352 else
13353 echo "configure: failed program was:" >&5
13354 cat conftest.$ac_ext >&5
13355 rm -rf conftest*
13356 samba_cv_passwd_pw_age=no
13358 rm -f conftest*
13361 echo "$ac_t""$samba_cv_passwd_pw_age" 1>&6
13362 if test x"$samba_cv_passwd_pw_age" = x"yes"; then
13363 cat >> confdefs.h <<\EOF
13364 #define HAVE_PASSWD_PW_AGE 1
13369 #################################################
13370 # Check to see if we should use the included popt
13372 # Check whether --with-included-popt or --without-included-popt was given.
13373 if test "${with_included_popt+set}" = set; then
13374 withval="$with_included_popt"
13376 case "$withval" in
13377 yes)
13378 INCLUDED_POPT=yes
13381 INCLUDED_POPT=no
13383 esac
13386 if test x"$INCLUDED_POPT" != x"yes"; then
13387 echo $ac_n "checking for poptGetContext in -lpopt""... $ac_c" 1>&6
13388 echo "configure:13389: checking for poptGetContext in -lpopt" >&5
13389 ac_lib_var=`echo popt'_'poptGetContext | sed 'y%./+-%__p_%'`
13390 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13391 echo $ac_n "(cached) $ac_c" 1>&6
13392 else
13393 ac_save_LIBS="$LIBS"
13394 LIBS="-lpopt $LIBS"
13395 cat > conftest.$ac_ext <<EOF
13396 #line 13397 "configure"
13397 #include "confdefs.h"
13398 /* Override any gcc2 internal prototype to avoid an error. */
13399 /* We use char because int might match the return type of a gcc2
13400 builtin and then its argument prototype would still apply. */
13401 char poptGetContext();
13403 int main() {
13404 poptGetContext()
13405 ; return 0; }
13407 if { (eval echo configure:13408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13408 rm -rf conftest*
13409 eval "ac_cv_lib_$ac_lib_var=yes"
13410 else
13411 echo "configure: failed program was:" >&5
13412 cat conftest.$ac_ext >&5
13413 rm -rf conftest*
13414 eval "ac_cv_lib_$ac_lib_var=no"
13416 rm -f conftest*
13417 LIBS="$ac_save_LIBS"
13420 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13421 echo "$ac_t""yes" 1>&6
13422 INCLUDED_POPT=no
13423 else
13424 echo "$ac_t""no" 1>&6
13425 INCLUDED_POPT=yes
13430 echo $ac_n "checking whether to use included popt""... $ac_c" 1>&6
13431 echo "configure:13432: checking whether to use included popt" >&5
13432 if test x"$INCLUDED_POPT" = x"yes"; then
13433 echo "$ac_t""$srcdir/popt" 1>&6
13434 BUILD_POPT='$(POPT_OBJS)'
13435 FLAGS1="-I$srcdir/popt"
13436 else
13437 echo "$ac_t""no" 1>&6
13438 LIBS="$LIBS -lpopt"
13443 #################################################
13444 # final configure stuff
13445 echo $ac_n "checking configure summary""... $ac_c" 1>&6
13446 echo "configure:13447: checking configure summary" >&5
13447 if test "$cross_compiling" = yes; then
13448 echo "configure: warning: cannot run when cross-compiling" 1>&2
13449 else
13450 cat > conftest.$ac_ext <<EOF
13451 #line 13452 "configure"
13452 #include "confdefs.h"
13453 #include "${srcdir-.}/tests/summary.c"
13455 if { (eval echo configure:13456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13456 then
13457 echo "$ac_t""yes" 1>&6
13458 else
13459 echo "configure: failed program was:" >&5
13460 cat conftest.$ac_ext >&5
13461 rm -fr conftest*
13462 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }; exit 1;
13464 rm -fr conftest*
13468 builddir=`pwd`
13471 trap '' 1 2 15
13472 cat > confcache <<\EOF
13473 # This file is a shell script that caches the results of configure
13474 # tests run on this system so they can be shared between configure
13475 # scripts and configure runs. It is not useful on other systems.
13476 # If it contains results you don't want to keep, you may remove or edit it.
13478 # By default, configure uses ./config.cache as the cache file,
13479 # creating it if it does not exist already. You can give configure
13480 # the --cache-file=FILE option to use a different cache file; that is
13481 # what configure does when it calls configure scripts in
13482 # subdirectories, so they share the cache.
13483 # Giving --cache-file=/dev/null disables caching, for debugging configure.
13484 # config.status only pays attention to the cache file if you give it the
13485 # --recheck option to rerun configure.
13488 # The following way of writing the cache mishandles newlines in values,
13489 # but we know of no workaround that is simple, portable, and efficient.
13490 # So, don't put newlines in cache variables' values.
13491 # Ultrix sh set writes to stderr and can't be redirected directly,
13492 # and sets the high bit in the cache file unless we assign to the vars.
13493 (set) 2>&1 |
13494 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13495 *ac_space=\ *)
13496 # `set' does not quote correctly, so add quotes (double-quote substitution
13497 # turns \\\\ into \\, and sed turns \\ into \).
13498 sed -n \
13499 -e "s/'/'\\\\''/g" \
13500 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
13503 # `set' quotes correctly as required by POSIX, so do not add quotes.
13504 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
13506 esac >> confcache
13507 if cmp -s $cache_file confcache; then
13509 else
13510 if test -w $cache_file; then
13511 echo "updating cache $cache_file"
13512 cat confcache > $cache_file
13513 else
13514 echo "not updating unwritable cache $cache_file"
13517 rm -f confcache
13519 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
13521 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13522 # Let make expand exec_prefix.
13523 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13525 # Any assignment to VPATH causes Sun make to only execute
13526 # the first set of double-colon rules, so remove it if not needed.
13527 # If there is a colon in the path, we need to keep it.
13528 if test "x$srcdir" = x.; then
13529 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
13532 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
13534 DEFS=-DHAVE_CONFIG_H
13536 # Without the "./", some shells look in PATH for config.status.
13537 : ${CONFIG_STATUS=./config.status}
13539 echo creating $CONFIG_STATUS
13540 rm -f $CONFIG_STATUS
13541 cat > $CONFIG_STATUS <<EOF
13542 #! /bin/sh
13543 # Generated automatically by configure.
13544 # Run this file to recreate the current configuration.
13545 # This directory was configured as follows,
13546 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13548 # $0 $ac_configure_args
13550 # Compiler output produced by configure, useful for debugging
13551 # configure, is in ./config.log if it exists.
13553 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
13554 for ac_option
13556 case "\$ac_option" in
13557 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13558 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
13559 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
13560 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
13561 echo "$CONFIG_STATUS generated by autoconf version 2.13"
13562 exit 0 ;;
13563 -help | --help | --hel | --he | --h)
13564 echo "\$ac_cs_usage"; exit 0 ;;
13565 *) echo "\$ac_cs_usage"; exit 1 ;;
13566 esac
13567 done
13569 ac_given_srcdir=$srcdir
13570 ac_given_INSTALL="$INSTALL"
13572 trap 'rm -fr `echo "include/stamp-h Makefile script/findsmb include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
13574 cat >> $CONFIG_STATUS <<EOF
13576 # Protect against being on the right side of a sed subst in config.status.
13577 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
13578 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
13579 $ac_vpsub
13580 $extrasub
13581 s%@SHELL@%$SHELL%g
13582 s%@CFLAGS@%$CFLAGS%g
13583 s%@CPPFLAGS@%$CPPFLAGS%g
13584 s%@CXXFLAGS@%$CXXFLAGS%g
13585 s%@FFLAGS@%$FFLAGS%g
13586 s%@DEFS@%$DEFS%g
13587 s%@LDFLAGS@%$LDFLAGS%g
13588 s%@LIBS@%$LIBS%g
13589 s%@exec_prefix@%$exec_prefix%g
13590 s%@prefix@%$prefix%g
13591 s%@program_transform_name@%$program_transform_name%g
13592 s%@bindir@%$bindir%g
13593 s%@sbindir@%$sbindir%g
13594 s%@libexecdir@%$libexecdir%g
13595 s%@datadir@%$datadir%g
13596 s%@sysconfdir@%$sysconfdir%g
13597 s%@sharedstatedir@%$sharedstatedir%g
13598 s%@localstatedir@%$localstatedir%g
13599 s%@libdir@%$libdir%g
13600 s%@includedir@%$includedir%g
13601 s%@oldincludedir@%$oldincludedir%g
13602 s%@infodir@%$infodir%g
13603 s%@mandir@%$mandir%g
13604 s%@codepagedir@%$codepagedir%g
13605 s%@configdir@%$configdir%g
13606 s%@lockdir@%$lockdir%g
13607 s%@piddir@%$piddir%g
13608 s%@logfilebase@%$logfilebase%g
13609 s%@privatedir@%$privatedir%g
13610 s%@swatdir@%$swatdir%g
13611 s%@RUNPROG@%$RUNPROG%g
13612 s%@MPROGS@%$MPROGS%g
13613 s%@LDSHFLAGS@%$LDSHFLAGS%g
13614 s%@SONAMEFLAG@%$SONAMEFLAG%g
13615 s%@SHLD@%$SHLD%g
13616 s%@HOST_OS@%$HOST_OS%g
13617 s%@PAM_MOD@%$PAM_MOD%g
13618 s%@PDBEDIT@%$PDBEDIT%g
13619 s%@WRAP@%$WRAP%g
13620 s%@WRAP32@%$WRAP32%g
13621 s%@WRAPPROG@%$WRAPPROG%g
13622 s%@PICFLAG@%$PICFLAG%g
13623 s%@PICSUFFIX@%$PICSUFFIX%g
13624 s%@SHLIBEXT@%$SHLIBEXT%g
13625 s%@BLDSHARED@%$BLDSHARED%g
13626 s%@LIBSMBCLIENT_SHARED@%$LIBSMBCLIENT_SHARED%g
13627 s%@LIBSMBCLIENT@%$LIBSMBCLIENT%g
13628 s%@CC@%$CC%g
13629 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
13630 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
13631 s%@INSTALL_DATA@%$INSTALL_DATA%g
13632 s%@AWK@%$AWK%g
13633 s%@passwd_program@%$passwd_program%g
13634 s%@BROKEN_CC@%$BROKEN_CC%g
13635 s%@host@%$host%g
13636 s%@host_alias@%$host_alias%g
13637 s%@host_cpu@%$host_cpu%g
13638 s%@host_vendor@%$host_vendor%g
13639 s%@host_os@%$host_os%g
13640 s%@target@%$target%g
13641 s%@target_alias@%$target_alias%g
13642 s%@target_cpu@%$target_cpu%g
13643 s%@target_vendor@%$target_vendor%g
13644 s%@target_os@%$target_os%g
13645 s%@build@%$build%g
13646 s%@build_alias@%$build_alias%g
13647 s%@build_cpu@%$build_cpu%g
13648 s%@build_vendor@%$build_vendor%g
13649 s%@build_os@%$build_os%g
13650 s%@CPP@%$CPP%g
13651 s%@CUPS_CONFIG@%$CUPS_CONFIG%g
13652 s%@LIBOBJS@%$LIBOBJS%g
13653 s%@TERMLIBS@%$TERMLIBS%g
13654 s%@TERMLDFLAGS@%$TERMLDFLAGS%g
13655 s%@ROFF@%$ROFF%g
13656 s%@DYNEXP@%$DYNEXP%g
13657 s%@QUOTAOBJS@%$QUOTAOBJS%g
13658 s%@WINBIND_TARGETS@%$WINBIND_TARGETS%g
13659 s%@WINBIND_STARGETS@%$WINBIND_STARGETS%g
13660 s%@WINBIND_LTARGETS@%$WINBIND_LTARGETS%g
13661 s%@WINBIND_PAM_TARGETS@%$WINBIND_PAM_TARGETS%g
13662 s%@WINBIND_NSS_EXTRA_OBJS@%$WINBIND_NSS_EXTRA_OBJS%g
13663 s%@WINBIND_NSS_EXTRA_LIBS@%$WINBIND_NSS_EXTRA_LIBS%g
13664 s%@BUILD_POPT@%$BUILD_POPT%g
13665 s%@FLAGS1@%$FLAGS1%g
13666 s%@builddir@%$builddir%g
13668 CEOF
13671 cat >> $CONFIG_STATUS <<\EOF
13673 # Split the substitutions into bite-sized pieces for seds with
13674 # small command number limits, like on Digital OSF/1 and HP-UX.
13675 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
13676 ac_file=1 # Number of current file.
13677 ac_beg=1 # First line for current file.
13678 ac_end=$ac_max_sed_cmds # Line after last line for current file.
13679 ac_more_lines=:
13680 ac_sed_cmds=""
13681 while $ac_more_lines; do
13682 if test $ac_beg -gt 1; then
13683 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
13684 else
13685 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
13687 if test ! -s conftest.s$ac_file; then
13688 ac_more_lines=false
13689 rm -f conftest.s$ac_file
13690 else
13691 if test -z "$ac_sed_cmds"; then
13692 ac_sed_cmds="sed -f conftest.s$ac_file"
13693 else
13694 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
13696 ac_file=`expr $ac_file + 1`
13697 ac_beg=$ac_end
13698 ac_end=`expr $ac_end + $ac_max_sed_cmds`
13700 done
13701 if test -z "$ac_sed_cmds"; then
13702 ac_sed_cmds=cat
13706 cat >> $CONFIG_STATUS <<EOF
13708 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile script/findsmb"}
13710 cat >> $CONFIG_STATUS <<\EOF
13711 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
13712 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13713 case "$ac_file" in
13714 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13715 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13716 *) ac_file_in="${ac_file}.in" ;;
13717 esac
13719 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
13721 # Remove last slash and all that follows it. Not all systems have dirname.
13722 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13723 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13724 # The file is in a subdirectory.
13725 test ! -d "$ac_dir" && mkdir "$ac_dir"
13726 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
13727 # A "../" for each directory in $ac_dir_suffix.
13728 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
13729 else
13730 ac_dir_suffix= ac_dots=
13733 case "$ac_given_srcdir" in
13734 .) srcdir=.
13735 if test -z "$ac_dots"; then top_srcdir=.
13736 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
13737 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
13738 *) # Relative path.
13739 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
13740 top_srcdir="$ac_dots$ac_given_srcdir" ;;
13741 esac
13743 case "$ac_given_INSTALL" in
13744 [/$]*) INSTALL="$ac_given_INSTALL" ;;
13745 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
13746 esac
13748 echo creating "$ac_file"
13749 rm -f "$ac_file"
13750 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
13751 case "$ac_file" in
13752 *Makefile*) ac_comsub="1i\\
13753 # $configure_input" ;;
13754 *) ac_comsub= ;;
13755 esac
13757 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13758 sed -e "$ac_comsub
13759 s%@configure_input@%$configure_input%g
13760 s%@srcdir@%$srcdir%g
13761 s%@top_srcdir@%$top_srcdir%g
13762 s%@INSTALL@%$INSTALL%g
13763 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
13764 fi; done
13765 rm -f conftest.s*
13767 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13768 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13770 # ac_d sets the value in "#define NAME VALUE" lines.
13771 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13772 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
13773 ac_dC='\3'
13774 ac_dD='%g'
13775 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
13776 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13777 ac_uB='\([ ]\)%\1#\2define\3'
13778 ac_uC=' '
13779 ac_uD='\4%g'
13780 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13781 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13782 ac_eB='$%\1#\2define\3'
13783 ac_eC=' '
13784 ac_eD='%g'
13786 if test "${CONFIG_HEADERS+set}" != set; then
13788 cat >> $CONFIG_STATUS <<EOF
13789 CONFIG_HEADERS="include/config.h"
13791 cat >> $CONFIG_STATUS <<\EOF
13793 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
13794 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13795 case "$ac_file" in
13796 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13797 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13798 *) ac_file_in="${ac_file}.in" ;;
13799 esac
13801 echo creating $ac_file
13803 rm -f conftest.frag conftest.in conftest.out
13804 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13805 cat $ac_file_inputs > conftest.in
13809 # Transform confdefs.h into a sed script conftest.vals that substitutes
13810 # the proper values into config.h.in to produce config.h. And first:
13811 # Protect against being on the right side of a sed subst in config.status.
13812 # Protect against being in an unquoted here document in config.status.
13813 rm -f conftest.vals
13814 cat > conftest.hdr <<\EOF
13815 s/[\\&%]/\\&/g
13816 s%[\\$`]%\\&%g
13817 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
13818 s%ac_d%ac_u%gp
13819 s%ac_u%ac_e%gp
13821 sed -n -f conftest.hdr confdefs.h > conftest.vals
13822 rm -f conftest.hdr
13824 # This sed command replaces #undef with comments. This is necessary, for
13825 # example, in the case of _POSIX_SOURCE, which is predefined and required
13826 # on some systems where configure will not decide to define it.
13827 cat >> conftest.vals <<\EOF
13828 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
13831 # Break up conftest.vals because some shells have a limit on
13832 # the size of here documents, and old seds have small limits too.
13834 rm -f conftest.tail
13835 while :
13837 ac_lines=`grep -c . conftest.vals`
13838 # grep -c gives empty output for an empty file on some AIX systems.
13839 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
13840 # Write a limited-size here document to conftest.frag.
13841 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
13842 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
13843 echo 'CEOF
13844 sed -f conftest.frag conftest.in > conftest.out
13845 rm -f conftest.in
13846 mv conftest.out conftest.in
13847 ' >> $CONFIG_STATUS
13848 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
13849 rm -f conftest.vals
13850 mv conftest.tail conftest.vals
13851 done
13852 rm -f conftest.vals
13854 cat >> $CONFIG_STATUS <<\EOF
13855 rm -f conftest.frag conftest.h
13856 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
13857 cat conftest.in >> conftest.h
13858 rm -f conftest.in
13859 if cmp -s $ac_file conftest.h 2>/dev/null; then
13860 echo "$ac_file is unchanged"
13861 rm -f conftest.h
13862 else
13863 # Remove last slash and all that follows it. Not all systems have dirname.
13864 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13865 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13866 # The file is in a subdirectory.
13867 test ! -d "$ac_dir" && mkdir "$ac_dir"
13869 rm -f $ac_file
13870 mv conftest.h $ac_file
13872 fi; done
13875 cat >> $CONFIG_STATUS <<EOF
13878 cat >> $CONFIG_STATUS <<\EOF
13880 exit 0
13882 chmod +x $CONFIG_STATUS
13883 rm -fr confdefs* $ac_clean_files
13884 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1