Changed to sourceforge tdb code. This includes spinlocks (so we now have
[Samba/ekacnet.git] / source / configure
blob690488dd9a5b120cf57f69e55ff7b09e5c38f028
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-tdbsam Include experimental TDB password database
51 --without-tdbsam Don't include experimental TDB password database (default)"
52 ac_help="$ac_help
53 --with-ldap Include LDAP support
54 --without-ldap Don't include LDAP support (default)"
55 ac_help="$ac_help
56 --with-nisplus Include NISPLUS password database support
57 --without-nisplus Don't include NISPLUS password database support (default)"
58 ac_help="$ac_help
59 --with-nisplus-home Include NISPLUS_HOME support
60 --without-nisplus-home Don't include NISPLUS_HOME support (default)"
61 ac_help="$ac_help
62 --with-ssl Include SSL support
63 --without-ssl Don't include SSL support (default)
64 --with-sslinc=DIR Where the SSL includes are (defaults to /usr/local/ssl)"
65 ac_help="$ac_help
66 --with-syslog Include experimental SYSLOG support
67 --without-syslog Don't include SYSLOG support (default)"
68 ac_help="$ac_help
69 --with-profile Include profile support
70 --without-profile Don't include profile support (default)"
71 ac_help="$ac_help
72 --with-netatalk Include experimental Netatalk support
73 --without-netatalk Don't include experimental Netatalk support (default)"
74 ac_help="$ac_help
75 --with-quotas Include experimental disk-quota support
76 --without-quotas Don't include experimental disk-quota support (default)"
77 ac_help="$ac_help
78 --with-utmp Include experimental utmp accounting
79 --without-utmp Don't include experimental utmp accounting (default)"
80 ac_help="$ac_help
81 --with-msdfs Include MS Dfs support
82 --without-msdfs Don't include MS Dfs 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)"
89 ac_help="$ac_help
90 --with-spinlocks use spin locks instead of fcntl locks "
92 # Initialize some variables set by options.
93 # The variables have the same names as the options, with
94 # dashes changed to underlines.
95 build=NONE
96 cache_file=./config.cache
97 exec_prefix=NONE
98 host=NONE
99 no_create=
100 nonopt=NONE
101 no_recursion=
102 prefix=NONE
103 program_prefix=NONE
104 program_suffix=NONE
105 program_transform_name=s,x,x,
106 silent=
107 site=
108 srcdir=
109 target=NONE
110 verbose=
111 x_includes=NONE
112 x_libraries=NONE
113 bindir='${exec_prefix}/bin'
114 sbindir='${exec_prefix}/sbin'
115 libexecdir='${exec_prefix}/libexec'
116 datadir='${prefix}/share'
117 sysconfdir='${prefix}/etc'
118 sharedstatedir='${prefix}/com'
119 localstatedir='${prefix}/var'
120 libdir='${exec_prefix}/lib'
121 includedir='${prefix}/include'
122 oldincludedir='/usr/include'
123 infodir='${prefix}/info'
124 mandir='${prefix}/man'
126 # Initialize some other variables.
127 subdirs=
128 MFLAGS= MAKEFLAGS=
129 SHELL=${CONFIG_SHELL-/bin/sh}
130 # Maximum number of lines to put in a shell here document.
131 ac_max_here_lines=12
133 ac_prev=
134 for ac_option
137 # If the previous option needs an argument, assign it.
138 if test -n "$ac_prev"; then
139 eval "$ac_prev=\$ac_option"
140 ac_prev=
141 continue
144 case "$ac_option" in
145 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
146 *) ac_optarg= ;;
147 esac
149 # Accept the important Cygnus configure options, so we can diagnose typos.
151 case "$ac_option" in
153 -bindir | --bindir | --bindi | --bind | --bin | --bi)
154 ac_prev=bindir ;;
155 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
156 bindir="$ac_optarg" ;;
158 -build | --build | --buil | --bui | --bu)
159 ac_prev=build ;;
160 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
161 build="$ac_optarg" ;;
163 -cache-file | --cache-file | --cache-fil | --cache-fi \
164 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
165 ac_prev=cache_file ;;
166 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
167 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
168 cache_file="$ac_optarg" ;;
170 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
171 ac_prev=datadir ;;
172 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
173 | --da=*)
174 datadir="$ac_optarg" ;;
176 -disable-* | --disable-*)
177 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
178 # Reject names that are not valid shell variable names.
179 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
180 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
182 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
183 eval "enable_${ac_feature}=no" ;;
185 -enable-* | --enable-*)
186 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
187 # Reject names that are not valid shell variable names.
188 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
189 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
191 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
192 case "$ac_option" in
193 *=*) ;;
194 *) ac_optarg=yes ;;
195 esac
196 eval "enable_${ac_feature}='$ac_optarg'" ;;
198 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
199 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
200 | --exec | --exe | --ex)
201 ac_prev=exec_prefix ;;
202 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
203 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
204 | --exec=* | --exe=* | --ex=*)
205 exec_prefix="$ac_optarg" ;;
207 -gas | --gas | --ga | --g)
208 # Obsolete; use --with-gas.
209 with_gas=yes ;;
211 -help | --help | --hel | --he)
212 # Omit some internal or obsolete options to make the list less imposing.
213 # This message is too long to be a string in the A/UX 3.1 sh.
214 cat << EOF
215 Usage: configure [options] [host]
216 Options: [defaults in brackets after descriptions]
217 Configuration:
218 --cache-file=FILE cache test results in FILE
219 --help print this message
220 --no-create do not create output files
221 --quiet, --silent do not print \`checking...' messages
222 --version print the version of autoconf that created configure
223 Directory and file names:
224 --prefix=PREFIX install architecture-independent files in PREFIX
225 [$ac_default_prefix]
226 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
227 [same as prefix]
228 --bindir=DIR user executables in DIR [EPREFIX/bin]
229 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
230 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
231 --datadir=DIR read-only architecture-independent data in DIR
232 [PREFIX/share]
233 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
234 --sharedstatedir=DIR modifiable architecture-independent data in DIR
235 [PREFIX/com]
236 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
237 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
238 --includedir=DIR C header files in DIR [PREFIX/include]
239 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
240 --infodir=DIR info documentation in DIR [PREFIX/info]
241 --mandir=DIR man documentation in DIR [PREFIX/man]
242 --srcdir=DIR find the sources in DIR [configure dir or ..]
243 --program-prefix=PREFIX prepend PREFIX to installed program names
244 --program-suffix=SUFFIX append SUFFIX to installed program names
245 --program-transform-name=PROGRAM
246 run sed PROGRAM on installed program names
248 cat << EOF
249 Host type:
250 --build=BUILD configure for building on BUILD [BUILD=HOST]
251 --host=HOST configure for HOST [guessed]
252 --target=TARGET configure for TARGET [TARGET=HOST]
253 Features and packages:
254 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
255 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
256 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
257 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
258 --x-includes=DIR X include files are in DIR
259 --x-libraries=DIR X library files are in DIR
261 if test -n "$ac_help"; then
262 echo "--enable and --with options recognized:$ac_help"
264 exit 0 ;;
266 -host | --host | --hos | --ho)
267 ac_prev=host ;;
268 -host=* | --host=* | --hos=* | --ho=*)
269 host="$ac_optarg" ;;
271 -includedir | --includedir | --includedi | --included | --include \
272 | --includ | --inclu | --incl | --inc)
273 ac_prev=includedir ;;
274 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
275 | --includ=* | --inclu=* | --incl=* | --inc=*)
276 includedir="$ac_optarg" ;;
278 -infodir | --infodir | --infodi | --infod | --info | --inf)
279 ac_prev=infodir ;;
280 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
281 infodir="$ac_optarg" ;;
283 -libdir | --libdir | --libdi | --libd)
284 ac_prev=libdir ;;
285 -libdir=* | --libdir=* | --libdi=* | --libd=*)
286 libdir="$ac_optarg" ;;
288 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
289 | --libexe | --libex | --libe)
290 ac_prev=libexecdir ;;
291 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
292 | --libexe=* | --libex=* | --libe=*)
293 libexecdir="$ac_optarg" ;;
295 -localstatedir | --localstatedir | --localstatedi | --localstated \
296 | --localstate | --localstat | --localsta | --localst \
297 | --locals | --local | --loca | --loc | --lo)
298 ac_prev=localstatedir ;;
299 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
300 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
301 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
302 localstatedir="$ac_optarg" ;;
304 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
305 ac_prev=mandir ;;
306 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
307 mandir="$ac_optarg" ;;
309 -nfp | --nfp | --nf)
310 # Obsolete; use --without-fp.
311 with_fp=no ;;
313 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
314 | --no-cr | --no-c)
315 no_create=yes ;;
317 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
318 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
319 no_recursion=yes ;;
321 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
322 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
323 | --oldin | --oldi | --old | --ol | --o)
324 ac_prev=oldincludedir ;;
325 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
326 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
327 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
328 oldincludedir="$ac_optarg" ;;
330 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
331 ac_prev=prefix ;;
332 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
333 prefix="$ac_optarg" ;;
335 -program-prefix | --program-prefix | --program-prefi | --program-pref \
336 | --program-pre | --program-pr | --program-p)
337 ac_prev=program_prefix ;;
338 -program-prefix=* | --program-prefix=* | --program-prefi=* \
339 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
340 program_prefix="$ac_optarg" ;;
342 -program-suffix | --program-suffix | --program-suffi | --program-suff \
343 | --program-suf | --program-su | --program-s)
344 ac_prev=program_suffix ;;
345 -program-suffix=* | --program-suffix=* | --program-suffi=* \
346 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
347 program_suffix="$ac_optarg" ;;
349 -program-transform-name | --program-transform-name \
350 | --program-transform-nam | --program-transform-na \
351 | --program-transform-n | --program-transform- \
352 | --program-transform | --program-transfor \
353 | --program-transfo | --program-transf \
354 | --program-trans | --program-tran \
355 | --progr-tra | --program-tr | --program-t)
356 ac_prev=program_transform_name ;;
357 -program-transform-name=* | --program-transform-name=* \
358 | --program-transform-nam=* | --program-transform-na=* \
359 | --program-transform-n=* | --program-transform-=* \
360 | --program-transform=* | --program-transfor=* \
361 | --program-transfo=* | --program-transf=* \
362 | --program-trans=* | --program-tran=* \
363 | --progr-tra=* | --program-tr=* | --program-t=*)
364 program_transform_name="$ac_optarg" ;;
366 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
367 | -silent | --silent | --silen | --sile | --sil)
368 silent=yes ;;
370 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
371 ac_prev=sbindir ;;
372 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
373 | --sbi=* | --sb=*)
374 sbindir="$ac_optarg" ;;
376 -sharedstatedir | --sharedstatedir | --sharedstatedi \
377 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
378 | --sharedst | --shareds | --shared | --share | --shar \
379 | --sha | --sh)
380 ac_prev=sharedstatedir ;;
381 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
382 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
383 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
384 | --sha=* | --sh=*)
385 sharedstatedir="$ac_optarg" ;;
387 -site | --site | --sit)
388 ac_prev=site ;;
389 -site=* | --site=* | --sit=*)
390 site="$ac_optarg" ;;
392 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
393 ac_prev=srcdir ;;
394 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
395 srcdir="$ac_optarg" ;;
397 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
398 | --syscon | --sysco | --sysc | --sys | --sy)
399 ac_prev=sysconfdir ;;
400 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
401 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
402 sysconfdir="$ac_optarg" ;;
404 -target | --target | --targe | --targ | --tar | --ta | --t)
405 ac_prev=target ;;
406 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
407 target="$ac_optarg" ;;
409 -v | -verbose | --verbose | --verbos | --verbo | --verb)
410 verbose=yes ;;
412 -version | --version | --versio | --versi | --vers)
413 echo "configure generated by autoconf version 2.13"
414 exit 0 ;;
416 -with-* | --with-*)
417 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
418 # Reject names that are not valid shell variable names.
419 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
420 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
422 ac_package=`echo $ac_package| sed 's/-/_/g'`
423 case "$ac_option" in
424 *=*) ;;
425 *) ac_optarg=yes ;;
426 esac
427 eval "with_${ac_package}='$ac_optarg'" ;;
429 -without-* | --without-*)
430 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
431 # Reject names that are not valid shell variable names.
432 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
433 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
435 ac_package=`echo $ac_package| sed 's/-/_/g'`
436 eval "with_${ac_package}=no" ;;
438 --x)
439 # Obsolete; use --with-x.
440 with_x=yes ;;
442 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
443 | --x-incl | --x-inc | --x-in | --x-i)
444 ac_prev=x_includes ;;
445 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
446 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
447 x_includes="$ac_optarg" ;;
449 -x-libraries | --x-libraries | --x-librarie | --x-librari \
450 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
451 ac_prev=x_libraries ;;
452 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
453 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
454 x_libraries="$ac_optarg" ;;
456 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
460 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
461 echo "configure: warning: $ac_option: invalid host type" 1>&2
463 if test "x$nonopt" != xNONE; then
464 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
466 nonopt="$ac_option"
469 esac
470 done
472 if test -n "$ac_prev"; then
473 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
476 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
478 # File descriptor usage:
479 # 0 standard input
480 # 1 file creation
481 # 2 errors and warnings
482 # 3 some systems may open it to /dev/tty
483 # 4 used on the Kubota Titan
484 # 6 checking for... messages and results
485 # 5 compiler messages saved in config.log
486 if test "$silent" = yes; then
487 exec 6>/dev/null
488 else
489 exec 6>&1
491 exec 5>./config.log
493 echo "\
494 This file contains any messages produced by compilers while
495 running configure, to aid debugging if configure makes a mistake.
496 " 1>&5
498 # Strip out --no-create and --no-recursion so they do not pile up.
499 # Also quote any args containing shell metacharacters.
500 ac_configure_args=
501 for ac_arg
503 case "$ac_arg" in
504 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
505 | --no-cr | --no-c) ;;
506 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
507 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
508 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
509 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
510 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
511 esac
512 done
514 # NLS nuisances.
515 # Only set these to C if already set. These must not be set unconditionally
516 # because not all systems understand e.g. LANG=C (notably SCO).
517 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
518 # Non-C LC_CTYPE values break the ctype check.
519 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
520 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
521 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
522 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
524 # confdefs.h avoids OS command line length limits that DEFS can exceed.
525 rm -rf conftest* confdefs.h
526 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
527 echo > confdefs.h
529 # A filename unique to this package, relative to the directory that
530 # configure is in, which we can look for to find out if srcdir is correct.
531 ac_unique_file=include/includes.h
533 # Find the source files, if location was not specified.
534 if test -z "$srcdir"; then
535 ac_srcdir_defaulted=yes
536 # Try the directory containing this script, then its parent.
537 ac_prog=$0
538 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
539 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
540 srcdir=$ac_confdir
541 if test ! -r $srcdir/$ac_unique_file; then
542 srcdir=..
544 else
545 ac_srcdir_defaulted=no
547 if test ! -r $srcdir/$ac_unique_file; then
548 if test "$ac_srcdir_defaulted" = yes; then
549 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
550 else
551 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
554 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
556 # Prefer explicitly selected file to automatically selected ones.
557 if test -z "$CONFIG_SITE"; then
558 if test "x$prefix" != xNONE; then
559 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
560 else
561 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
564 for ac_site_file in $CONFIG_SITE; do
565 if test -r "$ac_site_file"; then
566 echo "loading site script $ac_site_file"
567 . "$ac_site_file"
569 done
571 if test -r "$cache_file"; then
572 echo "loading cache $cache_file"
573 . $cache_file
574 else
575 echo "creating cache $cache_file"
576 > $cache_file
579 ac_ext=c
580 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
581 ac_cpp='$CPP $CPPFLAGS'
582 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
583 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
584 cross_compiling=$ac_cv_prog_cc_cross
586 ac_exeext=
587 ac_objext=o
588 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
589 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
590 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
591 ac_n= ac_c='
592 ' ac_t=' '
593 else
594 ac_n=-n ac_c= ac_t=
596 else
597 ac_n= ac_c='\c' ac_t=
602 # we want to be compatibe with older versions of Samba
615 # compile with optimisation and without debugging by default
616 CFLAGS=${CFLAGS-"-O"}
618 # Extract the first word of "gcc", so it can be a program name with args.
619 set dummy gcc; ac_word=$2
620 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
621 echo "configure:622: checking for $ac_word" >&5
622 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
623 echo $ac_n "(cached) $ac_c" 1>&6
624 else
625 if test -n "$CC"; then
626 ac_cv_prog_CC="$CC" # Let the user override the test.
627 else
628 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
629 ac_dummy="$PATH"
630 for ac_dir in $ac_dummy; do
631 test -z "$ac_dir" && ac_dir=.
632 if test -f $ac_dir/$ac_word; then
633 ac_cv_prog_CC="gcc"
634 break
636 done
637 IFS="$ac_save_ifs"
640 CC="$ac_cv_prog_CC"
641 if test -n "$CC"; then
642 echo "$ac_t""$CC" 1>&6
643 else
644 echo "$ac_t""no" 1>&6
647 if test -z "$CC"; then
648 # Extract the first word of "cc", so it can be a program name with args.
649 set dummy cc; ac_word=$2
650 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
651 echo "configure:652: checking for $ac_word" >&5
652 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
653 echo $ac_n "(cached) $ac_c" 1>&6
654 else
655 if test -n "$CC"; then
656 ac_cv_prog_CC="$CC" # Let the user override the test.
657 else
658 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
659 ac_prog_rejected=no
660 ac_dummy="$PATH"
661 for ac_dir in $ac_dummy; do
662 test -z "$ac_dir" && ac_dir=.
663 if test -f $ac_dir/$ac_word; then
664 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
665 ac_prog_rejected=yes
666 continue
668 ac_cv_prog_CC="cc"
669 break
671 done
672 IFS="$ac_save_ifs"
673 if test $ac_prog_rejected = yes; then
674 # We found a bogon in the path, so make sure we never use it.
675 set dummy $ac_cv_prog_CC
676 shift
677 if test $# -gt 0; then
678 # We chose a different compiler from the bogus one.
679 # However, it has the same basename, so the bogon will be chosen
680 # first if we set CC to just the basename; use the full file name.
681 shift
682 set dummy "$ac_dir/$ac_word" "$@"
683 shift
684 ac_cv_prog_CC="$@"
689 CC="$ac_cv_prog_CC"
690 if test -n "$CC"; then
691 echo "$ac_t""$CC" 1>&6
692 else
693 echo "$ac_t""no" 1>&6
696 if test -z "$CC"; then
697 case "`uname -s`" in
698 *win32* | *WIN32*)
699 # Extract the first word of "cl", so it can be a program name with args.
700 set dummy cl; ac_word=$2
701 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
702 echo "configure:703: checking for $ac_word" >&5
703 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
704 echo $ac_n "(cached) $ac_c" 1>&6
705 else
706 if test -n "$CC"; then
707 ac_cv_prog_CC="$CC" # Let the user override the test.
708 else
709 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
710 ac_dummy="$PATH"
711 for ac_dir in $ac_dummy; do
712 test -z "$ac_dir" && ac_dir=.
713 if test -f $ac_dir/$ac_word; then
714 ac_cv_prog_CC="cl"
715 break
717 done
718 IFS="$ac_save_ifs"
721 CC="$ac_cv_prog_CC"
722 if test -n "$CC"; then
723 echo "$ac_t""$CC" 1>&6
724 else
725 echo "$ac_t""no" 1>&6
728 esac
730 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
733 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
734 echo "configure:735: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
736 ac_ext=c
737 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
738 ac_cpp='$CPP $CPPFLAGS'
739 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
740 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
741 cross_compiling=$ac_cv_prog_cc_cross
743 cat > conftest.$ac_ext << EOF
745 #line 746 "configure"
746 #include "confdefs.h"
748 main(){return(0);}
750 if { (eval echo configure:751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
751 ac_cv_prog_cc_works=yes
752 # If we can't run a trivial program, we are probably using a cross compiler.
753 if (./conftest; exit) 2>/dev/null; then
754 ac_cv_prog_cc_cross=no
755 else
756 ac_cv_prog_cc_cross=yes
758 else
759 echo "configure: failed program was:" >&5
760 cat conftest.$ac_ext >&5
761 ac_cv_prog_cc_works=no
763 rm -fr conftest*
764 ac_ext=c
765 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
766 ac_cpp='$CPP $CPPFLAGS'
767 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
768 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
769 cross_compiling=$ac_cv_prog_cc_cross
771 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
772 if test $ac_cv_prog_cc_works = no; then
773 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
775 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
776 echo "configure:777: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
777 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
778 cross_compiling=$ac_cv_prog_cc_cross
780 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
781 echo "configure:782: checking whether we are using GNU C" >&5
782 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
783 echo $ac_n "(cached) $ac_c" 1>&6
784 else
785 cat > conftest.c <<EOF
786 #ifdef __GNUC__
787 yes;
788 #endif
790 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:791: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
791 ac_cv_prog_gcc=yes
792 else
793 ac_cv_prog_gcc=no
797 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
799 if test $ac_cv_prog_gcc = yes; then
800 GCC=yes
801 else
802 GCC=
805 ac_test_CFLAGS="${CFLAGS+set}"
806 ac_save_CFLAGS="$CFLAGS"
807 CFLAGS=
808 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
809 echo "configure:810: checking whether ${CC-cc} accepts -g" >&5
810 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
811 echo $ac_n "(cached) $ac_c" 1>&6
812 else
813 echo 'void f(){}' > conftest.c
814 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
815 ac_cv_prog_cc_g=yes
816 else
817 ac_cv_prog_cc_g=no
819 rm -f conftest*
823 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
824 if test "$ac_test_CFLAGS" = set; then
825 CFLAGS="$ac_save_CFLAGS"
826 elif test $ac_cv_prog_cc_g = yes; then
827 if test "$GCC" = yes; then
828 CFLAGS="-g -O2"
829 else
830 CFLAGS="-g"
832 else
833 if test "$GCC" = yes; then
834 CFLAGS="-O2"
835 else
836 CFLAGS=
840 ac_aux_dir=
841 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
842 if test -f $ac_dir/install-sh; then
843 ac_aux_dir=$ac_dir
844 ac_install_sh="$ac_aux_dir/install-sh -c"
845 break
846 elif test -f $ac_dir/install.sh; then
847 ac_aux_dir=$ac_dir
848 ac_install_sh="$ac_aux_dir/install.sh -c"
849 break
851 done
852 if test -z "$ac_aux_dir"; then
853 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
855 ac_config_guess=$ac_aux_dir/config.guess
856 ac_config_sub=$ac_aux_dir/config.sub
857 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
859 # Find a good install program. We prefer a C program (faster),
860 # so one script is as good as another. But avoid the broken or
861 # incompatible versions:
862 # SysV /etc/install, /usr/sbin/install
863 # SunOS /usr/etc/install
864 # IRIX /sbin/install
865 # AIX /bin/install
866 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
867 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
868 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
869 # ./install, which can be erroneously created by make from ./install.sh.
870 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
871 echo "configure:872: checking for a BSD compatible install" >&5
872 if test -z "$INSTALL"; then
873 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
874 echo $ac_n "(cached) $ac_c" 1>&6
875 else
876 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
877 for ac_dir in $PATH; do
878 # Account for people who put trailing slashes in PATH elements.
879 case "$ac_dir/" in
880 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
882 # OSF1 and SCO ODT 3.0 have their own names for install.
883 # Don't use installbsd from OSF since it installs stuff as root
884 # by default.
885 for ac_prog in ginstall scoinst install; do
886 if test -f $ac_dir/$ac_prog; then
887 if test $ac_prog = install &&
888 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
889 # AIX install. It has an incompatible calling convention.
891 else
892 ac_cv_path_install="$ac_dir/$ac_prog -c"
893 break 2
896 done
898 esac
899 done
900 IFS="$ac_save_IFS"
903 if test "${ac_cv_path_install+set}" = set; then
904 INSTALL="$ac_cv_path_install"
905 else
906 # As a last resort, use the slow shell script. We don't cache a
907 # path for INSTALL within a source directory, because that will
908 # break other packages using the cache if that directory is
909 # removed, or if the path is relative.
910 INSTALL="$ac_install_sh"
913 echo "$ac_t""$INSTALL" 1>&6
915 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
916 # It thinks the first close brace ends the variable substitution.
917 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
919 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
921 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
923 for ac_prog in gawk mawk nawk awk
925 # Extract the first word of "$ac_prog", so it can be a program name with args.
926 set dummy $ac_prog; ac_word=$2
927 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
928 echo "configure:929: checking for $ac_word" >&5
929 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
930 echo $ac_n "(cached) $ac_c" 1>&6
931 else
932 if test -n "$AWK"; then
933 ac_cv_prog_AWK="$AWK" # Let the user override the test.
934 else
935 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
936 ac_dummy="$PATH"
937 for ac_dir in $ac_dummy; do
938 test -z "$ac_dir" && ac_dir=.
939 if test -f $ac_dir/$ac_word; then
940 ac_cv_prog_AWK="$ac_prog"
941 break
943 done
944 IFS="$ac_save_ifs"
947 AWK="$ac_cv_prog_AWK"
948 if test -n "$AWK"; then
949 echo "$ac_t""$AWK" 1>&6
950 else
951 echo "$ac_t""no" 1>&6
954 test -n "$AWK" && break
955 done
957 # Check whether --enable-shared or --disable-shared was given.
958 if test "${enable_shared+set}" = set; then
959 enableval="$enable_shared"
960 p=${PACKAGE-default}
961 case "$enableval" in
962 yes) enable_shared=yes ;;
963 no) enable_shared=no ;;
965 enable_shared=no
966 # Look at the argument we got. We use all the common list separators.
967 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
968 for pkg in $enableval; do
969 if test "X$pkg" = "X$p"; then
970 enable_shared=yes
972 done
973 IFS="$ac_save_ifs"
975 esac
976 else
977 enable_shared=yes
980 # Check whether --enable-static or --disable-static was given.
981 if test "${enable_static+set}" = set; then
982 enableval="$enable_static"
983 p=${PACKAGE-default}
984 case "$enableval" in
985 yes) enable_static=yes ;;
986 no) enable_static=no ;;
988 enable_static=no
989 # Look at the argument we got. We use all the common list separators.
990 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
991 for pkg in $enableval; do
992 if test "X$pkg" = "X$p"; then
993 enable_static=yes
995 done
996 IFS="$ac_save_ifs"
998 esac
999 else
1000 enable_static=yes
1003 # Check whether --enable-fast-install or --disable-fast-install was given.
1004 if test "${enable_fast_install+set}" = set; then
1005 enableval="$enable_fast_install"
1006 p=${PACKAGE-default}
1007 case "$enableval" in
1008 yes) enable_fast_install=yes ;;
1009 no) enable_fast_install=no ;;
1011 enable_fast_install=no
1012 # Look at the argument we got. We use all the common list separators.
1013 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1014 for pkg in $enableval; do
1015 if test "X$pkg" = "X$p"; then
1016 enable_fast_install=yes
1018 done
1019 IFS="$ac_save_ifs"
1021 esac
1022 else
1023 enable_fast_install=yes
1027 # Make sure we can run config.sub.
1028 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1029 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1032 echo $ac_n "checking host system type""... $ac_c" 1>&6
1033 echo "configure:1034: checking host system type" >&5
1035 host_alias=$host
1036 case "$host_alias" in
1037 NONE)
1038 case $nonopt in
1039 NONE)
1040 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1041 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1042 fi ;;
1043 *) host_alias=$nonopt ;;
1044 esac ;;
1045 esac
1047 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1048 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1049 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1050 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1051 echo "$ac_t""$host" 1>&6
1053 echo $ac_n "checking build system type""... $ac_c" 1>&6
1054 echo "configure:1055: checking build system type" >&5
1056 build_alias=$build
1057 case "$build_alias" in
1058 NONE)
1059 case $nonopt in
1060 NONE) build_alias=$host_alias ;;
1061 *) build_alias=$nonopt ;;
1062 esac ;;
1063 esac
1065 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1066 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1067 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1068 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1069 echo "$ac_t""$build" 1>&6
1071 # Extract the first word of "ranlib", so it can be a program name with args.
1072 set dummy ranlib; ac_word=$2
1073 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1074 echo "configure:1075: checking for $ac_word" >&5
1075 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1076 echo $ac_n "(cached) $ac_c" 1>&6
1077 else
1078 if test -n "$RANLIB"; then
1079 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1080 else
1081 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1082 ac_dummy="$PATH"
1083 for ac_dir in $ac_dummy; do
1084 test -z "$ac_dir" && ac_dir=.
1085 if test -f $ac_dir/$ac_word; then
1086 ac_cv_prog_RANLIB="ranlib"
1087 break
1089 done
1090 IFS="$ac_save_ifs"
1091 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1094 RANLIB="$ac_cv_prog_RANLIB"
1095 if test -n "$RANLIB"; then
1096 echo "$ac_t""$RANLIB" 1>&6
1097 else
1098 echo "$ac_t""no" 1>&6
1101 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1102 if test "${with_gnu_ld+set}" = set; then
1103 withval="$with_gnu_ld"
1104 test "$withval" = no || with_gnu_ld=yes
1105 else
1106 with_gnu_ld=no
1109 ac_prog=ld
1110 if test "$ac_cv_prog_gcc" = yes; then
1111 # Check if gcc -print-prog-name=ld gives a path.
1112 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1113 echo "configure:1114: checking for ld used by GCC" >&5
1114 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1115 case "$ac_prog" in
1116 # Accept absolute paths.
1117 [\\/]* | [A-Za-z]:[\\/]*)
1118 re_direlt='/[^/][^/]*/\.\./'
1119 # Canonicalize the path of ld
1120 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1121 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1122 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1123 done
1124 test -z "$LD" && LD="$ac_prog"
1127 # If it fails, then pretend we aren't using GCC.
1128 ac_prog=ld
1131 # If it is relative, then search for the first ld in PATH.
1132 with_gnu_ld=unknown
1134 esac
1135 elif test "$with_gnu_ld" = yes; then
1136 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1137 echo "configure:1138: checking for GNU ld" >&5
1138 else
1139 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1140 echo "configure:1141: checking for non-GNU ld" >&5
1142 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1143 echo $ac_n "(cached) $ac_c" 1>&6
1144 else
1145 if test -z "$LD"; then
1146 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1147 for ac_dir in $PATH; do
1148 test -z "$ac_dir" && ac_dir=.
1149 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1150 ac_cv_path_LD="$ac_dir/$ac_prog"
1151 # Check to see if the program is GNU ld. I'd rather use --version,
1152 # but apparently some GNU ld's only accept -v.
1153 # Break only if it was the GNU/non-GNU ld that we prefer.
1154 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1155 test "$with_gnu_ld" != no && break
1156 else
1157 test "$with_gnu_ld" != yes && break
1160 done
1161 IFS="$ac_save_ifs"
1162 else
1163 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1167 LD="$ac_cv_path_LD"
1168 if test -n "$LD"; then
1169 echo "$ac_t""$LD" 1>&6
1170 else
1171 echo "$ac_t""no" 1>&6
1173 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1174 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1175 echo "configure:1176: checking if the linker ($LD) is GNU ld" >&5
1176 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1177 echo $ac_n "(cached) $ac_c" 1>&6
1178 else
1179 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1180 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1181 ac_cv_prog_gnu_ld=yes
1182 else
1183 ac_cv_prog_gnu_ld=no
1187 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1190 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1191 echo "configure:1192: checking for BSD-compatible nm" >&5
1192 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1193 echo $ac_n "(cached) $ac_c" 1>&6
1194 else
1195 if test -n "$NM"; then
1196 # Let the user override the test.
1197 ac_cv_path_NM="$NM"
1198 else
1199 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1200 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1201 test -z "$ac_dir" && ac_dir=.
1202 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
1203 # Check to see if the nm accepts a BSD-compat flag.
1204 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1205 # nm: unknown option "B" ignored
1206 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1207 ac_cv_path_NM="$ac_dir/nm -B"
1208 break
1209 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1210 ac_cv_path_NM="$ac_dir/nm -p"
1211 break
1212 else
1213 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1214 continue # so that we can try to find one that supports BSD flags
1217 done
1218 IFS="$ac_save_ifs"
1219 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1223 NM="$ac_cv_path_NM"
1224 echo "$ac_t""$NM" 1>&6
1226 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1227 echo "configure:1228: checking whether ln -s works" >&5
1228 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1229 echo $ac_n "(cached) $ac_c" 1>&6
1230 else
1231 rm -f conftestdata
1232 if ln -s X conftestdata 2>/dev/null
1233 then
1234 rm -f conftestdata
1235 ac_cv_prog_LN_S="ln -s"
1236 else
1237 ac_cv_prog_LN_S=ln
1240 LN_S="$ac_cv_prog_LN_S"
1241 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1242 echo "$ac_t""yes" 1>&6
1243 else
1244 echo "$ac_t""no" 1>&6
1248 case "$target" in
1249 NONE) lt_target="$host" ;;
1250 *) lt_target="$target" ;;
1251 esac
1253 # Check for any special flags to pass to ltconfig.
1254 libtool_flags="--cache-file=$cache_file"
1255 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1256 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1257 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1258 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1259 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1262 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1263 if test "${enable_libtool_lock+set}" = set; then
1264 enableval="$enable_libtool_lock"
1268 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1269 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1271 # Some flags need to be propagated to the compiler or linker for good
1272 # libtool support.
1273 case "$lt_target" in
1274 *-*-irix6*)
1275 # Find out which ABI we are using.
1276 echo '#line 1277 "configure"' > conftest.$ac_ext
1277 if { (eval echo configure:1278: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1278 case "`/usr/bin/file conftest.o`" in
1279 *32-bit*)
1280 LD="${LD-ld} -32"
1282 *N32*)
1283 LD="${LD-ld} -n32"
1285 *64-bit*)
1286 LD="${LD-ld} -64"
1288 esac
1290 rm -rf conftest*
1293 *-*-sco3.2v5*)
1294 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1295 SAVE_CFLAGS="$CFLAGS"
1296 CFLAGS="$CFLAGS -belf"
1297 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1298 echo "configure:1299: checking whether the C compiler needs -belf" >&5
1299 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1300 echo $ac_n "(cached) $ac_c" 1>&6
1301 else
1302 cat > conftest.$ac_ext <<EOF
1303 #line 1304 "configure"
1304 #include "confdefs.h"
1306 int main() {
1308 ; return 0; }
1310 if { (eval echo configure:1311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1311 rm -rf conftest*
1312 lt_cv_cc_needs_belf=yes
1313 else
1314 echo "configure: failed program was:" >&5
1315 cat conftest.$ac_ext >&5
1316 rm -rf conftest*
1317 lt_cv_cc_needs_belf=no
1319 rm -f conftest*
1322 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1323 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1324 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1325 CFLAGS="$SAVE_CFLAGS"
1330 esac
1333 # Save cache, so that ltconfig can load it
1334 cat > confcache <<\EOF
1335 # This file is a shell script that caches the results of configure
1336 # tests run on this system so they can be shared between configure
1337 # scripts and configure runs. It is not useful on other systems.
1338 # If it contains results you don't want to keep, you may remove or edit it.
1340 # By default, configure uses ./config.cache as the cache file,
1341 # creating it if it does not exist already. You can give configure
1342 # the --cache-file=FILE option to use a different cache file; that is
1343 # what configure does when it calls configure scripts in
1344 # subdirectories, so they share the cache.
1345 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1346 # config.status only pays attention to the cache file if you give it the
1347 # --recheck option to rerun configure.
1350 # The following way of writing the cache mishandles newlines in values,
1351 # but we know of no workaround that is simple, portable, and efficient.
1352 # So, don't put newlines in cache variables' values.
1353 # Ultrix sh set writes to stderr and can't be redirected directly,
1354 # and sets the high bit in the cache file unless we assign to the vars.
1355 (set) 2>&1 |
1356 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1357 *ac_space=\ *)
1358 # `set' does not quote correctly, so add quotes (double-quote substitution
1359 # turns \\\\ into \\, and sed turns \\ into \).
1360 sed -n \
1361 -e "s/'/'\\\\''/g" \
1362 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1365 # `set' quotes correctly as required by POSIX, so do not add quotes.
1366 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1368 esac >> confcache
1369 if cmp -s $cache_file confcache; then
1371 else
1372 if test -w $cache_file; then
1373 echo "updating cache $cache_file"
1374 cat confcache > $cache_file
1375 else
1376 echo "not updating unwritable cache $cache_file"
1379 rm -f confcache
1382 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1383 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1384 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
1385 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
1386 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
1387 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
1388 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
1389 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1391 # Reload cache, that may have been modified by ltconfig
1392 if test -r "$cache_file"; then
1393 echo "loading cache $cache_file"
1394 . $cache_file
1395 else
1396 echo "creating cache $cache_file"
1397 > $cache_file
1401 # This can be used to rebuild libtool when needed
1402 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1404 # Always use our own libtool.
1405 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1407 # Redirect the config.log output again, so that the ltconfig log is not
1408 # clobbered by the next message.
1409 exec 5>>./config.log
1413 if test "x$CC" != xcc; then
1414 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1415 echo "configure:1416: checking whether $CC and cc understand -c and -o together" >&5
1416 else
1417 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1418 echo "configure:1419: checking whether cc understands -c and -o together" >&5
1420 set dummy $CC; ac_cc="`echo $2 |
1421 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1422 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1423 echo $ac_n "(cached) $ac_c" 1>&6
1424 else
1425 echo 'foo(){}' > conftest.c
1426 # Make sure it works both with $CC and with simple cc.
1427 # We do the test twice because some compilers refuse to overwrite an
1428 # existing .o file with -o, though they will create one.
1429 ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1430 if { (eval echo configure:1431: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1431 test -f conftest.o && { (eval echo configure:1432: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1432 then
1433 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
1434 if test "x$CC" != xcc; then
1435 # Test first that cc exists at all.
1436 if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:1437: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1437 ac_try='cc -c conftest.c -o conftest.o 1>&5'
1438 if { (eval echo configure:1439: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1439 test -f conftest.o && { (eval echo configure:1440: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1440 then
1441 # cc works too.
1443 else
1444 # cc exists but doesn't like -o.
1445 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1449 else
1450 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1452 rm -f conftest*
1455 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1456 echo "$ac_t""yes" 1>&6
1457 else
1458 echo "$ac_t""no" 1>&6
1459 cat >> confdefs.h <<\EOF
1460 #define NO_MINUS_C_MINUS_O 1
1465 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1466 BROKEN_CC=
1467 else
1468 BROKEN_CC=#
1472 echo $ac_n "checking that the C compiler understands volatile""... $ac_c" 1>&6
1473 echo "configure:1474: checking that the C compiler understands volatile" >&5
1474 if eval "test \"`echo '$''{'samba_cv_volatile'+set}'`\" = set"; then
1475 echo $ac_n "(cached) $ac_c" 1>&6
1476 else
1478 cat > conftest.$ac_ext <<EOF
1479 #line 1480 "configure"
1480 #include "confdefs.h"
1481 #include <sys/types.h>
1482 int main() {
1483 volatile int i = 0
1484 ; return 0; }
1486 if { (eval echo configure:1487: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1487 rm -rf conftest*
1488 samba_cv_volatile=yes
1489 else
1490 echo "configure: failed program was:" >&5
1491 cat conftest.$ac_ext >&5
1492 rm -rf conftest*
1493 samba_cv_volatile=no
1495 rm -f conftest*
1498 echo "$ac_t""$samba_cv_volatile" 1>&6
1499 if test x"$samba_cv_volatile" = x"yes"; then
1500 cat >> confdefs.h <<\EOF
1501 #define HAVE_VOLATILE 1
1509 # Do some error checking and defaulting for the host and target type.
1510 # The inputs are:
1511 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1513 # The rules are:
1514 # 1. You are not allowed to specify --host, --target, and nonopt at the
1515 # same time.
1516 # 2. Host defaults to nonopt.
1517 # 3. If nonopt is not specified, then host defaults to the current host,
1518 # as determined by config.guess.
1519 # 4. Target and build default to nonopt.
1520 # 5. If nonopt is not specified, then target and build default to host.
1522 # The aliases save the names the user supplied, while $host etc.
1523 # will get canonicalized.
1524 case $host---$target---$nonopt in
1525 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1526 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1527 esac
1530 # Make sure we can run config.sub.
1531 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1532 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1535 echo $ac_n "checking host system type""... $ac_c" 1>&6
1536 echo "configure:1537: checking host system type" >&5
1538 host_alias=$host
1539 case "$host_alias" in
1540 NONE)
1541 case $nonopt in
1542 NONE)
1543 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1544 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1545 fi ;;
1546 *) host_alias=$nonopt ;;
1547 esac ;;
1548 esac
1550 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1551 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1552 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1553 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1554 echo "$ac_t""$host" 1>&6
1556 echo $ac_n "checking target system type""... $ac_c" 1>&6
1557 echo "configure:1558: checking target system type" >&5
1559 target_alias=$target
1560 case "$target_alias" in
1561 NONE)
1562 case $nonopt in
1563 NONE) target_alias=$host_alias ;;
1564 *) target_alias=$nonopt ;;
1565 esac ;;
1566 esac
1568 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1569 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1570 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1571 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1572 echo "$ac_t""$target" 1>&6
1574 echo $ac_n "checking build system type""... $ac_c" 1>&6
1575 echo "configure:1576: checking build system type" >&5
1577 build_alias=$build
1578 case "$build_alias" in
1579 NONE)
1580 case $nonopt in
1581 NONE) build_alias=$host_alias ;;
1582 *) build_alias=$nonopt ;;
1583 esac ;;
1584 esac
1586 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1587 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1588 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1589 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1590 echo "$ac_t""$build" 1>&6
1592 test "$host_alias" != "$target_alias" &&
1593 test "$program_prefix$program_suffix$program_transform_name" = \
1594 NONENONEs,x,x, &&
1595 program_prefix=${target_alias}-
1598 case "$host_os" in
1599 *irix*) cat >> confdefs.h <<\EOF
1600 #include <standards.h>
1604 esac
1608 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
1609 echo "configure:1610: checking config.cache system type" >&5
1610 if { test x"${ac_cv_host_system_type+set}" = x"set" &&
1611 test x"$ac_cv_host_system_type" != x"$host"; } ||
1612 { test x"${ac_cv_build_system_type+set}" = x"set" &&
1613 test x"$ac_cv_build_system_type" != x"$build"; } ||
1614 { test x"${ac_cv_target_system_type+set}" = x"set" &&
1615 test x"$ac_cv_target_system_type" != x"$target"; }; then
1616 echo "$ac_t""different" 1>&6
1617 { echo "configure: error: "you must remove config.cache and restart configure"" 1>&2; exit 1; }
1618 else
1619 echo "$ac_t""same" 1>&6
1621 ac_cv_host_system_type="$host"
1622 ac_cv_build_system_type="$build"
1623 ac_cv_target_system_type="$target"
1627 # Config CPPFLAG settings for strange OS's that must be set
1628 # before other tests.
1630 case "$host_os" in
1631 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1632 *hpux*)
1633 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1634 echo "configure:1635: checking whether ${CC-cc} accepts -Ae" >&5
1635 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1636 echo $ac_n "(cached) $ac_c" 1>&6
1637 else
1638 echo 'void f(){}' > conftest.c
1639 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1640 ac_cv_prog_cc_Ae=yes
1641 else
1642 ac_cv_prog_cc_Ae=no
1644 rm -f conftest*
1648 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1649 if test $ac_cv_prog_cc_Ae = yes; then
1650 CPPFLAGS="$CPPFLAGS -Ae"
1653 # Defines needed for HPUX support.
1654 # HPUX has bigcrypt but (sometimes?) doesn't use it for
1655 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
1657 case `uname -r` in
1658 *9*|*10*)
1659 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE"
1660 cat >> confdefs.h <<\EOF
1661 #define USE_BOTH_CRYPT_CALLS 1
1665 *11*)
1666 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE"
1667 cat >> confdefs.h <<\EOF
1668 #define USE_BOTH_CRYPT_CALLS 1
1672 esac
1675 # AIX4.x doesn't even admit to having large
1676 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1678 *aix4*)
1679 echo "$ac_t""enabling large file support" 1>&6
1680 CPPFLAGS="$CPPFLAGS -D_LARGE_FILES"
1683 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
1684 # to the existance of large files..
1685 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
1686 # recommendations on large file support, however it makes the
1687 # compile work using gcc 2.7 and 2.8, whereas using the Sun
1688 # recommendation makes the compile fail on gcc2.7. JRA.
1690 *solaris*)
1691 case `uname -r` in
1692 5.6*|5.7*)
1693 echo "$ac_t""enabling large file support" 1>&6
1694 if test "$ac_cv_prog_gcc" = yes; then
1695 ${CC-cc} -v >conftest.c 2>&1
1696 ac_cv_gcc_compiler_version_number=`grep 'gcc version' conftest.c`
1697 rm -fr conftest.c
1698 case "$ac_cv_gcc_compiler_version_number" in
1699 *"gcc version 2.6"*|*"gcc version 2.7"*)
1700 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
1703 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1705 esac
1706 else
1707 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1710 esac
1713 # Tests needed for SINIX large file support.
1715 *sysv4*)
1716 if test $host = mips-sni-sysv4 ; then
1717 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1718 echo "configure:1719: checking for LFS support" >&5
1719 old_CPPFLAGS="$CPPFLAGS"
1720 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1721 if test "$cross_compiling" = yes; then
1722 SINIX_LFS_SUPPORT=cross
1723 else
1724 cat > conftest.$ac_ext <<EOF
1725 #line 1726 "configure"
1726 #include "confdefs.h"
1728 #include <unistd.h>
1729 main () {
1730 #if _LFS64_LARGEFILE == 1
1731 exit(0);
1732 #else
1733 exit(1);
1734 #endif
1737 if { (eval echo configure:1738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1738 then
1739 SINIX_LFS_SUPPORT=yes
1740 else
1741 echo "configure: failed program was:" >&5
1742 cat conftest.$ac_ext >&5
1743 rm -fr conftest*
1744 SINIX_LFS_SUPPORT=no
1746 rm -fr conftest*
1749 CPPFLAGS="$old_CPPFLAGS"
1750 if test x$SINIX_LFS_SUPPORT = xyes ; then
1751 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1752 CFLAGS="`getconf LFS64_CFLAGS` $CFLAGS"
1753 LDFLAGS="`getconf LFS64_LDFLAGS` $LDFLAGS"
1754 LIBS="`getconf LFS64_LIBS` $LIBS"
1756 echo "$ac_t""$SINIX_LFS_SUPPORT" 1>&6
1761 # Tests needed for glibc 2.1 large file support.
1763 *linux*)
1764 echo "$ac_t""disabling large file support for glibc2.1 on Linux" 1>&6
1766 *hurd*)
1767 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1768 echo "configure:1769: checking for LFS support" >&5
1769 old_CPPFLAGS="$CPPFLAGS"
1770 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1771 if test "$cross_compiling" = yes; then
1772 GLIBC_LFS_SUPPORT=cross
1773 else
1774 cat > conftest.$ac_ext <<EOF
1775 #line 1776 "configure"
1776 #include "confdefs.h"
1778 #include <unistd.h>
1779 main () {
1780 #if _LFS64_LARGEFILE == 1
1781 exit(0);
1782 #else
1783 exit(1);
1784 #endif
1787 if { (eval echo configure:1788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1788 then
1789 GLIBC_LFS_SUPPORT=yes
1790 else
1791 echo "configure: failed program was:" >&5
1792 cat conftest.$ac_ext >&5
1793 rm -fr conftest*
1794 GLIBC_LFS_SUPPORT=no
1796 rm -fr conftest*
1799 CPPFLAGS="$old_CPPFLAGS"
1800 if test x$GLIBC_LFS_SUPPORT = xyes ; then
1801 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1803 echo "$ac_t""$GLIBC_LFS_SUPPORT" 1>&6
1806 esac
1808 echo $ac_n "checking for inline""... $ac_c" 1>&6
1809 echo "configure:1810: checking for inline" >&5
1810 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1811 echo $ac_n "(cached) $ac_c" 1>&6
1812 else
1813 ac_cv_c_inline=no
1814 for ac_kw in inline __inline__ __inline; do
1815 cat > conftest.$ac_ext <<EOF
1816 #line 1817 "configure"
1817 #include "confdefs.h"
1819 int main() {
1820 } $ac_kw foo() {
1821 ; return 0; }
1823 if { (eval echo configure:1824: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1824 rm -rf conftest*
1825 ac_cv_c_inline=$ac_kw; break
1826 else
1827 echo "configure: failed program was:" >&5
1828 cat conftest.$ac_ext >&5
1830 rm -f conftest*
1831 done
1835 echo "$ac_t""$ac_cv_c_inline" 1>&6
1836 case "$ac_cv_c_inline" in
1837 inline | yes) ;;
1838 no) cat >> confdefs.h <<\EOF
1839 #define inline
1842 *) cat >> confdefs.h <<EOF
1843 #define inline $ac_cv_c_inline
1846 esac
1848 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1849 echo "configure:1850: checking how to run the C preprocessor" >&5
1850 # On Suns, sometimes $CPP names a directory.
1851 if test -n "$CPP" && test -d "$CPP"; then
1852 CPP=
1854 if test -z "$CPP"; then
1855 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1856 echo $ac_n "(cached) $ac_c" 1>&6
1857 else
1858 # This must be in double quotes, not single quotes, because CPP may get
1859 # substituted into the Makefile and "${CC-cc}" will confuse make.
1860 CPP="${CC-cc} -E"
1861 # On the NeXT, cc -E runs the code through the compiler's parser,
1862 # not just through cpp.
1863 cat > conftest.$ac_ext <<EOF
1864 #line 1865 "configure"
1865 #include "confdefs.h"
1866 #include <assert.h>
1867 Syntax Error
1869 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1870 { (eval echo configure:1871: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1871 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1872 if test -z "$ac_err"; then
1874 else
1875 echo "$ac_err" >&5
1876 echo "configure: failed program was:" >&5
1877 cat conftest.$ac_ext >&5
1878 rm -rf conftest*
1879 CPP="${CC-cc} -E -traditional-cpp"
1880 cat > conftest.$ac_ext <<EOF
1881 #line 1882 "configure"
1882 #include "confdefs.h"
1883 #include <assert.h>
1884 Syntax Error
1886 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1887 { (eval echo configure:1888: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1888 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1889 if test -z "$ac_err"; then
1891 else
1892 echo "$ac_err" >&5
1893 echo "configure: failed program was:" >&5
1894 cat conftest.$ac_ext >&5
1895 rm -rf conftest*
1896 CPP="${CC-cc} -nologo -E"
1897 cat > conftest.$ac_ext <<EOF
1898 #line 1899 "configure"
1899 #include "confdefs.h"
1900 #include <assert.h>
1901 Syntax Error
1903 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1904 { (eval echo configure:1905: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1905 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1906 if test -z "$ac_err"; then
1908 else
1909 echo "$ac_err" >&5
1910 echo "configure: failed program was:" >&5
1911 cat conftest.$ac_ext >&5
1912 rm -rf conftest*
1913 CPP=/lib/cpp
1915 rm -f conftest*
1917 rm -f conftest*
1919 rm -f conftest*
1920 ac_cv_prog_CPP="$CPP"
1922 CPP="$ac_cv_prog_CPP"
1923 else
1924 ac_cv_prog_CPP="$CPP"
1926 echo "$ac_t""$CPP" 1>&6
1928 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1929 echo "configure:1930: checking for ANSI C header files" >&5
1930 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1931 echo $ac_n "(cached) $ac_c" 1>&6
1932 else
1933 cat > conftest.$ac_ext <<EOF
1934 #line 1935 "configure"
1935 #include "confdefs.h"
1936 #include <stdlib.h>
1937 #include <stdarg.h>
1938 #include <string.h>
1939 #include <float.h>
1941 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1942 { (eval echo configure:1943: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1943 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1944 if test -z "$ac_err"; then
1945 rm -rf conftest*
1946 ac_cv_header_stdc=yes
1947 else
1948 echo "$ac_err" >&5
1949 echo "configure: failed program was:" >&5
1950 cat conftest.$ac_ext >&5
1951 rm -rf conftest*
1952 ac_cv_header_stdc=no
1954 rm -f conftest*
1956 if test $ac_cv_header_stdc = yes; then
1957 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1958 cat > conftest.$ac_ext <<EOF
1959 #line 1960 "configure"
1960 #include "confdefs.h"
1961 #include <string.h>
1963 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1964 egrep "memchr" >/dev/null 2>&1; then
1966 else
1967 rm -rf conftest*
1968 ac_cv_header_stdc=no
1970 rm -f conftest*
1974 if test $ac_cv_header_stdc = yes; then
1975 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1976 cat > conftest.$ac_ext <<EOF
1977 #line 1978 "configure"
1978 #include "confdefs.h"
1979 #include <stdlib.h>
1981 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1982 egrep "free" >/dev/null 2>&1; then
1984 else
1985 rm -rf conftest*
1986 ac_cv_header_stdc=no
1988 rm -f conftest*
1992 if test $ac_cv_header_stdc = yes; then
1993 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1994 if test "$cross_compiling" = yes; then
1996 else
1997 cat > conftest.$ac_ext <<EOF
1998 #line 1999 "configure"
1999 #include "confdefs.h"
2000 #include <ctype.h>
2001 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2002 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2003 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2004 int main () { int i; for (i = 0; i < 256; i++)
2005 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2006 exit (0); }
2009 if { (eval echo configure:2010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2010 then
2012 else
2013 echo "configure: failed program was:" >&5
2014 cat conftest.$ac_ext >&5
2015 rm -fr conftest*
2016 ac_cv_header_stdc=no
2018 rm -fr conftest*
2024 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2025 if test $ac_cv_header_stdc = yes; then
2026 cat >> confdefs.h <<\EOF
2027 #define STDC_HEADERS 1
2032 ac_header_dirent=no
2033 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
2035 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2036 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
2037 echo "configure:2038: checking for $ac_hdr that defines DIR" >&5
2038 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
2039 echo $ac_n "(cached) $ac_c" 1>&6
2040 else
2041 cat > conftest.$ac_ext <<EOF
2042 #line 2043 "configure"
2043 #include "confdefs.h"
2044 #include <sys/types.h>
2045 #include <$ac_hdr>
2046 int main() {
2047 DIR *dirp = 0;
2048 ; return 0; }
2050 if { (eval echo configure:2051: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2051 rm -rf conftest*
2052 eval "ac_cv_header_dirent_$ac_safe=yes"
2053 else
2054 echo "configure: failed program was:" >&5
2055 cat conftest.$ac_ext >&5
2056 rm -rf conftest*
2057 eval "ac_cv_header_dirent_$ac_safe=no"
2059 rm -f conftest*
2061 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2062 echo "$ac_t""yes" 1>&6
2063 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2064 cat >> confdefs.h <<EOF
2065 #define $ac_tr_hdr 1
2067 ac_header_dirent=$ac_hdr; break
2068 else
2069 echo "$ac_t""no" 1>&6
2071 done
2072 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2073 if test $ac_header_dirent = dirent.h; then
2074 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2075 echo "configure:2076: checking for opendir in -ldir" >&5
2076 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2077 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2078 echo $ac_n "(cached) $ac_c" 1>&6
2079 else
2080 ac_save_LIBS="$LIBS"
2081 LIBS="-ldir $LIBS"
2082 cat > conftest.$ac_ext <<EOF
2083 #line 2084 "configure"
2084 #include "confdefs.h"
2085 /* Override any gcc2 internal prototype to avoid an error. */
2086 /* We use char because int might match the return type of a gcc2
2087 builtin and then its argument prototype would still apply. */
2088 char opendir();
2090 int main() {
2091 opendir()
2092 ; return 0; }
2094 if { (eval echo configure:2095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2095 rm -rf conftest*
2096 eval "ac_cv_lib_$ac_lib_var=yes"
2097 else
2098 echo "configure: failed program was:" >&5
2099 cat conftest.$ac_ext >&5
2100 rm -rf conftest*
2101 eval "ac_cv_lib_$ac_lib_var=no"
2103 rm -f conftest*
2104 LIBS="$ac_save_LIBS"
2107 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2108 echo "$ac_t""yes" 1>&6
2109 LIBS="$LIBS -ldir"
2110 else
2111 echo "$ac_t""no" 1>&6
2114 else
2115 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2116 echo "configure:2117: checking for opendir in -lx" >&5
2117 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2118 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2119 echo $ac_n "(cached) $ac_c" 1>&6
2120 else
2121 ac_save_LIBS="$LIBS"
2122 LIBS="-lx $LIBS"
2123 cat > conftest.$ac_ext <<EOF
2124 #line 2125 "configure"
2125 #include "confdefs.h"
2126 /* Override any gcc2 internal prototype to avoid an error. */
2127 /* We use char because int might match the return type of a gcc2
2128 builtin and then its argument prototype would still apply. */
2129 char opendir();
2131 int main() {
2132 opendir()
2133 ; return 0; }
2135 if { (eval echo configure:2136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2136 rm -rf conftest*
2137 eval "ac_cv_lib_$ac_lib_var=yes"
2138 else
2139 echo "configure: failed program was:" >&5
2140 cat conftest.$ac_ext >&5
2141 rm -rf conftest*
2142 eval "ac_cv_lib_$ac_lib_var=no"
2144 rm -f conftest*
2145 LIBS="$ac_save_LIBS"
2148 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2149 echo "$ac_t""yes" 1>&6
2150 LIBS="$LIBS -lx"
2151 else
2152 echo "$ac_t""no" 1>&6
2157 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2158 echo "configure:2159: checking whether time.h and sys/time.h may both be included" >&5
2159 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2160 echo $ac_n "(cached) $ac_c" 1>&6
2161 else
2162 cat > conftest.$ac_ext <<EOF
2163 #line 2164 "configure"
2164 #include "confdefs.h"
2165 #include <sys/types.h>
2166 #include <sys/time.h>
2167 #include <time.h>
2168 int main() {
2169 struct tm *tp;
2170 ; return 0; }
2172 if { (eval echo configure:2173: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2173 rm -rf conftest*
2174 ac_cv_header_time=yes
2175 else
2176 echo "configure: failed program was:" >&5
2177 cat conftest.$ac_ext >&5
2178 rm -rf conftest*
2179 ac_cv_header_time=no
2181 rm -f conftest*
2184 echo "$ac_t""$ac_cv_header_time" 1>&6
2185 if test $ac_cv_header_time = yes; then
2186 cat >> confdefs.h <<\EOF
2187 #define TIME_WITH_SYS_TIME 1
2192 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2193 echo "configure:2194: checking for sys/wait.h that is POSIX.1 compatible" >&5
2194 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2195 echo $ac_n "(cached) $ac_c" 1>&6
2196 else
2197 cat > conftest.$ac_ext <<EOF
2198 #line 2199 "configure"
2199 #include "confdefs.h"
2200 #include <sys/types.h>
2201 #include <sys/wait.h>
2202 #ifndef WEXITSTATUS
2203 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2204 #endif
2205 #ifndef WIFEXITED
2206 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2207 #endif
2208 int main() {
2209 int s;
2210 wait (&s);
2211 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2212 ; return 0; }
2214 if { (eval echo configure:2215: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2215 rm -rf conftest*
2216 ac_cv_header_sys_wait_h=yes
2217 else
2218 echo "configure: failed program was:" >&5
2219 cat conftest.$ac_ext >&5
2220 rm -rf conftest*
2221 ac_cv_header_sys_wait_h=no
2223 rm -f conftest*
2226 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2227 if test $ac_cv_header_sys_wait_h = yes; then
2228 cat >> confdefs.h <<\EOF
2229 #define HAVE_SYS_WAIT_H 1
2234 for ac_hdr in arpa/inet.h sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h
2236 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2237 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2238 echo "configure:2239: checking for $ac_hdr" >&5
2239 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2240 echo $ac_n "(cached) $ac_c" 1>&6
2241 else
2242 cat > conftest.$ac_ext <<EOF
2243 #line 2244 "configure"
2244 #include "confdefs.h"
2245 #include <$ac_hdr>
2247 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2248 { (eval echo configure:2249: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2249 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2250 if test -z "$ac_err"; then
2251 rm -rf conftest*
2252 eval "ac_cv_header_$ac_safe=yes"
2253 else
2254 echo "$ac_err" >&5
2255 echo "configure: failed program was:" >&5
2256 cat conftest.$ac_ext >&5
2257 rm -rf conftest*
2258 eval "ac_cv_header_$ac_safe=no"
2260 rm -f conftest*
2262 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2263 echo "$ac_t""yes" 1>&6
2264 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2265 cat >> confdefs.h <<EOF
2266 #define $ac_tr_hdr 1
2269 else
2270 echo "$ac_t""no" 1>&6
2272 done
2274 for ac_hdr in unistd.h utime.h grp.h sys/id.h limits.h memory.h net/if.h
2276 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2277 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2278 echo "configure:2279: checking for $ac_hdr" >&5
2279 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2280 echo $ac_n "(cached) $ac_c" 1>&6
2281 else
2282 cat > conftest.$ac_ext <<EOF
2283 #line 2284 "configure"
2284 #include "confdefs.h"
2285 #include <$ac_hdr>
2287 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2288 { (eval echo configure:2289: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2289 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2290 if test -z "$ac_err"; then
2291 rm -rf conftest*
2292 eval "ac_cv_header_$ac_safe=yes"
2293 else
2294 echo "$ac_err" >&5
2295 echo "configure: failed program was:" >&5
2296 cat conftest.$ac_ext >&5
2297 rm -rf conftest*
2298 eval "ac_cv_header_$ac_safe=no"
2300 rm -f conftest*
2302 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2303 echo "$ac_t""yes" 1>&6
2304 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2305 cat >> confdefs.h <<EOF
2306 #define $ac_tr_hdr 1
2309 else
2310 echo "$ac_t""no" 1>&6
2312 done
2314 for ac_hdr in compat.h rpc/rpc.h rpcsvc/nis.h rpcsvc/yp_prot.h rpcsvc/ypclnt.h
2316 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2317 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2318 echo "configure:2319: checking for $ac_hdr" >&5
2319 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2320 echo $ac_n "(cached) $ac_c" 1>&6
2321 else
2322 cat > conftest.$ac_ext <<EOF
2323 #line 2324 "configure"
2324 #include "confdefs.h"
2325 #include <$ac_hdr>
2327 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2328 { (eval echo configure:2329: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2329 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2330 if test -z "$ac_err"; then
2331 rm -rf conftest*
2332 eval "ac_cv_header_$ac_safe=yes"
2333 else
2334 echo "$ac_err" >&5
2335 echo "configure: failed program was:" >&5
2336 cat conftest.$ac_ext >&5
2337 rm -rf conftest*
2338 eval "ac_cv_header_$ac_safe=no"
2340 rm -f conftest*
2342 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2343 echo "$ac_t""yes" 1>&6
2344 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2345 cat >> confdefs.h <<EOF
2346 #define $ac_tr_hdr 1
2349 else
2350 echo "$ac_t""no" 1>&6
2352 done
2354 for ac_hdr in sys/param.h ctype.h sys/un.h sys/wait.h sys/resource.h sys/ioctl.h sys/mode.h
2356 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2357 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2358 echo "configure:2359: checking for $ac_hdr" >&5
2359 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2360 echo $ac_n "(cached) $ac_c" 1>&6
2361 else
2362 cat > conftest.$ac_ext <<EOF
2363 #line 2364 "configure"
2364 #include "confdefs.h"
2365 #include <$ac_hdr>
2367 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2368 { (eval echo configure:2369: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2369 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2370 if test -z "$ac_err"; then
2371 rm -rf conftest*
2372 eval "ac_cv_header_$ac_safe=yes"
2373 else
2374 echo "$ac_err" >&5
2375 echo "configure: failed program was:" >&5
2376 cat conftest.$ac_ext >&5
2377 rm -rf conftest*
2378 eval "ac_cv_header_$ac_safe=no"
2380 rm -f conftest*
2382 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2383 echo "$ac_t""yes" 1>&6
2384 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2385 cat >> confdefs.h <<EOF
2386 #define $ac_tr_hdr 1
2389 else
2390 echo "$ac_t""no" 1>&6
2392 done
2394 for ac_hdr in sys/mman.h sys/filio.h sys/priv.h string.h strings.h stdlib.h sys/socket.h
2396 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2397 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2398 echo "configure:2399: checking for $ac_hdr" >&5
2399 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2400 echo $ac_n "(cached) $ac_c" 1>&6
2401 else
2402 cat > conftest.$ac_ext <<EOF
2403 #line 2404 "configure"
2404 #include "confdefs.h"
2405 #include <$ac_hdr>
2407 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2408 { (eval echo configure:2409: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2409 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2410 if test -z "$ac_err"; then
2411 rm -rf conftest*
2412 eval "ac_cv_header_$ac_safe=yes"
2413 else
2414 echo "$ac_err" >&5
2415 echo "configure: failed program was:" >&5
2416 cat conftest.$ac_ext >&5
2417 rm -rf conftest*
2418 eval "ac_cv_header_$ac_safe=no"
2420 rm -f conftest*
2422 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2423 echo "$ac_t""yes" 1>&6
2424 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2425 cat >> confdefs.h <<EOF
2426 #define $ac_tr_hdr 1
2429 else
2430 echo "$ac_t""no" 1>&6
2432 done
2434 for ac_hdr in sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h termio.h
2436 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2437 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2438 echo "configure:2439: checking for $ac_hdr" >&5
2439 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2440 echo $ac_n "(cached) $ac_c" 1>&6
2441 else
2442 cat > conftest.$ac_ext <<EOF
2443 #line 2444 "configure"
2444 #include "confdefs.h"
2445 #include <$ac_hdr>
2447 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2448 { (eval echo configure:2449: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2449 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2450 if test -z "$ac_err"; then
2451 rm -rf conftest*
2452 eval "ac_cv_header_$ac_safe=yes"
2453 else
2454 echo "$ac_err" >&5
2455 echo "configure: failed program was:" >&5
2456 cat conftest.$ac_ext >&5
2457 rm -rf conftest*
2458 eval "ac_cv_header_$ac_safe=no"
2460 rm -f conftest*
2462 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2463 echo "$ac_t""yes" 1>&6
2464 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2465 cat >> confdefs.h <<EOF
2466 #define $ac_tr_hdr 1
2469 else
2470 echo "$ac_t""no" 1>&6
2472 done
2474 for ac_hdr in sys/termio.h sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h
2476 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2477 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2478 echo "configure:2479: checking for $ac_hdr" >&5
2479 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2480 echo $ac_n "(cached) $ac_c" 1>&6
2481 else
2482 cat > conftest.$ac_ext <<EOF
2483 #line 2484 "configure"
2484 #include "confdefs.h"
2485 #include <$ac_hdr>
2487 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2488 { (eval echo configure:2489: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2489 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2490 if test -z "$ac_err"; then
2491 rm -rf conftest*
2492 eval "ac_cv_header_$ac_safe=yes"
2493 else
2494 echo "$ac_err" >&5
2495 echo "configure: failed program was:" >&5
2496 cat conftest.$ac_ext >&5
2497 rm -rf conftest*
2498 eval "ac_cv_header_$ac_safe=no"
2500 rm -f conftest*
2502 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2503 echo "$ac_t""yes" 1>&6
2504 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2505 cat >> confdefs.h <<EOF
2506 #define $ac_tr_hdr 1
2509 else
2510 echo "$ac_t""no" 1>&6
2512 done
2515 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
2516 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
2518 case "$host_os" in
2519 *hpux*)
2520 cat > conftest.$ac_ext <<EOF
2521 #line 2522 "configure"
2522 #include "confdefs.h"
2523 #include <shadow.h>
2524 int main() {
2525 struct spwd testme
2526 ; return 0; }
2528 if { (eval echo configure:2529: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2529 rm -rf conftest*
2530 ac_cv_header_shadow_h=yes
2531 else
2532 echo "configure: failed program was:" >&5
2533 cat conftest.$ac_ext >&5
2534 rm -rf conftest*
2535 ac_cv_header_shadow_h=no
2537 rm -f conftest*
2538 if test x"$ac_cv_header_shadow_h" = x"yes"; then
2539 cat >> confdefs.h <<\EOF
2540 #define HAVE_SHADOW_H 1
2545 esac
2546 for ac_hdr in shadow.h netinet/ip.h netinet/tcp.h netinet/in_systm.h netinet/in_ip.h
2548 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2549 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2550 echo "configure:2551: checking for $ac_hdr" >&5
2551 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2552 echo $ac_n "(cached) $ac_c" 1>&6
2553 else
2554 cat > conftest.$ac_ext <<EOF
2555 #line 2556 "configure"
2556 #include "confdefs.h"
2557 #include <$ac_hdr>
2559 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2560 { (eval echo configure:2561: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2561 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2562 if test -z "$ac_err"; then
2563 rm -rf conftest*
2564 eval "ac_cv_header_$ac_safe=yes"
2565 else
2566 echo "$ac_err" >&5
2567 echo "configure: failed program was:" >&5
2568 cat conftest.$ac_ext >&5
2569 rm -rf conftest*
2570 eval "ac_cv_header_$ac_safe=no"
2572 rm -f conftest*
2574 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2575 echo "$ac_t""yes" 1>&6
2576 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2577 cat >> confdefs.h <<EOF
2578 #define $ac_tr_hdr 1
2581 else
2582 echo "$ac_t""no" 1>&6
2584 done
2586 for ac_hdr in nss.h sys/security.h security/pam_appl.h
2588 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2589 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2590 echo "configure:2591: checking for $ac_hdr" >&5
2591 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2592 echo $ac_n "(cached) $ac_c" 1>&6
2593 else
2594 cat > conftest.$ac_ext <<EOF
2595 #line 2596 "configure"
2596 #include "confdefs.h"
2597 #include <$ac_hdr>
2599 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2600 { (eval echo configure:2601: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2601 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2602 if test -z "$ac_err"; then
2603 rm -rf conftest*
2604 eval "ac_cv_header_$ac_safe=yes"
2605 else
2606 echo "$ac_err" >&5
2607 echo "configure: failed program was:" >&5
2608 cat conftest.$ac_ext >&5
2609 rm -rf conftest*
2610 eval "ac_cv_header_$ac_safe=no"
2612 rm -f conftest*
2614 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2615 echo "$ac_t""yes" 1>&6
2616 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2617 cat >> confdefs.h <<EOF
2618 #define $ac_tr_hdr 1
2621 else
2622 echo "$ac_t""no" 1>&6
2624 done
2626 for ac_hdr in stropts.h poll.h readline.h history.h readline/readline.h
2628 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2629 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2630 echo "configure:2631: checking for $ac_hdr" >&5
2631 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2632 echo $ac_n "(cached) $ac_c" 1>&6
2633 else
2634 cat > conftest.$ac_ext <<EOF
2635 #line 2636 "configure"
2636 #include "confdefs.h"
2637 #include <$ac_hdr>
2639 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2640 { (eval echo configure:2641: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2641 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2642 if test -z "$ac_err"; then
2643 rm -rf conftest*
2644 eval "ac_cv_header_$ac_safe=yes"
2645 else
2646 echo "$ac_err" >&5
2647 echo "configure: failed program was:" >&5
2648 cat conftest.$ac_ext >&5
2649 rm -rf conftest*
2650 eval "ac_cv_header_$ac_safe=no"
2652 rm -f conftest*
2654 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2655 echo "$ac_t""yes" 1>&6
2656 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2657 cat >> confdefs.h <<EOF
2658 #define $ac_tr_hdr 1
2661 else
2662 echo "$ac_t""no" 1>&6
2664 done
2666 for ac_hdr in readline/history.h sys/capability.h syscall.h sys/syscall.h
2668 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2669 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2670 echo "configure:2671: checking for $ac_hdr" >&5
2671 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2672 echo $ac_n "(cached) $ac_c" 1>&6
2673 else
2674 cat > conftest.$ac_ext <<EOF
2675 #line 2676 "configure"
2676 #include "confdefs.h"
2677 #include <$ac_hdr>
2679 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2680 { (eval echo configure:2681: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2681 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2682 if test -z "$ac_err"; then
2683 rm -rf conftest*
2684 eval "ac_cv_header_$ac_safe=yes"
2685 else
2686 echo "$ac_err" >&5
2687 echo "configure: failed program was:" >&5
2688 cat conftest.$ac_ext >&5
2689 rm -rf conftest*
2690 eval "ac_cv_header_$ac_safe=no"
2692 rm -f conftest*
2694 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2695 echo "$ac_t""yes" 1>&6
2696 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2697 cat >> confdefs.h <<EOF
2698 #define $ac_tr_hdr 1
2701 else
2702 echo "$ac_t""no" 1>&6
2704 done
2706 for ac_hdr in sys/acl.h sys/cdefs.h glob.h
2708 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2709 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2710 echo "configure:2711: checking for $ac_hdr" >&5
2711 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2712 echo $ac_n "(cached) $ac_c" 1>&6
2713 else
2714 cat > conftest.$ac_ext <<EOF
2715 #line 2716 "configure"
2716 #include "confdefs.h"
2717 #include <$ac_hdr>
2719 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2720 { (eval echo configure:2721: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2721 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2722 if test -z "$ac_err"; then
2723 rm -rf conftest*
2724 eval "ac_cv_header_$ac_safe=yes"
2725 else
2726 echo "$ac_err" >&5
2727 echo "configure: failed program was:" >&5
2728 cat conftest.$ac_ext >&5
2729 rm -rf conftest*
2730 eval "ac_cv_header_$ac_safe=no"
2732 rm -f conftest*
2734 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2735 echo "$ac_t""yes" 1>&6
2736 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2737 cat >> confdefs.h <<EOF
2738 #define $ac_tr_hdr 1
2741 else
2742 echo "$ac_t""no" 1>&6
2744 done
2747 # For experimental utmp support (lastlog on some BSD-like systems)
2748 for ac_hdr in utmp.h utmpx.h lastlog.h
2750 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2751 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2752 echo "configure:2753: checking for $ac_hdr" >&5
2753 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2754 echo $ac_n "(cached) $ac_c" 1>&6
2755 else
2756 cat > conftest.$ac_ext <<EOF
2757 #line 2758 "configure"
2758 #include "confdefs.h"
2759 #include <$ac_hdr>
2761 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2762 { (eval echo configure:2763: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2763 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2764 if test -z "$ac_err"; then
2765 rm -rf conftest*
2766 eval "ac_cv_header_$ac_safe=yes"
2767 else
2768 echo "$ac_err" >&5
2769 echo "configure: failed program was:" >&5
2770 cat conftest.$ac_ext >&5
2771 rm -rf conftest*
2772 eval "ac_cv_header_$ac_safe=no"
2774 rm -f conftest*
2776 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2777 echo "$ac_t""yes" 1>&6
2778 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2779 cat >> confdefs.h <<EOF
2780 #define $ac_tr_hdr 1
2783 else
2784 echo "$ac_t""no" 1>&6
2786 done
2789 # For quotas on Veritas VxFS filesystems
2790 for ac_hdr in sys/fs/vx_quota.h
2792 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2793 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2794 echo "configure:2795: checking for $ac_hdr" >&5
2795 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2796 echo $ac_n "(cached) $ac_c" 1>&6
2797 else
2798 cat > conftest.$ac_ext <<EOF
2799 #line 2800 "configure"
2800 #include "confdefs.h"
2801 #include <$ac_hdr>
2803 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2804 { (eval echo configure:2805: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2805 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2806 if test -z "$ac_err"; then
2807 rm -rf conftest*
2808 eval "ac_cv_header_$ac_safe=yes"
2809 else
2810 echo "$ac_err" >&5
2811 echo "configure: failed program was:" >&5
2812 cat conftest.$ac_ext >&5
2813 rm -rf conftest*
2814 eval "ac_cv_header_$ac_safe=no"
2816 rm -f conftest*
2818 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2819 echo "$ac_t""yes" 1>&6
2820 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2821 cat >> confdefs.h <<EOF
2822 #define $ac_tr_hdr 1
2825 else
2826 echo "$ac_t""no" 1>&6
2828 done
2831 echo $ac_n "checking size of int""... $ac_c" 1>&6
2832 echo "configure:2833: checking size of int" >&5
2833 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2834 echo $ac_n "(cached) $ac_c" 1>&6
2835 else
2836 if test "$cross_compiling" = yes; then
2837 ac_cv_sizeof_int=cross
2838 else
2839 cat > conftest.$ac_ext <<EOF
2840 #line 2841 "configure"
2841 #include "confdefs.h"
2842 #include <stdio.h>
2843 main()
2845 FILE *f=fopen("conftestval", "w");
2846 if (!f) exit(1);
2847 fprintf(f, "%d\n", sizeof(int));
2848 exit(0);
2851 if { (eval echo configure:2852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2852 then
2853 ac_cv_sizeof_int=`cat conftestval`
2854 else
2855 echo "configure: failed program was:" >&5
2856 cat conftest.$ac_ext >&5
2857 rm -fr conftest*
2858 ac_cv_sizeof_int=0
2860 rm -fr conftest*
2864 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2865 cat >> confdefs.h <<EOF
2866 #define SIZEOF_INT $ac_cv_sizeof_int
2870 echo $ac_n "checking size of long""... $ac_c" 1>&6
2871 echo "configure:2872: checking size of long" >&5
2872 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2873 echo $ac_n "(cached) $ac_c" 1>&6
2874 else
2875 if test "$cross_compiling" = yes; then
2876 ac_cv_sizeof_long=cross
2877 else
2878 cat > conftest.$ac_ext <<EOF
2879 #line 2880 "configure"
2880 #include "confdefs.h"
2881 #include <stdio.h>
2882 main()
2884 FILE *f=fopen("conftestval", "w");
2885 if (!f) exit(1);
2886 fprintf(f, "%d\n", sizeof(long));
2887 exit(0);
2890 if { (eval echo configure:2891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2891 then
2892 ac_cv_sizeof_long=`cat conftestval`
2893 else
2894 echo "configure: failed program was:" >&5
2895 cat conftest.$ac_ext >&5
2896 rm -fr conftest*
2897 ac_cv_sizeof_long=0
2899 rm -fr conftest*
2903 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2904 cat >> confdefs.h <<EOF
2905 #define SIZEOF_LONG $ac_cv_sizeof_long
2909 echo $ac_n "checking size of short""... $ac_c" 1>&6
2910 echo "configure:2911: checking size of short" >&5
2911 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2912 echo $ac_n "(cached) $ac_c" 1>&6
2913 else
2914 if test "$cross_compiling" = yes; then
2915 ac_cv_sizeof_short=cross
2916 else
2917 cat > conftest.$ac_ext <<EOF
2918 #line 2919 "configure"
2919 #include "confdefs.h"
2920 #include <stdio.h>
2921 main()
2923 FILE *f=fopen("conftestval", "w");
2924 if (!f) exit(1);
2925 fprintf(f, "%d\n", sizeof(short));
2926 exit(0);
2929 if { (eval echo configure:2930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2930 then
2931 ac_cv_sizeof_short=`cat conftestval`
2932 else
2933 echo "configure: failed program was:" >&5
2934 cat conftest.$ac_ext >&5
2935 rm -fr conftest*
2936 ac_cv_sizeof_short=0
2938 rm -fr conftest*
2942 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2943 cat >> confdefs.h <<EOF
2944 #define SIZEOF_SHORT $ac_cv_sizeof_short
2949 echo $ac_n "checking for working const""... $ac_c" 1>&6
2950 echo "configure:2951: checking for working const" >&5
2951 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2952 echo $ac_n "(cached) $ac_c" 1>&6
2953 else
2954 cat > conftest.$ac_ext <<EOF
2955 #line 2956 "configure"
2956 #include "confdefs.h"
2958 int main() {
2960 /* Ultrix mips cc rejects this. */
2961 typedef int charset[2]; const charset x;
2962 /* SunOS 4.1.1 cc rejects this. */
2963 char const *const *ccp;
2964 char **p;
2965 /* NEC SVR4.0.2 mips cc rejects this. */
2966 struct point {int x, y;};
2967 static struct point const zero = {0,0};
2968 /* AIX XL C 1.02.0.0 rejects this.
2969 It does not let you subtract one const X* pointer from another in an arm
2970 of an if-expression whose if-part is not a constant expression */
2971 const char *g = "string";
2972 ccp = &g + (g ? g-g : 0);
2973 /* HPUX 7.0 cc rejects these. */
2974 ++ccp;
2975 p = (char**) ccp;
2976 ccp = (char const *const *) p;
2977 { /* SCO 3.2v4 cc rejects this. */
2978 char *t;
2979 char const *s = 0 ? (char *) 0 : (char const *) 0;
2981 *t++ = 0;
2983 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2984 int x[] = {25, 17};
2985 const int *foo = &x[0];
2986 ++foo;
2988 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2989 typedef const int *iptr;
2990 iptr p = 0;
2991 ++p;
2993 { /* AIX XL C 1.02.0.0 rejects this saying
2994 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2995 struct s { int j; const int *ap[3]; };
2996 struct s *b; b->j = 5;
2998 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2999 const int foo = 10;
3002 ; return 0; }
3004 if { (eval echo configure:3005: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3005 rm -rf conftest*
3006 ac_cv_c_const=yes
3007 else
3008 echo "configure: failed program was:" >&5
3009 cat conftest.$ac_ext >&5
3010 rm -rf conftest*
3011 ac_cv_c_const=no
3013 rm -f conftest*
3016 echo "$ac_t""$ac_cv_c_const" 1>&6
3017 if test $ac_cv_c_const = no; then
3018 cat >> confdefs.h <<\EOF
3019 #define const
3024 echo $ac_n "checking for inline""... $ac_c" 1>&6
3025 echo "configure:3026: checking for inline" >&5
3026 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3027 echo $ac_n "(cached) $ac_c" 1>&6
3028 else
3029 ac_cv_c_inline=no
3030 for ac_kw in inline __inline__ __inline; do
3031 cat > conftest.$ac_ext <<EOF
3032 #line 3033 "configure"
3033 #include "confdefs.h"
3035 int main() {
3036 } $ac_kw foo() {
3037 ; return 0; }
3039 if { (eval echo configure:3040: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3040 rm -rf conftest*
3041 ac_cv_c_inline=$ac_kw; break
3042 else
3043 echo "configure: failed program was:" >&5
3044 cat conftest.$ac_ext >&5
3046 rm -f conftest*
3047 done
3051 echo "$ac_t""$ac_cv_c_inline" 1>&6
3052 case "$ac_cv_c_inline" in
3053 inline | yes) ;;
3054 no) cat >> confdefs.h <<\EOF
3055 #define inline
3058 *) cat >> confdefs.h <<EOF
3059 #define inline $ac_cv_c_inline
3062 esac
3064 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3065 echo "configure:3066: checking whether byte ordering is bigendian" >&5
3066 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3067 echo $ac_n "(cached) $ac_c" 1>&6
3068 else
3069 ac_cv_c_bigendian=unknown
3070 # See if sys/param.h defines the BYTE_ORDER macro.
3071 cat > conftest.$ac_ext <<EOF
3072 #line 3073 "configure"
3073 #include "confdefs.h"
3074 #include <sys/types.h>
3075 #include <sys/param.h>
3076 int main() {
3078 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3079 bogus endian macros
3080 #endif
3081 ; return 0; }
3083 if { (eval echo configure:3084: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3084 rm -rf conftest*
3085 # It does; now see whether it defined to BIG_ENDIAN or not.
3086 cat > conftest.$ac_ext <<EOF
3087 #line 3088 "configure"
3088 #include "confdefs.h"
3089 #include <sys/types.h>
3090 #include <sys/param.h>
3091 int main() {
3093 #if BYTE_ORDER != BIG_ENDIAN
3094 not big endian
3095 #endif
3096 ; return 0; }
3098 if { (eval echo configure:3099: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3099 rm -rf conftest*
3100 ac_cv_c_bigendian=yes
3101 else
3102 echo "configure: failed program was:" >&5
3103 cat conftest.$ac_ext >&5
3104 rm -rf conftest*
3105 ac_cv_c_bigendian=no
3107 rm -f conftest*
3108 else
3109 echo "configure: failed program was:" >&5
3110 cat conftest.$ac_ext >&5
3112 rm -f conftest*
3113 if test $ac_cv_c_bigendian = unknown; then
3114 if test "$cross_compiling" = yes; then
3115 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3116 else
3117 cat > conftest.$ac_ext <<EOF
3118 #line 3119 "configure"
3119 #include "confdefs.h"
3120 main () {
3121 /* Are we little or big endian? From Harbison&Steele. */
3122 union
3124 long l;
3125 char c[sizeof (long)];
3126 } u;
3127 u.l = 1;
3128 exit (u.c[sizeof (long) - 1] == 1);
3131 if { (eval echo configure:3132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3132 then
3133 ac_cv_c_bigendian=no
3134 else
3135 echo "configure: failed program was:" >&5
3136 cat conftest.$ac_ext >&5
3137 rm -fr conftest*
3138 ac_cv_c_bigendian=yes
3140 rm -fr conftest*
3146 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3147 if test $ac_cv_c_bigendian = yes; then
3148 cat >> confdefs.h <<\EOF
3149 #define WORDS_BIGENDIAN 1
3154 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
3155 echo "configure:3156: checking whether char is unsigned" >&5
3156 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
3157 echo $ac_n "(cached) $ac_c" 1>&6
3158 else
3159 if test "$GCC" = yes; then
3160 # GCC predefines this symbol on systems where it applies.
3161 cat > conftest.$ac_ext <<EOF
3162 #line 3163 "configure"
3163 #include "confdefs.h"
3164 #ifdef __CHAR_UNSIGNED__
3166 #endif
3169 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3170 egrep "yes" >/dev/null 2>&1; then
3171 rm -rf conftest*
3172 ac_cv_c_char_unsigned=yes
3173 else
3174 rm -rf conftest*
3175 ac_cv_c_char_unsigned=no
3177 rm -f conftest*
3179 else
3180 if test "$cross_compiling" = yes; then
3181 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3182 else
3183 cat > conftest.$ac_ext <<EOF
3184 #line 3185 "configure"
3185 #include "confdefs.h"
3186 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
3187 #if !defined(__STDC__) || __STDC__ != 1
3188 #define volatile
3189 #endif
3190 main() {
3191 volatile char c = 255; exit(c < 0);
3194 if { (eval echo configure:3195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3195 then
3196 ac_cv_c_char_unsigned=yes
3197 else
3198 echo "configure: failed program was:" >&5
3199 cat conftest.$ac_ext >&5
3200 rm -fr conftest*
3201 ac_cv_c_char_unsigned=no
3203 rm -fr conftest*
3209 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
3210 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
3211 cat >> confdefs.h <<\EOF
3212 #define __CHAR_UNSIGNED__ 1
3218 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3219 echo "configure:3220: checking return type of signal handlers" >&5
3220 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3221 echo $ac_n "(cached) $ac_c" 1>&6
3222 else
3223 cat > conftest.$ac_ext <<EOF
3224 #line 3225 "configure"
3225 #include "confdefs.h"
3226 #include <sys/types.h>
3227 #include <signal.h>
3228 #ifdef signal
3229 #undef signal
3230 #endif
3231 #ifdef __cplusplus
3232 extern "C" void (*signal (int, void (*)(int)))(int);
3233 #else
3234 void (*signal ()) ();
3235 #endif
3237 int main() {
3238 int i;
3239 ; return 0; }
3241 if { (eval echo configure:3242: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3242 rm -rf conftest*
3243 ac_cv_type_signal=void
3244 else
3245 echo "configure: failed program was:" >&5
3246 cat conftest.$ac_ext >&5
3247 rm -rf conftest*
3248 ac_cv_type_signal=int
3250 rm -f conftest*
3253 echo "$ac_t""$ac_cv_type_signal" 1>&6
3254 cat >> confdefs.h <<EOF
3255 #define RETSIGTYPE $ac_cv_type_signal
3259 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3260 echo "configure:3261: checking for uid_t in sys/types.h" >&5
3261 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3262 echo $ac_n "(cached) $ac_c" 1>&6
3263 else
3264 cat > conftest.$ac_ext <<EOF
3265 #line 3266 "configure"
3266 #include "confdefs.h"
3267 #include <sys/types.h>
3269 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3270 egrep "uid_t" >/dev/null 2>&1; then
3271 rm -rf conftest*
3272 ac_cv_type_uid_t=yes
3273 else
3274 rm -rf conftest*
3275 ac_cv_type_uid_t=no
3277 rm -f conftest*
3281 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3282 if test $ac_cv_type_uid_t = no; then
3283 cat >> confdefs.h <<\EOF
3284 #define uid_t int
3287 cat >> confdefs.h <<\EOF
3288 #define gid_t int
3293 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3294 echo "configure:3295: checking for mode_t" >&5
3295 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3296 echo $ac_n "(cached) $ac_c" 1>&6
3297 else
3298 cat > conftest.$ac_ext <<EOF
3299 #line 3300 "configure"
3300 #include "confdefs.h"
3301 #include <sys/types.h>
3302 #if STDC_HEADERS
3303 #include <stdlib.h>
3304 #include <stddef.h>
3305 #endif
3307 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3308 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3309 rm -rf conftest*
3310 ac_cv_type_mode_t=yes
3311 else
3312 rm -rf conftest*
3313 ac_cv_type_mode_t=no
3315 rm -f conftest*
3318 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3319 if test $ac_cv_type_mode_t = no; then
3320 cat >> confdefs.h <<\EOF
3321 #define mode_t int
3326 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3327 echo "configure:3328: checking for off_t" >&5
3328 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3329 echo $ac_n "(cached) $ac_c" 1>&6
3330 else
3331 cat > conftest.$ac_ext <<EOF
3332 #line 3333 "configure"
3333 #include "confdefs.h"
3334 #include <sys/types.h>
3335 #if STDC_HEADERS
3336 #include <stdlib.h>
3337 #include <stddef.h>
3338 #endif
3340 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3341 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3342 rm -rf conftest*
3343 ac_cv_type_off_t=yes
3344 else
3345 rm -rf conftest*
3346 ac_cv_type_off_t=no
3348 rm -f conftest*
3351 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3352 if test $ac_cv_type_off_t = no; then
3353 cat >> confdefs.h <<\EOF
3354 #define off_t long
3359 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3360 echo "configure:3361: checking for size_t" >&5
3361 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3362 echo $ac_n "(cached) $ac_c" 1>&6
3363 else
3364 cat > conftest.$ac_ext <<EOF
3365 #line 3366 "configure"
3366 #include "confdefs.h"
3367 #include <sys/types.h>
3368 #if STDC_HEADERS
3369 #include <stdlib.h>
3370 #include <stddef.h>
3371 #endif
3373 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3374 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3375 rm -rf conftest*
3376 ac_cv_type_size_t=yes
3377 else
3378 rm -rf conftest*
3379 ac_cv_type_size_t=no
3381 rm -f conftest*
3384 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3385 if test $ac_cv_type_size_t = no; then
3386 cat >> confdefs.h <<\EOF
3387 #define size_t unsigned
3392 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3393 echo "configure:3394: checking for pid_t" >&5
3394 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3395 echo $ac_n "(cached) $ac_c" 1>&6
3396 else
3397 cat > conftest.$ac_ext <<EOF
3398 #line 3399 "configure"
3399 #include "confdefs.h"
3400 #include <sys/types.h>
3401 #if STDC_HEADERS
3402 #include <stdlib.h>
3403 #include <stddef.h>
3404 #endif
3406 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3407 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3408 rm -rf conftest*
3409 ac_cv_type_pid_t=yes
3410 else
3411 rm -rf conftest*
3412 ac_cv_type_pid_t=no
3414 rm -f conftest*
3417 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3418 if test $ac_cv_type_pid_t = no; then
3419 cat >> confdefs.h <<\EOF
3420 #define pid_t int
3425 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3426 echo "configure:3427: checking for st_rdev in struct stat" >&5
3427 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3428 echo $ac_n "(cached) $ac_c" 1>&6
3429 else
3430 cat > conftest.$ac_ext <<EOF
3431 #line 3432 "configure"
3432 #include "confdefs.h"
3433 #include <sys/types.h>
3434 #include <sys/stat.h>
3435 int main() {
3436 struct stat s; s.st_rdev;
3437 ; return 0; }
3439 if { (eval echo configure:3440: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3440 rm -rf conftest*
3441 ac_cv_struct_st_rdev=yes
3442 else
3443 echo "configure: failed program was:" >&5
3444 cat conftest.$ac_ext >&5
3445 rm -rf conftest*
3446 ac_cv_struct_st_rdev=no
3448 rm -f conftest*
3451 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3452 if test $ac_cv_struct_st_rdev = yes; then
3453 cat >> confdefs.h <<\EOF
3454 #define HAVE_ST_RDEV 1
3459 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
3460 echo "configure:3461: checking for d_off in dirent" >&5
3461 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
3462 echo $ac_n "(cached) $ac_c" 1>&6
3463 else
3464 cat > conftest.$ac_ext <<EOF
3465 #line 3466 "configure"
3466 #include "confdefs.h"
3468 #include <unistd.h>
3469 #include <sys/types.h>
3470 #include <dirent.h>
3471 int main() {
3472 struct dirent d; d.d_off;
3473 ; return 0; }
3475 if { (eval echo configure:3476: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3476 rm -rf conftest*
3477 ac_cv_dirent_d_off=yes
3478 else
3479 echo "configure: failed program was:" >&5
3480 cat conftest.$ac_ext >&5
3481 rm -rf conftest*
3482 ac_cv_dirent_d_off=no
3484 rm -f conftest*
3487 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
3488 if test $ac_cv_dirent_d_off = yes; then
3489 cat >> confdefs.h <<\EOF
3490 #define HAVE_DIRENT_D_OFF 1
3495 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
3496 echo "configure:3497: checking for ino_t" >&5
3497 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
3498 echo $ac_n "(cached) $ac_c" 1>&6
3499 else
3500 cat > conftest.$ac_ext <<EOF
3501 #line 3502 "configure"
3502 #include "confdefs.h"
3503 #include <sys/types.h>
3504 #if STDC_HEADERS
3505 #include <stdlib.h>
3506 #include <stddef.h>
3507 #endif
3509 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3510 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3511 rm -rf conftest*
3512 ac_cv_type_ino_t=yes
3513 else
3514 rm -rf conftest*
3515 ac_cv_type_ino_t=no
3517 rm -f conftest*
3520 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
3521 if test $ac_cv_type_ino_t = no; then
3522 cat >> confdefs.h <<\EOF
3523 #define ino_t unsigned
3528 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3529 echo "configure:3530: checking for loff_t" >&5
3530 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
3531 echo $ac_n "(cached) $ac_c" 1>&6
3532 else
3533 cat > conftest.$ac_ext <<EOF
3534 #line 3535 "configure"
3535 #include "confdefs.h"
3536 #include <sys/types.h>
3537 #if STDC_HEADERS
3538 #include <stdlib.h>
3539 #include <stddef.h>
3540 #endif
3542 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3543 egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3544 rm -rf conftest*
3545 ac_cv_type_loff_t=yes
3546 else
3547 rm -rf conftest*
3548 ac_cv_type_loff_t=no
3550 rm -f conftest*
3553 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
3554 if test $ac_cv_type_loff_t = no; then
3555 cat >> confdefs.h <<\EOF
3556 #define loff_t off_t
3561 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
3562 echo "configure:3563: checking for offset_t" >&5
3563 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
3564 echo $ac_n "(cached) $ac_c" 1>&6
3565 else
3566 cat > conftest.$ac_ext <<EOF
3567 #line 3568 "configure"
3568 #include "confdefs.h"
3569 #include <sys/types.h>
3570 #if STDC_HEADERS
3571 #include <stdlib.h>
3572 #include <stddef.h>
3573 #endif
3575 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3576 egrep "(^|[^a-zA-Z_0-9])offset_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3577 rm -rf conftest*
3578 ac_cv_type_offset_t=yes
3579 else
3580 rm -rf conftest*
3581 ac_cv_type_offset_t=no
3583 rm -f conftest*
3586 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
3587 if test $ac_cv_type_offset_t = no; then
3588 cat >> confdefs.h <<\EOF
3589 #define offset_t loff_t
3594 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3595 echo "configure:3596: checking for ssize_t" >&5
3596 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3597 echo $ac_n "(cached) $ac_c" 1>&6
3598 else
3599 cat > conftest.$ac_ext <<EOF
3600 #line 3601 "configure"
3601 #include "confdefs.h"
3602 #include <sys/types.h>
3603 #if STDC_HEADERS
3604 #include <stdlib.h>
3605 #include <stddef.h>
3606 #endif
3608 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3609 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3610 rm -rf conftest*
3611 ac_cv_type_ssize_t=yes
3612 else
3613 rm -rf conftest*
3614 ac_cv_type_ssize_t=no
3616 rm -f conftest*
3619 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3620 if test $ac_cv_type_ssize_t = no; then
3621 cat >> confdefs.h <<\EOF
3622 #define ssize_t int
3627 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
3628 echo "configure:3629: checking for wchar_t" >&5
3629 if eval "test \"`echo '$''{'ac_cv_type_wchar_t'+set}'`\" = set"; then
3630 echo $ac_n "(cached) $ac_c" 1>&6
3631 else
3632 cat > conftest.$ac_ext <<EOF
3633 #line 3634 "configure"
3634 #include "confdefs.h"
3635 #include <sys/types.h>
3636 #if STDC_HEADERS
3637 #include <stdlib.h>
3638 #include <stddef.h>
3639 #endif
3641 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3642 egrep "(^|[^a-zA-Z_0-9])wchar_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3643 rm -rf conftest*
3644 ac_cv_type_wchar_t=yes
3645 else
3646 rm -rf conftest*
3647 ac_cv_type_wchar_t=no
3649 rm -f conftest*
3652 echo "$ac_t""$ac_cv_type_wchar_t" 1>&6
3653 if test $ac_cv_type_wchar_t = no; then
3654 cat >> confdefs.h <<\EOF
3655 #define wchar_t unsigned short
3661 # we need libcups for CUPS support...
3662 echo $ac_n "checking for httpConnect in -lcups""... $ac_c" 1>&6
3663 echo "configure:3664: checking for httpConnect in -lcups" >&5
3664 ac_lib_var=`echo cups'_'httpConnect | sed 'y%./+-%__p_%'`
3665 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3666 echo $ac_n "(cached) $ac_c" 1>&6
3667 else
3668 ac_save_LIBS="$LIBS"
3669 LIBS="-lcups $LIBS"
3670 cat > conftest.$ac_ext <<EOF
3671 #line 3672 "configure"
3672 #include "confdefs.h"
3673 /* Override any gcc2 internal prototype to avoid an error. */
3674 /* We use char because int might match the return type of a gcc2
3675 builtin and then its argument prototype would still apply. */
3676 char httpConnect();
3678 int main() {
3679 httpConnect()
3680 ; return 0; }
3682 if { (eval echo configure:3683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3683 rm -rf conftest*
3684 eval "ac_cv_lib_$ac_lib_var=yes"
3685 else
3686 echo "configure: failed program was:" >&5
3687 cat conftest.$ac_ext >&5
3688 rm -rf conftest*
3689 eval "ac_cv_lib_$ac_lib_var=no"
3691 rm -f conftest*
3692 LIBS="$ac_save_LIBS"
3695 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3696 echo "$ac_t""yes" 1>&6
3697 ac_tr_lib=HAVE_LIB`echo cups | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3698 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3699 cat >> confdefs.h <<EOF
3700 #define $ac_tr_lib 1
3703 LIBS="-lcups $LIBS"
3705 else
3706 echo "$ac_t""no" 1>&6
3710 # we need libdl for PAM and the new VFS code
3711 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3712 echo "configure:3713: checking for dlopen in -ldl" >&5
3713 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3714 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3715 echo $ac_n "(cached) $ac_c" 1>&6
3716 else
3717 ac_save_LIBS="$LIBS"
3718 LIBS="-ldl $LIBS"
3719 cat > conftest.$ac_ext <<EOF
3720 #line 3721 "configure"
3721 #include "confdefs.h"
3722 /* Override any gcc2 internal prototype to avoid an error. */
3723 /* We use char because int might match the return type of a gcc2
3724 builtin and then its argument prototype would still apply. */
3725 char dlopen();
3727 int main() {
3728 dlopen()
3729 ; return 0; }
3731 if { (eval echo configure:3732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3732 rm -rf conftest*
3733 eval "ac_cv_lib_$ac_lib_var=yes"
3734 else
3735 echo "configure: failed program was:" >&5
3736 cat conftest.$ac_ext >&5
3737 rm -rf conftest*
3738 eval "ac_cv_lib_$ac_lib_var=no"
3740 rm -f conftest*
3741 LIBS="$ac_save_LIBS"
3744 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3745 echo "$ac_t""yes" 1>&6
3746 LIBS="$LIBS -ldl";
3747 cat >> confdefs.h <<\EOF
3748 #define HAVE_LIBDL 1
3751 else
3752 echo "$ac_t""no" 1>&6
3756 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
3757 echo "configure:3758: checking for sig_atomic_t type" >&5
3758 if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+set}'`\" = set"; then
3759 echo $ac_n "(cached) $ac_c" 1>&6
3760 else
3762 cat > conftest.$ac_ext <<EOF
3763 #line 3764 "configure"
3764 #include "confdefs.h"
3766 #include <sys/types.h>
3767 #if STDC_HEADERS
3768 #include <stdlib.h>
3769 #include <stddef.h>
3770 #endif
3771 #include <signal.h>
3772 int main() {
3773 sig_atomic_t i = 0
3774 ; return 0; }
3776 if { (eval echo configure:3777: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3777 rm -rf conftest*
3778 samba_cv_sig_atomic_t=yes
3779 else
3780 echo "configure: failed program was:" >&5
3781 cat conftest.$ac_ext >&5
3782 rm -rf conftest*
3783 samba_cv_sig_atomic_t=no
3785 rm -f conftest*
3788 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
3789 if test x"$samba_cv_sig_atomic_t" = x"yes"; then
3790 cat >> confdefs.h <<\EOF
3791 #define HAVE_SIG_ATOMIC_T_TYPE 1
3796 echo $ac_n "checking for errno in errno.h""... $ac_c" 1>&6
3797 echo "configure:3798: checking for errno in errno.h" >&5
3798 if eval "test \"`echo '$''{'samba_cv_errno'+set}'`\" = set"; then
3799 echo $ac_n "(cached) $ac_c" 1>&6
3800 else
3802 cat > conftest.$ac_ext <<EOF
3803 #line 3804 "configure"
3804 #include "confdefs.h"
3805 #include <errno.h>
3806 int main() {
3807 int i = errno
3808 ; return 0; }
3810 if { (eval echo configure:3811: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3811 rm -rf conftest*
3812 samba_cv_errno=yes
3813 else
3814 echo "configure: failed program was:" >&5
3815 cat conftest.$ac_ext >&5
3816 rm -rf conftest*
3817 samba_cv_have_errno=no
3819 rm -f conftest*
3822 echo "$ac_t""$samba_cv_errno" 1>&6
3823 if test x"$samba_cv_errno" = x"yes"; then
3824 cat >> confdefs.h <<\EOF
3825 #define HAVE_ERRNO_DECL 1
3830 # stupid glibc has the functions but no declaration. grrrr.
3831 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
3832 echo "configure:3833: checking for setresuid declaration" >&5
3833 if eval "test \"`echo '$''{'samba_cv_have_setresuid_decl'+set}'`\" = set"; then
3834 echo $ac_n "(cached) $ac_c" 1>&6
3835 else
3837 cat > conftest.$ac_ext <<EOF
3838 #line 3839 "configure"
3839 #include "confdefs.h"
3840 #include <unistd.h>
3841 int main() {
3842 int i = (int)setresuid
3843 ; return 0; }
3845 if { (eval echo configure:3846: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3846 rm -rf conftest*
3847 samba_cv_have_setresuid_decl=yes
3848 else
3849 echo "configure: failed program was:" >&5
3850 cat conftest.$ac_ext >&5
3851 rm -rf conftest*
3852 samba_cv_have_setresuid_decl=no
3854 rm -f conftest*
3857 echo "$ac_t""$samba_cv_have_setresuid_decl" 1>&6
3858 if test x"$samba_cv_have_setresuid_decl" = x"yes"; then
3859 cat >> confdefs.h <<\EOF
3860 #define HAVE_SETRESUID_DECL 1
3865 # stupid glibc has the functions but no declaration. grrrr.
3866 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
3867 echo "configure:3868: checking for setresgid declaration" >&5
3868 if eval "test \"`echo '$''{'samba_cv_have_setresgid_decl'+set}'`\" = set"; then
3869 echo $ac_n "(cached) $ac_c" 1>&6
3870 else
3872 cat > conftest.$ac_ext <<EOF
3873 #line 3874 "configure"
3874 #include "confdefs.h"
3875 #include <unistd.h>
3876 int main() {
3877 int i = (int)setresgid
3878 ; return 0; }
3880 if { (eval echo configure:3881: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3881 rm -rf conftest*
3882 samba_cv_have_setresgid_decl=yes
3883 else
3884 echo "configure: failed program was:" >&5
3885 cat conftest.$ac_ext >&5
3886 rm -rf conftest*
3887 samba_cv_have_setresgid_decl=no
3889 rm -f conftest*
3892 echo "$ac_t""$samba_cv_have_setresgid_decl" 1>&6
3893 if test x"$samba_cv_have_setresgid_decl" = x"yes"; then
3894 cat >> confdefs.h <<\EOF
3895 #define HAVE_SETRESGID_DECL 1
3900 # and glibc has setresuid under linux but the function does
3901 # nothing until kernel 2.1.44! very dumb.
3902 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
3903 echo "configure:3904: checking for real setresuid" >&5
3904 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
3905 echo $ac_n "(cached) $ac_c" 1>&6
3906 else
3908 if test "$cross_compiling" = yes; then
3909 samba_cv_have_setresuid=cross
3910 else
3911 cat > conftest.$ac_ext <<EOF
3912 #line 3913 "configure"
3913 #include "confdefs.h"
3914 #include <errno.h>
3915 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
3917 if { (eval echo configure:3918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3918 then
3919 samba_cv_have_setresuid=yes
3920 else
3921 echo "configure: failed program was:" >&5
3922 cat conftest.$ac_ext >&5
3923 rm -fr conftest*
3924 samba_cv_have_setresuid=no
3926 rm -fr conftest*
3931 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
3932 if test x"$samba_cv_have_setresuid" = x"yes"; then
3933 cat >> confdefs.h <<\EOF
3934 #define HAVE_SETRESUID 1
3939 # Do the same check for setresguid...
3941 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
3942 echo "configure:3943: checking for real setresgid" >&5
3943 if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then
3944 echo $ac_n "(cached) $ac_c" 1>&6
3945 else
3947 if test "$cross_compiling" = yes; then
3948 samba_cv_have_setresgid=cross
3949 else
3950 cat > conftest.$ac_ext <<EOF
3951 #line 3952 "configure"
3952 #include "confdefs.h"
3953 #include <unistd.h>
3954 #include <errno.h>
3955 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
3957 if { (eval echo configure:3958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3958 then
3959 samba_cv_have_setresgid=yes
3960 else
3961 echo "configure: failed program was:" >&5
3962 cat conftest.$ac_ext >&5
3963 rm -fr conftest*
3964 samba_cv_have_setresgid=no
3966 rm -fr conftest*
3971 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
3972 if test x"$samba_cv_have_setresgid" = x"yes"; then
3973 cat >> confdefs.h <<\EOF
3974 #define HAVE_SETRESGID 1
3979 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
3980 echo "configure:3981: checking for 8-bit clean memcmp" >&5
3981 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
3982 echo $ac_n "(cached) $ac_c" 1>&6
3983 else
3984 if test "$cross_compiling" = yes; then
3985 ac_cv_func_memcmp_clean=no
3986 else
3987 cat > conftest.$ac_ext <<EOF
3988 #line 3989 "configure"
3989 #include "confdefs.h"
3991 main()
3993 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
3994 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
3998 if { (eval echo configure:3999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3999 then
4000 ac_cv_func_memcmp_clean=yes
4001 else
4002 echo "configure: failed program was:" >&5
4003 cat conftest.$ac_ext >&5
4004 rm -fr conftest*
4005 ac_cv_func_memcmp_clean=no
4007 rm -fr conftest*
4012 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
4013 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
4016 ###############################################
4017 # test for where we get crypt() from
4018 for ac_func in crypt
4020 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4021 echo "configure:4022: checking for $ac_func" >&5
4022 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4023 echo $ac_n "(cached) $ac_c" 1>&6
4024 else
4025 cat > conftest.$ac_ext <<EOF
4026 #line 4027 "configure"
4027 #include "confdefs.h"
4028 /* System header to define __stub macros and hopefully few prototypes,
4029 which can conflict with char $ac_func(); below. */
4030 #include <assert.h>
4031 /* Override any gcc2 internal prototype to avoid an error. */
4032 /* We use char because int might match the return type of a gcc2
4033 builtin and then its argument prototype would still apply. */
4034 char $ac_func();
4036 int main() {
4038 /* The GNU C library defines this for functions which it implements
4039 to always fail with ENOSYS. Some functions are actually named
4040 something starting with __ and the normal name is an alias. */
4041 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4042 choke me
4043 #else
4044 $ac_func();
4045 #endif
4047 ; return 0; }
4049 if { (eval echo configure:4050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4050 rm -rf conftest*
4051 eval "ac_cv_func_$ac_func=yes"
4052 else
4053 echo "configure: failed program was:" >&5
4054 cat conftest.$ac_ext >&5
4055 rm -rf conftest*
4056 eval "ac_cv_func_$ac_func=no"
4058 rm -f conftest*
4061 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4062 echo "$ac_t""yes" 1>&6
4063 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4064 cat >> confdefs.h <<EOF
4065 #define $ac_tr_func 1
4068 else
4069 echo "$ac_t""no" 1>&6
4071 done
4073 if test x"$ac_cv_func_crypt" = x"no"; then
4074 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
4075 echo "configure:4076: checking for crypt in -lcrypt" >&5
4076 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
4077 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4078 echo $ac_n "(cached) $ac_c" 1>&6
4079 else
4080 ac_save_LIBS="$LIBS"
4081 LIBS="-lcrypt $LIBS"
4082 cat > conftest.$ac_ext <<EOF
4083 #line 4084 "configure"
4084 #include "confdefs.h"
4085 /* Override any gcc2 internal prototype to avoid an error. */
4086 /* We use char because int might match the return type of a gcc2
4087 builtin and then its argument prototype would still apply. */
4088 char crypt();
4090 int main() {
4091 crypt()
4092 ; return 0; }
4094 if { (eval echo configure:4095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4095 rm -rf conftest*
4096 eval "ac_cv_lib_$ac_lib_var=yes"
4097 else
4098 echo "configure: failed program was:" >&5
4099 cat conftest.$ac_ext >&5
4100 rm -rf conftest*
4101 eval "ac_cv_lib_$ac_lib_var=no"
4103 rm -f conftest*
4104 LIBS="$ac_save_LIBS"
4107 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4108 echo "$ac_t""yes" 1>&6
4109 LIBS="$LIBS -lcrypt";
4110 cat >> confdefs.h <<\EOF
4111 #define HAVE_CRYPT 1
4114 else
4115 echo "$ac_t""no" 1>&6
4121 ###############################################
4122 # test for where we get readline() from
4123 if test "$ac_cv_header_readline_h" = "yes" ||
4124 test "$ac_cv_header_readline_readline_h" = "yes"; then
4125 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
4126 echo "configure:4127: checking for readline in -lreadline" >&5
4127 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
4128 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4129 echo $ac_n "(cached) $ac_c" 1>&6
4130 else
4131 ac_save_LIBS="$LIBS"
4132 LIBS="-lreadline $LIBS"
4133 cat > conftest.$ac_ext <<EOF
4134 #line 4135 "configure"
4135 #include "confdefs.h"
4136 /* Override any gcc2 internal prototype to avoid an error. */
4137 /* We use char because int might match the return type of a gcc2
4138 builtin and then its argument prototype would still apply. */
4139 char readline();
4141 int main() {
4142 readline()
4143 ; return 0; }
4145 if { (eval echo configure:4146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4146 rm -rf conftest*
4147 eval "ac_cv_lib_$ac_lib_var=yes"
4148 else
4149 echo "configure: failed program was:" >&5
4150 cat conftest.$ac_ext >&5
4151 rm -rf conftest*
4152 eval "ac_cv_lib_$ac_lib_var=no"
4154 rm -f conftest*
4155 LIBS="$ac_save_LIBS"
4158 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4159 echo "$ac_t""yes" 1>&6
4160 ac_tr_lib=HAVE_LIB`echo readline | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4161 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4162 cat >> confdefs.h <<EOF
4163 #define $ac_tr_lib 1
4166 LIBS="-lreadline $LIBS"
4168 else
4169 echo "$ac_t""no" 1>&6
4175 # The following test taken from the cvs sources
4176 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
4177 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
4178 # libsocket.so which has a bad implementation of gethostbyname (it
4179 # only looks in /etc/hosts), so we only look for -lsocket if we need
4180 # it.
4181 for ac_func in connect
4183 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4184 echo "configure:4185: checking for $ac_func" >&5
4185 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4186 echo $ac_n "(cached) $ac_c" 1>&6
4187 else
4188 cat > conftest.$ac_ext <<EOF
4189 #line 4190 "configure"
4190 #include "confdefs.h"
4191 /* System header to define __stub macros and hopefully few prototypes,
4192 which can conflict with char $ac_func(); below. */
4193 #include <assert.h>
4194 /* Override any gcc2 internal prototype to avoid an error. */
4195 /* We use char because int might match the return type of a gcc2
4196 builtin and then its argument prototype would still apply. */
4197 char $ac_func();
4199 int main() {
4201 /* The GNU C library defines this for functions which it implements
4202 to always fail with ENOSYS. Some functions are actually named
4203 something starting with __ and the normal name is an alias. */
4204 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4205 choke me
4206 #else
4207 $ac_func();
4208 #endif
4210 ; return 0; }
4212 if { (eval echo configure:4213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4213 rm -rf conftest*
4214 eval "ac_cv_func_$ac_func=yes"
4215 else
4216 echo "configure: failed program was:" >&5
4217 cat conftest.$ac_ext >&5
4218 rm -rf conftest*
4219 eval "ac_cv_func_$ac_func=no"
4221 rm -f conftest*
4224 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4225 echo "$ac_t""yes" 1>&6
4226 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4227 cat >> confdefs.h <<EOF
4228 #define $ac_tr_func 1
4231 else
4232 echo "$ac_t""no" 1>&6
4234 done
4236 if test x"$ac_cv_func_connect" = x"no"; then
4237 case "$LIBS" in
4238 *-lnsl*) ;;
4239 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
4240 echo "configure:4241: checking for printf in -lnsl_s" >&5
4241 ac_lib_var=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
4242 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4243 echo $ac_n "(cached) $ac_c" 1>&6
4244 else
4245 ac_save_LIBS="$LIBS"
4246 LIBS="-lnsl_s $LIBS"
4247 cat > conftest.$ac_ext <<EOF
4248 #line 4249 "configure"
4249 #include "confdefs.h"
4250 /* Override any gcc2 internal prototype to avoid an error. */
4251 /* We use char because int might match the return type of a gcc2
4252 builtin and then its argument prototype would still apply. */
4253 char printf();
4255 int main() {
4256 printf()
4257 ; return 0; }
4259 if { (eval echo configure:4260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4260 rm -rf conftest*
4261 eval "ac_cv_lib_$ac_lib_var=yes"
4262 else
4263 echo "configure: failed program was:" >&5
4264 cat conftest.$ac_ext >&5
4265 rm -rf conftest*
4266 eval "ac_cv_lib_$ac_lib_var=no"
4268 rm -f conftest*
4269 LIBS="$ac_save_LIBS"
4272 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4273 echo "$ac_t""yes" 1>&6
4274 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4275 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4276 cat >> confdefs.h <<EOF
4277 #define $ac_tr_lib 1
4280 LIBS="-lnsl_s $LIBS"
4282 else
4283 echo "$ac_t""no" 1>&6
4286 esac
4287 case "$LIBS" in
4288 *-lnsl*) ;;
4289 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
4290 echo "configure:4291: checking for printf in -lnsl" >&5
4291 ac_lib_var=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
4292 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4293 echo $ac_n "(cached) $ac_c" 1>&6
4294 else
4295 ac_save_LIBS="$LIBS"
4296 LIBS="-lnsl $LIBS"
4297 cat > conftest.$ac_ext <<EOF
4298 #line 4299 "configure"
4299 #include "confdefs.h"
4300 /* Override any gcc2 internal prototype to avoid an error. */
4301 /* We use char because int might match the return type of a gcc2
4302 builtin and then its argument prototype would still apply. */
4303 char printf();
4305 int main() {
4306 printf()
4307 ; return 0; }
4309 if { (eval echo configure:4310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4310 rm -rf conftest*
4311 eval "ac_cv_lib_$ac_lib_var=yes"
4312 else
4313 echo "configure: failed program was:" >&5
4314 cat conftest.$ac_ext >&5
4315 rm -rf conftest*
4316 eval "ac_cv_lib_$ac_lib_var=no"
4318 rm -f conftest*
4319 LIBS="$ac_save_LIBS"
4322 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4323 echo "$ac_t""yes" 1>&6
4324 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4325 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4326 cat >> confdefs.h <<EOF
4327 #define $ac_tr_lib 1
4330 LIBS="-lnsl $LIBS"
4332 else
4333 echo "$ac_t""no" 1>&6
4336 esac
4337 case "$LIBS" in
4338 *-lsocket*) ;;
4339 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
4340 echo "configure:4341: checking for connect in -lsocket" >&5
4341 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
4342 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4343 echo $ac_n "(cached) $ac_c" 1>&6
4344 else
4345 ac_save_LIBS="$LIBS"
4346 LIBS="-lsocket $LIBS"
4347 cat > conftest.$ac_ext <<EOF
4348 #line 4349 "configure"
4349 #include "confdefs.h"
4350 /* Override any gcc2 internal prototype to avoid an error. */
4351 /* We use char because int might match the return type of a gcc2
4352 builtin and then its argument prototype would still apply. */
4353 char connect();
4355 int main() {
4356 connect()
4357 ; return 0; }
4359 if { (eval echo configure:4360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4360 rm -rf conftest*
4361 eval "ac_cv_lib_$ac_lib_var=yes"
4362 else
4363 echo "configure: failed program was:" >&5
4364 cat conftest.$ac_ext >&5
4365 rm -rf conftest*
4366 eval "ac_cv_lib_$ac_lib_var=no"
4368 rm -f conftest*
4369 LIBS="$ac_save_LIBS"
4372 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4373 echo "$ac_t""yes" 1>&6
4374 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4375 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4376 cat >> confdefs.h <<EOF
4377 #define $ac_tr_lib 1
4380 LIBS="-lsocket $LIBS"
4382 else
4383 echo "$ac_t""no" 1>&6
4386 esac
4387 case "$LIBS" in
4388 *-linet*) ;;
4389 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
4390 echo "configure:4391: checking for connect in -linet" >&5
4391 ac_lib_var=`echo inet'_'connect | sed 'y%./+-%__p_%'`
4392 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4393 echo $ac_n "(cached) $ac_c" 1>&6
4394 else
4395 ac_save_LIBS="$LIBS"
4396 LIBS="-linet $LIBS"
4397 cat > conftest.$ac_ext <<EOF
4398 #line 4399 "configure"
4399 #include "confdefs.h"
4400 /* Override any gcc2 internal prototype to avoid an error. */
4401 /* We use char because int might match the return type of a gcc2
4402 builtin and then its argument prototype would still apply. */
4403 char connect();
4405 int main() {
4406 connect()
4407 ; return 0; }
4409 if { (eval echo configure:4410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4410 rm -rf conftest*
4411 eval "ac_cv_lib_$ac_lib_var=yes"
4412 else
4413 echo "configure: failed program was:" >&5
4414 cat conftest.$ac_ext >&5
4415 rm -rf conftest*
4416 eval "ac_cv_lib_$ac_lib_var=no"
4418 rm -f conftest*
4419 LIBS="$ac_save_LIBS"
4422 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4423 echo "$ac_t""yes" 1>&6
4424 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4425 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4426 cat >> confdefs.h <<EOF
4427 #define $ac_tr_lib 1
4430 LIBS="-linet $LIBS"
4432 else
4433 echo "$ac_t""no" 1>&6
4436 esac
4437 if test x"$ac_cv_lib_socket_connect" = x"yes" ||
4438 test x"$ac_cv_lib_inet_connect" = x"yes"; then
4439 # ac_cv_func_connect=yes
4440 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
4441 cat >> confdefs.h <<\EOF
4442 #define HAVE_CONNECT 1
4448 ###############################################
4449 # test for where we get get_yp_default_domain() from
4450 for ac_func in yp_get_default_domain
4452 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4453 echo "configure:4454: checking for $ac_func" >&5
4454 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4455 echo $ac_n "(cached) $ac_c" 1>&6
4456 else
4457 cat > conftest.$ac_ext <<EOF
4458 #line 4459 "configure"
4459 #include "confdefs.h"
4460 /* System header to define __stub macros and hopefully few prototypes,
4461 which can conflict with char $ac_func(); below. */
4462 #include <assert.h>
4463 /* Override any gcc2 internal prototype to avoid an error. */
4464 /* We use char because int might match the return type of a gcc2
4465 builtin and then its argument prototype would still apply. */
4466 char $ac_func();
4468 int main() {
4470 /* The GNU C library defines this for functions which it implements
4471 to always fail with ENOSYS. Some functions are actually named
4472 something starting with __ and the normal name is an alias. */
4473 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4474 choke me
4475 #else
4476 $ac_func();
4477 #endif
4479 ; return 0; }
4481 if { (eval echo configure:4482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4482 rm -rf conftest*
4483 eval "ac_cv_func_$ac_func=yes"
4484 else
4485 echo "configure: failed program was:" >&5
4486 cat conftest.$ac_ext >&5
4487 rm -rf conftest*
4488 eval "ac_cv_func_$ac_func=no"
4490 rm -f conftest*
4493 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4494 echo "$ac_t""yes" 1>&6
4495 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4496 cat >> confdefs.h <<EOF
4497 #define $ac_tr_func 1
4500 else
4501 echo "$ac_t""no" 1>&6
4503 done
4505 if test x"$ac_cv_func_yp_get_default_domain" = x"no"; then
4506 echo $ac_n "checking for yp_get_default_domain in -lnsl""... $ac_c" 1>&6
4507 echo "configure:4508: checking for yp_get_default_domain in -lnsl" >&5
4508 ac_lib_var=`echo nsl'_'yp_get_default_domain | sed 'y%./+-%__p_%'`
4509 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4510 echo $ac_n "(cached) $ac_c" 1>&6
4511 else
4512 ac_save_LIBS="$LIBS"
4513 LIBS="-lnsl $LIBS"
4514 cat > conftest.$ac_ext <<EOF
4515 #line 4516 "configure"
4516 #include "confdefs.h"
4517 /* Override any gcc2 internal prototype to avoid an error. */
4518 /* We use char because int might match the return type of a gcc2
4519 builtin and then its argument prototype would still apply. */
4520 char yp_get_default_domain();
4522 int main() {
4523 yp_get_default_domain()
4524 ; return 0; }
4526 if { (eval echo configure:4527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4527 rm -rf conftest*
4528 eval "ac_cv_lib_$ac_lib_var=yes"
4529 else
4530 echo "configure: failed program was:" >&5
4531 cat conftest.$ac_ext >&5
4532 rm -rf conftest*
4533 eval "ac_cv_lib_$ac_lib_var=no"
4535 rm -f conftest*
4536 LIBS="$ac_save_LIBS"
4539 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4540 echo "$ac_t""yes" 1>&6
4541 LIBS="$LIBS -lnsl";
4542 cat >> confdefs.h <<\EOF
4543 #define HAVE_YP_GET_DEFAULT_DOMAIN 1
4546 else
4547 echo "$ac_t""no" 1>&6
4552 # Check if we have execl, if not we need to compile smbrun.
4553 for ac_func in execl
4555 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4556 echo "configure:4557: checking for $ac_func" >&5
4557 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4558 echo $ac_n "(cached) $ac_c" 1>&6
4559 else
4560 cat > conftest.$ac_ext <<EOF
4561 #line 4562 "configure"
4562 #include "confdefs.h"
4563 /* System header to define __stub macros and hopefully few prototypes,
4564 which can conflict with char $ac_func(); below. */
4565 #include <assert.h>
4566 /* Override any gcc2 internal prototype to avoid an error. */
4567 /* We use char because int might match the return type of a gcc2
4568 builtin and then its argument prototype would still apply. */
4569 char $ac_func();
4571 int main() {
4573 /* The GNU C library defines this for functions which it implements
4574 to always fail with ENOSYS. Some functions are actually named
4575 something starting with __ and the normal name is an alias. */
4576 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4577 choke me
4578 #else
4579 $ac_func();
4580 #endif
4582 ; return 0; }
4584 if { (eval echo configure:4585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4585 rm -rf conftest*
4586 eval "ac_cv_func_$ac_func=yes"
4587 else
4588 echo "configure: failed program was:" >&5
4589 cat conftest.$ac_ext >&5
4590 rm -rf conftest*
4591 eval "ac_cv_func_$ac_func=no"
4593 rm -f conftest*
4596 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4597 echo "$ac_t""yes" 1>&6
4598 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4599 cat >> confdefs.h <<EOF
4600 #define $ac_tr_func 1
4603 else
4604 echo "$ac_t""no" 1>&6
4606 done
4608 if test x"$ac_cv_func_execl" = x"no"; then
4609 RUNPROG="bin/smbrun"
4610 else
4611 RUNPROG=""
4614 for ac_func in waitpid getcwd strdup strtoul strerror chown chmod chroot
4616 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4617 echo "configure:4618: checking for $ac_func" >&5
4618 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4619 echo $ac_n "(cached) $ac_c" 1>&6
4620 else
4621 cat > conftest.$ac_ext <<EOF
4622 #line 4623 "configure"
4623 #include "confdefs.h"
4624 /* System header to define __stub macros and hopefully few prototypes,
4625 which can conflict with char $ac_func(); below. */
4626 #include <assert.h>
4627 /* Override any gcc2 internal prototype to avoid an error. */
4628 /* We use char because int might match the return type of a gcc2
4629 builtin and then its argument prototype would still apply. */
4630 char $ac_func();
4632 int main() {
4634 /* The GNU C library defines this for functions which it implements
4635 to always fail with ENOSYS. Some functions are actually named
4636 something starting with __ and the normal name is an alias. */
4637 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4638 choke me
4639 #else
4640 $ac_func();
4641 #endif
4643 ; return 0; }
4645 if { (eval echo configure:4646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4646 rm -rf conftest*
4647 eval "ac_cv_func_$ac_func=yes"
4648 else
4649 echo "configure: failed program was:" >&5
4650 cat conftest.$ac_ext >&5
4651 rm -rf conftest*
4652 eval "ac_cv_func_$ac_func=no"
4654 rm -f conftest*
4657 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4658 echo "$ac_t""yes" 1>&6
4659 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4660 cat >> confdefs.h <<EOF
4661 #define $ac_tr_func 1
4664 else
4665 echo "$ac_t""no" 1>&6
4667 done
4669 for ac_func in fstat strchr utime utimes getrlimit fsync bzero memset
4671 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4672 echo "configure:4673: checking for $ac_func" >&5
4673 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4674 echo $ac_n "(cached) $ac_c" 1>&6
4675 else
4676 cat > conftest.$ac_ext <<EOF
4677 #line 4678 "configure"
4678 #include "confdefs.h"
4679 /* System header to define __stub macros and hopefully few prototypes,
4680 which can conflict with char $ac_func(); below. */
4681 #include <assert.h>
4682 /* Override any gcc2 internal prototype to avoid an error. */
4683 /* We use char because int might match the return type of a gcc2
4684 builtin and then its argument prototype would still apply. */
4685 char $ac_func();
4687 int main() {
4689 /* The GNU C library defines this for functions which it implements
4690 to always fail with ENOSYS. Some functions are actually named
4691 something starting with __ and the normal name is an alias. */
4692 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4693 choke me
4694 #else
4695 $ac_func();
4696 #endif
4698 ; return 0; }
4700 if { (eval echo configure:4701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4701 rm -rf conftest*
4702 eval "ac_cv_func_$ac_func=yes"
4703 else
4704 echo "configure: failed program was:" >&5
4705 cat conftest.$ac_ext >&5
4706 rm -rf conftest*
4707 eval "ac_cv_func_$ac_func=no"
4709 rm -f conftest*
4712 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4713 echo "$ac_t""yes" 1>&6
4714 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4715 cat >> confdefs.h <<EOF
4716 #define $ac_tr_func 1
4719 else
4720 echo "$ac_t""no" 1>&6
4722 done
4724 for ac_func in memmove vsnprintf snprintf setsid glob strpbrk pipe crypt16 getauthuid
4726 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4727 echo "configure:4728: checking for $ac_func" >&5
4728 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4729 echo $ac_n "(cached) $ac_c" 1>&6
4730 else
4731 cat > conftest.$ac_ext <<EOF
4732 #line 4733 "configure"
4733 #include "confdefs.h"
4734 /* System header to define __stub macros and hopefully few prototypes,
4735 which can conflict with char $ac_func(); below. */
4736 #include <assert.h>
4737 /* Override any gcc2 internal prototype to avoid an error. */
4738 /* We use char because int might match the return type of a gcc2
4739 builtin and then its argument prototype would still apply. */
4740 char $ac_func();
4742 int main() {
4744 /* The GNU C library defines this for functions which it implements
4745 to always fail with ENOSYS. Some functions are actually named
4746 something starting with __ and the normal name is an alias. */
4747 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4748 choke me
4749 #else
4750 $ac_func();
4751 #endif
4753 ; return 0; }
4755 if { (eval echo configure:4756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4756 rm -rf conftest*
4757 eval "ac_cv_func_$ac_func=yes"
4758 else
4759 echo "configure: failed program was:" >&5
4760 cat conftest.$ac_ext >&5
4761 rm -rf conftest*
4762 eval "ac_cv_func_$ac_func=no"
4764 rm -f conftest*
4767 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4768 echo "$ac_t""yes" 1>&6
4769 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4770 cat >> confdefs.h <<EOF
4771 #define $ac_tr_func 1
4774 else
4775 echo "$ac_t""no" 1>&6
4777 done
4779 for ac_func in strftime sigprocmask sigblock sigaction innetgr setnetgrent getnetgrent endnetgrent
4781 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4782 echo "configure:4783: checking for $ac_func" >&5
4783 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4784 echo $ac_n "(cached) $ac_c" 1>&6
4785 else
4786 cat > conftest.$ac_ext <<EOF
4787 #line 4788 "configure"
4788 #include "confdefs.h"
4789 /* System header to define __stub macros and hopefully few prototypes,
4790 which can conflict with char $ac_func(); below. */
4791 #include <assert.h>
4792 /* Override any gcc2 internal prototype to avoid an error. */
4793 /* We use char because int might match the return type of a gcc2
4794 builtin and then its argument prototype would still apply. */
4795 char $ac_func();
4797 int main() {
4799 /* The GNU C library defines this for functions which it implements
4800 to always fail with ENOSYS. Some functions are actually named
4801 something starting with __ and the normal name is an alias. */
4802 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4803 choke me
4804 #else
4805 $ac_func();
4806 #endif
4808 ; return 0; }
4810 if { (eval echo configure:4811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4811 rm -rf conftest*
4812 eval "ac_cv_func_$ac_func=yes"
4813 else
4814 echo "configure: failed program was:" >&5
4815 cat conftest.$ac_ext >&5
4816 rm -rf conftest*
4817 eval "ac_cv_func_$ac_func=no"
4819 rm -f conftest*
4822 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4823 echo "$ac_t""yes" 1>&6
4824 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4825 cat >> confdefs.h <<EOF
4826 #define $ac_tr_func 1
4829 else
4830 echo "$ac_t""no" 1>&6
4832 done
4834 for ac_func in initgroups select poll rdchk getgrnam getgrent pathconf
4836 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4837 echo "configure:4838: checking for $ac_func" >&5
4838 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4839 echo $ac_n "(cached) $ac_c" 1>&6
4840 else
4841 cat > conftest.$ac_ext <<EOF
4842 #line 4843 "configure"
4843 #include "confdefs.h"
4844 /* System header to define __stub macros and hopefully few prototypes,
4845 which can conflict with char $ac_func(); below. */
4846 #include <assert.h>
4847 /* Override any gcc2 internal prototype to avoid an error. */
4848 /* We use char because int might match the return type of a gcc2
4849 builtin and then its argument prototype would still apply. */
4850 char $ac_func();
4852 int main() {
4854 /* The GNU C library defines this for functions which it implements
4855 to always fail with ENOSYS. Some functions are actually named
4856 something starting with __ and the normal name is an alias. */
4857 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4858 choke me
4859 #else
4860 $ac_func();
4861 #endif
4863 ; return 0; }
4865 if { (eval echo configure:4866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4866 rm -rf conftest*
4867 eval "ac_cv_func_$ac_func=yes"
4868 else
4869 echo "configure: failed program was:" >&5
4870 cat conftest.$ac_ext >&5
4871 rm -rf conftest*
4872 eval "ac_cv_func_$ac_func=no"
4874 rm -f conftest*
4877 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4878 echo "$ac_t""yes" 1>&6
4879 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4880 cat >> confdefs.h <<EOF
4881 #define $ac_tr_func 1
4884 else
4885 echo "$ac_t""no" 1>&6
4887 done
4889 for ac_func in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
4891 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4892 echo "configure:4893: checking for $ac_func" >&5
4893 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4894 echo $ac_n "(cached) $ac_c" 1>&6
4895 else
4896 cat > conftest.$ac_ext <<EOF
4897 #line 4898 "configure"
4898 #include "confdefs.h"
4899 /* System header to define __stub macros and hopefully few prototypes,
4900 which can conflict with char $ac_func(); below. */
4901 #include <assert.h>
4902 /* Override any gcc2 internal prototype to avoid an error. */
4903 /* We use char because int might match the return type of a gcc2
4904 builtin and then its argument prototype would still apply. */
4905 char $ac_func();
4907 int main() {
4909 /* The GNU C library defines this for functions which it implements
4910 to always fail with ENOSYS. Some functions are actually named
4911 something starting with __ and the normal name is an alias. */
4912 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4913 choke me
4914 #else
4915 $ac_func();
4916 #endif
4918 ; return 0; }
4920 if { (eval echo configure:4921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4921 rm -rf conftest*
4922 eval "ac_cv_func_$ac_func=yes"
4923 else
4924 echo "configure: failed program was:" >&5
4925 cat conftest.$ac_ext >&5
4926 rm -rf conftest*
4927 eval "ac_cv_func_$ac_func=no"
4929 rm -f conftest*
4932 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4933 echo "$ac_t""yes" 1>&6
4934 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4935 cat >> confdefs.h <<EOF
4936 #define $ac_tr_func 1
4939 else
4940 echo "$ac_t""no" 1>&6
4942 done
4944 for ac_func in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
4946 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4947 echo "configure:4948: checking for $ac_func" >&5
4948 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4949 echo $ac_n "(cached) $ac_c" 1>&6
4950 else
4951 cat > conftest.$ac_ext <<EOF
4952 #line 4953 "configure"
4953 #include "confdefs.h"
4954 /* System header to define __stub macros and hopefully few prototypes,
4955 which can conflict with char $ac_func(); below. */
4956 #include <assert.h>
4957 /* Override any gcc2 internal prototype to avoid an error. */
4958 /* We use char because int might match the return type of a gcc2
4959 builtin and then its argument prototype would still apply. */
4960 char $ac_func();
4962 int main() {
4964 /* The GNU C library defines this for functions which it implements
4965 to always fail with ENOSYS. Some functions are actually named
4966 something starting with __ and the normal name is an alias. */
4967 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4968 choke me
4969 #else
4970 $ac_func();
4971 #endif
4973 ; return 0; }
4975 if { (eval echo configure:4976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4976 rm -rf conftest*
4977 eval "ac_cv_func_$ac_func=yes"
4978 else
4979 echo "configure: failed program was:" >&5
4980 cat conftest.$ac_ext >&5
4981 rm -rf conftest*
4982 eval "ac_cv_func_$ac_func=no"
4984 rm -f conftest*
4987 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4988 echo "$ac_t""yes" 1>&6
4989 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4990 cat >> confdefs.h <<EOF
4991 #define $ac_tr_func 1
4994 else
4995 echo "$ac_t""no" 1>&6
4997 done
4999 for ac_func in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam
5001 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5002 echo "configure:5003: checking for $ac_func" >&5
5003 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5004 echo $ac_n "(cached) $ac_c" 1>&6
5005 else
5006 cat > conftest.$ac_ext <<EOF
5007 #line 5008 "configure"
5008 #include "confdefs.h"
5009 /* System header to define __stub macros and hopefully few prototypes,
5010 which can conflict with char $ac_func(); below. */
5011 #include <assert.h>
5012 /* Override any gcc2 internal prototype to avoid an error. */
5013 /* We use char because int might match the return type of a gcc2
5014 builtin and then its argument prototype would still apply. */
5015 char $ac_func();
5017 int main() {
5019 /* The GNU C library defines this for functions which it implements
5020 to always fail with ENOSYS. Some functions are actually named
5021 something starting with __ and the normal name is an alias. */
5022 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5023 choke me
5024 #else
5025 $ac_func();
5026 #endif
5028 ; return 0; }
5030 if { (eval echo configure:5031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5031 rm -rf conftest*
5032 eval "ac_cv_func_$ac_func=yes"
5033 else
5034 echo "configure: failed program was:" >&5
5035 cat conftest.$ac_ext >&5
5036 rm -rf conftest*
5037 eval "ac_cv_func_$ac_func=no"
5039 rm -f conftest*
5042 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5043 echo "$ac_t""yes" 1>&6
5044 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5045 cat >> confdefs.h <<EOF
5046 #define $ac_tr_func 1
5049 else
5050 echo "$ac_t""no" 1>&6
5052 done
5054 for ac_func in srandom random srand rand setenv usleep strcasecmp fcvt fcvtl
5056 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5057 echo "configure:5058: checking for $ac_func" >&5
5058 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5059 echo $ac_n "(cached) $ac_c" 1>&6
5060 else
5061 cat > conftest.$ac_ext <<EOF
5062 #line 5063 "configure"
5063 #include "confdefs.h"
5064 /* System header to define __stub macros and hopefully few prototypes,
5065 which can conflict with char $ac_func(); below. */
5066 #include <assert.h>
5067 /* Override any gcc2 internal prototype to avoid an error. */
5068 /* We use char because int might match the return type of a gcc2
5069 builtin and then its argument prototype would still apply. */
5070 char $ac_func();
5072 int main() {
5074 /* The GNU C library defines this for functions which it implements
5075 to always fail with ENOSYS. Some functions are actually named
5076 something starting with __ and the normal name is an alias. */
5077 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5078 choke me
5079 #else
5080 $ac_func();
5081 #endif
5083 ; return 0; }
5085 if { (eval echo configure:5086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5086 rm -rf conftest*
5087 eval "ac_cv_func_$ac_func=yes"
5088 else
5089 echo "configure: failed program was:" >&5
5090 cat conftest.$ac_ext >&5
5091 rm -rf conftest*
5092 eval "ac_cv_func_$ac_func=no"
5094 rm -f conftest*
5097 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5098 echo "$ac_t""yes" 1>&6
5099 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5100 cat >> confdefs.h <<EOF
5101 #define $ac_tr_func 1
5104 else
5105 echo "$ac_t""no" 1>&6
5107 done
5110 # syscall() is needed for smbwrapper.
5111 for ac_func in syscall
5113 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5114 echo "configure:5115: checking for $ac_func" >&5
5115 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5116 echo $ac_n "(cached) $ac_c" 1>&6
5117 else
5118 cat > conftest.$ac_ext <<EOF
5119 #line 5120 "configure"
5120 #include "confdefs.h"
5121 /* System header to define __stub macros and hopefully few prototypes,
5122 which can conflict with char $ac_func(); below. */
5123 #include <assert.h>
5124 /* Override any gcc2 internal prototype to avoid an error. */
5125 /* We use char because int might match the return type of a gcc2
5126 builtin and then its argument prototype would still apply. */
5127 char $ac_func();
5129 int main() {
5131 /* The GNU C library defines this for functions which it implements
5132 to always fail with ENOSYS. Some functions are actually named
5133 something starting with __ and the normal name is an alias. */
5134 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5135 choke me
5136 #else
5137 $ac_func();
5138 #endif
5140 ; return 0; }
5142 if { (eval echo configure:5143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5143 rm -rf conftest*
5144 eval "ac_cv_func_$ac_func=yes"
5145 else
5146 echo "configure: failed program was:" >&5
5147 cat conftest.$ac_ext >&5
5148 rm -rf conftest*
5149 eval "ac_cv_func_$ac_func=no"
5151 rm -f conftest*
5154 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5155 echo "$ac_t""yes" 1>&6
5156 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5157 cat >> confdefs.h <<EOF
5158 #define $ac_tr_func 1
5161 else
5162 echo "$ac_t""no" 1>&6
5164 done
5167 for ac_func in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
5169 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5170 echo "configure:5171: checking for $ac_func" >&5
5171 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5172 echo $ac_n "(cached) $ac_c" 1>&6
5173 else
5174 cat > conftest.$ac_ext <<EOF
5175 #line 5176 "configure"
5176 #include "confdefs.h"
5177 /* System header to define __stub macros and hopefully few prototypes,
5178 which can conflict with char $ac_func(); below. */
5179 #include <assert.h>
5180 /* Override any gcc2 internal prototype to avoid an error. */
5181 /* We use char because int might match the return type of a gcc2
5182 builtin and then its argument prototype would still apply. */
5183 char $ac_func();
5185 int main() {
5187 /* The GNU C library defines this for functions which it implements
5188 to always fail with ENOSYS. Some functions are actually named
5189 something starting with __ and the normal name is an alias. */
5190 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5191 choke me
5192 #else
5193 $ac_func();
5194 #endif
5196 ; return 0; }
5198 if { (eval echo configure:5199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5199 rm -rf conftest*
5200 eval "ac_cv_func_$ac_func=yes"
5201 else
5202 echo "configure: failed program was:" >&5
5203 cat conftest.$ac_ext >&5
5204 rm -rf conftest*
5205 eval "ac_cv_func_$ac_func=no"
5207 rm -f conftest*
5210 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5211 echo "$ac_t""yes" 1>&6
5212 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5213 cat >> confdefs.h <<EOF
5214 #define $ac_tr_func 1
5217 else
5218 echo "$ac_t""no" 1>&6
5220 done
5222 for ac_func in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
5224 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5225 echo "configure:5226: checking for $ac_func" >&5
5226 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5227 echo $ac_n "(cached) $ac_c" 1>&6
5228 else
5229 cat > conftest.$ac_ext <<EOF
5230 #line 5231 "configure"
5231 #include "confdefs.h"
5232 /* System header to define __stub macros and hopefully few prototypes,
5233 which can conflict with char $ac_func(); below. */
5234 #include <assert.h>
5235 /* Override any gcc2 internal prototype to avoid an error. */
5236 /* We use char because int might match the return type of a gcc2
5237 builtin and then its argument prototype would still apply. */
5238 char $ac_func();
5240 int main() {
5242 /* The GNU C library defines this for functions which it implements
5243 to always fail with ENOSYS. Some functions are actually named
5244 something starting with __ and the normal name is an alias. */
5245 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5246 choke me
5247 #else
5248 $ac_func();
5249 #endif
5251 ; return 0; }
5253 if { (eval echo configure:5254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5254 rm -rf conftest*
5255 eval "ac_cv_func_$ac_func=yes"
5256 else
5257 echo "configure: failed program was:" >&5
5258 cat conftest.$ac_ext >&5
5259 rm -rf conftest*
5260 eval "ac_cv_func_$ac_func=no"
5262 rm -f conftest*
5265 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5266 echo "$ac_t""yes" 1>&6
5267 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5268 cat >> confdefs.h <<EOF
5269 #define $ac_tr_func 1
5272 else
5273 echo "$ac_t""no" 1>&6
5275 done
5277 for ac_func in __getcwd _getcwd
5279 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5280 echo "configure:5281: checking for $ac_func" >&5
5281 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5282 echo $ac_n "(cached) $ac_c" 1>&6
5283 else
5284 cat > conftest.$ac_ext <<EOF
5285 #line 5286 "configure"
5286 #include "confdefs.h"
5287 /* System header to define __stub macros and hopefully few prototypes,
5288 which can conflict with char $ac_func(); below. */
5289 #include <assert.h>
5290 /* Override any gcc2 internal prototype to avoid an error. */
5291 /* We use char because int might match the return type of a gcc2
5292 builtin and then its argument prototype would still apply. */
5293 char $ac_func();
5295 int main() {
5297 /* The GNU C library defines this for functions which it implements
5298 to always fail with ENOSYS. Some functions are actually named
5299 something starting with __ and the normal name is an alias. */
5300 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5301 choke me
5302 #else
5303 $ac_func();
5304 #endif
5306 ; return 0; }
5308 if { (eval echo configure:5309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5309 rm -rf conftest*
5310 eval "ac_cv_func_$ac_func=yes"
5311 else
5312 echo "configure: failed program was:" >&5
5313 cat conftest.$ac_ext >&5
5314 rm -rf conftest*
5315 eval "ac_cv_func_$ac_func=no"
5317 rm -f conftest*
5320 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5321 echo "$ac_t""yes" 1>&6
5322 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5323 cat >> confdefs.h <<EOF
5324 #define $ac_tr_func 1
5327 else
5328 echo "$ac_t""no" 1>&6
5330 done
5332 for ac_func in __xstat __fxstat __lxstat
5334 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5335 echo "configure:5336: checking for $ac_func" >&5
5336 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5337 echo $ac_n "(cached) $ac_c" 1>&6
5338 else
5339 cat > conftest.$ac_ext <<EOF
5340 #line 5341 "configure"
5341 #include "confdefs.h"
5342 /* System header to define __stub macros and hopefully few prototypes,
5343 which can conflict with char $ac_func(); below. */
5344 #include <assert.h>
5345 /* Override any gcc2 internal prototype to avoid an error. */
5346 /* We use char because int might match the return type of a gcc2
5347 builtin and then its argument prototype would still apply. */
5348 char $ac_func();
5350 int main() {
5352 /* The GNU C library defines this for functions which it implements
5353 to always fail with ENOSYS. Some functions are actually named
5354 something starting with __ and the normal name is an alias. */
5355 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5356 choke me
5357 #else
5358 $ac_func();
5359 #endif
5361 ; return 0; }
5363 if { (eval echo configure:5364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5364 rm -rf conftest*
5365 eval "ac_cv_func_$ac_func=yes"
5366 else
5367 echo "configure: failed program was:" >&5
5368 cat conftest.$ac_ext >&5
5369 rm -rf conftest*
5370 eval "ac_cv_func_$ac_func=no"
5372 rm -f conftest*
5375 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5376 echo "$ac_t""yes" 1>&6
5377 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5378 cat >> confdefs.h <<EOF
5379 #define $ac_tr_func 1
5382 else
5383 echo "$ac_t""no" 1>&6
5385 done
5387 for ac_func in _stat _lstat _fstat __stat __lstat __fstat
5389 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5390 echo "configure:5391: checking for $ac_func" >&5
5391 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5392 echo $ac_n "(cached) $ac_c" 1>&6
5393 else
5394 cat > conftest.$ac_ext <<EOF
5395 #line 5396 "configure"
5396 #include "confdefs.h"
5397 /* System header to define __stub macros and hopefully few prototypes,
5398 which can conflict with char $ac_func(); below. */
5399 #include <assert.h>
5400 /* Override any gcc2 internal prototype to avoid an error. */
5401 /* We use char because int might match the return type of a gcc2
5402 builtin and then its argument prototype would still apply. */
5403 char $ac_func();
5405 int main() {
5407 /* The GNU C library defines this for functions which it implements
5408 to always fail with ENOSYS. Some functions are actually named
5409 something starting with __ and the normal name is an alias. */
5410 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5411 choke me
5412 #else
5413 $ac_func();
5414 #endif
5416 ; return 0; }
5418 if { (eval echo configure:5419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5419 rm -rf conftest*
5420 eval "ac_cv_func_$ac_func=yes"
5421 else
5422 echo "configure: failed program was:" >&5
5423 cat conftest.$ac_ext >&5
5424 rm -rf conftest*
5425 eval "ac_cv_func_$ac_func=no"
5427 rm -f conftest*
5430 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5431 echo "$ac_t""yes" 1>&6
5432 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5433 cat >> confdefs.h <<EOF
5434 #define $ac_tr_func 1
5437 else
5438 echo "$ac_t""no" 1>&6
5440 done
5442 for ac_func in _acl __acl _facl __facl _open __open _chdir __chdir
5444 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5445 echo "configure:5446: checking for $ac_func" >&5
5446 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5447 echo $ac_n "(cached) $ac_c" 1>&6
5448 else
5449 cat > conftest.$ac_ext <<EOF
5450 #line 5451 "configure"
5451 #include "confdefs.h"
5452 /* System header to define __stub macros and hopefully few prototypes,
5453 which can conflict with char $ac_func(); below. */
5454 #include <assert.h>
5455 /* Override any gcc2 internal prototype to avoid an error. */
5456 /* We use char because int might match the return type of a gcc2
5457 builtin and then its argument prototype would still apply. */
5458 char $ac_func();
5460 int main() {
5462 /* The GNU C library defines this for functions which it implements
5463 to always fail with ENOSYS. Some functions are actually named
5464 something starting with __ and the normal name is an alias. */
5465 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5466 choke me
5467 #else
5468 $ac_func();
5469 #endif
5471 ; return 0; }
5473 if { (eval echo configure:5474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5474 rm -rf conftest*
5475 eval "ac_cv_func_$ac_func=yes"
5476 else
5477 echo "configure: failed program was:" >&5
5478 cat conftest.$ac_ext >&5
5479 rm -rf conftest*
5480 eval "ac_cv_func_$ac_func=no"
5482 rm -f conftest*
5485 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5486 echo "$ac_t""yes" 1>&6
5487 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5488 cat >> confdefs.h <<EOF
5489 #define $ac_tr_func 1
5492 else
5493 echo "$ac_t""no" 1>&6
5495 done
5497 for ac_func in _close __close _fchdir __fchdir _fcntl __fcntl
5499 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5500 echo "configure:5501: checking for $ac_func" >&5
5501 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5502 echo $ac_n "(cached) $ac_c" 1>&6
5503 else
5504 cat > conftest.$ac_ext <<EOF
5505 #line 5506 "configure"
5506 #include "confdefs.h"
5507 /* System header to define __stub macros and hopefully few prototypes,
5508 which can conflict with char $ac_func(); below. */
5509 #include <assert.h>
5510 /* Override any gcc2 internal prototype to avoid an error. */
5511 /* We use char because int might match the return type of a gcc2
5512 builtin and then its argument prototype would still apply. */
5513 char $ac_func();
5515 int main() {
5517 /* The GNU C library defines this for functions which it implements
5518 to always fail with ENOSYS. Some functions are actually named
5519 something starting with __ and the normal name is an alias. */
5520 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5521 choke me
5522 #else
5523 $ac_func();
5524 #endif
5526 ; return 0; }
5528 if { (eval echo configure:5529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5529 rm -rf conftest*
5530 eval "ac_cv_func_$ac_func=yes"
5531 else
5532 echo "configure: failed program was:" >&5
5533 cat conftest.$ac_ext >&5
5534 rm -rf conftest*
5535 eval "ac_cv_func_$ac_func=no"
5537 rm -f conftest*
5540 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5541 echo "$ac_t""yes" 1>&6
5542 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5543 cat >> confdefs.h <<EOF
5544 #define $ac_tr_func 1
5547 else
5548 echo "$ac_t""no" 1>&6
5550 done
5552 for ac_func in getdents _getdents __getdents _lseek __lseek _read __read
5554 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5555 echo "configure:5556: checking for $ac_func" >&5
5556 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5557 echo $ac_n "(cached) $ac_c" 1>&6
5558 else
5559 cat > conftest.$ac_ext <<EOF
5560 #line 5561 "configure"
5561 #include "confdefs.h"
5562 /* System header to define __stub macros and hopefully few prototypes,
5563 which can conflict with char $ac_func(); below. */
5564 #include <assert.h>
5565 /* Override any gcc2 internal prototype to avoid an error. */
5566 /* We use char because int might match the return type of a gcc2
5567 builtin and then its argument prototype would still apply. */
5568 char $ac_func();
5570 int main() {
5572 /* The GNU C library defines this for functions which it implements
5573 to always fail with ENOSYS. Some functions are actually named
5574 something starting with __ and the normal name is an alias. */
5575 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5576 choke me
5577 #else
5578 $ac_func();
5579 #endif
5581 ; return 0; }
5583 if { (eval echo configure:5584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5584 rm -rf conftest*
5585 eval "ac_cv_func_$ac_func=yes"
5586 else
5587 echo "configure: failed program was:" >&5
5588 cat conftest.$ac_ext >&5
5589 rm -rf conftest*
5590 eval "ac_cv_func_$ac_func=no"
5592 rm -f conftest*
5595 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5596 echo "$ac_t""yes" 1>&6
5597 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5598 cat >> confdefs.h <<EOF
5599 #define $ac_tr_func 1
5602 else
5603 echo "$ac_t""no" 1>&6
5605 done
5607 for ac_func in _write __write _fork __fork
5609 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5610 echo "configure:5611: checking for $ac_func" >&5
5611 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5612 echo $ac_n "(cached) $ac_c" 1>&6
5613 else
5614 cat > conftest.$ac_ext <<EOF
5615 #line 5616 "configure"
5616 #include "confdefs.h"
5617 /* System header to define __stub macros and hopefully few prototypes,
5618 which can conflict with char $ac_func(); below. */
5619 #include <assert.h>
5620 /* Override any gcc2 internal prototype to avoid an error. */
5621 /* We use char because int might match the return type of a gcc2
5622 builtin and then its argument prototype would still apply. */
5623 char $ac_func();
5625 int main() {
5627 /* The GNU C library defines this for functions which it implements
5628 to always fail with ENOSYS. Some functions are actually named
5629 something starting with __ and the normal name is an alias. */
5630 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5631 choke me
5632 #else
5633 $ac_func();
5634 #endif
5636 ; return 0; }
5638 if { (eval echo configure:5639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5639 rm -rf conftest*
5640 eval "ac_cv_func_$ac_func=yes"
5641 else
5642 echo "configure: failed program was:" >&5
5643 cat conftest.$ac_ext >&5
5644 rm -rf conftest*
5645 eval "ac_cv_func_$ac_func=no"
5647 rm -f conftest*
5650 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5651 echo "$ac_t""yes" 1>&6
5652 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5653 cat >> confdefs.h <<EOF
5654 #define $ac_tr_func 1
5657 else
5658 echo "$ac_t""no" 1>&6
5660 done
5662 for ac_func in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
5664 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5665 echo "configure:5666: checking for $ac_func" >&5
5666 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5667 echo $ac_n "(cached) $ac_c" 1>&6
5668 else
5669 cat > conftest.$ac_ext <<EOF
5670 #line 5671 "configure"
5671 #include "confdefs.h"
5672 /* System header to define __stub macros and hopefully few prototypes,
5673 which can conflict with char $ac_func(); below. */
5674 #include <assert.h>
5675 /* Override any gcc2 internal prototype to avoid an error. */
5676 /* We use char because int might match the return type of a gcc2
5677 builtin and then its argument prototype would still apply. */
5678 char $ac_func();
5680 int main() {
5682 /* The GNU C library defines this for functions which it implements
5683 to always fail with ENOSYS. Some functions are actually named
5684 something starting with __ and the normal name is an alias. */
5685 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5686 choke me
5687 #else
5688 $ac_func();
5689 #endif
5691 ; return 0; }
5693 if { (eval echo configure:5694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5694 rm -rf conftest*
5695 eval "ac_cv_func_$ac_func=yes"
5696 else
5697 echo "configure: failed program was:" >&5
5698 cat conftest.$ac_ext >&5
5699 rm -rf conftest*
5700 eval "ac_cv_func_$ac_func=no"
5702 rm -f conftest*
5705 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5706 echo "$ac_t""yes" 1>&6
5707 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5708 cat >> confdefs.h <<EOF
5709 #define $ac_tr_func 1
5712 else
5713 echo "$ac_t""no" 1>&6
5715 done
5717 for ac_func in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
5719 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5720 echo "configure:5721: checking for $ac_func" >&5
5721 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5722 echo $ac_n "(cached) $ac_c" 1>&6
5723 else
5724 cat > conftest.$ac_ext <<EOF
5725 #line 5726 "configure"
5726 #include "confdefs.h"
5727 /* System header to define __stub macros and hopefully few prototypes,
5728 which can conflict with char $ac_func(); below. */
5729 #include <assert.h>
5730 /* Override any gcc2 internal prototype to avoid an error. */
5731 /* We use char because int might match the return type of a gcc2
5732 builtin and then its argument prototype would still apply. */
5733 char $ac_func();
5735 int main() {
5737 /* The GNU C library defines this for functions which it implements
5738 to always fail with ENOSYS. Some functions are actually named
5739 something starting with __ and the normal name is an alias. */
5740 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5741 choke me
5742 #else
5743 $ac_func();
5744 #endif
5746 ; return 0; }
5748 if { (eval echo configure:5749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5749 rm -rf conftest*
5750 eval "ac_cv_func_$ac_func=yes"
5751 else
5752 echo "configure: failed program was:" >&5
5753 cat conftest.$ac_ext >&5
5754 rm -rf conftest*
5755 eval "ac_cv_func_$ac_func=no"
5757 rm -f conftest*
5760 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5761 echo "$ac_t""yes" 1>&6
5762 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5763 cat >> confdefs.h <<EOF
5764 #define $ac_tr_func 1
5767 else
5768 echo "$ac_t""no" 1>&6
5770 done
5772 for ac_func in pread _pread __pread pread64 _pread64 __pread64
5774 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5775 echo "configure:5776: checking for $ac_func" >&5
5776 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5777 echo $ac_n "(cached) $ac_c" 1>&6
5778 else
5779 cat > conftest.$ac_ext <<EOF
5780 #line 5781 "configure"
5781 #include "confdefs.h"
5782 /* System header to define __stub macros and hopefully few prototypes,
5783 which can conflict with char $ac_func(); below. */
5784 #include <assert.h>
5785 /* Override any gcc2 internal prototype to avoid an error. */
5786 /* We use char because int might match the return type of a gcc2
5787 builtin and then its argument prototype would still apply. */
5788 char $ac_func();
5790 int main() {
5792 /* The GNU C library defines this for functions which it implements
5793 to always fail with ENOSYS. Some functions are actually named
5794 something starting with __ and the normal name is an alias. */
5795 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5796 choke me
5797 #else
5798 $ac_func();
5799 #endif
5801 ; return 0; }
5803 if { (eval echo configure:5804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5804 rm -rf conftest*
5805 eval "ac_cv_func_$ac_func=yes"
5806 else
5807 echo "configure: failed program was:" >&5
5808 cat conftest.$ac_ext >&5
5809 rm -rf conftest*
5810 eval "ac_cv_func_$ac_func=no"
5812 rm -f conftest*
5815 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5816 echo "$ac_t""yes" 1>&6
5817 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5818 cat >> confdefs.h <<EOF
5819 #define $ac_tr_func 1
5822 else
5823 echo "$ac_t""no" 1>&6
5825 done
5827 for ac_func in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
5829 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5830 echo "configure:5831: checking for $ac_func" >&5
5831 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5832 echo $ac_n "(cached) $ac_c" 1>&6
5833 else
5834 cat > conftest.$ac_ext <<EOF
5835 #line 5836 "configure"
5836 #include "confdefs.h"
5837 /* System header to define __stub macros and hopefully few prototypes,
5838 which can conflict with char $ac_func(); below. */
5839 #include <assert.h>
5840 /* Override any gcc2 internal prototype to avoid an error. */
5841 /* We use char because int might match the return type of a gcc2
5842 builtin and then its argument prototype would still apply. */
5843 char $ac_func();
5845 int main() {
5847 /* The GNU C library defines this for functions which it implements
5848 to always fail with ENOSYS. Some functions are actually named
5849 something starting with __ and the normal name is an alias. */
5850 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5851 choke me
5852 #else
5853 $ac_func();
5854 #endif
5856 ; return 0; }
5858 if { (eval echo configure:5859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5859 rm -rf conftest*
5860 eval "ac_cv_func_$ac_func=yes"
5861 else
5862 echo "configure: failed program was:" >&5
5863 cat conftest.$ac_ext >&5
5864 rm -rf conftest*
5865 eval "ac_cv_func_$ac_func=no"
5867 rm -f conftest*
5870 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5871 echo "$ac_t""yes" 1>&6
5872 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5873 cat >> confdefs.h <<EOF
5874 #define $ac_tr_func 1
5877 else
5878 echo "$ac_t""no" 1>&6
5880 done
5882 for ac_func in open64 _open64 __open64 creat64
5884 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5885 echo "configure:5886: checking for $ac_func" >&5
5886 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5887 echo $ac_n "(cached) $ac_c" 1>&6
5888 else
5889 cat > conftest.$ac_ext <<EOF
5890 #line 5891 "configure"
5891 #include "confdefs.h"
5892 /* System header to define __stub macros and hopefully few prototypes,
5893 which can conflict with char $ac_func(); below. */
5894 #include <assert.h>
5895 /* Override any gcc2 internal prototype to avoid an error. */
5896 /* We use char because int might match the return type of a gcc2
5897 builtin and then its argument prototype would still apply. */
5898 char $ac_func();
5900 int main() {
5902 /* The GNU C library defines this for functions which it implements
5903 to always fail with ENOSYS. Some functions are actually named
5904 something starting with __ and the normal name is an alias. */
5905 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5906 choke me
5907 #else
5908 $ac_func();
5909 #endif
5911 ; return 0; }
5913 if { (eval echo configure:5914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5914 rm -rf conftest*
5915 eval "ac_cv_func_$ac_func=yes"
5916 else
5917 echo "configure: failed program was:" >&5
5918 cat conftest.$ac_ext >&5
5919 rm -rf conftest*
5920 eval "ac_cv_func_$ac_func=no"
5922 rm -f conftest*
5925 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5926 echo "$ac_t""yes" 1>&6
5927 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5928 cat >> confdefs.h <<EOF
5929 #define $ac_tr_func 1
5932 else
5933 echo "$ac_t""no" 1>&6
5935 done
5939 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
5942 if test x$ac_cv_func_stat64 = xno ; then
5943 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
5944 echo "configure:5945: checking for stat64 in <sys/stat.h>" >&5
5945 cat > conftest.$ac_ext <<EOF
5946 #line 5947 "configure"
5947 #include "confdefs.h"
5949 #if defined(HAVE_UNISTD_H)
5950 #include <unistd.h>
5951 #endif
5952 #include <sys/stat.h>
5954 int main() {
5955 struct stat64 st64; exit(stat64(".",&st64));
5956 ; return 0; }
5958 if { (eval echo configure:5959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5959 rm -rf conftest*
5960 ac_cv_func_stat64=yes
5961 else
5962 echo "configure: failed program was:" >&5
5963 cat conftest.$ac_ext >&5
5965 rm -f conftest*
5966 echo "$ac_t""$ac_cv_func_stat64" 1>&6
5967 if test x$ac_cv_func_stat64 = xyes ; then
5968 cat >> confdefs.h <<\EOF
5969 #define HAVE_STAT64 1
5975 if test x$ac_cv_func_lstat64 = xno ; then
5976 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
5977 echo "configure:5978: checking for lstat64 in <sys/stat.h>" >&5
5978 cat > conftest.$ac_ext <<EOF
5979 #line 5980 "configure"
5980 #include "confdefs.h"
5982 #if defined(HAVE_UNISTD_H)
5983 #include <unistd.h>
5984 #endif
5985 #include <sys/stat.h>
5987 int main() {
5988 struct stat64 st64; exit(lstat64(".",&st64));
5989 ; return 0; }
5991 if { (eval echo configure:5992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5992 rm -rf conftest*
5993 ac_cv_func_lstat64=yes
5994 else
5995 echo "configure: failed program was:" >&5
5996 cat conftest.$ac_ext >&5
5998 rm -f conftest*
5999 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
6000 if test x$ac_cv_func_lstat64 = xyes ; then
6001 cat >> confdefs.h <<\EOF
6002 #define HAVE_LSTAT64 1
6008 if test x$ac_cv_func_fstat64 = xno ; then
6009 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
6010 echo "configure:6011: checking for fstat64 in <sys/stat.h>" >&5
6011 cat > conftest.$ac_ext <<EOF
6012 #line 6013 "configure"
6013 #include "confdefs.h"
6015 #if defined(HAVE_UNISTD_H)
6016 #include <unistd.h>
6017 #endif
6018 #include <sys/stat.h>
6020 int main() {
6021 struct stat64 st64; exit(fstat64(0,&st64));
6022 ; return 0; }
6024 if { (eval echo configure:6025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6025 rm -rf conftest*
6026 ac_cv_func_fstat64=yes
6027 else
6028 echo "configure: failed program was:" >&5
6029 cat conftest.$ac_ext >&5
6031 rm -f conftest*
6032 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
6033 if test x$ac_cv_func_fstat64 = xyes ; then
6034 cat >> confdefs.h <<\EOF
6035 #define HAVE_FSTAT64 1
6042 # If no strcasecmp, check for it in some known places
6043 # It is in -lresolv on ReliantUNIX and UnixWare
6044 # -lresolve *must* follow -lnsl for name resolution to work properly
6047 if test x$ac_cv_func_strcasecmp = xno ; then
6048 echo $ac_n "checking for strcasecmp in -lresolv""... $ac_c" 1>&6
6049 echo "configure:6050: checking for strcasecmp in -lresolv" >&5
6050 ac_lib_var=`echo resolv'_'strcasecmp | sed 'y%./+-%__p_%'`
6051 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6052 echo $ac_n "(cached) $ac_c" 1>&6
6053 else
6054 ac_save_LIBS="$LIBS"
6055 LIBS="-lresolv $LIBS"
6056 cat > conftest.$ac_ext <<EOF
6057 #line 6058 "configure"
6058 #include "confdefs.h"
6059 /* Override any gcc2 internal prototype to avoid an error. */
6060 /* We use char because int might match the return type of a gcc2
6061 builtin and then its argument prototype would still apply. */
6062 char strcasecmp();
6064 int main() {
6065 strcasecmp()
6066 ; return 0; }
6068 if { (eval echo configure:6069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6069 rm -rf conftest*
6070 eval "ac_cv_lib_$ac_lib_var=yes"
6071 else
6072 echo "configure: failed program was:" >&5
6073 cat conftest.$ac_ext >&5
6074 rm -rf conftest*
6075 eval "ac_cv_lib_$ac_lib_var=no"
6077 rm -f conftest*
6078 LIBS="$ac_save_LIBS"
6081 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6082 echo "$ac_t""yes" 1>&6
6083 LIBS="$LIBS -lresolv"
6084 cat >> confdefs.h <<\EOF
6085 #define HAVE_STRCASECMP 1
6088 else
6089 echo "$ac_t""no" 1>&6
6095 # Check for the functions putprpwnam, set_auth_parameters,
6096 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
6097 # Needed for OSF1 and HPUX.
6100 case "$LIBS" in
6101 *-lsecurity*) for ac_func in putprpwnam
6103 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6104 echo "configure:6105: checking for $ac_func" >&5
6105 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6106 echo $ac_n "(cached) $ac_c" 1>&6
6107 else
6108 cat > conftest.$ac_ext <<EOF
6109 #line 6110 "configure"
6110 #include "confdefs.h"
6111 /* System header to define __stub macros and hopefully few prototypes,
6112 which can conflict with char $ac_func(); below. */
6113 #include <assert.h>
6114 /* Override any gcc2 internal prototype to avoid an error. */
6115 /* We use char because int might match the return type of a gcc2
6116 builtin and then its argument prototype would still apply. */
6117 char $ac_func();
6119 int main() {
6121 /* The GNU C library defines this for functions which it implements
6122 to always fail with ENOSYS. Some functions are actually named
6123 something starting with __ and the normal name is an alias. */
6124 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6125 choke me
6126 #else
6127 $ac_func();
6128 #endif
6130 ; return 0; }
6132 if { (eval echo configure:6133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6133 rm -rf conftest*
6134 eval "ac_cv_func_$ac_func=yes"
6135 else
6136 echo "configure: failed program was:" >&5
6137 cat conftest.$ac_ext >&5
6138 rm -rf conftest*
6139 eval "ac_cv_func_$ac_func=no"
6141 rm -f conftest*
6144 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6145 echo "$ac_t""yes" 1>&6
6146 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6147 cat >> confdefs.h <<EOF
6148 #define $ac_tr_func 1
6151 else
6152 echo "$ac_t""no" 1>&6
6154 done
6156 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
6157 echo "configure:6158: checking for putprpwnam in -lsecurity" >&5
6158 ac_lib_var=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
6159 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6160 echo $ac_n "(cached) $ac_c" 1>&6
6161 else
6162 ac_save_LIBS="$LIBS"
6163 LIBS="-lsecurity $LIBS"
6164 cat > conftest.$ac_ext <<EOF
6165 #line 6166 "configure"
6166 #include "confdefs.h"
6167 /* Override any gcc2 internal prototype to avoid an error. */
6168 /* We use char because int might match the return type of a gcc2
6169 builtin and then its argument prototype would still apply. */
6170 char putprpwnam();
6172 int main() {
6173 putprpwnam()
6174 ; return 0; }
6176 if { (eval echo configure:6177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6177 rm -rf conftest*
6178 eval "ac_cv_lib_$ac_lib_var=yes"
6179 else
6180 echo "configure: failed program was:" >&5
6181 cat conftest.$ac_ext >&5
6182 rm -rf conftest*
6183 eval "ac_cv_lib_$ac_lib_var=no"
6185 rm -f conftest*
6186 LIBS="$ac_save_LIBS"
6189 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6190 echo "$ac_t""yes" 1>&6
6191 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6192 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6193 cat >> confdefs.h <<EOF
6194 #define $ac_tr_lib 1
6197 LIBS="-lsecurity $LIBS"
6199 else
6200 echo "$ac_t""no" 1>&6
6203 for ac_func in putprpwnam
6205 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6206 echo "configure:6207: checking for $ac_func" >&5
6207 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6208 echo $ac_n "(cached) $ac_c" 1>&6
6209 else
6210 cat > conftest.$ac_ext <<EOF
6211 #line 6212 "configure"
6212 #include "confdefs.h"
6213 /* System header to define __stub macros and hopefully few prototypes,
6214 which can conflict with char $ac_func(); below. */
6215 #include <assert.h>
6216 /* Override any gcc2 internal prototype to avoid an error. */
6217 /* We use char because int might match the return type of a gcc2
6218 builtin and then its argument prototype would still apply. */
6219 char $ac_func();
6221 int main() {
6223 /* The GNU C library defines this for functions which it implements
6224 to always fail with ENOSYS. Some functions are actually named
6225 something starting with __ and the normal name is an alias. */
6226 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6227 choke me
6228 #else
6229 $ac_func();
6230 #endif
6232 ; return 0; }
6234 if { (eval echo configure:6235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6235 rm -rf conftest*
6236 eval "ac_cv_func_$ac_func=yes"
6237 else
6238 echo "configure: failed program was:" >&5
6239 cat conftest.$ac_ext >&5
6240 rm -rf conftest*
6241 eval "ac_cv_func_$ac_func=no"
6243 rm -f conftest*
6246 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6247 echo "$ac_t""yes" 1>&6
6248 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6249 cat >> confdefs.h <<EOF
6250 #define $ac_tr_func 1
6253 else
6254 echo "$ac_t""no" 1>&6
6256 done
6259 esac
6261 case "$LIBS" in
6262 *-lsec*) for ac_func in putprpwnam
6264 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6265 echo "configure:6266: checking for $ac_func" >&5
6266 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6267 echo $ac_n "(cached) $ac_c" 1>&6
6268 else
6269 cat > conftest.$ac_ext <<EOF
6270 #line 6271 "configure"
6271 #include "confdefs.h"
6272 /* System header to define __stub macros and hopefully few prototypes,
6273 which can conflict with char $ac_func(); below. */
6274 #include <assert.h>
6275 /* Override any gcc2 internal prototype to avoid an error. */
6276 /* We use char because int might match the return type of a gcc2
6277 builtin and then its argument prototype would still apply. */
6278 char $ac_func();
6280 int main() {
6282 /* The GNU C library defines this for functions which it implements
6283 to always fail with ENOSYS. Some functions are actually named
6284 something starting with __ and the normal name is an alias. */
6285 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6286 choke me
6287 #else
6288 $ac_func();
6289 #endif
6291 ; return 0; }
6293 if { (eval echo configure:6294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6294 rm -rf conftest*
6295 eval "ac_cv_func_$ac_func=yes"
6296 else
6297 echo "configure: failed program was:" >&5
6298 cat conftest.$ac_ext >&5
6299 rm -rf conftest*
6300 eval "ac_cv_func_$ac_func=no"
6302 rm -f conftest*
6305 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6306 echo "$ac_t""yes" 1>&6
6307 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6308 cat >> confdefs.h <<EOF
6309 #define $ac_tr_func 1
6312 else
6313 echo "$ac_t""no" 1>&6
6315 done
6317 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
6318 echo "configure:6319: checking for putprpwnam in -lsec" >&5
6319 ac_lib_var=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
6320 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6321 echo $ac_n "(cached) $ac_c" 1>&6
6322 else
6323 ac_save_LIBS="$LIBS"
6324 LIBS="-lsec $LIBS"
6325 cat > conftest.$ac_ext <<EOF
6326 #line 6327 "configure"
6327 #include "confdefs.h"
6328 /* Override any gcc2 internal prototype to avoid an error. */
6329 /* We use char because int might match the return type of a gcc2
6330 builtin and then its argument prototype would still apply. */
6331 char putprpwnam();
6333 int main() {
6334 putprpwnam()
6335 ; return 0; }
6337 if { (eval echo configure:6338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6338 rm -rf conftest*
6339 eval "ac_cv_lib_$ac_lib_var=yes"
6340 else
6341 echo "configure: failed program was:" >&5
6342 cat conftest.$ac_ext >&5
6343 rm -rf conftest*
6344 eval "ac_cv_lib_$ac_lib_var=no"
6346 rm -f conftest*
6347 LIBS="$ac_save_LIBS"
6350 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6351 echo "$ac_t""yes" 1>&6
6352 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6353 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6354 cat >> confdefs.h <<EOF
6355 #define $ac_tr_lib 1
6358 LIBS="-lsec $LIBS"
6360 else
6361 echo "$ac_t""no" 1>&6
6364 for ac_func in putprpwnam
6366 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6367 echo "configure:6368: checking for $ac_func" >&5
6368 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6369 echo $ac_n "(cached) $ac_c" 1>&6
6370 else
6371 cat > conftest.$ac_ext <<EOF
6372 #line 6373 "configure"
6373 #include "confdefs.h"
6374 /* System header to define __stub macros and hopefully few prototypes,
6375 which can conflict with char $ac_func(); below. */
6376 #include <assert.h>
6377 /* Override any gcc2 internal prototype to avoid an error. */
6378 /* We use char because int might match the return type of a gcc2
6379 builtin and then its argument prototype would still apply. */
6380 char $ac_func();
6382 int main() {
6384 /* The GNU C library defines this for functions which it implements
6385 to always fail with ENOSYS. Some functions are actually named
6386 something starting with __ and the normal name is an alias. */
6387 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6388 choke me
6389 #else
6390 $ac_func();
6391 #endif
6393 ; return 0; }
6395 if { (eval echo configure:6396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6396 rm -rf conftest*
6397 eval "ac_cv_func_$ac_func=yes"
6398 else
6399 echo "configure: failed program was:" >&5
6400 cat conftest.$ac_ext >&5
6401 rm -rf conftest*
6402 eval "ac_cv_func_$ac_func=no"
6404 rm -f conftest*
6407 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6408 echo "$ac_t""yes" 1>&6
6409 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6410 cat >> confdefs.h <<EOF
6411 #define $ac_tr_func 1
6414 else
6415 echo "$ac_t""no" 1>&6
6417 done
6420 esac
6423 case "$LIBS" in
6424 *-lsecurity*) for ac_func in set_auth_parameters
6426 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6427 echo "configure:6428: checking for $ac_func" >&5
6428 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6429 echo $ac_n "(cached) $ac_c" 1>&6
6430 else
6431 cat > conftest.$ac_ext <<EOF
6432 #line 6433 "configure"
6433 #include "confdefs.h"
6434 /* System header to define __stub macros and hopefully few prototypes,
6435 which can conflict with char $ac_func(); below. */
6436 #include <assert.h>
6437 /* Override any gcc2 internal prototype to avoid an error. */
6438 /* We use char because int might match the return type of a gcc2
6439 builtin and then its argument prototype would still apply. */
6440 char $ac_func();
6442 int main() {
6444 /* The GNU C library defines this for functions which it implements
6445 to always fail with ENOSYS. Some functions are actually named
6446 something starting with __ and the normal name is an alias. */
6447 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6448 choke me
6449 #else
6450 $ac_func();
6451 #endif
6453 ; return 0; }
6455 if { (eval echo configure:6456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6456 rm -rf conftest*
6457 eval "ac_cv_func_$ac_func=yes"
6458 else
6459 echo "configure: failed program was:" >&5
6460 cat conftest.$ac_ext >&5
6461 rm -rf conftest*
6462 eval "ac_cv_func_$ac_func=no"
6464 rm -f conftest*
6467 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6468 echo "$ac_t""yes" 1>&6
6469 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6470 cat >> confdefs.h <<EOF
6471 #define $ac_tr_func 1
6474 else
6475 echo "$ac_t""no" 1>&6
6477 done
6479 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
6480 echo "configure:6481: checking for set_auth_parameters in -lsecurity" >&5
6481 ac_lib_var=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
6482 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6483 echo $ac_n "(cached) $ac_c" 1>&6
6484 else
6485 ac_save_LIBS="$LIBS"
6486 LIBS="-lsecurity $LIBS"
6487 cat > conftest.$ac_ext <<EOF
6488 #line 6489 "configure"
6489 #include "confdefs.h"
6490 /* Override any gcc2 internal prototype to avoid an error. */
6491 /* We use char because int might match the return type of a gcc2
6492 builtin and then its argument prototype would still apply. */
6493 char set_auth_parameters();
6495 int main() {
6496 set_auth_parameters()
6497 ; return 0; }
6499 if { (eval echo configure:6500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6500 rm -rf conftest*
6501 eval "ac_cv_lib_$ac_lib_var=yes"
6502 else
6503 echo "configure: failed program was:" >&5
6504 cat conftest.$ac_ext >&5
6505 rm -rf conftest*
6506 eval "ac_cv_lib_$ac_lib_var=no"
6508 rm -f conftest*
6509 LIBS="$ac_save_LIBS"
6512 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6513 echo "$ac_t""yes" 1>&6
6514 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6515 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6516 cat >> confdefs.h <<EOF
6517 #define $ac_tr_lib 1
6520 LIBS="-lsecurity $LIBS"
6522 else
6523 echo "$ac_t""no" 1>&6
6526 for ac_func in set_auth_parameters
6528 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6529 echo "configure:6530: checking for $ac_func" >&5
6530 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6531 echo $ac_n "(cached) $ac_c" 1>&6
6532 else
6533 cat > conftest.$ac_ext <<EOF
6534 #line 6535 "configure"
6535 #include "confdefs.h"
6536 /* System header to define __stub macros and hopefully few prototypes,
6537 which can conflict with char $ac_func(); below. */
6538 #include <assert.h>
6539 /* Override any gcc2 internal prototype to avoid an error. */
6540 /* We use char because int might match the return type of a gcc2
6541 builtin and then its argument prototype would still apply. */
6542 char $ac_func();
6544 int main() {
6546 /* The GNU C library defines this for functions which it implements
6547 to always fail with ENOSYS. Some functions are actually named
6548 something starting with __ and the normal name is an alias. */
6549 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6550 choke me
6551 #else
6552 $ac_func();
6553 #endif
6555 ; return 0; }
6557 if { (eval echo configure:6558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6558 rm -rf conftest*
6559 eval "ac_cv_func_$ac_func=yes"
6560 else
6561 echo "configure: failed program was:" >&5
6562 cat conftest.$ac_ext >&5
6563 rm -rf conftest*
6564 eval "ac_cv_func_$ac_func=no"
6566 rm -f conftest*
6569 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6570 echo "$ac_t""yes" 1>&6
6571 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6572 cat >> confdefs.h <<EOF
6573 #define $ac_tr_func 1
6576 else
6577 echo "$ac_t""no" 1>&6
6579 done
6582 esac
6584 case "$LIBS" in
6585 *-lsec*) for ac_func in set_auth_parameters
6587 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6588 echo "configure:6589: checking for $ac_func" >&5
6589 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6590 echo $ac_n "(cached) $ac_c" 1>&6
6591 else
6592 cat > conftest.$ac_ext <<EOF
6593 #line 6594 "configure"
6594 #include "confdefs.h"
6595 /* System header to define __stub macros and hopefully few prototypes,
6596 which can conflict with char $ac_func(); below. */
6597 #include <assert.h>
6598 /* Override any gcc2 internal prototype to avoid an error. */
6599 /* We use char because int might match the return type of a gcc2
6600 builtin and then its argument prototype would still apply. */
6601 char $ac_func();
6603 int main() {
6605 /* The GNU C library defines this for functions which it implements
6606 to always fail with ENOSYS. Some functions are actually named
6607 something starting with __ and the normal name is an alias. */
6608 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6609 choke me
6610 #else
6611 $ac_func();
6612 #endif
6614 ; return 0; }
6616 if { (eval echo configure:6617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6617 rm -rf conftest*
6618 eval "ac_cv_func_$ac_func=yes"
6619 else
6620 echo "configure: failed program was:" >&5
6621 cat conftest.$ac_ext >&5
6622 rm -rf conftest*
6623 eval "ac_cv_func_$ac_func=no"
6625 rm -f conftest*
6628 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6629 echo "$ac_t""yes" 1>&6
6630 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6631 cat >> confdefs.h <<EOF
6632 #define $ac_tr_func 1
6635 else
6636 echo "$ac_t""no" 1>&6
6638 done
6640 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
6641 echo "configure:6642: checking for set_auth_parameters in -lsec" >&5
6642 ac_lib_var=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
6643 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6644 echo $ac_n "(cached) $ac_c" 1>&6
6645 else
6646 ac_save_LIBS="$LIBS"
6647 LIBS="-lsec $LIBS"
6648 cat > conftest.$ac_ext <<EOF
6649 #line 6650 "configure"
6650 #include "confdefs.h"
6651 /* Override any gcc2 internal prototype to avoid an error. */
6652 /* We use char because int might match the return type of a gcc2
6653 builtin and then its argument prototype would still apply. */
6654 char set_auth_parameters();
6656 int main() {
6657 set_auth_parameters()
6658 ; return 0; }
6660 if { (eval echo configure:6661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6661 rm -rf conftest*
6662 eval "ac_cv_lib_$ac_lib_var=yes"
6663 else
6664 echo "configure: failed program was:" >&5
6665 cat conftest.$ac_ext >&5
6666 rm -rf conftest*
6667 eval "ac_cv_lib_$ac_lib_var=no"
6669 rm -f conftest*
6670 LIBS="$ac_save_LIBS"
6673 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6674 echo "$ac_t""yes" 1>&6
6675 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6676 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6677 cat >> confdefs.h <<EOF
6678 #define $ac_tr_lib 1
6681 LIBS="-lsec $LIBS"
6683 else
6684 echo "$ac_t""no" 1>&6
6687 for ac_func in set_auth_parameters
6689 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6690 echo "configure:6691: checking for $ac_func" >&5
6691 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6692 echo $ac_n "(cached) $ac_c" 1>&6
6693 else
6694 cat > conftest.$ac_ext <<EOF
6695 #line 6696 "configure"
6696 #include "confdefs.h"
6697 /* System header to define __stub macros and hopefully few prototypes,
6698 which can conflict with char $ac_func(); below. */
6699 #include <assert.h>
6700 /* Override any gcc2 internal prototype to avoid an error. */
6701 /* We use char because int might match the return type of a gcc2
6702 builtin and then its argument prototype would still apply. */
6703 char $ac_func();
6705 int main() {
6707 /* The GNU C library defines this for functions which it implements
6708 to always fail with ENOSYS. Some functions are actually named
6709 something starting with __ and the normal name is an alias. */
6710 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6711 choke me
6712 #else
6713 $ac_func();
6714 #endif
6716 ; return 0; }
6718 if { (eval echo configure:6719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6719 rm -rf conftest*
6720 eval "ac_cv_func_$ac_func=yes"
6721 else
6722 echo "configure: failed program was:" >&5
6723 cat conftest.$ac_ext >&5
6724 rm -rf conftest*
6725 eval "ac_cv_func_$ac_func=no"
6727 rm -f conftest*
6730 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6731 echo "$ac_t""yes" 1>&6
6732 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6733 cat >> confdefs.h <<EOF
6734 #define $ac_tr_func 1
6737 else
6738 echo "$ac_t""no" 1>&6
6740 done
6743 esac
6746 # UnixWare 7.x has its getspnam in -lgen
6747 case "$LIBS" in
6748 *-lgen*) for ac_func in getspnam
6750 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6751 echo "configure:6752: checking for $ac_func" >&5
6752 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6753 echo $ac_n "(cached) $ac_c" 1>&6
6754 else
6755 cat > conftest.$ac_ext <<EOF
6756 #line 6757 "configure"
6757 #include "confdefs.h"
6758 /* System header to define __stub macros and hopefully few prototypes,
6759 which can conflict with char $ac_func(); below. */
6760 #include <assert.h>
6761 /* Override any gcc2 internal prototype to avoid an error. */
6762 /* We use char because int might match the return type of a gcc2
6763 builtin and then its argument prototype would still apply. */
6764 char $ac_func();
6766 int main() {
6768 /* The GNU C library defines this for functions which it implements
6769 to always fail with ENOSYS. Some functions are actually named
6770 something starting with __ and the normal name is an alias. */
6771 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6772 choke me
6773 #else
6774 $ac_func();
6775 #endif
6777 ; return 0; }
6779 if { (eval echo configure:6780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6780 rm -rf conftest*
6781 eval "ac_cv_func_$ac_func=yes"
6782 else
6783 echo "configure: failed program was:" >&5
6784 cat conftest.$ac_ext >&5
6785 rm -rf conftest*
6786 eval "ac_cv_func_$ac_func=no"
6788 rm -f conftest*
6791 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6792 echo "$ac_t""yes" 1>&6
6793 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6794 cat >> confdefs.h <<EOF
6795 #define $ac_tr_func 1
6798 else
6799 echo "$ac_t""no" 1>&6
6801 done
6803 *) echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
6804 echo "configure:6805: checking for getspnam in -lgen" >&5
6805 ac_lib_var=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
6806 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6807 echo $ac_n "(cached) $ac_c" 1>&6
6808 else
6809 ac_save_LIBS="$LIBS"
6810 LIBS="-lgen $LIBS"
6811 cat > conftest.$ac_ext <<EOF
6812 #line 6813 "configure"
6813 #include "confdefs.h"
6814 /* Override any gcc2 internal prototype to avoid an error. */
6815 /* We use char because int might match the return type of a gcc2
6816 builtin and then its argument prototype would still apply. */
6817 char getspnam();
6819 int main() {
6820 getspnam()
6821 ; return 0; }
6823 if { (eval echo configure:6824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6824 rm -rf conftest*
6825 eval "ac_cv_lib_$ac_lib_var=yes"
6826 else
6827 echo "configure: failed program was:" >&5
6828 cat conftest.$ac_ext >&5
6829 rm -rf conftest*
6830 eval "ac_cv_lib_$ac_lib_var=no"
6832 rm -f conftest*
6833 LIBS="$ac_save_LIBS"
6836 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6837 echo "$ac_t""yes" 1>&6
6838 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6839 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6840 cat >> confdefs.h <<EOF
6841 #define $ac_tr_lib 1
6844 LIBS="-lgen $LIBS"
6846 else
6847 echo "$ac_t""no" 1>&6
6850 for ac_func in getspnam
6852 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6853 echo "configure:6854: checking for $ac_func" >&5
6854 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6855 echo $ac_n "(cached) $ac_c" 1>&6
6856 else
6857 cat > conftest.$ac_ext <<EOF
6858 #line 6859 "configure"
6859 #include "confdefs.h"
6860 /* System header to define __stub macros and hopefully few prototypes,
6861 which can conflict with char $ac_func(); below. */
6862 #include <assert.h>
6863 /* Override any gcc2 internal prototype to avoid an error. */
6864 /* We use char because int might match the return type of a gcc2
6865 builtin and then its argument prototype would still apply. */
6866 char $ac_func();
6868 int main() {
6870 /* The GNU C library defines this for functions which it implements
6871 to always fail with ENOSYS. Some functions are actually named
6872 something starting with __ and the normal name is an alias. */
6873 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6874 choke me
6875 #else
6876 $ac_func();
6877 #endif
6879 ; return 0; }
6881 if { (eval echo configure:6882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6882 rm -rf conftest*
6883 eval "ac_cv_func_$ac_func=yes"
6884 else
6885 echo "configure: failed program was:" >&5
6886 cat conftest.$ac_ext >&5
6887 rm -rf conftest*
6888 eval "ac_cv_func_$ac_func=no"
6890 rm -f conftest*
6893 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6894 echo "$ac_t""yes" 1>&6
6895 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6896 cat >> confdefs.h <<EOF
6897 #define $ac_tr_func 1
6900 else
6901 echo "$ac_t""no" 1>&6
6903 done
6906 esac
6909 case "$LIBS" in
6910 *-lsecurity*) for ac_func in getspnam
6912 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6913 echo "configure:6914: checking for $ac_func" >&5
6914 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6915 echo $ac_n "(cached) $ac_c" 1>&6
6916 else
6917 cat > conftest.$ac_ext <<EOF
6918 #line 6919 "configure"
6919 #include "confdefs.h"
6920 /* System header to define __stub macros and hopefully few prototypes,
6921 which can conflict with char $ac_func(); below. */
6922 #include <assert.h>
6923 /* Override any gcc2 internal prototype to avoid an error. */
6924 /* We use char because int might match the return type of a gcc2
6925 builtin and then its argument prototype would still apply. */
6926 char $ac_func();
6928 int main() {
6930 /* The GNU C library defines this for functions which it implements
6931 to always fail with ENOSYS. Some functions are actually named
6932 something starting with __ and the normal name is an alias. */
6933 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6934 choke me
6935 #else
6936 $ac_func();
6937 #endif
6939 ; return 0; }
6941 if { (eval echo configure:6942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6942 rm -rf conftest*
6943 eval "ac_cv_func_$ac_func=yes"
6944 else
6945 echo "configure: failed program was:" >&5
6946 cat conftest.$ac_ext >&5
6947 rm -rf conftest*
6948 eval "ac_cv_func_$ac_func=no"
6950 rm -f conftest*
6953 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6954 echo "$ac_t""yes" 1>&6
6955 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6956 cat >> confdefs.h <<EOF
6957 #define $ac_tr_func 1
6960 else
6961 echo "$ac_t""no" 1>&6
6963 done
6965 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
6966 echo "configure:6967: checking for getspnam in -lsecurity" >&5
6967 ac_lib_var=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
6968 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6969 echo $ac_n "(cached) $ac_c" 1>&6
6970 else
6971 ac_save_LIBS="$LIBS"
6972 LIBS="-lsecurity $LIBS"
6973 cat > conftest.$ac_ext <<EOF
6974 #line 6975 "configure"
6975 #include "confdefs.h"
6976 /* Override any gcc2 internal prototype to avoid an error. */
6977 /* We use char because int might match the return type of a gcc2
6978 builtin and then its argument prototype would still apply. */
6979 char getspnam();
6981 int main() {
6982 getspnam()
6983 ; return 0; }
6985 if { (eval echo configure:6986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6986 rm -rf conftest*
6987 eval "ac_cv_lib_$ac_lib_var=yes"
6988 else
6989 echo "configure: failed program was:" >&5
6990 cat conftest.$ac_ext >&5
6991 rm -rf conftest*
6992 eval "ac_cv_lib_$ac_lib_var=no"
6994 rm -f conftest*
6995 LIBS="$ac_save_LIBS"
6998 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6999 echo "$ac_t""yes" 1>&6
7000 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7001 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7002 cat >> confdefs.h <<EOF
7003 #define $ac_tr_lib 1
7006 LIBS="-lsecurity $LIBS"
7008 else
7009 echo "$ac_t""no" 1>&6
7012 for ac_func in getspnam
7014 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7015 echo "configure:7016: checking for $ac_func" >&5
7016 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7017 echo $ac_n "(cached) $ac_c" 1>&6
7018 else
7019 cat > conftest.$ac_ext <<EOF
7020 #line 7021 "configure"
7021 #include "confdefs.h"
7022 /* System header to define __stub macros and hopefully few prototypes,
7023 which can conflict with char $ac_func(); below. */
7024 #include <assert.h>
7025 /* Override any gcc2 internal prototype to avoid an error. */
7026 /* We use char because int might match the return type of a gcc2
7027 builtin and then its argument prototype would still apply. */
7028 char $ac_func();
7030 int main() {
7032 /* The GNU C library defines this for functions which it implements
7033 to always fail with ENOSYS. Some functions are actually named
7034 something starting with __ and the normal name is an alias. */
7035 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7036 choke me
7037 #else
7038 $ac_func();
7039 #endif
7041 ; return 0; }
7043 if { (eval echo configure:7044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7044 rm -rf conftest*
7045 eval "ac_cv_func_$ac_func=yes"
7046 else
7047 echo "configure: failed program was:" >&5
7048 cat conftest.$ac_ext >&5
7049 rm -rf conftest*
7050 eval "ac_cv_func_$ac_func=no"
7052 rm -f conftest*
7055 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7056 echo "$ac_t""yes" 1>&6
7057 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7058 cat >> confdefs.h <<EOF
7059 #define $ac_tr_func 1
7062 else
7063 echo "$ac_t""no" 1>&6
7065 done
7068 esac
7070 case "$LIBS" in
7071 *-lsec*) for ac_func in getspnam
7073 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7074 echo "configure:7075: checking for $ac_func" >&5
7075 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7076 echo $ac_n "(cached) $ac_c" 1>&6
7077 else
7078 cat > conftest.$ac_ext <<EOF
7079 #line 7080 "configure"
7080 #include "confdefs.h"
7081 /* System header to define __stub macros and hopefully few prototypes,
7082 which can conflict with char $ac_func(); below. */
7083 #include <assert.h>
7084 /* Override any gcc2 internal prototype to avoid an error. */
7085 /* We use char because int might match the return type of a gcc2
7086 builtin and then its argument prototype would still apply. */
7087 char $ac_func();
7089 int main() {
7091 /* The GNU C library defines this for functions which it implements
7092 to always fail with ENOSYS. Some functions are actually named
7093 something starting with __ and the normal name is an alias. */
7094 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7095 choke me
7096 #else
7097 $ac_func();
7098 #endif
7100 ; return 0; }
7102 if { (eval echo configure:7103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7103 rm -rf conftest*
7104 eval "ac_cv_func_$ac_func=yes"
7105 else
7106 echo "configure: failed program was:" >&5
7107 cat conftest.$ac_ext >&5
7108 rm -rf conftest*
7109 eval "ac_cv_func_$ac_func=no"
7111 rm -f conftest*
7114 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7115 echo "$ac_t""yes" 1>&6
7116 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7117 cat >> confdefs.h <<EOF
7118 #define $ac_tr_func 1
7121 else
7122 echo "$ac_t""no" 1>&6
7124 done
7126 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
7127 echo "configure:7128: checking for getspnam in -lsec" >&5
7128 ac_lib_var=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
7129 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7130 echo $ac_n "(cached) $ac_c" 1>&6
7131 else
7132 ac_save_LIBS="$LIBS"
7133 LIBS="-lsec $LIBS"
7134 cat > conftest.$ac_ext <<EOF
7135 #line 7136 "configure"
7136 #include "confdefs.h"
7137 /* Override any gcc2 internal prototype to avoid an error. */
7138 /* We use char because int might match the return type of a gcc2
7139 builtin and then its argument prototype would still apply. */
7140 char getspnam();
7142 int main() {
7143 getspnam()
7144 ; return 0; }
7146 if { (eval echo configure:7147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7147 rm -rf conftest*
7148 eval "ac_cv_lib_$ac_lib_var=yes"
7149 else
7150 echo "configure: failed program was:" >&5
7151 cat conftest.$ac_ext >&5
7152 rm -rf conftest*
7153 eval "ac_cv_lib_$ac_lib_var=no"
7155 rm -f conftest*
7156 LIBS="$ac_save_LIBS"
7159 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7160 echo "$ac_t""yes" 1>&6
7161 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7162 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7163 cat >> confdefs.h <<EOF
7164 #define $ac_tr_lib 1
7167 LIBS="-lsec $LIBS"
7169 else
7170 echo "$ac_t""no" 1>&6
7173 for ac_func in getspnam
7175 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7176 echo "configure:7177: checking for $ac_func" >&5
7177 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7178 echo $ac_n "(cached) $ac_c" 1>&6
7179 else
7180 cat > conftest.$ac_ext <<EOF
7181 #line 7182 "configure"
7182 #include "confdefs.h"
7183 /* System header to define __stub macros and hopefully few prototypes,
7184 which can conflict with char $ac_func(); below. */
7185 #include <assert.h>
7186 /* Override any gcc2 internal prototype to avoid an error. */
7187 /* We use char because int might match the return type of a gcc2
7188 builtin and then its argument prototype would still apply. */
7189 char $ac_func();
7191 int main() {
7193 /* The GNU C library defines this for functions which it implements
7194 to always fail with ENOSYS. Some functions are actually named
7195 something starting with __ and the normal name is an alias. */
7196 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7197 choke me
7198 #else
7199 $ac_func();
7200 #endif
7202 ; return 0; }
7204 if { (eval echo configure:7205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7205 rm -rf conftest*
7206 eval "ac_cv_func_$ac_func=yes"
7207 else
7208 echo "configure: failed program was:" >&5
7209 cat conftest.$ac_ext >&5
7210 rm -rf conftest*
7211 eval "ac_cv_func_$ac_func=no"
7213 rm -f conftest*
7216 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7217 echo "$ac_t""yes" 1>&6
7218 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7219 cat >> confdefs.h <<EOF
7220 #define $ac_tr_func 1
7223 else
7224 echo "$ac_t""no" 1>&6
7226 done
7229 esac
7232 case "$LIBS" in
7233 *-lsecurity*) for ac_func in bigcrypt
7235 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7236 echo "configure:7237: checking for $ac_func" >&5
7237 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7238 echo $ac_n "(cached) $ac_c" 1>&6
7239 else
7240 cat > conftest.$ac_ext <<EOF
7241 #line 7242 "configure"
7242 #include "confdefs.h"
7243 /* System header to define __stub macros and hopefully few prototypes,
7244 which can conflict with char $ac_func(); below. */
7245 #include <assert.h>
7246 /* Override any gcc2 internal prototype to avoid an error. */
7247 /* We use char because int might match the return type of a gcc2
7248 builtin and then its argument prototype would still apply. */
7249 char $ac_func();
7251 int main() {
7253 /* The GNU C library defines this for functions which it implements
7254 to always fail with ENOSYS. Some functions are actually named
7255 something starting with __ and the normal name is an alias. */
7256 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7257 choke me
7258 #else
7259 $ac_func();
7260 #endif
7262 ; return 0; }
7264 if { (eval echo configure:7265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7265 rm -rf conftest*
7266 eval "ac_cv_func_$ac_func=yes"
7267 else
7268 echo "configure: failed program was:" >&5
7269 cat conftest.$ac_ext >&5
7270 rm -rf conftest*
7271 eval "ac_cv_func_$ac_func=no"
7273 rm -f conftest*
7276 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7277 echo "$ac_t""yes" 1>&6
7278 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7279 cat >> confdefs.h <<EOF
7280 #define $ac_tr_func 1
7283 else
7284 echo "$ac_t""no" 1>&6
7286 done
7288 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
7289 echo "configure:7290: checking for bigcrypt in -lsecurity" >&5
7290 ac_lib_var=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
7291 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7292 echo $ac_n "(cached) $ac_c" 1>&6
7293 else
7294 ac_save_LIBS="$LIBS"
7295 LIBS="-lsecurity $LIBS"
7296 cat > conftest.$ac_ext <<EOF
7297 #line 7298 "configure"
7298 #include "confdefs.h"
7299 /* Override any gcc2 internal prototype to avoid an error. */
7300 /* We use char because int might match the return type of a gcc2
7301 builtin and then its argument prototype would still apply. */
7302 char bigcrypt();
7304 int main() {
7305 bigcrypt()
7306 ; return 0; }
7308 if { (eval echo configure:7309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7309 rm -rf conftest*
7310 eval "ac_cv_lib_$ac_lib_var=yes"
7311 else
7312 echo "configure: failed program was:" >&5
7313 cat conftest.$ac_ext >&5
7314 rm -rf conftest*
7315 eval "ac_cv_lib_$ac_lib_var=no"
7317 rm -f conftest*
7318 LIBS="$ac_save_LIBS"
7321 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7322 echo "$ac_t""yes" 1>&6
7323 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7324 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7325 cat >> confdefs.h <<EOF
7326 #define $ac_tr_lib 1
7329 LIBS="-lsecurity $LIBS"
7331 else
7332 echo "$ac_t""no" 1>&6
7335 for ac_func in bigcrypt
7337 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7338 echo "configure:7339: checking for $ac_func" >&5
7339 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7340 echo $ac_n "(cached) $ac_c" 1>&6
7341 else
7342 cat > conftest.$ac_ext <<EOF
7343 #line 7344 "configure"
7344 #include "confdefs.h"
7345 /* System header to define __stub macros and hopefully few prototypes,
7346 which can conflict with char $ac_func(); below. */
7347 #include <assert.h>
7348 /* Override any gcc2 internal prototype to avoid an error. */
7349 /* We use char because int might match the return type of a gcc2
7350 builtin and then its argument prototype would still apply. */
7351 char $ac_func();
7353 int main() {
7355 /* The GNU C library defines this for functions which it implements
7356 to always fail with ENOSYS. Some functions are actually named
7357 something starting with __ and the normal name is an alias. */
7358 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7359 choke me
7360 #else
7361 $ac_func();
7362 #endif
7364 ; return 0; }
7366 if { (eval echo configure:7367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7367 rm -rf conftest*
7368 eval "ac_cv_func_$ac_func=yes"
7369 else
7370 echo "configure: failed program was:" >&5
7371 cat conftest.$ac_ext >&5
7372 rm -rf conftest*
7373 eval "ac_cv_func_$ac_func=no"
7375 rm -f conftest*
7378 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7379 echo "$ac_t""yes" 1>&6
7380 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7381 cat >> confdefs.h <<EOF
7382 #define $ac_tr_func 1
7385 else
7386 echo "$ac_t""no" 1>&6
7388 done
7391 esac
7393 case "$LIBS" in
7394 *-lsec*) for ac_func in bigcrypt
7396 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7397 echo "configure:7398: checking for $ac_func" >&5
7398 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7399 echo $ac_n "(cached) $ac_c" 1>&6
7400 else
7401 cat > conftest.$ac_ext <<EOF
7402 #line 7403 "configure"
7403 #include "confdefs.h"
7404 /* System header to define __stub macros and hopefully few prototypes,
7405 which can conflict with char $ac_func(); below. */
7406 #include <assert.h>
7407 /* Override any gcc2 internal prototype to avoid an error. */
7408 /* We use char because int might match the return type of a gcc2
7409 builtin and then its argument prototype would still apply. */
7410 char $ac_func();
7412 int main() {
7414 /* The GNU C library defines this for functions which it implements
7415 to always fail with ENOSYS. Some functions are actually named
7416 something starting with __ and the normal name is an alias. */
7417 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7418 choke me
7419 #else
7420 $ac_func();
7421 #endif
7423 ; return 0; }
7425 if { (eval echo configure:7426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7426 rm -rf conftest*
7427 eval "ac_cv_func_$ac_func=yes"
7428 else
7429 echo "configure: failed program was:" >&5
7430 cat conftest.$ac_ext >&5
7431 rm -rf conftest*
7432 eval "ac_cv_func_$ac_func=no"
7434 rm -f conftest*
7437 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7438 echo "$ac_t""yes" 1>&6
7439 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7440 cat >> confdefs.h <<EOF
7441 #define $ac_tr_func 1
7444 else
7445 echo "$ac_t""no" 1>&6
7447 done
7449 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
7450 echo "configure:7451: checking for bigcrypt in -lsec" >&5
7451 ac_lib_var=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
7452 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7453 echo $ac_n "(cached) $ac_c" 1>&6
7454 else
7455 ac_save_LIBS="$LIBS"
7456 LIBS="-lsec $LIBS"
7457 cat > conftest.$ac_ext <<EOF
7458 #line 7459 "configure"
7459 #include "confdefs.h"
7460 /* Override any gcc2 internal prototype to avoid an error. */
7461 /* We use char because int might match the return type of a gcc2
7462 builtin and then its argument prototype would still apply. */
7463 char bigcrypt();
7465 int main() {
7466 bigcrypt()
7467 ; return 0; }
7469 if { (eval echo configure:7470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7470 rm -rf conftest*
7471 eval "ac_cv_lib_$ac_lib_var=yes"
7472 else
7473 echo "configure: failed program was:" >&5
7474 cat conftest.$ac_ext >&5
7475 rm -rf conftest*
7476 eval "ac_cv_lib_$ac_lib_var=no"
7478 rm -f conftest*
7479 LIBS="$ac_save_LIBS"
7482 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7483 echo "$ac_t""yes" 1>&6
7484 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7485 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7486 cat >> confdefs.h <<EOF
7487 #define $ac_tr_lib 1
7490 LIBS="-lsec $LIBS"
7492 else
7493 echo "$ac_t""no" 1>&6
7496 for ac_func in bigcrypt
7498 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7499 echo "configure:7500: checking for $ac_func" >&5
7500 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7501 echo $ac_n "(cached) $ac_c" 1>&6
7502 else
7503 cat > conftest.$ac_ext <<EOF
7504 #line 7505 "configure"
7505 #include "confdefs.h"
7506 /* System header to define __stub macros and hopefully few prototypes,
7507 which can conflict with char $ac_func(); below. */
7508 #include <assert.h>
7509 /* Override any gcc2 internal prototype to avoid an error. */
7510 /* We use char because int might match the return type of a gcc2
7511 builtin and then its argument prototype would still apply. */
7512 char $ac_func();
7514 int main() {
7516 /* The GNU C library defines this for functions which it implements
7517 to always fail with ENOSYS. Some functions are actually named
7518 something starting with __ and the normal name is an alias. */
7519 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7520 choke me
7521 #else
7522 $ac_func();
7523 #endif
7525 ; return 0; }
7527 if { (eval echo configure:7528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7528 rm -rf conftest*
7529 eval "ac_cv_func_$ac_func=yes"
7530 else
7531 echo "configure: failed program was:" >&5
7532 cat conftest.$ac_ext >&5
7533 rm -rf conftest*
7534 eval "ac_cv_func_$ac_func=no"
7536 rm -f conftest*
7539 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7540 echo "$ac_t""yes" 1>&6
7541 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7542 cat >> confdefs.h <<EOF
7543 #define $ac_tr_func 1
7546 else
7547 echo "$ac_t""no" 1>&6
7549 done
7552 esac
7555 case "$LIBS" in
7556 *-lsecurity*) for ac_func in getprpwnam
7558 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7559 echo "configure:7560: checking for $ac_func" >&5
7560 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7561 echo $ac_n "(cached) $ac_c" 1>&6
7562 else
7563 cat > conftest.$ac_ext <<EOF
7564 #line 7565 "configure"
7565 #include "confdefs.h"
7566 /* System header to define __stub macros and hopefully few prototypes,
7567 which can conflict with char $ac_func(); below. */
7568 #include <assert.h>
7569 /* Override any gcc2 internal prototype to avoid an error. */
7570 /* We use char because int might match the return type of a gcc2
7571 builtin and then its argument prototype would still apply. */
7572 char $ac_func();
7574 int main() {
7576 /* The GNU C library defines this for functions which it implements
7577 to always fail with ENOSYS. Some functions are actually named
7578 something starting with __ and the normal name is an alias. */
7579 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7580 choke me
7581 #else
7582 $ac_func();
7583 #endif
7585 ; return 0; }
7587 if { (eval echo configure:7588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7588 rm -rf conftest*
7589 eval "ac_cv_func_$ac_func=yes"
7590 else
7591 echo "configure: failed program was:" >&5
7592 cat conftest.$ac_ext >&5
7593 rm -rf conftest*
7594 eval "ac_cv_func_$ac_func=no"
7596 rm -f conftest*
7599 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7600 echo "$ac_t""yes" 1>&6
7601 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7602 cat >> confdefs.h <<EOF
7603 #define $ac_tr_func 1
7606 else
7607 echo "$ac_t""no" 1>&6
7609 done
7611 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
7612 echo "configure:7613: checking for getprpwnam in -lsecurity" >&5
7613 ac_lib_var=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
7614 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7615 echo $ac_n "(cached) $ac_c" 1>&6
7616 else
7617 ac_save_LIBS="$LIBS"
7618 LIBS="-lsecurity $LIBS"
7619 cat > conftest.$ac_ext <<EOF
7620 #line 7621 "configure"
7621 #include "confdefs.h"
7622 /* Override any gcc2 internal prototype to avoid an error. */
7623 /* We use char because int might match the return type of a gcc2
7624 builtin and then its argument prototype would still apply. */
7625 char getprpwnam();
7627 int main() {
7628 getprpwnam()
7629 ; return 0; }
7631 if { (eval echo configure:7632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7632 rm -rf conftest*
7633 eval "ac_cv_lib_$ac_lib_var=yes"
7634 else
7635 echo "configure: failed program was:" >&5
7636 cat conftest.$ac_ext >&5
7637 rm -rf conftest*
7638 eval "ac_cv_lib_$ac_lib_var=no"
7640 rm -f conftest*
7641 LIBS="$ac_save_LIBS"
7644 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7645 echo "$ac_t""yes" 1>&6
7646 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7647 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7648 cat >> confdefs.h <<EOF
7649 #define $ac_tr_lib 1
7652 LIBS="-lsecurity $LIBS"
7654 else
7655 echo "$ac_t""no" 1>&6
7658 for ac_func in getprpwnam
7660 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7661 echo "configure:7662: checking for $ac_func" >&5
7662 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7663 echo $ac_n "(cached) $ac_c" 1>&6
7664 else
7665 cat > conftest.$ac_ext <<EOF
7666 #line 7667 "configure"
7667 #include "confdefs.h"
7668 /* System header to define __stub macros and hopefully few prototypes,
7669 which can conflict with char $ac_func(); below. */
7670 #include <assert.h>
7671 /* Override any gcc2 internal prototype to avoid an error. */
7672 /* We use char because int might match the return type of a gcc2
7673 builtin and then its argument prototype would still apply. */
7674 char $ac_func();
7676 int main() {
7678 /* The GNU C library defines this for functions which it implements
7679 to always fail with ENOSYS. Some functions are actually named
7680 something starting with __ and the normal name is an alias. */
7681 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7682 choke me
7683 #else
7684 $ac_func();
7685 #endif
7687 ; return 0; }
7689 if { (eval echo configure:7690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7690 rm -rf conftest*
7691 eval "ac_cv_func_$ac_func=yes"
7692 else
7693 echo "configure: failed program was:" >&5
7694 cat conftest.$ac_ext >&5
7695 rm -rf conftest*
7696 eval "ac_cv_func_$ac_func=no"
7698 rm -f conftest*
7701 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7702 echo "$ac_t""yes" 1>&6
7703 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7704 cat >> confdefs.h <<EOF
7705 #define $ac_tr_func 1
7708 else
7709 echo "$ac_t""no" 1>&6
7711 done
7714 esac
7716 case "$LIBS" in
7717 *-lsec*) for ac_func in getprpwnam
7719 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7720 echo "configure:7721: checking for $ac_func" >&5
7721 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7722 echo $ac_n "(cached) $ac_c" 1>&6
7723 else
7724 cat > conftest.$ac_ext <<EOF
7725 #line 7726 "configure"
7726 #include "confdefs.h"
7727 /* System header to define __stub macros and hopefully few prototypes,
7728 which can conflict with char $ac_func(); below. */
7729 #include <assert.h>
7730 /* Override any gcc2 internal prototype to avoid an error. */
7731 /* We use char because int might match the return type of a gcc2
7732 builtin and then its argument prototype would still apply. */
7733 char $ac_func();
7735 int main() {
7737 /* The GNU C library defines this for functions which it implements
7738 to always fail with ENOSYS. Some functions are actually named
7739 something starting with __ and the normal name is an alias. */
7740 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7741 choke me
7742 #else
7743 $ac_func();
7744 #endif
7746 ; return 0; }
7748 if { (eval echo configure:7749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7749 rm -rf conftest*
7750 eval "ac_cv_func_$ac_func=yes"
7751 else
7752 echo "configure: failed program was:" >&5
7753 cat conftest.$ac_ext >&5
7754 rm -rf conftest*
7755 eval "ac_cv_func_$ac_func=no"
7757 rm -f conftest*
7760 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7761 echo "$ac_t""yes" 1>&6
7762 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7763 cat >> confdefs.h <<EOF
7764 #define $ac_tr_func 1
7767 else
7768 echo "$ac_t""no" 1>&6
7770 done
7772 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
7773 echo "configure:7774: checking for getprpwnam in -lsec" >&5
7774 ac_lib_var=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
7775 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7776 echo $ac_n "(cached) $ac_c" 1>&6
7777 else
7778 ac_save_LIBS="$LIBS"
7779 LIBS="-lsec $LIBS"
7780 cat > conftest.$ac_ext <<EOF
7781 #line 7782 "configure"
7782 #include "confdefs.h"
7783 /* Override any gcc2 internal prototype to avoid an error. */
7784 /* We use char because int might match the return type of a gcc2
7785 builtin and then its argument prototype would still apply. */
7786 char getprpwnam();
7788 int main() {
7789 getprpwnam()
7790 ; return 0; }
7792 if { (eval echo configure:7793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7793 rm -rf conftest*
7794 eval "ac_cv_lib_$ac_lib_var=yes"
7795 else
7796 echo "configure: failed program was:" >&5
7797 cat conftest.$ac_ext >&5
7798 rm -rf conftest*
7799 eval "ac_cv_lib_$ac_lib_var=no"
7801 rm -f conftest*
7802 LIBS="$ac_save_LIBS"
7805 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7806 echo "$ac_t""yes" 1>&6
7807 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7808 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7809 cat >> confdefs.h <<EOF
7810 #define $ac_tr_lib 1
7813 LIBS="-lsec $LIBS"
7815 else
7816 echo "$ac_t""no" 1>&6
7819 for ac_func in getprpwnam
7821 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7822 echo "configure:7823: checking for $ac_func" >&5
7823 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7824 echo $ac_n "(cached) $ac_c" 1>&6
7825 else
7826 cat > conftest.$ac_ext <<EOF
7827 #line 7828 "configure"
7828 #include "confdefs.h"
7829 /* System header to define __stub macros and hopefully few prototypes,
7830 which can conflict with char $ac_func(); below. */
7831 #include <assert.h>
7832 /* Override any gcc2 internal prototype to avoid an error. */
7833 /* We use char because int might match the return type of a gcc2
7834 builtin and then its argument prototype would still apply. */
7835 char $ac_func();
7837 int main() {
7839 /* The GNU C library defines this for functions which it implements
7840 to always fail with ENOSYS. Some functions are actually named
7841 something starting with __ and the normal name is an alias. */
7842 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7843 choke me
7844 #else
7845 $ac_func();
7846 #endif
7848 ; return 0; }
7850 if { (eval echo configure:7851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7851 rm -rf conftest*
7852 eval "ac_cv_func_$ac_func=yes"
7853 else
7854 echo "configure: failed program was:" >&5
7855 cat conftest.$ac_ext >&5
7856 rm -rf conftest*
7857 eval "ac_cv_func_$ac_func=no"
7859 rm -f conftest*
7862 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7863 echo "$ac_t""yes" 1>&6
7864 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7865 cat >> confdefs.h <<EOF
7866 #define $ac_tr_func 1
7869 else
7870 echo "$ac_t""no" 1>&6
7872 done
7875 esac
7878 # this bit needs to be modified for each OS that is suported by
7879 # smbwrapper. You need to specify how to created a shared library and
7880 # how to compile C code to produce PIC object files
7882 # these are the defaults, good for lots of systems
7883 HOST_OS="$host_os"
7884 LDSHFLAGS="-shared"
7885 PICFLAG=""
7886 SHLIBEXT="so"
7888 # and these are for particular systems
7889 case "$host_os" in
7890 *linux*) cat >> confdefs.h <<\EOF
7891 #define LINUX 1
7894 *solaris*) cat >> confdefs.h <<\EOF
7895 #define SUNOS5 1
7898 LDSHFLAGS="-G"
7900 *sunos*) cat >> confdefs.h <<\EOF
7901 #define SUNOS4 1
7904 LDSHFLAGS=""
7906 *bsd*) LDSHFLAGS="-shared -Bshareable"
7908 *irix*) cat >> confdefs.h <<\EOF
7909 #define IRIX 1
7912 case "$host_os" in
7913 *irix6*) cat >> confdefs.h <<\EOF
7914 #define IRIX6 1
7918 esac
7919 ATTEMPT_WRAP32_BUILD=yes
7921 *aix*) cat >> confdefs.h <<\EOF
7922 #define AIX 1
7925 *hpux*) cat >> confdefs.h <<\EOF
7926 #define HPUX 1
7929 SHLIBEXT="sl"
7930 # Use special PIC flags for the native HP-UX compiler.
7931 if test $ac_cv_prog_cc_Ae = yes; then
7932 LDSHFLAGS="-b"
7933 PICFLAG="+z"
7936 *qnx*) cat >> confdefs.h <<\EOF
7937 #define QNX 1
7940 *osf*) cat >> confdefs.h <<\EOF
7941 #define OSF1 1
7944 *sco*) cat >> confdefs.h <<\EOF
7945 #define SCO 1
7948 *next2*) cat >> confdefs.h <<\EOF
7949 #define NEXT2 1
7952 *dgux*) # Extract the first word of "groff", so it can be a program name with args.
7953 set dummy groff; ac_word=$2
7954 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7955 echo "configure:7956: checking for $ac_word" >&5
7956 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
7957 echo $ac_n "(cached) $ac_c" 1>&6
7958 else
7959 if test -n "$ROFF"; then
7960 ac_cv_prog_ROFF="$ROFF" # Let the user override the test.
7961 else
7962 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7963 ac_dummy="$PATH"
7964 for ac_dir in $ac_dummy; do
7965 test -z "$ac_dir" && ac_dir=.
7966 if test -f $ac_dir/$ac_word; then
7967 ac_cv_prog_ROFF="groff -etpsR -Tascii -man"
7968 break
7970 done
7971 IFS="$ac_save_ifs"
7974 ROFF="$ac_cv_prog_ROFF"
7975 if test -n "$ROFF"; then
7976 echo "$ac_t""$ROFF" 1>&6
7977 else
7978 echo "$ac_t""no" 1>&6
7981 *sysv4*)
7982 case "$host" in
7983 *-univel-*) if test "$GCC" != yes ; then
7984 cat >> confdefs.h <<\EOF
7985 #define HAVE_MEMSET 1
7989 LDSHFLAGS="-G"
7991 *mips-sni-sysv4*) cat >> confdefs.h <<\EOF
7992 #define RELIANTUNIX 1
7995 esac
7997 *sysv5*)
7998 if test "$GCC" != yes ; then
7999 cat >> confdefs.h <<\EOF
8000 #define HAVE_MEMSET 1
8004 LDSHFLAGS="-G"
8006 esac
8008 # try to work out how to produce pic code with this compiler
8009 echo $ac_n "checking whether ${CC-cc} accepts -fpic""... $ac_c" 1>&6
8010 echo "configure:8011: checking whether ${CC-cc} accepts -fpic" >&5
8011 if eval "test \"`echo '$''{'ac_cv_prog_cc_fpic'+set}'`\" = set"; then
8012 echo $ac_n "(cached) $ac_c" 1>&6
8013 else
8014 echo 'void f(){}' > conftest.c
8015 if test -z "`${CC-cc} -fpic -c conftest.c 2>&1`"; then
8016 ac_cv_prog_cc_fpic=yes
8017 else
8018 ac_cv_prog_cc_fpic=no
8020 rm -f conftest*
8024 echo "$ac_t""$ac_cv_prog_cc_fpic" 1>&6
8025 if test $ac_cv_prog_cc_fpic = yes; then
8026 PICFLAG="-fpic";
8028 if test x$PICFLAG = x; then
8029 echo $ac_n "checking whether ${CC-cc} accepts -Kpic""... $ac_c" 1>&6
8030 echo "configure:8031: checking whether ${CC-cc} accepts -Kpic" >&5
8031 if eval "test \"`echo '$''{'ac_cv_prog_cc_Kpic'+set}'`\" = set"; then
8032 echo $ac_n "(cached) $ac_c" 1>&6
8033 else
8034 echo 'void f(){}' > conftest.c
8035 if test -z "`${CC-cc} -Kpic -c conftest.c 2>&1`"; then
8036 ac_cv_prog_cc_Kpic=yes
8037 else
8038 ac_cv_prog_cc_Kpic=no
8040 rm -f conftest*
8044 echo "$ac_t""$ac_cv_prog_cc_Kpic" 1>&6
8045 if test $ac_cv_prog_cc_Kpic = yes; then
8046 PICFLAG="-Kpic";
8049 if test x$PICFLAG = x; then
8050 echo $ac_n "checking whether ${CC-cc} accepts -KPIC""... $ac_c" 1>&6
8051 echo "configure:8052: checking whether ${CC-cc} accepts -KPIC" >&5
8052 if eval "test \"`echo '$''{'ac_cv_prog_cc_KPIC'+set}'`\" = set"; then
8053 echo $ac_n "(cached) $ac_c" 1>&6
8054 else
8055 echo 'void f(){}' > conftest.c
8056 if test -z "`${CC-cc} -KPIC -c conftest.c 2>&1`"; then
8057 ac_cv_prog_cc_KPIC=yes
8058 else
8059 ac_cv_prog_cc_KPIC=no
8061 rm -f conftest*
8065 echo "$ac_t""$ac_cv_prog_cc_KPIC" 1>&6
8066 if test $ac_cv_prog_cc_KPIC = yes; then
8067 PICFLAG="-KPIC";
8071 ################
8073 echo $ac_n "checking for long long""... $ac_c" 1>&6
8074 echo "configure:8075: checking for long long" >&5
8075 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
8076 echo $ac_n "(cached) $ac_c" 1>&6
8077 else
8079 if test "$cross_compiling" = yes; then
8080 samba_cv_have_longlong=cross
8081 else
8082 cat > conftest.$ac_ext <<EOF
8083 #line 8084 "configure"
8084 #include "confdefs.h"
8085 #include <stdio.h>
8086 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
8088 if { (eval echo configure:8089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8089 then
8090 samba_cv_have_longlong=yes
8091 else
8092 echo "configure: failed program was:" >&5
8093 cat conftest.$ac_ext >&5
8094 rm -fr conftest*
8095 samba_cv_have_longlong=no
8097 rm -fr conftest*
8102 echo "$ac_t""$samba_cv_have_longlong" 1>&6
8103 if test x"$samba_cv_have_longlong" = x"yes"; then
8104 cat >> confdefs.h <<\EOF
8105 #define HAVE_LONGLONG 1
8111 # Check if the compiler supports the LL prefix on long long integers.
8112 # AIX needs this.
8114 echo $ac_n "checking for LL suffix on long long integers""... $ac_c" 1>&6
8115 echo "configure:8116: checking for LL suffix on long long integers" >&5
8116 if eval "test \"`echo '$''{'samba_cv_compiler_supports_ll'+set}'`\" = set"; then
8117 echo $ac_n "(cached) $ac_c" 1>&6
8118 else
8120 cat > conftest.$ac_ext <<EOF
8121 #line 8122 "configure"
8122 #include "confdefs.h"
8123 #include <stdio.h>
8124 int main() {
8125 long long i = 0x8000000000LL
8126 ; return 0; }
8128 if { (eval echo configure:8129: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8129 rm -rf conftest*
8130 samba_cv_compiler_supports_ll=yes
8131 else
8132 echo "configure: failed program was:" >&5
8133 cat conftest.$ac_ext >&5
8134 rm -rf conftest*
8135 samba_cv_compiler_supports_ll=no
8137 rm -f conftest*
8140 echo "$ac_t""$samba_cv_compiler_supports_ll" 1>&6
8141 if test x"$samba_cv_compiler_supports_ll" = x"yes"; then
8142 cat >> confdefs.h <<\EOF
8143 #define COMPILER_SUPPORTS_LL 1
8149 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
8150 echo "configure:8151: checking for 64 bit off_t" >&5
8151 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
8152 echo $ac_n "(cached) $ac_c" 1>&6
8153 else
8155 if test "$cross_compiling" = yes; then
8156 samba_cv_SIZEOF_OFF_T=cross
8157 else
8158 cat > conftest.$ac_ext <<EOF
8159 #line 8160 "configure"
8160 #include "confdefs.h"
8161 #include <stdio.h>
8162 #include <sys/stat.h>
8163 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
8165 if { (eval echo configure:8166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8166 then
8167 samba_cv_SIZEOF_OFF_T=yes
8168 else
8169 echo "configure: failed program was:" >&5
8170 cat conftest.$ac_ext >&5
8171 rm -fr conftest*
8172 samba_cv_SIZEOF_OFF_T=no
8174 rm -fr conftest*
8179 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
8180 if test x"$samba_cv_SIZEOF_OFF_T" = x"yes"; then
8181 cat >> confdefs.h <<\EOF
8182 #define SIZEOF_OFF_T 8
8187 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
8188 echo "configure:8189: checking for off64_t" >&5
8189 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
8190 echo $ac_n "(cached) $ac_c" 1>&6
8191 else
8193 if test "$cross_compiling" = yes; then
8194 samba_cv_HAVE_OFF64_T=cross
8195 else
8196 cat > conftest.$ac_ext <<EOF
8197 #line 8198 "configure"
8198 #include "confdefs.h"
8200 #if defined(HAVE_UNISTD_H)
8201 #include <unistd.h>
8202 #endif
8203 #include <stdio.h>
8204 #include <sys/stat.h>
8205 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8207 if { (eval echo configure:8208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8208 then
8209 samba_cv_HAVE_OFF64_T=yes
8210 else
8211 echo "configure: failed program was:" >&5
8212 cat conftest.$ac_ext >&5
8213 rm -fr conftest*
8214 samba_cv_HAVE_OFF64_T=no
8216 rm -fr conftest*
8221 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
8222 if test x"$samba_cv_HAVE_OFF64_T" = x"yes"; then
8223 cat >> confdefs.h <<\EOF
8224 #define HAVE_OFF64_T 1
8229 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
8230 echo "configure:8231: checking for 64 bit ino_t" >&5
8231 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
8232 echo $ac_n "(cached) $ac_c" 1>&6
8233 else
8235 if test "$cross_compiling" = yes; then
8236 samba_cv_SIZEOF_INO_T=cross
8237 else
8238 cat > conftest.$ac_ext <<EOF
8239 #line 8240 "configure"
8240 #include "confdefs.h"
8241 #include <stdio.h>
8242 #include <sys/stat.h>
8243 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
8245 if { (eval echo configure:8246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8246 then
8247 samba_cv_SIZEOF_INO_T=yes
8248 else
8249 echo "configure: failed program was:" >&5
8250 cat conftest.$ac_ext >&5
8251 rm -fr conftest*
8252 samba_cv_SIZEOF_INO_T=no
8254 rm -fr conftest*
8259 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
8260 if test x"$samba_cv_SIZEOF_INO_T" = x"yes"; then
8261 cat >> confdefs.h <<\EOF
8262 #define SIZEOF_INO_T 8
8267 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
8268 echo "configure:8269: checking for ino64_t" >&5
8269 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
8270 echo $ac_n "(cached) $ac_c" 1>&6
8271 else
8273 if test "$cross_compiling" = yes; then
8274 samba_cv_HAVE_INO64_T=cross
8275 else
8276 cat > conftest.$ac_ext <<EOF
8277 #line 8278 "configure"
8278 #include "confdefs.h"
8280 #if defined(HAVE_UNISTD_H)
8281 #include <unistd.h>
8282 #endif
8283 #include <stdio.h>
8284 #include <sys/stat.h>
8285 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8287 if { (eval echo configure:8288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8288 then
8289 samba_cv_HAVE_INO64_T=yes
8290 else
8291 echo "configure: failed program was:" >&5
8292 cat conftest.$ac_ext >&5
8293 rm -fr conftest*
8294 samba_cv_HAVE_INO64_T=no
8296 rm -fr conftest*
8301 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
8302 if test x"$samba_cv_HAVE_INO64_T" = x"yes"; then
8303 cat >> confdefs.h <<\EOF
8304 #define HAVE_INO64_T 1
8309 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
8310 echo "configure:8311: checking for struct dirent64" >&5
8311 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
8312 echo $ac_n "(cached) $ac_c" 1>&6
8313 else
8315 cat > conftest.$ac_ext <<EOF
8316 #line 8317 "configure"
8317 #include "confdefs.h"
8319 #if defined(HAVE_UNISTD_H)
8320 #include <unistd.h>
8321 #endif
8322 #include <sys/types.h>
8323 #include <dirent.h>
8324 int main() {
8325 struct dirent64 de;
8326 ; return 0; }
8328 if { (eval echo configure:8329: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8329 rm -rf conftest*
8330 samba_cv_HAVE_STRUCT_DIRENT64=yes
8331 else
8332 echo "configure: failed program was:" >&5
8333 cat conftest.$ac_ext >&5
8334 rm -rf conftest*
8335 samba_cv_HAVE_STRUCT_DIRENT64=no
8337 rm -f conftest*
8340 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
8341 if test x"$samba_cv_HAVE_STRUCT_DIRENT64" = x"yes"; then
8342 cat >> confdefs.h <<\EOF
8343 #define HAVE_STRUCT_DIRENT64 1
8348 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
8349 echo "configure:8350: checking for unsigned char" >&5
8350 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
8351 echo $ac_n "(cached) $ac_c" 1>&6
8352 else
8354 if test "$cross_compiling" = yes; then
8355 samba_cv_HAVE_UNSIGNED_CHAR=cross
8356 else
8357 cat > conftest.$ac_ext <<EOF
8358 #line 8359 "configure"
8359 #include "confdefs.h"
8360 #include <stdio.h>
8361 main() { char c; c=250; exit((c > 0)?0:1); }
8363 if { (eval echo configure:8364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8364 then
8365 samba_cv_HAVE_UNSIGNED_CHAR=yes
8366 else
8367 echo "configure: failed program was:" >&5
8368 cat conftest.$ac_ext >&5
8369 rm -fr conftest*
8370 samba_cv_HAVE_UNSIGNED_CHAR=no
8372 rm -fr conftest*
8377 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
8378 if test x"$samba_cv_HAVE_UNSIGNED_CHAR" = x"yes"; then
8379 cat >> confdefs.h <<\EOF
8380 #define HAVE_UNSIGNED_CHAR 1
8385 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
8386 echo "configure:8387: checking for sin_len in sock" >&5
8387 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
8388 echo $ac_n "(cached) $ac_c" 1>&6
8389 else
8391 cat > conftest.$ac_ext <<EOF
8392 #line 8393 "configure"
8393 #include "confdefs.h"
8394 #include <sys/types.h>
8395 #include <sys/socket.h>
8396 #include <netinet/in.h>
8397 int main() {
8398 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
8399 ; return 0; }
8401 if { (eval echo configure:8402: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8402 rm -rf conftest*
8403 samba_cv_HAVE_SOCK_SIN_LEN=yes
8404 else
8405 echo "configure: failed program was:" >&5
8406 cat conftest.$ac_ext >&5
8407 rm -rf conftest*
8408 samba_cv_HAVE_SOCK_SIN_LEN=no
8410 rm -f conftest*
8413 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
8414 if test x"$samba_cv_HAVE_SOCK_SIN_LEN" = x"yes"; then
8415 cat >> confdefs.h <<\EOF
8416 #define HAVE_SOCK_SIN_LEN 1
8421 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
8422 echo "configure:8423: checking whether seekdir returns void" >&5
8423 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
8424 echo $ac_n "(cached) $ac_c" 1>&6
8425 else
8427 cat > conftest.$ac_ext <<EOF
8428 #line 8429 "configure"
8429 #include "confdefs.h"
8430 #include <sys/types.h>
8431 #include <dirent.h>
8432 void seekdir(DIR *d, long loc) { return; }
8433 int main() {
8434 return 0;
8435 ; return 0; }
8437 if { (eval echo configure:8438: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8438 rm -rf conftest*
8439 samba_cv_SEEKDIR_RETURNS_VOID=yes
8440 else
8441 echo "configure: failed program was:" >&5
8442 cat conftest.$ac_ext >&5
8443 rm -rf conftest*
8444 samba_cv_SEEKDIR_RETURNS_VOID=no
8446 rm -f conftest*
8449 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
8450 if test x"$samba_cv_SEEKDIR_RETURNS_VOID" = x"yes"; then
8451 cat >> confdefs.h <<\EOF
8452 #define SEEKDIR_RETURNS_VOID 1
8457 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
8458 echo "configure:8459: checking for __FILE__ macro" >&5
8459 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
8460 echo $ac_n "(cached) $ac_c" 1>&6
8461 else
8463 cat > conftest.$ac_ext <<EOF
8464 #line 8465 "configure"
8465 #include "confdefs.h"
8466 #include <stdio.h>
8467 int main() {
8468 printf("%s\n", __FILE__);
8469 ; return 0; }
8471 if { (eval echo configure:8472: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8472 rm -rf conftest*
8473 samba_cv_HAVE_FILE_MACRO=yes
8474 else
8475 echo "configure: failed program was:" >&5
8476 cat conftest.$ac_ext >&5
8477 rm -rf conftest*
8478 samba_cv_HAVE_FILE_MACRO=no
8480 rm -f conftest*
8483 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
8484 if test x"$samba_cv_HAVE_FILE_MACRO" = x"yes"; then
8485 cat >> confdefs.h <<\EOF
8486 #define HAVE_FILE_MACRO 1
8491 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
8492 echo "configure:8493: checking for __FUNCTION__ macro" >&5
8493 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
8494 echo $ac_n "(cached) $ac_c" 1>&6
8495 else
8497 cat > conftest.$ac_ext <<EOF
8498 #line 8499 "configure"
8499 #include "confdefs.h"
8500 #include <stdio.h>
8501 int main() {
8502 printf("%s\n", __FUNCTION__);
8503 ; return 0; }
8505 if { (eval echo configure:8506: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8506 rm -rf conftest*
8507 samba_cv_HAVE_FUNCTION_MACRO=yes
8508 else
8509 echo "configure: failed program was:" >&5
8510 cat conftest.$ac_ext >&5
8511 rm -rf conftest*
8512 samba_cv_HAVE_FUNCTION_MACRO=no
8514 rm -f conftest*
8517 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
8518 if test x"$samba_cv_HAVE_FUNCTION_MACRO" = x"yes"; then
8519 cat >> confdefs.h <<\EOF
8520 #define HAVE_FUNCTION_MACRO 1
8525 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
8526 echo "configure:8527: checking if gettimeofday takes tz argument" >&5
8527 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
8528 echo $ac_n "(cached) $ac_c" 1>&6
8529 else
8531 if test "$cross_compiling" = yes; then
8532 samba_cv_HAVE_GETTIMEOFDAY_TZ=cross
8533 else
8534 cat > conftest.$ac_ext <<EOF
8535 #line 8536 "configure"
8536 #include "confdefs.h"
8538 #include <sys/time.h>
8539 #include <unistd.h>
8540 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
8542 if { (eval echo configure:8543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8543 then
8544 samba_cv_HAVE_GETTIMEOFDAY_TZ=yes
8545 else
8546 echo "configure: failed program was:" >&5
8547 cat conftest.$ac_ext >&5
8548 rm -fr conftest*
8549 samba_cv_HAVE_GETTIMEOFDAY_TZ=no
8551 rm -fr conftest*
8556 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
8557 if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
8558 cat >> confdefs.h <<\EOF
8559 #define HAVE_GETTIMEOFDAY_TZ 1
8565 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
8566 echo "configure:8567: checking for broken readdir" >&5
8567 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
8568 echo $ac_n "(cached) $ac_c" 1>&6
8569 else
8571 if test "$cross_compiling" = yes; then
8572 samba_cv_HAVE_BROKEN_READDIR=cross
8573 else
8574 cat > conftest.$ac_ext <<EOF
8575 #line 8576 "configure"
8576 #include "confdefs.h"
8577 #include <sys/types.h>
8578 #include <dirent.h>
8579 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
8580 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
8581 di->d_name[0] == 0) exit(0); exit(1);}
8583 if { (eval echo configure:8584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8584 then
8585 samba_cv_HAVE_BROKEN_READDIR=yes
8586 else
8587 echo "configure: failed program was:" >&5
8588 cat conftest.$ac_ext >&5
8589 rm -fr conftest*
8590 samba_cv_HAVE_BROKEN_READDIR=no
8592 rm -fr conftest*
8597 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
8598 if test x"$samba_cv_HAVE_BROKEN_READDIR" = x"yes"; then
8599 cat >> confdefs.h <<\EOF
8600 #define HAVE_BROKEN_READDIR 1
8605 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
8606 echo "configure:8607: checking for utimbuf" >&5
8607 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
8608 echo $ac_n "(cached) $ac_c" 1>&6
8609 else
8611 cat > conftest.$ac_ext <<EOF
8612 #line 8613 "configure"
8613 #include "confdefs.h"
8614 #include <sys/types.h>
8615 #include <utime.h>
8616 int main() {
8617 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
8618 ; return 0; }
8620 if { (eval echo configure:8621: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8621 rm -rf conftest*
8622 samba_cv_HAVE_UTIMBUF=yes
8623 else
8624 echo "configure: failed program was:" >&5
8625 cat conftest.$ac_ext >&5
8626 rm -rf conftest*
8627 samba_cv_HAVE_UTIMBUF=no
8629 rm -f conftest*
8632 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
8633 if test x"$samba_cv_HAVE_UTIMBUF" = x"yes"; then
8634 cat >> confdefs.h <<\EOF
8635 #define HAVE_UTIMBUF 1
8641 for ac_func in pututline pututxline updwtmp updwtmpx getutmpx
8643 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8644 echo "configure:8645: checking for $ac_func" >&5
8645 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8646 echo $ac_n "(cached) $ac_c" 1>&6
8647 else
8648 cat > conftest.$ac_ext <<EOF
8649 #line 8650 "configure"
8650 #include "confdefs.h"
8651 /* System header to define __stub macros and hopefully few prototypes,
8652 which can conflict with char $ac_func(); below. */
8653 #include <assert.h>
8654 /* Override any gcc2 internal prototype to avoid an error. */
8655 /* We use char because int might match the return type of a gcc2
8656 builtin and then its argument prototype would still apply. */
8657 char $ac_func();
8659 int main() {
8661 /* The GNU C library defines this for functions which it implements
8662 to always fail with ENOSYS. Some functions are actually named
8663 something starting with __ and the normal name is an alias. */
8664 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8665 choke me
8666 #else
8667 $ac_func();
8668 #endif
8670 ; return 0; }
8672 if { (eval echo configure:8673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8673 rm -rf conftest*
8674 eval "ac_cv_func_$ac_func=yes"
8675 else
8676 echo "configure: failed program was:" >&5
8677 cat conftest.$ac_ext >&5
8678 rm -rf conftest*
8679 eval "ac_cv_func_$ac_func=no"
8681 rm -f conftest*
8684 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8685 echo "$ac_t""yes" 1>&6
8686 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8687 cat >> confdefs.h <<EOF
8688 #define $ac_tr_func 1
8691 else
8692 echo "$ac_t""no" 1>&6
8694 done
8697 echo $ac_n "checking for ut_name in utmp""... $ac_c" 1>&6
8698 echo "configure:8699: checking for ut_name in utmp" >&5
8699 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_NAME'+set}'`\" = set"; then
8700 echo $ac_n "(cached) $ac_c" 1>&6
8701 else
8703 cat > conftest.$ac_ext <<EOF
8704 #line 8705 "configure"
8705 #include "confdefs.h"
8706 #include <sys/types.h>
8707 #include <utmp.h>
8708 int main() {
8709 struct utmp ut; ut.ut_name[0] = 'a';
8710 ; return 0; }
8712 if { (eval echo configure:8713: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8713 rm -rf conftest*
8714 samba_cv_HAVE_UT_UT_NAME=yes
8715 else
8716 echo "configure: failed program was:" >&5
8717 cat conftest.$ac_ext >&5
8718 rm -rf conftest*
8719 samba_cv_HAVE_UT_UT_NAME=no
8721 rm -f conftest*
8724 echo "$ac_t""$samba_cv_HAVE_UT_UT_NAME" 1>&6
8725 if test x"$samba_cv_HAVE_UT_UT_NAME" = x"yes"; then
8726 cat >> confdefs.h <<\EOF
8727 #define HAVE_UT_UT_NAME 1
8732 echo $ac_n "checking for ut_user in utmp""... $ac_c" 1>&6
8733 echo "configure:8734: checking for ut_user in utmp" >&5
8734 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_USER'+set}'`\" = set"; then
8735 echo $ac_n "(cached) $ac_c" 1>&6
8736 else
8738 cat > conftest.$ac_ext <<EOF
8739 #line 8740 "configure"
8740 #include "confdefs.h"
8741 #include <sys/types.h>
8742 #include <utmp.h>
8743 int main() {
8744 struct utmp ut; ut.ut_user[0] = 'a';
8745 ; return 0; }
8747 if { (eval echo configure:8748: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8748 rm -rf conftest*
8749 samba_cv_HAVE_UT_UT_USER=yes
8750 else
8751 echo "configure: failed program was:" >&5
8752 cat conftest.$ac_ext >&5
8753 rm -rf conftest*
8754 samba_cv_HAVE_UT_UT_USER=no
8756 rm -f conftest*
8759 echo "$ac_t""$samba_cv_HAVE_UT_UT_USER" 1>&6
8760 if test x"$samba_cv_HAVE_UT_UT_USER" = x"yes"; then
8761 cat >> confdefs.h <<\EOF
8762 #define HAVE_UT_UT_USER 1
8767 echo $ac_n "checking for ut_id in utmp""... $ac_c" 1>&6
8768 echo "configure:8769: checking for ut_id in utmp" >&5
8769 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ID'+set}'`\" = set"; then
8770 echo $ac_n "(cached) $ac_c" 1>&6
8771 else
8773 cat > conftest.$ac_ext <<EOF
8774 #line 8775 "configure"
8775 #include "confdefs.h"
8776 #include <sys/types.h>
8777 #include <utmp.h>
8778 int main() {
8779 struct utmp ut; ut.ut_id[0] = 'a';
8780 ; return 0; }
8782 if { (eval echo configure:8783: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8783 rm -rf conftest*
8784 samba_cv_HAVE_UT_UT_ID=yes
8785 else
8786 echo "configure: failed program was:" >&5
8787 cat conftest.$ac_ext >&5
8788 rm -rf conftest*
8789 samba_cv_HAVE_UT_UT_ID=no
8791 rm -f conftest*
8794 echo "$ac_t""$samba_cv_HAVE_UT_UT_ID" 1>&6
8795 if test x"$samba_cv_HAVE_UT_UT_ID" = x"yes"; then
8796 cat >> confdefs.h <<\EOF
8797 #define HAVE_UT_UT_ID 1
8802 echo $ac_n "checking for ut_host in utmp""... $ac_c" 1>&6
8803 echo "configure:8804: checking for ut_host in utmp" >&5
8804 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_HOST'+set}'`\" = set"; then
8805 echo $ac_n "(cached) $ac_c" 1>&6
8806 else
8808 cat > conftest.$ac_ext <<EOF
8809 #line 8810 "configure"
8810 #include "confdefs.h"
8811 #include <sys/types.h>
8812 #include <utmp.h>
8813 int main() {
8814 struct utmp ut; ut.ut_host[0] = 'a';
8815 ; return 0; }
8817 if { (eval echo configure:8818: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8818 rm -rf conftest*
8819 samba_cv_HAVE_UT_UT_HOST=yes
8820 else
8821 echo "configure: failed program was:" >&5
8822 cat conftest.$ac_ext >&5
8823 rm -rf conftest*
8824 samba_cv_HAVE_UT_UT_HOST=no
8826 rm -f conftest*
8829 echo "$ac_t""$samba_cv_HAVE_UT_UT_HOST" 1>&6
8830 if test x"$samba_cv_HAVE_UT_UT_HOST" = x"yes"; then
8831 cat >> confdefs.h <<\EOF
8832 #define HAVE_UT_UT_HOST 1
8837 echo $ac_n "checking for ut_time in utmp""... $ac_c" 1>&6
8838 echo "configure:8839: checking for ut_time in utmp" >&5
8839 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TIME'+set}'`\" = set"; then
8840 echo $ac_n "(cached) $ac_c" 1>&6
8841 else
8843 cat > conftest.$ac_ext <<EOF
8844 #line 8845 "configure"
8845 #include "confdefs.h"
8846 #include <sys/types.h>
8847 #include <utmp.h>
8848 int main() {
8849 struct utmp ut; time_t t; ut.ut_time = t;
8850 ; return 0; }
8852 if { (eval echo configure:8853: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8853 rm -rf conftest*
8854 samba_cv_HAVE_UT_UT_TIME=yes
8855 else
8856 echo "configure: failed program was:" >&5
8857 cat conftest.$ac_ext >&5
8858 rm -rf conftest*
8859 samba_cv_HAVE_UT_UT_TIME=no
8861 rm -f conftest*
8864 echo "$ac_t""$samba_cv_HAVE_UT_UT_TIME" 1>&6
8865 if test x"$samba_cv_HAVE_UT_UT_TIME" = x"yes"; then
8866 cat >> confdefs.h <<\EOF
8867 #define HAVE_UT_UT_TIME 1
8872 echo $ac_n "checking for ut_tv in utmp""... $ac_c" 1>&6
8873 echo "configure:8874: checking for ut_tv in utmp" >&5
8874 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TV'+set}'`\" = set"; then
8875 echo $ac_n "(cached) $ac_c" 1>&6
8876 else
8878 cat > conftest.$ac_ext <<EOF
8879 #line 8880 "configure"
8880 #include "confdefs.h"
8881 #include <sys/types.h>
8882 #include <utmp.h>
8883 int main() {
8884 struct utmp ut; struct timeval tv; ut.ut_tv = tv;
8885 ; return 0; }
8887 if { (eval echo configure:8888: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8888 rm -rf conftest*
8889 samba_cv_HAVE_UT_UT_TV=yes
8890 else
8891 echo "configure: failed program was:" >&5
8892 cat conftest.$ac_ext >&5
8893 rm -rf conftest*
8894 samba_cv_HAVE_UT_UT_TV=no
8896 rm -f conftest*
8899 echo "$ac_t""$samba_cv_HAVE_UT_UT_TV" 1>&6
8900 if test x"$samba_cv_HAVE_UT_UT_TV" = x"yes"; then
8901 cat >> confdefs.h <<\EOF
8902 #define HAVE_UT_UT_TV 1
8907 echo $ac_n "checking for ut_type in utmp""... $ac_c" 1>&6
8908 echo "configure:8909: checking for ut_type in utmp" >&5
8909 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TYPE'+set}'`\" = set"; then
8910 echo $ac_n "(cached) $ac_c" 1>&6
8911 else
8913 cat > conftest.$ac_ext <<EOF
8914 #line 8915 "configure"
8915 #include "confdefs.h"
8916 #include <sys/types.h>
8917 #include <utmp.h>
8918 int main() {
8919 struct utmp ut; ut.ut_type = 0;
8920 ; return 0; }
8922 if { (eval echo configure:8923: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8923 rm -rf conftest*
8924 samba_cv_HAVE_UT_UT_TYPE=yes
8925 else
8926 echo "configure: failed program was:" >&5
8927 cat conftest.$ac_ext >&5
8928 rm -rf conftest*
8929 samba_cv_HAVE_UT_UT_TYPE=no
8931 rm -f conftest*
8934 echo "$ac_t""$samba_cv_HAVE_UT_UT_TYPE" 1>&6
8935 if test x"$samba_cv_HAVE_UT_UT_TYPE" = x"yes"; then
8936 cat >> confdefs.h <<\EOF
8937 #define HAVE_UT_UT_TYPE 1
8942 echo $ac_n "checking for ut_pid in utmp""... $ac_c" 1>&6
8943 echo "configure:8944: checking for ut_pid in utmp" >&5
8944 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_PID'+set}'`\" = set"; then
8945 echo $ac_n "(cached) $ac_c" 1>&6
8946 else
8948 cat > conftest.$ac_ext <<EOF
8949 #line 8950 "configure"
8950 #include "confdefs.h"
8951 #include <sys/types.h>
8952 #include <utmp.h>
8953 int main() {
8954 struct utmp ut; ut.ut_pid = 0;
8955 ; return 0; }
8957 if { (eval echo configure:8958: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8958 rm -rf conftest*
8959 samba_cv_HAVE_UT_UT_PID=yes
8960 else
8961 echo "configure: failed program was:" >&5
8962 cat conftest.$ac_ext >&5
8963 rm -rf conftest*
8964 samba_cv_HAVE_UT_UT_PID=no
8966 rm -f conftest*
8969 echo "$ac_t""$samba_cv_HAVE_UT_UT_PID" 1>&6
8970 if test x"$samba_cv_HAVE_UT_UT_PID" = x"yes"; then
8971 cat >> confdefs.h <<\EOF
8972 #define HAVE_UT_UT_PID 1
8977 echo $ac_n "checking for ut_exit in utmp""... $ac_c" 1>&6
8978 echo "configure:8979: checking for ut_exit in utmp" >&5
8979 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_EXIT'+set}'`\" = set"; then
8980 echo $ac_n "(cached) $ac_c" 1>&6
8981 else
8983 cat > conftest.$ac_ext <<EOF
8984 #line 8985 "configure"
8985 #include "confdefs.h"
8986 #include <sys/types.h>
8987 #include <utmp.h>
8988 int main() {
8989 struct utmp ut; ut.ut_exit.e_exit = 0;
8990 ; return 0; }
8992 if { (eval echo configure:8993: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8993 rm -rf conftest*
8994 samba_cv_HAVE_UT_UT_EXIT=yes
8995 else
8996 echo "configure: failed program was:" >&5
8997 cat conftest.$ac_ext >&5
8998 rm -rf conftest*
8999 samba_cv_HAVE_UT_UT_EXIT=no
9001 rm -f conftest*
9004 echo "$ac_t""$samba_cv_HAVE_UT_UT_EXIT" 1>&6
9005 if test x"$samba_cv_HAVE_UT_UT_EXIT" = x"yes"; then
9006 cat >> confdefs.h <<\EOF
9007 #define HAVE_UT_UT_EXIT 1
9012 echo $ac_n "checking for ut_addr in utmp""... $ac_c" 1>&6
9013 echo "configure:9014: checking for ut_addr in utmp" >&5
9014 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ADDR'+set}'`\" = set"; then
9015 echo $ac_n "(cached) $ac_c" 1>&6
9016 else
9018 cat > conftest.$ac_ext <<EOF
9019 #line 9020 "configure"
9020 #include "confdefs.h"
9021 #include <sys/types.h>
9022 #include <utmp.h>
9023 int main() {
9024 struct utmp ut; ut.ut_addr = 0;
9025 ; return 0; }
9027 if { (eval echo configure:9028: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9028 rm -rf conftest*
9029 samba_cv_HAVE_UT_UT_ADDR=yes
9030 else
9031 echo "configure: failed program was:" >&5
9032 cat conftest.$ac_ext >&5
9033 rm -rf conftest*
9034 samba_cv_HAVE_UT_UT_ADDR=no
9036 rm -f conftest*
9039 echo "$ac_t""$samba_cv_HAVE_UT_UT_ADDR" 1>&6
9040 if test x"$samba_cv_HAVE_UT_UT_ADDR" = x"yes"; then
9041 cat >> confdefs.h <<\EOF
9042 #define HAVE_UT_UT_ADDR 1
9047 if test x$ac_cv_func_pututline = xyes ; then
9048 echo $ac_n "checking whether pututline returns pointer""... $ac_c" 1>&6
9049 echo "configure:9050: checking whether pututline returns pointer" >&5
9050 if eval "test \"`echo '$''{'samba_cv_PUTUTLINE_RETURNS_UTMP'+set}'`\" = set"; then
9051 echo $ac_n "(cached) $ac_c" 1>&6
9052 else
9054 cat > conftest.$ac_ext <<EOF
9055 #line 9056 "configure"
9056 #include "confdefs.h"
9057 #include <sys/types.h>
9058 #include <utmp.h>
9059 int main() {
9060 struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
9061 ; return 0; }
9063 if { (eval echo configure:9064: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9064 rm -rf conftest*
9065 samba_cv_PUTUTLINE_RETURNS_UTMP=yes
9066 else
9067 echo "configure: failed program was:" >&5
9068 cat conftest.$ac_ext >&5
9069 rm -rf conftest*
9070 samba_cv_PUTUTLINE_RETURNS_UTMP=no
9072 rm -f conftest*
9075 echo "$ac_t""$samba_cv_PUTUTLINE_RETURNS_UTMP" 1>&6
9076 if test x"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x"yes"; then
9077 cat >> confdefs.h <<\EOF
9078 #define PUTUTLINE_RETURNS_UTMP 1
9084 echo $ac_n "checking for ut_syslen in utmpx""... $ac_c" 1>&6
9085 echo "configure:9086: checking for ut_syslen in utmpx" >&5
9086 if eval "test \"`echo '$''{'samba_cv_HAVE_UX_UT_SYSLEN'+set}'`\" = set"; then
9087 echo $ac_n "(cached) $ac_c" 1>&6
9088 else
9090 cat > conftest.$ac_ext <<EOF
9091 #line 9092 "configure"
9092 #include "confdefs.h"
9093 #include <sys/types.h>
9094 #include <utmpx.h>
9095 int main() {
9096 struct utmpx ux; ux.ut_syslen = 0;
9097 ; return 0; }
9099 if { (eval echo configure:9100: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9100 rm -rf conftest*
9101 samba_cv_HAVE_UX_UT_SYSLEN=yes
9102 else
9103 echo "configure: failed program was:" >&5
9104 cat conftest.$ac_ext >&5
9105 rm -rf conftest*
9106 samba_cv_HAVE_UX_UT_SYSLEN=no
9108 rm -f conftest*
9111 echo "$ac_t""$samba_cv_HAVE_UX_UT_SYSLEN" 1>&6
9112 if test x"$samba_cv_HAVE_UX_UT_SYSLEN" = x"yes"; then
9113 cat >> confdefs.h <<\EOF
9114 #define HAVE_UX_UT_SYSLEN 1
9119 echo $ac_n "checking for Linux kernel oplocks""... $ac_c" 1>&6
9120 echo "configure:9121: checking for Linux kernel oplocks" >&5
9121 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_LINUX'+set}'`\" = set"; then
9122 echo $ac_n "(cached) $ac_c" 1>&6
9123 else
9125 if test "$cross_compiling" = yes; then
9126 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=cross
9127 else
9128 cat > conftest.$ac_ext <<EOF
9129 #line 9130 "configure"
9130 #include "confdefs.h"
9132 #include <sys/types.h>
9133 #include <fcntl.h>
9134 #ifndef F_GETLEASE
9135 #define F_GETLEASE 1025
9136 #endif
9137 main() {
9138 int fd = open("/dev/null", O_RDONLY);
9139 return fcntl(fd, F_GETLEASE, 0) == -1;
9143 if { (eval echo configure:9144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9144 then
9145 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=yes
9146 else
9147 echo "configure: failed program was:" >&5
9148 cat conftest.$ac_ext >&5
9149 rm -fr conftest*
9150 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=no
9152 rm -fr conftest*
9157 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" 1>&6
9158 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x"yes"; then
9159 cat >> confdefs.h <<\EOF
9160 #define HAVE_KERNEL_OPLOCKS_LINUX 1
9165 echo $ac_n "checking for kernel change notify support""... $ac_c" 1>&6
9166 echo "configure:9167: checking for kernel change notify support" >&5
9167 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_CHANGE_NOTIFY'+set}'`\" = set"; then
9168 echo $ac_n "(cached) $ac_c" 1>&6
9169 else
9171 if test "$cross_compiling" = yes; then
9172 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=cross
9173 else
9174 cat > conftest.$ac_ext <<EOF
9175 #line 9176 "configure"
9176 #include "confdefs.h"
9178 #include <sys/types.h>
9179 #include <fcntl.h>
9180 #include <signal.h>
9181 #ifndef F_NOTIFY
9182 #define F_NOTIFY 1026
9183 #endif
9184 main() {
9185 exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0);
9189 if { (eval echo configure:9190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9190 then
9191 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=yes
9192 else
9193 echo "configure: failed program was:" >&5
9194 cat conftest.$ac_ext >&5
9195 rm -fr conftest*
9196 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=no
9198 rm -fr conftest*
9203 echo "$ac_t""$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" 1>&6
9204 if test x"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x"yes"; then
9205 cat >> confdefs.h <<\EOF
9206 #define HAVE_KERNEL_CHANGE_NOTIFY 1
9211 echo $ac_n "checking for kernel share modes""... $ac_c" 1>&6
9212 echo "configure:9213: checking for kernel share modes" >&5
9213 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_SHARE_MODES'+set}'`\" = set"; then
9214 echo $ac_n "(cached) $ac_c" 1>&6
9215 else
9217 if test "$cross_compiling" = yes; then
9218 samba_cv_HAVE_KERNEL_SHARE_MODES=cross
9219 else
9220 cat > conftest.$ac_ext <<EOF
9221 #line 9222 "configure"
9222 #include "confdefs.h"
9224 #include <sys/types.h>
9225 #include <fcntl.h>
9226 #include <signal.h>
9227 #include <sys/file.h>
9228 #ifndef LOCK_MAND
9229 #define LOCK_MAND 32
9230 #define LOCK_READ 64
9231 #endif
9232 main() {
9233 exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
9237 if { (eval echo configure:9238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9238 then
9239 samba_cv_HAVE_KERNEL_SHARE_MODES=yes
9240 else
9241 echo "configure: failed program was:" >&5
9242 cat conftest.$ac_ext >&5
9243 rm -fr conftest*
9244 samba_cv_HAVE_KERNEL_SHARE_MODES=no
9246 rm -fr conftest*
9251 echo "$ac_t""$samba_cv_HAVE_KERNEL_SHARE_MODES" 1>&6
9252 if test x"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x"yes"; then
9253 cat >> confdefs.h <<\EOF
9254 #define HAVE_KERNEL_SHARE_MODES 1
9262 echo $ac_n "checking for IRIX kernel oplock type definitions""... $ac_c" 1>&6
9263 echo "configure:9264: checking for IRIX kernel oplock type definitions" >&5
9264 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_IRIX'+set}'`\" = set"; then
9265 echo $ac_n "(cached) $ac_c" 1>&6
9266 else
9268 cat > conftest.$ac_ext <<EOF
9269 #line 9270 "configure"
9270 #include "confdefs.h"
9271 #include <sys/types.h>
9272 #include <fcntl.h>
9273 int main() {
9274 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
9275 ; return 0; }
9277 if { (eval echo configure:9278: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9278 rm -rf conftest*
9279 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=yes
9280 else
9281 echo "configure: failed program was:" >&5
9282 cat conftest.$ac_ext >&5
9283 rm -rf conftest*
9284 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=no
9286 rm -f conftest*
9289 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" 1>&6
9290 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x"yes"; then
9291 cat >> confdefs.h <<\EOF
9292 #define HAVE_KERNEL_OPLOCKS_IRIX 1
9297 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
9298 echo "configure:9299: checking for irix specific capabilities" >&5
9299 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
9300 echo $ac_n "(cached) $ac_c" 1>&6
9301 else
9303 if test "$cross_compiling" = yes; then
9304 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=cross
9305 else
9306 cat > conftest.$ac_ext <<EOF
9307 #line 9308 "configure"
9308 #include "confdefs.h"
9309 #include <sys/types.h>
9310 #include <sys/capability.h>
9311 main() {
9312 cap_t cap;
9313 if ((cap = cap_get_proc()) == NULL)
9314 exit(1);
9315 cap->cap_effective |= CAP_NETWORK_MGT;
9316 cap->cap_inheritable |= CAP_NETWORK_MGT;
9317 cap_set_proc(cap);
9318 exit(0);
9322 if { (eval echo configure:9323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9323 then
9324 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=yes
9325 else
9326 echo "configure: failed program was:" >&5
9327 cat conftest.$ac_ext >&5
9328 rm -fr conftest*
9329 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=no
9331 rm -fr conftest*
9336 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
9337 if test x"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x"yes"; then
9338 cat >> confdefs.h <<\EOF
9339 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
9345 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
9346 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
9349 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9350 echo "configure:9351: checking for int16 typedef included by rpc/rpc.h" >&5
9351 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
9352 echo $ac_n "(cached) $ac_c" 1>&6
9353 else
9355 cat > conftest.$ac_ext <<EOF
9356 #line 9357 "configure"
9357 #include "confdefs.h"
9358 #include <sys/types.h>
9359 #if defined(HAVE_RPC_RPC_H)
9360 #include <rpc/rpc.h>
9361 #endif
9362 int main() {
9363 int16 testvar;
9364 ; return 0; }
9366 if { (eval echo configure:9367: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9367 rm -rf conftest*
9368 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=yes
9369 else
9370 echo "configure: failed program was:" >&5
9371 cat conftest.$ac_ext >&5
9372 rm -rf conftest*
9373 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=no
9375 rm -f conftest*
9378 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
9379 if test x"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x"yes"; then
9380 cat >> confdefs.h <<\EOF
9381 #define HAVE_INT16_FROM_RPC_RPC_H 1
9386 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9387 echo "configure:9388: checking for uint16 typedef included by rpc/rpc.h" >&5
9388 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
9389 echo $ac_n "(cached) $ac_c" 1>&6
9390 else
9392 cat > conftest.$ac_ext <<EOF
9393 #line 9394 "configure"
9394 #include "confdefs.h"
9395 #include <sys/types.h>
9396 #if defined(HAVE_RPC_RPC_H)
9397 #include <rpc/rpc.h>
9398 #endif
9399 int main() {
9400 uint16 testvar;
9401 ; return 0; }
9403 if { (eval echo configure:9404: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9404 rm -rf conftest*
9405 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=yes
9406 else
9407 echo "configure: failed program was:" >&5
9408 cat conftest.$ac_ext >&5
9409 rm -rf conftest*
9410 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=no
9412 rm -f conftest*
9415 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
9416 if test x"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x"yes"; then
9417 cat >> confdefs.h <<\EOF
9418 #define HAVE_UINT16_FROM_RPC_RPC_H 1
9423 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9424 echo "configure:9425: checking for int32 typedef included by rpc/rpc.h" >&5
9425 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
9426 echo $ac_n "(cached) $ac_c" 1>&6
9427 else
9429 cat > conftest.$ac_ext <<EOF
9430 #line 9431 "configure"
9431 #include "confdefs.h"
9432 #include <sys/types.h>
9433 #if defined(HAVE_RPC_RPC_H)
9434 #include <rpc/rpc.h>
9435 #endif
9436 int main() {
9437 int32 testvar;
9438 ; return 0; }
9440 if { (eval echo configure:9441: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9441 rm -rf conftest*
9442 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=yes
9443 else
9444 echo "configure: failed program was:" >&5
9445 cat conftest.$ac_ext >&5
9446 rm -rf conftest*
9447 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=no
9449 rm -f conftest*
9452 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
9453 if test x"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x"yes"; then
9454 cat >> confdefs.h <<\EOF
9455 #define HAVE_INT32_FROM_RPC_RPC_H 1
9460 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9461 echo "configure:9462: checking for uint32 typedef included by rpc/rpc.h" >&5
9462 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
9463 echo $ac_n "(cached) $ac_c" 1>&6
9464 else
9466 cat > conftest.$ac_ext <<EOF
9467 #line 9468 "configure"
9468 #include "confdefs.h"
9469 #include <sys/types.h>
9470 #if defined(HAVE_RPC_RPC_H)
9471 #include <rpc/rpc.h>
9472 #endif
9473 int main() {
9474 uint32 testvar;
9475 ; return 0; }
9477 if { (eval echo configure:9478: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9478 rm -rf conftest*
9479 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=yes
9480 else
9481 echo "configure: failed program was:" >&5
9482 cat conftest.$ac_ext >&5
9483 rm -rf conftest*
9484 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=no
9486 rm -f conftest*
9489 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
9490 if test x"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x"yes"; then
9491 cat >> confdefs.h <<\EOF
9492 #define HAVE_UINT32_FROM_RPC_RPC_H 1
9498 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
9499 echo "configure:9500: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
9500 if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
9501 echo $ac_n "(cached) $ac_c" 1>&6
9502 else
9504 cat > conftest.$ac_ext <<EOF
9505 #line 9506 "configure"
9506 #include "confdefs.h"
9507 #include <sys/types.h>
9508 #ifdef HAVE_SYS_SECURITY_H
9509 #include <sys/security.h>
9510 #include <prot.h>
9511 #endif /* HAVE_SYS_SECURITY_H */
9512 #if defined(HAVE_RPC_RPC_H)
9513 #include <rpc/rpc.h>
9514 #endif
9515 int main() {
9516 int testvar;
9517 ; return 0; }
9519 if { (eval echo configure:9520: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9520 rm -rf conftest*
9521 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=no
9522 else
9523 echo "configure: failed program was:" >&5
9524 cat conftest.$ac_ext >&5
9525 rm -rf conftest*
9526 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=yes
9528 rm -f conftest*
9531 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
9532 if test x"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x"yes"; then
9533 cat >> confdefs.h <<\EOF
9534 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
9539 echo $ac_n "checking for test routines""... $ac_c" 1>&6
9540 echo "configure:9541: checking for test routines" >&5
9541 if test "$cross_compiling" = yes; then
9542 echo "configure: warning: cannot run when cross-compiling" 1>&2
9543 else
9544 cat > conftest.$ac_ext <<EOF
9545 #line 9546 "configure"
9546 #include "confdefs.h"
9547 #include "${srcdir-.}/tests/trivial.c"
9549 if { (eval echo configure:9550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9550 then
9551 echo "$ac_t""yes" 1>&6
9552 else
9553 echo "configure: failed program was:" >&5
9554 cat conftest.$ac_ext >&5
9555 rm -fr conftest*
9556 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
9558 rm -fr conftest*
9562 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
9563 echo "configure:9564: checking for ftruncate extend" >&5
9564 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
9565 echo $ac_n "(cached) $ac_c" 1>&6
9566 else
9568 if test "$cross_compiling" = yes; then
9569 samba_cv_HAVE_FTRUNCATE_EXTEND=cross
9570 else
9571 cat > conftest.$ac_ext <<EOF
9572 #line 9573 "configure"
9573 #include "confdefs.h"
9574 #include "${srcdir-.}/tests/ftruncate.c"
9576 if { (eval echo configure:9577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9577 then
9578 samba_cv_HAVE_FTRUNCATE_EXTEND=yes
9579 else
9580 echo "configure: failed program was:" >&5
9581 cat conftest.$ac_ext >&5
9582 rm -fr conftest*
9583 samba_cv_HAVE_FTRUNCATE_EXTEND=no
9585 rm -fr conftest*
9590 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
9591 if test x"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x"yes"; then
9592 cat >> confdefs.h <<\EOF
9593 #define HAVE_FTRUNCATE_EXTEND 1
9598 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
9599 echo "configure:9600: checking for broken getgroups" >&5
9600 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
9601 echo $ac_n "(cached) $ac_c" 1>&6
9602 else
9604 if test "$cross_compiling" = yes; then
9605 samba_cv_HAVE_BROKEN_GETGROUPS=cross
9606 else
9607 cat > conftest.$ac_ext <<EOF
9608 #line 9609 "configure"
9609 #include "confdefs.h"
9610 #include "${srcdir-.}/tests/getgroups.c"
9612 if { (eval echo configure:9613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9613 then
9614 samba_cv_HAVE_BROKEN_GETGROUPS=yes
9615 else
9616 echo "configure: failed program was:" >&5
9617 cat conftest.$ac_ext >&5
9618 rm -fr conftest*
9619 samba_cv_HAVE_BROKEN_GETGROUPS=no
9621 rm -fr conftest*
9626 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
9627 if test x"$samba_cv_HAVE_BROKEN_GETGROUPS" = x"yes"; then
9628 cat >> confdefs.h <<\EOF
9629 #define HAVE_BROKEN_GETGROUPS 1
9634 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
9635 echo "configure:9636: checking whether getpass should be replaced" >&5
9636 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
9637 echo $ac_n "(cached) $ac_c" 1>&6
9638 else
9640 SAVE_CPPFLAGS="$CPPFLAGS"
9641 CPPFLAGS="$CPPFLAGS -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/smbwrapper"
9642 cat > conftest.$ac_ext <<EOF
9643 #line 9644 "configure"
9644 #include "confdefs.h"
9646 #define REPLACE_GETPASS 1
9647 #define NO_CONFIG_H 1
9648 #define main dont_declare_main
9649 #include "${srcdir-.}/lib/getsmbpass.c"
9650 #undef main
9652 int main() {
9654 ; return 0; }
9656 if { (eval echo configure:9657: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9657 rm -rf conftest*
9658 samba_cv_REPLACE_GETPASS=yes
9659 else
9660 echo "configure: failed program was:" >&5
9661 cat conftest.$ac_ext >&5
9662 rm -rf conftest*
9663 samba_cv_REPLACE_GETPASS=no
9665 rm -f conftest*
9666 CPPFLAGS="$SAVE_CPPFLAGS"
9670 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
9671 if test x"$samba_cv_REPLACE_GETPASS" = x"yes"; then
9672 cat >> confdefs.h <<\EOF
9673 #define REPLACE_GETPASS 1
9678 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
9679 echo "configure:9680: checking for broken inet_ntoa" >&5
9680 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
9681 echo $ac_n "(cached) $ac_c" 1>&6
9682 else
9684 if test "$cross_compiling" = yes; then
9685 samba_cv_REPLACE_INET_NTOA=cross
9686 else
9687 cat > conftest.$ac_ext <<EOF
9688 #line 9689 "configure"
9689 #include "confdefs.h"
9691 #include <stdio.h>
9692 #include <sys/types.h>
9693 #include <netinet/in.h>
9694 #ifdef HAVE_ARPA_INET_H
9695 #include <arpa/inet.h>
9696 #endif
9697 main() { struct in_addr ip; ip.s_addr = 0x12345678;
9698 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
9699 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
9700 exit(1);}
9702 if { (eval echo configure:9703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9703 then
9704 samba_cv_REPLACE_INET_NTOA=yes
9705 else
9706 echo "configure: failed program was:" >&5
9707 cat conftest.$ac_ext >&5
9708 rm -fr conftest*
9709 samba_cv_REPLACE_INET_NTOA=no
9711 rm -fr conftest*
9716 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
9717 if test x"$samba_cv_REPLACE_INET_NTOA" = x"yes"; then
9718 cat >> confdefs.h <<\EOF
9719 #define REPLACE_INET_NTOA 1
9724 echo $ac_n "checking for sysconf(_SC_NGROUPS_MAX)""... $ac_c" 1>&6
9725 echo "configure:9726: checking for sysconf(_SC_NGROUPS_MAX)" >&5
9726 if eval "test \"`echo '$''{'samba_cv_SYSCONF_SC_NGROUPS_MAX'+set}'`\" = set"; then
9727 echo $ac_n "(cached) $ac_c" 1>&6
9728 else
9730 if test "$cross_compiling" = yes; then
9731 samba_cv_SYSCONF_SC_NGROUPS_MAX=cross
9732 else
9733 cat > conftest.$ac_ext <<EOF
9734 #line 9735 "configure"
9735 #include "confdefs.h"
9736 #include <unistd.h>
9737 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
9739 if { (eval echo configure:9740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9740 then
9741 samba_cv_SYSCONF_SC_NGROUPS_MAX=yes
9742 else
9743 echo "configure: failed program was:" >&5
9744 cat conftest.$ac_ext >&5
9745 rm -fr conftest*
9746 samba_cv_SYSCONF_SC_NGROUPS_MAX=no
9748 rm -fr conftest*
9753 echo "$ac_t""$samba_cv_SYSCONF_SC_NGROUPS_MAX" 1>&6
9754 if test x"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x"yes"; then
9755 cat >> confdefs.h <<\EOF
9756 #define SYSCONF_SC_NGROUPS_MAX 1
9761 echo $ac_n "checking for root""... $ac_c" 1>&6
9762 echo "configure:9763: checking for root" >&5
9763 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
9764 echo $ac_n "(cached) $ac_c" 1>&6
9765 else
9767 if test "$cross_compiling" = yes; then
9768 samba_cv_HAVE_ROOT=cross
9769 else
9770 cat > conftest.$ac_ext <<EOF
9771 #line 9772 "configure"
9772 #include "confdefs.h"
9773 main() { exit(getuid() != 0); }
9775 if { (eval echo configure:9776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9776 then
9777 samba_cv_HAVE_ROOT=yes
9778 else
9779 echo "configure: failed program was:" >&5
9780 cat conftest.$ac_ext >&5
9781 rm -fr conftest*
9782 samba_cv_HAVE_ROOT=no
9784 rm -fr conftest*
9789 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
9790 if test x"$samba_cv_HAVE_ROOT" = x"yes"; then
9791 cat >> confdefs.h <<\EOF
9792 #define HAVE_ROOT 1
9795 else
9796 echo "configure: warning: running as non-root will disable some tests" 1>&2
9799 ##################
9800 # look for a method of finding the list of network interfaces
9801 iface=no;
9802 echo $ac_n "checking for iface AIX""... $ac_c" 1>&6
9803 echo "configure:9804: checking for iface AIX" >&5
9804 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_AIX'+set}'`\" = set"; then
9805 echo $ac_n "(cached) $ac_c" 1>&6
9806 else
9808 if test "$cross_compiling" = yes; then
9809 samba_cv_HAVE_IFACE_AIX=cross
9810 else
9811 cat > conftest.$ac_ext <<EOF
9812 #line 9813 "configure"
9813 #include "confdefs.h"
9815 #define HAVE_IFACE_AIX 1
9816 #define AUTOCONF_TEST 1
9817 #include "confdefs.h"
9818 #include "${srcdir-.}/lib/interfaces.c"
9820 if { (eval echo configure:9821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9821 then
9822 samba_cv_HAVE_IFACE_AIX=yes
9823 else
9824 echo "configure: failed program was:" >&5
9825 cat conftest.$ac_ext >&5
9826 rm -fr conftest*
9827 samba_cv_HAVE_IFACE_AIX=no
9829 rm -fr conftest*
9834 echo "$ac_t""$samba_cv_HAVE_IFACE_AIX" 1>&6
9835 if test x"$samba_cv_HAVE_IFACE_AIX" = x"yes"; then
9836 iface=yes;cat >> confdefs.h <<\EOF
9837 #define HAVE_IFACE_AIX 1
9842 if test $iface = no; then
9843 echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6
9844 echo "configure:9845: checking for iface ifconf" >&5
9845 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFCONF'+set}'`\" = set"; then
9846 echo $ac_n "(cached) $ac_c" 1>&6
9847 else
9849 if test "$cross_compiling" = yes; then
9850 samba_cv_HAVE_IFACE_IFCONF=cross
9851 else
9852 cat > conftest.$ac_ext <<EOF
9853 #line 9854 "configure"
9854 #include "confdefs.h"
9856 #define HAVE_IFACE_IFCONF 1
9857 #define AUTOCONF_TEST 1
9858 #include "confdefs.h"
9859 #include "${srcdir-.}/lib/interfaces.c"
9861 if { (eval echo configure:9862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9862 then
9863 samba_cv_HAVE_IFACE_IFCONF=yes
9864 else
9865 echo "configure: failed program was:" >&5
9866 cat conftest.$ac_ext >&5
9867 rm -fr conftest*
9868 samba_cv_HAVE_IFACE_IFCONF=no
9870 rm -fr conftest*
9875 echo "$ac_t""$samba_cv_HAVE_IFACE_IFCONF" 1>&6
9876 if test x"$samba_cv_HAVE_IFACE_IFCONF" = x"yes"; then
9877 iface=yes;cat >> confdefs.h <<\EOF
9878 #define HAVE_IFACE_IFCONF 1
9884 if test $iface = no; then
9885 echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6
9886 echo "configure:9887: checking for iface ifreq" >&5
9887 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFREQ'+set}'`\" = set"; then
9888 echo $ac_n "(cached) $ac_c" 1>&6
9889 else
9891 if test "$cross_compiling" = yes; then
9892 samba_cv_HAVE_IFACE_IFREQ=cross
9893 else
9894 cat > conftest.$ac_ext <<EOF
9895 #line 9896 "configure"
9896 #include "confdefs.h"
9898 #define HAVE_IFACE_IFREQ 1
9899 #define AUTOCONF_TEST 1
9900 #include "confdefs.h"
9901 #include "${srcdir-.}/lib/interfaces.c"
9903 if { (eval echo configure:9904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9904 then
9905 samba_cv_HAVE_IFACE_IFREQ=yes
9906 else
9907 echo "configure: failed program was:" >&5
9908 cat conftest.$ac_ext >&5
9909 rm -fr conftest*
9910 samba_cv_HAVE_IFACE_IFREQ=no
9912 rm -fr conftest*
9917 echo "$ac_t""$samba_cv_HAVE_IFACE_IFREQ" 1>&6
9918 if test x"$samba_cv_HAVE_IFACE_IFREQ" = x"yes"; then
9919 iface=yes;cat >> confdefs.h <<\EOF
9920 #define HAVE_IFACE_IFREQ 1
9927 ################################################
9928 # look for a method of setting the effective uid
9929 seteuid=no;
9930 if test $seteuid = no; then
9931 echo $ac_n "checking for setresuid""... $ac_c" 1>&6
9932 echo "configure:9933: checking for setresuid" >&5
9933 if eval "test \"`echo '$''{'samba_cv_USE_SETRESUID'+set}'`\" = set"; then
9934 echo $ac_n "(cached) $ac_c" 1>&6
9935 else
9937 if test "$cross_compiling" = yes; then
9938 samba_cv_USE_SETRESUID=cross
9939 else
9940 cat > conftest.$ac_ext <<EOF
9941 #line 9942 "configure"
9942 #include "confdefs.h"
9944 #define AUTOCONF_TEST 1
9945 #define USE_SETRESUID 1
9946 #include "confdefs.h"
9947 #include "${srcdir-.}/lib/util_sec.c"
9949 if { (eval echo configure:9950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9950 then
9951 samba_cv_USE_SETRESUID=yes
9952 else
9953 echo "configure: failed program was:" >&5
9954 cat conftest.$ac_ext >&5
9955 rm -fr conftest*
9956 samba_cv_USE_SETRESUID=no
9958 rm -fr conftest*
9963 echo "$ac_t""$samba_cv_USE_SETRESUID" 1>&6
9964 if test x"$samba_cv_USE_SETRESUID" = x"yes"; then
9965 seteuid=yes;cat >> confdefs.h <<\EOF
9966 #define USE_SETRESUID 1
9973 if test $seteuid = no; then
9974 echo $ac_n "checking for setreuid""... $ac_c" 1>&6
9975 echo "configure:9976: checking for setreuid" >&5
9976 if eval "test \"`echo '$''{'samba_cv_USE_SETREUID'+set}'`\" = set"; then
9977 echo $ac_n "(cached) $ac_c" 1>&6
9978 else
9980 if test "$cross_compiling" = yes; then
9981 samba_cv_USE_SETREUID=cross
9982 else
9983 cat > conftest.$ac_ext <<EOF
9984 #line 9985 "configure"
9985 #include "confdefs.h"
9987 #define AUTOCONF_TEST 1
9988 #define USE_SETREUID 1
9989 #include "confdefs.h"
9990 #include "${srcdir-.}/lib/util_sec.c"
9992 if { (eval echo configure:9993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9993 then
9994 samba_cv_USE_SETREUID=yes
9995 else
9996 echo "configure: failed program was:" >&5
9997 cat conftest.$ac_ext >&5
9998 rm -fr conftest*
9999 samba_cv_USE_SETREUID=no
10001 rm -fr conftest*
10006 echo "$ac_t""$samba_cv_USE_SETREUID" 1>&6
10007 if test x"$samba_cv_USE_SETREUID" = x"yes"; then
10008 seteuid=yes;cat >> confdefs.h <<\EOF
10009 #define USE_SETREUID 1
10015 if test $seteuid = no; then
10016 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
10017 echo "configure:10018: checking for seteuid" >&5
10018 if eval "test \"`echo '$''{'samba_cv_USE_SETEUID'+set}'`\" = set"; then
10019 echo $ac_n "(cached) $ac_c" 1>&6
10020 else
10022 if test "$cross_compiling" = yes; then
10023 samba_cv_USE_SETEUID=cross
10024 else
10025 cat > conftest.$ac_ext <<EOF
10026 #line 10027 "configure"
10027 #include "confdefs.h"
10029 #define AUTOCONF_TEST 1
10030 #define USE_SETEUID 1
10031 #include "confdefs.h"
10032 #include "${srcdir-.}/lib/util_sec.c"
10034 if { (eval echo configure:10035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10035 then
10036 samba_cv_USE_SETEUID=yes
10037 else
10038 echo "configure: failed program was:" >&5
10039 cat conftest.$ac_ext >&5
10040 rm -fr conftest*
10041 samba_cv_USE_SETEUID=no
10043 rm -fr conftest*
10048 echo "$ac_t""$samba_cv_USE_SETEUID" 1>&6
10049 if test x"$samba_cv_USE_SETEUID" = x"yes"; then
10050 seteuid=yes;cat >> confdefs.h <<\EOF
10051 #define USE_SETEUID 1
10057 if test $seteuid = no; then
10058 echo $ac_n "checking for setuidx""... $ac_c" 1>&6
10059 echo "configure:10060: checking for setuidx" >&5
10060 if eval "test \"`echo '$''{'samba_cv_USE_SETUIDX'+set}'`\" = set"; then
10061 echo $ac_n "(cached) $ac_c" 1>&6
10062 else
10064 if test "$cross_compiling" = yes; then
10065 samba_cv_USE_SETUIDX=cross
10066 else
10067 cat > conftest.$ac_ext <<EOF
10068 #line 10069 "configure"
10069 #include "confdefs.h"
10071 #define AUTOCONF_TEST 1
10072 #define USE_SETUIDX 1
10073 #include "confdefs.h"
10074 #include "${srcdir-.}/lib/util_sec.c"
10076 if { (eval echo configure:10077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10077 then
10078 samba_cv_USE_SETUIDX=yes
10079 else
10080 echo "configure: failed program was:" >&5
10081 cat conftest.$ac_ext >&5
10082 rm -fr conftest*
10083 samba_cv_USE_SETUIDX=no
10085 rm -fr conftest*
10090 echo "$ac_t""$samba_cv_USE_SETUIDX" 1>&6
10091 if test x"$samba_cv_USE_SETUIDX" = x"yes"; then
10092 seteuid=yes;cat >> confdefs.h <<\EOF
10093 #define USE_SETUIDX 1
10100 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
10101 echo "configure:10102: checking for working mmap" >&5
10102 if eval "test \"`echo '$''{'samba_cv_HAVE_MMAP'+set}'`\" = set"; then
10103 echo $ac_n "(cached) $ac_c" 1>&6
10104 else
10106 if test "$cross_compiling" = yes; then
10107 samba_cv_HAVE_MMAP=cross
10108 else
10109 cat > conftest.$ac_ext <<EOF
10110 #line 10111 "configure"
10111 #include "confdefs.h"
10112 #include "${srcdir-.}/tests/shared_mmap.c"
10114 if { (eval echo configure:10115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10115 then
10116 samba_cv_HAVE_MMAP=yes
10117 else
10118 echo "configure: failed program was:" >&5
10119 cat conftest.$ac_ext >&5
10120 rm -fr conftest*
10121 samba_cv_HAVE_MMAP=no
10123 rm -fr conftest*
10128 echo "$ac_t""$samba_cv_HAVE_MMAP" 1>&6
10129 if test x"$samba_cv_HAVE_MMAP" = x"yes"; then
10130 cat >> confdefs.h <<\EOF
10131 #define HAVE_MMAP 1
10136 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
10137 echo "configure:10138: checking for ftruncate needs root" >&5
10138 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
10139 echo $ac_n "(cached) $ac_c" 1>&6
10140 else
10142 if test "$cross_compiling" = yes; then
10143 samba_cv_FTRUNCATE_NEEDS_ROOT=cross
10144 else
10145 cat > conftest.$ac_ext <<EOF
10146 #line 10147 "configure"
10147 #include "confdefs.h"
10148 #include "${srcdir-.}/tests/ftruncroot.c"
10150 if { (eval echo configure:10151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10151 then
10152 samba_cv_FTRUNCATE_NEEDS_ROOT=yes
10153 else
10154 echo "configure: failed program was:" >&5
10155 cat conftest.$ac_ext >&5
10156 rm -fr conftest*
10157 samba_cv_FTRUNCATE_NEEDS_ROOT=no
10159 rm -fr conftest*
10164 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
10165 if test x"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x"yes"; then
10166 cat >> confdefs.h <<\EOF
10167 #define FTRUNCATE_NEEDS_ROOT 1
10172 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
10173 echo "configure:10174: checking for fcntl locking" >&5
10174 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
10175 echo $ac_n "(cached) $ac_c" 1>&6
10176 else
10178 if test "$cross_compiling" = yes; then
10179 samba_cv_HAVE_FCNTL_LOCK=cross
10180 else
10181 cat > conftest.$ac_ext <<EOF
10182 #line 10183 "configure"
10183 #include "confdefs.h"
10184 #include "${srcdir-.}/tests/fcntl_lock.c"
10186 if { (eval echo configure:10187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10187 then
10188 samba_cv_HAVE_FCNTL_LOCK=yes
10189 else
10190 echo "configure: failed program was:" >&5
10191 cat conftest.$ac_ext >&5
10192 rm -fr conftest*
10193 samba_cv_HAVE_FCNTL_LOCK=no
10195 rm -fr conftest*
10200 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
10201 if test x"$samba_cv_HAVE_FCNTL_LOCK" = x"yes"; then
10202 cat >> confdefs.h <<\EOF
10203 #define HAVE_FCNTL_LOCK 1
10208 echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6
10209 echo "configure:10210: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
10210 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_FCNTL64_LOCKS'+set}'`\" = set"; then
10211 echo $ac_n "(cached) $ac_c" 1>&6
10212 else
10214 if test "$cross_compiling" = yes; then
10215 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=cross
10216 else
10217 cat > conftest.$ac_ext <<EOF
10218 #line 10219 "configure"
10219 #include "confdefs.h"
10220 #include "${srcdir-.}/tests/fcntl_lock64.c"
10222 if { (eval echo configure:10223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10223 then
10224 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=yes
10225 else
10226 echo "configure: failed program was:" >&5
10227 cat conftest.$ac_ext >&5
10228 rm -fr conftest*
10229 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=no
10231 rm -fr conftest*
10236 echo "$ac_t""$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" 1>&6
10237 if test x"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x"yes"; then
10238 cat >> confdefs.h <<\EOF
10239 #define HAVE_BROKEN_FCNTL64_LOCKS 1
10243 else
10246 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
10247 echo "configure:10248: checking for 64 bit fcntl locking" >&5
10248 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
10249 echo $ac_n "(cached) $ac_c" 1>&6
10250 else
10252 if test "$cross_compiling" = yes; then
10253 samba_cv_HAVE_STRUCT_FLOCK64=cross
10254 else
10255 cat > conftest.$ac_ext <<EOF
10256 #line 10257 "configure"
10257 #include "confdefs.h"
10259 #if defined(HAVE_UNISTD_H)
10260 #include <unistd.h>
10261 #endif
10262 #include <stdio.h>
10263 #include <stdlib.h>
10265 #ifdef HAVE_FCNTL_H
10266 #include <fcntl.h>
10267 #endif
10269 #ifdef HAVE_SYS_FCNTL_H
10270 #include <sys/fcntl.h>
10271 #endif
10272 main() { struct flock64 fl64;
10273 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
10274 exit(0);
10275 #else
10276 exit(1);
10277 #endif
10280 if { (eval echo configure:10281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10281 then
10282 samba_cv_HAVE_STRUCT_FLOCK64=yes
10283 else
10284 echo "configure: failed program was:" >&5
10285 cat conftest.$ac_ext >&5
10286 rm -fr conftest*
10287 samba_cv_HAVE_STRUCT_FLOCK64=no
10289 rm -fr conftest*
10294 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
10296 if test x"$samba_cv_HAVE_STRUCT_FLOCK64" = x"yes"; then
10297 cat >> confdefs.h <<\EOF
10298 #define HAVE_STRUCT_FLOCK64 1
10304 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
10305 echo "configure:10306: checking for a crypt that needs truncated salt" >&5
10306 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
10307 echo $ac_n "(cached) $ac_c" 1>&6
10308 else
10310 if test "$cross_compiling" = yes; then
10311 samba_cv_HAVE_TRUNCATED_SALT=cross
10312 else
10313 cat > conftest.$ac_ext <<EOF
10314 #line 10315 "configure"
10315 #include "confdefs.h"
10316 #include "${srcdir-.}/tests/crypttest.c"
10318 if { (eval echo configure:10319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10319 then
10320 samba_cv_HAVE_TRUNCATED_SALT=no
10321 else
10322 echo "configure: failed program was:" >&5
10323 cat conftest.$ac_ext >&5
10324 rm -fr conftest*
10325 samba_cv_HAVE_TRUNCATED_SALT=yes
10327 rm -fr conftest*
10332 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
10333 if test x"$samba_cv_HAVE_TRUNCATED_SALT" = x"yes"; then
10334 cat >> confdefs.h <<\EOF
10335 #define HAVE_TRUNCATED_SALT 1
10340 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
10341 echo "configure:10342: checking for broken nisplus include files" >&5
10342 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
10343 echo $ac_n "(cached) $ac_c" 1>&6
10344 else
10346 cat > conftest.$ac_ext <<EOF
10347 #line 10348 "configure"
10348 #include "confdefs.h"
10349 #include <sys/acl.h>
10350 #if defined(HAVE_RPCSVC_NIS_H)
10351 #include <rpcsvc/nis.h>
10352 #endif
10353 int main() {
10354 return 0;
10355 ; return 0; }
10357 if { (eval echo configure:10358: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10358 rm -rf conftest*
10359 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=no
10360 else
10361 echo "configure: failed program was:" >&5
10362 cat conftest.$ac_ext >&5
10363 rm -rf conftest*
10364 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=yes
10366 rm -f conftest*
10369 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
10370 if test x"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x"yes"; then
10371 cat >> confdefs.h <<\EOF
10372 #define BROKEN_NISPLUS_INCLUDE_FILES 1
10378 #################################################
10379 # check for smbwrapper support
10380 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
10381 echo "configure:10382: checking whether to use smbwrapper" >&5
10382 # Check whether --with-smbwrapper or --without-smbwrapper was given.
10383 if test "${with_smbwrapper+set}" = set; then
10384 withval="$with_smbwrapper"
10385 case "$withval" in
10386 yes)
10387 echo "$ac_t""yes" 1>&6
10388 cat >> confdefs.h <<\EOF
10389 #define WITH_SMBWRAPPER 1
10392 WRAP="bin/smbsh bin/smbwrapper.$SHLIBEXT"
10394 if test x$ATTEMPT_WRAP32_BUILD = x; then
10395 WRAP32=""
10396 else
10397 WRAP32=bin/smbwrapper.32.$SHLIBEXT
10400 # Conditions under which smbwrapper should not be built.
10402 if test x$PICFLAG = x; then
10403 echo No support for PIC code - disabling smbwrapper and smbsh
10404 WRAP=""
10405 WRAP32=""
10406 elif test x$ac_cv_func_syscall = xno; then
10407 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
10408 WRAP=""
10409 WRAP32=""
10413 echo "$ac_t""no" 1>&6
10415 esac
10416 else
10417 echo "$ac_t""no" 1>&6
10422 #################################################
10423 # check for the AFS filesystem
10424 echo $ac_n "checking whether to use AFS""... $ac_c" 1>&6
10425 echo "configure:10426: checking whether to use AFS" >&5
10426 # Check whether --with-afs or --without-afs was given.
10427 if test "${with_afs+set}" = set; then
10428 withval="$with_afs"
10429 case "$withval" in
10430 yes)
10431 echo "$ac_t""yes" 1>&6
10432 cat >> confdefs.h <<\EOF
10433 #define WITH_AFS 1
10438 echo "$ac_t""no" 1>&6
10440 esac
10441 else
10442 echo "$ac_t""no" 1>&6
10448 #################################################
10449 # check for the DFS auth system
10450 echo $ac_n "checking whether to use DFS auth""... $ac_c" 1>&6
10451 echo "configure:10452: checking whether to use DFS auth" >&5
10452 # Check whether --with-dfs or --without-dfs was given.
10453 if test "${with_dfs+set}" = set; then
10454 withval="$with_dfs"
10455 case "$withval" in
10456 yes)
10457 echo "$ac_t""yes" 1>&6
10458 cat >> confdefs.h <<\EOF
10459 #define WITH_DFS 1
10464 echo "$ac_t""no" 1>&6
10466 esac
10467 else
10468 echo "$ac_t""no" 1>&6
10473 #################################################
10474 # check for Kerberos IV auth system
10475 echo $ac_n "checking whether to use Kerberos IV""... $ac_c" 1>&6
10476 echo "configure:10477: checking whether to use Kerberos IV" >&5
10477 # Check whether --with-krb4 or --without-krb4 was given.
10478 if test "${with_krb4+set}" = set; then
10479 withval="$with_krb4"
10480 echo "$ac_t""yes" 1>&6
10481 cat >> confdefs.h <<\EOF
10482 #define KRB4_AUTH 1
10485 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
10486 echo "configure:10487: checking for dn_expand in -lresolv" >&5
10487 ac_lib_var=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
10488 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10489 echo $ac_n "(cached) $ac_c" 1>&6
10490 else
10491 ac_save_LIBS="$LIBS"
10492 LIBS="-lresolv $LIBS"
10493 cat > conftest.$ac_ext <<EOF
10494 #line 10495 "configure"
10495 #include "confdefs.h"
10496 /* Override any gcc2 internal prototype to avoid an error. */
10497 /* We use char because int might match the return type of a gcc2
10498 builtin and then its argument prototype would still apply. */
10499 char dn_expand();
10501 int main() {
10502 dn_expand()
10503 ; return 0; }
10505 if { (eval echo configure:10506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10506 rm -rf conftest*
10507 eval "ac_cv_lib_$ac_lib_var=yes"
10508 else
10509 echo "configure: failed program was:" >&5
10510 cat conftest.$ac_ext >&5
10511 rm -rf conftest*
10512 eval "ac_cv_lib_$ac_lib_var=no"
10514 rm -f conftest*
10515 LIBS="$ac_save_LIBS"
10518 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10519 echo "$ac_t""yes" 1>&6
10520 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10521 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10522 cat >> confdefs.h <<EOF
10523 #define $ac_tr_lib 1
10526 LIBS="-lresolv $LIBS"
10528 else
10529 echo "$ac_t""no" 1>&6
10532 LIBS="$LIBS -lkrb -ldes"
10533 CFLAGS="$CFLAGS -I$withval/include"
10534 LDFLAGS="$LDFLAGS -L$withval/lib"
10535 else
10536 echo "$ac_t""no" 1>&6
10541 #################################################
10542 # check for Kerberos 5 auth system
10543 echo $ac_n "checking whether to use Kerberos 5""... $ac_c" 1>&6
10544 echo "configure:10545: checking whether to use Kerberos 5" >&5
10545 # Check whether --with-krb5 or --without-krb5 was given.
10546 if test "${with_krb5+set}" = set; then
10547 withval="$with_krb5"
10548 echo "$ac_t""yes" 1>&6
10549 cat >> confdefs.h <<\EOF
10550 #define KRB5_AUTH 1
10553 LIBS="$LIBS -ldes425 -lkrb5 -lcrypto -lcom_err"
10554 CFLAGS="$CFLAGS -I$withval/include"
10555 LDFLAGS="$LDFLAGS -L$withval/lib"
10556 else
10557 echo "$ac_t""no" 1>&6
10562 #################################################
10563 # check for automount support
10564 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
10565 echo "configure:10566: checking whether to use AUTOMOUNT" >&5
10566 # Check whether --with-automount or --without-automount was given.
10567 if test "${with_automount+set}" = set; then
10568 withval="$with_automount"
10569 case "$withval" in
10570 yes)
10571 echo "$ac_t""yes" 1>&6
10572 cat >> confdefs.h <<\EOF
10573 #define WITH_AUTOMOUNT 1
10578 echo "$ac_t""no" 1>&6
10580 esac
10581 else
10582 echo "$ac_t""no" 1>&6
10587 #################################################
10588 # check for smbmount support
10589 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
10590 echo "configure:10591: checking whether to use SMBMOUNT" >&5
10591 # Check whether --with-smbmount or --without-smbmount was given.
10592 if test "${with_smbmount+set}" = set; then
10593 withval="$with_smbmount"
10594 case "$withval" in
10595 yes)
10596 echo "$ac_t""yes" 1>&6
10597 cat >> confdefs.h <<\EOF
10598 #define WITH_SMBMOUNT 1
10601 MPROGS="bin/smbmount bin/smbmnt bin/smbumount"
10604 echo "$ac_t""no" 1>&6
10605 MPROGS=
10607 esac
10608 else
10609 echo "$ac_t""no" 1>&6
10610 MPROGS=
10616 #################################################
10617 # check for a PAM password database
10618 echo $ac_n "checking whether to use PAM password database""... $ac_c" 1>&6
10619 echo "configure:10620: checking whether to use PAM password database" >&5
10620 # Check whether --with-pam or --without-pam was given.
10621 if test "${with_pam+set}" = set; then
10622 withval="$with_pam"
10623 case "$withval" in
10624 yes)
10625 echo "$ac_t""yes" 1>&6
10626 cat >> confdefs.h <<\EOF
10627 #define WITH_PAM 1
10630 LIBS="$LIBS -lpam"
10633 echo "$ac_t""no" 1>&6
10635 esac
10636 else
10637 echo "$ac_t""no" 1>&6
10642 #################################################
10643 # check for a TDB password database
10644 echo $ac_n "checking whether to use TDB password database""... $ac_c" 1>&6
10645 echo "configure:10646: checking whether to use TDB password database" >&5
10646 # Check whether --with-tdbsam or --without-tdbsam was given.
10647 if test "${with_tdbsam+set}" = set; then
10648 withval="$with_tdbsam"
10649 case "$withval" in
10650 yes)
10651 echo "$ac_t""yes" 1>&6
10652 cat >> confdefs.h <<\EOF
10653 #define WITH_TDBPWD 1
10656 # AC_MSG_ERROR([TDB password database not supported in this version.])
10659 echo "$ac_t""no" 1>&6
10661 esac
10662 else
10663 echo "$ac_t""no" 1>&6
10668 #################################################
10669 # check for a LDAP password database
10670 echo $ac_n "checking whether to use LDAP password database""... $ac_c" 1>&6
10671 echo "configure:10672: checking whether to use LDAP password database" >&5
10672 # Check whether --with-ldap or --without-ldap was given.
10673 if test "${with_ldap+set}" = set; then
10674 withval="$with_ldap"
10675 case "$withval" in
10676 yes)
10677 echo "$ac_t""yes" 1>&6
10678 cat >> confdefs.h <<\EOF
10679 #define WITH_LDAP 1
10682 { echo "configure: error: LDAP password database not supported in this version." 1>&2; exit 1; }
10685 echo "$ac_t""no" 1>&6
10687 esac
10688 else
10689 echo "$ac_t""no" 1>&6
10694 #################################################
10695 # check for a NISPLUS password database
10696 echo $ac_n "checking whether to use NISPLUS password database""... $ac_c" 1>&6
10697 echo "configure:10698: checking whether to use NISPLUS password database" >&5
10698 # Check whether --with-nisplus or --without-nisplus was given.
10699 if test "${with_nisplus+set}" = set; then
10700 withval="$with_nisplus"
10701 case "$withval" in
10702 yes)
10703 echo "$ac_t""yes" 1>&6
10704 cat >> confdefs.h <<\EOF
10705 #define WITH_NISPLUS 1
10710 echo "$ac_t""no" 1>&6
10712 esac
10713 else
10714 echo "$ac_t""no" 1>&6
10719 #################################################
10720 # check for a NISPLUS_HOME support
10721 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
10722 echo "configure:10723: checking whether to use NISPLUS_HOME" >&5
10723 # Check whether --with-nisplus-home or --without-nisplus-home was given.
10724 if test "${with_nisplus_home+set}" = set; then
10725 withval="$with_nisplus_home"
10726 case "$withval" in
10727 yes)
10728 echo "$ac_t""yes" 1>&6
10729 cat >> confdefs.h <<\EOF
10730 #define WITH_NISPLUS_HOME 1
10735 echo "$ac_t""no" 1>&6
10737 esac
10738 else
10739 echo "$ac_t""no" 1>&6
10744 #################################################
10745 # check for the secure socket layer
10746 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
10747 echo "configure:10748: checking whether to use SSL" >&5
10748 # Check whether --with-ssl or --without-ssl was given.
10749 if test "${with_ssl+set}" = set; then
10750 withval="$with_ssl"
10751 case "$withval" in
10752 yes)
10753 echo "$ac_t""yes" 1>&6
10754 cat >> confdefs.h <<\EOF
10755 #define WITH_SSL 1
10758 withval="/usr/local/ssl" # default
10760 if test "${with_sslinc+set}" = set; then
10762 withval="$with_sslinc"
10763 case "$withval" in
10764 yes|no)
10765 echo "configure: warning: --with-sslinc called without argument - will use default" 1>&w
10766 CFLAGS="-I/usr/local/ssl/include $CFLAGS"
10767 LIBS="-lssl -lcrypto $LIBS"
10768 LDFLAGS="=L/usr/local/ssl/lib $LDFLAGS"
10771 CFLAGS="-I${withval}/include $CFLAGS"
10772 LIBS="-lssl -lcrypto $LIBS"
10773 LDFLAGS="-L${withval}/lib $LDFLAGS"
10775 esac
10777 else
10779 CFLAGS="-I/usr/local/ssl/include $CFLAGS"
10780 LIBS="-lssl -lcrypto $LIBS"
10781 LDFLAGS="-L/usr/local/ssl/lib $LDFLAGS"
10785 if test ! -d ${withval}; then
10786 echo "configure: error: called with --with-ssl, but ssl base directory ${withval} does not exist or is not a directory. Aborting config" 1>&2
10787 exit 1
10790 CFLAGS="-DHAVE_CRYPT_DECL $CFLAGS" # Damn, SSLeay defines its own
10794 echo "$ac_t""no" 1>&6
10796 esac
10797 else
10798 echo "$ac_t""no" 1>&6
10803 #################################################
10804 # check for syslog logging
10805 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
10806 echo "configure:10807: checking whether to use syslog logging" >&5
10807 # Check whether --with-syslog or --without-syslog was given.
10808 if test "${with_syslog+set}" = set; then
10809 withval="$with_syslog"
10810 case "$withval" in
10811 yes)
10812 echo "$ac_t""yes" 1>&6
10813 cat >> confdefs.h <<\EOF
10814 #define WITH_SYSLOG 1
10819 echo "$ac_t""no" 1>&6
10821 esac
10822 else
10823 echo "$ac_t""no" 1>&6
10828 #################################################
10829 # check for a shared memory profiling support
10830 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
10831 echo "configure:10832: checking whether to use profiling" >&5
10832 # Check whether --with-profile or --without-profile was given.
10833 if test "${with_profile+set}" = set; then
10834 withval="$with_profile"
10835 case "$withval" in
10836 yes)
10837 echo "$ac_t""yes" 1>&6
10838 cat >> confdefs.h <<\EOF
10839 #define WITH_PROFILE 1
10844 echo "$ac_t""no" 1>&6
10846 esac
10847 else
10848 echo "$ac_t""no" 1>&6
10854 #################################################
10855 # check for experimental netatalk resource fork support
10856 echo $ac_n "checking whether to support netatalk""... $ac_c" 1>&6
10857 echo "configure:10858: checking whether to support netatalk" >&5
10858 # Check whether --with-netatalk or --without-netatalk was given.
10859 if test "${with_netatalk+set}" = set; then
10860 withval="$with_netatalk"
10861 case "$withval" in
10862 yes)
10863 echo "$ac_t""yes" 1>&6
10864 cat >> confdefs.h <<\EOF
10865 #define WITH_NETATALK 1
10870 echo "$ac_t""no" 1>&6
10872 esac
10873 else
10874 echo "$ac_t""no" 1>&6
10879 #################################################
10880 # check for experimental disk-quotas support
10881 QUOTAOBJS=smbd/noquotas.o
10883 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
10884 echo "configure:10885: checking whether to support disk-quotas" >&5
10885 # Check whether --with-quotas or --without-quotas was given.
10886 if test "${with_quotas+set}" = set; then
10887 withval="$with_quotas"
10888 case "$withval" in
10889 yes)
10890 echo "$ac_t""yes" 1>&6
10891 QUOTAOBJS=smbd/quotas.o
10894 echo "$ac_t""no" 1>&6
10896 esac
10897 else
10898 echo "$ac_t""no" 1>&6
10904 #################################################
10905 # check for experimental utmp accounting
10907 echo $ac_n "checking whether to support utmp accounting""... $ac_c" 1>&6
10908 echo "configure:10909: checking whether to support utmp accounting" >&5
10909 # Check whether --with-utmp or --without-utmp was given.
10910 if test "${with_utmp+set}" = set; then
10911 withval="$with_utmp"
10912 case "$withval" in
10913 yes)
10914 echo "$ac_t""yes" 1>&6
10915 cat >> confdefs.h <<\EOF
10916 #define WITH_UTMP 1
10921 echo "$ac_t""no" 1>&6
10923 esac
10924 else
10925 echo "$ac_t""no" 1>&6
10930 #################################################
10931 # check for MS Dfs support
10933 echo $ac_n "checking whether to support Microsoft Dfs""... $ac_c" 1>&6
10934 echo "configure:10935: checking whether to support Microsoft Dfs" >&5
10935 # Check whether --with-msdfs or --without-msdfs was given.
10936 if test "${with_msdfs+set}" = set; then
10937 withval="$with_msdfs"
10938 case "$withval" in
10939 yes)
10940 echo "$ac_t""yes" 1>&6
10941 cat >> confdefs.h <<\EOF
10942 #define WITH_MSDFS 1
10947 echo "$ac_t""no" 1>&6
10949 esac
10950 else
10951 echo "$ac_t""no" 1>&6
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 # Check whether --with-spinlocks or --without-spinlocks was given.
11428 if test "${with_spinlocks+set}" = set; then
11429 withval="$with_spinlocks"
11433 if test "x$with_spinlocks" = "xyes"; then
11434 cat >> confdefs.h <<\EOF
11435 #define USE_SPINLOCKS 1
11439 case "$host_cpu" in
11440 sparc)
11441 cat >> confdefs.h <<\EOF
11442 #define SPARC_SPINLOCKS 1
11447 i386|i486|i586|i686)
11448 cat >> confdefs.h <<\EOF
11449 #define INTEL_SPINLOCKS 1
11454 mips)
11455 cat >> confdefs.h <<\EOF
11456 #define MIPS_SPINLOCKS 1
11461 powerpc)
11462 cat >> confdefs.h <<\EOF
11463 #define POWERPC_SPINLOCKS 1
11467 esac
11470 echo "checking configure summary"
11471 if test "$cross_compiling" = yes; then
11473 else
11474 cat > conftest.$ac_ext <<EOF
11475 #line 11476 "configure"
11476 #include "confdefs.h"
11477 #include "${srcdir-.}/tests/summary.c"
11479 if { (eval echo configure:11480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11480 then
11481 echo "configure OK";
11482 else
11483 echo "configure: failed program was:" >&5
11484 cat conftest.$ac_ext >&5
11485 rm -fr conftest*
11486 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }
11488 rm -fr conftest*
11492 builddir=`pwd`
11495 trap '' 1 2 15
11496 cat > confcache <<\EOF
11497 # This file is a shell script that caches the results of configure
11498 # tests run on this system so they can be shared between configure
11499 # scripts and configure runs. It is not useful on other systems.
11500 # If it contains results you don't want to keep, you may remove or edit it.
11502 # By default, configure uses ./config.cache as the cache file,
11503 # creating it if it does not exist already. You can give configure
11504 # the --cache-file=FILE option to use a different cache file; that is
11505 # what configure does when it calls configure scripts in
11506 # subdirectories, so they share the cache.
11507 # Giving --cache-file=/dev/null disables caching, for debugging configure.
11508 # config.status only pays attention to the cache file if you give it the
11509 # --recheck option to rerun configure.
11512 # The following way of writing the cache mishandles newlines in values,
11513 # but we know of no workaround that is simple, portable, and efficient.
11514 # So, don't put newlines in cache variables' values.
11515 # Ultrix sh set writes to stderr and can't be redirected directly,
11516 # and sets the high bit in the cache file unless we assign to the vars.
11517 (set) 2>&1 |
11518 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11519 *ac_space=\ *)
11520 # `set' does not quote correctly, so add quotes (double-quote substitution
11521 # turns \\\\ into \\, and sed turns \\ into \).
11522 sed -n \
11523 -e "s/'/'\\\\''/g" \
11524 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
11527 # `set' quotes correctly as required by POSIX, so do not add quotes.
11528 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
11530 esac >> confcache
11531 if cmp -s $cache_file confcache; then
11533 else
11534 if test -w $cache_file; then
11535 echo "updating cache $cache_file"
11536 cat confcache > $cache_file
11537 else
11538 echo "not updating unwritable cache $cache_file"
11541 rm -f confcache
11543 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
11545 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11546 # Let make expand exec_prefix.
11547 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11549 # Any assignment to VPATH causes Sun make to only execute
11550 # the first set of double-colon rules, so remove it if not needed.
11551 # If there is a colon in the path, we need to keep it.
11552 if test "x$srcdir" = x.; then
11553 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
11556 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
11558 DEFS=-DHAVE_CONFIG_H
11560 # Without the "./", some shells look in PATH for config.status.
11561 : ${CONFIG_STATUS=./config.status}
11563 echo creating $CONFIG_STATUS
11564 rm -f $CONFIG_STATUS
11565 cat > $CONFIG_STATUS <<EOF
11566 #! /bin/sh
11567 # Generated automatically by configure.
11568 # Run this file to recreate the current configuration.
11569 # This directory was configured as follows,
11570 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11572 # $0 $ac_configure_args
11574 # Compiler output produced by configure, useful for debugging
11575 # configure, is in ./config.log if it exists.
11577 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
11578 for ac_option
11580 case "\$ac_option" in
11581 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11582 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
11583 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
11584 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
11585 echo "$CONFIG_STATUS generated by autoconf version 2.13"
11586 exit 0 ;;
11587 -help | --help | --hel | --he | --h)
11588 echo "\$ac_cs_usage"; exit 0 ;;
11589 *) echo "\$ac_cs_usage"; exit 1 ;;
11590 esac
11591 done
11593 ac_given_srcdir=$srcdir
11594 ac_given_INSTALL="$INSTALL"
11596 trap 'rm -fr `echo "include/stamp-h Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
11598 cat >> $CONFIG_STATUS <<EOF
11600 # Protect against being on the right side of a sed subst in config.status.
11601 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
11602 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
11603 $ac_vpsub
11604 $extrasub
11605 s%@SHELL@%$SHELL%g
11606 s%@CFLAGS@%$CFLAGS%g
11607 s%@CPPFLAGS@%$CPPFLAGS%g
11608 s%@CXXFLAGS@%$CXXFLAGS%g
11609 s%@FFLAGS@%$FFLAGS%g
11610 s%@DEFS@%$DEFS%g
11611 s%@LDFLAGS@%$LDFLAGS%g
11612 s%@LIBS@%$LIBS%g
11613 s%@exec_prefix@%$exec_prefix%g
11614 s%@prefix@%$prefix%g
11615 s%@program_transform_name@%$program_transform_name%g
11616 s%@bindir@%$bindir%g
11617 s%@sbindir@%$sbindir%g
11618 s%@libexecdir@%$libexecdir%g
11619 s%@datadir@%$datadir%g
11620 s%@sysconfdir@%$sysconfdir%g
11621 s%@sharedstatedir@%$sharedstatedir%g
11622 s%@localstatedir@%$localstatedir%g
11623 s%@libdir@%$libdir%g
11624 s%@includedir@%$includedir%g
11625 s%@oldincludedir@%$oldincludedir%g
11626 s%@infodir@%$infodir%g
11627 s%@mandir@%$mandir%g
11628 s%@RUNPROG@%$RUNPROG%g
11629 s%@MPROGS@%$MPROGS%g
11630 s%@LDSHFLAGS@%$LDSHFLAGS%g
11631 s%@HOST_OS@%$HOST_OS%g
11632 s%@WRAP@%$WRAP%g
11633 s%@WRAP32@%$WRAP32%g
11634 s%@PICFLAG@%$PICFLAG%g
11635 s%@SHLIBEXT@%$SHLIBEXT%g
11636 s%@CC@%$CC%g
11637 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
11638 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
11639 s%@INSTALL_DATA@%$INSTALL_DATA%g
11640 s%@AWK@%$AWK%g
11641 s%@host@%$host%g
11642 s%@host_alias@%$host_alias%g
11643 s%@host_cpu@%$host_cpu%g
11644 s%@host_vendor@%$host_vendor%g
11645 s%@host_os@%$host_os%g
11646 s%@build@%$build%g
11647 s%@build_alias@%$build_alias%g
11648 s%@build_cpu@%$build_cpu%g
11649 s%@build_vendor@%$build_vendor%g
11650 s%@build_os@%$build_os%g
11651 s%@RANLIB@%$RANLIB%g
11652 s%@LN_S@%$LN_S%g
11653 s%@LIBTOOL@%$LIBTOOL%g
11654 s%@LIBTOOL_DEPS@%$LIBTOOL_DEPS%g
11655 s%@BROKEN_CC@%$BROKEN_CC%g
11656 s%@target@%$target%g
11657 s%@target_alias@%$target_alias%g
11658 s%@target_cpu@%$target_cpu%g
11659 s%@target_vendor@%$target_vendor%g
11660 s%@target_os@%$target_os%g
11661 s%@CPP@%$CPP%g
11662 s%@LIBOBJS@%$LIBOBJS%g
11663 s%@ROFF@%$ROFF%g
11664 s%@QUOTAOBJS@%$QUOTAOBJS%g
11665 s%@privatedir@%$privatedir%g
11666 s%@lockdir@%$lockdir%g
11667 s%@swatdir@%$swatdir%g
11668 s%@builddir@%$builddir%g
11670 CEOF
11673 cat >> $CONFIG_STATUS <<\EOF
11675 # Split the substitutions into bite-sized pieces for seds with
11676 # small command number limits, like on Digital OSF/1 and HP-UX.
11677 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
11678 ac_file=1 # Number of current file.
11679 ac_beg=1 # First line for current file.
11680 ac_end=$ac_max_sed_cmds # Line after last line for current file.
11681 ac_more_lines=:
11682 ac_sed_cmds=""
11683 while $ac_more_lines; do
11684 if test $ac_beg -gt 1; then
11685 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
11686 else
11687 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
11689 if test ! -s conftest.s$ac_file; then
11690 ac_more_lines=false
11691 rm -f conftest.s$ac_file
11692 else
11693 if test -z "$ac_sed_cmds"; then
11694 ac_sed_cmds="sed -f conftest.s$ac_file"
11695 else
11696 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
11698 ac_file=`expr $ac_file + 1`
11699 ac_beg=$ac_end
11700 ac_end=`expr $ac_end + $ac_max_sed_cmds`
11702 done
11703 if test -z "$ac_sed_cmds"; then
11704 ac_sed_cmds=cat
11708 cat >> $CONFIG_STATUS <<EOF
11710 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile"}
11712 cat >> $CONFIG_STATUS <<\EOF
11713 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
11714 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11715 case "$ac_file" in
11716 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
11717 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
11718 *) ac_file_in="${ac_file}.in" ;;
11719 esac
11721 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
11723 # Remove last slash and all that follows it. Not all systems have dirname.
11724 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
11725 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
11726 # The file is in a subdirectory.
11727 test ! -d "$ac_dir" && mkdir "$ac_dir"
11728 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
11729 # A "../" for each directory in $ac_dir_suffix.
11730 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
11731 else
11732 ac_dir_suffix= ac_dots=
11735 case "$ac_given_srcdir" in
11736 .) srcdir=.
11737 if test -z "$ac_dots"; then top_srcdir=.
11738 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
11739 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
11740 *) # Relative path.
11741 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
11742 top_srcdir="$ac_dots$ac_given_srcdir" ;;
11743 esac
11745 case "$ac_given_INSTALL" in
11746 [/$]*) INSTALL="$ac_given_INSTALL" ;;
11747 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
11748 esac
11750 echo creating "$ac_file"
11751 rm -f "$ac_file"
11752 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
11753 case "$ac_file" in
11754 *Makefile*) ac_comsub="1i\\
11755 # $configure_input" ;;
11756 *) ac_comsub= ;;
11757 esac
11759 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
11760 sed -e "$ac_comsub
11761 s%@configure_input@%$configure_input%g
11762 s%@srcdir@%$srcdir%g
11763 s%@top_srcdir@%$top_srcdir%g
11764 s%@INSTALL@%$INSTALL%g
11765 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
11766 fi; done
11767 rm -f conftest.s*
11769 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11770 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11772 # ac_d sets the value in "#define NAME VALUE" lines.
11773 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11774 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
11775 ac_dC='\3'
11776 ac_dD='%g'
11777 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
11778 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11779 ac_uB='\([ ]\)%\1#\2define\3'
11780 ac_uC=' '
11781 ac_uD='\4%g'
11782 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11783 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11784 ac_eB='$%\1#\2define\3'
11785 ac_eC=' '
11786 ac_eD='%g'
11788 if test "${CONFIG_HEADERS+set}" != set; then
11790 cat >> $CONFIG_STATUS <<EOF
11791 CONFIG_HEADERS="include/config.h"
11793 cat >> $CONFIG_STATUS <<\EOF
11795 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
11796 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11797 case "$ac_file" in
11798 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
11799 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
11800 *) ac_file_in="${ac_file}.in" ;;
11801 esac
11803 echo creating $ac_file
11805 rm -f conftest.frag conftest.in conftest.out
11806 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
11807 cat $ac_file_inputs > conftest.in
11811 # Transform confdefs.h into a sed script conftest.vals that substitutes
11812 # the proper values into config.h.in to produce config.h. And first:
11813 # Protect against being on the right side of a sed subst in config.status.
11814 # Protect against being in an unquoted here document in config.status.
11815 rm -f conftest.vals
11816 cat > conftest.hdr <<\EOF
11817 s/[\\&%]/\\&/g
11818 s%[\\$`]%\\&%g
11819 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
11820 s%ac_d%ac_u%gp
11821 s%ac_u%ac_e%gp
11823 sed -n -f conftest.hdr confdefs.h > conftest.vals
11824 rm -f conftest.hdr
11826 # This sed command replaces #undef with comments. This is necessary, for
11827 # example, in the case of _POSIX_SOURCE, which is predefined and required
11828 # on some systems where configure will not decide to define it.
11829 cat >> conftest.vals <<\EOF
11830 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
11833 # Break up conftest.vals because some shells have a limit on
11834 # the size of here documents, and old seds have small limits too.
11836 rm -f conftest.tail
11837 while :
11839 ac_lines=`grep -c . conftest.vals`
11840 # grep -c gives empty output for an empty file on some AIX systems.
11841 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
11842 # Write a limited-size here document to conftest.frag.
11843 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
11844 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
11845 echo 'CEOF
11846 sed -f conftest.frag conftest.in > conftest.out
11847 rm -f conftest.in
11848 mv conftest.out conftest.in
11849 ' >> $CONFIG_STATUS
11850 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
11851 rm -f conftest.vals
11852 mv conftest.tail conftest.vals
11853 done
11854 rm -f conftest.vals
11856 cat >> $CONFIG_STATUS <<\EOF
11857 rm -f conftest.frag conftest.h
11858 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
11859 cat conftest.in >> conftest.h
11860 rm -f conftest.in
11861 if cmp -s $ac_file conftest.h 2>/dev/null; then
11862 echo "$ac_file is unchanged"
11863 rm -f conftest.h
11864 else
11865 # Remove last slash and all that follows it. Not all systems have dirname.
11866 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
11867 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
11868 # The file is in a subdirectory.
11869 test ! -d "$ac_dir" && mkdir "$ac_dir"
11871 rm -f $ac_file
11872 mv conftest.h $ac_file
11874 fi; done
11877 cat >> $CONFIG_STATUS <<EOF
11880 cat >> $CONFIG_STATUS <<\EOF
11882 exit 0
11884 chmod +x $CONFIG_STATUS
11885 rm -fr confdefs* $ac_clean_files
11886 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1