Fixes from David Lee for utmp handling.
[Samba.git] / source / configure
blob5a8b90ecd1b28015cbec03ecbc3931f110ff42de
1 #! /bin/sh
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_default_prefix=/usr/local/samba
15 ac_help="$ac_help
16 --enable-shared[=PKGS] build shared libraries [default=yes]"
17 ac_help="$ac_help
18 --enable-static[=PKGS] build static libraries [default=yes]"
19 ac_help="$ac_help
20 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
21 ac_help="$ac_help
22 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
23 ac_help="$ac_help
24 --disable-libtool-lock avoid locking (might break parallel builds)"
25 ac_help="$ac_help
26 --with-smbwrapper Include SMB wrapper support
27 --without-smbwrapper Don't include SMB wrapper support (default)"
28 ac_help="$ac_help
29 --with-afs Include AFS support
30 --without-afs Don't include AFS support (default)"
31 ac_help="$ac_help
32 --with-dfs Include DFS support
33 --without-dfs Don't include DFS support (default)"
34 ac_help="$ac_help
35 --with-krb4=base-dir Include Kerberos IV support
36 --without-krb4 Don't include Kerberos IV support (default)"
37 ac_help="$ac_help
38 --with-krb5=base-dir Include Kerberos 5 support
39 --without-krb5 Don't include Kerberos 5 support (default)"
40 ac_help="$ac_help
41 --with-automount Include AUTOMOUNT support
42 --without-automount Don't include AUTOMOUNT support (default)"
43 ac_help="$ac_help
44 --with-smbmount Include SMBMOUNT (Linux only) support
45 --without-smbmount Don't include SMBMOUNT support (default)"
46 ac_help="$ac_help
47 --with-pam Include PAM password database support
48 --without-pam Don't include PAM password database support (default)"
49 ac_help="$ac_help
50 --with-ldap Include LDAP support
51 --without-ldap Don't include LDAP support (default)"
52 ac_help="$ac_help
53 --with-nisplus Include NISPLUS password database support
54 --without-nisplus Don't include NISPLUS password database support (default)"
55 ac_help="$ac_help
56 --with-nisplus-home Include NISPLUS_HOME support
57 --without-nisplus-home Don't include NISPLUS_HOME support (default)"
58 ac_help="$ac_help
59 --with-ssl Include SSL support
60 --without-ssl Don't include SSL support (default)
61 --with-sslinc=DIR Where the SSL includes are (defaults to /usr/local/ssl)"
62 ac_help="$ac_help
63 --with-syslog Include experimental SYSLOG support
64 --without-syslog Don't include SYSLOG support (default)"
65 ac_help="$ac_help
66 --with-profile Include profile support
67 --without-profile Don't include profile support (default)"
68 ac_help="$ac_help
69 --with-netatalk Include experimental Netatalk support
70 --without-netatalk Don't include experimental Netatalk support (default)"
71 ac_help="$ac_help
72 --with-quotas Include experimental disk-quota support
73 --without-quotas Don't include experimental disk-quota support (default)"
74 ac_help="$ac_help
75 --with-utmp Include experimental utmp accounting
76 --without-utmp Don't include experimental utmp accounting (default)"
77 ac_help="$ac_help
78 --with-msdfs Include MS Dfs support
79 --without-msdfs Don't include MS Dfs support (default)"
80 ac_help="$ac_help
81 --with-vfs Include Samba vfs support
82 --without-vfs Don't include Samba vfs support (default)"
83 ac_help="$ac_help
84 --with-privatedir=DIR Where to put smbpasswd ($ac_default_prefix/private)"
85 ac_help="$ac_help
86 --with-lockdir=DIR Where to put lock files ($ac_default_prefix/var/locks)"
87 ac_help="$ac_help
88 --with-swatdir=DIR Where to put SWAT files ($ac_default_prefix/swat)"
90 # Initialize some variables set by options.
91 # The variables have the same names as the options, with
92 # dashes changed to underlines.
93 build=NONE
94 cache_file=./config.cache
95 exec_prefix=NONE
96 host=NONE
97 no_create=
98 nonopt=NONE
99 no_recursion=
100 prefix=NONE
101 program_prefix=NONE
102 program_suffix=NONE
103 program_transform_name=s,x,x,
104 silent=
105 site=
106 srcdir=
107 target=NONE
108 verbose=
109 x_includes=NONE
110 x_libraries=NONE
111 bindir='${exec_prefix}/bin'
112 sbindir='${exec_prefix}/sbin'
113 libexecdir='${exec_prefix}/libexec'
114 datadir='${prefix}/share'
115 sysconfdir='${prefix}/etc'
116 sharedstatedir='${prefix}/com'
117 localstatedir='${prefix}/var'
118 libdir='${exec_prefix}/lib'
119 includedir='${prefix}/include'
120 oldincludedir='/usr/include'
121 infodir='${prefix}/info'
122 mandir='${prefix}/man'
124 # Initialize some other variables.
125 subdirs=
126 MFLAGS= MAKEFLAGS=
127 SHELL=${CONFIG_SHELL-/bin/sh}
128 # Maximum number of lines to put in a shell here document.
129 ac_max_here_lines=12
131 ac_prev=
132 for ac_option
135 # If the previous option needs an argument, assign it.
136 if test -n "$ac_prev"; then
137 eval "$ac_prev=\$ac_option"
138 ac_prev=
139 continue
142 case "$ac_option" in
143 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
144 *) ac_optarg= ;;
145 esac
147 # Accept the important Cygnus configure options, so we can diagnose typos.
149 case "$ac_option" in
151 -bindir | --bindir | --bindi | --bind | --bin | --bi)
152 ac_prev=bindir ;;
153 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
154 bindir="$ac_optarg" ;;
156 -build | --build | --buil | --bui | --bu)
157 ac_prev=build ;;
158 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
159 build="$ac_optarg" ;;
161 -cache-file | --cache-file | --cache-fil | --cache-fi \
162 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
163 ac_prev=cache_file ;;
164 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
165 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
166 cache_file="$ac_optarg" ;;
168 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
169 ac_prev=datadir ;;
170 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
171 | --da=*)
172 datadir="$ac_optarg" ;;
174 -disable-* | --disable-*)
175 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
176 # Reject names that are not valid shell variable names.
177 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
178 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
180 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
181 eval "enable_${ac_feature}=no" ;;
183 -enable-* | --enable-*)
184 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
185 # Reject names that are not valid shell variable names.
186 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
187 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
189 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
190 case "$ac_option" in
191 *=*) ;;
192 *) ac_optarg=yes ;;
193 esac
194 eval "enable_${ac_feature}='$ac_optarg'" ;;
196 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
197 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
198 | --exec | --exe | --ex)
199 ac_prev=exec_prefix ;;
200 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
201 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
202 | --exec=* | --exe=* | --ex=*)
203 exec_prefix="$ac_optarg" ;;
205 -gas | --gas | --ga | --g)
206 # Obsolete; use --with-gas.
207 with_gas=yes ;;
209 -help | --help | --hel | --he)
210 # Omit some internal or obsolete options to make the list less imposing.
211 # This message is too long to be a string in the A/UX 3.1 sh.
212 cat << EOF
213 Usage: configure [options] [host]
214 Options: [defaults in brackets after descriptions]
215 Configuration:
216 --cache-file=FILE cache test results in FILE
217 --help print this message
218 --no-create do not create output files
219 --quiet, --silent do not print \`checking...' messages
220 --version print the version of autoconf that created configure
221 Directory and file names:
222 --prefix=PREFIX install architecture-independent files in PREFIX
223 [$ac_default_prefix]
224 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
225 [same as prefix]
226 --bindir=DIR user executables in DIR [EPREFIX/bin]
227 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
228 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
229 --datadir=DIR read-only architecture-independent data in DIR
230 [PREFIX/share]
231 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
232 --sharedstatedir=DIR modifiable architecture-independent data in DIR
233 [PREFIX/com]
234 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
235 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
236 --includedir=DIR C header files in DIR [PREFIX/include]
237 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
238 --infodir=DIR info documentation in DIR [PREFIX/info]
239 --mandir=DIR man documentation in DIR [PREFIX/man]
240 --srcdir=DIR find the sources in DIR [configure dir or ..]
241 --program-prefix=PREFIX prepend PREFIX to installed program names
242 --program-suffix=SUFFIX append SUFFIX to installed program names
243 --program-transform-name=PROGRAM
244 run sed PROGRAM on installed program names
246 cat << EOF
247 Host type:
248 --build=BUILD configure for building on BUILD [BUILD=HOST]
249 --host=HOST configure for HOST [guessed]
250 --target=TARGET configure for TARGET [TARGET=HOST]
251 Features and packages:
252 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
253 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
254 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
255 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
256 --x-includes=DIR X include files are in DIR
257 --x-libraries=DIR X library files are in DIR
259 if test -n "$ac_help"; then
260 echo "--enable and --with options recognized:$ac_help"
262 exit 0 ;;
264 -host | --host | --hos | --ho)
265 ac_prev=host ;;
266 -host=* | --host=* | --hos=* | --ho=*)
267 host="$ac_optarg" ;;
269 -includedir | --includedir | --includedi | --included | --include \
270 | --includ | --inclu | --incl | --inc)
271 ac_prev=includedir ;;
272 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
273 | --includ=* | --inclu=* | --incl=* | --inc=*)
274 includedir="$ac_optarg" ;;
276 -infodir | --infodir | --infodi | --infod | --info | --inf)
277 ac_prev=infodir ;;
278 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
279 infodir="$ac_optarg" ;;
281 -libdir | --libdir | --libdi | --libd)
282 ac_prev=libdir ;;
283 -libdir=* | --libdir=* | --libdi=* | --libd=*)
284 libdir="$ac_optarg" ;;
286 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
287 | --libexe | --libex | --libe)
288 ac_prev=libexecdir ;;
289 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
290 | --libexe=* | --libex=* | --libe=*)
291 libexecdir="$ac_optarg" ;;
293 -localstatedir | --localstatedir | --localstatedi | --localstated \
294 | --localstate | --localstat | --localsta | --localst \
295 | --locals | --local | --loca | --loc | --lo)
296 ac_prev=localstatedir ;;
297 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
298 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
299 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
300 localstatedir="$ac_optarg" ;;
302 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
303 ac_prev=mandir ;;
304 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
305 mandir="$ac_optarg" ;;
307 -nfp | --nfp | --nf)
308 # Obsolete; use --without-fp.
309 with_fp=no ;;
311 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
312 | --no-cr | --no-c)
313 no_create=yes ;;
315 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
316 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
317 no_recursion=yes ;;
319 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
320 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
321 | --oldin | --oldi | --old | --ol | --o)
322 ac_prev=oldincludedir ;;
323 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
324 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
325 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
326 oldincludedir="$ac_optarg" ;;
328 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
329 ac_prev=prefix ;;
330 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
331 prefix="$ac_optarg" ;;
333 -program-prefix | --program-prefix | --program-prefi | --program-pref \
334 | --program-pre | --program-pr | --program-p)
335 ac_prev=program_prefix ;;
336 -program-prefix=* | --program-prefix=* | --program-prefi=* \
337 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
338 program_prefix="$ac_optarg" ;;
340 -program-suffix | --program-suffix | --program-suffi | --program-suff \
341 | --program-suf | --program-su | --program-s)
342 ac_prev=program_suffix ;;
343 -program-suffix=* | --program-suffix=* | --program-suffi=* \
344 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
345 program_suffix="$ac_optarg" ;;
347 -program-transform-name | --program-transform-name \
348 | --program-transform-nam | --program-transform-na \
349 | --program-transform-n | --program-transform- \
350 | --program-transform | --program-transfor \
351 | --program-transfo | --program-transf \
352 | --program-trans | --program-tran \
353 | --progr-tra | --program-tr | --program-t)
354 ac_prev=program_transform_name ;;
355 -program-transform-name=* | --program-transform-name=* \
356 | --program-transform-nam=* | --program-transform-na=* \
357 | --program-transform-n=* | --program-transform-=* \
358 | --program-transform=* | --program-transfor=* \
359 | --program-transfo=* | --program-transf=* \
360 | --program-trans=* | --program-tran=* \
361 | --progr-tra=* | --program-tr=* | --program-t=*)
362 program_transform_name="$ac_optarg" ;;
364 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
365 | -silent | --silent | --silen | --sile | --sil)
366 silent=yes ;;
368 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
369 ac_prev=sbindir ;;
370 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
371 | --sbi=* | --sb=*)
372 sbindir="$ac_optarg" ;;
374 -sharedstatedir | --sharedstatedir | --sharedstatedi \
375 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
376 | --sharedst | --shareds | --shared | --share | --shar \
377 | --sha | --sh)
378 ac_prev=sharedstatedir ;;
379 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
380 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
381 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
382 | --sha=* | --sh=*)
383 sharedstatedir="$ac_optarg" ;;
385 -site | --site | --sit)
386 ac_prev=site ;;
387 -site=* | --site=* | --sit=*)
388 site="$ac_optarg" ;;
390 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
391 ac_prev=srcdir ;;
392 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
393 srcdir="$ac_optarg" ;;
395 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
396 | --syscon | --sysco | --sysc | --sys | --sy)
397 ac_prev=sysconfdir ;;
398 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
399 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
400 sysconfdir="$ac_optarg" ;;
402 -target | --target | --targe | --targ | --tar | --ta | --t)
403 ac_prev=target ;;
404 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
405 target="$ac_optarg" ;;
407 -v | -verbose | --verbose | --verbos | --verbo | --verb)
408 verbose=yes ;;
410 -version | --version | --versio | --versi | --vers)
411 echo "configure generated by autoconf version 2.13"
412 exit 0 ;;
414 -with-* | --with-*)
415 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
416 # Reject names that are not valid shell variable names.
417 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
418 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
420 ac_package=`echo $ac_package| sed 's/-/_/g'`
421 case "$ac_option" in
422 *=*) ;;
423 *) ac_optarg=yes ;;
424 esac
425 eval "with_${ac_package}='$ac_optarg'" ;;
427 -without-* | --without-*)
428 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
429 # Reject names that are not valid shell variable names.
430 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
431 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
433 ac_package=`echo $ac_package| sed 's/-/_/g'`
434 eval "with_${ac_package}=no" ;;
436 --x)
437 # Obsolete; use --with-x.
438 with_x=yes ;;
440 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
441 | --x-incl | --x-inc | --x-in | --x-i)
442 ac_prev=x_includes ;;
443 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
444 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
445 x_includes="$ac_optarg" ;;
447 -x-libraries | --x-libraries | --x-librarie | --x-librari \
448 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
449 ac_prev=x_libraries ;;
450 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
451 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
452 x_libraries="$ac_optarg" ;;
454 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
458 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
459 echo "configure: warning: $ac_option: invalid host type" 1>&2
461 if test "x$nonopt" != xNONE; then
462 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
464 nonopt="$ac_option"
467 esac
468 done
470 if test -n "$ac_prev"; then
471 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
474 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
476 # File descriptor usage:
477 # 0 standard input
478 # 1 file creation
479 # 2 errors and warnings
480 # 3 some systems may open it to /dev/tty
481 # 4 used on the Kubota Titan
482 # 6 checking for... messages and results
483 # 5 compiler messages saved in config.log
484 if test "$silent" = yes; then
485 exec 6>/dev/null
486 else
487 exec 6>&1
489 exec 5>./config.log
491 echo "\
492 This file contains any messages produced by compilers while
493 running configure, to aid debugging if configure makes a mistake.
494 " 1>&5
496 # Strip out --no-create and --no-recursion so they do not pile up.
497 # Also quote any args containing shell metacharacters.
498 ac_configure_args=
499 for ac_arg
501 case "$ac_arg" in
502 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
503 | --no-cr | --no-c) ;;
504 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
505 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
506 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
507 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
508 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
509 esac
510 done
512 # NLS nuisances.
513 # Only set these to C if already set. These must not be set unconditionally
514 # because not all systems understand e.g. LANG=C (notably SCO).
515 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
516 # Non-C LC_CTYPE values break the ctype check.
517 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
518 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
519 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
520 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
522 # confdefs.h avoids OS command line length limits that DEFS can exceed.
523 rm -rf conftest* confdefs.h
524 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
525 echo > confdefs.h
527 # A filename unique to this package, relative to the directory that
528 # configure is in, which we can look for to find out if srcdir is correct.
529 ac_unique_file=include/includes.h
531 # Find the source files, if location was not specified.
532 if test -z "$srcdir"; then
533 ac_srcdir_defaulted=yes
534 # Try the directory containing this script, then its parent.
535 ac_prog=$0
536 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
537 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
538 srcdir=$ac_confdir
539 if test ! -r $srcdir/$ac_unique_file; then
540 srcdir=..
542 else
543 ac_srcdir_defaulted=no
545 if test ! -r $srcdir/$ac_unique_file; then
546 if test "$ac_srcdir_defaulted" = yes; then
547 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
548 else
549 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
552 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
554 # Prefer explicitly selected file to automatically selected ones.
555 if test -z "$CONFIG_SITE"; then
556 if test "x$prefix" != xNONE; then
557 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
558 else
559 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
562 for ac_site_file in $CONFIG_SITE; do
563 if test -r "$ac_site_file"; then
564 echo "loading site script $ac_site_file"
565 . "$ac_site_file"
567 done
569 if test -r "$cache_file"; then
570 echo "loading cache $cache_file"
571 . $cache_file
572 else
573 echo "creating cache $cache_file"
574 > $cache_file
577 ac_ext=c
578 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
579 ac_cpp='$CPP $CPPFLAGS'
580 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
581 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
582 cross_compiling=$ac_cv_prog_cc_cross
584 ac_exeext=
585 ac_objext=o
586 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
587 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
588 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
589 ac_n= ac_c='
590 ' ac_t=' '
591 else
592 ac_n=-n ac_c= ac_t=
594 else
595 ac_n= ac_c='\c' ac_t=
600 # we want to be compatibe with older versions of Samba
613 # compile with optimisation and without debugging by default
614 CFLAGS=${CFLAGS-"-O"}
616 # Extract the first word of "gcc", so it can be a program name with args.
617 set dummy gcc; ac_word=$2
618 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
619 echo "configure:620: checking for $ac_word" >&5
620 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
621 echo $ac_n "(cached) $ac_c" 1>&6
622 else
623 if test -n "$CC"; then
624 ac_cv_prog_CC="$CC" # Let the user override the test.
625 else
626 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
627 ac_dummy="$PATH"
628 for ac_dir in $ac_dummy; do
629 test -z "$ac_dir" && ac_dir=.
630 if test -f $ac_dir/$ac_word; then
631 ac_cv_prog_CC="gcc"
632 break
634 done
635 IFS="$ac_save_ifs"
638 CC="$ac_cv_prog_CC"
639 if test -n "$CC"; then
640 echo "$ac_t""$CC" 1>&6
641 else
642 echo "$ac_t""no" 1>&6
645 if test -z "$CC"; then
646 # Extract the first word of "cc", so it can be a program name with args.
647 set dummy cc; ac_word=$2
648 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
649 echo "configure:650: checking for $ac_word" >&5
650 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
651 echo $ac_n "(cached) $ac_c" 1>&6
652 else
653 if test -n "$CC"; then
654 ac_cv_prog_CC="$CC" # Let the user override the test.
655 else
656 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
657 ac_prog_rejected=no
658 ac_dummy="$PATH"
659 for ac_dir in $ac_dummy; do
660 test -z "$ac_dir" && ac_dir=.
661 if test -f $ac_dir/$ac_word; then
662 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
663 ac_prog_rejected=yes
664 continue
666 ac_cv_prog_CC="cc"
667 break
669 done
670 IFS="$ac_save_ifs"
671 if test $ac_prog_rejected = yes; then
672 # We found a bogon in the path, so make sure we never use it.
673 set dummy $ac_cv_prog_CC
674 shift
675 if test $# -gt 0; then
676 # We chose a different compiler from the bogus one.
677 # However, it has the same basename, so the bogon will be chosen
678 # first if we set CC to just the basename; use the full file name.
679 shift
680 set dummy "$ac_dir/$ac_word" "$@"
681 shift
682 ac_cv_prog_CC="$@"
687 CC="$ac_cv_prog_CC"
688 if test -n "$CC"; then
689 echo "$ac_t""$CC" 1>&6
690 else
691 echo "$ac_t""no" 1>&6
694 if test -z "$CC"; then
695 case "`uname -s`" in
696 *win32* | *WIN32*)
697 # Extract the first word of "cl", so it can be a program name with args.
698 set dummy cl; ac_word=$2
699 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
700 echo "configure:701: checking for $ac_word" >&5
701 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
702 echo $ac_n "(cached) $ac_c" 1>&6
703 else
704 if test -n "$CC"; then
705 ac_cv_prog_CC="$CC" # Let the user override the test.
706 else
707 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
708 ac_dummy="$PATH"
709 for ac_dir in $ac_dummy; do
710 test -z "$ac_dir" && ac_dir=.
711 if test -f $ac_dir/$ac_word; then
712 ac_cv_prog_CC="cl"
713 break
715 done
716 IFS="$ac_save_ifs"
719 CC="$ac_cv_prog_CC"
720 if test -n "$CC"; then
721 echo "$ac_t""$CC" 1>&6
722 else
723 echo "$ac_t""no" 1>&6
726 esac
728 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
731 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
732 echo "configure:733: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
734 ac_ext=c
735 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
736 ac_cpp='$CPP $CPPFLAGS'
737 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
738 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
739 cross_compiling=$ac_cv_prog_cc_cross
741 cat > conftest.$ac_ext << EOF
743 #line 744 "configure"
744 #include "confdefs.h"
746 main(){return(0);}
748 if { (eval echo configure:749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
749 ac_cv_prog_cc_works=yes
750 # If we can't run a trivial program, we are probably using a cross compiler.
751 if (./conftest; exit) 2>/dev/null; then
752 ac_cv_prog_cc_cross=no
753 else
754 ac_cv_prog_cc_cross=yes
756 else
757 echo "configure: failed program was:" >&5
758 cat conftest.$ac_ext >&5
759 ac_cv_prog_cc_works=no
761 rm -fr conftest*
762 ac_ext=c
763 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
764 ac_cpp='$CPP $CPPFLAGS'
765 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
766 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
767 cross_compiling=$ac_cv_prog_cc_cross
769 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
770 if test $ac_cv_prog_cc_works = no; then
771 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
773 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
774 echo "configure:775: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
775 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
776 cross_compiling=$ac_cv_prog_cc_cross
778 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
779 echo "configure:780: checking whether we are using GNU C" >&5
780 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
781 echo $ac_n "(cached) $ac_c" 1>&6
782 else
783 cat > conftest.c <<EOF
784 #ifdef __GNUC__
785 yes;
786 #endif
788 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:789: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
789 ac_cv_prog_gcc=yes
790 else
791 ac_cv_prog_gcc=no
795 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
797 if test $ac_cv_prog_gcc = yes; then
798 GCC=yes
799 else
800 GCC=
803 ac_test_CFLAGS="${CFLAGS+set}"
804 ac_save_CFLAGS="$CFLAGS"
805 CFLAGS=
806 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
807 echo "configure:808: checking whether ${CC-cc} accepts -g" >&5
808 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
809 echo $ac_n "(cached) $ac_c" 1>&6
810 else
811 echo 'void f(){}' > conftest.c
812 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
813 ac_cv_prog_cc_g=yes
814 else
815 ac_cv_prog_cc_g=no
817 rm -f conftest*
821 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
822 if test "$ac_test_CFLAGS" = set; then
823 CFLAGS="$ac_save_CFLAGS"
824 elif test $ac_cv_prog_cc_g = yes; then
825 if test "$GCC" = yes; then
826 CFLAGS="-g -O2"
827 else
828 CFLAGS="-g"
830 else
831 if test "$GCC" = yes; then
832 CFLAGS="-O2"
833 else
834 CFLAGS=
838 ac_aux_dir=
839 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
840 if test -f $ac_dir/install-sh; then
841 ac_aux_dir=$ac_dir
842 ac_install_sh="$ac_aux_dir/install-sh -c"
843 break
844 elif test -f $ac_dir/install.sh; then
845 ac_aux_dir=$ac_dir
846 ac_install_sh="$ac_aux_dir/install.sh -c"
847 break
849 done
850 if test -z "$ac_aux_dir"; then
851 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
853 ac_config_guess=$ac_aux_dir/config.guess
854 ac_config_sub=$ac_aux_dir/config.sub
855 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
857 # Find a good install program. We prefer a C program (faster),
858 # so one script is as good as another. But avoid the broken or
859 # incompatible versions:
860 # SysV /etc/install, /usr/sbin/install
861 # SunOS /usr/etc/install
862 # IRIX /sbin/install
863 # AIX /bin/install
864 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
865 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
866 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
867 # ./install, which can be erroneously created by make from ./install.sh.
868 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
869 echo "configure:870: checking for a BSD compatible install" >&5
870 if test -z "$INSTALL"; then
871 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
872 echo $ac_n "(cached) $ac_c" 1>&6
873 else
874 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
875 for ac_dir in $PATH; do
876 # Account for people who put trailing slashes in PATH elements.
877 case "$ac_dir/" in
878 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
880 # OSF1 and SCO ODT 3.0 have their own names for install.
881 # Don't use installbsd from OSF since it installs stuff as root
882 # by default.
883 for ac_prog in ginstall scoinst install; do
884 if test -f $ac_dir/$ac_prog; then
885 if test $ac_prog = install &&
886 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
887 # AIX install. It has an incompatible calling convention.
889 else
890 ac_cv_path_install="$ac_dir/$ac_prog -c"
891 break 2
894 done
896 esac
897 done
898 IFS="$ac_save_IFS"
901 if test "${ac_cv_path_install+set}" = set; then
902 INSTALL="$ac_cv_path_install"
903 else
904 # As a last resort, use the slow shell script. We don't cache a
905 # path for INSTALL within a source directory, because that will
906 # break other packages using the cache if that directory is
907 # removed, or if the path is relative.
908 INSTALL="$ac_install_sh"
911 echo "$ac_t""$INSTALL" 1>&6
913 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
914 # It thinks the first close brace ends the variable substitution.
915 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
917 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
919 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
921 for ac_prog in gawk mawk nawk awk
923 # Extract the first word of "$ac_prog", so it can be a program name with args.
924 set dummy $ac_prog; ac_word=$2
925 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
926 echo "configure:927: checking for $ac_word" >&5
927 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
928 echo $ac_n "(cached) $ac_c" 1>&6
929 else
930 if test -n "$AWK"; then
931 ac_cv_prog_AWK="$AWK" # Let the user override the test.
932 else
933 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
934 ac_dummy="$PATH"
935 for ac_dir in $ac_dummy; do
936 test -z "$ac_dir" && ac_dir=.
937 if test -f $ac_dir/$ac_word; then
938 ac_cv_prog_AWK="$ac_prog"
939 break
941 done
942 IFS="$ac_save_ifs"
945 AWK="$ac_cv_prog_AWK"
946 if test -n "$AWK"; then
947 echo "$ac_t""$AWK" 1>&6
948 else
949 echo "$ac_t""no" 1>&6
952 test -n "$AWK" && break
953 done
955 # Check whether --enable-shared or --disable-shared was given.
956 if test "${enable_shared+set}" = set; then
957 enableval="$enable_shared"
958 p=${PACKAGE-default}
959 case "$enableval" in
960 yes) enable_shared=yes ;;
961 no) enable_shared=no ;;
963 enable_shared=no
964 # Look at the argument we got. We use all the common list separators.
965 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
966 for pkg in $enableval; do
967 if test "X$pkg" = "X$p"; then
968 enable_shared=yes
970 done
971 IFS="$ac_save_ifs"
973 esac
974 else
975 enable_shared=yes
978 # Check whether --enable-static or --disable-static was given.
979 if test "${enable_static+set}" = set; then
980 enableval="$enable_static"
981 p=${PACKAGE-default}
982 case "$enableval" in
983 yes) enable_static=yes ;;
984 no) enable_static=no ;;
986 enable_static=no
987 # Look at the argument we got. We use all the common list separators.
988 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
989 for pkg in $enableval; do
990 if test "X$pkg" = "X$p"; then
991 enable_static=yes
993 done
994 IFS="$ac_save_ifs"
996 esac
997 else
998 enable_static=yes
1001 # Check whether --enable-fast-install or --disable-fast-install was given.
1002 if test "${enable_fast_install+set}" = set; then
1003 enableval="$enable_fast_install"
1004 p=${PACKAGE-default}
1005 case "$enableval" in
1006 yes) enable_fast_install=yes ;;
1007 no) enable_fast_install=no ;;
1009 enable_fast_install=no
1010 # Look at the argument we got. We use all the common list separators.
1011 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1012 for pkg in $enableval; do
1013 if test "X$pkg" = "X$p"; then
1014 enable_fast_install=yes
1016 done
1017 IFS="$ac_save_ifs"
1019 esac
1020 else
1021 enable_fast_install=yes
1025 # Make sure we can run config.sub.
1026 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1027 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1030 echo $ac_n "checking host system type""... $ac_c" 1>&6
1031 echo "configure:1032: checking host system type" >&5
1033 host_alias=$host
1034 case "$host_alias" in
1035 NONE)
1036 case $nonopt in
1037 NONE)
1038 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1039 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1040 fi ;;
1041 *) host_alias=$nonopt ;;
1042 esac ;;
1043 esac
1045 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1046 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1047 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1048 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1049 echo "$ac_t""$host" 1>&6
1051 echo $ac_n "checking build system type""... $ac_c" 1>&6
1052 echo "configure:1053: checking build system type" >&5
1054 build_alias=$build
1055 case "$build_alias" in
1056 NONE)
1057 case $nonopt in
1058 NONE) build_alias=$host_alias ;;
1059 *) build_alias=$nonopt ;;
1060 esac ;;
1061 esac
1063 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1064 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1065 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1066 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1067 echo "$ac_t""$build" 1>&6
1069 # Extract the first word of "ranlib", so it can be a program name with args.
1070 set dummy ranlib; ac_word=$2
1071 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1072 echo "configure:1073: checking for $ac_word" >&5
1073 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1074 echo $ac_n "(cached) $ac_c" 1>&6
1075 else
1076 if test -n "$RANLIB"; then
1077 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1078 else
1079 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1080 ac_dummy="$PATH"
1081 for ac_dir in $ac_dummy; do
1082 test -z "$ac_dir" && ac_dir=.
1083 if test -f $ac_dir/$ac_word; then
1084 ac_cv_prog_RANLIB="ranlib"
1085 break
1087 done
1088 IFS="$ac_save_ifs"
1089 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1092 RANLIB="$ac_cv_prog_RANLIB"
1093 if test -n "$RANLIB"; then
1094 echo "$ac_t""$RANLIB" 1>&6
1095 else
1096 echo "$ac_t""no" 1>&6
1099 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1100 if test "${with_gnu_ld+set}" = set; then
1101 withval="$with_gnu_ld"
1102 test "$withval" = no || with_gnu_ld=yes
1103 else
1104 with_gnu_ld=no
1107 ac_prog=ld
1108 if test "$ac_cv_prog_gcc" = yes; then
1109 # Check if gcc -print-prog-name=ld gives a path.
1110 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1111 echo "configure:1112: checking for ld used by GCC" >&5
1112 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1113 case "$ac_prog" in
1114 # Accept absolute paths.
1115 [\\/]* | [A-Za-z]:[\\/]*)
1116 re_direlt='/[^/][^/]*/\.\./'
1117 # Canonicalize the path of ld
1118 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1119 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1120 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1121 done
1122 test -z "$LD" && LD="$ac_prog"
1125 # If it fails, then pretend we aren't using GCC.
1126 ac_prog=ld
1129 # If it is relative, then search for the first ld in PATH.
1130 with_gnu_ld=unknown
1132 esac
1133 elif test "$with_gnu_ld" = yes; then
1134 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1135 echo "configure:1136: checking for GNU ld" >&5
1136 else
1137 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1138 echo "configure:1139: checking for non-GNU ld" >&5
1140 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1141 echo $ac_n "(cached) $ac_c" 1>&6
1142 else
1143 if test -z "$LD"; then
1144 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1145 for ac_dir in $PATH; do
1146 test -z "$ac_dir" && ac_dir=.
1147 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1148 ac_cv_path_LD="$ac_dir/$ac_prog"
1149 # Check to see if the program is GNU ld. I'd rather use --version,
1150 # but apparently some GNU ld's only accept -v.
1151 # Break only if it was the GNU/non-GNU ld that we prefer.
1152 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1153 test "$with_gnu_ld" != no && break
1154 else
1155 test "$with_gnu_ld" != yes && break
1158 done
1159 IFS="$ac_save_ifs"
1160 else
1161 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1165 LD="$ac_cv_path_LD"
1166 if test -n "$LD"; then
1167 echo "$ac_t""$LD" 1>&6
1168 else
1169 echo "$ac_t""no" 1>&6
1171 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1172 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1173 echo "configure:1174: checking if the linker ($LD) is GNU ld" >&5
1174 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1175 echo $ac_n "(cached) $ac_c" 1>&6
1176 else
1177 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1178 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1179 ac_cv_prog_gnu_ld=yes
1180 else
1181 ac_cv_prog_gnu_ld=no
1185 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1188 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1189 echo "configure:1190: checking for BSD-compatible nm" >&5
1190 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1191 echo $ac_n "(cached) $ac_c" 1>&6
1192 else
1193 if test -n "$NM"; then
1194 # Let the user override the test.
1195 ac_cv_path_NM="$NM"
1196 else
1197 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1198 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1199 test -z "$ac_dir" && ac_dir=.
1200 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
1201 # Check to see if the nm accepts a BSD-compat flag.
1202 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1203 # nm: unknown option "B" ignored
1204 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1205 ac_cv_path_NM="$ac_dir/nm -B"
1206 break
1207 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1208 ac_cv_path_NM="$ac_dir/nm -p"
1209 break
1210 else
1211 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1212 continue # so that we can try to find one that supports BSD flags
1215 done
1216 IFS="$ac_save_ifs"
1217 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1221 NM="$ac_cv_path_NM"
1222 echo "$ac_t""$NM" 1>&6
1224 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1225 echo "configure:1226: checking whether ln -s works" >&5
1226 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1227 echo $ac_n "(cached) $ac_c" 1>&6
1228 else
1229 rm -f conftestdata
1230 if ln -s X conftestdata 2>/dev/null
1231 then
1232 rm -f conftestdata
1233 ac_cv_prog_LN_S="ln -s"
1234 else
1235 ac_cv_prog_LN_S=ln
1238 LN_S="$ac_cv_prog_LN_S"
1239 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1240 echo "$ac_t""yes" 1>&6
1241 else
1242 echo "$ac_t""no" 1>&6
1246 case "$target" in
1247 NONE) lt_target="$host" ;;
1248 *) lt_target="$target" ;;
1249 esac
1251 # Check for any special flags to pass to ltconfig.
1252 libtool_flags="--cache-file=$cache_file"
1253 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1254 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1255 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1256 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1257 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1260 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1261 if test "${enable_libtool_lock+set}" = set; then
1262 enableval="$enable_libtool_lock"
1266 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1267 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1269 # Some flags need to be propagated to the compiler or linker for good
1270 # libtool support.
1271 case "$lt_target" in
1272 *-*-irix6*)
1273 # Find out which ABI we are using.
1274 echo '#line 1275 "configure"' > conftest.$ac_ext
1275 if { (eval echo configure:1276: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1276 case "`/usr/bin/file conftest.o`" in
1277 *32-bit*)
1278 LD="${LD-ld} -32"
1280 *N32*)
1281 LD="${LD-ld} -n32"
1283 *64-bit*)
1284 LD="${LD-ld} -64"
1286 esac
1288 rm -rf conftest*
1291 *-*-sco3.2v5*)
1292 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1293 SAVE_CFLAGS="$CFLAGS"
1294 CFLAGS="$CFLAGS -belf"
1295 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1296 echo "configure:1297: checking whether the C compiler needs -belf" >&5
1297 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1298 echo $ac_n "(cached) $ac_c" 1>&6
1299 else
1300 cat > conftest.$ac_ext <<EOF
1301 #line 1302 "configure"
1302 #include "confdefs.h"
1304 int main() {
1306 ; return 0; }
1308 if { (eval echo configure:1309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1309 rm -rf conftest*
1310 lt_cv_cc_needs_belf=yes
1311 else
1312 echo "configure: failed program was:" >&5
1313 cat conftest.$ac_ext >&5
1314 rm -rf conftest*
1315 lt_cv_cc_needs_belf=no
1317 rm -f conftest*
1320 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1321 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1322 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1323 CFLAGS="$SAVE_CFLAGS"
1328 esac
1331 # Save cache, so that ltconfig can load it
1332 cat > confcache <<\EOF
1333 # This file is a shell script that caches the results of configure
1334 # tests run on this system so they can be shared between configure
1335 # scripts and configure runs. It is not useful on other systems.
1336 # If it contains results you don't want to keep, you may remove or edit it.
1338 # By default, configure uses ./config.cache as the cache file,
1339 # creating it if it does not exist already. You can give configure
1340 # the --cache-file=FILE option to use a different cache file; that is
1341 # what configure does when it calls configure scripts in
1342 # subdirectories, so they share the cache.
1343 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1344 # config.status only pays attention to the cache file if you give it the
1345 # --recheck option to rerun configure.
1348 # The following way of writing the cache mishandles newlines in values,
1349 # but we know of no workaround that is simple, portable, and efficient.
1350 # So, don't put newlines in cache variables' values.
1351 # Ultrix sh set writes to stderr and can't be redirected directly,
1352 # and sets the high bit in the cache file unless we assign to the vars.
1353 (set) 2>&1 |
1354 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1355 *ac_space=\ *)
1356 # `set' does not quote correctly, so add quotes (double-quote substitution
1357 # turns \\\\ into \\, and sed turns \\ into \).
1358 sed -n \
1359 -e "s/'/'\\\\''/g" \
1360 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1363 # `set' quotes correctly as required by POSIX, so do not add quotes.
1364 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1366 esac >> confcache
1367 if cmp -s $cache_file confcache; then
1369 else
1370 if test -w $cache_file; then
1371 echo "updating cache $cache_file"
1372 cat confcache > $cache_file
1373 else
1374 echo "not updating unwritable cache $cache_file"
1377 rm -f confcache
1380 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1381 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1382 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
1383 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
1384 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
1385 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
1386 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
1387 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1389 # Reload cache, that may have been modified by ltconfig
1390 if test -r "$cache_file"; then
1391 echo "loading cache $cache_file"
1392 . $cache_file
1393 else
1394 echo "creating cache $cache_file"
1395 > $cache_file
1399 # This can be used to rebuild libtool when needed
1400 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1402 # Always use our own libtool.
1403 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1405 # Redirect the config.log output again, so that the ltconfig log is not
1406 # clobbered by the next message.
1407 exec 5>>./config.log
1411 if test "x$CC" != xcc; then
1412 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1413 echo "configure:1414: checking whether $CC and cc understand -c and -o together" >&5
1414 else
1415 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1416 echo "configure:1417: checking whether cc understands -c and -o together" >&5
1418 set dummy $CC; ac_cc="`echo $2 |
1419 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1420 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1421 echo $ac_n "(cached) $ac_c" 1>&6
1422 else
1423 echo 'foo(){}' > conftest.c
1424 # Make sure it works both with $CC and with simple cc.
1425 # We do the test twice because some compilers refuse to overwrite an
1426 # existing .o file with -o, though they will create one.
1427 ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1428 if { (eval echo configure:1429: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1429 test -f conftest.o && { (eval echo configure:1430: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1430 then
1431 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
1432 if test "x$CC" != xcc; then
1433 # Test first that cc exists at all.
1434 if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:1435: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1435 ac_try='cc -c conftest.c -o conftest.o 1>&5'
1436 if { (eval echo configure:1437: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1437 test -f conftest.o && { (eval echo configure:1438: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1438 then
1439 # cc works too.
1441 else
1442 # cc exists but doesn't like -o.
1443 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1447 else
1448 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1450 rm -f conftest*
1453 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1454 echo "$ac_t""yes" 1>&6
1455 else
1456 echo "$ac_t""no" 1>&6
1457 cat >> confdefs.h <<\EOF
1458 #define NO_MINUS_C_MINUS_O 1
1463 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1464 BROKEN_CC=
1465 else
1466 BROKEN_CC=#
1470 echo $ac_n "checking that the C compiler understands volatile""... $ac_c" 1>&6
1471 echo "configure:1472: checking that the C compiler understands volatile" >&5
1472 if eval "test \"`echo '$''{'samba_cv_volatile'+set}'`\" = set"; then
1473 echo $ac_n "(cached) $ac_c" 1>&6
1474 else
1476 cat > conftest.$ac_ext <<EOF
1477 #line 1478 "configure"
1478 #include "confdefs.h"
1479 #include <sys/types.h>
1480 int main() {
1481 volatile int i = 0
1482 ; return 0; }
1484 if { (eval echo configure:1485: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1485 rm -rf conftest*
1486 samba_cv_volatile=yes
1487 else
1488 echo "configure: failed program was:" >&5
1489 cat conftest.$ac_ext >&5
1490 rm -rf conftest*
1491 samba_cv_volatile=no
1493 rm -f conftest*
1496 echo "$ac_t""$samba_cv_volatile" 1>&6
1497 if test x"$samba_cv_volatile" = x"yes"; then
1498 cat >> confdefs.h <<\EOF
1499 #define HAVE_VOLATILE 1
1507 # Do some error checking and defaulting for the host and target type.
1508 # The inputs are:
1509 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1511 # The rules are:
1512 # 1. You are not allowed to specify --host, --target, and nonopt at the
1513 # same time.
1514 # 2. Host defaults to nonopt.
1515 # 3. If nonopt is not specified, then host defaults to the current host,
1516 # as determined by config.guess.
1517 # 4. Target and build default to nonopt.
1518 # 5. If nonopt is not specified, then target and build default to host.
1520 # The aliases save the names the user supplied, while $host etc.
1521 # will get canonicalized.
1522 case $host---$target---$nonopt in
1523 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1524 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1525 esac
1528 # Make sure we can run config.sub.
1529 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1530 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1533 echo $ac_n "checking host system type""... $ac_c" 1>&6
1534 echo "configure:1535: checking host system type" >&5
1536 host_alias=$host
1537 case "$host_alias" in
1538 NONE)
1539 case $nonopt in
1540 NONE)
1541 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1542 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1543 fi ;;
1544 *) host_alias=$nonopt ;;
1545 esac ;;
1546 esac
1548 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1549 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1550 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1551 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1552 echo "$ac_t""$host" 1>&6
1554 echo $ac_n "checking target system type""... $ac_c" 1>&6
1555 echo "configure:1556: checking target system type" >&5
1557 target_alias=$target
1558 case "$target_alias" in
1559 NONE)
1560 case $nonopt in
1561 NONE) target_alias=$host_alias ;;
1562 *) target_alias=$nonopt ;;
1563 esac ;;
1564 esac
1566 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1567 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1568 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1569 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1570 echo "$ac_t""$target" 1>&6
1572 echo $ac_n "checking build system type""... $ac_c" 1>&6
1573 echo "configure:1574: checking build system type" >&5
1575 build_alias=$build
1576 case "$build_alias" in
1577 NONE)
1578 case $nonopt in
1579 NONE) build_alias=$host_alias ;;
1580 *) build_alias=$nonopt ;;
1581 esac ;;
1582 esac
1584 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1585 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1586 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1587 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1588 echo "$ac_t""$build" 1>&6
1590 test "$host_alias" != "$target_alias" &&
1591 test "$program_prefix$program_suffix$program_transform_name" = \
1592 NONENONEs,x,x, &&
1593 program_prefix=${target_alias}-
1596 case "$host_os" in
1597 *irix*) cat >> confdefs.h <<\EOF
1598 #include <standards.h>
1602 esac
1606 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
1607 echo "configure:1608: checking config.cache system type" >&5
1608 if { test x"${ac_cv_host_system_type+set}" = x"set" &&
1609 test x"$ac_cv_host_system_type" != x"$host"; } ||
1610 { test x"${ac_cv_build_system_type+set}" = x"set" &&
1611 test x"$ac_cv_build_system_type" != x"$build"; } ||
1612 { test x"${ac_cv_target_system_type+set}" = x"set" &&
1613 test x"$ac_cv_target_system_type" != x"$target"; }; then
1614 echo "$ac_t""different" 1>&6
1615 { echo "configure: error: "you must remove config.cache and restart configure"" 1>&2; exit 1; }
1616 else
1617 echo "$ac_t""same" 1>&6
1619 ac_cv_host_system_type="$host"
1620 ac_cv_build_system_type="$build"
1621 ac_cv_target_system_type="$target"
1625 # Config CPPFLAG settings for strange OS's that must be set
1626 # before other tests.
1628 case "$host_os" in
1629 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1630 *hpux*)
1631 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1632 echo "configure:1633: checking whether ${CC-cc} accepts -Ae" >&5
1633 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1634 echo $ac_n "(cached) $ac_c" 1>&6
1635 else
1636 echo 'void f(){}' > conftest.c
1637 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1638 ac_cv_prog_cc_Ae=yes
1639 else
1640 ac_cv_prog_cc_Ae=no
1642 rm -f conftest*
1646 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1647 if test $ac_cv_prog_cc_Ae = yes; then
1648 CPPFLAGS="$CPPFLAGS -Ae"
1651 # Defines needed for HPUX support.
1652 # HPUX has bigcrypt but (sometimes?) doesn't use it for
1653 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
1655 case `uname -r` in
1656 *9*|*10*)
1657 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE"
1658 cat >> confdefs.h <<\EOF
1659 #define USE_BOTH_CRYPT_CALLS 1
1663 *11*)
1664 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE"
1665 cat >> confdefs.h <<\EOF
1666 #define USE_BOTH_CRYPT_CALLS 1
1670 esac
1673 # AIX4.x doesn't even admit to having large
1674 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1676 *aix4*)
1677 echo "$ac_t""enabling large file support" 1>&6
1678 CPPFLAGS="$CPPFLAGS -D_LARGE_FILES"
1681 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
1682 # to the existance of large files..
1683 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
1684 # recommendations on large file support, however it makes the
1685 # compile work using gcc 2.7 and 2.8, whereas using the Sun
1686 # recommendation makes the compile fail on gcc2.7. JRA.
1688 *solaris*)
1689 case `uname -r` in
1690 5.6*|5.7*)
1691 echo "$ac_t""enabling large file support" 1>&6
1692 if test "$ac_cv_prog_gcc" = yes; then
1693 ${CC-cc} -v >conftest.c 2>&1
1694 ac_cv_gcc_compiler_version_number=`grep 'gcc version' conftest.c`
1695 rm -fr conftest.c
1696 case "$ac_cv_gcc_compiler_version_number" in
1697 *"gcc version 2.6"*|*"gcc version 2.7"*)
1698 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
1701 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1703 esac
1704 else
1705 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1708 esac
1711 # Tests needed for SINIX large file support.
1713 *sysv4*)
1714 if test $host = mips-sni-sysv4 ; then
1715 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1716 echo "configure:1717: checking for LFS support" >&5
1717 old_CPPFLAGS="$CPPFLAGS"
1718 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1719 if test "$cross_compiling" = yes; then
1720 SINIX_LFS_SUPPORT=cross
1721 else
1722 cat > conftest.$ac_ext <<EOF
1723 #line 1724 "configure"
1724 #include "confdefs.h"
1726 #include <unistd.h>
1727 main () {
1728 #if _LFS64_LARGEFILE == 1
1729 exit(0);
1730 #else
1731 exit(1);
1732 #endif
1735 if { (eval echo configure:1736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1736 then
1737 SINIX_LFS_SUPPORT=yes
1738 else
1739 echo "configure: failed program was:" >&5
1740 cat conftest.$ac_ext >&5
1741 rm -fr conftest*
1742 SINIX_LFS_SUPPORT=no
1744 rm -fr conftest*
1747 CPPFLAGS="$old_CPPFLAGS"
1748 if test x$SINIX_LFS_SUPPORT = xyes ; then
1749 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1750 CFLAGS="`getconf LFS64_CFLAGS` $CFLAGS"
1751 LDFLAGS="`getconf LFS64_LDFLAGS` $LDFLAGS"
1752 LIBS="`getconf LFS64_LIBS` $LIBS"
1754 echo "$ac_t""$SINIX_LFS_SUPPORT" 1>&6
1759 # Tests needed for glibc 2.1 large file support.
1761 *linux*)
1762 echo "$ac_t""disabling large file support for glibc2.1 on Linux" 1>&6
1764 *hurd*)
1765 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1766 echo "configure:1767: checking for LFS support" >&5
1767 old_CPPFLAGS="$CPPFLAGS"
1768 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1769 if test "$cross_compiling" = yes; then
1770 GLIBC_LFS_SUPPORT=cross
1771 else
1772 cat > conftest.$ac_ext <<EOF
1773 #line 1774 "configure"
1774 #include "confdefs.h"
1776 #include <unistd.h>
1777 main () {
1778 #if _LFS64_LARGEFILE == 1
1779 exit(0);
1780 #else
1781 exit(1);
1782 #endif
1785 if { (eval echo configure:1786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1786 then
1787 GLIBC_LFS_SUPPORT=yes
1788 else
1789 echo "configure: failed program was:" >&5
1790 cat conftest.$ac_ext >&5
1791 rm -fr conftest*
1792 GLIBC_LFS_SUPPORT=no
1794 rm -fr conftest*
1797 CPPFLAGS="$old_CPPFLAGS"
1798 if test x$GLIBC_LFS_SUPPORT = xyes ; then
1799 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1801 echo "$ac_t""$GLIBC_LFS_SUPPORT" 1>&6
1804 esac
1806 echo $ac_n "checking for inline""... $ac_c" 1>&6
1807 echo "configure:1808: checking for inline" >&5
1808 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1809 echo $ac_n "(cached) $ac_c" 1>&6
1810 else
1811 ac_cv_c_inline=no
1812 for ac_kw in inline __inline__ __inline; do
1813 cat > conftest.$ac_ext <<EOF
1814 #line 1815 "configure"
1815 #include "confdefs.h"
1817 int main() {
1818 } $ac_kw foo() {
1819 ; return 0; }
1821 if { (eval echo configure:1822: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1822 rm -rf conftest*
1823 ac_cv_c_inline=$ac_kw; break
1824 else
1825 echo "configure: failed program was:" >&5
1826 cat conftest.$ac_ext >&5
1828 rm -f conftest*
1829 done
1833 echo "$ac_t""$ac_cv_c_inline" 1>&6
1834 case "$ac_cv_c_inline" in
1835 inline | yes) ;;
1836 no) cat >> confdefs.h <<\EOF
1837 #define inline
1840 *) cat >> confdefs.h <<EOF
1841 #define inline $ac_cv_c_inline
1844 esac
1846 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1847 echo "configure:1848: checking how to run the C preprocessor" >&5
1848 # On Suns, sometimes $CPP names a directory.
1849 if test -n "$CPP" && test -d "$CPP"; then
1850 CPP=
1852 if test -z "$CPP"; then
1853 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1854 echo $ac_n "(cached) $ac_c" 1>&6
1855 else
1856 # This must be in double quotes, not single quotes, because CPP may get
1857 # substituted into the Makefile and "${CC-cc}" will confuse make.
1858 CPP="${CC-cc} -E"
1859 # On the NeXT, cc -E runs the code through the compiler's parser,
1860 # not just through cpp.
1861 cat > conftest.$ac_ext <<EOF
1862 #line 1863 "configure"
1863 #include "confdefs.h"
1864 #include <assert.h>
1865 Syntax Error
1867 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1868 { (eval echo configure:1869: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1869 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1870 if test -z "$ac_err"; then
1872 else
1873 echo "$ac_err" >&5
1874 echo "configure: failed program was:" >&5
1875 cat conftest.$ac_ext >&5
1876 rm -rf conftest*
1877 CPP="${CC-cc} -E -traditional-cpp"
1878 cat > conftest.$ac_ext <<EOF
1879 #line 1880 "configure"
1880 #include "confdefs.h"
1881 #include <assert.h>
1882 Syntax Error
1884 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1885 { (eval echo configure:1886: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1886 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1887 if test -z "$ac_err"; then
1889 else
1890 echo "$ac_err" >&5
1891 echo "configure: failed program was:" >&5
1892 cat conftest.$ac_ext >&5
1893 rm -rf conftest*
1894 CPP="${CC-cc} -nologo -E"
1895 cat > conftest.$ac_ext <<EOF
1896 #line 1897 "configure"
1897 #include "confdefs.h"
1898 #include <assert.h>
1899 Syntax Error
1901 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1902 { (eval echo configure:1903: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1903 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1904 if test -z "$ac_err"; then
1906 else
1907 echo "$ac_err" >&5
1908 echo "configure: failed program was:" >&5
1909 cat conftest.$ac_ext >&5
1910 rm -rf conftest*
1911 CPP=/lib/cpp
1913 rm -f conftest*
1915 rm -f conftest*
1917 rm -f conftest*
1918 ac_cv_prog_CPP="$CPP"
1920 CPP="$ac_cv_prog_CPP"
1921 else
1922 ac_cv_prog_CPP="$CPP"
1924 echo "$ac_t""$CPP" 1>&6
1926 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1927 echo "configure:1928: checking for ANSI C header files" >&5
1928 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1929 echo $ac_n "(cached) $ac_c" 1>&6
1930 else
1931 cat > conftest.$ac_ext <<EOF
1932 #line 1933 "configure"
1933 #include "confdefs.h"
1934 #include <stdlib.h>
1935 #include <stdarg.h>
1936 #include <string.h>
1937 #include <float.h>
1939 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1940 { (eval echo configure:1941: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1941 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1942 if test -z "$ac_err"; then
1943 rm -rf conftest*
1944 ac_cv_header_stdc=yes
1945 else
1946 echo "$ac_err" >&5
1947 echo "configure: failed program was:" >&5
1948 cat conftest.$ac_ext >&5
1949 rm -rf conftest*
1950 ac_cv_header_stdc=no
1952 rm -f conftest*
1954 if test $ac_cv_header_stdc = yes; then
1955 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1956 cat > conftest.$ac_ext <<EOF
1957 #line 1958 "configure"
1958 #include "confdefs.h"
1959 #include <string.h>
1961 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1962 egrep "memchr" >/dev/null 2>&1; then
1964 else
1965 rm -rf conftest*
1966 ac_cv_header_stdc=no
1968 rm -f conftest*
1972 if test $ac_cv_header_stdc = yes; then
1973 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1974 cat > conftest.$ac_ext <<EOF
1975 #line 1976 "configure"
1976 #include "confdefs.h"
1977 #include <stdlib.h>
1979 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1980 egrep "free" >/dev/null 2>&1; then
1982 else
1983 rm -rf conftest*
1984 ac_cv_header_stdc=no
1986 rm -f conftest*
1990 if test $ac_cv_header_stdc = yes; then
1991 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1992 if test "$cross_compiling" = yes; then
1994 else
1995 cat > conftest.$ac_ext <<EOF
1996 #line 1997 "configure"
1997 #include "confdefs.h"
1998 #include <ctype.h>
1999 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2000 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2001 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2002 int main () { int i; for (i = 0; i < 256; i++)
2003 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2004 exit (0); }
2007 if { (eval echo configure:2008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2008 then
2010 else
2011 echo "configure: failed program was:" >&5
2012 cat conftest.$ac_ext >&5
2013 rm -fr conftest*
2014 ac_cv_header_stdc=no
2016 rm -fr conftest*
2022 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2023 if test $ac_cv_header_stdc = yes; then
2024 cat >> confdefs.h <<\EOF
2025 #define STDC_HEADERS 1
2030 ac_header_dirent=no
2031 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
2033 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2034 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
2035 echo "configure:2036: checking for $ac_hdr that defines DIR" >&5
2036 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
2037 echo $ac_n "(cached) $ac_c" 1>&6
2038 else
2039 cat > conftest.$ac_ext <<EOF
2040 #line 2041 "configure"
2041 #include "confdefs.h"
2042 #include <sys/types.h>
2043 #include <$ac_hdr>
2044 int main() {
2045 DIR *dirp = 0;
2046 ; return 0; }
2048 if { (eval echo configure:2049: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2049 rm -rf conftest*
2050 eval "ac_cv_header_dirent_$ac_safe=yes"
2051 else
2052 echo "configure: failed program was:" >&5
2053 cat conftest.$ac_ext >&5
2054 rm -rf conftest*
2055 eval "ac_cv_header_dirent_$ac_safe=no"
2057 rm -f conftest*
2059 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2060 echo "$ac_t""yes" 1>&6
2061 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2062 cat >> confdefs.h <<EOF
2063 #define $ac_tr_hdr 1
2065 ac_header_dirent=$ac_hdr; break
2066 else
2067 echo "$ac_t""no" 1>&6
2069 done
2070 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2071 if test $ac_header_dirent = dirent.h; then
2072 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2073 echo "configure:2074: checking for opendir in -ldir" >&5
2074 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2075 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2076 echo $ac_n "(cached) $ac_c" 1>&6
2077 else
2078 ac_save_LIBS="$LIBS"
2079 LIBS="-ldir $LIBS"
2080 cat > conftest.$ac_ext <<EOF
2081 #line 2082 "configure"
2082 #include "confdefs.h"
2083 /* Override any gcc2 internal prototype to avoid an error. */
2084 /* We use char because int might match the return type of a gcc2
2085 builtin and then its argument prototype would still apply. */
2086 char opendir();
2088 int main() {
2089 opendir()
2090 ; return 0; }
2092 if { (eval echo configure:2093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2093 rm -rf conftest*
2094 eval "ac_cv_lib_$ac_lib_var=yes"
2095 else
2096 echo "configure: failed program was:" >&5
2097 cat conftest.$ac_ext >&5
2098 rm -rf conftest*
2099 eval "ac_cv_lib_$ac_lib_var=no"
2101 rm -f conftest*
2102 LIBS="$ac_save_LIBS"
2105 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2106 echo "$ac_t""yes" 1>&6
2107 LIBS="$LIBS -ldir"
2108 else
2109 echo "$ac_t""no" 1>&6
2112 else
2113 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2114 echo "configure:2115: checking for opendir in -lx" >&5
2115 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2116 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2117 echo $ac_n "(cached) $ac_c" 1>&6
2118 else
2119 ac_save_LIBS="$LIBS"
2120 LIBS="-lx $LIBS"
2121 cat > conftest.$ac_ext <<EOF
2122 #line 2123 "configure"
2123 #include "confdefs.h"
2124 /* Override any gcc2 internal prototype to avoid an error. */
2125 /* We use char because int might match the return type of a gcc2
2126 builtin and then its argument prototype would still apply. */
2127 char opendir();
2129 int main() {
2130 opendir()
2131 ; return 0; }
2133 if { (eval echo configure:2134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2134 rm -rf conftest*
2135 eval "ac_cv_lib_$ac_lib_var=yes"
2136 else
2137 echo "configure: failed program was:" >&5
2138 cat conftest.$ac_ext >&5
2139 rm -rf conftest*
2140 eval "ac_cv_lib_$ac_lib_var=no"
2142 rm -f conftest*
2143 LIBS="$ac_save_LIBS"
2146 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2147 echo "$ac_t""yes" 1>&6
2148 LIBS="$LIBS -lx"
2149 else
2150 echo "$ac_t""no" 1>&6
2155 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2156 echo "configure:2157: checking whether time.h and sys/time.h may both be included" >&5
2157 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2158 echo $ac_n "(cached) $ac_c" 1>&6
2159 else
2160 cat > conftest.$ac_ext <<EOF
2161 #line 2162 "configure"
2162 #include "confdefs.h"
2163 #include <sys/types.h>
2164 #include <sys/time.h>
2165 #include <time.h>
2166 int main() {
2167 struct tm *tp;
2168 ; return 0; }
2170 if { (eval echo configure:2171: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2171 rm -rf conftest*
2172 ac_cv_header_time=yes
2173 else
2174 echo "configure: failed program was:" >&5
2175 cat conftest.$ac_ext >&5
2176 rm -rf conftest*
2177 ac_cv_header_time=no
2179 rm -f conftest*
2182 echo "$ac_t""$ac_cv_header_time" 1>&6
2183 if test $ac_cv_header_time = yes; then
2184 cat >> confdefs.h <<\EOF
2185 #define TIME_WITH_SYS_TIME 1
2190 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2191 echo "configure:2192: checking for sys/wait.h that is POSIX.1 compatible" >&5
2192 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2193 echo $ac_n "(cached) $ac_c" 1>&6
2194 else
2195 cat > conftest.$ac_ext <<EOF
2196 #line 2197 "configure"
2197 #include "confdefs.h"
2198 #include <sys/types.h>
2199 #include <sys/wait.h>
2200 #ifndef WEXITSTATUS
2201 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2202 #endif
2203 #ifndef WIFEXITED
2204 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2205 #endif
2206 int main() {
2207 int s;
2208 wait (&s);
2209 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2210 ; return 0; }
2212 if { (eval echo configure:2213: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2213 rm -rf conftest*
2214 ac_cv_header_sys_wait_h=yes
2215 else
2216 echo "configure: failed program was:" >&5
2217 cat conftest.$ac_ext >&5
2218 rm -rf conftest*
2219 ac_cv_header_sys_wait_h=no
2221 rm -f conftest*
2224 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2225 if test $ac_cv_header_sys_wait_h = yes; then
2226 cat >> confdefs.h <<\EOF
2227 #define HAVE_SYS_WAIT_H 1
2232 for ac_hdr in arpa/inet.h sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h
2234 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2235 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2236 echo "configure:2237: checking for $ac_hdr" >&5
2237 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2238 echo $ac_n "(cached) $ac_c" 1>&6
2239 else
2240 cat > conftest.$ac_ext <<EOF
2241 #line 2242 "configure"
2242 #include "confdefs.h"
2243 #include <$ac_hdr>
2245 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2246 { (eval echo configure:2247: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2247 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2248 if test -z "$ac_err"; then
2249 rm -rf conftest*
2250 eval "ac_cv_header_$ac_safe=yes"
2251 else
2252 echo "$ac_err" >&5
2253 echo "configure: failed program was:" >&5
2254 cat conftest.$ac_ext >&5
2255 rm -rf conftest*
2256 eval "ac_cv_header_$ac_safe=no"
2258 rm -f conftest*
2260 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2261 echo "$ac_t""yes" 1>&6
2262 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2263 cat >> confdefs.h <<EOF
2264 #define $ac_tr_hdr 1
2267 else
2268 echo "$ac_t""no" 1>&6
2270 done
2272 for ac_hdr in unistd.h utime.h grp.h sys/id.h limits.h memory.h net/if.h
2274 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2275 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2276 echo "configure:2277: checking for $ac_hdr" >&5
2277 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2278 echo $ac_n "(cached) $ac_c" 1>&6
2279 else
2280 cat > conftest.$ac_ext <<EOF
2281 #line 2282 "configure"
2282 #include "confdefs.h"
2283 #include <$ac_hdr>
2285 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2286 { (eval echo configure:2287: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2287 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2288 if test -z "$ac_err"; then
2289 rm -rf conftest*
2290 eval "ac_cv_header_$ac_safe=yes"
2291 else
2292 echo "$ac_err" >&5
2293 echo "configure: failed program was:" >&5
2294 cat conftest.$ac_ext >&5
2295 rm -rf conftest*
2296 eval "ac_cv_header_$ac_safe=no"
2298 rm -f conftest*
2300 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2301 echo "$ac_t""yes" 1>&6
2302 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2303 cat >> confdefs.h <<EOF
2304 #define $ac_tr_hdr 1
2307 else
2308 echo "$ac_t""no" 1>&6
2310 done
2312 for ac_hdr in compat.h rpc/rpc.h rpcsvc/nis.h rpcsvc/yp_prot.h rpcsvc/ypclnt.h
2314 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2315 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2316 echo "configure:2317: checking for $ac_hdr" >&5
2317 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2318 echo $ac_n "(cached) $ac_c" 1>&6
2319 else
2320 cat > conftest.$ac_ext <<EOF
2321 #line 2322 "configure"
2322 #include "confdefs.h"
2323 #include <$ac_hdr>
2325 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2326 { (eval echo configure:2327: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2327 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2328 if test -z "$ac_err"; then
2329 rm -rf conftest*
2330 eval "ac_cv_header_$ac_safe=yes"
2331 else
2332 echo "$ac_err" >&5
2333 echo "configure: failed program was:" >&5
2334 cat conftest.$ac_ext >&5
2335 rm -rf conftest*
2336 eval "ac_cv_header_$ac_safe=no"
2338 rm -f conftest*
2340 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2341 echo "$ac_t""yes" 1>&6
2342 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2343 cat >> confdefs.h <<EOF
2344 #define $ac_tr_hdr 1
2347 else
2348 echo "$ac_t""no" 1>&6
2350 done
2352 for ac_hdr in sys/param.h ctype.h sys/un.h sys/wait.h sys/resource.h sys/ioctl.h sys/mode.h
2354 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2355 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2356 echo "configure:2357: checking for $ac_hdr" >&5
2357 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2358 echo $ac_n "(cached) $ac_c" 1>&6
2359 else
2360 cat > conftest.$ac_ext <<EOF
2361 #line 2362 "configure"
2362 #include "confdefs.h"
2363 #include <$ac_hdr>
2365 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2366 { (eval echo configure:2367: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2367 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2368 if test -z "$ac_err"; then
2369 rm -rf conftest*
2370 eval "ac_cv_header_$ac_safe=yes"
2371 else
2372 echo "$ac_err" >&5
2373 echo "configure: failed program was:" >&5
2374 cat conftest.$ac_ext >&5
2375 rm -rf conftest*
2376 eval "ac_cv_header_$ac_safe=no"
2378 rm -f conftest*
2380 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2381 echo "$ac_t""yes" 1>&6
2382 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2383 cat >> confdefs.h <<EOF
2384 #define $ac_tr_hdr 1
2387 else
2388 echo "$ac_t""no" 1>&6
2390 done
2392 for ac_hdr in sys/mman.h sys/filio.h sys/priv.h string.h strings.h stdlib.h sys/socket.h
2394 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2395 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2396 echo "configure:2397: checking for $ac_hdr" >&5
2397 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2398 echo $ac_n "(cached) $ac_c" 1>&6
2399 else
2400 cat > conftest.$ac_ext <<EOF
2401 #line 2402 "configure"
2402 #include "confdefs.h"
2403 #include <$ac_hdr>
2405 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2406 { (eval echo configure:2407: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2407 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2408 if test -z "$ac_err"; then
2409 rm -rf conftest*
2410 eval "ac_cv_header_$ac_safe=yes"
2411 else
2412 echo "$ac_err" >&5
2413 echo "configure: failed program was:" >&5
2414 cat conftest.$ac_ext >&5
2415 rm -rf conftest*
2416 eval "ac_cv_header_$ac_safe=no"
2418 rm -f conftest*
2420 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2421 echo "$ac_t""yes" 1>&6
2422 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2423 cat >> confdefs.h <<EOF
2424 #define $ac_tr_hdr 1
2427 else
2428 echo "$ac_t""no" 1>&6
2430 done
2432 for ac_hdr in sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h termio.h
2434 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2435 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2436 echo "configure:2437: checking for $ac_hdr" >&5
2437 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2438 echo $ac_n "(cached) $ac_c" 1>&6
2439 else
2440 cat > conftest.$ac_ext <<EOF
2441 #line 2442 "configure"
2442 #include "confdefs.h"
2443 #include <$ac_hdr>
2445 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2446 { (eval echo configure:2447: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2447 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2448 if test -z "$ac_err"; then
2449 rm -rf conftest*
2450 eval "ac_cv_header_$ac_safe=yes"
2451 else
2452 echo "$ac_err" >&5
2453 echo "configure: failed program was:" >&5
2454 cat conftest.$ac_ext >&5
2455 rm -rf conftest*
2456 eval "ac_cv_header_$ac_safe=no"
2458 rm -f conftest*
2460 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2461 echo "$ac_t""yes" 1>&6
2462 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2463 cat >> confdefs.h <<EOF
2464 #define $ac_tr_hdr 1
2467 else
2468 echo "$ac_t""no" 1>&6
2470 done
2472 for ac_hdr in sys/termio.h sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h
2474 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2475 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2476 echo "configure:2477: checking for $ac_hdr" >&5
2477 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2478 echo $ac_n "(cached) $ac_c" 1>&6
2479 else
2480 cat > conftest.$ac_ext <<EOF
2481 #line 2482 "configure"
2482 #include "confdefs.h"
2483 #include <$ac_hdr>
2485 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2486 { (eval echo configure:2487: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2487 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2488 if test -z "$ac_err"; then
2489 rm -rf conftest*
2490 eval "ac_cv_header_$ac_safe=yes"
2491 else
2492 echo "$ac_err" >&5
2493 echo "configure: failed program was:" >&5
2494 cat conftest.$ac_ext >&5
2495 rm -rf conftest*
2496 eval "ac_cv_header_$ac_safe=no"
2498 rm -f conftest*
2500 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2501 echo "$ac_t""yes" 1>&6
2502 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2503 cat >> confdefs.h <<EOF
2504 #define $ac_tr_hdr 1
2507 else
2508 echo "$ac_t""no" 1>&6
2510 done
2513 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
2514 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
2516 case "$host_os" in
2517 *hpux*)
2518 cat > conftest.$ac_ext <<EOF
2519 #line 2520 "configure"
2520 #include "confdefs.h"
2521 #include <shadow.h>
2522 int main() {
2523 struct spwd testme
2524 ; return 0; }
2526 if { (eval echo configure:2527: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2527 rm -rf conftest*
2528 ac_cv_header_shadow_h=yes
2529 else
2530 echo "configure: failed program was:" >&5
2531 cat conftest.$ac_ext >&5
2532 rm -rf conftest*
2533 ac_cv_header_shadow_h=no
2535 rm -f conftest*
2536 if test x"$ac_cv_header_shadow_h" = x"yes"; then
2537 cat >> confdefs.h <<\EOF
2538 #define HAVE_SHADOW_H 1
2543 esac
2544 for ac_hdr in shadow.h netinet/ip.h netinet/tcp.h netinet/in_systm.h netinet/in_ip.h
2546 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2547 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2548 echo "configure:2549: checking for $ac_hdr" >&5
2549 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2550 echo $ac_n "(cached) $ac_c" 1>&6
2551 else
2552 cat > conftest.$ac_ext <<EOF
2553 #line 2554 "configure"
2554 #include "confdefs.h"
2555 #include <$ac_hdr>
2557 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2558 { (eval echo configure:2559: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2559 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2560 if test -z "$ac_err"; then
2561 rm -rf conftest*
2562 eval "ac_cv_header_$ac_safe=yes"
2563 else
2564 echo "$ac_err" >&5
2565 echo "configure: failed program was:" >&5
2566 cat conftest.$ac_ext >&5
2567 rm -rf conftest*
2568 eval "ac_cv_header_$ac_safe=no"
2570 rm -f conftest*
2572 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2573 echo "$ac_t""yes" 1>&6
2574 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2575 cat >> confdefs.h <<EOF
2576 #define $ac_tr_hdr 1
2579 else
2580 echo "$ac_t""no" 1>&6
2582 done
2584 for ac_hdr in nss.h sys/security.h security/pam_appl.h
2586 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2587 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2588 echo "configure:2589: checking for $ac_hdr" >&5
2589 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2590 echo $ac_n "(cached) $ac_c" 1>&6
2591 else
2592 cat > conftest.$ac_ext <<EOF
2593 #line 2594 "configure"
2594 #include "confdefs.h"
2595 #include <$ac_hdr>
2597 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2598 { (eval echo configure:2599: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2599 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2600 if test -z "$ac_err"; then
2601 rm -rf conftest*
2602 eval "ac_cv_header_$ac_safe=yes"
2603 else
2604 echo "$ac_err" >&5
2605 echo "configure: failed program was:" >&5
2606 cat conftest.$ac_ext >&5
2607 rm -rf conftest*
2608 eval "ac_cv_header_$ac_safe=no"
2610 rm -f conftest*
2612 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2613 echo "$ac_t""yes" 1>&6
2614 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2615 cat >> confdefs.h <<EOF
2616 #define $ac_tr_hdr 1
2619 else
2620 echo "$ac_t""no" 1>&6
2622 done
2624 for ac_hdr in stropts.h poll.h readline.h history.h readline/readline.h
2626 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2627 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2628 echo "configure:2629: checking for $ac_hdr" >&5
2629 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2630 echo $ac_n "(cached) $ac_c" 1>&6
2631 else
2632 cat > conftest.$ac_ext <<EOF
2633 #line 2634 "configure"
2634 #include "confdefs.h"
2635 #include <$ac_hdr>
2637 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2638 { (eval echo configure:2639: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2639 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2640 if test -z "$ac_err"; then
2641 rm -rf conftest*
2642 eval "ac_cv_header_$ac_safe=yes"
2643 else
2644 echo "$ac_err" >&5
2645 echo "configure: failed program was:" >&5
2646 cat conftest.$ac_ext >&5
2647 rm -rf conftest*
2648 eval "ac_cv_header_$ac_safe=no"
2650 rm -f conftest*
2652 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2653 echo "$ac_t""yes" 1>&6
2654 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2655 cat >> confdefs.h <<EOF
2656 #define $ac_tr_hdr 1
2659 else
2660 echo "$ac_t""no" 1>&6
2662 done
2664 for ac_hdr in readline/history.h sys/capability.h syscall.h sys/syscall.h
2666 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2667 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2668 echo "configure:2669: checking for $ac_hdr" >&5
2669 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2670 echo $ac_n "(cached) $ac_c" 1>&6
2671 else
2672 cat > conftest.$ac_ext <<EOF
2673 #line 2674 "configure"
2674 #include "confdefs.h"
2675 #include <$ac_hdr>
2677 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2678 { (eval echo configure:2679: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2679 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2680 if test -z "$ac_err"; then
2681 rm -rf conftest*
2682 eval "ac_cv_header_$ac_safe=yes"
2683 else
2684 echo "$ac_err" >&5
2685 echo "configure: failed program was:" >&5
2686 cat conftest.$ac_ext >&5
2687 rm -rf conftest*
2688 eval "ac_cv_header_$ac_safe=no"
2690 rm -f conftest*
2692 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2693 echo "$ac_t""yes" 1>&6
2694 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2695 cat >> confdefs.h <<EOF
2696 #define $ac_tr_hdr 1
2699 else
2700 echo "$ac_t""no" 1>&6
2702 done
2704 for ac_hdr in sys/acl.h sys/cdefs.h glob.h
2706 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2707 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2708 echo "configure:2709: checking for $ac_hdr" >&5
2709 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2710 echo $ac_n "(cached) $ac_c" 1>&6
2711 else
2712 cat > conftest.$ac_ext <<EOF
2713 #line 2714 "configure"
2714 #include "confdefs.h"
2715 #include <$ac_hdr>
2717 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2718 { (eval echo configure:2719: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2719 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2720 if test -z "$ac_err"; then
2721 rm -rf conftest*
2722 eval "ac_cv_header_$ac_safe=yes"
2723 else
2724 echo "$ac_err" >&5
2725 echo "configure: failed program was:" >&5
2726 cat conftest.$ac_ext >&5
2727 rm -rf conftest*
2728 eval "ac_cv_header_$ac_safe=no"
2730 rm -f conftest*
2732 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2733 echo "$ac_t""yes" 1>&6
2734 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2735 cat >> confdefs.h <<EOF
2736 #define $ac_tr_hdr 1
2739 else
2740 echo "$ac_t""no" 1>&6
2742 done
2745 # For experimental utmp support (lastlog on some BSD-like systems)
2746 for ac_hdr in utmp.h utmpx.h lastlog.h
2748 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2749 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2750 echo "configure:2751: checking for $ac_hdr" >&5
2751 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2752 echo $ac_n "(cached) $ac_c" 1>&6
2753 else
2754 cat > conftest.$ac_ext <<EOF
2755 #line 2756 "configure"
2756 #include "confdefs.h"
2757 #include <$ac_hdr>
2759 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2760 { (eval echo configure:2761: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2761 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2762 if test -z "$ac_err"; then
2763 rm -rf conftest*
2764 eval "ac_cv_header_$ac_safe=yes"
2765 else
2766 echo "$ac_err" >&5
2767 echo "configure: failed program was:" >&5
2768 cat conftest.$ac_ext >&5
2769 rm -rf conftest*
2770 eval "ac_cv_header_$ac_safe=no"
2772 rm -f conftest*
2774 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2775 echo "$ac_t""yes" 1>&6
2776 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2777 cat >> confdefs.h <<EOF
2778 #define $ac_tr_hdr 1
2781 else
2782 echo "$ac_t""no" 1>&6
2784 done
2787 # For quotas on Veritas VxFS filesystems
2788 for ac_hdr in sys/fs/vx_quota.h
2790 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2791 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2792 echo "configure:2793: checking for $ac_hdr" >&5
2793 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2794 echo $ac_n "(cached) $ac_c" 1>&6
2795 else
2796 cat > conftest.$ac_ext <<EOF
2797 #line 2798 "configure"
2798 #include "confdefs.h"
2799 #include <$ac_hdr>
2801 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2802 { (eval echo configure:2803: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2803 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2804 if test -z "$ac_err"; then
2805 rm -rf conftest*
2806 eval "ac_cv_header_$ac_safe=yes"
2807 else
2808 echo "$ac_err" >&5
2809 echo "configure: failed program was:" >&5
2810 cat conftest.$ac_ext >&5
2811 rm -rf conftest*
2812 eval "ac_cv_header_$ac_safe=no"
2814 rm -f conftest*
2816 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2817 echo "$ac_t""yes" 1>&6
2818 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2819 cat >> confdefs.h <<EOF
2820 #define $ac_tr_hdr 1
2823 else
2824 echo "$ac_t""no" 1>&6
2826 done
2829 echo $ac_n "checking size of int""... $ac_c" 1>&6
2830 echo "configure:2831: checking size of int" >&5
2831 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2832 echo $ac_n "(cached) $ac_c" 1>&6
2833 else
2834 if test "$cross_compiling" = yes; then
2835 ac_cv_sizeof_int=cross
2836 else
2837 cat > conftest.$ac_ext <<EOF
2838 #line 2839 "configure"
2839 #include "confdefs.h"
2840 #include <stdio.h>
2841 main()
2843 FILE *f=fopen("conftestval", "w");
2844 if (!f) exit(1);
2845 fprintf(f, "%d\n", sizeof(int));
2846 exit(0);
2849 if { (eval echo configure:2850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2850 then
2851 ac_cv_sizeof_int=`cat conftestval`
2852 else
2853 echo "configure: failed program was:" >&5
2854 cat conftest.$ac_ext >&5
2855 rm -fr conftest*
2856 ac_cv_sizeof_int=0
2858 rm -fr conftest*
2862 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2863 cat >> confdefs.h <<EOF
2864 #define SIZEOF_INT $ac_cv_sizeof_int
2868 echo $ac_n "checking size of long""... $ac_c" 1>&6
2869 echo "configure:2870: checking size of long" >&5
2870 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2871 echo $ac_n "(cached) $ac_c" 1>&6
2872 else
2873 if test "$cross_compiling" = yes; then
2874 ac_cv_sizeof_long=cross
2875 else
2876 cat > conftest.$ac_ext <<EOF
2877 #line 2878 "configure"
2878 #include "confdefs.h"
2879 #include <stdio.h>
2880 main()
2882 FILE *f=fopen("conftestval", "w");
2883 if (!f) exit(1);
2884 fprintf(f, "%d\n", sizeof(long));
2885 exit(0);
2888 if { (eval echo configure:2889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2889 then
2890 ac_cv_sizeof_long=`cat conftestval`
2891 else
2892 echo "configure: failed program was:" >&5
2893 cat conftest.$ac_ext >&5
2894 rm -fr conftest*
2895 ac_cv_sizeof_long=0
2897 rm -fr conftest*
2901 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2902 cat >> confdefs.h <<EOF
2903 #define SIZEOF_LONG $ac_cv_sizeof_long
2907 echo $ac_n "checking size of short""... $ac_c" 1>&6
2908 echo "configure:2909: checking size of short" >&5
2909 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2910 echo $ac_n "(cached) $ac_c" 1>&6
2911 else
2912 if test "$cross_compiling" = yes; then
2913 ac_cv_sizeof_short=cross
2914 else
2915 cat > conftest.$ac_ext <<EOF
2916 #line 2917 "configure"
2917 #include "confdefs.h"
2918 #include <stdio.h>
2919 main()
2921 FILE *f=fopen("conftestval", "w");
2922 if (!f) exit(1);
2923 fprintf(f, "%d\n", sizeof(short));
2924 exit(0);
2927 if { (eval echo configure:2928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2928 then
2929 ac_cv_sizeof_short=`cat conftestval`
2930 else
2931 echo "configure: failed program was:" >&5
2932 cat conftest.$ac_ext >&5
2933 rm -fr conftest*
2934 ac_cv_sizeof_short=0
2936 rm -fr conftest*
2940 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2941 cat >> confdefs.h <<EOF
2942 #define SIZEOF_SHORT $ac_cv_sizeof_short
2947 echo $ac_n "checking for working const""... $ac_c" 1>&6
2948 echo "configure:2949: checking for working const" >&5
2949 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2950 echo $ac_n "(cached) $ac_c" 1>&6
2951 else
2952 cat > conftest.$ac_ext <<EOF
2953 #line 2954 "configure"
2954 #include "confdefs.h"
2956 int main() {
2958 /* Ultrix mips cc rejects this. */
2959 typedef int charset[2]; const charset x;
2960 /* SunOS 4.1.1 cc rejects this. */
2961 char const *const *ccp;
2962 char **p;
2963 /* NEC SVR4.0.2 mips cc rejects this. */
2964 struct point {int x, y;};
2965 static struct point const zero = {0,0};
2966 /* AIX XL C 1.02.0.0 rejects this.
2967 It does not let you subtract one const X* pointer from another in an arm
2968 of an if-expression whose if-part is not a constant expression */
2969 const char *g = "string";
2970 ccp = &g + (g ? g-g : 0);
2971 /* HPUX 7.0 cc rejects these. */
2972 ++ccp;
2973 p = (char**) ccp;
2974 ccp = (char const *const *) p;
2975 { /* SCO 3.2v4 cc rejects this. */
2976 char *t;
2977 char const *s = 0 ? (char *) 0 : (char const *) 0;
2979 *t++ = 0;
2981 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2982 int x[] = {25, 17};
2983 const int *foo = &x[0];
2984 ++foo;
2986 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2987 typedef const int *iptr;
2988 iptr p = 0;
2989 ++p;
2991 { /* AIX XL C 1.02.0.0 rejects this saying
2992 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2993 struct s { int j; const int *ap[3]; };
2994 struct s *b; b->j = 5;
2996 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2997 const int foo = 10;
3000 ; return 0; }
3002 if { (eval echo configure:3003: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3003 rm -rf conftest*
3004 ac_cv_c_const=yes
3005 else
3006 echo "configure: failed program was:" >&5
3007 cat conftest.$ac_ext >&5
3008 rm -rf conftest*
3009 ac_cv_c_const=no
3011 rm -f conftest*
3014 echo "$ac_t""$ac_cv_c_const" 1>&6
3015 if test $ac_cv_c_const = no; then
3016 cat >> confdefs.h <<\EOF
3017 #define const
3022 echo $ac_n "checking for inline""... $ac_c" 1>&6
3023 echo "configure:3024: checking for inline" >&5
3024 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3025 echo $ac_n "(cached) $ac_c" 1>&6
3026 else
3027 ac_cv_c_inline=no
3028 for ac_kw in inline __inline__ __inline; do
3029 cat > conftest.$ac_ext <<EOF
3030 #line 3031 "configure"
3031 #include "confdefs.h"
3033 int main() {
3034 } $ac_kw foo() {
3035 ; return 0; }
3037 if { (eval echo configure:3038: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3038 rm -rf conftest*
3039 ac_cv_c_inline=$ac_kw; break
3040 else
3041 echo "configure: failed program was:" >&5
3042 cat conftest.$ac_ext >&5
3044 rm -f conftest*
3045 done
3049 echo "$ac_t""$ac_cv_c_inline" 1>&6
3050 case "$ac_cv_c_inline" in
3051 inline | yes) ;;
3052 no) cat >> confdefs.h <<\EOF
3053 #define inline
3056 *) cat >> confdefs.h <<EOF
3057 #define inline $ac_cv_c_inline
3060 esac
3062 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3063 echo "configure:3064: checking whether byte ordering is bigendian" >&5
3064 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3065 echo $ac_n "(cached) $ac_c" 1>&6
3066 else
3067 ac_cv_c_bigendian=unknown
3068 # See if sys/param.h defines the BYTE_ORDER macro.
3069 cat > conftest.$ac_ext <<EOF
3070 #line 3071 "configure"
3071 #include "confdefs.h"
3072 #include <sys/types.h>
3073 #include <sys/param.h>
3074 int main() {
3076 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3077 bogus endian macros
3078 #endif
3079 ; return 0; }
3081 if { (eval echo configure:3082: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3082 rm -rf conftest*
3083 # It does; now see whether it defined to BIG_ENDIAN or not.
3084 cat > conftest.$ac_ext <<EOF
3085 #line 3086 "configure"
3086 #include "confdefs.h"
3087 #include <sys/types.h>
3088 #include <sys/param.h>
3089 int main() {
3091 #if BYTE_ORDER != BIG_ENDIAN
3092 not big endian
3093 #endif
3094 ; return 0; }
3096 if { (eval echo configure:3097: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3097 rm -rf conftest*
3098 ac_cv_c_bigendian=yes
3099 else
3100 echo "configure: failed program was:" >&5
3101 cat conftest.$ac_ext >&5
3102 rm -rf conftest*
3103 ac_cv_c_bigendian=no
3105 rm -f conftest*
3106 else
3107 echo "configure: failed program was:" >&5
3108 cat conftest.$ac_ext >&5
3110 rm -f conftest*
3111 if test $ac_cv_c_bigendian = unknown; then
3112 if test "$cross_compiling" = yes; then
3113 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3114 else
3115 cat > conftest.$ac_ext <<EOF
3116 #line 3117 "configure"
3117 #include "confdefs.h"
3118 main () {
3119 /* Are we little or big endian? From Harbison&Steele. */
3120 union
3122 long l;
3123 char c[sizeof (long)];
3124 } u;
3125 u.l = 1;
3126 exit (u.c[sizeof (long) - 1] == 1);
3129 if { (eval echo configure:3130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3130 then
3131 ac_cv_c_bigendian=no
3132 else
3133 echo "configure: failed program was:" >&5
3134 cat conftest.$ac_ext >&5
3135 rm -fr conftest*
3136 ac_cv_c_bigendian=yes
3138 rm -fr conftest*
3144 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3145 if test $ac_cv_c_bigendian = yes; then
3146 cat >> confdefs.h <<\EOF
3147 #define WORDS_BIGENDIAN 1
3152 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
3153 echo "configure:3154: checking whether char is unsigned" >&5
3154 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
3155 echo $ac_n "(cached) $ac_c" 1>&6
3156 else
3157 if test "$GCC" = yes; then
3158 # GCC predefines this symbol on systems where it applies.
3159 cat > conftest.$ac_ext <<EOF
3160 #line 3161 "configure"
3161 #include "confdefs.h"
3162 #ifdef __CHAR_UNSIGNED__
3164 #endif
3167 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3168 egrep "yes" >/dev/null 2>&1; then
3169 rm -rf conftest*
3170 ac_cv_c_char_unsigned=yes
3171 else
3172 rm -rf conftest*
3173 ac_cv_c_char_unsigned=no
3175 rm -f conftest*
3177 else
3178 if test "$cross_compiling" = yes; then
3179 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3180 else
3181 cat > conftest.$ac_ext <<EOF
3182 #line 3183 "configure"
3183 #include "confdefs.h"
3184 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
3185 #if !defined(__STDC__) || __STDC__ != 1
3186 #define volatile
3187 #endif
3188 main() {
3189 volatile char c = 255; exit(c < 0);
3192 if { (eval echo configure:3193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3193 then
3194 ac_cv_c_char_unsigned=yes
3195 else
3196 echo "configure: failed program was:" >&5
3197 cat conftest.$ac_ext >&5
3198 rm -fr conftest*
3199 ac_cv_c_char_unsigned=no
3201 rm -fr conftest*
3207 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
3208 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
3209 cat >> confdefs.h <<\EOF
3210 #define __CHAR_UNSIGNED__ 1
3216 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3217 echo "configure:3218: checking return type of signal handlers" >&5
3218 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3219 echo $ac_n "(cached) $ac_c" 1>&6
3220 else
3221 cat > conftest.$ac_ext <<EOF
3222 #line 3223 "configure"
3223 #include "confdefs.h"
3224 #include <sys/types.h>
3225 #include <signal.h>
3226 #ifdef signal
3227 #undef signal
3228 #endif
3229 #ifdef __cplusplus
3230 extern "C" void (*signal (int, void (*)(int)))(int);
3231 #else
3232 void (*signal ()) ();
3233 #endif
3235 int main() {
3236 int i;
3237 ; return 0; }
3239 if { (eval echo configure:3240: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3240 rm -rf conftest*
3241 ac_cv_type_signal=void
3242 else
3243 echo "configure: failed program was:" >&5
3244 cat conftest.$ac_ext >&5
3245 rm -rf conftest*
3246 ac_cv_type_signal=int
3248 rm -f conftest*
3251 echo "$ac_t""$ac_cv_type_signal" 1>&6
3252 cat >> confdefs.h <<EOF
3253 #define RETSIGTYPE $ac_cv_type_signal
3257 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3258 echo "configure:3259: checking for uid_t in sys/types.h" >&5
3259 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3260 echo $ac_n "(cached) $ac_c" 1>&6
3261 else
3262 cat > conftest.$ac_ext <<EOF
3263 #line 3264 "configure"
3264 #include "confdefs.h"
3265 #include <sys/types.h>
3267 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3268 egrep "uid_t" >/dev/null 2>&1; then
3269 rm -rf conftest*
3270 ac_cv_type_uid_t=yes
3271 else
3272 rm -rf conftest*
3273 ac_cv_type_uid_t=no
3275 rm -f conftest*
3279 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3280 if test $ac_cv_type_uid_t = no; then
3281 cat >> confdefs.h <<\EOF
3282 #define uid_t int
3285 cat >> confdefs.h <<\EOF
3286 #define gid_t int
3291 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3292 echo "configure:3293: checking for mode_t" >&5
3293 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3294 echo $ac_n "(cached) $ac_c" 1>&6
3295 else
3296 cat > conftest.$ac_ext <<EOF
3297 #line 3298 "configure"
3298 #include "confdefs.h"
3299 #include <sys/types.h>
3300 #if STDC_HEADERS
3301 #include <stdlib.h>
3302 #include <stddef.h>
3303 #endif
3305 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3306 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3307 rm -rf conftest*
3308 ac_cv_type_mode_t=yes
3309 else
3310 rm -rf conftest*
3311 ac_cv_type_mode_t=no
3313 rm -f conftest*
3316 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3317 if test $ac_cv_type_mode_t = no; then
3318 cat >> confdefs.h <<\EOF
3319 #define mode_t int
3324 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3325 echo "configure:3326: checking for off_t" >&5
3326 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3327 echo $ac_n "(cached) $ac_c" 1>&6
3328 else
3329 cat > conftest.$ac_ext <<EOF
3330 #line 3331 "configure"
3331 #include "confdefs.h"
3332 #include <sys/types.h>
3333 #if STDC_HEADERS
3334 #include <stdlib.h>
3335 #include <stddef.h>
3336 #endif
3338 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3339 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3340 rm -rf conftest*
3341 ac_cv_type_off_t=yes
3342 else
3343 rm -rf conftest*
3344 ac_cv_type_off_t=no
3346 rm -f conftest*
3349 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3350 if test $ac_cv_type_off_t = no; then
3351 cat >> confdefs.h <<\EOF
3352 #define off_t long
3357 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3358 echo "configure:3359: checking for size_t" >&5
3359 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3360 echo $ac_n "(cached) $ac_c" 1>&6
3361 else
3362 cat > conftest.$ac_ext <<EOF
3363 #line 3364 "configure"
3364 #include "confdefs.h"
3365 #include <sys/types.h>
3366 #if STDC_HEADERS
3367 #include <stdlib.h>
3368 #include <stddef.h>
3369 #endif
3371 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3372 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3373 rm -rf conftest*
3374 ac_cv_type_size_t=yes
3375 else
3376 rm -rf conftest*
3377 ac_cv_type_size_t=no
3379 rm -f conftest*
3382 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3383 if test $ac_cv_type_size_t = no; then
3384 cat >> confdefs.h <<\EOF
3385 #define size_t unsigned
3390 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3391 echo "configure:3392: checking for pid_t" >&5
3392 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3393 echo $ac_n "(cached) $ac_c" 1>&6
3394 else
3395 cat > conftest.$ac_ext <<EOF
3396 #line 3397 "configure"
3397 #include "confdefs.h"
3398 #include <sys/types.h>
3399 #if STDC_HEADERS
3400 #include <stdlib.h>
3401 #include <stddef.h>
3402 #endif
3404 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3405 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3406 rm -rf conftest*
3407 ac_cv_type_pid_t=yes
3408 else
3409 rm -rf conftest*
3410 ac_cv_type_pid_t=no
3412 rm -f conftest*
3415 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3416 if test $ac_cv_type_pid_t = no; then
3417 cat >> confdefs.h <<\EOF
3418 #define pid_t int
3423 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3424 echo "configure:3425: checking for st_rdev in struct stat" >&5
3425 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3426 echo $ac_n "(cached) $ac_c" 1>&6
3427 else
3428 cat > conftest.$ac_ext <<EOF
3429 #line 3430 "configure"
3430 #include "confdefs.h"
3431 #include <sys/types.h>
3432 #include <sys/stat.h>
3433 int main() {
3434 struct stat s; s.st_rdev;
3435 ; return 0; }
3437 if { (eval echo configure:3438: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3438 rm -rf conftest*
3439 ac_cv_struct_st_rdev=yes
3440 else
3441 echo "configure: failed program was:" >&5
3442 cat conftest.$ac_ext >&5
3443 rm -rf conftest*
3444 ac_cv_struct_st_rdev=no
3446 rm -f conftest*
3449 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3450 if test $ac_cv_struct_st_rdev = yes; then
3451 cat >> confdefs.h <<\EOF
3452 #define HAVE_ST_RDEV 1
3457 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
3458 echo "configure:3459: checking for d_off in dirent" >&5
3459 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
3460 echo $ac_n "(cached) $ac_c" 1>&6
3461 else
3462 cat > conftest.$ac_ext <<EOF
3463 #line 3464 "configure"
3464 #include "confdefs.h"
3466 #include <unistd.h>
3467 #include <sys/types.h>
3468 #include <dirent.h>
3469 int main() {
3470 struct dirent d; d.d_off;
3471 ; return 0; }
3473 if { (eval echo configure:3474: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3474 rm -rf conftest*
3475 ac_cv_dirent_d_off=yes
3476 else
3477 echo "configure: failed program was:" >&5
3478 cat conftest.$ac_ext >&5
3479 rm -rf conftest*
3480 ac_cv_dirent_d_off=no
3482 rm -f conftest*
3485 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
3486 if test $ac_cv_dirent_d_off = yes; then
3487 cat >> confdefs.h <<\EOF
3488 #define HAVE_DIRENT_D_OFF 1
3493 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
3494 echo "configure:3495: checking for ino_t" >&5
3495 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
3496 echo $ac_n "(cached) $ac_c" 1>&6
3497 else
3498 cat > conftest.$ac_ext <<EOF
3499 #line 3500 "configure"
3500 #include "confdefs.h"
3501 #include <sys/types.h>
3502 #if STDC_HEADERS
3503 #include <stdlib.h>
3504 #include <stddef.h>
3505 #endif
3507 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3508 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3509 rm -rf conftest*
3510 ac_cv_type_ino_t=yes
3511 else
3512 rm -rf conftest*
3513 ac_cv_type_ino_t=no
3515 rm -f conftest*
3518 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
3519 if test $ac_cv_type_ino_t = no; then
3520 cat >> confdefs.h <<\EOF
3521 #define ino_t unsigned
3526 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3527 echo "configure:3528: checking for loff_t" >&5
3528 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
3529 echo $ac_n "(cached) $ac_c" 1>&6
3530 else
3531 cat > conftest.$ac_ext <<EOF
3532 #line 3533 "configure"
3533 #include "confdefs.h"
3534 #include <sys/types.h>
3535 #if STDC_HEADERS
3536 #include <stdlib.h>
3537 #include <stddef.h>
3538 #endif
3540 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3541 egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3542 rm -rf conftest*
3543 ac_cv_type_loff_t=yes
3544 else
3545 rm -rf conftest*
3546 ac_cv_type_loff_t=no
3548 rm -f conftest*
3551 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
3552 if test $ac_cv_type_loff_t = no; then
3553 cat >> confdefs.h <<\EOF
3554 #define loff_t off_t
3559 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
3560 echo "configure:3561: checking for offset_t" >&5
3561 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
3562 echo $ac_n "(cached) $ac_c" 1>&6
3563 else
3564 cat > conftest.$ac_ext <<EOF
3565 #line 3566 "configure"
3566 #include "confdefs.h"
3567 #include <sys/types.h>
3568 #if STDC_HEADERS
3569 #include <stdlib.h>
3570 #include <stddef.h>
3571 #endif
3573 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3574 egrep "(^|[^a-zA-Z_0-9])offset_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3575 rm -rf conftest*
3576 ac_cv_type_offset_t=yes
3577 else
3578 rm -rf conftest*
3579 ac_cv_type_offset_t=no
3581 rm -f conftest*
3584 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
3585 if test $ac_cv_type_offset_t = no; then
3586 cat >> confdefs.h <<\EOF
3587 #define offset_t loff_t
3592 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3593 echo "configure:3594: checking for ssize_t" >&5
3594 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3595 echo $ac_n "(cached) $ac_c" 1>&6
3596 else
3597 cat > conftest.$ac_ext <<EOF
3598 #line 3599 "configure"
3599 #include "confdefs.h"
3600 #include <sys/types.h>
3601 #if STDC_HEADERS
3602 #include <stdlib.h>
3603 #include <stddef.h>
3604 #endif
3606 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3607 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3608 rm -rf conftest*
3609 ac_cv_type_ssize_t=yes
3610 else
3611 rm -rf conftest*
3612 ac_cv_type_ssize_t=no
3614 rm -f conftest*
3617 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3618 if test $ac_cv_type_ssize_t = no; then
3619 cat >> confdefs.h <<\EOF
3620 #define ssize_t int
3625 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
3626 echo "configure:3627: checking for wchar_t" >&5
3627 if eval "test \"`echo '$''{'ac_cv_type_wchar_t'+set}'`\" = set"; then
3628 echo $ac_n "(cached) $ac_c" 1>&6
3629 else
3630 cat > conftest.$ac_ext <<EOF
3631 #line 3632 "configure"
3632 #include "confdefs.h"
3633 #include <sys/types.h>
3634 #if STDC_HEADERS
3635 #include <stdlib.h>
3636 #include <stddef.h>
3637 #endif
3639 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3640 egrep "(^|[^a-zA-Z_0-9])wchar_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3641 rm -rf conftest*
3642 ac_cv_type_wchar_t=yes
3643 else
3644 rm -rf conftest*
3645 ac_cv_type_wchar_t=no
3647 rm -f conftest*
3650 echo "$ac_t""$ac_cv_type_wchar_t" 1>&6
3651 if test $ac_cv_type_wchar_t = no; then
3652 cat >> confdefs.h <<\EOF
3653 #define wchar_t unsigned short
3659 # we need libcups for CUPS support...
3660 echo $ac_n "checking for httpConnect in -lcups""... $ac_c" 1>&6
3661 echo "configure:3662: checking for httpConnect in -lcups" >&5
3662 ac_lib_var=`echo cups'_'httpConnect | sed 'y%./+-%__p_%'`
3663 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3664 echo $ac_n "(cached) $ac_c" 1>&6
3665 else
3666 ac_save_LIBS="$LIBS"
3667 LIBS="-lcups $LIBS"
3668 cat > conftest.$ac_ext <<EOF
3669 #line 3670 "configure"
3670 #include "confdefs.h"
3671 /* Override any gcc2 internal prototype to avoid an error. */
3672 /* We use char because int might match the return type of a gcc2
3673 builtin and then its argument prototype would still apply. */
3674 char httpConnect();
3676 int main() {
3677 httpConnect()
3678 ; return 0; }
3680 if { (eval echo configure:3681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3681 rm -rf conftest*
3682 eval "ac_cv_lib_$ac_lib_var=yes"
3683 else
3684 echo "configure: failed program was:" >&5
3685 cat conftest.$ac_ext >&5
3686 rm -rf conftest*
3687 eval "ac_cv_lib_$ac_lib_var=no"
3689 rm -f conftest*
3690 LIBS="$ac_save_LIBS"
3693 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3694 echo "$ac_t""yes" 1>&6
3695 ac_tr_lib=HAVE_LIB`echo cups | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3696 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3697 cat >> confdefs.h <<EOF
3698 #define $ac_tr_lib 1
3701 LIBS="-lcups $LIBS"
3703 else
3704 echo "$ac_t""no" 1>&6
3708 # we need libdl for PAM and the new VFS code
3709 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3710 echo "configure:3711: checking for dlopen in -ldl" >&5
3711 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3712 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3713 echo $ac_n "(cached) $ac_c" 1>&6
3714 else
3715 ac_save_LIBS="$LIBS"
3716 LIBS="-ldl $LIBS"
3717 cat > conftest.$ac_ext <<EOF
3718 #line 3719 "configure"
3719 #include "confdefs.h"
3720 /* Override any gcc2 internal prototype to avoid an error. */
3721 /* We use char because int might match the return type of a gcc2
3722 builtin and then its argument prototype would still apply. */
3723 char dlopen();
3725 int main() {
3726 dlopen()
3727 ; return 0; }
3729 if { (eval echo configure:3730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3730 rm -rf conftest*
3731 eval "ac_cv_lib_$ac_lib_var=yes"
3732 else
3733 echo "configure: failed program was:" >&5
3734 cat conftest.$ac_ext >&5
3735 rm -rf conftest*
3736 eval "ac_cv_lib_$ac_lib_var=no"
3738 rm -f conftest*
3739 LIBS="$ac_save_LIBS"
3742 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3743 echo "$ac_t""yes" 1>&6
3744 LIBS="$LIBS -ldl";
3745 cat >> confdefs.h <<\EOF
3746 #define HAVE_LIBDL 1
3749 else
3750 echo "$ac_t""no" 1>&6
3754 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
3755 echo "configure:3756: checking for sig_atomic_t type" >&5
3756 if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+set}'`\" = set"; then
3757 echo $ac_n "(cached) $ac_c" 1>&6
3758 else
3760 cat > conftest.$ac_ext <<EOF
3761 #line 3762 "configure"
3762 #include "confdefs.h"
3764 #include <sys/types.h>
3765 #if STDC_HEADERS
3766 #include <stdlib.h>
3767 #include <stddef.h>
3768 #endif
3769 #include <signal.h>
3770 int main() {
3771 sig_atomic_t i = 0
3772 ; return 0; }
3774 if { (eval echo configure:3775: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3775 rm -rf conftest*
3776 samba_cv_sig_atomic_t=yes
3777 else
3778 echo "configure: failed program was:" >&5
3779 cat conftest.$ac_ext >&5
3780 rm -rf conftest*
3781 samba_cv_sig_atomic_t=no
3783 rm -f conftest*
3786 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
3787 if test x"$samba_cv_sig_atomic_t" = x"yes"; then
3788 cat >> confdefs.h <<\EOF
3789 #define HAVE_SIG_ATOMIC_T_TYPE 1
3794 echo $ac_n "checking for errno in errno.h""... $ac_c" 1>&6
3795 echo "configure:3796: checking for errno in errno.h" >&5
3796 if eval "test \"`echo '$''{'samba_cv_errno'+set}'`\" = set"; then
3797 echo $ac_n "(cached) $ac_c" 1>&6
3798 else
3800 cat > conftest.$ac_ext <<EOF
3801 #line 3802 "configure"
3802 #include "confdefs.h"
3803 #include <errno.h>
3804 int main() {
3805 int i = errno
3806 ; return 0; }
3808 if { (eval echo configure:3809: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3809 rm -rf conftest*
3810 samba_cv_errno=yes
3811 else
3812 echo "configure: failed program was:" >&5
3813 cat conftest.$ac_ext >&5
3814 rm -rf conftest*
3815 samba_cv_have_errno=no
3817 rm -f conftest*
3820 echo "$ac_t""$samba_cv_errno" 1>&6
3821 if test x"$samba_cv_errno" = x"yes"; then
3822 cat >> confdefs.h <<\EOF
3823 #define HAVE_ERRNO_DECL 1
3828 # stupid glibc has the functions but no declaration. grrrr.
3829 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
3830 echo "configure:3831: checking for setresuid declaration" >&5
3831 if eval "test \"`echo '$''{'samba_cv_have_setresuid_decl'+set}'`\" = set"; then
3832 echo $ac_n "(cached) $ac_c" 1>&6
3833 else
3835 cat > conftest.$ac_ext <<EOF
3836 #line 3837 "configure"
3837 #include "confdefs.h"
3838 #include <unistd.h>
3839 int main() {
3840 int i = (int)setresuid
3841 ; return 0; }
3843 if { (eval echo configure:3844: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3844 rm -rf conftest*
3845 samba_cv_have_setresuid_decl=yes
3846 else
3847 echo "configure: failed program was:" >&5
3848 cat conftest.$ac_ext >&5
3849 rm -rf conftest*
3850 samba_cv_have_setresuid_decl=no
3852 rm -f conftest*
3855 echo "$ac_t""$samba_cv_have_setresuid_decl" 1>&6
3856 if test x"$samba_cv_have_setresuid_decl" = x"yes"; then
3857 cat >> confdefs.h <<\EOF
3858 #define HAVE_SETRESUID_DECL 1
3863 # stupid glibc has the functions but no declaration. grrrr.
3864 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
3865 echo "configure:3866: checking for setresgid declaration" >&5
3866 if eval "test \"`echo '$''{'samba_cv_have_setresgid_decl'+set}'`\" = set"; then
3867 echo $ac_n "(cached) $ac_c" 1>&6
3868 else
3870 cat > conftest.$ac_ext <<EOF
3871 #line 3872 "configure"
3872 #include "confdefs.h"
3873 #include <unistd.h>
3874 int main() {
3875 int i = (int)setresgid
3876 ; return 0; }
3878 if { (eval echo configure:3879: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3879 rm -rf conftest*
3880 samba_cv_have_setresgid_decl=yes
3881 else
3882 echo "configure: failed program was:" >&5
3883 cat conftest.$ac_ext >&5
3884 rm -rf conftest*
3885 samba_cv_have_setresgid_decl=no
3887 rm -f conftest*
3890 echo "$ac_t""$samba_cv_have_setresgid_decl" 1>&6
3891 if test x"$samba_cv_have_setresgid_decl" = x"yes"; then
3892 cat >> confdefs.h <<\EOF
3893 #define HAVE_SETRESGID_DECL 1
3898 # and glibc has setresuid under linux but the function does
3899 # nothing until kernel 2.1.44! very dumb.
3900 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
3901 echo "configure:3902: checking for real setresuid" >&5
3902 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
3903 echo $ac_n "(cached) $ac_c" 1>&6
3904 else
3906 if test "$cross_compiling" = yes; then
3907 samba_cv_have_setresuid=cross
3908 else
3909 cat > conftest.$ac_ext <<EOF
3910 #line 3911 "configure"
3911 #include "confdefs.h"
3912 #include <errno.h>
3913 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
3915 if { (eval echo configure:3916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3916 then
3917 samba_cv_have_setresuid=yes
3918 else
3919 echo "configure: failed program was:" >&5
3920 cat conftest.$ac_ext >&5
3921 rm -fr conftest*
3922 samba_cv_have_setresuid=no
3924 rm -fr conftest*
3929 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
3930 if test x"$samba_cv_have_setresuid" = x"yes"; then
3931 cat >> confdefs.h <<\EOF
3932 #define HAVE_SETRESUID 1
3937 # Do the same check for setresguid...
3939 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
3940 echo "configure:3941: checking for real setresgid" >&5
3941 if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then
3942 echo $ac_n "(cached) $ac_c" 1>&6
3943 else
3945 if test "$cross_compiling" = yes; then
3946 samba_cv_have_setresgid=cross
3947 else
3948 cat > conftest.$ac_ext <<EOF
3949 #line 3950 "configure"
3950 #include "confdefs.h"
3951 #include <unistd.h>
3952 #include <errno.h>
3953 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
3955 if { (eval echo configure:3956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3956 then
3957 samba_cv_have_setresgid=yes
3958 else
3959 echo "configure: failed program was:" >&5
3960 cat conftest.$ac_ext >&5
3961 rm -fr conftest*
3962 samba_cv_have_setresgid=no
3964 rm -fr conftest*
3969 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
3970 if test x"$samba_cv_have_setresgid" = x"yes"; then
3971 cat >> confdefs.h <<\EOF
3972 #define HAVE_SETRESGID 1
3977 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
3978 echo "configure:3979: checking for 8-bit clean memcmp" >&5
3979 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
3980 echo $ac_n "(cached) $ac_c" 1>&6
3981 else
3982 if test "$cross_compiling" = yes; then
3983 ac_cv_func_memcmp_clean=no
3984 else
3985 cat > conftest.$ac_ext <<EOF
3986 #line 3987 "configure"
3987 #include "confdefs.h"
3989 main()
3991 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
3992 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
3996 if { (eval echo configure:3997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3997 then
3998 ac_cv_func_memcmp_clean=yes
3999 else
4000 echo "configure: failed program was:" >&5
4001 cat conftest.$ac_ext >&5
4002 rm -fr conftest*
4003 ac_cv_func_memcmp_clean=no
4005 rm -fr conftest*
4010 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
4011 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
4014 ###############################################
4015 # test for where we get crypt() from
4016 for ac_func in crypt
4018 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4019 echo "configure:4020: checking for $ac_func" >&5
4020 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4021 echo $ac_n "(cached) $ac_c" 1>&6
4022 else
4023 cat > conftest.$ac_ext <<EOF
4024 #line 4025 "configure"
4025 #include "confdefs.h"
4026 /* System header to define __stub macros and hopefully few prototypes,
4027 which can conflict with char $ac_func(); below. */
4028 #include <assert.h>
4029 /* Override any gcc2 internal prototype to avoid an error. */
4030 /* We use char because int might match the return type of a gcc2
4031 builtin and then its argument prototype would still apply. */
4032 char $ac_func();
4034 int main() {
4036 /* The GNU C library defines this for functions which it implements
4037 to always fail with ENOSYS. Some functions are actually named
4038 something starting with __ and the normal name is an alias. */
4039 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4040 choke me
4041 #else
4042 $ac_func();
4043 #endif
4045 ; return 0; }
4047 if { (eval echo configure:4048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4048 rm -rf conftest*
4049 eval "ac_cv_func_$ac_func=yes"
4050 else
4051 echo "configure: failed program was:" >&5
4052 cat conftest.$ac_ext >&5
4053 rm -rf conftest*
4054 eval "ac_cv_func_$ac_func=no"
4056 rm -f conftest*
4059 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4060 echo "$ac_t""yes" 1>&6
4061 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4062 cat >> confdefs.h <<EOF
4063 #define $ac_tr_func 1
4066 else
4067 echo "$ac_t""no" 1>&6
4069 done
4071 if test x"$ac_cv_func_crypt" = x"no"; then
4072 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
4073 echo "configure:4074: checking for crypt in -lcrypt" >&5
4074 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
4075 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4076 echo $ac_n "(cached) $ac_c" 1>&6
4077 else
4078 ac_save_LIBS="$LIBS"
4079 LIBS="-lcrypt $LIBS"
4080 cat > conftest.$ac_ext <<EOF
4081 #line 4082 "configure"
4082 #include "confdefs.h"
4083 /* Override any gcc2 internal prototype to avoid an error. */
4084 /* We use char because int might match the return type of a gcc2
4085 builtin and then its argument prototype would still apply. */
4086 char crypt();
4088 int main() {
4089 crypt()
4090 ; return 0; }
4092 if { (eval echo configure:4093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4093 rm -rf conftest*
4094 eval "ac_cv_lib_$ac_lib_var=yes"
4095 else
4096 echo "configure: failed program was:" >&5
4097 cat conftest.$ac_ext >&5
4098 rm -rf conftest*
4099 eval "ac_cv_lib_$ac_lib_var=no"
4101 rm -f conftest*
4102 LIBS="$ac_save_LIBS"
4105 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4106 echo "$ac_t""yes" 1>&6
4107 LIBS="$LIBS -lcrypt";
4108 cat >> confdefs.h <<\EOF
4109 #define HAVE_CRYPT 1
4112 else
4113 echo "$ac_t""no" 1>&6
4119 ###############################################
4120 # test for where we get readline() from
4121 if test "$ac_cv_header_readline_h" = "yes" ||
4122 test "$ac_cv_header_readline_readline_h" = "yes"; then
4123 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
4124 echo "configure:4125: checking for readline in -lreadline" >&5
4125 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
4126 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4127 echo $ac_n "(cached) $ac_c" 1>&6
4128 else
4129 ac_save_LIBS="$LIBS"
4130 LIBS="-lreadline $LIBS"
4131 cat > conftest.$ac_ext <<EOF
4132 #line 4133 "configure"
4133 #include "confdefs.h"
4134 /* Override any gcc2 internal prototype to avoid an error. */
4135 /* We use char because int might match the return type of a gcc2
4136 builtin and then its argument prototype would still apply. */
4137 char readline();
4139 int main() {
4140 readline()
4141 ; return 0; }
4143 if { (eval echo configure:4144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4144 rm -rf conftest*
4145 eval "ac_cv_lib_$ac_lib_var=yes"
4146 else
4147 echo "configure: failed program was:" >&5
4148 cat conftest.$ac_ext >&5
4149 rm -rf conftest*
4150 eval "ac_cv_lib_$ac_lib_var=no"
4152 rm -f conftest*
4153 LIBS="$ac_save_LIBS"
4156 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4157 echo "$ac_t""yes" 1>&6
4158 ac_tr_lib=HAVE_LIB`echo readline | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4159 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4160 cat >> confdefs.h <<EOF
4161 #define $ac_tr_lib 1
4164 LIBS="-lreadline $LIBS"
4166 else
4167 echo "$ac_t""no" 1>&6
4173 # The following test taken from the cvs sources
4174 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
4175 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
4176 # libsocket.so which has a bad implementation of gethostbyname (it
4177 # only looks in /etc/hosts), so we only look for -lsocket if we need
4178 # it.
4179 for ac_func in connect
4181 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4182 echo "configure:4183: checking for $ac_func" >&5
4183 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4184 echo $ac_n "(cached) $ac_c" 1>&6
4185 else
4186 cat > conftest.$ac_ext <<EOF
4187 #line 4188 "configure"
4188 #include "confdefs.h"
4189 /* System header to define __stub macros and hopefully few prototypes,
4190 which can conflict with char $ac_func(); below. */
4191 #include <assert.h>
4192 /* Override any gcc2 internal prototype to avoid an error. */
4193 /* We use char because int might match the return type of a gcc2
4194 builtin and then its argument prototype would still apply. */
4195 char $ac_func();
4197 int main() {
4199 /* The GNU C library defines this for functions which it implements
4200 to always fail with ENOSYS. Some functions are actually named
4201 something starting with __ and the normal name is an alias. */
4202 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4203 choke me
4204 #else
4205 $ac_func();
4206 #endif
4208 ; return 0; }
4210 if { (eval echo configure:4211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4211 rm -rf conftest*
4212 eval "ac_cv_func_$ac_func=yes"
4213 else
4214 echo "configure: failed program was:" >&5
4215 cat conftest.$ac_ext >&5
4216 rm -rf conftest*
4217 eval "ac_cv_func_$ac_func=no"
4219 rm -f conftest*
4222 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4223 echo "$ac_t""yes" 1>&6
4224 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4225 cat >> confdefs.h <<EOF
4226 #define $ac_tr_func 1
4229 else
4230 echo "$ac_t""no" 1>&6
4232 done
4234 if test x"$ac_cv_func_connect" = x"no"; then
4235 case "$LIBS" in
4236 *-lnsl*) ;;
4237 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
4238 echo "configure:4239: checking for printf in -lnsl_s" >&5
4239 ac_lib_var=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
4240 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4241 echo $ac_n "(cached) $ac_c" 1>&6
4242 else
4243 ac_save_LIBS="$LIBS"
4244 LIBS="-lnsl_s $LIBS"
4245 cat > conftest.$ac_ext <<EOF
4246 #line 4247 "configure"
4247 #include "confdefs.h"
4248 /* Override any gcc2 internal prototype to avoid an error. */
4249 /* We use char because int might match the return type of a gcc2
4250 builtin and then its argument prototype would still apply. */
4251 char printf();
4253 int main() {
4254 printf()
4255 ; return 0; }
4257 if { (eval echo configure:4258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4258 rm -rf conftest*
4259 eval "ac_cv_lib_$ac_lib_var=yes"
4260 else
4261 echo "configure: failed program was:" >&5
4262 cat conftest.$ac_ext >&5
4263 rm -rf conftest*
4264 eval "ac_cv_lib_$ac_lib_var=no"
4266 rm -f conftest*
4267 LIBS="$ac_save_LIBS"
4270 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4271 echo "$ac_t""yes" 1>&6
4272 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4273 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4274 cat >> confdefs.h <<EOF
4275 #define $ac_tr_lib 1
4278 LIBS="-lnsl_s $LIBS"
4280 else
4281 echo "$ac_t""no" 1>&6
4284 esac
4285 case "$LIBS" in
4286 *-lnsl*) ;;
4287 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
4288 echo "configure:4289: checking for printf in -lnsl" >&5
4289 ac_lib_var=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
4290 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4291 echo $ac_n "(cached) $ac_c" 1>&6
4292 else
4293 ac_save_LIBS="$LIBS"
4294 LIBS="-lnsl $LIBS"
4295 cat > conftest.$ac_ext <<EOF
4296 #line 4297 "configure"
4297 #include "confdefs.h"
4298 /* Override any gcc2 internal prototype to avoid an error. */
4299 /* We use char because int might match the return type of a gcc2
4300 builtin and then its argument prototype would still apply. */
4301 char printf();
4303 int main() {
4304 printf()
4305 ; return 0; }
4307 if { (eval echo configure:4308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4308 rm -rf conftest*
4309 eval "ac_cv_lib_$ac_lib_var=yes"
4310 else
4311 echo "configure: failed program was:" >&5
4312 cat conftest.$ac_ext >&5
4313 rm -rf conftest*
4314 eval "ac_cv_lib_$ac_lib_var=no"
4316 rm -f conftest*
4317 LIBS="$ac_save_LIBS"
4320 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4321 echo "$ac_t""yes" 1>&6
4322 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4323 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4324 cat >> confdefs.h <<EOF
4325 #define $ac_tr_lib 1
4328 LIBS="-lnsl $LIBS"
4330 else
4331 echo "$ac_t""no" 1>&6
4334 esac
4335 case "$LIBS" in
4336 *-lsocket*) ;;
4337 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
4338 echo "configure:4339: checking for connect in -lsocket" >&5
4339 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
4340 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4341 echo $ac_n "(cached) $ac_c" 1>&6
4342 else
4343 ac_save_LIBS="$LIBS"
4344 LIBS="-lsocket $LIBS"
4345 cat > conftest.$ac_ext <<EOF
4346 #line 4347 "configure"
4347 #include "confdefs.h"
4348 /* Override any gcc2 internal prototype to avoid an error. */
4349 /* We use char because int might match the return type of a gcc2
4350 builtin and then its argument prototype would still apply. */
4351 char connect();
4353 int main() {
4354 connect()
4355 ; return 0; }
4357 if { (eval echo configure:4358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4358 rm -rf conftest*
4359 eval "ac_cv_lib_$ac_lib_var=yes"
4360 else
4361 echo "configure: failed program was:" >&5
4362 cat conftest.$ac_ext >&5
4363 rm -rf conftest*
4364 eval "ac_cv_lib_$ac_lib_var=no"
4366 rm -f conftest*
4367 LIBS="$ac_save_LIBS"
4370 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4371 echo "$ac_t""yes" 1>&6
4372 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4373 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4374 cat >> confdefs.h <<EOF
4375 #define $ac_tr_lib 1
4378 LIBS="-lsocket $LIBS"
4380 else
4381 echo "$ac_t""no" 1>&6
4384 esac
4385 case "$LIBS" in
4386 *-linet*) ;;
4387 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
4388 echo "configure:4389: checking for connect in -linet" >&5
4389 ac_lib_var=`echo inet'_'connect | sed 'y%./+-%__p_%'`
4390 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4391 echo $ac_n "(cached) $ac_c" 1>&6
4392 else
4393 ac_save_LIBS="$LIBS"
4394 LIBS="-linet $LIBS"
4395 cat > conftest.$ac_ext <<EOF
4396 #line 4397 "configure"
4397 #include "confdefs.h"
4398 /* Override any gcc2 internal prototype to avoid an error. */
4399 /* We use char because int might match the return type of a gcc2
4400 builtin and then its argument prototype would still apply. */
4401 char connect();
4403 int main() {
4404 connect()
4405 ; return 0; }
4407 if { (eval echo configure:4408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4408 rm -rf conftest*
4409 eval "ac_cv_lib_$ac_lib_var=yes"
4410 else
4411 echo "configure: failed program was:" >&5
4412 cat conftest.$ac_ext >&5
4413 rm -rf conftest*
4414 eval "ac_cv_lib_$ac_lib_var=no"
4416 rm -f conftest*
4417 LIBS="$ac_save_LIBS"
4420 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4421 echo "$ac_t""yes" 1>&6
4422 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4423 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4424 cat >> confdefs.h <<EOF
4425 #define $ac_tr_lib 1
4428 LIBS="-linet $LIBS"
4430 else
4431 echo "$ac_t""no" 1>&6
4434 esac
4435 if test x"$ac_cv_lib_socket_connect" = x"yes" ||
4436 test x"$ac_cv_lib_inet_connect" = x"yes"; then
4437 # ac_cv_func_connect=yes
4438 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
4439 cat >> confdefs.h <<\EOF
4440 #define HAVE_CONNECT 1
4446 ###############################################
4447 # test for where we get get_yp_default_domain() from
4448 for ac_func in yp_get_default_domain
4450 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4451 echo "configure:4452: checking for $ac_func" >&5
4452 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4453 echo $ac_n "(cached) $ac_c" 1>&6
4454 else
4455 cat > conftest.$ac_ext <<EOF
4456 #line 4457 "configure"
4457 #include "confdefs.h"
4458 /* System header to define __stub macros and hopefully few prototypes,
4459 which can conflict with char $ac_func(); below. */
4460 #include <assert.h>
4461 /* Override any gcc2 internal prototype to avoid an error. */
4462 /* We use char because int might match the return type of a gcc2
4463 builtin and then its argument prototype would still apply. */
4464 char $ac_func();
4466 int main() {
4468 /* The GNU C library defines this for functions which it implements
4469 to always fail with ENOSYS. Some functions are actually named
4470 something starting with __ and the normal name is an alias. */
4471 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4472 choke me
4473 #else
4474 $ac_func();
4475 #endif
4477 ; return 0; }
4479 if { (eval echo configure:4480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4480 rm -rf conftest*
4481 eval "ac_cv_func_$ac_func=yes"
4482 else
4483 echo "configure: failed program was:" >&5
4484 cat conftest.$ac_ext >&5
4485 rm -rf conftest*
4486 eval "ac_cv_func_$ac_func=no"
4488 rm -f conftest*
4491 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4492 echo "$ac_t""yes" 1>&6
4493 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4494 cat >> confdefs.h <<EOF
4495 #define $ac_tr_func 1
4498 else
4499 echo "$ac_t""no" 1>&6
4501 done
4503 if test x"$ac_cv_func_yp_get_default_domain" = x"no"; then
4504 echo $ac_n "checking for yp_get_default_domain in -lnsl""... $ac_c" 1>&6
4505 echo "configure:4506: checking for yp_get_default_domain in -lnsl" >&5
4506 ac_lib_var=`echo nsl'_'yp_get_default_domain | 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="-lnsl $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 yp_get_default_domain();
4520 int main() {
4521 yp_get_default_domain()
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 LIBS="$LIBS -lnsl";
4540 cat >> confdefs.h <<\EOF
4541 #define HAVE_YP_GET_DEFAULT_DOMAIN 1
4544 else
4545 echo "$ac_t""no" 1>&6
4550 # Check if we have execl, if not we need to compile smbrun.
4551 for ac_func in execl
4553 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4554 echo "configure:4555: checking for $ac_func" >&5
4555 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4556 echo $ac_n "(cached) $ac_c" 1>&6
4557 else
4558 cat > conftest.$ac_ext <<EOF
4559 #line 4560 "configure"
4560 #include "confdefs.h"
4561 /* System header to define __stub macros and hopefully few prototypes,
4562 which can conflict with char $ac_func(); below. */
4563 #include <assert.h>
4564 /* Override any gcc2 internal prototype to avoid an error. */
4565 /* We use char because int might match the return type of a gcc2
4566 builtin and then its argument prototype would still apply. */
4567 char $ac_func();
4569 int main() {
4571 /* The GNU C library defines this for functions which it implements
4572 to always fail with ENOSYS. Some functions are actually named
4573 something starting with __ and the normal name is an alias. */
4574 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4575 choke me
4576 #else
4577 $ac_func();
4578 #endif
4580 ; return 0; }
4582 if { (eval echo configure:4583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4583 rm -rf conftest*
4584 eval "ac_cv_func_$ac_func=yes"
4585 else
4586 echo "configure: failed program was:" >&5
4587 cat conftest.$ac_ext >&5
4588 rm -rf conftest*
4589 eval "ac_cv_func_$ac_func=no"
4591 rm -f conftest*
4594 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4595 echo "$ac_t""yes" 1>&6
4596 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4597 cat >> confdefs.h <<EOF
4598 #define $ac_tr_func 1
4601 else
4602 echo "$ac_t""no" 1>&6
4604 done
4606 if test x"$ac_cv_func_execl" = x"no"; then
4607 RUNPROG="bin/smbrun"
4608 else
4609 RUNPROG=""
4612 for ac_func in waitpid getcwd strdup strtoul strerror chown chmod chroot
4614 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4615 echo "configure:4616: checking for $ac_func" >&5
4616 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4617 echo $ac_n "(cached) $ac_c" 1>&6
4618 else
4619 cat > conftest.$ac_ext <<EOF
4620 #line 4621 "configure"
4621 #include "confdefs.h"
4622 /* System header to define __stub macros and hopefully few prototypes,
4623 which can conflict with char $ac_func(); below. */
4624 #include <assert.h>
4625 /* Override any gcc2 internal prototype to avoid an error. */
4626 /* We use char because int might match the return type of a gcc2
4627 builtin and then its argument prototype would still apply. */
4628 char $ac_func();
4630 int main() {
4632 /* The GNU C library defines this for functions which it implements
4633 to always fail with ENOSYS. Some functions are actually named
4634 something starting with __ and the normal name is an alias. */
4635 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4636 choke me
4637 #else
4638 $ac_func();
4639 #endif
4641 ; return 0; }
4643 if { (eval echo configure:4644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4644 rm -rf conftest*
4645 eval "ac_cv_func_$ac_func=yes"
4646 else
4647 echo "configure: failed program was:" >&5
4648 cat conftest.$ac_ext >&5
4649 rm -rf conftest*
4650 eval "ac_cv_func_$ac_func=no"
4652 rm -f conftest*
4655 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4656 echo "$ac_t""yes" 1>&6
4657 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4658 cat >> confdefs.h <<EOF
4659 #define $ac_tr_func 1
4662 else
4663 echo "$ac_t""no" 1>&6
4665 done
4667 for ac_func in fstat strchr utime utimes getrlimit fsync bzero memset
4669 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4670 echo "configure:4671: checking for $ac_func" >&5
4671 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4672 echo $ac_n "(cached) $ac_c" 1>&6
4673 else
4674 cat > conftest.$ac_ext <<EOF
4675 #line 4676 "configure"
4676 #include "confdefs.h"
4677 /* System header to define __stub macros and hopefully few prototypes,
4678 which can conflict with char $ac_func(); below. */
4679 #include <assert.h>
4680 /* Override any gcc2 internal prototype to avoid an error. */
4681 /* We use char because int might match the return type of a gcc2
4682 builtin and then its argument prototype would still apply. */
4683 char $ac_func();
4685 int main() {
4687 /* The GNU C library defines this for functions which it implements
4688 to always fail with ENOSYS. Some functions are actually named
4689 something starting with __ and the normal name is an alias. */
4690 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4691 choke me
4692 #else
4693 $ac_func();
4694 #endif
4696 ; return 0; }
4698 if { (eval echo configure:4699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4699 rm -rf conftest*
4700 eval "ac_cv_func_$ac_func=yes"
4701 else
4702 echo "configure: failed program was:" >&5
4703 cat conftest.$ac_ext >&5
4704 rm -rf conftest*
4705 eval "ac_cv_func_$ac_func=no"
4707 rm -f conftest*
4710 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4711 echo "$ac_t""yes" 1>&6
4712 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4713 cat >> confdefs.h <<EOF
4714 #define $ac_tr_func 1
4717 else
4718 echo "$ac_t""no" 1>&6
4720 done
4722 for ac_func in memmove vsnprintf snprintf setsid glob strpbrk pipe crypt16 getauthuid
4724 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4725 echo "configure:4726: checking for $ac_func" >&5
4726 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4727 echo $ac_n "(cached) $ac_c" 1>&6
4728 else
4729 cat > conftest.$ac_ext <<EOF
4730 #line 4731 "configure"
4731 #include "confdefs.h"
4732 /* System header to define __stub macros and hopefully few prototypes,
4733 which can conflict with char $ac_func(); below. */
4734 #include <assert.h>
4735 /* Override any gcc2 internal prototype to avoid an error. */
4736 /* We use char because int might match the return type of a gcc2
4737 builtin and then its argument prototype would still apply. */
4738 char $ac_func();
4740 int main() {
4742 /* The GNU C library defines this for functions which it implements
4743 to always fail with ENOSYS. Some functions are actually named
4744 something starting with __ and the normal name is an alias. */
4745 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4746 choke me
4747 #else
4748 $ac_func();
4749 #endif
4751 ; return 0; }
4753 if { (eval echo configure:4754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4754 rm -rf conftest*
4755 eval "ac_cv_func_$ac_func=yes"
4756 else
4757 echo "configure: failed program was:" >&5
4758 cat conftest.$ac_ext >&5
4759 rm -rf conftest*
4760 eval "ac_cv_func_$ac_func=no"
4762 rm -f conftest*
4765 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4766 echo "$ac_t""yes" 1>&6
4767 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4768 cat >> confdefs.h <<EOF
4769 #define $ac_tr_func 1
4772 else
4773 echo "$ac_t""no" 1>&6
4775 done
4777 for ac_func in strftime sigprocmask sigblock sigaction innetgr setnetgrent getnetgrent endnetgrent
4779 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4780 echo "configure:4781: checking for $ac_func" >&5
4781 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4782 echo $ac_n "(cached) $ac_c" 1>&6
4783 else
4784 cat > conftest.$ac_ext <<EOF
4785 #line 4786 "configure"
4786 #include "confdefs.h"
4787 /* System header to define __stub macros and hopefully few prototypes,
4788 which can conflict with char $ac_func(); below. */
4789 #include <assert.h>
4790 /* Override any gcc2 internal prototype to avoid an error. */
4791 /* We use char because int might match the return type of a gcc2
4792 builtin and then its argument prototype would still apply. */
4793 char $ac_func();
4795 int main() {
4797 /* The GNU C library defines this for functions which it implements
4798 to always fail with ENOSYS. Some functions are actually named
4799 something starting with __ and the normal name is an alias. */
4800 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4801 choke me
4802 #else
4803 $ac_func();
4804 #endif
4806 ; return 0; }
4808 if { (eval echo configure:4809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4809 rm -rf conftest*
4810 eval "ac_cv_func_$ac_func=yes"
4811 else
4812 echo "configure: failed program was:" >&5
4813 cat conftest.$ac_ext >&5
4814 rm -rf conftest*
4815 eval "ac_cv_func_$ac_func=no"
4817 rm -f conftest*
4820 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4821 echo "$ac_t""yes" 1>&6
4822 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4823 cat >> confdefs.h <<EOF
4824 #define $ac_tr_func 1
4827 else
4828 echo "$ac_t""no" 1>&6
4830 done
4832 for ac_func in initgroups select poll rdchk getgrnam getgrent pathconf
4834 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4835 echo "configure:4836: checking for $ac_func" >&5
4836 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4837 echo $ac_n "(cached) $ac_c" 1>&6
4838 else
4839 cat > conftest.$ac_ext <<EOF
4840 #line 4841 "configure"
4841 #include "confdefs.h"
4842 /* System header to define __stub macros and hopefully few prototypes,
4843 which can conflict with char $ac_func(); below. */
4844 #include <assert.h>
4845 /* Override any gcc2 internal prototype to avoid an error. */
4846 /* We use char because int might match the return type of a gcc2
4847 builtin and then its argument prototype would still apply. */
4848 char $ac_func();
4850 int main() {
4852 /* The GNU C library defines this for functions which it implements
4853 to always fail with ENOSYS. Some functions are actually named
4854 something starting with __ and the normal name is an alias. */
4855 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4856 choke me
4857 #else
4858 $ac_func();
4859 #endif
4861 ; return 0; }
4863 if { (eval echo configure:4864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4864 rm -rf conftest*
4865 eval "ac_cv_func_$ac_func=yes"
4866 else
4867 echo "configure: failed program was:" >&5
4868 cat conftest.$ac_ext >&5
4869 rm -rf conftest*
4870 eval "ac_cv_func_$ac_func=no"
4872 rm -f conftest*
4875 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4876 echo "$ac_t""yes" 1>&6
4877 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4878 cat >> confdefs.h <<EOF
4879 #define $ac_tr_func 1
4882 else
4883 echo "$ac_t""no" 1>&6
4885 done
4887 for ac_func in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
4889 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4890 echo "configure:4891: checking for $ac_func" >&5
4891 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4892 echo $ac_n "(cached) $ac_c" 1>&6
4893 else
4894 cat > conftest.$ac_ext <<EOF
4895 #line 4896 "configure"
4896 #include "confdefs.h"
4897 /* System header to define __stub macros and hopefully few prototypes,
4898 which can conflict with char $ac_func(); below. */
4899 #include <assert.h>
4900 /* Override any gcc2 internal prototype to avoid an error. */
4901 /* We use char because int might match the return type of a gcc2
4902 builtin and then its argument prototype would still apply. */
4903 char $ac_func();
4905 int main() {
4907 /* The GNU C library defines this for functions which it implements
4908 to always fail with ENOSYS. Some functions are actually named
4909 something starting with __ and the normal name is an alias. */
4910 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4911 choke me
4912 #else
4913 $ac_func();
4914 #endif
4916 ; return 0; }
4918 if { (eval echo configure:4919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4919 rm -rf conftest*
4920 eval "ac_cv_func_$ac_func=yes"
4921 else
4922 echo "configure: failed program was:" >&5
4923 cat conftest.$ac_ext >&5
4924 rm -rf conftest*
4925 eval "ac_cv_func_$ac_func=no"
4927 rm -f conftest*
4930 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4931 echo "$ac_t""yes" 1>&6
4932 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4933 cat >> confdefs.h <<EOF
4934 #define $ac_tr_func 1
4937 else
4938 echo "$ac_t""no" 1>&6
4940 done
4942 for ac_func in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
4944 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4945 echo "configure:4946: checking for $ac_func" >&5
4946 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4947 echo $ac_n "(cached) $ac_c" 1>&6
4948 else
4949 cat > conftest.$ac_ext <<EOF
4950 #line 4951 "configure"
4951 #include "confdefs.h"
4952 /* System header to define __stub macros and hopefully few prototypes,
4953 which can conflict with char $ac_func(); below. */
4954 #include <assert.h>
4955 /* Override any gcc2 internal prototype to avoid an error. */
4956 /* We use char because int might match the return type of a gcc2
4957 builtin and then its argument prototype would still apply. */
4958 char $ac_func();
4960 int main() {
4962 /* The GNU C library defines this for functions which it implements
4963 to always fail with ENOSYS. Some functions are actually named
4964 something starting with __ and the normal name is an alias. */
4965 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4966 choke me
4967 #else
4968 $ac_func();
4969 #endif
4971 ; return 0; }
4973 if { (eval echo configure:4974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4974 rm -rf conftest*
4975 eval "ac_cv_func_$ac_func=yes"
4976 else
4977 echo "configure: failed program was:" >&5
4978 cat conftest.$ac_ext >&5
4979 rm -rf conftest*
4980 eval "ac_cv_func_$ac_func=no"
4982 rm -f conftest*
4985 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4986 echo "$ac_t""yes" 1>&6
4987 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4988 cat >> confdefs.h <<EOF
4989 #define $ac_tr_func 1
4992 else
4993 echo "$ac_t""no" 1>&6
4995 done
4997 for ac_func in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam
4999 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5000 echo "configure:5001: checking for $ac_func" >&5
5001 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5002 echo $ac_n "(cached) $ac_c" 1>&6
5003 else
5004 cat > conftest.$ac_ext <<EOF
5005 #line 5006 "configure"
5006 #include "confdefs.h"
5007 /* System header to define __stub macros and hopefully few prototypes,
5008 which can conflict with char $ac_func(); below. */
5009 #include <assert.h>
5010 /* Override any gcc2 internal prototype to avoid an error. */
5011 /* We use char because int might match the return type of a gcc2
5012 builtin and then its argument prototype would still apply. */
5013 char $ac_func();
5015 int main() {
5017 /* The GNU C library defines this for functions which it implements
5018 to always fail with ENOSYS. Some functions are actually named
5019 something starting with __ and the normal name is an alias. */
5020 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5021 choke me
5022 #else
5023 $ac_func();
5024 #endif
5026 ; return 0; }
5028 if { (eval echo configure:5029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5029 rm -rf conftest*
5030 eval "ac_cv_func_$ac_func=yes"
5031 else
5032 echo "configure: failed program was:" >&5
5033 cat conftest.$ac_ext >&5
5034 rm -rf conftest*
5035 eval "ac_cv_func_$ac_func=no"
5037 rm -f conftest*
5040 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5041 echo "$ac_t""yes" 1>&6
5042 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5043 cat >> confdefs.h <<EOF
5044 #define $ac_tr_func 1
5047 else
5048 echo "$ac_t""no" 1>&6
5050 done
5052 for ac_func in srandom random srand rand setenv usleep strcasecmp fcvt fcvtl
5054 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5055 echo "configure:5056: checking for $ac_func" >&5
5056 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5057 echo $ac_n "(cached) $ac_c" 1>&6
5058 else
5059 cat > conftest.$ac_ext <<EOF
5060 #line 5061 "configure"
5061 #include "confdefs.h"
5062 /* System header to define __stub macros and hopefully few prototypes,
5063 which can conflict with char $ac_func(); below. */
5064 #include <assert.h>
5065 /* Override any gcc2 internal prototype to avoid an error. */
5066 /* We use char because int might match the return type of a gcc2
5067 builtin and then its argument prototype would still apply. */
5068 char $ac_func();
5070 int main() {
5072 /* The GNU C library defines this for functions which it implements
5073 to always fail with ENOSYS. Some functions are actually named
5074 something starting with __ and the normal name is an alias. */
5075 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5076 choke me
5077 #else
5078 $ac_func();
5079 #endif
5081 ; return 0; }
5083 if { (eval echo configure:5084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5084 rm -rf conftest*
5085 eval "ac_cv_func_$ac_func=yes"
5086 else
5087 echo "configure: failed program was:" >&5
5088 cat conftest.$ac_ext >&5
5089 rm -rf conftest*
5090 eval "ac_cv_func_$ac_func=no"
5092 rm -f conftest*
5095 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5096 echo "$ac_t""yes" 1>&6
5097 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5098 cat >> confdefs.h <<EOF
5099 #define $ac_tr_func 1
5102 else
5103 echo "$ac_t""no" 1>&6
5105 done
5108 # syscall() is needed for smbwrapper.
5109 for ac_func in syscall
5111 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5112 echo "configure:5113: checking for $ac_func" >&5
5113 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5114 echo $ac_n "(cached) $ac_c" 1>&6
5115 else
5116 cat > conftest.$ac_ext <<EOF
5117 #line 5118 "configure"
5118 #include "confdefs.h"
5119 /* System header to define __stub macros and hopefully few prototypes,
5120 which can conflict with char $ac_func(); below. */
5121 #include <assert.h>
5122 /* Override any gcc2 internal prototype to avoid an error. */
5123 /* We use char because int might match the return type of a gcc2
5124 builtin and then its argument prototype would still apply. */
5125 char $ac_func();
5127 int main() {
5129 /* The GNU C library defines this for functions which it implements
5130 to always fail with ENOSYS. Some functions are actually named
5131 something starting with __ and the normal name is an alias. */
5132 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5133 choke me
5134 #else
5135 $ac_func();
5136 #endif
5138 ; return 0; }
5140 if { (eval echo configure:5141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5141 rm -rf conftest*
5142 eval "ac_cv_func_$ac_func=yes"
5143 else
5144 echo "configure: failed program was:" >&5
5145 cat conftest.$ac_ext >&5
5146 rm -rf conftest*
5147 eval "ac_cv_func_$ac_func=no"
5149 rm -f conftest*
5152 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5153 echo "$ac_t""yes" 1>&6
5154 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5155 cat >> confdefs.h <<EOF
5156 #define $ac_tr_func 1
5159 else
5160 echo "$ac_t""no" 1>&6
5162 done
5165 for ac_func in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
5167 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5168 echo "configure:5169: checking for $ac_func" >&5
5169 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5170 echo $ac_n "(cached) $ac_c" 1>&6
5171 else
5172 cat > conftest.$ac_ext <<EOF
5173 #line 5174 "configure"
5174 #include "confdefs.h"
5175 /* System header to define __stub macros and hopefully few prototypes,
5176 which can conflict with char $ac_func(); below. */
5177 #include <assert.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 $ac_func();
5183 int main() {
5185 /* The GNU C library defines this for functions which it implements
5186 to always fail with ENOSYS. Some functions are actually named
5187 something starting with __ and the normal name is an alias. */
5188 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5189 choke me
5190 #else
5191 $ac_func();
5192 #endif
5194 ; return 0; }
5196 if { (eval echo configure:5197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5197 rm -rf conftest*
5198 eval "ac_cv_func_$ac_func=yes"
5199 else
5200 echo "configure: failed program was:" >&5
5201 cat conftest.$ac_ext >&5
5202 rm -rf conftest*
5203 eval "ac_cv_func_$ac_func=no"
5205 rm -f conftest*
5208 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5209 echo "$ac_t""yes" 1>&6
5210 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5211 cat >> confdefs.h <<EOF
5212 #define $ac_tr_func 1
5215 else
5216 echo "$ac_t""no" 1>&6
5218 done
5220 for ac_func in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
5222 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5223 echo "configure:5224: checking for $ac_func" >&5
5224 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5225 echo $ac_n "(cached) $ac_c" 1>&6
5226 else
5227 cat > conftest.$ac_ext <<EOF
5228 #line 5229 "configure"
5229 #include "confdefs.h"
5230 /* System header to define __stub macros and hopefully few prototypes,
5231 which can conflict with char $ac_func(); below. */
5232 #include <assert.h>
5233 /* Override any gcc2 internal prototype to avoid an error. */
5234 /* We use char because int might match the return type of a gcc2
5235 builtin and then its argument prototype would still apply. */
5236 char $ac_func();
5238 int main() {
5240 /* The GNU C library defines this for functions which it implements
5241 to always fail with ENOSYS. Some functions are actually named
5242 something starting with __ and the normal name is an alias. */
5243 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5244 choke me
5245 #else
5246 $ac_func();
5247 #endif
5249 ; return 0; }
5251 if { (eval echo configure:5252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5252 rm -rf conftest*
5253 eval "ac_cv_func_$ac_func=yes"
5254 else
5255 echo "configure: failed program was:" >&5
5256 cat conftest.$ac_ext >&5
5257 rm -rf conftest*
5258 eval "ac_cv_func_$ac_func=no"
5260 rm -f conftest*
5263 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5264 echo "$ac_t""yes" 1>&6
5265 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5266 cat >> confdefs.h <<EOF
5267 #define $ac_tr_func 1
5270 else
5271 echo "$ac_t""no" 1>&6
5273 done
5275 for ac_func in __getcwd _getcwd
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 __xstat __fxstat __lxstat
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 _stat _lstat _fstat __stat __lstat __fstat
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 _acl __acl _facl __facl _open __open _chdir __chdir
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 _close __close _fchdir __fchdir _fcntl __fcntl
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 getdents _getdents __getdents _lseek __lseek _read __read
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 _write __write _fork __fork
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 _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
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 __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
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 pread _pread __pread pread64 _pread64 __pread64
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
5825 for ac_func in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
5827 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5828 echo "configure:5829: checking for $ac_func" >&5
5829 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5830 echo $ac_n "(cached) $ac_c" 1>&6
5831 else
5832 cat > conftest.$ac_ext <<EOF
5833 #line 5834 "configure"
5834 #include "confdefs.h"
5835 /* System header to define __stub macros and hopefully few prototypes,
5836 which can conflict with char $ac_func(); below. */
5837 #include <assert.h>
5838 /* Override any gcc2 internal prototype to avoid an error. */
5839 /* We use char because int might match the return type of a gcc2
5840 builtin and then its argument prototype would still apply. */
5841 char $ac_func();
5843 int main() {
5845 /* The GNU C library defines this for functions which it implements
5846 to always fail with ENOSYS. Some functions are actually named
5847 something starting with __ and the normal name is an alias. */
5848 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5849 choke me
5850 #else
5851 $ac_func();
5852 #endif
5854 ; return 0; }
5856 if { (eval echo configure:5857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5857 rm -rf conftest*
5858 eval "ac_cv_func_$ac_func=yes"
5859 else
5860 echo "configure: failed program was:" >&5
5861 cat conftest.$ac_ext >&5
5862 rm -rf conftest*
5863 eval "ac_cv_func_$ac_func=no"
5865 rm -f conftest*
5868 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5869 echo "$ac_t""yes" 1>&6
5870 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5871 cat >> confdefs.h <<EOF
5872 #define $ac_tr_func 1
5875 else
5876 echo "$ac_t""no" 1>&6
5878 done
5880 for ac_func in open64 _open64 __open64 creat64
5882 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5883 echo "configure:5884: checking for $ac_func" >&5
5884 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5885 echo $ac_n "(cached) $ac_c" 1>&6
5886 else
5887 cat > conftest.$ac_ext <<EOF
5888 #line 5889 "configure"
5889 #include "confdefs.h"
5890 /* System header to define __stub macros and hopefully few prototypes,
5891 which can conflict with char $ac_func(); below. */
5892 #include <assert.h>
5893 /* Override any gcc2 internal prototype to avoid an error. */
5894 /* We use char because int might match the return type of a gcc2
5895 builtin and then its argument prototype would still apply. */
5896 char $ac_func();
5898 int main() {
5900 /* The GNU C library defines this for functions which it implements
5901 to always fail with ENOSYS. Some functions are actually named
5902 something starting with __ and the normal name is an alias. */
5903 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5904 choke me
5905 #else
5906 $ac_func();
5907 #endif
5909 ; return 0; }
5911 if { (eval echo configure:5912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5912 rm -rf conftest*
5913 eval "ac_cv_func_$ac_func=yes"
5914 else
5915 echo "configure: failed program was:" >&5
5916 cat conftest.$ac_ext >&5
5917 rm -rf conftest*
5918 eval "ac_cv_func_$ac_func=no"
5920 rm -f conftest*
5923 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5924 echo "$ac_t""yes" 1>&6
5925 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5926 cat >> confdefs.h <<EOF
5927 #define $ac_tr_func 1
5930 else
5931 echo "$ac_t""no" 1>&6
5933 done
5937 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
5940 if test x$ac_cv_func_stat64 = xno ; then
5941 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
5942 echo "configure:5943: checking for stat64 in <sys/stat.h>" >&5
5943 cat > conftest.$ac_ext <<EOF
5944 #line 5945 "configure"
5945 #include "confdefs.h"
5947 #if defined(HAVE_UNISTD_H)
5948 #include <unistd.h>
5949 #endif
5950 #include <sys/stat.h>
5952 int main() {
5953 struct stat64 st64; exit(stat64(".",&st64));
5954 ; return 0; }
5956 if { (eval echo configure:5957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5957 rm -rf conftest*
5958 ac_cv_func_stat64=yes
5959 else
5960 echo "configure: failed program was:" >&5
5961 cat conftest.$ac_ext >&5
5963 rm -f conftest*
5964 echo "$ac_t""$ac_cv_func_stat64" 1>&6
5965 if test x$ac_cv_func_stat64 = xyes ; then
5966 cat >> confdefs.h <<\EOF
5967 #define HAVE_STAT64 1
5973 if test x$ac_cv_func_lstat64 = xno ; then
5974 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
5975 echo "configure:5976: checking for lstat64 in <sys/stat.h>" >&5
5976 cat > conftest.$ac_ext <<EOF
5977 #line 5978 "configure"
5978 #include "confdefs.h"
5980 #if defined(HAVE_UNISTD_H)
5981 #include <unistd.h>
5982 #endif
5983 #include <sys/stat.h>
5985 int main() {
5986 struct stat64 st64; exit(lstat64(".",&st64));
5987 ; return 0; }
5989 if { (eval echo configure:5990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5990 rm -rf conftest*
5991 ac_cv_func_lstat64=yes
5992 else
5993 echo "configure: failed program was:" >&5
5994 cat conftest.$ac_ext >&5
5996 rm -f conftest*
5997 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
5998 if test x$ac_cv_func_lstat64 = xyes ; then
5999 cat >> confdefs.h <<\EOF
6000 #define HAVE_LSTAT64 1
6006 if test x$ac_cv_func_fstat64 = xno ; then
6007 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
6008 echo "configure:6009: checking for fstat64 in <sys/stat.h>" >&5
6009 cat > conftest.$ac_ext <<EOF
6010 #line 6011 "configure"
6011 #include "confdefs.h"
6013 #if defined(HAVE_UNISTD_H)
6014 #include <unistd.h>
6015 #endif
6016 #include <sys/stat.h>
6018 int main() {
6019 struct stat64 st64; exit(fstat64(0,&st64));
6020 ; return 0; }
6022 if { (eval echo configure:6023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6023 rm -rf conftest*
6024 ac_cv_func_fstat64=yes
6025 else
6026 echo "configure: failed program was:" >&5
6027 cat conftest.$ac_ext >&5
6029 rm -f conftest*
6030 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
6031 if test x$ac_cv_func_fstat64 = xyes ; then
6032 cat >> confdefs.h <<\EOF
6033 #define HAVE_FSTAT64 1
6040 # If no strcasecmp, check for it in some known places
6041 # It is in -lresolv on ReliantUNIX and UnixWare
6042 # -lresolve *must* follow -lnsl for name resolution to work properly
6045 if test x$ac_cv_func_strcasecmp = xno ; then
6046 echo $ac_n "checking for strcasecmp in -lresolv""... $ac_c" 1>&6
6047 echo "configure:6048: checking for strcasecmp in -lresolv" >&5
6048 ac_lib_var=`echo resolv'_'strcasecmp | sed 'y%./+-%__p_%'`
6049 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6050 echo $ac_n "(cached) $ac_c" 1>&6
6051 else
6052 ac_save_LIBS="$LIBS"
6053 LIBS="-lresolv $LIBS"
6054 cat > conftest.$ac_ext <<EOF
6055 #line 6056 "configure"
6056 #include "confdefs.h"
6057 /* Override any gcc2 internal prototype to avoid an error. */
6058 /* We use char because int might match the return type of a gcc2
6059 builtin and then its argument prototype would still apply. */
6060 char strcasecmp();
6062 int main() {
6063 strcasecmp()
6064 ; return 0; }
6066 if { (eval echo configure:6067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6067 rm -rf conftest*
6068 eval "ac_cv_lib_$ac_lib_var=yes"
6069 else
6070 echo "configure: failed program was:" >&5
6071 cat conftest.$ac_ext >&5
6072 rm -rf conftest*
6073 eval "ac_cv_lib_$ac_lib_var=no"
6075 rm -f conftest*
6076 LIBS="$ac_save_LIBS"
6079 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6080 echo "$ac_t""yes" 1>&6
6081 LIBS="$LIBS -lresolv"
6082 cat >> confdefs.h <<\EOF
6083 #define HAVE_STRCASECMP 1
6086 else
6087 echo "$ac_t""no" 1>&6
6093 # Check for the functions putprpwnam, set_auth_parameters,
6094 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
6095 # Needed for OSF1 and HPUX.
6098 case "$LIBS" in
6099 *-lsecurity*) for ac_func in putprpwnam
6101 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6102 echo "configure:6103: checking for $ac_func" >&5
6103 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6104 echo $ac_n "(cached) $ac_c" 1>&6
6105 else
6106 cat > conftest.$ac_ext <<EOF
6107 #line 6108 "configure"
6108 #include "confdefs.h"
6109 /* System header to define __stub macros and hopefully few prototypes,
6110 which can conflict with char $ac_func(); below. */
6111 #include <assert.h>
6112 /* Override any gcc2 internal prototype to avoid an error. */
6113 /* We use char because int might match the return type of a gcc2
6114 builtin and then its argument prototype would still apply. */
6115 char $ac_func();
6117 int main() {
6119 /* The GNU C library defines this for functions which it implements
6120 to always fail with ENOSYS. Some functions are actually named
6121 something starting with __ and the normal name is an alias. */
6122 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6123 choke me
6124 #else
6125 $ac_func();
6126 #endif
6128 ; return 0; }
6130 if { (eval echo configure:6131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6131 rm -rf conftest*
6132 eval "ac_cv_func_$ac_func=yes"
6133 else
6134 echo "configure: failed program was:" >&5
6135 cat conftest.$ac_ext >&5
6136 rm -rf conftest*
6137 eval "ac_cv_func_$ac_func=no"
6139 rm -f conftest*
6142 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6143 echo "$ac_t""yes" 1>&6
6144 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6145 cat >> confdefs.h <<EOF
6146 #define $ac_tr_func 1
6149 else
6150 echo "$ac_t""no" 1>&6
6152 done
6154 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
6155 echo "configure:6156: checking for putprpwnam in -lsecurity" >&5
6156 ac_lib_var=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
6157 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6158 echo $ac_n "(cached) $ac_c" 1>&6
6159 else
6160 ac_save_LIBS="$LIBS"
6161 LIBS="-lsecurity $LIBS"
6162 cat > conftest.$ac_ext <<EOF
6163 #line 6164 "configure"
6164 #include "confdefs.h"
6165 /* Override any gcc2 internal prototype to avoid an error. */
6166 /* We use char because int might match the return type of a gcc2
6167 builtin and then its argument prototype would still apply. */
6168 char putprpwnam();
6170 int main() {
6171 putprpwnam()
6172 ; return 0; }
6174 if { (eval echo configure:6175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6175 rm -rf conftest*
6176 eval "ac_cv_lib_$ac_lib_var=yes"
6177 else
6178 echo "configure: failed program was:" >&5
6179 cat conftest.$ac_ext >&5
6180 rm -rf conftest*
6181 eval "ac_cv_lib_$ac_lib_var=no"
6183 rm -f conftest*
6184 LIBS="$ac_save_LIBS"
6187 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6188 echo "$ac_t""yes" 1>&6
6189 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6190 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6191 cat >> confdefs.h <<EOF
6192 #define $ac_tr_lib 1
6195 LIBS="-lsecurity $LIBS"
6197 else
6198 echo "$ac_t""no" 1>&6
6201 for ac_func in putprpwnam
6203 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6204 echo "configure:6205: checking for $ac_func" >&5
6205 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6206 echo $ac_n "(cached) $ac_c" 1>&6
6207 else
6208 cat > conftest.$ac_ext <<EOF
6209 #line 6210 "configure"
6210 #include "confdefs.h"
6211 /* System header to define __stub macros and hopefully few prototypes,
6212 which can conflict with char $ac_func(); below. */
6213 #include <assert.h>
6214 /* Override any gcc2 internal prototype to avoid an error. */
6215 /* We use char because int might match the return type of a gcc2
6216 builtin and then its argument prototype would still apply. */
6217 char $ac_func();
6219 int main() {
6221 /* The GNU C library defines this for functions which it implements
6222 to always fail with ENOSYS. Some functions are actually named
6223 something starting with __ and the normal name is an alias. */
6224 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6225 choke me
6226 #else
6227 $ac_func();
6228 #endif
6230 ; return 0; }
6232 if { (eval echo configure:6233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6233 rm -rf conftest*
6234 eval "ac_cv_func_$ac_func=yes"
6235 else
6236 echo "configure: failed program was:" >&5
6237 cat conftest.$ac_ext >&5
6238 rm -rf conftest*
6239 eval "ac_cv_func_$ac_func=no"
6241 rm -f conftest*
6244 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6245 echo "$ac_t""yes" 1>&6
6246 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6247 cat >> confdefs.h <<EOF
6248 #define $ac_tr_func 1
6251 else
6252 echo "$ac_t""no" 1>&6
6254 done
6257 esac
6259 case "$LIBS" in
6260 *-lsec*) for ac_func in putprpwnam
6262 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6263 echo "configure:6264: checking for $ac_func" >&5
6264 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6265 echo $ac_n "(cached) $ac_c" 1>&6
6266 else
6267 cat > conftest.$ac_ext <<EOF
6268 #line 6269 "configure"
6269 #include "confdefs.h"
6270 /* System header to define __stub macros and hopefully few prototypes,
6271 which can conflict with char $ac_func(); below. */
6272 #include <assert.h>
6273 /* Override any gcc2 internal prototype to avoid an error. */
6274 /* We use char because int might match the return type of a gcc2
6275 builtin and then its argument prototype would still apply. */
6276 char $ac_func();
6278 int main() {
6280 /* The GNU C library defines this for functions which it implements
6281 to always fail with ENOSYS. Some functions are actually named
6282 something starting with __ and the normal name is an alias. */
6283 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6284 choke me
6285 #else
6286 $ac_func();
6287 #endif
6289 ; return 0; }
6291 if { (eval echo configure:6292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6292 rm -rf conftest*
6293 eval "ac_cv_func_$ac_func=yes"
6294 else
6295 echo "configure: failed program was:" >&5
6296 cat conftest.$ac_ext >&5
6297 rm -rf conftest*
6298 eval "ac_cv_func_$ac_func=no"
6300 rm -f conftest*
6303 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6304 echo "$ac_t""yes" 1>&6
6305 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6306 cat >> confdefs.h <<EOF
6307 #define $ac_tr_func 1
6310 else
6311 echo "$ac_t""no" 1>&6
6313 done
6315 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
6316 echo "configure:6317: checking for putprpwnam in -lsec" >&5
6317 ac_lib_var=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
6318 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6319 echo $ac_n "(cached) $ac_c" 1>&6
6320 else
6321 ac_save_LIBS="$LIBS"
6322 LIBS="-lsec $LIBS"
6323 cat > conftest.$ac_ext <<EOF
6324 #line 6325 "configure"
6325 #include "confdefs.h"
6326 /* Override any gcc2 internal prototype to avoid an error. */
6327 /* We use char because int might match the return type of a gcc2
6328 builtin and then its argument prototype would still apply. */
6329 char putprpwnam();
6331 int main() {
6332 putprpwnam()
6333 ; return 0; }
6335 if { (eval echo configure:6336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6336 rm -rf conftest*
6337 eval "ac_cv_lib_$ac_lib_var=yes"
6338 else
6339 echo "configure: failed program was:" >&5
6340 cat conftest.$ac_ext >&5
6341 rm -rf conftest*
6342 eval "ac_cv_lib_$ac_lib_var=no"
6344 rm -f conftest*
6345 LIBS="$ac_save_LIBS"
6348 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6349 echo "$ac_t""yes" 1>&6
6350 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6351 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6352 cat >> confdefs.h <<EOF
6353 #define $ac_tr_lib 1
6356 LIBS="-lsec $LIBS"
6358 else
6359 echo "$ac_t""no" 1>&6
6362 for ac_func in putprpwnam
6364 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6365 echo "configure:6366: checking for $ac_func" >&5
6366 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6367 echo $ac_n "(cached) $ac_c" 1>&6
6368 else
6369 cat > conftest.$ac_ext <<EOF
6370 #line 6371 "configure"
6371 #include "confdefs.h"
6372 /* System header to define __stub macros and hopefully few prototypes,
6373 which can conflict with char $ac_func(); below. */
6374 #include <assert.h>
6375 /* Override any gcc2 internal prototype to avoid an error. */
6376 /* We use char because int might match the return type of a gcc2
6377 builtin and then its argument prototype would still apply. */
6378 char $ac_func();
6380 int main() {
6382 /* The GNU C library defines this for functions which it implements
6383 to always fail with ENOSYS. Some functions are actually named
6384 something starting with __ and the normal name is an alias. */
6385 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6386 choke me
6387 #else
6388 $ac_func();
6389 #endif
6391 ; return 0; }
6393 if { (eval echo configure:6394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6394 rm -rf conftest*
6395 eval "ac_cv_func_$ac_func=yes"
6396 else
6397 echo "configure: failed program was:" >&5
6398 cat conftest.$ac_ext >&5
6399 rm -rf conftest*
6400 eval "ac_cv_func_$ac_func=no"
6402 rm -f conftest*
6405 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6406 echo "$ac_t""yes" 1>&6
6407 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6408 cat >> confdefs.h <<EOF
6409 #define $ac_tr_func 1
6412 else
6413 echo "$ac_t""no" 1>&6
6415 done
6418 esac
6421 case "$LIBS" in
6422 *-lsecurity*) for ac_func in set_auth_parameters
6424 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6425 echo "configure:6426: checking for $ac_func" >&5
6426 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6427 echo $ac_n "(cached) $ac_c" 1>&6
6428 else
6429 cat > conftest.$ac_ext <<EOF
6430 #line 6431 "configure"
6431 #include "confdefs.h"
6432 /* System header to define __stub macros and hopefully few prototypes,
6433 which can conflict with char $ac_func(); below. */
6434 #include <assert.h>
6435 /* Override any gcc2 internal prototype to avoid an error. */
6436 /* We use char because int might match the return type of a gcc2
6437 builtin and then its argument prototype would still apply. */
6438 char $ac_func();
6440 int main() {
6442 /* The GNU C library defines this for functions which it implements
6443 to always fail with ENOSYS. Some functions are actually named
6444 something starting with __ and the normal name is an alias. */
6445 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6446 choke me
6447 #else
6448 $ac_func();
6449 #endif
6451 ; return 0; }
6453 if { (eval echo configure:6454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6454 rm -rf conftest*
6455 eval "ac_cv_func_$ac_func=yes"
6456 else
6457 echo "configure: failed program was:" >&5
6458 cat conftest.$ac_ext >&5
6459 rm -rf conftest*
6460 eval "ac_cv_func_$ac_func=no"
6462 rm -f conftest*
6465 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6466 echo "$ac_t""yes" 1>&6
6467 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6468 cat >> confdefs.h <<EOF
6469 #define $ac_tr_func 1
6472 else
6473 echo "$ac_t""no" 1>&6
6475 done
6477 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
6478 echo "configure:6479: checking for set_auth_parameters in -lsecurity" >&5
6479 ac_lib_var=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
6480 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6481 echo $ac_n "(cached) $ac_c" 1>&6
6482 else
6483 ac_save_LIBS="$LIBS"
6484 LIBS="-lsecurity $LIBS"
6485 cat > conftest.$ac_ext <<EOF
6486 #line 6487 "configure"
6487 #include "confdefs.h"
6488 /* Override any gcc2 internal prototype to avoid an error. */
6489 /* We use char because int might match the return type of a gcc2
6490 builtin and then its argument prototype would still apply. */
6491 char set_auth_parameters();
6493 int main() {
6494 set_auth_parameters()
6495 ; return 0; }
6497 if { (eval echo configure:6498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6498 rm -rf conftest*
6499 eval "ac_cv_lib_$ac_lib_var=yes"
6500 else
6501 echo "configure: failed program was:" >&5
6502 cat conftest.$ac_ext >&5
6503 rm -rf conftest*
6504 eval "ac_cv_lib_$ac_lib_var=no"
6506 rm -f conftest*
6507 LIBS="$ac_save_LIBS"
6510 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6511 echo "$ac_t""yes" 1>&6
6512 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6513 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6514 cat >> confdefs.h <<EOF
6515 #define $ac_tr_lib 1
6518 LIBS="-lsecurity $LIBS"
6520 else
6521 echo "$ac_t""no" 1>&6
6524 for ac_func in set_auth_parameters
6526 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6527 echo "configure:6528: checking for $ac_func" >&5
6528 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6529 echo $ac_n "(cached) $ac_c" 1>&6
6530 else
6531 cat > conftest.$ac_ext <<EOF
6532 #line 6533 "configure"
6533 #include "confdefs.h"
6534 /* System header to define __stub macros and hopefully few prototypes,
6535 which can conflict with char $ac_func(); below. */
6536 #include <assert.h>
6537 /* Override any gcc2 internal prototype to avoid an error. */
6538 /* We use char because int might match the return type of a gcc2
6539 builtin and then its argument prototype would still apply. */
6540 char $ac_func();
6542 int main() {
6544 /* The GNU C library defines this for functions which it implements
6545 to always fail with ENOSYS. Some functions are actually named
6546 something starting with __ and the normal name is an alias. */
6547 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6548 choke me
6549 #else
6550 $ac_func();
6551 #endif
6553 ; return 0; }
6555 if { (eval echo configure:6556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6556 rm -rf conftest*
6557 eval "ac_cv_func_$ac_func=yes"
6558 else
6559 echo "configure: failed program was:" >&5
6560 cat conftest.$ac_ext >&5
6561 rm -rf conftest*
6562 eval "ac_cv_func_$ac_func=no"
6564 rm -f conftest*
6567 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6568 echo "$ac_t""yes" 1>&6
6569 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6570 cat >> confdefs.h <<EOF
6571 #define $ac_tr_func 1
6574 else
6575 echo "$ac_t""no" 1>&6
6577 done
6580 esac
6582 case "$LIBS" in
6583 *-lsec*) for ac_func in set_auth_parameters
6585 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6586 echo "configure:6587: checking for $ac_func" >&5
6587 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6588 echo $ac_n "(cached) $ac_c" 1>&6
6589 else
6590 cat > conftest.$ac_ext <<EOF
6591 #line 6592 "configure"
6592 #include "confdefs.h"
6593 /* System header to define __stub macros and hopefully few prototypes,
6594 which can conflict with char $ac_func(); below. */
6595 #include <assert.h>
6596 /* Override any gcc2 internal prototype to avoid an error. */
6597 /* We use char because int might match the return type of a gcc2
6598 builtin and then its argument prototype would still apply. */
6599 char $ac_func();
6601 int main() {
6603 /* The GNU C library defines this for functions which it implements
6604 to always fail with ENOSYS. Some functions are actually named
6605 something starting with __ and the normal name is an alias. */
6606 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6607 choke me
6608 #else
6609 $ac_func();
6610 #endif
6612 ; return 0; }
6614 if { (eval echo configure:6615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6615 rm -rf conftest*
6616 eval "ac_cv_func_$ac_func=yes"
6617 else
6618 echo "configure: failed program was:" >&5
6619 cat conftest.$ac_ext >&5
6620 rm -rf conftest*
6621 eval "ac_cv_func_$ac_func=no"
6623 rm -f conftest*
6626 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6627 echo "$ac_t""yes" 1>&6
6628 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6629 cat >> confdefs.h <<EOF
6630 #define $ac_tr_func 1
6633 else
6634 echo "$ac_t""no" 1>&6
6636 done
6638 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
6639 echo "configure:6640: checking for set_auth_parameters in -lsec" >&5
6640 ac_lib_var=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
6641 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6642 echo $ac_n "(cached) $ac_c" 1>&6
6643 else
6644 ac_save_LIBS="$LIBS"
6645 LIBS="-lsec $LIBS"
6646 cat > conftest.$ac_ext <<EOF
6647 #line 6648 "configure"
6648 #include "confdefs.h"
6649 /* Override any gcc2 internal prototype to avoid an error. */
6650 /* We use char because int might match the return type of a gcc2
6651 builtin and then its argument prototype would still apply. */
6652 char set_auth_parameters();
6654 int main() {
6655 set_auth_parameters()
6656 ; return 0; }
6658 if { (eval echo configure:6659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6659 rm -rf conftest*
6660 eval "ac_cv_lib_$ac_lib_var=yes"
6661 else
6662 echo "configure: failed program was:" >&5
6663 cat conftest.$ac_ext >&5
6664 rm -rf conftest*
6665 eval "ac_cv_lib_$ac_lib_var=no"
6667 rm -f conftest*
6668 LIBS="$ac_save_LIBS"
6671 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6672 echo "$ac_t""yes" 1>&6
6673 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6674 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6675 cat >> confdefs.h <<EOF
6676 #define $ac_tr_lib 1
6679 LIBS="-lsec $LIBS"
6681 else
6682 echo "$ac_t""no" 1>&6
6685 for ac_func in set_auth_parameters
6687 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6688 echo "configure:6689: checking for $ac_func" >&5
6689 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6690 echo $ac_n "(cached) $ac_c" 1>&6
6691 else
6692 cat > conftest.$ac_ext <<EOF
6693 #line 6694 "configure"
6694 #include "confdefs.h"
6695 /* System header to define __stub macros and hopefully few prototypes,
6696 which can conflict with char $ac_func(); below. */
6697 #include <assert.h>
6698 /* Override any gcc2 internal prototype to avoid an error. */
6699 /* We use char because int might match the return type of a gcc2
6700 builtin and then its argument prototype would still apply. */
6701 char $ac_func();
6703 int main() {
6705 /* The GNU C library defines this for functions which it implements
6706 to always fail with ENOSYS. Some functions are actually named
6707 something starting with __ and the normal name is an alias. */
6708 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6709 choke me
6710 #else
6711 $ac_func();
6712 #endif
6714 ; return 0; }
6716 if { (eval echo configure:6717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6717 rm -rf conftest*
6718 eval "ac_cv_func_$ac_func=yes"
6719 else
6720 echo "configure: failed program was:" >&5
6721 cat conftest.$ac_ext >&5
6722 rm -rf conftest*
6723 eval "ac_cv_func_$ac_func=no"
6725 rm -f conftest*
6728 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6729 echo "$ac_t""yes" 1>&6
6730 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6731 cat >> confdefs.h <<EOF
6732 #define $ac_tr_func 1
6735 else
6736 echo "$ac_t""no" 1>&6
6738 done
6741 esac
6744 # UnixWare 7.x has its getspnam in -lgen
6745 case "$LIBS" in
6746 *-lgen*) for ac_func in getspnam
6748 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6749 echo "configure:6750: checking for $ac_func" >&5
6750 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6751 echo $ac_n "(cached) $ac_c" 1>&6
6752 else
6753 cat > conftest.$ac_ext <<EOF
6754 #line 6755 "configure"
6755 #include "confdefs.h"
6756 /* System header to define __stub macros and hopefully few prototypes,
6757 which can conflict with char $ac_func(); below. */
6758 #include <assert.h>
6759 /* Override any gcc2 internal prototype to avoid an error. */
6760 /* We use char because int might match the return type of a gcc2
6761 builtin and then its argument prototype would still apply. */
6762 char $ac_func();
6764 int main() {
6766 /* The GNU C library defines this for functions which it implements
6767 to always fail with ENOSYS. Some functions are actually named
6768 something starting with __ and the normal name is an alias. */
6769 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6770 choke me
6771 #else
6772 $ac_func();
6773 #endif
6775 ; return 0; }
6777 if { (eval echo configure:6778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6778 rm -rf conftest*
6779 eval "ac_cv_func_$ac_func=yes"
6780 else
6781 echo "configure: failed program was:" >&5
6782 cat conftest.$ac_ext >&5
6783 rm -rf conftest*
6784 eval "ac_cv_func_$ac_func=no"
6786 rm -f conftest*
6789 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6790 echo "$ac_t""yes" 1>&6
6791 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6792 cat >> confdefs.h <<EOF
6793 #define $ac_tr_func 1
6796 else
6797 echo "$ac_t""no" 1>&6
6799 done
6801 *) echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
6802 echo "configure:6803: checking for getspnam in -lgen" >&5
6803 ac_lib_var=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
6804 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6805 echo $ac_n "(cached) $ac_c" 1>&6
6806 else
6807 ac_save_LIBS="$LIBS"
6808 LIBS="-lgen $LIBS"
6809 cat > conftest.$ac_ext <<EOF
6810 #line 6811 "configure"
6811 #include "confdefs.h"
6812 /* Override any gcc2 internal prototype to avoid an error. */
6813 /* We use char because int might match the return type of a gcc2
6814 builtin and then its argument prototype would still apply. */
6815 char getspnam();
6817 int main() {
6818 getspnam()
6819 ; return 0; }
6821 if { (eval echo configure:6822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6822 rm -rf conftest*
6823 eval "ac_cv_lib_$ac_lib_var=yes"
6824 else
6825 echo "configure: failed program was:" >&5
6826 cat conftest.$ac_ext >&5
6827 rm -rf conftest*
6828 eval "ac_cv_lib_$ac_lib_var=no"
6830 rm -f conftest*
6831 LIBS="$ac_save_LIBS"
6834 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6835 echo "$ac_t""yes" 1>&6
6836 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6837 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6838 cat >> confdefs.h <<EOF
6839 #define $ac_tr_lib 1
6842 LIBS="-lgen $LIBS"
6844 else
6845 echo "$ac_t""no" 1>&6
6848 for ac_func in getspnam
6850 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6851 echo "configure:6852: checking for $ac_func" >&5
6852 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6853 echo $ac_n "(cached) $ac_c" 1>&6
6854 else
6855 cat > conftest.$ac_ext <<EOF
6856 #line 6857 "configure"
6857 #include "confdefs.h"
6858 /* System header to define __stub macros and hopefully few prototypes,
6859 which can conflict with char $ac_func(); below. */
6860 #include <assert.h>
6861 /* Override any gcc2 internal prototype to avoid an error. */
6862 /* We use char because int might match the return type of a gcc2
6863 builtin and then its argument prototype would still apply. */
6864 char $ac_func();
6866 int main() {
6868 /* The GNU C library defines this for functions which it implements
6869 to always fail with ENOSYS. Some functions are actually named
6870 something starting with __ and the normal name is an alias. */
6871 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6872 choke me
6873 #else
6874 $ac_func();
6875 #endif
6877 ; return 0; }
6879 if { (eval echo configure:6880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6880 rm -rf conftest*
6881 eval "ac_cv_func_$ac_func=yes"
6882 else
6883 echo "configure: failed program was:" >&5
6884 cat conftest.$ac_ext >&5
6885 rm -rf conftest*
6886 eval "ac_cv_func_$ac_func=no"
6888 rm -f conftest*
6891 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6892 echo "$ac_t""yes" 1>&6
6893 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6894 cat >> confdefs.h <<EOF
6895 #define $ac_tr_func 1
6898 else
6899 echo "$ac_t""no" 1>&6
6901 done
6904 esac
6907 case "$LIBS" in
6908 *-lsecurity*) for ac_func in getspnam
6910 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6911 echo "configure:6912: checking for $ac_func" >&5
6912 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6913 echo $ac_n "(cached) $ac_c" 1>&6
6914 else
6915 cat > conftest.$ac_ext <<EOF
6916 #line 6917 "configure"
6917 #include "confdefs.h"
6918 /* System header to define __stub macros and hopefully few prototypes,
6919 which can conflict with char $ac_func(); below. */
6920 #include <assert.h>
6921 /* Override any gcc2 internal prototype to avoid an error. */
6922 /* We use char because int might match the return type of a gcc2
6923 builtin and then its argument prototype would still apply. */
6924 char $ac_func();
6926 int main() {
6928 /* The GNU C library defines this for functions which it implements
6929 to always fail with ENOSYS. Some functions are actually named
6930 something starting with __ and the normal name is an alias. */
6931 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6932 choke me
6933 #else
6934 $ac_func();
6935 #endif
6937 ; return 0; }
6939 if { (eval echo configure:6940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6940 rm -rf conftest*
6941 eval "ac_cv_func_$ac_func=yes"
6942 else
6943 echo "configure: failed program was:" >&5
6944 cat conftest.$ac_ext >&5
6945 rm -rf conftest*
6946 eval "ac_cv_func_$ac_func=no"
6948 rm -f conftest*
6951 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6952 echo "$ac_t""yes" 1>&6
6953 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6954 cat >> confdefs.h <<EOF
6955 #define $ac_tr_func 1
6958 else
6959 echo "$ac_t""no" 1>&6
6961 done
6963 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
6964 echo "configure:6965: checking for getspnam in -lsecurity" >&5
6965 ac_lib_var=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
6966 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6967 echo $ac_n "(cached) $ac_c" 1>&6
6968 else
6969 ac_save_LIBS="$LIBS"
6970 LIBS="-lsecurity $LIBS"
6971 cat > conftest.$ac_ext <<EOF
6972 #line 6973 "configure"
6973 #include "confdefs.h"
6974 /* Override any gcc2 internal prototype to avoid an error. */
6975 /* We use char because int might match the return type of a gcc2
6976 builtin and then its argument prototype would still apply. */
6977 char getspnam();
6979 int main() {
6980 getspnam()
6981 ; return 0; }
6983 if { (eval echo configure:6984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6984 rm -rf conftest*
6985 eval "ac_cv_lib_$ac_lib_var=yes"
6986 else
6987 echo "configure: failed program was:" >&5
6988 cat conftest.$ac_ext >&5
6989 rm -rf conftest*
6990 eval "ac_cv_lib_$ac_lib_var=no"
6992 rm -f conftest*
6993 LIBS="$ac_save_LIBS"
6996 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6997 echo "$ac_t""yes" 1>&6
6998 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6999 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7000 cat >> confdefs.h <<EOF
7001 #define $ac_tr_lib 1
7004 LIBS="-lsecurity $LIBS"
7006 else
7007 echo "$ac_t""no" 1>&6
7010 for ac_func in getspnam
7012 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7013 echo "configure:7014: checking for $ac_func" >&5
7014 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7015 echo $ac_n "(cached) $ac_c" 1>&6
7016 else
7017 cat > conftest.$ac_ext <<EOF
7018 #line 7019 "configure"
7019 #include "confdefs.h"
7020 /* System header to define __stub macros and hopefully few prototypes,
7021 which can conflict with char $ac_func(); below. */
7022 #include <assert.h>
7023 /* Override any gcc2 internal prototype to avoid an error. */
7024 /* We use char because int might match the return type of a gcc2
7025 builtin and then its argument prototype would still apply. */
7026 char $ac_func();
7028 int main() {
7030 /* The GNU C library defines this for functions which it implements
7031 to always fail with ENOSYS. Some functions are actually named
7032 something starting with __ and the normal name is an alias. */
7033 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7034 choke me
7035 #else
7036 $ac_func();
7037 #endif
7039 ; return 0; }
7041 if { (eval echo configure:7042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7042 rm -rf conftest*
7043 eval "ac_cv_func_$ac_func=yes"
7044 else
7045 echo "configure: failed program was:" >&5
7046 cat conftest.$ac_ext >&5
7047 rm -rf conftest*
7048 eval "ac_cv_func_$ac_func=no"
7050 rm -f conftest*
7053 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7054 echo "$ac_t""yes" 1>&6
7055 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7056 cat >> confdefs.h <<EOF
7057 #define $ac_tr_func 1
7060 else
7061 echo "$ac_t""no" 1>&6
7063 done
7066 esac
7068 case "$LIBS" in
7069 *-lsec*) for ac_func in getspnam
7071 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7072 echo "configure:7073: checking for $ac_func" >&5
7073 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7074 echo $ac_n "(cached) $ac_c" 1>&6
7075 else
7076 cat > conftest.$ac_ext <<EOF
7077 #line 7078 "configure"
7078 #include "confdefs.h"
7079 /* System header to define __stub macros and hopefully few prototypes,
7080 which can conflict with char $ac_func(); below. */
7081 #include <assert.h>
7082 /* Override any gcc2 internal prototype to avoid an error. */
7083 /* We use char because int might match the return type of a gcc2
7084 builtin and then its argument prototype would still apply. */
7085 char $ac_func();
7087 int main() {
7089 /* The GNU C library defines this for functions which it implements
7090 to always fail with ENOSYS. Some functions are actually named
7091 something starting with __ and the normal name is an alias. */
7092 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7093 choke me
7094 #else
7095 $ac_func();
7096 #endif
7098 ; return 0; }
7100 if { (eval echo configure:7101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7101 rm -rf conftest*
7102 eval "ac_cv_func_$ac_func=yes"
7103 else
7104 echo "configure: failed program was:" >&5
7105 cat conftest.$ac_ext >&5
7106 rm -rf conftest*
7107 eval "ac_cv_func_$ac_func=no"
7109 rm -f conftest*
7112 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7113 echo "$ac_t""yes" 1>&6
7114 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7115 cat >> confdefs.h <<EOF
7116 #define $ac_tr_func 1
7119 else
7120 echo "$ac_t""no" 1>&6
7122 done
7124 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
7125 echo "configure:7126: checking for getspnam in -lsec" >&5
7126 ac_lib_var=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
7127 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7128 echo $ac_n "(cached) $ac_c" 1>&6
7129 else
7130 ac_save_LIBS="$LIBS"
7131 LIBS="-lsec $LIBS"
7132 cat > conftest.$ac_ext <<EOF
7133 #line 7134 "configure"
7134 #include "confdefs.h"
7135 /* Override any gcc2 internal prototype to avoid an error. */
7136 /* We use char because int might match the return type of a gcc2
7137 builtin and then its argument prototype would still apply. */
7138 char getspnam();
7140 int main() {
7141 getspnam()
7142 ; return 0; }
7144 if { (eval echo configure:7145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7145 rm -rf conftest*
7146 eval "ac_cv_lib_$ac_lib_var=yes"
7147 else
7148 echo "configure: failed program was:" >&5
7149 cat conftest.$ac_ext >&5
7150 rm -rf conftest*
7151 eval "ac_cv_lib_$ac_lib_var=no"
7153 rm -f conftest*
7154 LIBS="$ac_save_LIBS"
7157 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7158 echo "$ac_t""yes" 1>&6
7159 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7160 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7161 cat >> confdefs.h <<EOF
7162 #define $ac_tr_lib 1
7165 LIBS="-lsec $LIBS"
7167 else
7168 echo "$ac_t""no" 1>&6
7171 for ac_func in getspnam
7173 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7174 echo "configure:7175: checking for $ac_func" >&5
7175 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7176 echo $ac_n "(cached) $ac_c" 1>&6
7177 else
7178 cat > conftest.$ac_ext <<EOF
7179 #line 7180 "configure"
7180 #include "confdefs.h"
7181 /* System header to define __stub macros and hopefully few prototypes,
7182 which can conflict with char $ac_func(); below. */
7183 #include <assert.h>
7184 /* Override any gcc2 internal prototype to avoid an error. */
7185 /* We use char because int might match the return type of a gcc2
7186 builtin and then its argument prototype would still apply. */
7187 char $ac_func();
7189 int main() {
7191 /* The GNU C library defines this for functions which it implements
7192 to always fail with ENOSYS. Some functions are actually named
7193 something starting with __ and the normal name is an alias. */
7194 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7195 choke me
7196 #else
7197 $ac_func();
7198 #endif
7200 ; return 0; }
7202 if { (eval echo configure:7203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7203 rm -rf conftest*
7204 eval "ac_cv_func_$ac_func=yes"
7205 else
7206 echo "configure: failed program was:" >&5
7207 cat conftest.$ac_ext >&5
7208 rm -rf conftest*
7209 eval "ac_cv_func_$ac_func=no"
7211 rm -f conftest*
7214 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7215 echo "$ac_t""yes" 1>&6
7216 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7217 cat >> confdefs.h <<EOF
7218 #define $ac_tr_func 1
7221 else
7222 echo "$ac_t""no" 1>&6
7224 done
7227 esac
7230 case "$LIBS" in
7231 *-lsecurity*) for ac_func in bigcrypt
7233 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7234 echo "configure:7235: checking for $ac_func" >&5
7235 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7236 echo $ac_n "(cached) $ac_c" 1>&6
7237 else
7238 cat > conftest.$ac_ext <<EOF
7239 #line 7240 "configure"
7240 #include "confdefs.h"
7241 /* System header to define __stub macros and hopefully few prototypes,
7242 which can conflict with char $ac_func(); below. */
7243 #include <assert.h>
7244 /* Override any gcc2 internal prototype to avoid an error. */
7245 /* We use char because int might match the return type of a gcc2
7246 builtin and then its argument prototype would still apply. */
7247 char $ac_func();
7249 int main() {
7251 /* The GNU C library defines this for functions which it implements
7252 to always fail with ENOSYS. Some functions are actually named
7253 something starting with __ and the normal name is an alias. */
7254 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7255 choke me
7256 #else
7257 $ac_func();
7258 #endif
7260 ; return 0; }
7262 if { (eval echo configure:7263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7263 rm -rf conftest*
7264 eval "ac_cv_func_$ac_func=yes"
7265 else
7266 echo "configure: failed program was:" >&5
7267 cat conftest.$ac_ext >&5
7268 rm -rf conftest*
7269 eval "ac_cv_func_$ac_func=no"
7271 rm -f conftest*
7274 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7275 echo "$ac_t""yes" 1>&6
7276 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7277 cat >> confdefs.h <<EOF
7278 #define $ac_tr_func 1
7281 else
7282 echo "$ac_t""no" 1>&6
7284 done
7286 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
7287 echo "configure:7288: checking for bigcrypt in -lsecurity" >&5
7288 ac_lib_var=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
7289 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7290 echo $ac_n "(cached) $ac_c" 1>&6
7291 else
7292 ac_save_LIBS="$LIBS"
7293 LIBS="-lsecurity $LIBS"
7294 cat > conftest.$ac_ext <<EOF
7295 #line 7296 "configure"
7296 #include "confdefs.h"
7297 /* Override any gcc2 internal prototype to avoid an error. */
7298 /* We use char because int might match the return type of a gcc2
7299 builtin and then its argument prototype would still apply. */
7300 char bigcrypt();
7302 int main() {
7303 bigcrypt()
7304 ; return 0; }
7306 if { (eval echo configure:7307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7307 rm -rf conftest*
7308 eval "ac_cv_lib_$ac_lib_var=yes"
7309 else
7310 echo "configure: failed program was:" >&5
7311 cat conftest.$ac_ext >&5
7312 rm -rf conftest*
7313 eval "ac_cv_lib_$ac_lib_var=no"
7315 rm -f conftest*
7316 LIBS="$ac_save_LIBS"
7319 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7320 echo "$ac_t""yes" 1>&6
7321 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7322 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7323 cat >> confdefs.h <<EOF
7324 #define $ac_tr_lib 1
7327 LIBS="-lsecurity $LIBS"
7329 else
7330 echo "$ac_t""no" 1>&6
7333 for ac_func in bigcrypt
7335 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7336 echo "configure:7337: checking for $ac_func" >&5
7337 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7338 echo $ac_n "(cached) $ac_c" 1>&6
7339 else
7340 cat > conftest.$ac_ext <<EOF
7341 #line 7342 "configure"
7342 #include "confdefs.h"
7343 /* System header to define __stub macros and hopefully few prototypes,
7344 which can conflict with char $ac_func(); below. */
7345 #include <assert.h>
7346 /* Override any gcc2 internal prototype to avoid an error. */
7347 /* We use char because int might match the return type of a gcc2
7348 builtin and then its argument prototype would still apply. */
7349 char $ac_func();
7351 int main() {
7353 /* The GNU C library defines this for functions which it implements
7354 to always fail with ENOSYS. Some functions are actually named
7355 something starting with __ and the normal name is an alias. */
7356 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7357 choke me
7358 #else
7359 $ac_func();
7360 #endif
7362 ; return 0; }
7364 if { (eval echo configure:7365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7365 rm -rf conftest*
7366 eval "ac_cv_func_$ac_func=yes"
7367 else
7368 echo "configure: failed program was:" >&5
7369 cat conftest.$ac_ext >&5
7370 rm -rf conftest*
7371 eval "ac_cv_func_$ac_func=no"
7373 rm -f conftest*
7376 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7377 echo "$ac_t""yes" 1>&6
7378 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7379 cat >> confdefs.h <<EOF
7380 #define $ac_tr_func 1
7383 else
7384 echo "$ac_t""no" 1>&6
7386 done
7389 esac
7391 case "$LIBS" in
7392 *-lsec*) for ac_func in bigcrypt
7394 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7395 echo "configure:7396: checking for $ac_func" >&5
7396 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7397 echo $ac_n "(cached) $ac_c" 1>&6
7398 else
7399 cat > conftest.$ac_ext <<EOF
7400 #line 7401 "configure"
7401 #include "confdefs.h"
7402 /* System header to define __stub macros and hopefully few prototypes,
7403 which can conflict with char $ac_func(); below. */
7404 #include <assert.h>
7405 /* Override any gcc2 internal prototype to avoid an error. */
7406 /* We use char because int might match the return type of a gcc2
7407 builtin and then its argument prototype would still apply. */
7408 char $ac_func();
7410 int main() {
7412 /* The GNU C library defines this for functions which it implements
7413 to always fail with ENOSYS. Some functions are actually named
7414 something starting with __ and the normal name is an alias. */
7415 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7416 choke me
7417 #else
7418 $ac_func();
7419 #endif
7421 ; return 0; }
7423 if { (eval echo configure:7424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7424 rm -rf conftest*
7425 eval "ac_cv_func_$ac_func=yes"
7426 else
7427 echo "configure: failed program was:" >&5
7428 cat conftest.$ac_ext >&5
7429 rm -rf conftest*
7430 eval "ac_cv_func_$ac_func=no"
7432 rm -f conftest*
7435 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7436 echo "$ac_t""yes" 1>&6
7437 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7438 cat >> confdefs.h <<EOF
7439 #define $ac_tr_func 1
7442 else
7443 echo "$ac_t""no" 1>&6
7445 done
7447 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
7448 echo "configure:7449: checking for bigcrypt in -lsec" >&5
7449 ac_lib_var=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
7450 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7451 echo $ac_n "(cached) $ac_c" 1>&6
7452 else
7453 ac_save_LIBS="$LIBS"
7454 LIBS="-lsec $LIBS"
7455 cat > conftest.$ac_ext <<EOF
7456 #line 7457 "configure"
7457 #include "confdefs.h"
7458 /* Override any gcc2 internal prototype to avoid an error. */
7459 /* We use char because int might match the return type of a gcc2
7460 builtin and then its argument prototype would still apply. */
7461 char bigcrypt();
7463 int main() {
7464 bigcrypt()
7465 ; return 0; }
7467 if { (eval echo configure:7468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7468 rm -rf conftest*
7469 eval "ac_cv_lib_$ac_lib_var=yes"
7470 else
7471 echo "configure: failed program was:" >&5
7472 cat conftest.$ac_ext >&5
7473 rm -rf conftest*
7474 eval "ac_cv_lib_$ac_lib_var=no"
7476 rm -f conftest*
7477 LIBS="$ac_save_LIBS"
7480 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7481 echo "$ac_t""yes" 1>&6
7482 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7483 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7484 cat >> confdefs.h <<EOF
7485 #define $ac_tr_lib 1
7488 LIBS="-lsec $LIBS"
7490 else
7491 echo "$ac_t""no" 1>&6
7494 for ac_func in bigcrypt
7496 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7497 echo "configure:7498: checking for $ac_func" >&5
7498 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7499 echo $ac_n "(cached) $ac_c" 1>&6
7500 else
7501 cat > conftest.$ac_ext <<EOF
7502 #line 7503 "configure"
7503 #include "confdefs.h"
7504 /* System header to define __stub macros and hopefully few prototypes,
7505 which can conflict with char $ac_func(); below. */
7506 #include <assert.h>
7507 /* Override any gcc2 internal prototype to avoid an error. */
7508 /* We use char because int might match the return type of a gcc2
7509 builtin and then its argument prototype would still apply. */
7510 char $ac_func();
7512 int main() {
7514 /* The GNU C library defines this for functions which it implements
7515 to always fail with ENOSYS. Some functions are actually named
7516 something starting with __ and the normal name is an alias. */
7517 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7518 choke me
7519 #else
7520 $ac_func();
7521 #endif
7523 ; return 0; }
7525 if { (eval echo configure:7526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7526 rm -rf conftest*
7527 eval "ac_cv_func_$ac_func=yes"
7528 else
7529 echo "configure: failed program was:" >&5
7530 cat conftest.$ac_ext >&5
7531 rm -rf conftest*
7532 eval "ac_cv_func_$ac_func=no"
7534 rm -f conftest*
7537 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7538 echo "$ac_t""yes" 1>&6
7539 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7540 cat >> confdefs.h <<EOF
7541 #define $ac_tr_func 1
7544 else
7545 echo "$ac_t""no" 1>&6
7547 done
7550 esac
7553 case "$LIBS" in
7554 *-lsecurity*) for ac_func in getprpwnam
7556 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7557 echo "configure:7558: checking for $ac_func" >&5
7558 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7559 echo $ac_n "(cached) $ac_c" 1>&6
7560 else
7561 cat > conftest.$ac_ext <<EOF
7562 #line 7563 "configure"
7563 #include "confdefs.h"
7564 /* System header to define __stub macros and hopefully few prototypes,
7565 which can conflict with char $ac_func(); below. */
7566 #include <assert.h>
7567 /* Override any gcc2 internal prototype to avoid an error. */
7568 /* We use char because int might match the return type of a gcc2
7569 builtin and then its argument prototype would still apply. */
7570 char $ac_func();
7572 int main() {
7574 /* The GNU C library defines this for functions which it implements
7575 to always fail with ENOSYS. Some functions are actually named
7576 something starting with __ and the normal name is an alias. */
7577 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7578 choke me
7579 #else
7580 $ac_func();
7581 #endif
7583 ; return 0; }
7585 if { (eval echo configure:7586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7586 rm -rf conftest*
7587 eval "ac_cv_func_$ac_func=yes"
7588 else
7589 echo "configure: failed program was:" >&5
7590 cat conftest.$ac_ext >&5
7591 rm -rf conftest*
7592 eval "ac_cv_func_$ac_func=no"
7594 rm -f conftest*
7597 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7598 echo "$ac_t""yes" 1>&6
7599 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7600 cat >> confdefs.h <<EOF
7601 #define $ac_tr_func 1
7604 else
7605 echo "$ac_t""no" 1>&6
7607 done
7609 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
7610 echo "configure:7611: checking for getprpwnam in -lsecurity" >&5
7611 ac_lib_var=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
7612 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7613 echo $ac_n "(cached) $ac_c" 1>&6
7614 else
7615 ac_save_LIBS="$LIBS"
7616 LIBS="-lsecurity $LIBS"
7617 cat > conftest.$ac_ext <<EOF
7618 #line 7619 "configure"
7619 #include "confdefs.h"
7620 /* Override any gcc2 internal prototype to avoid an error. */
7621 /* We use char because int might match the return type of a gcc2
7622 builtin and then its argument prototype would still apply. */
7623 char getprpwnam();
7625 int main() {
7626 getprpwnam()
7627 ; return 0; }
7629 if { (eval echo configure:7630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7630 rm -rf conftest*
7631 eval "ac_cv_lib_$ac_lib_var=yes"
7632 else
7633 echo "configure: failed program was:" >&5
7634 cat conftest.$ac_ext >&5
7635 rm -rf conftest*
7636 eval "ac_cv_lib_$ac_lib_var=no"
7638 rm -f conftest*
7639 LIBS="$ac_save_LIBS"
7642 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7643 echo "$ac_t""yes" 1>&6
7644 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7645 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7646 cat >> confdefs.h <<EOF
7647 #define $ac_tr_lib 1
7650 LIBS="-lsecurity $LIBS"
7652 else
7653 echo "$ac_t""no" 1>&6
7656 for ac_func in getprpwnam
7658 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7659 echo "configure:7660: checking for $ac_func" >&5
7660 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7661 echo $ac_n "(cached) $ac_c" 1>&6
7662 else
7663 cat > conftest.$ac_ext <<EOF
7664 #line 7665 "configure"
7665 #include "confdefs.h"
7666 /* System header to define __stub macros and hopefully few prototypes,
7667 which can conflict with char $ac_func(); below. */
7668 #include <assert.h>
7669 /* Override any gcc2 internal prototype to avoid an error. */
7670 /* We use char because int might match the return type of a gcc2
7671 builtin and then its argument prototype would still apply. */
7672 char $ac_func();
7674 int main() {
7676 /* The GNU C library defines this for functions which it implements
7677 to always fail with ENOSYS. Some functions are actually named
7678 something starting with __ and the normal name is an alias. */
7679 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7680 choke me
7681 #else
7682 $ac_func();
7683 #endif
7685 ; return 0; }
7687 if { (eval echo configure:7688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7688 rm -rf conftest*
7689 eval "ac_cv_func_$ac_func=yes"
7690 else
7691 echo "configure: failed program was:" >&5
7692 cat conftest.$ac_ext >&5
7693 rm -rf conftest*
7694 eval "ac_cv_func_$ac_func=no"
7696 rm -f conftest*
7699 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7700 echo "$ac_t""yes" 1>&6
7701 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7702 cat >> confdefs.h <<EOF
7703 #define $ac_tr_func 1
7706 else
7707 echo "$ac_t""no" 1>&6
7709 done
7712 esac
7714 case "$LIBS" in
7715 *-lsec*) for ac_func in getprpwnam
7717 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7718 echo "configure:7719: checking for $ac_func" >&5
7719 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7720 echo $ac_n "(cached) $ac_c" 1>&6
7721 else
7722 cat > conftest.$ac_ext <<EOF
7723 #line 7724 "configure"
7724 #include "confdefs.h"
7725 /* System header to define __stub macros and hopefully few prototypes,
7726 which can conflict with char $ac_func(); below. */
7727 #include <assert.h>
7728 /* Override any gcc2 internal prototype to avoid an error. */
7729 /* We use char because int might match the return type of a gcc2
7730 builtin and then its argument prototype would still apply. */
7731 char $ac_func();
7733 int main() {
7735 /* The GNU C library defines this for functions which it implements
7736 to always fail with ENOSYS. Some functions are actually named
7737 something starting with __ and the normal name is an alias. */
7738 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7739 choke me
7740 #else
7741 $ac_func();
7742 #endif
7744 ; return 0; }
7746 if { (eval echo configure:7747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7747 rm -rf conftest*
7748 eval "ac_cv_func_$ac_func=yes"
7749 else
7750 echo "configure: failed program was:" >&5
7751 cat conftest.$ac_ext >&5
7752 rm -rf conftest*
7753 eval "ac_cv_func_$ac_func=no"
7755 rm -f conftest*
7758 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7759 echo "$ac_t""yes" 1>&6
7760 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7761 cat >> confdefs.h <<EOF
7762 #define $ac_tr_func 1
7765 else
7766 echo "$ac_t""no" 1>&6
7768 done
7770 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
7771 echo "configure:7772: checking for getprpwnam in -lsec" >&5
7772 ac_lib_var=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
7773 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7774 echo $ac_n "(cached) $ac_c" 1>&6
7775 else
7776 ac_save_LIBS="$LIBS"
7777 LIBS="-lsec $LIBS"
7778 cat > conftest.$ac_ext <<EOF
7779 #line 7780 "configure"
7780 #include "confdefs.h"
7781 /* Override any gcc2 internal prototype to avoid an error. */
7782 /* We use char because int might match the return type of a gcc2
7783 builtin and then its argument prototype would still apply. */
7784 char getprpwnam();
7786 int main() {
7787 getprpwnam()
7788 ; return 0; }
7790 if { (eval echo configure:7791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7791 rm -rf conftest*
7792 eval "ac_cv_lib_$ac_lib_var=yes"
7793 else
7794 echo "configure: failed program was:" >&5
7795 cat conftest.$ac_ext >&5
7796 rm -rf conftest*
7797 eval "ac_cv_lib_$ac_lib_var=no"
7799 rm -f conftest*
7800 LIBS="$ac_save_LIBS"
7803 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7804 echo "$ac_t""yes" 1>&6
7805 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7806 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7807 cat >> confdefs.h <<EOF
7808 #define $ac_tr_lib 1
7811 LIBS="-lsec $LIBS"
7813 else
7814 echo "$ac_t""no" 1>&6
7817 for ac_func in getprpwnam
7819 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7820 echo "configure:7821: checking for $ac_func" >&5
7821 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7822 echo $ac_n "(cached) $ac_c" 1>&6
7823 else
7824 cat > conftest.$ac_ext <<EOF
7825 #line 7826 "configure"
7826 #include "confdefs.h"
7827 /* System header to define __stub macros and hopefully few prototypes,
7828 which can conflict with char $ac_func(); below. */
7829 #include <assert.h>
7830 /* Override any gcc2 internal prototype to avoid an error. */
7831 /* We use char because int might match the return type of a gcc2
7832 builtin and then its argument prototype would still apply. */
7833 char $ac_func();
7835 int main() {
7837 /* The GNU C library defines this for functions which it implements
7838 to always fail with ENOSYS. Some functions are actually named
7839 something starting with __ and the normal name is an alias. */
7840 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7841 choke me
7842 #else
7843 $ac_func();
7844 #endif
7846 ; return 0; }
7848 if { (eval echo configure:7849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7849 rm -rf conftest*
7850 eval "ac_cv_func_$ac_func=yes"
7851 else
7852 echo "configure: failed program was:" >&5
7853 cat conftest.$ac_ext >&5
7854 rm -rf conftest*
7855 eval "ac_cv_func_$ac_func=no"
7857 rm -f conftest*
7860 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7861 echo "$ac_t""yes" 1>&6
7862 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7863 cat >> confdefs.h <<EOF
7864 #define $ac_tr_func 1
7867 else
7868 echo "$ac_t""no" 1>&6
7870 done
7873 esac
7876 # this bit needs to be modified for each OS that is suported by
7877 # smbwrapper. You need to specify how to created a shared library and
7878 # how to compile C code to produce PIC object files
7880 # these are the defaults, good for lots of systems
7881 HOST_OS="$host_os"
7882 LDSHFLAGS="-shared"
7883 PICFLAG=""
7884 SHLIBEXT="so"
7886 # and these are for particular systems
7887 case "$host_os" in
7888 *linux*) cat >> confdefs.h <<\EOF
7889 #define LINUX 1
7892 *solaris*) cat >> confdefs.h <<\EOF
7893 #define SUNOS5 1
7896 LDSHFLAGS="-G"
7898 *sunos*) cat >> confdefs.h <<\EOF
7899 #define SUNOS4 1
7902 LDSHFLAGS=""
7904 *bsd*) LDSHFLAGS="-shared -Bshareable"
7906 *irix*) cat >> confdefs.h <<\EOF
7907 #define IRIX 1
7910 case "$host_os" in
7911 *irix6*) cat >> confdefs.h <<\EOF
7912 #define IRIX6 1
7916 esac
7917 ATTEMPT_WRAP32_BUILD=yes
7919 *aix*) cat >> confdefs.h <<\EOF
7920 #define AIX 1
7923 *hpux*) cat >> confdefs.h <<\EOF
7924 #define HPUX 1
7927 SHLIBEXT="sl"
7928 # Use special PIC flags for the native HP-UX compiler.
7929 if test $ac_cv_prog_cc_Ae = yes; then
7930 LDSHFLAGS="-b"
7931 PICFLAG="+z"
7934 *qnx*) cat >> confdefs.h <<\EOF
7935 #define QNX 1
7938 *osf*) cat >> confdefs.h <<\EOF
7939 #define OSF1 1
7942 *sco*) cat >> confdefs.h <<\EOF
7943 #define SCO 1
7946 *next2*) cat >> confdefs.h <<\EOF
7947 #define NEXT2 1
7950 *dgux*) # Extract the first word of "groff", so it can be a program name with args.
7951 set dummy groff; ac_word=$2
7952 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7953 echo "configure:7954: checking for $ac_word" >&5
7954 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
7955 echo $ac_n "(cached) $ac_c" 1>&6
7956 else
7957 if test -n "$ROFF"; then
7958 ac_cv_prog_ROFF="$ROFF" # Let the user override the test.
7959 else
7960 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7961 ac_dummy="$PATH"
7962 for ac_dir in $ac_dummy; do
7963 test -z "$ac_dir" && ac_dir=.
7964 if test -f $ac_dir/$ac_word; then
7965 ac_cv_prog_ROFF="groff -etpsR -Tascii -man"
7966 break
7968 done
7969 IFS="$ac_save_ifs"
7972 ROFF="$ac_cv_prog_ROFF"
7973 if test -n "$ROFF"; then
7974 echo "$ac_t""$ROFF" 1>&6
7975 else
7976 echo "$ac_t""no" 1>&6
7979 *sysv4*)
7980 case "$host" in
7981 *-univel-*) if test "$GCC" != yes ; then
7982 cat >> confdefs.h <<\EOF
7983 #define HAVE_MEMSET 1
7987 LDSHFLAGS="-G"
7989 *mips-sni-sysv4*) cat >> confdefs.h <<\EOF
7990 #define RELIANTUNIX 1
7993 esac
7995 *sysv5*)
7996 if test "$GCC" != yes ; then
7997 cat >> confdefs.h <<\EOF
7998 #define HAVE_MEMSET 1
8002 LDSHFLAGS="-G"
8004 esac
8006 # try to work out how to produce pic code with this compiler
8007 echo $ac_n "checking whether ${CC-cc} accepts -fpic""... $ac_c" 1>&6
8008 echo "configure:8009: checking whether ${CC-cc} accepts -fpic" >&5
8009 if eval "test \"`echo '$''{'ac_cv_prog_cc_fpic'+set}'`\" = set"; then
8010 echo $ac_n "(cached) $ac_c" 1>&6
8011 else
8012 echo 'void f(){}' > conftest.c
8013 if test -z "`${CC-cc} -fpic -c conftest.c 2>&1`"; then
8014 ac_cv_prog_cc_fpic=yes
8015 else
8016 ac_cv_prog_cc_fpic=no
8018 rm -f conftest*
8022 echo "$ac_t""$ac_cv_prog_cc_fpic" 1>&6
8023 if test $ac_cv_prog_cc_fpic = yes; then
8024 PICFLAG="-fpic";
8026 if test x$PICFLAG = x; then
8027 echo $ac_n "checking whether ${CC-cc} accepts -Kpic""... $ac_c" 1>&6
8028 echo "configure:8029: checking whether ${CC-cc} accepts -Kpic" >&5
8029 if eval "test \"`echo '$''{'ac_cv_prog_cc_Kpic'+set}'`\" = set"; then
8030 echo $ac_n "(cached) $ac_c" 1>&6
8031 else
8032 echo 'void f(){}' > conftest.c
8033 if test -z "`${CC-cc} -Kpic -c conftest.c 2>&1`"; then
8034 ac_cv_prog_cc_Kpic=yes
8035 else
8036 ac_cv_prog_cc_Kpic=no
8038 rm -f conftest*
8042 echo "$ac_t""$ac_cv_prog_cc_Kpic" 1>&6
8043 if test $ac_cv_prog_cc_Kpic = yes; then
8044 PICFLAG="-Kpic";
8047 if test x$PICFLAG = x; then
8048 echo $ac_n "checking whether ${CC-cc} accepts -KPIC""... $ac_c" 1>&6
8049 echo "configure:8050: checking whether ${CC-cc} accepts -KPIC" >&5
8050 if eval "test \"`echo '$''{'ac_cv_prog_cc_KPIC'+set}'`\" = set"; then
8051 echo $ac_n "(cached) $ac_c" 1>&6
8052 else
8053 echo 'void f(){}' > conftest.c
8054 if test -z "`${CC-cc} -KPIC -c conftest.c 2>&1`"; then
8055 ac_cv_prog_cc_KPIC=yes
8056 else
8057 ac_cv_prog_cc_KPIC=no
8059 rm -f conftest*
8063 echo "$ac_t""$ac_cv_prog_cc_KPIC" 1>&6
8064 if test $ac_cv_prog_cc_KPIC = yes; then
8065 PICFLAG="-KPIC";
8069 ################
8071 echo $ac_n "checking for long long""... $ac_c" 1>&6
8072 echo "configure:8073: checking for long long" >&5
8073 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
8074 echo $ac_n "(cached) $ac_c" 1>&6
8075 else
8077 if test "$cross_compiling" = yes; then
8078 samba_cv_have_longlong=cross
8079 else
8080 cat > conftest.$ac_ext <<EOF
8081 #line 8082 "configure"
8082 #include "confdefs.h"
8083 #include <stdio.h>
8084 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
8086 if { (eval echo configure:8087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8087 then
8088 samba_cv_have_longlong=yes
8089 else
8090 echo "configure: failed program was:" >&5
8091 cat conftest.$ac_ext >&5
8092 rm -fr conftest*
8093 samba_cv_have_longlong=no
8095 rm -fr conftest*
8100 echo "$ac_t""$samba_cv_have_longlong" 1>&6
8101 if test x"$samba_cv_have_longlong" = x"yes"; then
8102 cat >> confdefs.h <<\EOF
8103 #define HAVE_LONGLONG 1
8109 # Check if the compiler supports the LL prefix on long long integers.
8110 # AIX needs this.
8112 echo $ac_n "checking for LL suffix on long long integers""... $ac_c" 1>&6
8113 echo "configure:8114: checking for LL suffix on long long integers" >&5
8114 if eval "test \"`echo '$''{'samba_cv_compiler_supports_ll'+set}'`\" = set"; then
8115 echo $ac_n "(cached) $ac_c" 1>&6
8116 else
8118 cat > conftest.$ac_ext <<EOF
8119 #line 8120 "configure"
8120 #include "confdefs.h"
8121 #include <stdio.h>
8122 int main() {
8123 long long i = 0x8000000000LL
8124 ; return 0; }
8126 if { (eval echo configure:8127: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8127 rm -rf conftest*
8128 samba_cv_compiler_supports_ll=yes
8129 else
8130 echo "configure: failed program was:" >&5
8131 cat conftest.$ac_ext >&5
8132 rm -rf conftest*
8133 samba_cv_compiler_supports_ll=no
8135 rm -f conftest*
8138 echo "$ac_t""$samba_cv_compiler_supports_ll" 1>&6
8139 if test x"$samba_cv_compiler_supports_ll" = x"yes"; then
8140 cat >> confdefs.h <<\EOF
8141 #define COMPILER_SUPPORTS_LL 1
8147 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
8148 echo "configure:8149: checking for 64 bit off_t" >&5
8149 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
8150 echo $ac_n "(cached) $ac_c" 1>&6
8151 else
8153 if test "$cross_compiling" = yes; then
8154 samba_cv_SIZEOF_OFF_T=cross
8155 else
8156 cat > conftest.$ac_ext <<EOF
8157 #line 8158 "configure"
8158 #include "confdefs.h"
8159 #include <stdio.h>
8160 #include <sys/stat.h>
8161 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
8163 if { (eval echo configure:8164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8164 then
8165 samba_cv_SIZEOF_OFF_T=yes
8166 else
8167 echo "configure: failed program was:" >&5
8168 cat conftest.$ac_ext >&5
8169 rm -fr conftest*
8170 samba_cv_SIZEOF_OFF_T=no
8172 rm -fr conftest*
8177 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
8178 if test x"$samba_cv_SIZEOF_OFF_T" = x"yes"; then
8179 cat >> confdefs.h <<\EOF
8180 #define SIZEOF_OFF_T 8
8185 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
8186 echo "configure:8187: checking for off64_t" >&5
8187 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
8188 echo $ac_n "(cached) $ac_c" 1>&6
8189 else
8191 if test "$cross_compiling" = yes; then
8192 samba_cv_HAVE_OFF64_T=cross
8193 else
8194 cat > conftest.$ac_ext <<EOF
8195 #line 8196 "configure"
8196 #include "confdefs.h"
8198 #if defined(HAVE_UNISTD_H)
8199 #include <unistd.h>
8200 #endif
8201 #include <stdio.h>
8202 #include <sys/stat.h>
8203 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8205 if { (eval echo configure:8206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8206 then
8207 samba_cv_HAVE_OFF64_T=yes
8208 else
8209 echo "configure: failed program was:" >&5
8210 cat conftest.$ac_ext >&5
8211 rm -fr conftest*
8212 samba_cv_HAVE_OFF64_T=no
8214 rm -fr conftest*
8219 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
8220 if test x"$samba_cv_HAVE_OFF64_T" = x"yes"; then
8221 cat >> confdefs.h <<\EOF
8222 #define HAVE_OFF64_T 1
8227 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
8228 echo "configure:8229: checking for 64 bit ino_t" >&5
8229 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
8230 echo $ac_n "(cached) $ac_c" 1>&6
8231 else
8233 if test "$cross_compiling" = yes; then
8234 samba_cv_SIZEOF_INO_T=cross
8235 else
8236 cat > conftest.$ac_ext <<EOF
8237 #line 8238 "configure"
8238 #include "confdefs.h"
8239 #include <stdio.h>
8240 #include <sys/stat.h>
8241 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
8243 if { (eval echo configure:8244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8244 then
8245 samba_cv_SIZEOF_INO_T=yes
8246 else
8247 echo "configure: failed program was:" >&5
8248 cat conftest.$ac_ext >&5
8249 rm -fr conftest*
8250 samba_cv_SIZEOF_INO_T=no
8252 rm -fr conftest*
8257 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
8258 if test x"$samba_cv_SIZEOF_INO_T" = x"yes"; then
8259 cat >> confdefs.h <<\EOF
8260 #define SIZEOF_INO_T 8
8265 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
8266 echo "configure:8267: checking for ino64_t" >&5
8267 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
8268 echo $ac_n "(cached) $ac_c" 1>&6
8269 else
8271 if test "$cross_compiling" = yes; then
8272 samba_cv_HAVE_INO64_T=cross
8273 else
8274 cat > conftest.$ac_ext <<EOF
8275 #line 8276 "configure"
8276 #include "confdefs.h"
8278 #if defined(HAVE_UNISTD_H)
8279 #include <unistd.h>
8280 #endif
8281 #include <stdio.h>
8282 #include <sys/stat.h>
8283 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8285 if { (eval echo configure:8286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8286 then
8287 samba_cv_HAVE_INO64_T=yes
8288 else
8289 echo "configure: failed program was:" >&5
8290 cat conftest.$ac_ext >&5
8291 rm -fr conftest*
8292 samba_cv_HAVE_INO64_T=no
8294 rm -fr conftest*
8299 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
8300 if test x"$samba_cv_HAVE_INO64_T" = x"yes"; then
8301 cat >> confdefs.h <<\EOF
8302 #define HAVE_INO64_T 1
8307 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
8308 echo "configure:8309: checking for struct dirent64" >&5
8309 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
8310 echo $ac_n "(cached) $ac_c" 1>&6
8311 else
8313 cat > conftest.$ac_ext <<EOF
8314 #line 8315 "configure"
8315 #include "confdefs.h"
8317 #if defined(HAVE_UNISTD_H)
8318 #include <unistd.h>
8319 #endif
8320 #include <sys/types.h>
8321 #include <dirent.h>
8322 int main() {
8323 struct dirent64 de;
8324 ; return 0; }
8326 if { (eval echo configure:8327: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8327 rm -rf conftest*
8328 samba_cv_HAVE_STRUCT_DIRENT64=yes
8329 else
8330 echo "configure: failed program was:" >&5
8331 cat conftest.$ac_ext >&5
8332 rm -rf conftest*
8333 samba_cv_HAVE_STRUCT_DIRENT64=no
8335 rm -f conftest*
8338 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
8339 if test x"$samba_cv_HAVE_STRUCT_DIRENT64" = x"yes"; then
8340 cat >> confdefs.h <<\EOF
8341 #define HAVE_STRUCT_DIRENT64 1
8346 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
8347 echo "configure:8348: checking for unsigned char" >&5
8348 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
8349 echo $ac_n "(cached) $ac_c" 1>&6
8350 else
8352 if test "$cross_compiling" = yes; then
8353 samba_cv_HAVE_UNSIGNED_CHAR=cross
8354 else
8355 cat > conftest.$ac_ext <<EOF
8356 #line 8357 "configure"
8357 #include "confdefs.h"
8358 #include <stdio.h>
8359 main() { char c; c=250; exit((c > 0)?0:1); }
8361 if { (eval echo configure:8362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8362 then
8363 samba_cv_HAVE_UNSIGNED_CHAR=yes
8364 else
8365 echo "configure: failed program was:" >&5
8366 cat conftest.$ac_ext >&5
8367 rm -fr conftest*
8368 samba_cv_HAVE_UNSIGNED_CHAR=no
8370 rm -fr conftest*
8375 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
8376 if test x"$samba_cv_HAVE_UNSIGNED_CHAR" = x"yes"; then
8377 cat >> confdefs.h <<\EOF
8378 #define HAVE_UNSIGNED_CHAR 1
8383 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
8384 echo "configure:8385: checking for sin_len in sock" >&5
8385 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
8386 echo $ac_n "(cached) $ac_c" 1>&6
8387 else
8389 cat > conftest.$ac_ext <<EOF
8390 #line 8391 "configure"
8391 #include "confdefs.h"
8392 #include <sys/types.h>
8393 #include <sys/socket.h>
8394 #include <netinet/in.h>
8395 int main() {
8396 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
8397 ; return 0; }
8399 if { (eval echo configure:8400: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8400 rm -rf conftest*
8401 samba_cv_HAVE_SOCK_SIN_LEN=yes
8402 else
8403 echo "configure: failed program was:" >&5
8404 cat conftest.$ac_ext >&5
8405 rm -rf conftest*
8406 samba_cv_HAVE_SOCK_SIN_LEN=no
8408 rm -f conftest*
8411 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
8412 if test x"$samba_cv_HAVE_SOCK_SIN_LEN" = x"yes"; then
8413 cat >> confdefs.h <<\EOF
8414 #define HAVE_SOCK_SIN_LEN 1
8419 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
8420 echo "configure:8421: checking whether seekdir returns void" >&5
8421 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
8422 echo $ac_n "(cached) $ac_c" 1>&6
8423 else
8425 cat > conftest.$ac_ext <<EOF
8426 #line 8427 "configure"
8427 #include "confdefs.h"
8428 #include <sys/types.h>
8429 #include <dirent.h>
8430 void seekdir(DIR *d, long loc) { return; }
8431 int main() {
8432 return 0;
8433 ; return 0; }
8435 if { (eval echo configure:8436: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8436 rm -rf conftest*
8437 samba_cv_SEEKDIR_RETURNS_VOID=yes
8438 else
8439 echo "configure: failed program was:" >&5
8440 cat conftest.$ac_ext >&5
8441 rm -rf conftest*
8442 samba_cv_SEEKDIR_RETURNS_VOID=no
8444 rm -f conftest*
8447 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
8448 if test x"$samba_cv_SEEKDIR_RETURNS_VOID" = x"yes"; then
8449 cat >> confdefs.h <<\EOF
8450 #define SEEKDIR_RETURNS_VOID 1
8455 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
8456 echo "configure:8457: checking for __FILE__ macro" >&5
8457 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
8458 echo $ac_n "(cached) $ac_c" 1>&6
8459 else
8461 cat > conftest.$ac_ext <<EOF
8462 #line 8463 "configure"
8463 #include "confdefs.h"
8464 #include <stdio.h>
8465 int main() {
8466 printf("%s\n", __FILE__);
8467 ; return 0; }
8469 if { (eval echo configure:8470: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8470 rm -rf conftest*
8471 samba_cv_HAVE_FILE_MACRO=yes
8472 else
8473 echo "configure: failed program was:" >&5
8474 cat conftest.$ac_ext >&5
8475 rm -rf conftest*
8476 samba_cv_HAVE_FILE_MACRO=no
8478 rm -f conftest*
8481 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
8482 if test x"$samba_cv_HAVE_FILE_MACRO" = x"yes"; then
8483 cat >> confdefs.h <<\EOF
8484 #define HAVE_FILE_MACRO 1
8489 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
8490 echo "configure:8491: checking for __FUNCTION__ macro" >&5
8491 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
8492 echo $ac_n "(cached) $ac_c" 1>&6
8493 else
8495 cat > conftest.$ac_ext <<EOF
8496 #line 8497 "configure"
8497 #include "confdefs.h"
8498 #include <stdio.h>
8499 int main() {
8500 printf("%s\n", __FUNCTION__);
8501 ; return 0; }
8503 if { (eval echo configure:8504: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8504 rm -rf conftest*
8505 samba_cv_HAVE_FUNCTION_MACRO=yes
8506 else
8507 echo "configure: failed program was:" >&5
8508 cat conftest.$ac_ext >&5
8509 rm -rf conftest*
8510 samba_cv_HAVE_FUNCTION_MACRO=no
8512 rm -f conftest*
8515 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
8516 if test x"$samba_cv_HAVE_FUNCTION_MACRO" = x"yes"; then
8517 cat >> confdefs.h <<\EOF
8518 #define HAVE_FUNCTION_MACRO 1
8523 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
8524 echo "configure:8525: checking if gettimeofday takes tz argument" >&5
8525 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
8526 echo $ac_n "(cached) $ac_c" 1>&6
8527 else
8529 if test "$cross_compiling" = yes; then
8530 samba_cv_HAVE_GETTIMEOFDAY_TZ=cross
8531 else
8532 cat > conftest.$ac_ext <<EOF
8533 #line 8534 "configure"
8534 #include "confdefs.h"
8536 #include <sys/time.h>
8537 #include <unistd.h>
8538 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
8540 if { (eval echo configure:8541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8541 then
8542 samba_cv_HAVE_GETTIMEOFDAY_TZ=yes
8543 else
8544 echo "configure: failed program was:" >&5
8545 cat conftest.$ac_ext >&5
8546 rm -fr conftest*
8547 samba_cv_HAVE_GETTIMEOFDAY_TZ=no
8549 rm -fr conftest*
8554 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
8555 if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
8556 cat >> confdefs.h <<\EOF
8557 #define HAVE_GETTIMEOFDAY_TZ 1
8563 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
8564 echo "configure:8565: checking for broken readdir" >&5
8565 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
8566 echo $ac_n "(cached) $ac_c" 1>&6
8567 else
8569 if test "$cross_compiling" = yes; then
8570 samba_cv_HAVE_BROKEN_READDIR=cross
8571 else
8572 cat > conftest.$ac_ext <<EOF
8573 #line 8574 "configure"
8574 #include "confdefs.h"
8575 #include <sys/types.h>
8576 #include <dirent.h>
8577 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
8578 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
8579 di->d_name[0] == 0) exit(0); exit(1);}
8581 if { (eval echo configure:8582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8582 then
8583 samba_cv_HAVE_BROKEN_READDIR=yes
8584 else
8585 echo "configure: failed program was:" >&5
8586 cat conftest.$ac_ext >&5
8587 rm -fr conftest*
8588 samba_cv_HAVE_BROKEN_READDIR=no
8590 rm -fr conftest*
8595 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
8596 if test x"$samba_cv_HAVE_BROKEN_READDIR" = x"yes"; then
8597 cat >> confdefs.h <<\EOF
8598 #define HAVE_BROKEN_READDIR 1
8603 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
8604 echo "configure:8605: checking for utimbuf" >&5
8605 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
8606 echo $ac_n "(cached) $ac_c" 1>&6
8607 else
8609 cat > conftest.$ac_ext <<EOF
8610 #line 8611 "configure"
8611 #include "confdefs.h"
8612 #include <sys/types.h>
8613 #include <utime.h>
8614 int main() {
8615 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
8616 ; return 0; }
8618 if { (eval echo configure:8619: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8619 rm -rf conftest*
8620 samba_cv_HAVE_UTIMBUF=yes
8621 else
8622 echo "configure: failed program was:" >&5
8623 cat conftest.$ac_ext >&5
8624 rm -rf conftest*
8625 samba_cv_HAVE_UTIMBUF=no
8627 rm -f conftest*
8630 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
8631 if test x"$samba_cv_HAVE_UTIMBUF" = x"yes"; then
8632 cat >> confdefs.h <<\EOF
8633 #define HAVE_UTIMBUF 1
8639 for ac_func in pututline pututxline updwtmp updwtmpx getutmpx
8641 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8642 echo "configure:8643: checking for $ac_func" >&5
8643 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8644 echo $ac_n "(cached) $ac_c" 1>&6
8645 else
8646 cat > conftest.$ac_ext <<EOF
8647 #line 8648 "configure"
8648 #include "confdefs.h"
8649 /* System header to define __stub macros and hopefully few prototypes,
8650 which can conflict with char $ac_func(); below. */
8651 #include <assert.h>
8652 /* Override any gcc2 internal prototype to avoid an error. */
8653 /* We use char because int might match the return type of a gcc2
8654 builtin and then its argument prototype would still apply. */
8655 char $ac_func();
8657 int main() {
8659 /* The GNU C library defines this for functions which it implements
8660 to always fail with ENOSYS. Some functions are actually named
8661 something starting with __ and the normal name is an alias. */
8662 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8663 choke me
8664 #else
8665 $ac_func();
8666 #endif
8668 ; return 0; }
8670 if { (eval echo configure:8671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8671 rm -rf conftest*
8672 eval "ac_cv_func_$ac_func=yes"
8673 else
8674 echo "configure: failed program was:" >&5
8675 cat conftest.$ac_ext >&5
8676 rm -rf conftest*
8677 eval "ac_cv_func_$ac_func=no"
8679 rm -f conftest*
8682 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8683 echo "$ac_t""yes" 1>&6
8684 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8685 cat >> confdefs.h <<EOF
8686 #define $ac_tr_func 1
8689 else
8690 echo "$ac_t""no" 1>&6
8692 done
8695 echo $ac_n "checking for ut_name in utmp""... $ac_c" 1>&6
8696 echo "configure:8697: checking for ut_name in utmp" >&5
8697 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_NAME'+set}'`\" = set"; then
8698 echo $ac_n "(cached) $ac_c" 1>&6
8699 else
8701 cat > conftest.$ac_ext <<EOF
8702 #line 8703 "configure"
8703 #include "confdefs.h"
8704 #include <sys/types.h>
8705 #include <utmp.h>
8706 int main() {
8707 struct utmp ut; ut.ut_name[0] = 'a';
8708 ; return 0; }
8710 if { (eval echo configure:8711: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8711 rm -rf conftest*
8712 samba_cv_HAVE_UT_UT_NAME=yes
8713 else
8714 echo "configure: failed program was:" >&5
8715 cat conftest.$ac_ext >&5
8716 rm -rf conftest*
8717 samba_cv_HAVE_UT_UT_NAME=no
8719 rm -f conftest*
8722 echo "$ac_t""$samba_cv_HAVE_UT_UT_NAME" 1>&6
8723 if test x"$samba_cv_HAVE_UT_UT_NAME" = x"yes"; then
8724 cat >> confdefs.h <<\EOF
8725 #define HAVE_UT_UT_NAME 1
8730 echo $ac_n "checking for ut_user in utmp""... $ac_c" 1>&6
8731 echo "configure:8732: checking for ut_user in utmp" >&5
8732 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_USER'+set}'`\" = set"; then
8733 echo $ac_n "(cached) $ac_c" 1>&6
8734 else
8736 cat > conftest.$ac_ext <<EOF
8737 #line 8738 "configure"
8738 #include "confdefs.h"
8739 #include <sys/types.h>
8740 #include <utmp.h>
8741 int main() {
8742 struct utmp ut; ut.ut_user[0] = 'a';
8743 ; return 0; }
8745 if { (eval echo configure:8746: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8746 rm -rf conftest*
8747 samba_cv_HAVE_UT_UT_USER=yes
8748 else
8749 echo "configure: failed program was:" >&5
8750 cat conftest.$ac_ext >&5
8751 rm -rf conftest*
8752 samba_cv_HAVE_UT_UT_USER=no
8754 rm -f conftest*
8757 echo "$ac_t""$samba_cv_HAVE_UT_UT_USER" 1>&6
8758 if test x"$samba_cv_HAVE_UT_UT_USER" = x"yes"; then
8759 cat >> confdefs.h <<\EOF
8760 #define HAVE_UT_UT_USER 1
8765 echo $ac_n "checking for ut_id in utmp""... $ac_c" 1>&6
8766 echo "configure:8767: checking for ut_id in utmp" >&5
8767 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ID'+set}'`\" = set"; then
8768 echo $ac_n "(cached) $ac_c" 1>&6
8769 else
8771 cat > conftest.$ac_ext <<EOF
8772 #line 8773 "configure"
8773 #include "confdefs.h"
8774 #include <sys/types.h>
8775 #include <utmp.h>
8776 int main() {
8777 struct utmp ut; ut.ut_id[0] = 'a';
8778 ; return 0; }
8780 if { (eval echo configure:8781: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8781 rm -rf conftest*
8782 samba_cv_HAVE_UT_UT_ID=yes
8783 else
8784 echo "configure: failed program was:" >&5
8785 cat conftest.$ac_ext >&5
8786 rm -rf conftest*
8787 samba_cv_HAVE_UT_UT_ID=no
8789 rm -f conftest*
8792 echo "$ac_t""$samba_cv_HAVE_UT_UT_ID" 1>&6
8793 if test x"$samba_cv_HAVE_UT_UT_ID" = x"yes"; then
8794 cat >> confdefs.h <<\EOF
8795 #define HAVE_UT_UT_ID 1
8800 echo $ac_n "checking for ut_host in utmp""... $ac_c" 1>&6
8801 echo "configure:8802: checking for ut_host in utmp" >&5
8802 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_HOST'+set}'`\" = set"; then
8803 echo $ac_n "(cached) $ac_c" 1>&6
8804 else
8806 cat > conftest.$ac_ext <<EOF
8807 #line 8808 "configure"
8808 #include "confdefs.h"
8809 #include <sys/types.h>
8810 #include <utmp.h>
8811 int main() {
8812 struct utmp ut; ut.ut_host[0] = 'a';
8813 ; return 0; }
8815 if { (eval echo configure:8816: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8816 rm -rf conftest*
8817 samba_cv_HAVE_UT_UT_HOST=yes
8818 else
8819 echo "configure: failed program was:" >&5
8820 cat conftest.$ac_ext >&5
8821 rm -rf conftest*
8822 samba_cv_HAVE_UT_UT_HOST=no
8824 rm -f conftest*
8827 echo "$ac_t""$samba_cv_HAVE_UT_UT_HOST" 1>&6
8828 if test x"$samba_cv_HAVE_UT_UT_HOST" = x"yes"; then
8829 cat >> confdefs.h <<\EOF
8830 #define HAVE_UT_UT_HOST 1
8835 echo $ac_n "checking for ut_time in utmp""... $ac_c" 1>&6
8836 echo "configure:8837: checking for ut_time in utmp" >&5
8837 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TIME'+set}'`\" = set"; then
8838 echo $ac_n "(cached) $ac_c" 1>&6
8839 else
8841 cat > conftest.$ac_ext <<EOF
8842 #line 8843 "configure"
8843 #include "confdefs.h"
8844 #include <sys/types.h>
8845 #include <utmp.h>
8846 int main() {
8847 struct utmp ut; time_t t; ut.ut_time = t;
8848 ; return 0; }
8850 if { (eval echo configure:8851: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8851 rm -rf conftest*
8852 samba_cv_HAVE_UT_UT_TIME=yes
8853 else
8854 echo "configure: failed program was:" >&5
8855 cat conftest.$ac_ext >&5
8856 rm -rf conftest*
8857 samba_cv_HAVE_UT_UT_TIME=no
8859 rm -f conftest*
8862 echo "$ac_t""$samba_cv_HAVE_UT_UT_TIME" 1>&6
8863 if test x"$samba_cv_HAVE_UT_UT_TIME" = x"yes"; then
8864 cat >> confdefs.h <<\EOF
8865 #define HAVE_UT_UT_TIME 1
8870 echo $ac_n "checking for ut_tv in utmp""... $ac_c" 1>&6
8871 echo "configure:8872: checking for ut_tv in utmp" >&5
8872 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TV'+set}'`\" = set"; then
8873 echo $ac_n "(cached) $ac_c" 1>&6
8874 else
8876 cat > conftest.$ac_ext <<EOF
8877 #line 8878 "configure"
8878 #include "confdefs.h"
8879 #include <sys/types.h>
8880 #include <utmp.h>
8881 int main() {
8882 struct utmp ut; struct timeval tv; ut.ut_tv = tv;
8883 ; return 0; }
8885 if { (eval echo configure:8886: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8886 rm -rf conftest*
8887 samba_cv_HAVE_UT_UT_TV=yes
8888 else
8889 echo "configure: failed program was:" >&5
8890 cat conftest.$ac_ext >&5
8891 rm -rf conftest*
8892 samba_cv_HAVE_UT_UT_TV=no
8894 rm -f conftest*
8897 echo "$ac_t""$samba_cv_HAVE_UT_UT_TV" 1>&6
8898 if test x"$samba_cv_HAVE_UT_UT_TV" = x"yes"; then
8899 cat >> confdefs.h <<\EOF
8900 #define HAVE_UT_UT_TV 1
8905 echo $ac_n "checking for ut_type in utmp""... $ac_c" 1>&6
8906 echo "configure:8907: checking for ut_type in utmp" >&5
8907 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TYPE'+set}'`\" = set"; then
8908 echo $ac_n "(cached) $ac_c" 1>&6
8909 else
8911 cat > conftest.$ac_ext <<EOF
8912 #line 8913 "configure"
8913 #include "confdefs.h"
8914 #include <sys/types.h>
8915 #include <utmp.h>
8916 int main() {
8917 struct utmp ut; ut.ut_type = 0;
8918 ; return 0; }
8920 if { (eval echo configure:8921: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8921 rm -rf conftest*
8922 samba_cv_HAVE_UT_UT_TYPE=yes
8923 else
8924 echo "configure: failed program was:" >&5
8925 cat conftest.$ac_ext >&5
8926 rm -rf conftest*
8927 samba_cv_HAVE_UT_UT_TYPE=no
8929 rm -f conftest*
8932 echo "$ac_t""$samba_cv_HAVE_UT_UT_TYPE" 1>&6
8933 if test x"$samba_cv_HAVE_UT_UT_TYPE" = x"yes"; then
8934 cat >> confdefs.h <<\EOF
8935 #define HAVE_UT_UT_TYPE 1
8940 echo $ac_n "checking for ut_pid in utmp""... $ac_c" 1>&6
8941 echo "configure:8942: checking for ut_pid in utmp" >&5
8942 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_PID'+set}'`\" = set"; then
8943 echo $ac_n "(cached) $ac_c" 1>&6
8944 else
8946 cat > conftest.$ac_ext <<EOF
8947 #line 8948 "configure"
8948 #include "confdefs.h"
8949 #include <sys/types.h>
8950 #include <utmp.h>
8951 int main() {
8952 struct utmp ut; ut.ut_pid = 0;
8953 ; return 0; }
8955 if { (eval echo configure:8956: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8956 rm -rf conftest*
8957 samba_cv_HAVE_UT_UT_PID=yes
8958 else
8959 echo "configure: failed program was:" >&5
8960 cat conftest.$ac_ext >&5
8961 rm -rf conftest*
8962 samba_cv_HAVE_UT_UT_PID=no
8964 rm -f conftest*
8967 echo "$ac_t""$samba_cv_HAVE_UT_UT_PID" 1>&6
8968 if test x"$samba_cv_HAVE_UT_UT_PID" = x"yes"; then
8969 cat >> confdefs.h <<\EOF
8970 #define HAVE_UT_UT_PID 1
8975 echo $ac_n "checking for ut_exit in utmp""... $ac_c" 1>&6
8976 echo "configure:8977: checking for ut_exit in utmp" >&5
8977 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_EXIT'+set}'`\" = set"; then
8978 echo $ac_n "(cached) $ac_c" 1>&6
8979 else
8981 cat > conftest.$ac_ext <<EOF
8982 #line 8983 "configure"
8983 #include "confdefs.h"
8984 #include <sys/types.h>
8985 #include <utmp.h>
8986 int main() {
8987 struct utmp ut; ut.ut_exit.e_exit = 0;
8988 ; return 0; }
8990 if { (eval echo configure:8991: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8991 rm -rf conftest*
8992 samba_cv_HAVE_UT_UT_EXIT=yes
8993 else
8994 echo "configure: failed program was:" >&5
8995 cat conftest.$ac_ext >&5
8996 rm -rf conftest*
8997 samba_cv_HAVE_UT_UT_EXIT=no
8999 rm -f conftest*
9002 echo "$ac_t""$samba_cv_HAVE_UT_UT_EXIT" 1>&6
9003 if test x"$samba_cv_HAVE_UT_UT_EXIT" = x"yes"; then
9004 cat >> confdefs.h <<\EOF
9005 #define HAVE_UT_UT_EXIT 1
9010 echo $ac_n "checking for ut_addr in utmp""... $ac_c" 1>&6
9011 echo "configure:9012: checking for ut_addr in utmp" >&5
9012 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ADDR'+set}'`\" = set"; then
9013 echo $ac_n "(cached) $ac_c" 1>&6
9014 else
9016 cat > conftest.$ac_ext <<EOF
9017 #line 9018 "configure"
9018 #include "confdefs.h"
9019 #include <sys/types.h>
9020 #include <utmp.h>
9021 int main() {
9022 struct utmp ut; ut.ut_addr = 0;
9023 ; return 0; }
9025 if { (eval echo configure:9026: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9026 rm -rf conftest*
9027 samba_cv_HAVE_UT_UT_ADDR=yes
9028 else
9029 echo "configure: failed program was:" >&5
9030 cat conftest.$ac_ext >&5
9031 rm -rf conftest*
9032 samba_cv_HAVE_UT_UT_ADDR=no
9034 rm -f conftest*
9037 echo "$ac_t""$samba_cv_HAVE_UT_UT_ADDR" 1>&6
9038 if test x"$samba_cv_HAVE_UT_UT_ADDR" = x"yes"; then
9039 cat >> confdefs.h <<\EOF
9040 #define HAVE_UT_UT_ADDR 1
9045 if test x$ac_cv_func_pututline = xyes ; then
9046 echo $ac_n "checking whether pututline returns pointer""... $ac_c" 1>&6
9047 echo "configure:9048: checking whether pututline returns pointer" >&5
9048 if eval "test \"`echo '$''{'samba_cv_PUTUTLINE_RETURNS_UTMP'+set}'`\" = set"; then
9049 echo $ac_n "(cached) $ac_c" 1>&6
9050 else
9052 cat > conftest.$ac_ext <<EOF
9053 #line 9054 "configure"
9054 #include "confdefs.h"
9055 #include <sys/types.h>
9056 #include <utmp.h>
9057 int main() {
9058 struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
9059 ; return 0; }
9061 if { (eval echo configure:9062: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9062 rm -rf conftest*
9063 samba_cv_PUTUTLINE_RETURNS_UTMP=yes
9064 else
9065 echo "configure: failed program was:" >&5
9066 cat conftest.$ac_ext >&5
9067 rm -rf conftest*
9068 samba_cv_PUTUTLINE_RETURNS_UTMP=no
9070 rm -f conftest*
9073 echo "$ac_t""$samba_cv_PUTUTLINE_RETURNS_UTMP" 1>&6
9074 if test x"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x"yes"; then
9075 cat >> confdefs.h <<\EOF
9076 #define PUTUTLINE_RETURNS_UTMP 1
9082 echo $ac_n "checking for ut_syslen in utmpx""... $ac_c" 1>&6
9083 echo "configure:9084: checking for ut_syslen in utmpx" >&5
9084 if eval "test \"`echo '$''{'samba_cv_HAVE_UX_UT_SYSLEN'+set}'`\" = set"; then
9085 echo $ac_n "(cached) $ac_c" 1>&6
9086 else
9088 cat > conftest.$ac_ext <<EOF
9089 #line 9090 "configure"
9090 #include "confdefs.h"
9091 #include <sys/types.h>
9092 #include <utmpx.h>
9093 int main() {
9094 struct utmpx ux; ux.ut_syslen = 0;
9095 ; return 0; }
9097 if { (eval echo configure:9098: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9098 rm -rf conftest*
9099 samba_cv_HAVE_UX_UT_SYSLEN=yes
9100 else
9101 echo "configure: failed program was:" >&5
9102 cat conftest.$ac_ext >&5
9103 rm -rf conftest*
9104 samba_cv_HAVE_UX_UT_SYSLEN=no
9106 rm -f conftest*
9109 echo "$ac_t""$samba_cv_HAVE_UX_UT_SYSLEN" 1>&6
9110 if test x"$samba_cv_HAVE_UX_UT_SYSLEN" = x"yes"; then
9111 cat >> confdefs.h <<\EOF
9112 #define HAVE_UX_UT_SYSLEN 1
9117 echo $ac_n "checking for Linux kernel oplocks""... $ac_c" 1>&6
9118 echo "configure:9119: checking for Linux kernel oplocks" >&5
9119 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_LINUX'+set}'`\" = set"; then
9120 echo $ac_n "(cached) $ac_c" 1>&6
9121 else
9123 if test "$cross_compiling" = yes; then
9124 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=cross
9125 else
9126 cat > conftest.$ac_ext <<EOF
9127 #line 9128 "configure"
9128 #include "confdefs.h"
9130 #include <sys/types.h>
9131 #include <fcntl.h>
9132 #ifndef F_GETLEASE
9133 #define F_GETLEASE 1025
9134 #endif
9135 main() {
9136 int fd = open("/dev/null", O_RDONLY);
9137 return fcntl(fd, F_GETLEASE, 0) == -1;
9141 if { (eval echo configure:9142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9142 then
9143 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=yes
9144 else
9145 echo "configure: failed program was:" >&5
9146 cat conftest.$ac_ext >&5
9147 rm -fr conftest*
9148 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=no
9150 rm -fr conftest*
9155 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" 1>&6
9156 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x"yes"; then
9157 cat >> confdefs.h <<\EOF
9158 #define HAVE_KERNEL_OPLOCKS_LINUX 1
9163 echo $ac_n "checking for kernel change notify support""... $ac_c" 1>&6
9164 echo "configure:9165: checking for kernel change notify support" >&5
9165 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_CHANGE_NOTIFY'+set}'`\" = set"; then
9166 echo $ac_n "(cached) $ac_c" 1>&6
9167 else
9169 if test "$cross_compiling" = yes; then
9170 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=cross
9171 else
9172 cat > conftest.$ac_ext <<EOF
9173 #line 9174 "configure"
9174 #include "confdefs.h"
9176 #include <sys/types.h>
9177 #include <fcntl.h>
9178 #include <signal.h>
9179 #ifndef F_NOTIFY
9180 #define F_NOTIFY 1026
9181 #endif
9182 main() {
9183 exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0);
9187 if { (eval echo configure:9188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9188 then
9189 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=yes
9190 else
9191 echo "configure: failed program was:" >&5
9192 cat conftest.$ac_ext >&5
9193 rm -fr conftest*
9194 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=no
9196 rm -fr conftest*
9201 echo "$ac_t""$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" 1>&6
9202 if test x"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x"yes"; then
9203 cat >> confdefs.h <<\EOF
9204 #define HAVE_KERNEL_CHANGE_NOTIFY 1
9209 echo $ac_n "checking for kernel share modes""... $ac_c" 1>&6
9210 echo "configure:9211: checking for kernel share modes" >&5
9211 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_SHARE_MODES'+set}'`\" = set"; then
9212 echo $ac_n "(cached) $ac_c" 1>&6
9213 else
9215 if test "$cross_compiling" = yes; then
9216 samba_cv_HAVE_KERNEL_SHARE_MODES=cross
9217 else
9218 cat > conftest.$ac_ext <<EOF
9219 #line 9220 "configure"
9220 #include "confdefs.h"
9222 #include <sys/types.h>
9223 #include <fcntl.h>
9224 #include <signal.h>
9225 #include <sys/file.h>
9226 #ifndef LOCK_MAND
9227 #define LOCK_MAND 32
9228 #define LOCK_READ 64
9229 #endif
9230 main() {
9231 exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
9235 if { (eval echo configure:9236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9236 then
9237 samba_cv_HAVE_KERNEL_SHARE_MODES=yes
9238 else
9239 echo "configure: failed program was:" >&5
9240 cat conftest.$ac_ext >&5
9241 rm -fr conftest*
9242 samba_cv_HAVE_KERNEL_SHARE_MODES=no
9244 rm -fr conftest*
9249 echo "$ac_t""$samba_cv_HAVE_KERNEL_SHARE_MODES" 1>&6
9250 if test x"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x"yes"; then
9251 cat >> confdefs.h <<\EOF
9252 #define HAVE_KERNEL_SHARE_MODES 1
9260 echo $ac_n "checking for IRIX kernel oplock type definitions""... $ac_c" 1>&6
9261 echo "configure:9262: checking for IRIX kernel oplock type definitions" >&5
9262 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_IRIX'+set}'`\" = set"; then
9263 echo $ac_n "(cached) $ac_c" 1>&6
9264 else
9266 cat > conftest.$ac_ext <<EOF
9267 #line 9268 "configure"
9268 #include "confdefs.h"
9269 #include <sys/types.h>
9270 #include <fcntl.h>
9271 int main() {
9272 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
9273 ; return 0; }
9275 if { (eval echo configure:9276: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9276 rm -rf conftest*
9277 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=yes
9278 else
9279 echo "configure: failed program was:" >&5
9280 cat conftest.$ac_ext >&5
9281 rm -rf conftest*
9282 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=no
9284 rm -f conftest*
9287 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" 1>&6
9288 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x"yes"; then
9289 cat >> confdefs.h <<\EOF
9290 #define HAVE_KERNEL_OPLOCKS_IRIX 1
9295 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
9296 echo "configure:9297: checking for irix specific capabilities" >&5
9297 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
9298 echo $ac_n "(cached) $ac_c" 1>&6
9299 else
9301 if test "$cross_compiling" = yes; then
9302 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=cross
9303 else
9304 cat > conftest.$ac_ext <<EOF
9305 #line 9306 "configure"
9306 #include "confdefs.h"
9307 #include <sys/types.h>
9308 #include <sys/capability.h>
9309 main() {
9310 cap_t cap;
9311 if ((cap = cap_get_proc()) == NULL)
9312 exit(1);
9313 cap->cap_effective |= CAP_NETWORK_MGT;
9314 cap->cap_inheritable |= CAP_NETWORK_MGT;
9315 cap_set_proc(cap);
9316 exit(0);
9320 if { (eval echo configure:9321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9321 then
9322 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=yes
9323 else
9324 echo "configure: failed program was:" >&5
9325 cat conftest.$ac_ext >&5
9326 rm -fr conftest*
9327 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=no
9329 rm -fr conftest*
9334 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
9335 if test x"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x"yes"; then
9336 cat >> confdefs.h <<\EOF
9337 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
9343 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
9344 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
9347 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9348 echo "configure:9349: checking for int16 typedef included by rpc/rpc.h" >&5
9349 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
9350 echo $ac_n "(cached) $ac_c" 1>&6
9351 else
9353 cat > conftest.$ac_ext <<EOF
9354 #line 9355 "configure"
9355 #include "confdefs.h"
9356 #include <sys/types.h>
9357 #if defined(HAVE_RPC_RPC_H)
9358 #include <rpc/rpc.h>
9359 #endif
9360 int main() {
9361 int16 testvar;
9362 ; return 0; }
9364 if { (eval echo configure:9365: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9365 rm -rf conftest*
9366 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=yes
9367 else
9368 echo "configure: failed program was:" >&5
9369 cat conftest.$ac_ext >&5
9370 rm -rf conftest*
9371 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=no
9373 rm -f conftest*
9376 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
9377 if test x"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x"yes"; then
9378 cat >> confdefs.h <<\EOF
9379 #define HAVE_INT16_FROM_RPC_RPC_H 1
9384 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9385 echo "configure:9386: checking for uint16 typedef included by rpc/rpc.h" >&5
9386 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
9387 echo $ac_n "(cached) $ac_c" 1>&6
9388 else
9390 cat > conftest.$ac_ext <<EOF
9391 #line 9392 "configure"
9392 #include "confdefs.h"
9393 #include <sys/types.h>
9394 #if defined(HAVE_RPC_RPC_H)
9395 #include <rpc/rpc.h>
9396 #endif
9397 int main() {
9398 uint16 testvar;
9399 ; return 0; }
9401 if { (eval echo configure:9402: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9402 rm -rf conftest*
9403 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=yes
9404 else
9405 echo "configure: failed program was:" >&5
9406 cat conftest.$ac_ext >&5
9407 rm -rf conftest*
9408 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=no
9410 rm -f conftest*
9413 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
9414 if test x"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x"yes"; then
9415 cat >> confdefs.h <<\EOF
9416 #define HAVE_UINT16_FROM_RPC_RPC_H 1
9421 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9422 echo "configure:9423: checking for int32 typedef included by rpc/rpc.h" >&5
9423 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
9424 echo $ac_n "(cached) $ac_c" 1>&6
9425 else
9427 cat > conftest.$ac_ext <<EOF
9428 #line 9429 "configure"
9429 #include "confdefs.h"
9430 #include <sys/types.h>
9431 #if defined(HAVE_RPC_RPC_H)
9432 #include <rpc/rpc.h>
9433 #endif
9434 int main() {
9435 int32 testvar;
9436 ; return 0; }
9438 if { (eval echo configure:9439: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9439 rm -rf conftest*
9440 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=yes
9441 else
9442 echo "configure: failed program was:" >&5
9443 cat conftest.$ac_ext >&5
9444 rm -rf conftest*
9445 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=no
9447 rm -f conftest*
9450 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
9451 if test x"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x"yes"; then
9452 cat >> confdefs.h <<\EOF
9453 #define HAVE_INT32_FROM_RPC_RPC_H 1
9458 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9459 echo "configure:9460: checking for uint32 typedef included by rpc/rpc.h" >&5
9460 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
9461 echo $ac_n "(cached) $ac_c" 1>&6
9462 else
9464 cat > conftest.$ac_ext <<EOF
9465 #line 9466 "configure"
9466 #include "confdefs.h"
9467 #include <sys/types.h>
9468 #if defined(HAVE_RPC_RPC_H)
9469 #include <rpc/rpc.h>
9470 #endif
9471 int main() {
9472 uint32 testvar;
9473 ; return 0; }
9475 if { (eval echo configure:9476: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9476 rm -rf conftest*
9477 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=yes
9478 else
9479 echo "configure: failed program was:" >&5
9480 cat conftest.$ac_ext >&5
9481 rm -rf conftest*
9482 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=no
9484 rm -f conftest*
9487 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
9488 if test x"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x"yes"; then
9489 cat >> confdefs.h <<\EOF
9490 #define HAVE_UINT32_FROM_RPC_RPC_H 1
9496 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
9497 echo "configure:9498: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
9498 if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
9499 echo $ac_n "(cached) $ac_c" 1>&6
9500 else
9502 cat > conftest.$ac_ext <<EOF
9503 #line 9504 "configure"
9504 #include "confdefs.h"
9505 #include <sys/types.h>
9506 #ifdef HAVE_SYS_SECURITY_H
9507 #include <sys/security.h>
9508 #include <prot.h>
9509 #endif /* HAVE_SYS_SECURITY_H */
9510 #if defined(HAVE_RPC_RPC_H)
9511 #include <rpc/rpc.h>
9512 #endif
9513 int main() {
9514 int testvar;
9515 ; return 0; }
9517 if { (eval echo configure:9518: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9518 rm -rf conftest*
9519 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=no
9520 else
9521 echo "configure: failed program was:" >&5
9522 cat conftest.$ac_ext >&5
9523 rm -rf conftest*
9524 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=yes
9526 rm -f conftest*
9529 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
9530 if test x"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x"yes"; then
9531 cat >> confdefs.h <<\EOF
9532 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
9537 echo $ac_n "checking for test routines""... $ac_c" 1>&6
9538 echo "configure:9539: checking for test routines" >&5
9539 if test "$cross_compiling" = yes; then
9540 echo "configure: warning: cannot run when cross-compiling" 1>&2
9541 else
9542 cat > conftest.$ac_ext <<EOF
9543 #line 9544 "configure"
9544 #include "confdefs.h"
9545 #include "${srcdir-.}/tests/trivial.c"
9547 if { (eval echo configure:9548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9548 then
9549 echo "$ac_t""yes" 1>&6
9550 else
9551 echo "configure: failed program was:" >&5
9552 cat conftest.$ac_ext >&5
9553 rm -fr conftest*
9554 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
9556 rm -fr conftest*
9560 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
9561 echo "configure:9562: checking for ftruncate extend" >&5
9562 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
9563 echo $ac_n "(cached) $ac_c" 1>&6
9564 else
9566 if test "$cross_compiling" = yes; then
9567 samba_cv_HAVE_FTRUNCATE_EXTEND=cross
9568 else
9569 cat > conftest.$ac_ext <<EOF
9570 #line 9571 "configure"
9571 #include "confdefs.h"
9572 #include "${srcdir-.}/tests/ftruncate.c"
9574 if { (eval echo configure:9575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9575 then
9576 samba_cv_HAVE_FTRUNCATE_EXTEND=yes
9577 else
9578 echo "configure: failed program was:" >&5
9579 cat conftest.$ac_ext >&5
9580 rm -fr conftest*
9581 samba_cv_HAVE_FTRUNCATE_EXTEND=no
9583 rm -fr conftest*
9588 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
9589 if test x"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x"yes"; then
9590 cat >> confdefs.h <<\EOF
9591 #define HAVE_FTRUNCATE_EXTEND 1
9596 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
9597 echo "configure:9598: checking for broken getgroups" >&5
9598 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
9599 echo $ac_n "(cached) $ac_c" 1>&6
9600 else
9602 if test "$cross_compiling" = yes; then
9603 samba_cv_HAVE_BROKEN_GETGROUPS=cross
9604 else
9605 cat > conftest.$ac_ext <<EOF
9606 #line 9607 "configure"
9607 #include "confdefs.h"
9608 #include "${srcdir-.}/tests/getgroups.c"
9610 if { (eval echo configure:9611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9611 then
9612 samba_cv_HAVE_BROKEN_GETGROUPS=yes
9613 else
9614 echo "configure: failed program was:" >&5
9615 cat conftest.$ac_ext >&5
9616 rm -fr conftest*
9617 samba_cv_HAVE_BROKEN_GETGROUPS=no
9619 rm -fr conftest*
9624 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
9625 if test x"$samba_cv_HAVE_BROKEN_GETGROUPS" = x"yes"; then
9626 cat >> confdefs.h <<\EOF
9627 #define HAVE_BROKEN_GETGROUPS 1
9632 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
9633 echo "configure:9634: checking whether getpass should be replaced" >&5
9634 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
9635 echo $ac_n "(cached) $ac_c" 1>&6
9636 else
9638 SAVE_CPPFLAGS="$CPPFLAGS"
9639 CPPFLAGS="$CPPFLAGS -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/smbwrapper"
9640 cat > conftest.$ac_ext <<EOF
9641 #line 9642 "configure"
9642 #include "confdefs.h"
9644 #define REPLACE_GETPASS 1
9645 #define NO_CONFIG_H 1
9646 #define main dont_declare_main
9647 #include "${srcdir-.}/lib/getsmbpass.c"
9648 #undef main
9650 int main() {
9652 ; return 0; }
9654 if { (eval echo configure:9655: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9655 rm -rf conftest*
9656 samba_cv_REPLACE_GETPASS=yes
9657 else
9658 echo "configure: failed program was:" >&5
9659 cat conftest.$ac_ext >&5
9660 rm -rf conftest*
9661 samba_cv_REPLACE_GETPASS=no
9663 rm -f conftest*
9664 CPPFLAGS="$SAVE_CPPFLAGS"
9668 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
9669 if test x"$samba_cv_REPLACE_GETPASS" = x"yes"; then
9670 cat >> confdefs.h <<\EOF
9671 #define REPLACE_GETPASS 1
9676 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
9677 echo "configure:9678: checking for broken inet_ntoa" >&5
9678 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
9679 echo $ac_n "(cached) $ac_c" 1>&6
9680 else
9682 if test "$cross_compiling" = yes; then
9683 samba_cv_REPLACE_INET_NTOA=cross
9684 else
9685 cat > conftest.$ac_ext <<EOF
9686 #line 9687 "configure"
9687 #include "confdefs.h"
9689 #include <stdio.h>
9690 #include <sys/types.h>
9691 #include <netinet/in.h>
9692 #ifdef HAVE_ARPA_INET_H
9693 #include <arpa/inet.h>
9694 #endif
9695 main() { struct in_addr ip; ip.s_addr = 0x12345678;
9696 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
9697 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
9698 exit(1);}
9700 if { (eval echo configure:9701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9701 then
9702 samba_cv_REPLACE_INET_NTOA=yes
9703 else
9704 echo "configure: failed program was:" >&5
9705 cat conftest.$ac_ext >&5
9706 rm -fr conftest*
9707 samba_cv_REPLACE_INET_NTOA=no
9709 rm -fr conftest*
9714 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
9715 if test x"$samba_cv_REPLACE_INET_NTOA" = x"yes"; then
9716 cat >> confdefs.h <<\EOF
9717 #define REPLACE_INET_NTOA 1
9722 echo $ac_n "checking for sysconf(_SC_NGROUPS_MAX)""... $ac_c" 1>&6
9723 echo "configure:9724: checking for sysconf(_SC_NGROUPS_MAX)" >&5
9724 if eval "test \"`echo '$''{'samba_cv_SYSCONF_SC_NGROUPS_MAX'+set}'`\" = set"; then
9725 echo $ac_n "(cached) $ac_c" 1>&6
9726 else
9728 if test "$cross_compiling" = yes; then
9729 samba_cv_SYSCONF_SC_NGROUPS_MAX=cross
9730 else
9731 cat > conftest.$ac_ext <<EOF
9732 #line 9733 "configure"
9733 #include "confdefs.h"
9734 #include <unistd.h>
9735 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
9737 if { (eval echo configure:9738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9738 then
9739 samba_cv_SYSCONF_SC_NGROUPS_MAX=yes
9740 else
9741 echo "configure: failed program was:" >&5
9742 cat conftest.$ac_ext >&5
9743 rm -fr conftest*
9744 samba_cv_SYSCONF_SC_NGROUPS_MAX=no
9746 rm -fr conftest*
9751 echo "$ac_t""$samba_cv_SYSCONF_SC_NGROUPS_MAX" 1>&6
9752 if test x"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x"yes"; then
9753 cat >> confdefs.h <<\EOF
9754 #define SYSCONF_SC_NGROUPS_MAX 1
9759 echo $ac_n "checking for root""... $ac_c" 1>&6
9760 echo "configure:9761: checking for root" >&5
9761 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
9762 echo $ac_n "(cached) $ac_c" 1>&6
9763 else
9765 if test "$cross_compiling" = yes; then
9766 samba_cv_HAVE_ROOT=cross
9767 else
9768 cat > conftest.$ac_ext <<EOF
9769 #line 9770 "configure"
9770 #include "confdefs.h"
9771 main() { exit(getuid() != 0); }
9773 if { (eval echo configure:9774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9774 then
9775 samba_cv_HAVE_ROOT=yes
9776 else
9777 echo "configure: failed program was:" >&5
9778 cat conftest.$ac_ext >&5
9779 rm -fr conftest*
9780 samba_cv_HAVE_ROOT=no
9782 rm -fr conftest*
9787 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
9788 if test x"$samba_cv_HAVE_ROOT" = x"yes"; then
9789 cat >> confdefs.h <<\EOF
9790 #define HAVE_ROOT 1
9793 else
9794 echo "configure: warning: running as non-root will disable some tests" 1>&2
9797 ##################
9798 # look for a method of finding the list of network interfaces
9799 iface=no;
9800 echo $ac_n "checking for iface AIX""... $ac_c" 1>&6
9801 echo "configure:9802: checking for iface AIX" >&5
9802 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_AIX'+set}'`\" = set"; then
9803 echo $ac_n "(cached) $ac_c" 1>&6
9804 else
9806 if test "$cross_compiling" = yes; then
9807 samba_cv_HAVE_IFACE_AIX=cross
9808 else
9809 cat > conftest.$ac_ext <<EOF
9810 #line 9811 "configure"
9811 #include "confdefs.h"
9813 #define HAVE_IFACE_AIX 1
9814 #define AUTOCONF_TEST 1
9815 #include "confdefs.h"
9816 #include "${srcdir-.}/lib/interfaces.c"
9818 if { (eval echo configure:9819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9819 then
9820 samba_cv_HAVE_IFACE_AIX=yes
9821 else
9822 echo "configure: failed program was:" >&5
9823 cat conftest.$ac_ext >&5
9824 rm -fr conftest*
9825 samba_cv_HAVE_IFACE_AIX=no
9827 rm -fr conftest*
9832 echo "$ac_t""$samba_cv_HAVE_IFACE_AIX" 1>&6
9833 if test x"$samba_cv_HAVE_IFACE_AIX" = x"yes"; then
9834 iface=yes;cat >> confdefs.h <<\EOF
9835 #define HAVE_IFACE_AIX 1
9840 if test $iface = no; then
9841 echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6
9842 echo "configure:9843: checking for iface ifconf" >&5
9843 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFCONF'+set}'`\" = set"; then
9844 echo $ac_n "(cached) $ac_c" 1>&6
9845 else
9847 if test "$cross_compiling" = yes; then
9848 samba_cv_HAVE_IFACE_IFCONF=cross
9849 else
9850 cat > conftest.$ac_ext <<EOF
9851 #line 9852 "configure"
9852 #include "confdefs.h"
9854 #define HAVE_IFACE_IFCONF 1
9855 #define AUTOCONF_TEST 1
9856 #include "confdefs.h"
9857 #include "${srcdir-.}/lib/interfaces.c"
9859 if { (eval echo configure:9860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9860 then
9861 samba_cv_HAVE_IFACE_IFCONF=yes
9862 else
9863 echo "configure: failed program was:" >&5
9864 cat conftest.$ac_ext >&5
9865 rm -fr conftest*
9866 samba_cv_HAVE_IFACE_IFCONF=no
9868 rm -fr conftest*
9873 echo "$ac_t""$samba_cv_HAVE_IFACE_IFCONF" 1>&6
9874 if test x"$samba_cv_HAVE_IFACE_IFCONF" = x"yes"; then
9875 iface=yes;cat >> confdefs.h <<\EOF
9876 #define HAVE_IFACE_IFCONF 1
9882 if test $iface = no; then
9883 echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6
9884 echo "configure:9885: checking for iface ifreq" >&5
9885 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFREQ'+set}'`\" = set"; then
9886 echo $ac_n "(cached) $ac_c" 1>&6
9887 else
9889 if test "$cross_compiling" = yes; then
9890 samba_cv_HAVE_IFACE_IFREQ=cross
9891 else
9892 cat > conftest.$ac_ext <<EOF
9893 #line 9894 "configure"
9894 #include "confdefs.h"
9896 #define HAVE_IFACE_IFREQ 1
9897 #define AUTOCONF_TEST 1
9898 #include "confdefs.h"
9899 #include "${srcdir-.}/lib/interfaces.c"
9901 if { (eval echo configure:9902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9902 then
9903 samba_cv_HAVE_IFACE_IFREQ=yes
9904 else
9905 echo "configure: failed program was:" >&5
9906 cat conftest.$ac_ext >&5
9907 rm -fr conftest*
9908 samba_cv_HAVE_IFACE_IFREQ=no
9910 rm -fr conftest*
9915 echo "$ac_t""$samba_cv_HAVE_IFACE_IFREQ" 1>&6
9916 if test x"$samba_cv_HAVE_IFACE_IFREQ" = x"yes"; then
9917 iface=yes;cat >> confdefs.h <<\EOF
9918 #define HAVE_IFACE_IFREQ 1
9925 ################################################
9926 # look for a method of setting the effective uid
9927 seteuid=no;
9928 if test $seteuid = no; then
9929 echo $ac_n "checking for setresuid""... $ac_c" 1>&6
9930 echo "configure:9931: checking for setresuid" >&5
9931 if eval "test \"`echo '$''{'samba_cv_USE_SETRESUID'+set}'`\" = set"; then
9932 echo $ac_n "(cached) $ac_c" 1>&6
9933 else
9935 if test "$cross_compiling" = yes; then
9936 samba_cv_USE_SETRESUID=cross
9937 else
9938 cat > conftest.$ac_ext <<EOF
9939 #line 9940 "configure"
9940 #include "confdefs.h"
9942 #define AUTOCONF_TEST 1
9943 #define USE_SETRESUID 1
9944 #include "confdefs.h"
9945 #include "${srcdir-.}/lib/util_sec.c"
9947 if { (eval echo configure:9948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9948 then
9949 samba_cv_USE_SETRESUID=yes
9950 else
9951 echo "configure: failed program was:" >&5
9952 cat conftest.$ac_ext >&5
9953 rm -fr conftest*
9954 samba_cv_USE_SETRESUID=no
9956 rm -fr conftest*
9961 echo "$ac_t""$samba_cv_USE_SETRESUID" 1>&6
9962 if test x"$samba_cv_USE_SETRESUID" = x"yes"; then
9963 seteuid=yes;cat >> confdefs.h <<\EOF
9964 #define USE_SETRESUID 1
9971 if test $seteuid = no; then
9972 echo $ac_n "checking for setreuid""... $ac_c" 1>&6
9973 echo "configure:9974: checking for setreuid" >&5
9974 if eval "test \"`echo '$''{'samba_cv_USE_SETREUID'+set}'`\" = set"; then
9975 echo $ac_n "(cached) $ac_c" 1>&6
9976 else
9978 if test "$cross_compiling" = yes; then
9979 samba_cv_USE_SETREUID=cross
9980 else
9981 cat > conftest.$ac_ext <<EOF
9982 #line 9983 "configure"
9983 #include "confdefs.h"
9985 #define AUTOCONF_TEST 1
9986 #define USE_SETREUID 1
9987 #include "confdefs.h"
9988 #include "${srcdir-.}/lib/util_sec.c"
9990 if { (eval echo configure:9991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9991 then
9992 samba_cv_USE_SETREUID=yes
9993 else
9994 echo "configure: failed program was:" >&5
9995 cat conftest.$ac_ext >&5
9996 rm -fr conftest*
9997 samba_cv_USE_SETREUID=no
9999 rm -fr conftest*
10004 echo "$ac_t""$samba_cv_USE_SETREUID" 1>&6
10005 if test x"$samba_cv_USE_SETREUID" = x"yes"; then
10006 seteuid=yes;cat >> confdefs.h <<\EOF
10007 #define USE_SETREUID 1
10013 if test $seteuid = no; then
10014 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
10015 echo "configure:10016: checking for seteuid" >&5
10016 if eval "test \"`echo '$''{'samba_cv_USE_SETEUID'+set}'`\" = set"; then
10017 echo $ac_n "(cached) $ac_c" 1>&6
10018 else
10020 if test "$cross_compiling" = yes; then
10021 samba_cv_USE_SETEUID=cross
10022 else
10023 cat > conftest.$ac_ext <<EOF
10024 #line 10025 "configure"
10025 #include "confdefs.h"
10027 #define AUTOCONF_TEST 1
10028 #define USE_SETEUID 1
10029 #include "confdefs.h"
10030 #include "${srcdir-.}/lib/util_sec.c"
10032 if { (eval echo configure:10033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10033 then
10034 samba_cv_USE_SETEUID=yes
10035 else
10036 echo "configure: failed program was:" >&5
10037 cat conftest.$ac_ext >&5
10038 rm -fr conftest*
10039 samba_cv_USE_SETEUID=no
10041 rm -fr conftest*
10046 echo "$ac_t""$samba_cv_USE_SETEUID" 1>&6
10047 if test x"$samba_cv_USE_SETEUID" = x"yes"; then
10048 seteuid=yes;cat >> confdefs.h <<\EOF
10049 #define USE_SETEUID 1
10055 if test $seteuid = no; then
10056 echo $ac_n "checking for setuidx""... $ac_c" 1>&6
10057 echo "configure:10058: checking for setuidx" >&5
10058 if eval "test \"`echo '$''{'samba_cv_USE_SETUIDX'+set}'`\" = set"; then
10059 echo $ac_n "(cached) $ac_c" 1>&6
10060 else
10062 if test "$cross_compiling" = yes; then
10063 samba_cv_USE_SETUIDX=cross
10064 else
10065 cat > conftest.$ac_ext <<EOF
10066 #line 10067 "configure"
10067 #include "confdefs.h"
10069 #define AUTOCONF_TEST 1
10070 #define USE_SETUIDX 1
10071 #include "confdefs.h"
10072 #include "${srcdir-.}/lib/util_sec.c"
10074 if { (eval echo configure:10075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10075 then
10076 samba_cv_USE_SETUIDX=yes
10077 else
10078 echo "configure: failed program was:" >&5
10079 cat conftest.$ac_ext >&5
10080 rm -fr conftest*
10081 samba_cv_USE_SETUIDX=no
10083 rm -fr conftest*
10088 echo "$ac_t""$samba_cv_USE_SETUIDX" 1>&6
10089 if test x"$samba_cv_USE_SETUIDX" = x"yes"; then
10090 seteuid=yes;cat >> confdefs.h <<\EOF
10091 #define USE_SETUIDX 1
10098 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
10099 echo "configure:10100: checking for working mmap" >&5
10100 if eval "test \"`echo '$''{'samba_cv_HAVE_MMAP'+set}'`\" = set"; then
10101 echo $ac_n "(cached) $ac_c" 1>&6
10102 else
10104 if test "$cross_compiling" = yes; then
10105 samba_cv_HAVE_MMAP=cross
10106 else
10107 cat > conftest.$ac_ext <<EOF
10108 #line 10109 "configure"
10109 #include "confdefs.h"
10110 #include "${srcdir-.}/tests/shared_mmap.c"
10112 if { (eval echo configure:10113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10113 then
10114 samba_cv_HAVE_MMAP=yes
10115 else
10116 echo "configure: failed program was:" >&5
10117 cat conftest.$ac_ext >&5
10118 rm -fr conftest*
10119 samba_cv_HAVE_MMAP=no
10121 rm -fr conftest*
10126 echo "$ac_t""$samba_cv_HAVE_MMAP" 1>&6
10127 if test x"$samba_cv_HAVE_MMAP" = x"yes"; then
10128 cat >> confdefs.h <<\EOF
10129 #define HAVE_MMAP 1
10134 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
10135 echo "configure:10136: checking for ftruncate needs root" >&5
10136 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
10137 echo $ac_n "(cached) $ac_c" 1>&6
10138 else
10140 if test "$cross_compiling" = yes; then
10141 samba_cv_FTRUNCATE_NEEDS_ROOT=cross
10142 else
10143 cat > conftest.$ac_ext <<EOF
10144 #line 10145 "configure"
10145 #include "confdefs.h"
10146 #include "${srcdir-.}/tests/ftruncroot.c"
10148 if { (eval echo configure:10149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10149 then
10150 samba_cv_FTRUNCATE_NEEDS_ROOT=yes
10151 else
10152 echo "configure: failed program was:" >&5
10153 cat conftest.$ac_ext >&5
10154 rm -fr conftest*
10155 samba_cv_FTRUNCATE_NEEDS_ROOT=no
10157 rm -fr conftest*
10162 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
10163 if test x"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x"yes"; then
10164 cat >> confdefs.h <<\EOF
10165 #define FTRUNCATE_NEEDS_ROOT 1
10170 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
10171 echo "configure:10172: checking for fcntl locking" >&5
10172 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
10173 echo $ac_n "(cached) $ac_c" 1>&6
10174 else
10176 if test "$cross_compiling" = yes; then
10177 samba_cv_HAVE_FCNTL_LOCK=cross
10178 else
10179 cat > conftest.$ac_ext <<EOF
10180 #line 10181 "configure"
10181 #include "confdefs.h"
10182 #include "${srcdir-.}/tests/fcntl_lock.c"
10184 if { (eval echo configure:10185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10185 then
10186 samba_cv_HAVE_FCNTL_LOCK=yes
10187 else
10188 echo "configure: failed program was:" >&5
10189 cat conftest.$ac_ext >&5
10190 rm -fr conftest*
10191 samba_cv_HAVE_FCNTL_LOCK=no
10193 rm -fr conftest*
10198 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
10199 if test x"$samba_cv_HAVE_FCNTL_LOCK" = x"yes"; then
10200 cat >> confdefs.h <<\EOF
10201 #define HAVE_FCNTL_LOCK 1
10206 echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6
10207 echo "configure:10208: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
10208 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_FCNTL64_LOCKS'+set}'`\" = set"; then
10209 echo $ac_n "(cached) $ac_c" 1>&6
10210 else
10212 if test "$cross_compiling" = yes; then
10213 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=cross
10214 else
10215 cat > conftest.$ac_ext <<EOF
10216 #line 10217 "configure"
10217 #include "confdefs.h"
10218 #include "${srcdir-.}/tests/fcntl_lock64.c"
10220 if { (eval echo configure:10221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10221 then
10222 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=yes
10223 else
10224 echo "configure: failed program was:" >&5
10225 cat conftest.$ac_ext >&5
10226 rm -fr conftest*
10227 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=no
10229 rm -fr conftest*
10234 echo "$ac_t""$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" 1>&6
10235 if test x"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x"yes"; then
10236 cat >> confdefs.h <<\EOF
10237 #define HAVE_BROKEN_FCNTL64_LOCKS 1
10241 else
10244 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
10245 echo "configure:10246: checking for 64 bit fcntl locking" >&5
10246 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+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_STRUCT_FLOCK64=cross
10252 else
10253 cat > conftest.$ac_ext <<EOF
10254 #line 10255 "configure"
10255 #include "confdefs.h"
10257 #if defined(HAVE_UNISTD_H)
10258 #include <unistd.h>
10259 #endif
10260 #include <stdio.h>
10261 #include <stdlib.h>
10263 #ifdef HAVE_FCNTL_H
10264 #include <fcntl.h>
10265 #endif
10267 #ifdef HAVE_SYS_FCNTL_H
10268 #include <sys/fcntl.h>
10269 #endif
10270 main() { struct flock64 fl64;
10271 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
10272 exit(0);
10273 #else
10274 exit(1);
10275 #endif
10278 if { (eval echo configure:10279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10279 then
10280 samba_cv_HAVE_STRUCT_FLOCK64=yes
10281 else
10282 echo "configure: failed program was:" >&5
10283 cat conftest.$ac_ext >&5
10284 rm -fr conftest*
10285 samba_cv_HAVE_STRUCT_FLOCK64=no
10287 rm -fr conftest*
10292 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
10294 if test x"$samba_cv_HAVE_STRUCT_FLOCK64" = x"yes"; then
10295 cat >> confdefs.h <<\EOF
10296 #define HAVE_STRUCT_FLOCK64 1
10302 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
10303 echo "configure:10304: checking for a crypt that needs truncated salt" >&5
10304 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
10305 echo $ac_n "(cached) $ac_c" 1>&6
10306 else
10308 if test "$cross_compiling" = yes; then
10309 samba_cv_HAVE_TRUNCATED_SALT=cross
10310 else
10311 cat > conftest.$ac_ext <<EOF
10312 #line 10313 "configure"
10313 #include "confdefs.h"
10314 #include "${srcdir-.}/tests/crypttest.c"
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_TRUNCATED_SALT=no
10319 else
10320 echo "configure: failed program was:" >&5
10321 cat conftest.$ac_ext >&5
10322 rm -fr conftest*
10323 samba_cv_HAVE_TRUNCATED_SALT=yes
10325 rm -fr conftest*
10330 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
10331 if test x"$samba_cv_HAVE_TRUNCATED_SALT" = x"yes"; then
10332 cat >> confdefs.h <<\EOF
10333 #define HAVE_TRUNCATED_SALT 1
10338 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
10339 echo "configure:10340: checking for broken nisplus include files" >&5
10340 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
10341 echo $ac_n "(cached) $ac_c" 1>&6
10342 else
10344 cat > conftest.$ac_ext <<EOF
10345 #line 10346 "configure"
10346 #include "confdefs.h"
10347 #include <sys/acl.h>
10348 #if defined(HAVE_RPCSVC_NIS_H)
10349 #include <rpcsvc/nis.h>
10350 #endif
10351 int main() {
10352 return 0;
10353 ; return 0; }
10355 if { (eval echo configure:10356: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10356 rm -rf conftest*
10357 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=no
10358 else
10359 echo "configure: failed program was:" >&5
10360 cat conftest.$ac_ext >&5
10361 rm -rf conftest*
10362 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=yes
10364 rm -f conftest*
10367 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
10368 if test x"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x"yes"; then
10369 cat >> confdefs.h <<\EOF
10370 #define BROKEN_NISPLUS_INCLUDE_FILES 1
10376 #################################################
10377 # check for smbwrapper support
10378 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
10379 echo "configure:10380: checking whether to use smbwrapper" >&5
10380 # Check whether --with-smbwrapper or --without-smbwrapper was given.
10381 if test "${with_smbwrapper+set}" = set; then
10382 withval="$with_smbwrapper"
10383 case "$withval" in
10384 yes)
10385 echo "$ac_t""yes" 1>&6
10386 cat >> confdefs.h <<\EOF
10387 #define WITH_SMBWRAPPER 1
10390 WRAP="bin/smbsh bin/smbwrapper.$SHLIBEXT"
10392 if test x$ATTEMPT_WRAP32_BUILD = x; then
10393 WRAP32=""
10394 else
10395 WRAP32=bin/smbwrapper.32.$SHLIBEXT
10398 # Conditions under which smbwrapper should not be built.
10400 if test x$PICFLAG = x; then
10401 echo No support for PIC code - disabling smbwrapper and smbsh
10402 WRAP=""
10403 WRAP32=""
10404 elif test x$ac_cv_func_syscall = xno; then
10405 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
10406 WRAP=""
10407 WRAP32=""
10411 echo "$ac_t""no" 1>&6
10413 esac
10414 else
10415 echo "$ac_t""no" 1>&6
10420 #################################################
10421 # check for the AFS filesystem
10422 echo $ac_n "checking whether to use AFS""... $ac_c" 1>&6
10423 echo "configure:10424: checking whether to use AFS" >&5
10424 # Check whether --with-afs or --without-afs was given.
10425 if test "${with_afs+set}" = set; then
10426 withval="$with_afs"
10427 case "$withval" in
10428 yes)
10429 echo "$ac_t""yes" 1>&6
10430 cat >> confdefs.h <<\EOF
10431 #define WITH_AFS 1
10436 echo "$ac_t""no" 1>&6
10438 esac
10439 else
10440 echo "$ac_t""no" 1>&6
10446 #################################################
10447 # check for the DFS auth system
10448 echo $ac_n "checking whether to use DFS auth""... $ac_c" 1>&6
10449 echo "configure:10450: checking whether to use DFS auth" >&5
10450 # Check whether --with-dfs or --without-dfs was given.
10451 if test "${with_dfs+set}" = set; then
10452 withval="$with_dfs"
10453 case "$withval" in
10454 yes)
10455 echo "$ac_t""yes" 1>&6
10456 cat >> confdefs.h <<\EOF
10457 #define WITH_DFS 1
10462 echo "$ac_t""no" 1>&6
10464 esac
10465 else
10466 echo "$ac_t""no" 1>&6
10471 #################################################
10472 # check for Kerberos IV auth system
10473 echo $ac_n "checking whether to use Kerberos IV""... $ac_c" 1>&6
10474 echo "configure:10475: checking whether to use Kerberos IV" >&5
10475 # Check whether --with-krb4 or --without-krb4 was given.
10476 if test "${with_krb4+set}" = set; then
10477 withval="$with_krb4"
10478 echo "$ac_t""yes" 1>&6
10479 cat >> confdefs.h <<\EOF
10480 #define KRB4_AUTH 1
10483 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
10484 echo "configure:10485: checking for dn_expand in -lresolv" >&5
10485 ac_lib_var=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
10486 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10487 echo $ac_n "(cached) $ac_c" 1>&6
10488 else
10489 ac_save_LIBS="$LIBS"
10490 LIBS="-lresolv $LIBS"
10491 cat > conftest.$ac_ext <<EOF
10492 #line 10493 "configure"
10493 #include "confdefs.h"
10494 /* Override any gcc2 internal prototype to avoid an error. */
10495 /* We use char because int might match the return type of a gcc2
10496 builtin and then its argument prototype would still apply. */
10497 char dn_expand();
10499 int main() {
10500 dn_expand()
10501 ; return 0; }
10503 if { (eval echo configure:10504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10504 rm -rf conftest*
10505 eval "ac_cv_lib_$ac_lib_var=yes"
10506 else
10507 echo "configure: failed program was:" >&5
10508 cat conftest.$ac_ext >&5
10509 rm -rf conftest*
10510 eval "ac_cv_lib_$ac_lib_var=no"
10512 rm -f conftest*
10513 LIBS="$ac_save_LIBS"
10516 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10517 echo "$ac_t""yes" 1>&6
10518 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10519 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10520 cat >> confdefs.h <<EOF
10521 #define $ac_tr_lib 1
10524 LIBS="-lresolv $LIBS"
10526 else
10527 echo "$ac_t""no" 1>&6
10530 LIBS="$LIBS -lkrb -ldes"
10531 CFLAGS="$CFLAGS -I$withval/include"
10532 LDFLAGS="$LDFLAGS -L$withval/lib"
10533 else
10534 echo "$ac_t""no" 1>&6
10539 #################################################
10540 # check for Kerberos 5 auth system
10541 echo $ac_n "checking whether to use Kerberos 5""... $ac_c" 1>&6
10542 echo "configure:10543: checking whether to use Kerberos 5" >&5
10543 # Check whether --with-krb5 or --without-krb5 was given.
10544 if test "${with_krb5+set}" = set; then
10545 withval="$with_krb5"
10546 echo "$ac_t""yes" 1>&6
10547 cat >> confdefs.h <<\EOF
10548 #define KRB5_AUTH 1
10551 LIBS="$LIBS -ldes425 -lkrb5 -lcrypto -lcom_err"
10552 CFLAGS="$CFLAGS -I$withval/include"
10553 LDFLAGS="$LDFLAGS -L$withval/lib"
10554 else
10555 echo "$ac_t""no" 1>&6
10560 #################################################
10561 # check for automount support
10562 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
10563 echo "configure:10564: checking whether to use AUTOMOUNT" >&5
10564 # Check whether --with-automount or --without-automount was given.
10565 if test "${with_automount+set}" = set; then
10566 withval="$with_automount"
10567 case "$withval" in
10568 yes)
10569 echo "$ac_t""yes" 1>&6
10570 cat >> confdefs.h <<\EOF
10571 #define WITH_AUTOMOUNT 1
10576 echo "$ac_t""no" 1>&6
10578 esac
10579 else
10580 echo "$ac_t""no" 1>&6
10585 #################################################
10586 # check for smbmount support
10587 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
10588 echo "configure:10589: checking whether to use SMBMOUNT" >&5
10589 # Check whether --with-smbmount or --without-smbmount was given.
10590 if test "${with_smbmount+set}" = set; then
10591 withval="$with_smbmount"
10592 case "$withval" in
10593 yes)
10594 echo "$ac_t""yes" 1>&6
10595 cat >> confdefs.h <<\EOF
10596 #define WITH_SMBMOUNT 1
10599 MPROGS="bin/smbmount bin/smbmnt bin/smbumount"
10602 echo "$ac_t""no" 1>&6
10603 MPROGS=
10605 esac
10606 else
10607 echo "$ac_t""no" 1>&6
10608 MPROGS=
10614 #################################################
10615 # check for a PAM password database
10616 echo $ac_n "checking whether to use PAM password database""... $ac_c" 1>&6
10617 echo "configure:10618: checking whether to use PAM password database" >&5
10618 # Check whether --with-pam or --without-pam was given.
10619 if test "${with_pam+set}" = set; then
10620 withval="$with_pam"
10621 case "$withval" in
10622 yes)
10623 echo "$ac_t""yes" 1>&6
10624 cat >> confdefs.h <<\EOF
10625 #define WITH_PAM 1
10628 LIBS="$LIBS -lpam"
10631 echo "$ac_t""no" 1>&6
10633 esac
10634 else
10635 echo "$ac_t""no" 1>&6
10641 #################################################
10642 # check for a LDAP password database
10643 echo $ac_n "checking whether to use LDAP password database""... $ac_c" 1>&6
10644 echo "configure:10645: checking whether to use LDAP password database" >&5
10645 # Check whether --with-ldap or --without-ldap was given.
10646 if test "${with_ldap+set}" = set; then
10647 withval="$with_ldap"
10648 case "$withval" in
10649 yes)
10650 echo "$ac_t""yes" 1>&6
10651 cat >> confdefs.h <<\EOF
10652 #define WITH_LDAP 1
10655 { echo "configure: error: LDAP password database not supported in this version." 1>&2; exit 1; }
10658 echo "$ac_t""no" 1>&6
10660 esac
10661 else
10662 echo "$ac_t""no" 1>&6
10667 #################################################
10668 # check for a NISPLUS password database
10669 echo $ac_n "checking whether to use NISPLUS password database""... $ac_c" 1>&6
10670 echo "configure:10671: checking whether to use NISPLUS password database" >&5
10671 # Check whether --with-nisplus or --without-nisplus was given.
10672 if test "${with_nisplus+set}" = set; then
10673 withval="$with_nisplus"
10674 case "$withval" in
10675 yes)
10676 echo "$ac_t""yes" 1>&6
10677 cat >> confdefs.h <<\EOF
10678 #define WITH_NISPLUS 1
10683 echo "$ac_t""no" 1>&6
10685 esac
10686 else
10687 echo "$ac_t""no" 1>&6
10692 #################################################
10693 # check for a NISPLUS_HOME support
10694 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
10695 echo "configure:10696: checking whether to use NISPLUS_HOME" >&5
10696 # Check whether --with-nisplus-home or --without-nisplus-home was given.
10697 if test "${with_nisplus_home+set}" = set; then
10698 withval="$with_nisplus_home"
10699 case "$withval" in
10700 yes)
10701 echo "$ac_t""yes" 1>&6
10702 cat >> confdefs.h <<\EOF
10703 #define WITH_NISPLUS_HOME 1
10708 echo "$ac_t""no" 1>&6
10710 esac
10711 else
10712 echo "$ac_t""no" 1>&6
10717 #################################################
10718 # check for the secure socket layer
10719 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
10720 echo "configure:10721: checking whether to use SSL" >&5
10721 # Check whether --with-ssl or --without-ssl was given.
10722 if test "${with_ssl+set}" = set; then
10723 withval="$with_ssl"
10724 case "$withval" in
10725 yes)
10726 echo "$ac_t""yes" 1>&6
10727 cat >> confdefs.h <<\EOF
10728 #define WITH_SSL 1
10731 withval="/usr/local/ssl" # default
10733 if test "${with_sslinc+set}" = set; then
10735 withval="$with_sslinc"
10736 case "$withval" in
10737 yes|no)
10738 echo "configure: warning: --with-sslinc called without argument - will use default" 1>&w
10739 CFLAGS="-I/usr/local/ssl/include $CFLAGS"
10740 LIBS="-lssl -lcrypto $LIBS"
10741 LDFLAGS="=L/usr/local/ssl/lib $LDFLAGS"
10744 CFLAGS="-I${withval}/include $CFLAGS"
10745 LIBS="-lssl -lcrypto $LIBS"
10746 LDFLAGS="-L${withval}/lib $LDFLAGS"
10748 esac
10750 else
10752 CFLAGS="-I/usr/local/ssl/include $CFLAGS"
10753 LIBS="-lssl -lcrypto $LIBS"
10754 LDFLAGS="-L/usr/local/ssl/lib $LDFLAGS"
10758 if test ! -d ${withval}; then
10759 echo "configure: error: called with --with-ssl, but ssl base directory ${withval} does not exist or is not a directory. Aborting config" 1>&2
10760 exit 1
10763 CFLAGS="-DHAVE_CRYPT_DECL $CFLAGS" # Damn, SSLeay defines its own
10767 echo "$ac_t""no" 1>&6
10769 esac
10770 else
10771 echo "$ac_t""no" 1>&6
10776 #################################################
10777 # check for syslog logging
10778 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
10779 echo "configure:10780: checking whether to use syslog logging" >&5
10780 # Check whether --with-syslog or --without-syslog was given.
10781 if test "${with_syslog+set}" = set; then
10782 withval="$with_syslog"
10783 case "$withval" in
10784 yes)
10785 echo "$ac_t""yes" 1>&6
10786 cat >> confdefs.h <<\EOF
10787 #define WITH_SYSLOG 1
10792 echo "$ac_t""no" 1>&6
10794 esac
10795 else
10796 echo "$ac_t""no" 1>&6
10801 #################################################
10802 # check for a shared memory profiling support
10803 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
10804 echo "configure:10805: checking whether to use profiling" >&5
10805 # Check whether --with-profile or --without-profile was given.
10806 if test "${with_profile+set}" = set; then
10807 withval="$with_profile"
10808 case "$withval" in
10809 yes)
10810 echo "$ac_t""yes" 1>&6
10811 cat >> confdefs.h <<\EOF
10812 #define WITH_PROFILE 1
10817 echo "$ac_t""no" 1>&6
10819 esac
10820 else
10821 echo "$ac_t""no" 1>&6
10827 #################################################
10828 # check for experimental netatalk resource fork support
10829 echo $ac_n "checking whether to support netatalk""... $ac_c" 1>&6
10830 echo "configure:10831: checking whether to support netatalk" >&5
10831 # Check whether --with-netatalk or --without-netatalk was given.
10832 if test "${with_netatalk+set}" = set; then
10833 withval="$with_netatalk"
10834 case "$withval" in
10835 yes)
10836 echo "$ac_t""yes" 1>&6
10837 cat >> confdefs.h <<\EOF
10838 #define WITH_NETATALK 1
10843 echo "$ac_t""no" 1>&6
10845 esac
10846 else
10847 echo "$ac_t""no" 1>&6
10852 #################################################
10853 # check for experimental disk-quotas support
10854 QUOTAOBJS=smbd/noquotas.o
10856 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
10857 echo "configure:10858: checking whether to support disk-quotas" >&5
10858 # Check whether --with-quotas or --without-quotas was given.
10859 if test "${with_quotas+set}" = set; then
10860 withval="$with_quotas"
10861 case "$withval" in
10862 yes)
10863 echo "$ac_t""yes" 1>&6
10864 QUOTAOBJS=smbd/quotas.o
10867 echo "$ac_t""no" 1>&6
10869 esac
10870 else
10871 echo "$ac_t""no" 1>&6
10877 #################################################
10878 # check for experimental utmp accounting
10880 echo $ac_n "checking whether to support utmp accounting""... $ac_c" 1>&6
10881 echo "configure:10882: checking whether to support utmp accounting" >&5
10882 # Check whether --with-utmp or --without-utmp was given.
10883 if test "${with_utmp+set}" = set; then
10884 withval="$with_utmp"
10885 case "$withval" in
10886 yes)
10887 echo "$ac_t""yes" 1>&6
10888 cat >> confdefs.h <<\EOF
10889 #define WITH_UTMP 1
10894 echo "$ac_t""no" 1>&6
10896 esac
10897 else
10898 echo "$ac_t""no" 1>&6
10903 #################################################
10904 # check for MS Dfs support
10906 echo $ac_n "checking whether to support Microsoft Dfs""... $ac_c" 1>&6
10907 echo "configure:10908: checking whether to support Microsoft Dfs" >&5
10908 # Check whether --with-msdfs or --without-msdfs was given.
10909 if test "${with_msdfs+set}" = set; then
10910 withval="$with_msdfs"
10911 case "$withval" in
10912 yes)
10913 echo "$ac_t""yes" 1>&6
10914 cat >> confdefs.h <<\EOF
10915 #define WITH_MSDFS 1
10920 echo "$ac_t""no" 1>&6
10922 esac
10923 else
10924 echo "$ac_t""no" 1>&6
10929 #################################################
10930 # check for Samba VFS support
10932 echo $ac_n "checking whether to support the experimantal Samba vfs""... $ac_c" 1>&6
10933 echo "configure:10934: checking whether to support the experimantal Samba vfs" >&5
10934 # Check whether --with-vfs or --without-vfs was given.
10935 if test "${with_vfs+set}" = set; then
10936 withval="$with_vfs"
10937 case "$withval" in
10938 yes)
10939 echo "$ac_t""yes" 1>&6
10940 cat >> confdefs.h <<\EOF
10941 #define WITH_VFS 1
10946 echo "$ac_t""no" 1>&6
10948 esac
10949 else
10950 echo "$ac_t""no" 1>&6
10955 #################################################
10956 #################################################
10957 # set private directory location
10958 # Check whether --with-privatedir or --without-privatedir was given.
10959 if test "${with_privatedir+set}" = set; then
10960 withval="$with_privatedir"
10961 case "$withval" in
10962 yes|no)
10964 # Just in case anybody calls it without argument
10966 echo "configure: warning: --with-privatedir called without argument - will use default" 1>&2
10967 privatedir='${prefix}/private'
10970 privatedir="$withval"
10972 esac
10974 else
10975 privatedir='${prefix}/private'
10981 #################################################
10982 # set lock directory location
10983 # Check whether --with-lockdir or --without-lockdir was given.
10984 if test "${with_lockdir+set}" = set; then
10985 withval="$with_lockdir"
10986 case "$withval" in
10987 yes|no)
10989 # Just in case anybody calls it without argument
10991 echo "configure: warning: --with-lockdir called without argument - will use default" 1>&2
10992 lockdir='$(VARDIR)/locks'
10995 lockdir="$withval"
10997 esac
10999 else
11000 lockdir='$(VARDIR)/locks'
11006 #################################################
11007 # set SWAT directory location
11008 # Check whether --with-swatdir or --without-swatdir was given.
11009 if test "${with_swatdir+set}" = set; then
11010 withval="$with_swatdir"
11011 case "$withval" in
11012 yes|no)
11014 # Just in case anybody does it
11016 echo "configure: warning: --with-swatdir called without argument - will use default" 1>&2
11017 swatdir='${prefix}/swat'
11020 swatdir="$withval"
11022 esac
11024 else
11025 swatdir='${prefix}/swat'
11031 #################################################
11032 # these tests are taken from the GNU fileutils package
11033 echo "checking how to get filesystem space usage" 1>&6
11034 echo "configure:11035: checking how to get filesystem space usage" >&5
11035 space=no
11037 # Test for statvfs64.
11038 if test $space = no; then
11039 # SVR4
11040 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
11041 echo "configure:11042: checking statvfs64 function (SVR4)" >&5
11042 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
11043 echo $ac_n "(cached) $ac_c" 1>&6
11044 else
11045 if test "$cross_compiling" = yes; then
11046 fu_cv_sys_stat_statvfs64=cross
11047 else
11048 cat > conftest.$ac_ext <<EOF
11049 #line 11050 "configure"
11050 #include "confdefs.h"
11052 #if defined(HAVE_UNISTD_H)
11053 #include <unistd.h>
11054 #endif
11055 #include <sys/types.h>
11056 #include <sys/statvfs.h>
11057 main ()
11059 struct statvfs64 fsd;
11060 exit (statvfs64 (".", &fsd));
11063 if { (eval echo configure:11064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11064 then
11065 fu_cv_sys_stat_statvfs64=yes
11066 else
11067 echo "configure: failed program was:" >&5
11068 cat conftest.$ac_ext >&5
11069 rm -fr conftest*
11070 fu_cv_sys_stat_statvfs64=no
11072 rm -fr conftest*
11077 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
11078 if test $fu_cv_sys_stat_statvfs64 = yes; then
11079 space=yes
11080 cat >> confdefs.h <<\EOF
11081 #define STAT_STATVFS64 1
11087 # Perform only the link test since it seems there are no variants of the
11088 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
11089 # because that got a false positive on SCO OSR5. Adding the declaration
11090 # of a `struct statvfs' causes this test to fail (as it should) on such
11091 # systems. That system is reported to work fine with STAT_STATFS4 which
11092 # is what it gets when this test fails.
11093 if test $space = no; then
11094 # SVR4
11095 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
11096 echo "configure:11097: checking statvfs function (SVR4)" >&5
11097 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
11098 echo $ac_n "(cached) $ac_c" 1>&6
11099 else
11100 cat > conftest.$ac_ext <<EOF
11101 #line 11102 "configure"
11102 #include "confdefs.h"
11103 #include <sys/types.h>
11104 #include <sys/statvfs.h>
11105 int main() {
11106 struct statvfs fsd; statvfs (0, &fsd);
11107 ; return 0; }
11109 if { (eval echo configure:11110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11110 rm -rf conftest*
11111 fu_cv_sys_stat_statvfs=yes
11112 else
11113 echo "configure: failed program was:" >&5
11114 cat conftest.$ac_ext >&5
11115 rm -rf conftest*
11116 fu_cv_sys_stat_statvfs=no
11118 rm -f conftest*
11121 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
11122 if test $fu_cv_sys_stat_statvfs = yes; then
11123 space=yes
11124 cat >> confdefs.h <<\EOF
11125 #define STAT_STATVFS 1
11131 if test $space = no; then
11132 # DEC Alpha running OSF/1
11133 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
11134 echo "configure:11135: checking for 3-argument statfs function (DEC OSF/1)" >&5
11135 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
11136 echo $ac_n "(cached) $ac_c" 1>&6
11137 else
11138 if test "$cross_compiling" = yes; then
11139 fu_cv_sys_stat_statfs3_osf1=no
11140 else
11141 cat > conftest.$ac_ext <<EOF
11142 #line 11143 "configure"
11143 #include "confdefs.h"
11145 #include <sys/param.h>
11146 #include <sys/types.h>
11147 #include <sys/mount.h>
11148 main ()
11150 struct statfs fsd;
11151 fsd.f_fsize = 0;
11152 exit (statfs (".", &fsd, sizeof (struct statfs)));
11155 if { (eval echo configure:11156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11156 then
11157 fu_cv_sys_stat_statfs3_osf1=yes
11158 else
11159 echo "configure: failed program was:" >&5
11160 cat conftest.$ac_ext >&5
11161 rm -fr conftest*
11162 fu_cv_sys_stat_statfs3_osf1=no
11164 rm -fr conftest*
11169 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
11170 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
11171 space=yes
11172 cat >> confdefs.h <<\EOF
11173 #define STAT_STATFS3_OSF1 1
11179 if test $space = no; then
11180 # AIX
11181 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
11182 echo "configure:11183: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
11183 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
11184 echo $ac_n "(cached) $ac_c" 1>&6
11185 else
11186 if test "$cross_compiling" = yes; then
11187 fu_cv_sys_stat_statfs2_bsize=no
11188 else
11189 cat > conftest.$ac_ext <<EOF
11190 #line 11191 "configure"
11191 #include "confdefs.h"
11193 #ifdef HAVE_SYS_PARAM_H
11194 #include <sys/param.h>
11195 #endif
11196 #ifdef HAVE_SYS_MOUNT_H
11197 #include <sys/mount.h>
11198 #endif
11199 #ifdef HAVE_SYS_VFS_H
11200 #include <sys/vfs.h>
11201 #endif
11202 main ()
11204 struct statfs fsd;
11205 fsd.f_bsize = 0;
11206 exit (statfs (".", &fsd));
11209 if { (eval echo configure:11210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11210 then
11211 fu_cv_sys_stat_statfs2_bsize=yes
11212 else
11213 echo "configure: failed program was:" >&5
11214 cat conftest.$ac_ext >&5
11215 rm -fr conftest*
11216 fu_cv_sys_stat_statfs2_bsize=no
11218 rm -fr conftest*
11223 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
11224 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
11225 space=yes
11226 cat >> confdefs.h <<\EOF
11227 #define STAT_STATFS2_BSIZE 1
11233 if test $space = no; then
11234 # SVR3
11235 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
11236 echo "configure:11237: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
11237 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
11238 echo $ac_n "(cached) $ac_c" 1>&6
11239 else
11240 if test "$cross_compiling" = yes; then
11241 fu_cv_sys_stat_statfs4=no
11242 else
11243 cat > conftest.$ac_ext <<EOF
11244 #line 11245 "configure"
11245 #include "confdefs.h"
11246 #include <sys/types.h>
11247 #include <sys/statfs.h>
11248 main ()
11250 struct statfs fsd;
11251 exit (statfs (".", &fsd, sizeof fsd, 0));
11254 if { (eval echo configure:11255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11255 then
11256 fu_cv_sys_stat_statfs4=yes
11257 else
11258 echo "configure: failed program was:" >&5
11259 cat conftest.$ac_ext >&5
11260 rm -fr conftest*
11261 fu_cv_sys_stat_statfs4=no
11263 rm -fr conftest*
11268 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
11269 if test $fu_cv_sys_stat_statfs4 = yes; then
11270 space=yes
11271 cat >> confdefs.h <<\EOF
11272 #define STAT_STATFS4 1
11278 if test $space = no; then
11279 # 4.4BSD and NetBSD
11280 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
11281 echo "configure:11282: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
11282 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
11283 echo $ac_n "(cached) $ac_c" 1>&6
11284 else
11285 if test "$cross_compiling" = yes; then
11286 fu_cv_sys_stat_statfs2_fsize=no
11287 else
11288 cat > conftest.$ac_ext <<EOF
11289 #line 11290 "configure"
11290 #include "confdefs.h"
11291 #include <sys/types.h>
11292 #ifdef HAVE_SYS_PARAM_H
11293 #include <sys/param.h>
11294 #endif
11295 #ifdef HAVE_SYS_MOUNT_H
11296 #include <sys/mount.h>
11297 #endif
11298 main ()
11300 struct statfs fsd;
11301 fsd.f_fsize = 0;
11302 exit (statfs (".", &fsd));
11305 if { (eval echo configure:11306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11306 then
11307 fu_cv_sys_stat_statfs2_fsize=yes
11308 else
11309 echo "configure: failed program was:" >&5
11310 cat conftest.$ac_ext >&5
11311 rm -fr conftest*
11312 fu_cv_sys_stat_statfs2_fsize=no
11314 rm -fr conftest*
11319 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
11320 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
11321 space=yes
11322 cat >> confdefs.h <<\EOF
11323 #define STAT_STATFS2_FSIZE 1
11329 if test $space = no; then
11330 # Ultrix
11331 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
11332 echo "configure:11333: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
11333 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
11334 echo $ac_n "(cached) $ac_c" 1>&6
11335 else
11336 if test "$cross_compiling" = yes; then
11337 fu_cv_sys_stat_fs_data=no
11338 else
11339 cat > conftest.$ac_ext <<EOF
11340 #line 11341 "configure"
11341 #include "confdefs.h"
11342 #include <sys/types.h>
11343 #ifdef HAVE_SYS_PARAM_H
11344 #include <sys/param.h>
11345 #endif
11346 #ifdef HAVE_SYS_MOUNT_H
11347 #include <sys/mount.h>
11348 #endif
11349 #ifdef HAVE_SYS_FS_TYPES_H
11350 #include <sys/fs_types.h>
11351 #endif
11352 main ()
11354 struct fs_data fsd;
11355 /* Ultrix's statfs returns 1 for success,
11356 0 for not mounted, -1 for failure. */
11357 exit (statfs (".", &fsd) != 1);
11360 if { (eval echo configure:11361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11361 then
11362 fu_cv_sys_stat_fs_data=yes
11363 else
11364 echo "configure: failed program was:" >&5
11365 cat conftest.$ac_ext >&5
11366 rm -fr conftest*
11367 fu_cv_sys_stat_fs_data=no
11369 rm -fr conftest*
11374 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
11375 if test $fu_cv_sys_stat_fs_data = yes; then
11376 space=yes
11377 cat >> confdefs.h <<\EOF
11378 #define STAT_STATFS2_FS_DATA 1
11385 # As a gating factor for large file support, in order to
11386 # use <4GB files we must have the following minimal support
11387 # available.
11388 # long long, and a 64 bit off_t or off64_t.
11389 # If we don't have all of these then disable large
11390 # file support.
11392 echo "checking if large file support can be enabled"
11393 cat > conftest.$ac_ext <<EOF
11394 #line 11395 "configure"
11395 #include "confdefs.h"
11397 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
11398 #include <sys/types.h>
11399 #else
11400 __COMPILE_ERROR_
11401 #endif
11403 int main() {
11404 int i
11405 ; return 0; }
11407 if { (eval echo configure:11408: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11408 rm -rf conftest*
11409 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=yes
11410 else
11411 echo "configure: failed program was:" >&5
11412 cat conftest.$ac_ext >&5
11413 rm -rf conftest*
11414 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=no
11416 rm -f conftest*
11417 if test x"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x"yes"; then
11418 echo "yes"
11419 cat >> confdefs.h <<\EOF
11420 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
11423 else
11424 echo "no"
11427 echo "checking configure summary"
11428 if test "$cross_compiling" = yes; then
11430 else
11431 cat > conftest.$ac_ext <<EOF
11432 #line 11433 "configure"
11433 #include "confdefs.h"
11434 #include "${srcdir-.}/tests/summary.c"
11436 if { (eval echo configure:11437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11437 then
11438 echo "configure OK";
11439 else
11440 echo "configure: failed program was:" >&5
11441 cat conftest.$ac_ext >&5
11442 rm -fr conftest*
11443 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }
11445 rm -fr conftest*
11449 builddir=`pwd`
11452 trap '' 1 2 15
11453 cat > confcache <<\EOF
11454 # This file is a shell script that caches the results of configure
11455 # tests run on this system so they can be shared between configure
11456 # scripts and configure runs. It is not useful on other systems.
11457 # If it contains results you don't want to keep, you may remove or edit it.
11459 # By default, configure uses ./config.cache as the cache file,
11460 # creating it if it does not exist already. You can give configure
11461 # the --cache-file=FILE option to use a different cache file; that is
11462 # what configure does when it calls configure scripts in
11463 # subdirectories, so they share the cache.
11464 # Giving --cache-file=/dev/null disables caching, for debugging configure.
11465 # config.status only pays attention to the cache file if you give it the
11466 # --recheck option to rerun configure.
11469 # The following way of writing the cache mishandles newlines in values,
11470 # but we know of no workaround that is simple, portable, and efficient.
11471 # So, don't put newlines in cache variables' values.
11472 # Ultrix sh set writes to stderr and can't be redirected directly,
11473 # and sets the high bit in the cache file unless we assign to the vars.
11474 (set) 2>&1 |
11475 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11476 *ac_space=\ *)
11477 # `set' does not quote correctly, so add quotes (double-quote substitution
11478 # turns \\\\ into \\, and sed turns \\ into \).
11479 sed -n \
11480 -e "s/'/'\\\\''/g" \
11481 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
11484 # `set' quotes correctly as required by POSIX, so do not add quotes.
11485 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
11487 esac >> confcache
11488 if cmp -s $cache_file confcache; then
11490 else
11491 if test -w $cache_file; then
11492 echo "updating cache $cache_file"
11493 cat confcache > $cache_file
11494 else
11495 echo "not updating unwritable cache $cache_file"
11498 rm -f confcache
11500 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
11502 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11503 # Let make expand exec_prefix.
11504 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11506 # Any assignment to VPATH causes Sun make to only execute
11507 # the first set of double-colon rules, so remove it if not needed.
11508 # If there is a colon in the path, we need to keep it.
11509 if test "x$srcdir" = x.; then
11510 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
11513 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
11515 DEFS=-DHAVE_CONFIG_H
11517 # Without the "./", some shells look in PATH for config.status.
11518 : ${CONFIG_STATUS=./config.status}
11520 echo creating $CONFIG_STATUS
11521 rm -f $CONFIG_STATUS
11522 cat > $CONFIG_STATUS <<EOF
11523 #! /bin/sh
11524 # Generated automatically by configure.
11525 # Run this file to recreate the current configuration.
11526 # This directory was configured as follows,
11527 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11529 # $0 $ac_configure_args
11531 # Compiler output produced by configure, useful for debugging
11532 # configure, is in ./config.log if it exists.
11534 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
11535 for ac_option
11537 case "\$ac_option" in
11538 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11539 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
11540 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
11541 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
11542 echo "$CONFIG_STATUS generated by autoconf version 2.13"
11543 exit 0 ;;
11544 -help | --help | --hel | --he | --h)
11545 echo "\$ac_cs_usage"; exit 0 ;;
11546 *) echo "\$ac_cs_usage"; exit 1 ;;
11547 esac
11548 done
11550 ac_given_srcdir=$srcdir
11551 ac_given_INSTALL="$INSTALL"
11553 trap 'rm -fr `echo "include/stamp-h Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
11555 cat >> $CONFIG_STATUS <<EOF
11557 # Protect against being on the right side of a sed subst in config.status.
11558 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
11559 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
11560 $ac_vpsub
11561 $extrasub
11562 s%@SHELL@%$SHELL%g
11563 s%@CFLAGS@%$CFLAGS%g
11564 s%@CPPFLAGS@%$CPPFLAGS%g
11565 s%@CXXFLAGS@%$CXXFLAGS%g
11566 s%@FFLAGS@%$FFLAGS%g
11567 s%@DEFS@%$DEFS%g
11568 s%@LDFLAGS@%$LDFLAGS%g
11569 s%@LIBS@%$LIBS%g
11570 s%@exec_prefix@%$exec_prefix%g
11571 s%@prefix@%$prefix%g
11572 s%@program_transform_name@%$program_transform_name%g
11573 s%@bindir@%$bindir%g
11574 s%@sbindir@%$sbindir%g
11575 s%@libexecdir@%$libexecdir%g
11576 s%@datadir@%$datadir%g
11577 s%@sysconfdir@%$sysconfdir%g
11578 s%@sharedstatedir@%$sharedstatedir%g
11579 s%@localstatedir@%$localstatedir%g
11580 s%@libdir@%$libdir%g
11581 s%@includedir@%$includedir%g
11582 s%@oldincludedir@%$oldincludedir%g
11583 s%@infodir@%$infodir%g
11584 s%@mandir@%$mandir%g
11585 s%@RUNPROG@%$RUNPROG%g
11586 s%@MPROGS@%$MPROGS%g
11587 s%@LDSHFLAGS@%$LDSHFLAGS%g
11588 s%@HOST_OS@%$HOST_OS%g
11589 s%@WRAP@%$WRAP%g
11590 s%@WRAP32@%$WRAP32%g
11591 s%@PICFLAG@%$PICFLAG%g
11592 s%@SHLIBEXT@%$SHLIBEXT%g
11593 s%@CC@%$CC%g
11594 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
11595 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
11596 s%@INSTALL_DATA@%$INSTALL_DATA%g
11597 s%@AWK@%$AWK%g
11598 s%@host@%$host%g
11599 s%@host_alias@%$host_alias%g
11600 s%@host_cpu@%$host_cpu%g
11601 s%@host_vendor@%$host_vendor%g
11602 s%@host_os@%$host_os%g
11603 s%@build@%$build%g
11604 s%@build_alias@%$build_alias%g
11605 s%@build_cpu@%$build_cpu%g
11606 s%@build_vendor@%$build_vendor%g
11607 s%@build_os@%$build_os%g
11608 s%@RANLIB@%$RANLIB%g
11609 s%@LN_S@%$LN_S%g
11610 s%@LIBTOOL@%$LIBTOOL%g
11611 s%@LIBTOOL_DEPS@%$LIBTOOL_DEPS%g
11612 s%@BROKEN_CC@%$BROKEN_CC%g
11613 s%@target@%$target%g
11614 s%@target_alias@%$target_alias%g
11615 s%@target_cpu@%$target_cpu%g
11616 s%@target_vendor@%$target_vendor%g
11617 s%@target_os@%$target_os%g
11618 s%@CPP@%$CPP%g
11619 s%@LIBOBJS@%$LIBOBJS%g
11620 s%@ROFF@%$ROFF%g
11621 s%@QUOTAOBJS@%$QUOTAOBJS%g
11622 s%@privatedir@%$privatedir%g
11623 s%@lockdir@%$lockdir%g
11624 s%@swatdir@%$swatdir%g
11625 s%@builddir@%$builddir%g
11627 CEOF
11630 cat >> $CONFIG_STATUS <<\EOF
11632 # Split the substitutions into bite-sized pieces for seds with
11633 # small command number limits, like on Digital OSF/1 and HP-UX.
11634 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
11635 ac_file=1 # Number of current file.
11636 ac_beg=1 # First line for current file.
11637 ac_end=$ac_max_sed_cmds # Line after last line for current file.
11638 ac_more_lines=:
11639 ac_sed_cmds=""
11640 while $ac_more_lines; do
11641 if test $ac_beg -gt 1; then
11642 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
11643 else
11644 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
11646 if test ! -s conftest.s$ac_file; then
11647 ac_more_lines=false
11648 rm -f conftest.s$ac_file
11649 else
11650 if test -z "$ac_sed_cmds"; then
11651 ac_sed_cmds="sed -f conftest.s$ac_file"
11652 else
11653 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
11655 ac_file=`expr $ac_file + 1`
11656 ac_beg=$ac_end
11657 ac_end=`expr $ac_end + $ac_max_sed_cmds`
11659 done
11660 if test -z "$ac_sed_cmds"; then
11661 ac_sed_cmds=cat
11665 cat >> $CONFIG_STATUS <<EOF
11667 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile"}
11669 cat >> $CONFIG_STATUS <<\EOF
11670 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
11671 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11672 case "$ac_file" in
11673 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
11674 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
11675 *) ac_file_in="${ac_file}.in" ;;
11676 esac
11678 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
11680 # Remove last slash and all that follows it. Not all systems have dirname.
11681 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
11682 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
11683 # The file is in a subdirectory.
11684 test ! -d "$ac_dir" && mkdir "$ac_dir"
11685 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
11686 # A "../" for each directory in $ac_dir_suffix.
11687 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
11688 else
11689 ac_dir_suffix= ac_dots=
11692 case "$ac_given_srcdir" in
11693 .) srcdir=.
11694 if test -z "$ac_dots"; then top_srcdir=.
11695 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
11696 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
11697 *) # Relative path.
11698 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
11699 top_srcdir="$ac_dots$ac_given_srcdir" ;;
11700 esac
11702 case "$ac_given_INSTALL" in
11703 [/$]*) INSTALL="$ac_given_INSTALL" ;;
11704 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
11705 esac
11707 echo creating "$ac_file"
11708 rm -f "$ac_file"
11709 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
11710 case "$ac_file" in
11711 *Makefile*) ac_comsub="1i\\
11712 # $configure_input" ;;
11713 *) ac_comsub= ;;
11714 esac
11716 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
11717 sed -e "$ac_comsub
11718 s%@configure_input@%$configure_input%g
11719 s%@srcdir@%$srcdir%g
11720 s%@top_srcdir@%$top_srcdir%g
11721 s%@INSTALL@%$INSTALL%g
11722 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
11723 fi; done
11724 rm -f conftest.s*
11726 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11727 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11729 # ac_d sets the value in "#define NAME VALUE" lines.
11730 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11731 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
11732 ac_dC='\3'
11733 ac_dD='%g'
11734 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
11735 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11736 ac_uB='\([ ]\)%\1#\2define\3'
11737 ac_uC=' '
11738 ac_uD='\4%g'
11739 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11740 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11741 ac_eB='$%\1#\2define\3'
11742 ac_eC=' '
11743 ac_eD='%g'
11745 if test "${CONFIG_HEADERS+set}" != set; then
11747 cat >> $CONFIG_STATUS <<EOF
11748 CONFIG_HEADERS="include/config.h"
11750 cat >> $CONFIG_STATUS <<\EOF
11752 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
11753 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11754 case "$ac_file" in
11755 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
11756 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
11757 *) ac_file_in="${ac_file}.in" ;;
11758 esac
11760 echo creating $ac_file
11762 rm -f conftest.frag conftest.in conftest.out
11763 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
11764 cat $ac_file_inputs > conftest.in
11768 # Transform confdefs.h into a sed script conftest.vals that substitutes
11769 # the proper values into config.h.in to produce config.h. And first:
11770 # Protect against being on the right side of a sed subst in config.status.
11771 # Protect against being in an unquoted here document in config.status.
11772 rm -f conftest.vals
11773 cat > conftest.hdr <<\EOF
11774 s/[\\&%]/\\&/g
11775 s%[\\$`]%\\&%g
11776 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
11777 s%ac_d%ac_u%gp
11778 s%ac_u%ac_e%gp
11780 sed -n -f conftest.hdr confdefs.h > conftest.vals
11781 rm -f conftest.hdr
11783 # This sed command replaces #undef with comments. This is necessary, for
11784 # example, in the case of _POSIX_SOURCE, which is predefined and required
11785 # on some systems where configure will not decide to define it.
11786 cat >> conftest.vals <<\EOF
11787 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
11790 # Break up conftest.vals because some shells have a limit on
11791 # the size of here documents, and old seds have small limits too.
11793 rm -f conftest.tail
11794 while :
11796 ac_lines=`grep -c . conftest.vals`
11797 # grep -c gives empty output for an empty file on some AIX systems.
11798 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
11799 # Write a limited-size here document to conftest.frag.
11800 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
11801 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
11802 echo 'CEOF
11803 sed -f conftest.frag conftest.in > conftest.out
11804 rm -f conftest.in
11805 mv conftest.out conftest.in
11806 ' >> $CONFIG_STATUS
11807 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
11808 rm -f conftest.vals
11809 mv conftest.tail conftest.vals
11810 done
11811 rm -f conftest.vals
11813 cat >> $CONFIG_STATUS <<\EOF
11814 rm -f conftest.frag conftest.h
11815 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
11816 cat conftest.in >> conftest.h
11817 rm -f conftest.in
11818 if cmp -s $ac_file conftest.h 2>/dev/null; then
11819 echo "$ac_file is unchanged"
11820 rm -f conftest.h
11821 else
11822 # Remove last slash and all that follows it. Not all systems have dirname.
11823 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
11824 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
11825 # The file is in a subdirectory.
11826 test ! -d "$ac_dir" && mkdir "$ac_dir"
11828 rm -f $ac_file
11829 mv conftest.h $ac_file
11831 fi; done
11834 cat >> $CONFIG_STATUS <<EOF
11837 cat >> $CONFIG_STATUS <<\EOF
11839 exit 0
11841 chmod +x $CONFIG_STATUS
11842 rm -fr confdefs* $ac_clean_files
11843 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1